@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.
- package/.eslintrc.cjs +18 -0
- package/README.md +30 -0
- package/bundle/mui-cms.bundle.iife.js +196 -0
- package/bundle/style.css +1 -0
- package/bundle/vite.svg +1 -0
- package/dist/mui-cms.js +3163 -0
- package/dist/vite.svg +1 -0
- package/package.json +46 -0
- package/tsconfig.json +25 -0
- package/tsconfig.node.json +11 -0
- package/types/components/Breadcrumbs.d.ts +3 -0
- package/types/components/DesktopPageTitle.d.ts +2 -0
- package/types/components/Layout/AppBar/MenuButton.d.ts +3 -0
- package/types/components/Layout/AppBar.d.ts +4 -0
- package/types/components/Layout/BackButton.d.ts +4 -0
- package/types/components/Layout/Drawer.d.ts +4 -0
- package/types/components/Layout/SearchBar.d.ts +4 -0
- package/types/components/Link.d.ts +7 -0
- package/types/components/LuminixCms.d.ts +4 -0
- package/types/components/ModelIndex/Filter/Content.d.ts +3 -0
- package/types/components/ModelIndex/Filter/Row.d.ts +4 -0
- package/types/components/ModelIndex/Filter/ValueInput/AsyncAutocomplete.d.ts +3 -0
- package/types/components/ModelIndex/Filter/ValueInput/DatePicker.d.ts +4 -0
- package/types/components/ModelIndex/Filter/ValueInput/Switch.d.ts +3 -0
- package/types/components/ModelIndex/Filter/ValueInput/TextField.d.ts +4 -0
- package/types/components/ModelIndex/Filter/ValueInput.d.ts +3 -0
- package/types/components/ModelIndex/Filter/useRow.d.ts +19 -0
- package/types/components/ModelIndex/Filter.d.ts +3 -0
- package/types/components/ModelIndex/InstanceActions.d.ts +5 -0
- package/types/components/ModelIndex/MassActions.d.ts +4 -0
- package/types/components/ModelIndex/Pagination.d.ts +4 -0
- package/types/components/ModelIndex/PaginationDetails.d.ts +3 -0
- package/types/components/ModelIndex/PerPageSwitch.d.ts +3 -0
- package/types/components/ModelIndex/Sort.d.ts +3 -0
- package/types/components/ModelIndex/StaticActions.d.ts +4 -0
- package/types/components/ModelIndex/Table/ShrinkedCell.d.ts +4 -0
- package/types/components/ModelIndex/Table/TableBody/Skeleton.d.ts +3 -0
- package/types/components/ModelIndex/Table/TableBody/TableRow.d.ts +4 -0
- package/types/components/ModelIndex/Table/TableBody.d.ts +4 -0
- package/types/components/ModelIndex/Table/TableFooter.d.ts +4 -0
- package/types/components/ModelIndex/Table/TableHead.d.ts +4 -0
- package/types/components/ModelIndex/Table/TableToolbar.d.ts +3 -0
- package/types/components/ModelIndex/Table.d.ts +4 -0
- package/types/components/ModelIndex/Tabs.d.ts +3 -0
- package/types/components/RecursiveList.d.ts +4 -0
- package/types/components/RecursiveMenu.d.ts +4 -0
- package/types/contexts/DialogContext.d.ts +4 -0
- package/types/contexts/LayoutContext.d.ts +4 -0
- package/types/contexts/ModelContext.d.ts +4 -0
- package/types/contexts/ModelFilterContext.d.ts +4 -0
- package/types/contexts/ModelFilterRowContext.d.ts +4 -0
- package/types/contexts/NotificationContext.d.ts +4 -0
- package/types/contexts/TableContext.d.ts +4 -0
- package/types/dist.d.ts +3 -0
- package/types/facades/Cms.d.ts +31 -0
- package/types/facades/Filter.d.ts +24 -0
- package/types/hooks/useActionEvent.d.ts +2 -0
- package/types/hooks/useBackButton.d.ts +6 -0
- package/types/hooks/useCurrentModel.d.ts +1 -0
- package/types/hooks/useDialog.d.ts +1 -0
- package/types/hooks/useDisplaceNotifications.d.ts +1 -0
- package/types/hooks/useHandleError.d.ts +1 -0
- package/types/hooks/useHasBackButton.d.ts +6 -0
- package/types/hooks/useHasSearch.d.ts +7 -0
- package/types/hooks/useIsDesktopMode.d.ts +7 -0
- package/types/hooks/useKeyChord.d.ts +1 -0
- package/types/hooks/useKeyPress.d.ts +1 -0
- package/types/hooks/useLayoutConfig.d.ts +8 -0
- package/types/hooks/useMenu.d.ts +12 -0
- package/types/hooks/useNotifications.d.ts +1 -0
- package/types/hooks/useNotify.d.ts +1 -0
- package/types/hooks/useOptimistic.d.ts +32 -0
- package/types/hooks/usePageTitle.d.ts +7 -0
- package/types/hooks/useSearch.d.ts +6 -0
- package/types/hooks/useSelection.d.ts +10 -0
- package/types/hooks/useSetPageTitle.d.ts +8 -0
- package/types/hooks/useTable.d.ts +1 -0
- package/types/index.d.ts +2 -0
- package/types/main.d.ts +0 -0
- package/types/plugins/CmsPlugin.d.ts +18 -0
- package/types/plugins/i18NextPlugin.d.ts +19 -0
- package/types/providers/DialogProvider.d.ts +4 -0
- package/types/providers/LayoutProvider.d.ts +5 -0
- package/types/providers/ModelProvider.d.ts +3 -0
- package/types/providers/NotificationProvider.d.ts +4 -0
- package/types/providers/TableProvider.d.ts +4 -0
- package/types/routes.d.ts +3 -0
- package/types/support/ModelIndex/Filter/inputs.d.ts +4 -0
- package/types/support/ModelIndex/Filter/searchParams.d.ts +18 -0
- package/types/support/ModelIndex/relation.d.ts +4 -0
- package/types/support/array.d.ts +9 -0
- package/types/support/date.d.ts +1 -0
- package/types/support/error.d.ts +2 -0
- package/types/support/handlers.d.ts +9 -0
- package/types/support/misc.d.ts +16 -0
- package/types/support/searchParams.d.ts +1 -0
- package/types/types/Config.d.ts +13 -0
- package/types/types/Contexts.d.ts +72 -0
- package/types/types/Dialog.d.ts +9 -0
- package/types/types/Filter.d.ts +20 -0
- package/types/types/Menu.d.ts +11 -0
- package/types/types/Notifications.d.ts +13 -0
- package/types/types/Plugin.d.ts +8 -0
- package/types/types/PropTypes.d.ts +100 -0
- package/types/types/Reducers.d.ts +4 -0
- package/types/types/Table.d.ts +41 -0
- package/types/types/Tabs.d.ts +4 -0
- package/types/views/Dashboard.d.ts +3 -0
- package/types/views/Error.d.ts +4 -0
- package/types/views/Layout/Layout.d.ts +4 -0
- package/types/views/ModelIndex.d.ts +3 -0
- 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
|