@luminix/mui-cms 0.0.1-beta.0

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 (112) hide show
  1. package/.eslintrc.cjs +18 -0
  2. package/README.md +30 -0
  3. package/bundle/mui-cms.bundle.iife.js +196 -0
  4. package/bundle/style.css +1 -0
  5. package/bundle/vite.svg +1 -0
  6. package/dist/mui-cms.js +3163 -0
  7. package/dist/vite.svg +1 -0
  8. package/package.json +46 -0
  9. package/tsconfig.json +25 -0
  10. package/tsconfig.node.json +11 -0
  11. package/types/components/Breadcrumbs.d.ts +3 -0
  12. package/types/components/DesktopPageTitle.d.ts +2 -0
  13. package/types/components/Layout/AppBar/MenuButton.d.ts +3 -0
  14. package/types/components/Layout/AppBar.d.ts +4 -0
  15. package/types/components/Layout/BackButton.d.ts +4 -0
  16. package/types/components/Layout/Drawer.d.ts +4 -0
  17. package/types/components/Layout/SearchBar.d.ts +4 -0
  18. package/types/components/Link.d.ts +7 -0
  19. package/types/components/LuminixCms.d.ts +4 -0
  20. package/types/components/ModelIndex/Filter/Content.d.ts +3 -0
  21. package/types/components/ModelIndex/Filter/Row.d.ts +4 -0
  22. package/types/components/ModelIndex/Filter/ValueInput/AsyncAutocomplete.d.ts +3 -0
  23. package/types/components/ModelIndex/Filter/ValueInput/DatePicker.d.ts +4 -0
  24. package/types/components/ModelIndex/Filter/ValueInput/Switch.d.ts +3 -0
  25. package/types/components/ModelIndex/Filter/ValueInput/TextField.d.ts +4 -0
  26. package/types/components/ModelIndex/Filter/ValueInput.d.ts +3 -0
  27. package/types/components/ModelIndex/Filter/useRow.d.ts +19 -0
  28. package/types/components/ModelIndex/Filter.d.ts +3 -0
  29. package/types/components/ModelIndex/InstanceActions.d.ts +5 -0
  30. package/types/components/ModelIndex/MassActions.d.ts +4 -0
  31. package/types/components/ModelIndex/Pagination.d.ts +4 -0
  32. package/types/components/ModelIndex/PaginationDetails.d.ts +3 -0
  33. package/types/components/ModelIndex/PerPageSwitch.d.ts +3 -0
  34. package/types/components/ModelIndex/Sort.d.ts +3 -0
  35. package/types/components/ModelIndex/StaticActions.d.ts +4 -0
  36. package/types/components/ModelIndex/Table/ShrinkedCell.d.ts +4 -0
  37. package/types/components/ModelIndex/Table/TableBody/Skeleton.d.ts +3 -0
  38. package/types/components/ModelIndex/Table/TableBody/TableRow.d.ts +4 -0
  39. package/types/components/ModelIndex/Table/TableBody.d.ts +4 -0
  40. package/types/components/ModelIndex/Table/TableFooter.d.ts +4 -0
  41. package/types/components/ModelIndex/Table/TableHead.d.ts +4 -0
  42. package/types/components/ModelIndex/Table/TableToolbar.d.ts +3 -0
  43. package/types/components/ModelIndex/Table.d.ts +4 -0
  44. package/types/components/ModelIndex/Tabs.d.ts +3 -0
  45. package/types/components/RecursiveList.d.ts +4 -0
  46. package/types/components/RecursiveMenu.d.ts +4 -0
  47. package/types/contexts/DialogContext.d.ts +4 -0
  48. package/types/contexts/LayoutContext.d.ts +4 -0
  49. package/types/contexts/ModelContext.d.ts +4 -0
  50. package/types/contexts/ModelFilterContext.d.ts +4 -0
  51. package/types/contexts/ModelFilterRowContext.d.ts +4 -0
  52. package/types/contexts/NotificationContext.d.ts +4 -0
  53. package/types/contexts/TableContext.d.ts +4 -0
  54. package/types/dist.d.ts +3 -0
  55. package/types/facades/Cms.d.ts +31 -0
  56. package/types/facades/Filter.d.ts +24 -0
  57. package/types/hooks/useActionEvent.d.ts +2 -0
  58. package/types/hooks/useBackButton.d.ts +6 -0
  59. package/types/hooks/useCurrentModel.d.ts +1 -0
  60. package/types/hooks/useDialog.d.ts +1 -0
  61. package/types/hooks/useDisplaceNotifications.d.ts +1 -0
  62. package/types/hooks/useHandleError.d.ts +1 -0
  63. package/types/hooks/useHasBackButton.d.ts +6 -0
  64. package/types/hooks/useHasSearch.d.ts +7 -0
  65. package/types/hooks/useIsDesktopMode.d.ts +7 -0
  66. package/types/hooks/useKeyChord.d.ts +1 -0
  67. package/types/hooks/useKeyPress.d.ts +1 -0
  68. package/types/hooks/useLayoutConfig.d.ts +8 -0
  69. package/types/hooks/useMenu.d.ts +12 -0
  70. package/types/hooks/useNotifications.d.ts +1 -0
  71. package/types/hooks/useNotify.d.ts +1 -0
  72. package/types/hooks/useOptimistic.d.ts +32 -0
  73. package/types/hooks/usePageTitle.d.ts +7 -0
  74. package/types/hooks/useSearch.d.ts +6 -0
  75. package/types/hooks/useSelection.d.ts +10 -0
  76. package/types/hooks/useSetPageTitle.d.ts +8 -0
  77. package/types/hooks/useTable.d.ts +1 -0
  78. package/types/index.d.ts +2 -0
  79. package/types/main.d.ts +0 -0
  80. package/types/plugins/CmsPlugin.d.ts +18 -0
  81. package/types/plugins/i18NextPlugin.d.ts +19 -0
  82. package/types/providers/DialogProvider.d.ts +4 -0
  83. package/types/providers/LayoutProvider.d.ts +5 -0
  84. package/types/providers/ModelProvider.d.ts +3 -0
  85. package/types/providers/NotificationProvider.d.ts +4 -0
  86. package/types/providers/TableProvider.d.ts +4 -0
  87. package/types/routes.d.ts +3 -0
  88. package/types/support/ModelIndex/Filter/inputs.d.ts +4 -0
  89. package/types/support/ModelIndex/Filter/searchParams.d.ts +18 -0
  90. package/types/support/ModelIndex/relation.d.ts +4 -0
  91. package/types/support/array.d.ts +9 -0
  92. package/types/support/date.d.ts +1 -0
  93. package/types/support/error.d.ts +2 -0
  94. package/types/support/handlers.d.ts +9 -0
  95. package/types/support/misc.d.ts +16 -0
  96. package/types/support/searchParams.d.ts +1 -0
  97. package/types/types/Config.d.ts +13 -0
  98. package/types/types/Contexts.d.ts +72 -0
  99. package/types/types/Dialog.d.ts +9 -0
  100. package/types/types/Filter.d.ts +20 -0
  101. package/types/types/Menu.d.ts +11 -0
  102. package/types/types/Notifications.d.ts +13 -0
  103. package/types/types/Plugin.d.ts +8 -0
  104. package/types/types/PropTypes.d.ts +100 -0
  105. package/types/types/Reducers.d.ts +4 -0
  106. package/types/types/Table.d.ts +41 -0
  107. package/types/types/Tabs.d.ts +4 -0
  108. package/types/views/Dashboard.d.ts +3 -0
  109. package/types/views/Error.d.ts +4 -0
  110. package/types/views/Layout/Layout.d.ts +4 -0
  111. package/types/views/ModelIndex.d.ts +3 -0
  112. package/types/views/ModelItem.d.ts +4 -0
package/.eslintrc.cjs ADDED
@@ -0,0 +1,18 @@
1
+ module.exports = {
2
+ root: true,
3
+ env: { browser: true, es2020: true },
4
+ extends: [
5
+ 'eslint:recommended',
6
+ 'plugin:@typescript-eslint/recommended',
7
+ 'plugin:react-hooks/recommended',
8
+ ],
9
+ ignorePatterns: ['dist', '.eslintrc.cjs'],
10
+ parser: '@typescript-eslint/parser',
11
+ plugins: ['react-refresh'],
12
+ rules: {
13
+ 'react-refresh/only-export-components': [
14
+ 'warn',
15
+ { allowConstantExport: true },
16
+ ],
17
+ },
18
+ }
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
+
14
+ - Configure the top-level `parserOptions` property like this:
15
+
16
+ ```js
17
+ export default {
18
+ // other rules...
19
+ parserOptions: {
20
+ ecmaVersion: 'latest',
21
+ sourceType: 'module',
22
+ project: ['./tsconfig.json', './tsconfig.node.json'],
23
+ tsconfigRootDir: __dirname,
24
+ },
25
+ }
26
+ ```
27
+
28
+ - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
29
+ - Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
30
+ - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list