@js-smart/react-kit 5.12.0-beta.4 → 5.13.0-beta.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.
- package/index.cjs +74 -0
- package/{react-kit/src/index.ts → index.d.ts} +9 -16
- package/index.js +75 -0
- package/index.mjs +6326 -0
- package/lib/components/CenteredCircularProgress.d.ts +7 -0
- package/lib/components/ConfirmationDialog.d.ts +11 -0
- package/lib/components/DismissibleAlert.d.ts +17 -0
- package/lib/components/NextLink.d.ts +17 -0
- package/lib/components/OpenInNewIconLink.d.ts +17 -0
- package/lib/components/ReactIf.d.ts +36 -0
- package/lib/components/buttons/CancelButton.d.ts +28 -0
- package/lib/components/buttons/DeleteButton.d.ts +16 -0
- package/lib/components/buttons/EditIconButton.d.ts +8 -0
- package/lib/components/buttons/ExcelButton.d.ts +26 -0
- package/lib/components/buttons/GoBackButton.d.ts +10 -0
- package/lib/components/buttons/HistoryButton.d.ts +28 -0
- package/lib/components/buttons/LoadingSuccessButton.d.ts +28 -0
- package/lib/components/buttons/ManageButton.d.ts +14 -0
- package/lib/components/buttons/SuccessButton.d.ts +28 -0
- package/lib/components/snack-bar/AppSnackBar.d.ts +6 -0
- package/lib/components/snack-bar/QuerySnackBar.d.ts +18 -0
- package/lib/components/table/TablePaginationActions.d.ts +9 -0
- package/lib/components/tabs/TabPanel.d.ts +12 -0
- package/lib/config/fetch/FetchClient.d.ts +58 -0
- package/lib/config/fetch/FetchClientTypes.d.ts +39 -0
- package/lib/config/fetch/FetchInterceptor.d.ts +21 -0
- package/lib/constants/AppConstants.d.ts +15 -0
- package/lib/constants/HttpConstants.d.ts +13 -0
- package/lib/types/ProgressState.d.ts +7 -0
- package/lib/utils/BooleanUtils.d.ts +7 -0
- package/{react-kit/src/lib/utils/CssUtils.ts → lib/utils/CssUtils.d.ts} +1 -3
- package/lib/utils/DateUtils.d.ts +22 -0
- package/lib/utils/NumberUtils.d.ts +7 -0
- package/lib/utils/ProgressStateUtils.d.ts +38 -0
- package/lib/utils/StringUtils.d.ts +7 -0
- package/lib/utils/UrlUtils.d.ts +11 -0
- package/lib/utils/fetchClient.d.ts +12 -0
- package/package.json +31 -86
- package/.editorconfig +0 -13
- package/.eslintignore +0 -1
- package/.eslintrc.json +0 -41
- package/.github/copilot-instructions.md +0 -11
- package/.github/workflows/build.yml +0 -45
- package/.github/workflows/release.yml +0 -65
- package/.prettierignore +0 -5
- package/.prettierrc +0 -9
- package/.vscode/extensions.json +0 -7
- package/CHANGELOG.md +0 -24
- package/CODE_OF_CONDUCT.md +0 -128
- package/FUNDING.yml +0 -1
- package/LICENSE +0 -21
- package/README.md +0 -1
- package/apps/react-kit-demo/.eslintrc.json +0 -22
- package/apps/react-kit-demo/index.html +0 -16
- package/apps/react-kit-demo/project.json +0 -9
- package/apps/react-kit-demo/public/favicon.ico +0 -0
- package/apps/react-kit-demo/src/app/Home.tsx +0 -17
- package/apps/react-kit-demo/src/app/all-books/AllBooks.tsx +0 -68
- package/apps/react-kit-demo/src/app/app.module.scss +0 -1
- package/apps/react-kit-demo/src/app/app.tsx +0 -29
- package/apps/react-kit-demo/src/app/buttons/ButtonsDemo.tsx +0 -58
- package/apps/react-kit-demo/src/app/dialog/DialogDemo.tsx +0 -23
- package/apps/react-kit-demo/src/app/links/LinksDemo.tsx +0 -20
- package/apps/react-kit-demo/src/app/progress-bar/CenterCircularProgressDemo.tsx +0 -10
- package/apps/react-kit-demo/src/app/react-if/ReactIfDemo.tsx +0 -44
- package/apps/react-kit-demo/src/app/snack-bar/SnackBarDemo.tsx +0 -35
- package/apps/react-kit-demo/src/assets/.gitkeep +0 -0
- package/apps/react-kit-demo/src/constants/ApiConstants.ts +0 -7
- package/apps/react-kit-demo/src/constants/DialogMode.ts +0 -2
- package/apps/react-kit-demo/src/constants/HttpConstants.ts +0 -18
- package/apps/react-kit-demo/src/constants/StateConstants.ts +0 -2
- package/apps/react-kit-demo/src/main.tsx +0 -17
- package/apps/react-kit-demo/src/routes/Routes.tsx +0 -55
- package/apps/react-kit-demo/src/services/BookService.ts +0 -21
- package/apps/react-kit-demo/src/styles.scss +0 -36
- package/apps/react-kit-demo/src/theme.ts +0 -46
- package/apps/react-kit-demo/src/types/Book.ts +0 -8
- package/apps/react-kit-demo/src/utils/CssUtils.ts +0 -13
- package/apps/react-kit-demo/tsconfig.app.json +0 -18
- package/apps/react-kit-demo/tsconfig.json +0 -21
- package/apps/react-kit-demo/tsconfig.spec.json +0 -28
- package/apps/react-kit-demo/vite.config.ts +0 -50
- package/nx.json +0 -52
- package/react-kit/.babelrc +0 -12
- package/react-kit/.eslintrc.json +0 -18
- package/react-kit/README.md +0 -7
- package/react-kit/package-lock.json +0 -1330
- package/react-kit/package.json +0 -45
- package/react-kit/project.json +0 -10
- package/react-kit/src/lib/components/CenteredCircularProgress.tsx +0 -15
- package/react-kit/src/lib/components/ConfirmationDialog.tsx +0 -28
- package/react-kit/src/lib/components/DismissibleAlert.tsx +0 -60
- package/react-kit/src/lib/components/NextLink.tsx +0 -26
- package/react-kit/src/lib/components/OpenInNewIconLink.tsx +0 -42
- package/react-kit/src/lib/components/ReactIf.tsx +0 -53
- package/react-kit/src/lib/components/buttons/CancelButton.tsx +0 -45
- package/react-kit/src/lib/components/buttons/DeleteButton.tsx +0 -35
- package/react-kit/src/lib/components/buttons/EditIconButton.tsx +0 -23
- package/react-kit/src/lib/components/buttons/ExcelButton.tsx +0 -43
- package/react-kit/src/lib/components/buttons/GoBackButton.tsx +0 -22
- package/react-kit/src/lib/components/buttons/HistoryButton.tsx +0 -45
- package/react-kit/src/lib/components/buttons/LoadingSuccessButton.tsx +0 -53
- package/react-kit/src/lib/components/buttons/ManageButton.tsx +0 -31
- package/react-kit/src/lib/components/buttons/SuccessButton.tsx +0 -44
- package/react-kit/src/lib/components/snack-bar/AppSnackBar.tsx +0 -46
- package/react-kit/src/lib/components/snack-bar/QuerySnackBar.tsx +0 -62
- package/react-kit/src/lib/components/table/TablePaginationActions.tsx +0 -58
- package/react-kit/src/lib/components/tabs/TabPanel.tsx +0 -26
- package/react-kit/src/lib/constants/AppConstants.ts +0 -17
- package/react-kit/src/lib/types/ProgressState.ts +0 -7
- package/react-kit/src/lib/utils/BooleanUtils.ts +0 -13
- package/react-kit/src/lib/utils/DateUtils.ts +0 -43
- package/react-kit/src/lib/utils/NumberUtils.ts +0 -12
- package/react-kit/src/lib/utils/ProgressStateUtils.ts +0 -68
- package/react-kit/src/lib/utils/StringUtils.ts +0 -14
- package/react-kit/src/lib/utils/UrlUtils.ts +0 -19
- package/react-kit/src/lib/utils/fetchClient.ts +0 -64
- package/react-kit/src/tests/buttons/CancelButton.test.tsx +0 -69
- package/react-kit/src/tests/buttons/DeleteButton.test.tsx +0 -63
- package/react-kit/src/tests/buttons/EditIconButton.test.tsx +0 -34
- package/react-kit/src/tests/buttons/HistoryButton.test.tsx +0 -46
- package/react-kit/src/tests/buttons/LoadingSuccessButton.test.tsx +0 -53
- package/react-kit/src/tests/buttons/ManageButton.test.tsx +0 -49
- package/react-kit/src/tests/buttons/SuccessButton.test.tsx +0 -46
- package/react-kit/src/tests/snack-bar/AppSnackBar.test.tsx +0 -54
- package/react-kit/src/tests/utils/BooleanUtils.test.ts +0 -35
- package/react-kit/src/tests/utils/CssUtils.test.ts +0 -17
- package/react-kit/src/tests/utils/DateUtils.test.ts +0 -46
- package/react-kit/src/tests/utils/NumberUtils.test.ts +0 -19
- package/react-kit/src/tests/utils/ProgressStateUtils.test.ts +0 -131
- package/react-kit/src/tests/utils/StringUtils.test.ts +0 -33
- package/react-kit/src/tests/utils/UrlUtils.test.ts +0 -19
- package/react-kit/tsconfig.json +0 -21
- package/react-kit/tsconfig.lib.json +0 -18
- package/react-kit/tsconfig.spec.json +0 -27
- package/react-kit/vite.config.ts +0 -72
- package/release.sh +0 -28
- package/tsconfig.base.json +0 -22
- package/vitest.workspace.js +0 -3
- package/vitest.workspace.ts +0 -1
package/package.json
CHANGED
|
@@ -1,100 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@js-smart/react-kit",
|
|
3
|
-
"version": "5.12.0-beta.4",
|
|
4
|
-
"license": "MIT",
|
|
5
3
|
"private": false,
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"test": "nx test react-kit ",
|
|
12
|
-
"update": "nx migrate latest"
|
|
4
|
+
"version": "5.13.0-beta.1",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
13
9
|
},
|
|
14
|
-
"
|
|
10
|
+
"peerDependencies": {
|
|
15
11
|
"@emotion/react": "^11.14.0",
|
|
16
12
|
"@emotion/styled": "^11.14.1",
|
|
17
|
-
"@mui/icons-material": "^7.
|
|
18
|
-
"@mui/material": "^7.
|
|
19
|
-
"@mui/x-data-grid": "^7.29.8",
|
|
13
|
+
"@mui/icons-material": "^7.3.1",
|
|
14
|
+
"@mui/material": "^7.3.1",
|
|
20
15
|
"date-fns": "^4.1.0",
|
|
21
16
|
"react": "^18.3.1 || ^19.0.0",
|
|
22
17
|
"react-dom": "^18.3.1 || ^19.0.0",
|
|
23
|
-
"react-router-dom": "^7.
|
|
18
|
+
"react-router-dom": "^7.8.0"
|
|
24
19
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"@nx/eslint": "21.2.1",
|
|
31
|
-
"@nx/eslint-plugin": "21.2.1",
|
|
32
|
-
"@nx/js": "21.2.1",
|
|
33
|
-
"@nx/react": "21.2.1",
|
|
34
|
-
"@nx/vite": "21.2.1",
|
|
35
|
-
"@nx/web": "21.2.1",
|
|
36
|
-
"@nx/workspace": "21.2.1",
|
|
37
|
-
"@semantic-release/git": "^10.0.1",
|
|
38
|
-
"@semantic-release/npm": "^12.0.1",
|
|
39
|
-
"@swc-node/register": "1.10.10",
|
|
40
|
-
"@swc/cli": "0.6.0",
|
|
41
|
-
"@swc/core": "1.11.24",
|
|
42
|
-
"@swc/helpers": "0.5.17",
|
|
43
|
-
"@testing-library/jest-dom": "^6.5.0",
|
|
44
|
-
"@testing-library/react": "16.3.0",
|
|
45
|
-
"@types/node": "22.15.14",
|
|
46
|
-
"@types/react": "19.1.3",
|
|
47
|
-
"@types/react-dom": "19.1.3",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "8.32.0",
|
|
49
|
-
"@typescript-eslint/parser": "8.32.0",
|
|
50
|
-
"@vitejs/plugin-react": "^4.4.1",
|
|
51
|
-
"@vitest/coverage-v8": "^3.1.3",
|
|
52
|
-
"@vitest/ui": "^3.1.3",
|
|
53
|
-
"eslint": "~9.26.0",
|
|
54
|
-
"eslint-config-prettier": "10.1.2",
|
|
55
|
-
"eslint-plugin-import": "2.31.0",
|
|
56
|
-
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
57
|
-
"eslint-plugin-react": "7.37.5",
|
|
58
|
-
"eslint-plugin-react-hooks": "5.2.0",
|
|
59
|
-
"jest-mock": "^29.7.0",
|
|
60
|
-
"jiti": "2.4.2",
|
|
61
|
-
"jsdom": "~26.1.0",
|
|
62
|
-
"nx": "21.2.1",
|
|
63
|
-
"prettier": "^3.5.3",
|
|
64
|
-
"sass": "^1.87.0",
|
|
65
|
-
"semantic-release": "^24.2.3",
|
|
66
|
-
"typescript": "^5.8.3",
|
|
67
|
-
"vite": "^6.3.5",
|
|
68
|
-
"vite-plugin-dts": "^4.5.3",
|
|
69
|
-
"vite-plugin-mkcert": "^1.17.8",
|
|
70
|
-
"vitest": "^3.1.3"
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"import": "./index.mjs",
|
|
23
|
+
"require": "./index.js"
|
|
24
|
+
}
|
|
71
25
|
},
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"@mui/icons-material": "^7.1.0",
|
|
76
|
-
"@mui/material": "^7.1.0",
|
|
77
|
-
"@mui/x-data-grid": "^8.2.0",
|
|
78
|
-
"date-fns": "^4.1.0",
|
|
79
|
-
"react": "^18.3.1 || ^19.0.0",
|
|
80
|
-
"react-dom": "^18.3.1 || ^19.0.0",
|
|
81
|
-
"react-router-dom": "^7.5.3"
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/js-smart/react-kit"
|
|
82
29
|
},
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"@semantic-release/github"
|
|
98
|
-
]
|
|
30
|
+
"author": {
|
|
31
|
+
"name": "Pavan Kumar Jadda",
|
|
32
|
+
"email": "contact@pavankjadda.dev"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"react",
|
|
36
|
+
"react-kit",
|
|
37
|
+
"react-components",
|
|
38
|
+
"react-utils",
|
|
39
|
+
"typescript"
|
|
40
|
+
],
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/js-smart/react-kit/issues"
|
|
99
44
|
}
|
|
100
45
|
}
|
package/.editorconfig
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Editor configuration, see http://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
charset = utf-8
|
|
6
|
-
indent_style = space
|
|
7
|
-
indent_size = 2
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
trim_trailing_whitespace = true
|
|
10
|
-
|
|
11
|
-
[*.md]
|
|
12
|
-
max_line_length = off
|
|
13
|
-
trim_trailing_whitespace = false
|
package/.eslintignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
node_modules
|
package/.eslintrc.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"ignorePatterns": ["**/*"],
|
|
4
|
-
"plugins": ["@nx"],
|
|
5
|
-
"overrides": [
|
|
6
|
-
{
|
|
7
|
-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
8
|
-
"rules": {
|
|
9
|
-
"@nx/enforce-module-boundaries": [
|
|
10
|
-
"error",
|
|
11
|
-
{
|
|
12
|
-
"enforceBuildableLibDependency": true,
|
|
13
|
-
"allow": [],
|
|
14
|
-
"depConstraints": [
|
|
15
|
-
{
|
|
16
|
-
"sourceTag": "*",
|
|
17
|
-
"onlyDependOnLibsWithTags": ["*"]
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"files": ["*.ts", "*.tsx"],
|
|
26
|
-
"extends": ["plugin:@nx/typescript"],
|
|
27
|
-
"rules": {
|
|
28
|
-
"@typescript-eslint/no-extra-semi": "error",
|
|
29
|
-
"no-extra-semi": "off"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"files": ["*.js", "*.jsx"],
|
|
34
|
-
"extends": ["plugin:@nx/javascript"],
|
|
35
|
-
"rules": {
|
|
36
|
-
"@typescript-eslint/no-extra-semi": "error",
|
|
37
|
-
"no-extra-semi": "off"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
1. Always use latest React 19 version and TypeScript for our ReactJS development. Always show examples and reference the latest version of React in your responses. If in doubt, use docs from https://react.dev/learn
|
|
2
|
-
2. Always use React router, MUI latest components for React development
|
|
3
|
-
3. Always use functional components and hooks for state management in React
|
|
4
|
-
4. Always use TypeScript for type safety in React components
|
|
5
|
-
5. Always use the latest best practices for performance optimization in React, such as memoization and lazy loading
|
|
6
|
-
6. Always ensure accessibility standards are met in React components
|
|
7
|
-
7. Always use ESLint and Prettier for code formatting and linting in React projects
|
|
8
|
-
8. Always provide clear and concise comments in the code to explain complex logic or important decisions
|
|
9
|
-
9. Always use PropTypes or TypeScript interfaces for defining component props
|
|
10
|
-
10. Always ensure that components are reusable and modular, following the DRY (Don't Repeat Yourself) principle
|
|
11
|
-
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
name: Build Project
|
|
2
|
-
on:
|
|
3
|
-
push
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: ${{ matrix.os }}
|
|
8
|
-
strategy:
|
|
9
|
-
matrix:
|
|
10
|
-
os: [ 'ubuntu-latest' ]
|
|
11
|
-
node: [ 'latest' ]
|
|
12
|
-
steps:
|
|
13
|
-
- uses: actions/checkout@v4
|
|
14
|
-
|
|
15
|
-
- name: Cache node modules
|
|
16
|
-
uses: actions/cache@v4
|
|
17
|
-
env:
|
|
18
|
-
cache-name: cache-node-modules
|
|
19
|
-
with:
|
|
20
|
-
path: ~/.pnpm
|
|
21
|
-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
22
|
-
restore-keys: |
|
|
23
|
-
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
24
|
-
${{ runner.os }}-build-
|
|
25
|
-
${{ runner.os }}-
|
|
26
|
-
|
|
27
|
-
- name: Setup pnpm
|
|
28
|
-
uses: pnpm/action-setup@v4
|
|
29
|
-
with:
|
|
30
|
-
version: latest
|
|
31
|
-
|
|
32
|
-
- name: Use Node.js ${{ matrix.node }}
|
|
33
|
-
uses: actions/setup-node@v4
|
|
34
|
-
with:
|
|
35
|
-
node-version: ${{ matrix.node }}
|
|
36
|
-
cache: 'pnpm'
|
|
37
|
-
|
|
38
|
-
- name: Install Dependencies
|
|
39
|
-
run: pnpm i --frozen-lockfile
|
|
40
|
-
|
|
41
|
-
- name: Build project
|
|
42
|
-
run: pnpm build
|
|
43
|
-
|
|
44
|
-
- name: Run tests
|
|
45
|
-
run: pnpm test
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
release:
|
|
10
|
-
runs-on: ${{ matrix.os }}
|
|
11
|
-
strategy:
|
|
12
|
-
matrix:
|
|
13
|
-
os: [ 'ubuntu-latest' ]
|
|
14
|
-
node: [ 'latest' ]
|
|
15
|
-
env:
|
|
16
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
17
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
18
|
-
steps:
|
|
19
|
-
- uses: actions/checkout@v4
|
|
20
|
-
|
|
21
|
-
- name: Cache node modules
|
|
22
|
-
uses: actions/cache@v4
|
|
23
|
-
env:
|
|
24
|
-
cache-name: cache-node-modules
|
|
25
|
-
with:
|
|
26
|
-
path: ~/.pnpm
|
|
27
|
-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
28
|
-
restore-keys: |
|
|
29
|
-
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
30
|
-
${{ runner.os }}-build-
|
|
31
|
-
${{ runner.os }}-
|
|
32
|
-
|
|
33
|
-
- name: Setup pnpm
|
|
34
|
-
uses: pnpm/action-setup@v4
|
|
35
|
-
with:
|
|
36
|
-
version: latest
|
|
37
|
-
|
|
38
|
-
- name: Use Node.js ${{ matrix.node }}
|
|
39
|
-
uses: actions/setup-node@v4
|
|
40
|
-
with:
|
|
41
|
-
node-version: ${{ matrix.node }}
|
|
42
|
-
cache: 'pnpm'
|
|
43
|
-
|
|
44
|
-
- name: Install Dependencies
|
|
45
|
-
run: pnpm i --frozen-lockfile
|
|
46
|
-
|
|
47
|
-
- name: Build project
|
|
48
|
-
run: pnpm build
|
|
49
|
-
|
|
50
|
-
- name: Semantic release
|
|
51
|
-
run: npx semantic-release
|
|
52
|
-
|
|
53
|
-
- name: Import GPG key
|
|
54
|
-
uses: crazy-max/ghaction-import-gpg@v6
|
|
55
|
-
with:
|
|
56
|
-
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
57
|
-
|
|
58
|
-
- name: Update version in source code
|
|
59
|
-
run: |
|
|
60
|
-
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
|
|
61
|
-
version=${latest_tag#v}
|
|
62
|
-
bash release.sh $version ${{ secrets.GPG_KEY_ID }}
|
|
63
|
-
|
|
64
|
-
- name: build demo
|
|
65
|
-
run: pnpm build:demo
|
package/.prettierignore
DELETED
package/.prettierrc
DELETED
package/.vscode/extensions.json
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
## 1.0.1 (2024-05-21)
|
|
2
|
-
|
|
3
|
-
### 🚀 Features
|
|
4
|
-
|
|
5
|
-
- **build:** adds build config ([4dfdbca](https://github.com/js-smart/react-kit/commit/4dfdbca))
|
|
6
|
-
- **build:** adds build config ([bb26976](https://github.com/js-smart/react-kit/commit/bb26976))
|
|
7
|
-
|
|
8
|
-
### ❤️ Thank You
|
|
9
|
-
|
|
10
|
-
- Pavan Kumar Jadda @pavankjadda
|
|
11
|
-
|
|
12
|
-
# 1.0.0 (2024-05-21)
|
|
13
|
-
|
|
14
|
-
### 🚀 Features
|
|
15
|
-
|
|
16
|
-
- **buttons:** adds components ([8195855](https://github.com/js-smart/react-kit/commit/8195855))
|
|
17
|
-
- **buttons:** adds components ([f6c5840](https://github.com/js-smart/react-kit/commit/f6c5840))
|
|
18
|
-
- **core:** generates the project ([6b6f4a8](https://github.com/js-smart/react-kit/commit/6b6f4a8))
|
|
19
|
-
- **utils:** adds utility functions ([46e3d67](https://github.com/js-smart/react-kit/commit/46e3d67))
|
|
20
|
-
- **utils:** adds utility functions ([ae1f04c](https://github.com/js-smart/react-kit/commit/ae1f04c))
|
|
21
|
-
|
|
22
|
-
### ❤️ Thank You
|
|
23
|
-
|
|
24
|
-
- Pavan Kumar Jadda @pavankjadda
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
-
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
-
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
-
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity
|
|
10
|
-
and orientation.
|
|
11
|
-
|
|
12
|
-
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
-
diverse, inclusive, and healthy community.
|
|
14
|
-
|
|
15
|
-
## Our Standards
|
|
16
|
-
|
|
17
|
-
Examples of behavior that contributes to a positive environment for our
|
|
18
|
-
community include:
|
|
19
|
-
|
|
20
|
-
- Demonstrating empathy and kindness toward other people
|
|
21
|
-
- Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
-
- Giving and gracefully accepting constructive feedback
|
|
23
|
-
- Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
-
and learning from the experience
|
|
25
|
-
- Focusing on what is best not just for us as individuals, but for the
|
|
26
|
-
overall community
|
|
27
|
-
|
|
28
|
-
Examples of unacceptable behavior include:
|
|
29
|
-
|
|
30
|
-
- The use of sexualized language or imagery, and sexual attention or
|
|
31
|
-
advances of any kind
|
|
32
|
-
- Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
-
- Public or private harassment
|
|
34
|
-
- Publishing others' private information, such as a physical or email
|
|
35
|
-
address, without their explicit permission
|
|
36
|
-
- Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
-
professional setting
|
|
38
|
-
|
|
39
|
-
## Enforcement Responsibilities
|
|
40
|
-
|
|
41
|
-
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
-
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
-
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
-
or harmful.
|
|
45
|
-
|
|
46
|
-
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
-
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
-
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
-
decisions when appropriate.
|
|
50
|
-
|
|
51
|
-
## Scope
|
|
52
|
-
|
|
53
|
-
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
-
an individual is officially representing the community in public spaces.
|
|
55
|
-
Examples of representing our community include using an official e-mail address,
|
|
56
|
-
posting via an official social media account, or acting as an appointed
|
|
57
|
-
representative at an online or offline event.
|
|
58
|
-
|
|
59
|
-
## Enforcement
|
|
60
|
-
|
|
61
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
-
reported to the community leaders responsible for enforcement at
|
|
63
|
-
.
|
|
64
|
-
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
-
|
|
66
|
-
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
-
reporter of any incident.
|
|
68
|
-
|
|
69
|
-
## Enforcement Guidelines
|
|
70
|
-
|
|
71
|
-
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
-
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
-
|
|
74
|
-
### 1. Correction
|
|
75
|
-
|
|
76
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
-
unprofessional or unwelcome in the community.
|
|
78
|
-
|
|
79
|
-
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
-
clarity around the nature of the violation and an explanation of why the
|
|
81
|
-
behavior was inappropriate. A public apology may be requested.
|
|
82
|
-
|
|
83
|
-
### 2. Warning
|
|
84
|
-
|
|
85
|
-
**Community Impact**: A violation through a single incident or series
|
|
86
|
-
of actions.
|
|
87
|
-
|
|
88
|
-
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
-
interaction with the people involved, including unsolicited interaction with
|
|
90
|
-
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
-
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
-
like social media. Violating these terms may lead to a temporary or
|
|
93
|
-
permanent ban.
|
|
94
|
-
|
|
95
|
-
### 3. Temporary Ban
|
|
96
|
-
|
|
97
|
-
**Community Impact**: A serious violation of community standards, including
|
|
98
|
-
sustained inappropriate behavior.
|
|
99
|
-
|
|
100
|
-
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
-
communication with the community for a specified period of time. No public or
|
|
102
|
-
private interaction with the people involved, including unsolicited interaction
|
|
103
|
-
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
-
Violating these terms may lead to a permanent ban.
|
|
105
|
-
|
|
106
|
-
### 4. Permanent Ban
|
|
107
|
-
|
|
108
|
-
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
-
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
-
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
-
|
|
112
|
-
**Consequence**: A permanent ban from any sort of public interaction within
|
|
113
|
-
the community.
|
|
114
|
-
|
|
115
|
-
## Attribution
|
|
116
|
-
|
|
117
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
-
version 2.0, available at
|
|
119
|
-
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
120
|
-
|
|
121
|
-
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
|
122
|
-
enforcement ladder](https://github.com/mozilla/diversity).
|
|
123
|
-
|
|
124
|
-
[homepage]: https://www.contributor-covenant.org
|
|
125
|
-
|
|
126
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
|
127
|
-
https://www.contributor-covenant.org/faq. Translations are available at
|
|
128
|
-
https://www.contributor-covenant.org/translations.
|
package/FUNDING.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
open_collective: js-smart
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 js-smart
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# React Kit
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["plugin:@nx/react", "../../.eslintrc.json"],
|
|
3
|
-
"ignorePatterns": ["!**/*", "**/vite.config.*.timestamp*", "**/vitest.config.*.timestamp*"],
|
|
4
|
-
"overrides": [
|
|
5
|
-
{
|
|
6
|
-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
7
|
-
"rules": {}
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"files": ["*.ts", "*.tsx"],
|
|
11
|
-
"rules": {}
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"files": ["*.js", "*.jsx"],
|
|
15
|
-
"rules": {}
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"files": ["e2e/**/*.{ts,js,tsx,jsx}"],
|
|
19
|
-
"rules": {}
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>ReactKitDemo</title>
|
|
6
|
-
<base href="/" />
|
|
7
|
-
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
9
|
-
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
10
|
-
<link rel="stylesheet" href="/src/styles.scss" />
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<div id="root"></div>
|
|
14
|
-
<script type="module" src="/src/main.tsx"></script>
|
|
15
|
-
</body>
|
|
16
|
-
</html>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-kit-demo",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"sourceRoot": "apps/react-kit-demo/src",
|
|
5
|
-
"projectType": "application",
|
|
6
|
-
"tags": [],
|
|
7
|
-
"// targets": "to see all targets run: nx show project react-kit-demo --web",
|
|
8
|
-
"targets": {}
|
|
9
|
-
}
|
|
Binary file
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Link } from 'react-router-dom';
|
|
2
|
-
|
|
3
|
-
export default function Home() {
|
|
4
|
-
return (
|
|
5
|
-
<div>
|
|
6
|
-
<ul>
|
|
7
|
-
<Link to="/buttons">Buttons</Link> <br />
|
|
8
|
-
<Link to="/snack-bar">Snack Bar</Link> <br />
|
|
9
|
-
<Link to="/dialog">Dialog</Link> <br />
|
|
10
|
-
<Link to="/circular-progress">Circular Progress</Link> <br />
|
|
11
|
-
<Link to="/books">All Books</Link> <br />
|
|
12
|
-
<Link to="/react-if">React If Demo</Link> <br />
|
|
13
|
-
<Link to="/links">Links Demo</Link> <br />
|
|
14
|
-
</ul>
|
|
15
|
-
</div>
|
|
16
|
-
);
|
|
17
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Divider, Grid, Paper } from '@mui/material';
|
|
2
|
-
import { DataGrid, GridCellParams, GridColDef } from '@mui/x-data-grid';
|
|
3
|
-
import { useEffect, useState } from 'react';
|
|
4
|
-
import { Link } from 'react-router-dom';
|
|
5
|
-
import { BookService } from '../../services/BookService';
|
|
6
|
-
import { Book } from '../../types/Book';
|
|
7
|
-
|
|
8
|
-
export default function AllBooks() {
|
|
9
|
-
const [data, setData] = useState<Book[]>([]);
|
|
10
|
-
const [loading, setLoading] = useState<boolean>(true);
|
|
11
|
-
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
setLoading(true);
|
|
14
|
-
BookService.getAllBooks()
|
|
15
|
-
.then((response) => {
|
|
16
|
-
setData(response);
|
|
17
|
-
setLoading(false);
|
|
18
|
-
})
|
|
19
|
-
.catch((error) => {
|
|
20
|
-
console.error(error);
|
|
21
|
-
setLoading(false);
|
|
22
|
-
});
|
|
23
|
-
}, []);
|
|
24
|
-
|
|
25
|
-
return (
|
|
26
|
-
<Grid container sx={{ m: 3 }}>
|
|
27
|
-
<Grid size={10} sx={{ flexGrow: 1 }}>
|
|
28
|
-
<h2 style={{ textAlign: 'center' }}>Books Demo</h2>
|
|
29
|
-
<Divider sx={{ mb: 4 }} />
|
|
30
|
-
|
|
31
|
-
<Paper elevation={24}>
|
|
32
|
-
<div style={{ display: 'flex', flexDirection: 'column' }}>
|
|
33
|
-
<DataGrid
|
|
34
|
-
initialState={{ pagination: { paginationModel: { pageSize: 5 } } }}
|
|
35
|
-
getRowId={(row) => row.id}
|
|
36
|
-
pageSizeOptions={[5, 10, 20, 50, 100]}
|
|
37
|
-
disableRowSelectionOnClick={true}
|
|
38
|
-
density={'comfortable'}
|
|
39
|
-
loading={loading}
|
|
40
|
-
rows={data ?? []}
|
|
41
|
-
columns={columns}
|
|
42
|
-
/>
|
|
43
|
-
</div>
|
|
44
|
-
</Paper>
|
|
45
|
-
|
|
46
|
-
<Divider sx={{ mb: 3 }} />
|
|
47
|
-
</Grid>
|
|
48
|
-
</Grid>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Table Columns
|
|
54
|
-
*
|
|
55
|
-
* @author Pavan Kumar Jadda
|
|
56
|
-
* @since 0.1.0
|
|
57
|
-
*/
|
|
58
|
-
const columns: GridColDef[] = [
|
|
59
|
-
{
|
|
60
|
-
field: 'id',
|
|
61
|
-
headerName: 'ID',
|
|
62
|
-
flex: 1,
|
|
63
|
-
renderCell: (params: GridCellParams) => <Link to={'/book/' + params.row['id']}>{params.row['id']}</Link>,
|
|
64
|
-
},
|
|
65
|
-
{ field: 'title', headerName: 'Title', flex: 2.5 },
|
|
66
|
-
{ field: 'isbn', headerName: 'ISBN', flex: 2.5 },
|
|
67
|
-
{ field: 'author', headerName: 'Author', flex: 2.5 },
|
|
68
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* Your styles goes here. */
|