@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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scmlatam/web-ui",
3
3
  "private": false,
4
- "version": "0.1.97",
4
+ "version": "0.1.98",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -34,20 +34,23 @@
34
34
  "@emotion/styled": "^11.14.1",
35
35
  "@mui/icons-material": "^9.0.0",
36
36
  "@mui/material": "^9.0.0",
37
- "@mui/x-data-grid-pro": "^9.0.2",
38
- "@mui/x-date-pickers": "^9.0.2",
39
- "@mui/x-date-pickers-pro": "^9.0.2",
40
- "@mui/x-tree-view": "^9.0.2",
37
+ "@mui/x-data-grid-pro": "^9.0.4",
38
+ "@mui/x-date-pickers": "^9.0.4",
39
+ "@mui/x-date-pickers-pro": "^9.0.4",
40
+ "@mui/x-tree-view": "^9.0.4",
41
41
  "dayjs": "^1.11.20",
42
42
  "notistack": "^3.0.2",
43
43
  "react": "^19.2.5",
44
44
  "react-dom": "^19.2.5",
45
45
  "react-draggable": "^4.5.0",
46
46
  "react-icons": "^5.6.0",
47
- "react-router": "^7.14.2",
47
+ "react-router": "^7.15.0",
48
48
  "react-spreadsheet": "^0.10.1"
49
49
  },
50
- "dependencies": {},
50
+ "dependencies": {
51
+ "@azure/msal-browser": "^5.9.0",
52
+ "@azure/msal-react": "^5.3.2"
53
+ },
51
54
  "devDependencies": {
52
55
  "@eslint/js": "^10.0.1",
53
56
  "@types/node": "^25.6.0",
@@ -55,14 +58,14 @@
55
58
  "@types/react-dom": "^19.2.3",
56
59
  "@vitejs/plugin-react": "^6.0.1",
57
60
  "ajv": "^8.20.0",
58
- "eslint": "^10.2.1",
61
+ "eslint": "^10.3.0",
59
62
  "eslint-plugin-react-hooks": "^7.1.1",
60
63
  "eslint-plugin-react-refresh": "^0.5.2",
61
- "globals": "^17.5.0",
64
+ "globals": "^17.6.0",
62
65
  "typescript": "~6.0.3",
63
- "typescript-eslint": "^8.59.0",
66
+ "typescript-eslint": "^8.59.2",
64
67
  "vite": "^8.0.10",
65
- "vite-plugin-dts": "^4.5.4",
68
+ "vite-plugin-dts": "^5.0.0",
66
69
  "vite-plugin-svgr": "^5.2.0"
67
70
  }
68
71
  }
