@scmlatam/web-ui 0.1.97 → 0.1.98

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 (65) hide show
  1. package/dist/src/App.d.ts +2 -0
  2. package/dist/src/api/fake.d.ts +5 -0
  3. package/dist/src/auth.d.ts +26 -0
  4. package/dist/src/components/contextmenu/Contextmenu.d.ts +3 -0
  5. package/dist/src/components/core/Core.d.ts +3 -0
  6. package/dist/src/components/core/context/Context.d.ts +28 -0
  7. package/dist/src/components/core/context/Provider.d.ts +5 -0
  8. package/dist/src/components/core/dashboard/Dashboard.d.ts +3 -0
  9. package/dist/src/components/core/dashboard/account/Account.d.ts +11 -0
  10. package/dist/src/components/core/dashboard/content/Content.d.ts +3 -0
  11. package/dist/src/components/core/dashboard/search/Search.d.ts +2 -0
  12. package/dist/src/components/core/dashboard/sidebar/CompactItem.d.ts +3 -0
  13. package/dist/src/components/core/dashboard/sidebar/Content.d.ts +3 -0
  14. package/dist/src/components/core/dashboard/sidebar/ExtendGroupItem.d.ts +3 -0
  15. package/dist/src/components/core/dashboard/sidebar/Footer.d.ts +3 -0
  16. package/dist/src/components/core/dashboard/sidebar/Header.d.ts +3 -0
  17. package/dist/src/components/core/dashboard/sidebar/Sidebar.d.ts +3 -0
  18. package/dist/src/components/core/dashboard/sidebar/SubItem.d.ts +3 -0
  19. package/dist/src/components/core/signin/SignIn.d.ts +12 -0
  20. package/dist/src/components/core/system/Alert.d.ts +4 -0
  21. package/dist/src/components/form/Form.d.ts +3 -0
  22. package/dist/src/components/form/autocomplete/Autocomplete.d.ts +11 -0
  23. package/dist/src/components/form/datefield/range/DateRangeCalendar.d.ts +11 -0
  24. package/dist/src/components/form/datefield/range/DateRangePicker.d.ts +13 -0
  25. package/dist/src/components/form/datefield/range/Datefield.d.ts +9 -0
  26. package/dist/src/components/form/datefield/simple/DatePicker.d.ts +12 -0
  27. package/dist/src/components/form/datefield/simple/Datefield.d.ts +12 -0
  28. package/dist/src/components/form/datefield/simple/Timefield.d.ts +12 -0
  29. package/dist/src/components/form/file/FileField.d.ts +4 -0
  30. package/dist/src/components/form/select/MultiSelect.d.ts +3 -0
  31. package/dist/src/components/form/select/Select.d.ts +3 -0
  32. package/dist/src/components/form/sheet/Sheet.d.ts +13 -0
  33. package/dist/src/components/form/treewiew/Treeview.d.ts +6 -0
  34. package/dist/src/components/main.d.ts +14 -0
  35. package/dist/src/components/table/Table.d.ts +3 -0
  36. package/dist/src/components/table/toolbar/Toolbar.d.ts +3 -0
  37. package/dist/src/components/table/toolbar/datefield/range/DateRangePicker.d.ts +15 -0
  38. package/dist/src/components/table/toolbar/datefield/range/Datefield.d.ts +10 -0
  39. package/dist/src/components/table/toolbar/datefield/simple/DatePicker.d.ts +12 -0
  40. package/dist/src/components/table/toolbar/datefield/simple/Datefield.d.ts +11 -0
  41. package/dist/src/components/table/toolbar/select/MultiSelect.d.ts +3 -0
  42. package/dist/src/components/table/toolbar/select/Select.d.ts +3 -0
  43. package/dist/src/hooks/useForm.d.ts +2 -0
  44. package/dist/src/hooks/useSidebar.d.ts +6 -0
  45. package/dist/src/hooks/useSystemAlert.d.ts +6 -0
  46. package/dist/src/hooks/useTable.d.ts +18 -0
  47. package/dist/src/main.d.ts +0 -0
  48. package/dist/src/mock/SidebarData.d.ts +35 -0
  49. package/dist/src/mock/TableData.d.ts +3 -0
  50. package/dist/src/pages/Home.d.ts +3 -0
  51. package/dist/src/pages/Timekeeper.d.ts +3 -0
  52. package/dist/src/router/Router.d.ts +12 -0
  53. package/dist/src/shims/chevrotain.d.ts +1 -0
  54. package/dist/src/themes/GoodRabbitButtons.d.ts +32 -0
  55. package/dist/src/themes/GoodRabbitColors.d.ts +193 -0
  56. package/dist/src/themes/GoodRabbitDarkTheme.d.ts +375 -0
  57. package/dist/src/themes/GoodRabbitInputLabel.d.ts +11 -0
  58. package/dist/src/themes/GoodRabbitLightTheme.d.ts +2 -0
  59. package/dist/src/themes/GoodRabbitOutlinedInput.d.ts +43 -0
  60. package/dist/src/themes/GoodRabbitTextField.d.ts +59 -0
  61. package/dist/src/themes/GoodRabbitTypography.d.ts +46 -0
  62. package/dist/web-ui.js +1 -2
  63. package/dist/web-ui.umd.cjs +1 -1
  64. package/package.json +14 -11
  65. package/dist/web-ui.d.ts +0 -178