package/dist/web-ui.d.ts DELETED
@@ -1,178 +0,0 @@
1
- import { AutoCompleteFieldForm } from './form/types/types';
2
- import { AutoValueItem } from './form/types/types';
3
- import { CheckboxFieldForm } from './form/types/types';
4
- import { CheckboxGroupForm } from './form/types/types';
5
- import { Context } from 'react';
6
- import { ContextMenu } from '../components/table/types/types';
7
- import { CoreProps } from './types/types';
8
- import { CustomTreeItem } from './form/types/types';
9
- import { DateFieldForm } from './form/types/types';
10
- import { DatePickerFieldForm } from './form/types/types';
11
- import { DateRangeCalendarForm } from './form/types/types';
12
- import { DateRangeFieldForm } from './form/types/types';
13
- import { DateRangePickerForm } from './form/types/types';
14
- import { Dispatch } from 'react';
15
- import { FormProps } from './form/types/types';
16
- import { FormProps as FormProps_2 } from './types/types';
17
- import { GridApiPro } from '@mui/x-data-grid-pro';
18
- import { GridRowSelectionModel } from '@mui/x-data-grid';
19
- import { GroupItem } from './core/types/types';
20
- import { ITableContext } from './table/types/types';
21
- import { Item } from './core/types/types';
22
- import { JSX } from 'react/jsx-runtime';
23
- import { Language } from './core/types/types';
24
- import { ListFieldForm } from './form/types/types';
25
- import { Option as Option_2 } from './table/types/types';
26
- import { OptionGroup } from '../components/table/types/types';
27
- import { PageProps } from './core/types/types';
28
- import { PaginationModel } from './table/types/types';
29
- import { PickersShortcutsItem } from '@mui/x-date-pickers';
30
- import { PickerValidValue } from '@mui/x-date-pickers/internals';
31
- import { RadioFieldForm } from './form/types/types';
32
- import { RadioGroupForm } from './form/types/types';
33
- import { RefObject } from 'react';
34
- import { RouteItem } from './core/types/types';
35
- import { Row } from './table/types/types';
36
- import { SelectFieldForm } from './form/types/types';
37
- import { SetStateAction } from 'react';
38
- import { SheetFieldForm } from './form/types/types';
39
- import { SnackbarKey } from 'notistack';
40
- import { TableProps } from './table/types/types';
41
- import { TableProps as TableProps_2 } from './types/types';
42
- import { TableProviderProps } from './table/types/types';
43
- import { TextFieldForm } from './form/types/types';
44
- import { Theme } from '@mui/material';
45
- import { TimeFieldForm } from './form/types/types';
46
- import { TreeviewFieldForm } from './form/types/types';
47
- import { TypographyFieldForm } from './form/types/types';
48
- import { ValueItem } from './form/select/types/types';
49
-
50
- export { AutoCompleteFieldForm }
51
-
52
- export { AutoValueItem }
53
-
54
- export { CheckboxFieldForm }
55
-
56
- export { CheckboxGroupForm }
57
-
58
- export declare const Core: ({ sidebar, routes, product, account, languages, loginForm: form, unsavedChangesAlert, }: CoreProps) => JSX.Element;
59
-
60
- export declare const CoreContext: Context<ICoreContext>;
61
-
62
- export declare const CoreProvider: ({ children }: CoreProviderProps) => JSX.Element;
63
-
64
- declare interface CoreProviderProps {
65
- children: React.ReactNode;
66
- }
67
-
68
- export { CustomTreeItem }
69
-
70
- export { DateFieldForm }
71
-
72
- export { DatePickerFieldForm }
73
-
74
- export { DateRangeCalendarForm }
75
-
76
- export { DateRangeFieldForm }
77
-
78
- export { DateRangePickerForm }
79
-
80
- export declare const Form: ({ title, alert, action, fields, open, setOpen, loading, onClickSave, }: FormProps_2) => JSX.Element;
81
-
82
- export { FormProps }
83
-
84
- export declare const GoodRabbitDarkTheme: Theme;
85
-
86
- export declare const GoodRabbitLightTheme: Theme;
87
-
88
- export { GroupItem }
89
-
90
- declare interface ICoreContext {
91
- isAuthenticated: boolean;
92
- setIsAuthenticated: (value: boolean) => void;
93
- user: string;
94
- setUser: (value: string) => void;
95
- pass: string;
96
- setPass: (value: string) => void;
97
- avatar: string;
98
- setAvatar: (value: string) => void;
99
- loadingAuth: boolean;
100
- setLoadingAuth: (value: boolean) => void;
101
- format: string;
102
- setFormat: (value: string) => void;
103
- singleShortcut: PickersShortcutsItem<PickerValidValue>[];
104
- setSingleShortcut: (value: PickersShortcutsItem<PickerValidValue>[]) => void;
105
- rangeShortcut: PickersShortcutsItem<PickerValidValue>[];
106
- setRangeShortcut: (value: PickersShortcutsItem<PickerValidValue>[]) => void;
107
- encrypter: (storage: "session" | "local", key: string, data: string) => void;
108
- decrypter: (storage: "session" | "local", key: string) => string;
109
- openUnsaved: boolean;
110
- setOpenUnsaved: (value: boolean) => void;
111
- redirect: string;
112
- setRedirect: (value: string) => void;
113
- }
114
-
115
- export { ITableContext }
116
-
117
- export { Item }
118
-
119
- export { Language }
120
-
121
- export { ListFieldForm }
122
-
123
- export { Option_2 as Option }
124
-
125
- export { PageProps }
126
-
127
- export { PaginationModel }
128
-
129
- export { RadioFieldForm }
130
-
131
- export { RadioGroupForm }
132
-
133
- export { RouteItem }
134
-
135
- export { Row }
136
-
137
- export { SelectFieldForm }
138
-
139
- export { SheetFieldForm }
140
-
141
- export declare const Table: (props: TableProps_2) => JSX.Element;
142
-
143
- export { TableProps }
144
-
145
- export { TableProviderProps }
146
-
147
- export { TextFieldForm }
148
-
149
- export { TimeFieldForm }
150
-
151
- export { TreeviewFieldForm }
152
-
153
- export { TypographyFieldForm }
154
-
155
- export declare const useSystemAlert: () => {
156
- showAlert: (severity: "error" | "info" | "success" | "warning" | "default", message: string) => SnackbarKey;
157
- closeAlert: (key: SnackbarKey) => void;
158
- };
159
-
160
- export declare const useTable: () => {
161
- apiRef: RefObject<GridApiPro | null>;
162
- rows: any[];
163
- setRows: Dispatch<SetStateAction<any[]>>;
164
- loading: boolean;
165
- setLoading: Dispatch<SetStateAction<boolean>>;
166
- paginationModel: PaginationModel;
167
- setPaginationModel: Dispatch<SetStateAction<PaginationModel>>;
168
- rowSelectionModel: GridRowSelectionModel;
169
- setRowSelectionModel: Dispatch<SetStateAction<GridRowSelectionModel>>;
170
- contextMenu: ContextMenu | null;
171
- setContextMenu: Dispatch<SetStateAction<ContextMenu | null>>;
172
- optionGroup: OptionGroup;
173
- setOptionGroup: Dispatch<SetStateAction<OptionGroup>>;
174
- };
175
-
176
- export { ValueItem }
177
-
178
- export { }