@@ -0,0 +1,2 @@
1
+ declare function App(): import("react/jsx-runtime").JSX.Element;
2
+ export default App;
@@ -0,0 +1,5 @@
1
+ import { NavigateFunction } from 'react-router';
2
+ declare const fakeAxios: () => Promise<unknown>;
3
+ declare const customLogin: (user: string, pass: string, setLoadingAuth: (loading: boolean) => void, setIsAuthenticated: (auth: boolean) => void, setAvatar: (avatar: string) => void, navigate: NavigateFunction) => void;
4
+ declare const customLogout: (setIsAuthenticated: (auth: boolean) => void, navigate: NavigateFunction) => void;
5
+ export { fakeAxios, customLogin, customLogout };
@@ -0,0 +1,26 @@
1
+ declare const loginRequest: {
2
+ scopes: string[];
3
+ };
4
+ declare const initialAuthState: (auth: {
5
+ clientId: string;
6
+ authority: string;
7
+ redirectUri: string;
8
+ postLogoutRedirectUri: string;
9
+ }) => {
10
+ auth: {
11
+ clientId: string;
12
+ authority: string;
13
+ redirectUri: string;
14
+ postLogoutRedirectUri: string;
15
+ };
16
+ cache: {
17
+ cacheLocation: "sessionStorage";
18
+ storeAuthStateInCookie: boolean;
19
+ };
20
+ system: {
21
+ loggerOptions: {
22
+ loggerCallback: (level: any, message: any, containsPii: any) => void;
23
+ };
24
+ };
25
+ };
26
+ export { initialAuthState, loginRequest };
@@ -0,0 +1,3 @@
1
+ import { ContextMenuProps } from '../table/types/types';
2
+ declare const ContextMenu: ({ contextMenu, setContextMenu, options, checked, optionGroup, }: ContextMenuProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { ContextMenu };
@@ -0,0 +1,3 @@
1
+ import { CoreProps } from './types/types';
2
+ declare const Core: ({ sidebar, routes, product, account, languages, loginForm: form, unsavedChangesAlert, }: CoreProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Core };
@@ -0,0 +1,28 @@
1
+ import { PickersShortcutsItem } from '@mui/x-date-pickers';
2
+ import { PickerValidValue } from '@mui/x-date-pickers/internals';
3
+ interface ICoreContext {
4
+ isAuthenticated: boolean;
5
+ setIsAuthenticated: (value: boolean) => void;
6
+ user: string;
7
+ setUser: (value: string) => void;
8
+ pass: string;
9
+ setPass: (value: string) => void;
10
+ avatar: string;
11
+ setAvatar: (value: string) => void;
12
+ loadingAuth: boolean;
13
+ setLoadingAuth: (value: boolean) => void;
14
+ format: string;
15
+ setFormat: (value: string) => void;
16
+ singleShortcut: PickersShortcutsItem<PickerValidValue>[];
17
+ setSingleShortcut: (value: PickersShortcutsItem<PickerValidValue>[]) => void;
18
+ rangeShortcut: PickersShortcutsItem<PickerValidValue>[];
19
+ setRangeShortcut: (value: PickersShortcutsItem<PickerValidValue>[]) => void;
20
+ encrypter: (storage: "session" | "local", key: string, data: string) => void;
21
+ decrypter: (storage: "session" | "local", key: string) => string;
22
+ openUnsaved: boolean;
23
+ setOpenUnsaved: (value: boolean) => void;
24
+ redirect: string;
25
+ setRedirect: (value: string) => void;
26
+ }
27
+ declare const CoreContext: import('react').Context<ICoreContext>;
28
+ export { CoreContext };
@@ -0,0 +1,5 @@
1
+ interface CoreProviderProps {
2
+ children: React.ReactNode;
3
+ }
4
+ declare const CoreProvider: ({ children }: CoreProviderProps) => import("react/jsx-runtime").JSX.Element;
5
+ export { CoreProvider };
@@ -0,0 +1,3 @@
1
+ import { DashboardProps } from '../types/types';
2
+ declare const Dashboard: ({ sidebar, routes, account }: DashboardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Dashboard };
@@ -0,0 +1,11 @@
1
+ interface AccountProps {
2
+ username: string;
3
+ avatarUrl: string;
4
+ options: {
5
+ label: string;
6
+ icon: React.ReactNode;
7
+ onClick: () => void;
8
+ }[];
9
+ }
10
+ declare const Account: ({ username, options }: AccountProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default Account;
@@ -0,0 +1,3 @@
1
+ import { ContentPageProps } from '../../types/types';
2
+ declare const Content: ({ getWidth, state, routes, account }: ContentPageProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Content };
@@ -0,0 +1,2 @@
1
+ declare const Search: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Search;
@@ -0,0 +1,3 @@
1
+ import { CompactItemProps } from '../../types/types';
2
+ declare const CompactItem: ({ items, setState }: CompactItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default CompactItem;
@@ -0,0 +1,3 @@
1
+ import { ContentProps } from '../../types/types';
2
+ declare const Content: ({ state, setState, groups, tooltips }: ContentProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Content;
@@ -0,0 +1,3 @@
1
+ import { ExtendGroupItemProps } from '../../types/types';
2
+ declare const ExtendGroupItem: ({ tooltips, name, items, setState, }: ExtendGroupItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ExtendGroupItem;
@@ -0,0 +1,3 @@
1
+ import { FooterProps } from '../../types/types';
2
+ declare const Footer: ({ state, signOut }: FooterProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Footer;
@@ -0,0 +1,3 @@
1
+ import { HeaderProps } from '../../types/types';
2
+ declare const Header: ({ tooltips, state, setState }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Header;
@@ -0,0 +1,3 @@
1
+ import { SidebarProps } from '../../types/types';
2
+ declare const Sidebar: ({ items, signOut, tooltips, state, setState, getWidth, }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Sidebar };
@@ -0,0 +1,3 @@
1
+ import { SubItemProps } from '../../types/types';
2
+ declare const SubItem: ({ tooltips, items }: SubItemProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { SubItem };
@@ -0,0 +1,12 @@
1
+ import { Language, LoginFormProps } from '../types/types';
2
+ interface SignInProps {
3
+ product: {
4
+ name: string;
5
+ version: string;
6
+ backgroundImage: string;
7
+ };
8
+ languages: Language[];
9
+ form: LoginFormProps;
10
+ }
11
+ declare const SignIn: ({ product, languages, form }: SignInProps) => import("react/jsx-runtime").JSX.Element | null;
12
+ export { SignIn };
@@ -0,0 +1,4 @@
1
+ interface SystemAlertProps {
2
+ }
3
+ declare const SystemAlert: ({}: SystemAlertProps) => import("react/jsx-runtime").JSX.Element;
4
+ export { SystemAlert };
@@ -0,0 +1,3 @@
1
+ import { FormProps } from './types/types';
2
+ declare const Form: ({ title, alert, action, fields, open, setOpen, loading, onClickSave, }: FormProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Form };
@@ -0,0 +1,11 @@
1
+ import { AutoValueItem } from '../types/types';
2
+ interface CustomAutoCompleteFieldProps {
3
+ label: string;
4
+ placeholder: string;
5
+ values: AutoValueItem[];
6
+ value: string[];
7
+ setValue: (newValue: string[]) => void;
8
+ white: boolean;
9
+ }
10
+ declare const AutoCustomCompleteField: ({ label, placeholder, values, value, setValue, white, }: CustomAutoCompleteFieldProps) => import("react/jsx-runtime").JSX.Element;
11
+ export { AutoCustomCompleteField };
@@ -0,0 +1,11 @@
1
+ import { Dayjs } from 'dayjs';
2
+ interface CustomDateRangeCalendarProps {
3
+ initialValue: [Dayjs | null, Dayjs | null];
4
+ value: [Dayjs | null, Dayjs | null];
5
+ setValue: (newValue: [Dayjs | null, Dayjs | null]) => void;
6
+ calendars: 1 | 2 | 3;
7
+ disabled: boolean;
8
+ white: boolean;
9
+ }
10
+ declare const CustomDateRangeCalendar: ({ initialValue, value, setValue, calendars, disabled, white, }: CustomDateRangeCalendarProps) => import("react/jsx-runtime").JSX.Element;
11
+ export { CustomDateRangeCalendar };
@@ -0,0 +1,13 @@
1
+ import { Dayjs } from 'dayjs';
2
+ interface CustomDateRangePickerProps {
3
+ label: string;
4
+ initialValue: [Dayjs | null, Dayjs | null];
5
+ value: [Dayjs | null, Dayjs | null];
6
+ setValue: (newValue: [Dayjs | null, Dayjs | null]) => void;
7
+ calendars: 1 | 2 | 3;
8
+ disabled: boolean;
9
+ white: boolean;
10
+ fullWidth: boolean;
11
+ }
12
+ declare const CustomDateRangePicker: ({ label, initialValue, value, setValue, calendars, disabled, white, fullWidth, }: CustomDateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
13
+ export { CustomDateRangePicker };
@@ -0,0 +1,9 @@
1
+ import { Dayjs } from 'dayjs';
2
+ interface CustomDateRangefieldProps {
3
+ label: string;
4
+ value: [Dayjs | null, Dayjs | null];
5
+ setValue: (newValue: [Dayjs | null, Dayjs | null]) => void;
6
+ disabled: boolean;
7
+ }
8
+ declare const CustomDateRangefield: ({ label, value, setValue, disabled, }: CustomDateRangefieldProps) => import("react/jsx-runtime").JSX.Element;
9
+ export { CustomDateRangefield };
@@ -0,0 +1,12 @@
1
+ import { Dayjs } from 'dayjs';
2
+ interface CustomDatePickerProps {
3
+ label: string;
4
+ initialValue: Dayjs | null;
5
+ value: Dayjs | null;
6
+ setValue: (newValue: Dayjs | null) => void;
7
+ disabled: boolean;
8
+ white: boolean;
9
+ fullWidth: boolean;
10
+ }
11
+ declare const CustomDatePicker: ({ label, initialValue, value, setValue, disabled, white, fullWidth, }: CustomDatePickerProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { CustomDatePicker };
@@ -0,0 +1,12 @@
1
+ import { Dayjs } from 'dayjs';
2
+ interface CustomDatefieldProps {
3
+ label: string;
4
+ initialValue: Dayjs | null;
5
+ value: Dayjs | null;
6
+ setValue: (newValue: Dayjs | null) => void;
7
+ disabled: boolean;
8
+ white: boolean;
9
+ fullWidth: boolean;
10
+ }
11
+ declare const CustomDatefield: ({ label, initialValue, value, setValue, disabled, fullWidth, white, }: CustomDatefieldProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { CustomDatefield };
@@ -0,0 +1,12 @@
1
+ import { Dayjs } from 'dayjs';
2
+ interface CustomTimefieldProps {
3
+ label: string;
4
+ initialValue: Dayjs | null;
5
+ value: Dayjs | null;
6
+ setValue: (newValue: Dayjs | null) => void;
7
+ disabled: boolean;
8
+ white: boolean;
9
+ fullWidth: boolean;
10
+ }
11
+ declare const CustomTimefield: ({ label, initialValue, value, setValue, disabled, fullWidth, white, }: CustomTimefieldProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { CustomTimefield };
@@ -0,0 +1,4 @@
1
+ interface CustomFileFieldProps {
2
+ }
3
+ declare const CustomFieldField: ({}: CustomFileFieldProps) => import("react/jsx-runtime").JSX.Element;
4
+ export { CustomFieldField };
@@ -0,0 +1,3 @@
1
+ import { MultiSelectProps } from './types/types';
2
+ declare const CustomMultiSelect: ({ label, multiValue, setMultiValue, values, placeholder, disabled, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { CustomMultiSelect };
@@ -0,0 +1,3 @@
1
+ import { SelectProps } from './types/types';
2
+ declare const CustomSelect: ({ label, value, setValue, values, placeholder, disabled, fullWidth, white, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { CustomSelect };
@@ -0,0 +1,13 @@
1
+ import { CellBase, Matrix } from 'react-spreadsheet';
2
+ interface SheetProps {
3
+ data: Matrix<CellBase<any>>;
4
+ setData: (data: Matrix<CellBase<any>>) => void;
5
+ columnLabels: string[];
6
+ buttons: {
7
+ label: string;
8
+ icon: string;
9
+ onClick: () => void;
10
+ }[];
11
+ }
12
+ declare const Sheet: ({ data, setData, columnLabels, buttons }: SheetProps) => import("react/jsx-runtime").JSX.Element;
13
+ export { Sheet };
@@ -0,0 +1,6 @@
1
+ import { CustomTreeItem } from '../types/types';
2
+ interface TreeViewProps {
3
+ items: CustomTreeItem[];
4
+ }
5
+ declare const TreeviewField: ({ items }: TreeViewProps) => import("react/jsx-runtime").JSX.Element;
6
+ export { TreeviewField };
@@ -0,0 +1,14 @@
1
+ export { GoodRabbitDarkTheme } from '../themes/GoodRabbitDarkTheme';
2
+ export { GoodRabbitLightTheme } from '../themes/GoodRabbitLightTheme';
3
+ export { Core } from './core/Core';
4
+ export { CoreContext } from './core/context/Context';
5
+ export { CoreProvider } from './core/context/Provider';
6
+ export type { GroupItem, Item, RouteItem, PageProps, Language, } from './core/types/types';
7
+ export { Table } from './table/Table';
8
+ export { useTable } from '../hooks/useTable';
9
+ export { useSystemAlert } from '../hooks/useSystemAlert';
10
+ export { Form } from './form/Form';
11
+ export type { TextFieldForm, SelectFieldForm, DateFieldForm, TimeFieldForm, DatePickerFieldForm, DateRangePickerForm, DateRangeFieldForm, DateRangeCalendarForm, CheckboxFieldForm, CheckboxGroupForm, AutoCompleteFieldForm, ListFieldForm, TreeviewFieldForm, TypographyFieldForm, FormProps, AutoValueItem, RadioGroupForm, RadioFieldForm, SheetFieldForm, } from './form/types/types';
12
+ export type { ValueItem } from './form/select/types/types';
13
+ export type { CustomTreeItem } from './form/types/types';
14
+ export type { Row, Option, TableProps, ITableContext, PaginationModel, TableProviderProps, } from './table/types/types';
@@ -0,0 +1,3 @@
1
+ import { TableProps } from './types/types';
2
+ declare const Table: (props: TableProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Table };
@@ -0,0 +1,3 @@
1
+ import { CustomToolbarProps } from '../types/types';
2
+ declare const CustomToolbar: (props: CustomToolbarProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { CustomToolbar };
@@ -0,0 +1,15 @@
1
+ import { Dayjs } from 'dayjs';
2
+ interface CustomDateRangePickerProps {
3
+ label: string;
4
+ initialValue: [Dayjs | null, Dayjs | null];
5
+ value: [Dayjs | null, Dayjs | null];
6
+ setValue: (newValue: [Dayjs | null, Dayjs | null]) => void;
7
+ calendars: 1 | 2 | 3;
8
+ disabled: boolean;
9
+ white: boolean;
10
+ fullWidth: boolean;
11
+ maxDate: Dayjs | undefined;
12
+ minDate: Dayjs | undefined;
13
+ }
14
+ declare const CustomDateRangePicker: ({ label, initialValue, value, setValue, calendars, disabled, white, fullWidth, maxDate, minDate, }: CustomDateRangePickerProps) => import("react/jsx-runtime").JSX.Element;
15
+ export { CustomDateRangePicker };
@@ -0,0 +1,10 @@
1
+ import { Dayjs } from 'dayjs';
2
+ interface CustomDateRangefieldProps {
3
+ label: string;
4
+ value: [Dayjs | null, Dayjs | null];
5
+ setValue: (newValue: [Dayjs | null, Dayjs | null]) => void;
6
+ disabled: boolean;
7
+ fullWidth: boolean;
8
+ }
9
+ declare const CustomDateRangefield: ({ label, value, setValue, disabled, fullWidth, }: CustomDateRangefieldProps) => import("react/jsx-runtime").JSX.Element;
10
+ export { CustomDateRangefield };
@@ -0,0 +1,12 @@
1
+ import { Dayjs } from 'dayjs';
2
+ interface CustomDatePickerProps {
3
+ label: string;
4
+ initialValue: Dayjs | null;
5
+ value: Dayjs | null;
6
+ setValue: (newValue: Dayjs | null) => void;
7
+ disabled: boolean;
8
+ white: boolean;
9
+ fullWidth: boolean;
10
+ }
11
+ declare const CustomDatePicker: ({ label, initialValue, value, setValue, disabled, white, fullWidth, }: CustomDatePickerProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { CustomDatePicker };
@@ -0,0 +1,11 @@
1
+ import { Dayjs } from 'dayjs';
2
+ interface CustomDatefieldProps {
3
+ label: string;
4
+ value: Dayjs | null;
5
+ setValue: (newValue: Dayjs | null) => void;
6
+ disabled: boolean;
7
+ white: boolean;
8
+ fullWidth: boolean;
9
+ }
10
+ declare const CustomDatefield: ({ label, value, setValue, disabled, fullWidth, white, }: CustomDatefieldProps) => import("react/jsx-runtime").JSX.Element;
11
+ export { CustomDatefield };
@@ -0,0 +1,3 @@
1
+ import { MultiSelectProps } from './types/types';
2
+ declare const CustomMultiSelect: ({ label, value, setValue, values, placeholder, disabled, fullWidth, white, search, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { CustomMultiSelect };
@@ -0,0 +1,3 @@
1
+ import { SelectProps } from './types/types';
2
+ declare const CustomSelect: ({ label, values, placeholder, value, setValue, disabled, fullWidth, white, search, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { CustomSelect };
@@ -0,0 +1,2 @@
1
+ declare const useForm: () => {};
2
+ export { useForm };
@@ -0,0 +1,6 @@
1
+ import { TypeState } from '../components/core/types/types';
2
+ export declare const useSidebar: () => {
3
+ state: TypeState;
4
+ setState: import('react').Dispatch<import('react').SetStateAction<TypeState>>;
5
+ getWidth: (state: TypeState) => "105px" | "250px" | "455px";
6
+ };
@@ -0,0 +1,6 @@
1
+ import { SnackbarKey } from 'notistack';
2
+ declare const useSystemAlert: () => {
3
+ showAlert: (severity: "error" | "info" | "success" | "warning" | "default", message: string) => SnackbarKey;
4
+ closeAlert: (key: SnackbarKey) => void;
5
+ };
6
+ export { useSystemAlert };
@@ -0,0 +1,18 @@
1
+ import { PaginationModel } from '../components/main';
2
+ import { GridRowSelectionModel } from '@mui/x-data-grid';
3
+ import { ContextMenu, OptionGroup } from '../components/table/types/types';
4
+ export declare const useTable: () => {
5
+ apiRef: import('react').RefObject<import('@mui/x-data-grid-pro').GridApiPro | null>;
6
+ rows: any[];
7
+ setRows: import('react').Dispatch<import('react').SetStateAction<any[]>>;
8
+ loading: boolean;
9
+ setLoading: import('react').Dispatch<import('react').SetStateAction<boolean>>;
10
+ paginationModel: PaginationModel;
11
+ setPaginationModel: import('react').Dispatch<import('react').SetStateAction<PaginationModel>>;
12
+ rowSelectionModel: GridRowSelectionModel;
13
+ setRowSelectionModel: import('react').Dispatch<import('react').SetStateAction<GridRowSelectionModel>>;
14
+ contextMenu: ContextMenu | null;
15
+ setContextMenu: import('react').Dispatch<import('react').SetStateAction<ContextMenu | null>>;
16
+ optionGroup: OptionGroup;
17
+ setOptionGroup: import('react').Dispatch<import('react').SetStateAction<OptionGroup>>;
18
+ };
File without changes
@@ -0,0 +1,35 @@
1
+ declare const TimekeeperItems: ({
2
+ name: undefined;
3
+ items: {
4
+ title: string;
5
+ color: string;
6
+ icon: import("react/jsx-runtime").JSX.Element;
7
+ path: string;
8
+ view: string;
9
+ subgroups: never[];
10
+ }[];
11
+ } | {
12
+ name: string;
13
+ items: {
14
+ title: string;
15
+ color: string;
16
+ icon: import("react/jsx-runtime").JSX.Element;
17
+ path: string;
18
+ view: string;
19
+ subgroups: {
20
+ title: string;
21
+ path: string;
22
+ }[];
23
+ }[];
24
+ })[];
25
+ declare const EasyManagerItems: {
26
+ name: undefined;
27
+ items: {
28
+ title: string;
29
+ color: string;
30
+ icon: import("react/jsx-runtime").JSX.Element;
31
+ path: string;
32
+ subgroups: never[];
33
+ }[];
34
+ }[];
35
+ export { TimekeeperItems, EasyManagerItems };
@@ -0,0 +1,3 @@
1
+ import { Row } from '../components/table/types/types';
2
+ declare const WorkerRows: Row[];
3
+ export { WorkerRows };
@@ -0,0 +1,3 @@
1
+ import { PageProps } from '../components/core/types/types';
2
+ declare const Home: ({ location, navigate }: PageProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Home };
@@ -0,0 +1,3 @@
1
+ import { PageProps } from '../components/core/types/types';
2
+ declare const Timekeeper: ({ location, navigate }: PageProps) => import("react/jsx-runtime").JSX.Element;
3
+ export { Timekeeper };
@@ -0,0 +1,12 @@
1
+ import { Language, LoginFormProps, Product, RouteItem } from '../components/core/types/types';
2
+ interface SignInProps {
3
+ product: Product;
4
+ languages: Language[];
5
+ form: LoginFormProps;
6
+ }
7
+ interface PostSignInProps {
8
+ routes: RouteItem[];
9
+ }
10
+ declare const PrevSignIn: ({ product, languages, form }: SignInProps) => import("react/jsx-runtime").JSX.Element;
11
+ declare const PostSignIn: ({ routes }: PostSignInProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { PrevSignIn, PostSignIn };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ declare const GoodRabbitButtons: {
2
+ styleOverrides: {
3
+ contained: {
4
+ fontSize: string;
5
+ minWidth: string;
6
+ borderRadius: string;
7
+ height: string;
8
+ maxHeight: string;
9
+ display: string;
10
+ alignItems: string;
11
+ justifyContent: string;
12
+ textAlign: string;
13
+ lineHeight: string;
14
+ padding: string;
15
+ "& .MuiButton-endIcon": {
16
+ marginTop: string;
17
+ display: string;
18
+ alignItems: string;
19
+ justifyContent: string;
20
+ "& > *": {
21
+ fontSize: string;
22
+ };
23
+ };
24
+ "&.Mui-disabled, &[data-loading='true']": {
25
+ backgroundColor: string;
26
+ color: string;
27
+ boxShadow: string;
28
+ };
29
+ };
30
+ };
31
+ };
32
+ export { GoodRabbitButtons };