namirasoft-account-react 1.3.49 → 1.3.50

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 (63) hide show
  1. package/config-overrides.js +72 -72
  2. package/dist/components/NSAMessageDialog.module.css +62 -62
  3. package/dist/pages/NSALoginPage.module.css +19 -19
  4. package/package.json +64 -64
  5. package/public/index.html +21 -21
  6. package/src/App.css +42 -42
  7. package/src/App.tsx +26 -26
  8. package/src/IEntityInfo.ts +15 -15
  9. package/src/INSARouterMaker.ts +8 -8
  10. package/src/INSARouterProps.ts +17 -17
  11. package/src/INSARouterState.ts +5 -5
  12. package/src/Info.ts +20 -20
  13. package/src/NSARouterMaker.tsx +138 -138
  14. package/src/components/NSADeleteModal.tsx +24 -24
  15. package/src/components/NSAMessageDialog.module.css +62 -62
  16. package/src/components/NSAMessageDialog.tsx +59 -59
  17. package/src/index.tsx +7 -7
  18. package/src/layouts/Actions.ts +79 -79
  19. package/src/layouts/NSALayout.tsx +127 -127
  20. package/src/layouts/NSASectionEdit.tsx +102 -102
  21. package/src/layouts/NSASectionList.tsx +17 -17
  22. package/src/layouts/NSASectionView.tsx +16 -16
  23. package/src/main.ts +11 -11
  24. package/src/pages/NSALoginPage.module.css +19 -19
  25. package/src/pages/NSALoginPage.tsx +37 -37
  26. package/tsconfig.json +43 -43
  27. package/dist/App.css +0 -43
  28. package/dist/IAccountProps.d.ts +0 -22
  29. package/dist/IAccountProps.js +0 -3
  30. package/dist/IAccountProps.js.map +0 -10
  31. package/dist/IRouterMaker.d.ts +0 -8
  32. package/dist/IRouterMaker.js +0 -3
  33. package/dist/IRouterMaker.js.map +0 -1
  34. package/dist/IRouterState.d.ts +0 -5
  35. package/dist/IRouterState.js +0 -3
  36. package/dist/IRouterState.js.map +0 -1
  37. package/dist/IStorageCookie.d.ts +0 -10
  38. package/dist/IStorageCookie.js +0 -27
  39. package/dist/IStorageCookie.js.map +0 -1
  40. package/dist/Messenger.d.ts +0 -16
  41. package/dist/Messenger.js +0 -78
  42. package/dist/Messenger.js.map +0 -1
  43. package/dist/Notification.d.ts +0 -6
  44. package/dist/Notification.js +0 -3
  45. package/dist/Notification.js.map +0 -1
  46. package/dist/NotificationType.d.ts +0 -6
  47. package/dist/NotificationType.js +0 -11
  48. package/dist/NotificationType.js.map +0 -1
  49. package/dist/RouterMaker.d.ts +0 -25
  50. package/dist/RouterMaker.js +0 -125
  51. package/dist/RouterMaker.js.map +0 -1
  52. package/dist/RouterMaker.jsx +0 -118
  53. package/dist/RouterMaker.jsx.map +0 -1
  54. package/dist/components/NSALayoutAction.d.ts +0 -17
  55. package/dist/components/NSALayoutAction.js +0 -6
  56. package/dist/components/NSALayoutAction.js.map +0 -1
  57. package/dist/index.css +0 -0
  58. package/dist/layouts/NSALayoutList.d.ts +0 -17
  59. package/dist/layouts/NSALayoutList.js +0 -19
  60. package/dist/layouts/NSALayoutList.js.map +0 -1
  61. package/dist/layouts/NSASectionNew.d.ts +0 -9
  62. package/dist/layouts/NSASectionNew.js +0 -5
  63. package/dist/layouts/NSASectionNew.js.map +0 -1
@@ -1,73 +1,73 @@
1
- const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
2
- const webpack = require('webpack');
3
-
4
- const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
5
-
6
- module.exports = function config_overrides(config, webpackEnv)
7
- {
8
- console.log('overriding webpack config...');
9
- const isEnvDevelopment = webpackEnv === 'development';
10
- const isEnvProduction = webpackEnv === 'production';
11
- const loaders = config.module.rules[1].oneOf;
12
-
13
- loaders.splice(loaders.length - 1, 0, {
14
- test: /\.(js|mjs|cjs)$/,
15
- exclude: /@babel(?:\/|\\{1,2})runtime/,
16
- loader: require.resolve('babel-loader'),
17
- options: {
18
- babelrc: false,
19
- configFile: false,
20
- compact: false,
21
- presets: [
22
- [
23
- require.resolve('babel-preset-react-app/dependencies'),
24
- { helpers: true },
25
- ],
26
- ],
27
- cacheDirectory: true,
28
- // See #6846 for context on why cacheCompression is disabled
29
- cacheCompression: false,
30
- // @remove-on-eject-begin
31
- cacheIdentifier: getCacheIdentifier(
32
- isEnvProduction
33
- ? 'production'
34
- : isEnvDevelopment && 'development',
35
- [
36
- 'babel-plugin-named-asset-import',
37
- 'babel-preset-react-app',
38
- 'react-dev-utils',
39
- 'react-scripts',
40
- ]
41
- ),
42
- // @remove-on-eject-end
43
- // Babel sourcemaps are needed for debugging into node_modules
44
- // code. Without the options below, debuggers like VSCode
45
- // show incorrect code and set breakpoints on the wrong lines.
46
- sourceMaps: shouldUseSourceMap,
47
- inputSourceMap: shouldUseSourceMap,
48
- },
49
- });
50
-
51
- config.resolve.fallback = {
52
- "fs": false,
53
- "tls": false,
54
- "net": false,
55
- "https": false,
56
- // "http": require.resolve("stream-http"),
57
- // "zlib": require.resolve("browserify-zlib"),
58
- "path": require.resolve("path-browserify"),
59
- // "stream": require.resolve("stream-browserify"),
60
- // "util": require.resolve("util/"),
61
- // "crypto": require.resolve("crypto-browserify")
62
- "child_process": false,
63
- "os": false,
64
- "crypto": false
65
- }
66
- config.plugins = (config.plugins || []).concat([
67
- new webpack.NormalModuleReplacementPlugin(/node:/, (resource) =>
68
- {
69
- resource.request = resource.request.replace(/^node:/, "");
70
- })
71
- ]);
72
- return config;
1
+ const getCacheIdentifier = require('react-dev-utils/getCacheIdentifier');
2
+ const webpack = require('webpack');
3
+
4
+ const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
5
+
6
+ module.exports = function config_overrides(config, webpackEnv)
7
+ {
8
+ console.log('overriding webpack config...');
9
+ const isEnvDevelopment = webpackEnv === 'development';
10
+ const isEnvProduction = webpackEnv === 'production';
11
+ const loaders = config.module.rules[1].oneOf;
12
+
13
+ loaders.splice(loaders.length - 1, 0, {
14
+ test: /\.(js|mjs|cjs)$/,
15
+ exclude: /@babel(?:\/|\\{1,2})runtime/,
16
+ loader: require.resolve('babel-loader'),
17
+ options: {
18
+ babelrc: false,
19
+ configFile: false,
20
+ compact: false,
21
+ presets: [
22
+ [
23
+ require.resolve('babel-preset-react-app/dependencies'),
24
+ { helpers: true },
25
+ ],
26
+ ],
27
+ cacheDirectory: true,
28
+ // See #6846 for context on why cacheCompression is disabled
29
+ cacheCompression: false,
30
+ // @remove-on-eject-begin
31
+ cacheIdentifier: getCacheIdentifier(
32
+ isEnvProduction
33
+ ? 'production'
34
+ : isEnvDevelopment && 'development',
35
+ [
36
+ 'babel-plugin-named-asset-import',
37
+ 'babel-preset-react-app',
38
+ 'react-dev-utils',
39
+ 'react-scripts',
40
+ ]
41
+ ),
42
+ // @remove-on-eject-end
43
+ // Babel sourcemaps are needed for debugging into node_modules
44
+ // code. Without the options below, debuggers like VSCode
45
+ // show incorrect code and set breakpoints on the wrong lines.
46
+ sourceMaps: shouldUseSourceMap,
47
+ inputSourceMap: shouldUseSourceMap,
48
+ },
49
+ });
50
+
51
+ config.resolve.fallback = {
52
+ "fs": false,
53
+ "tls": false,
54
+ "net": false,
55
+ "https": false,
56
+ // "http": require.resolve("stream-http"),
57
+ // "zlib": require.resolve("browserify-zlib"),
58
+ "path": require.resolve("path-browserify"),
59
+ // "stream": require.resolve("stream-browserify"),
60
+ // "util": require.resolve("util/"),
61
+ // "crypto": require.resolve("crypto-browserify")
62
+ "child_process": false,
63
+ "os": false,
64
+ "crypto": false
65
+ }
66
+ config.plugins = (config.plugins || []).concat([
67
+ new webpack.NormalModuleReplacementPlugin(/node:/, (resource) =>
68
+ {
69
+ resource.request = resource.request.replace(/^node:/, "");
70
+ })
71
+ ]);
72
+ return config;
73
73
  };
@@ -1,63 +1,63 @@
1
- .nsa_message_icon {
2
- cursor: pointer;
3
- }
4
-
5
- .nsa_message_title {
6
- color: hsla(212, 100%, 51%, 1)
7
- }
8
-
9
- .nsa_message_item_title {
10
- color: hsla(234, 64%, 22%, 1);
11
- display: flex;
12
- align-items: center;
13
- gap: 8px;
14
- }
15
-
16
- .nsa_message_item_content {
17
- color: hsla(234, 64%, 22%, 1);
18
- margin: 0;
19
- }
20
-
21
- .nsa_message_item_dot_green {
22
- width: 8px;
23
- height: 8px;
24
- background: hsla(157, 94%, 42%, 1);
25
- border-radius: 50%;
26
- }
27
-
28
- .nsa_message_item_dot_gray {
29
- width: 8px;
30
- height: 8px;
31
- background: hsla(228, 9%, 66%, 1);
32
- border-radius: 50%;
33
- }
34
-
35
- .nsa_body_green {
36
- background-color: hsla(157, 94%, 42%, 0.1);
37
- padding: 16px;
38
- }
39
-
40
- .nsa_body_gray {
41
- background-color: #fff;
42
- padding: 16px;
43
- box-shadow: 0px 2px 5px #e6e6e6;
44
- }
45
-
46
- .nsa_count {
47
- position: absolute;
48
- background: #fff;
49
- right: -7px;
50
- top: -7px;
51
- color: hsla(234, 64%, 22%, 1);
52
- width: 18px;
53
- height: 18px;
54
- border-radius: 50%;
55
- display: flex;
56
- justify-content: center;
57
- align-items: center;
58
- }
59
-
60
- .nsa_parent_count {
61
- position: relative;
62
- width: max-content;
1
+ .nsa_message_icon {
2
+ cursor: pointer;
3
+ }
4
+
5
+ .nsa_message_title {
6
+ color: hsla(212, 100%, 51%, 1)
7
+ }
8
+
9
+ .nsa_message_item_title {
10
+ color: hsla(234, 64%, 22%, 1);
11
+ display: flex;
12
+ align-items: center;
13
+ gap: 8px;
14
+ }
15
+
16
+ .nsa_message_item_content {
17
+ color: hsla(234, 64%, 22%, 1);
18
+ margin: 0;
19
+ }
20
+
21
+ .nsa_message_item_dot_green {
22
+ width: 8px;
23
+ height: 8px;
24
+ background: hsla(157, 94%, 42%, 1);
25
+ border-radius: 50%;
26
+ }
27
+
28
+ .nsa_message_item_dot_gray {
29
+ width: 8px;
30
+ height: 8px;
31
+ background: hsla(228, 9%, 66%, 1);
32
+ border-radius: 50%;
33
+ }
34
+
35
+ .nsa_body_green {
36
+ background-color: hsla(157, 94%, 42%, 0.1);
37
+ padding: 16px;
38
+ }
39
+
40
+ .nsa_body_gray {
41
+ background-color: #fff;
42
+ padding: 16px;
43
+ box-shadow: 0px 2px 5px #e6e6e6;
44
+ }
45
+
46
+ .nsa_count {
47
+ position: absolute;
48
+ background: #fff;
49
+ right: -7px;
50
+ top: -7px;
51
+ color: hsla(234, 64%, 22%, 1);
52
+ width: 18px;
53
+ height: 18px;
54
+ border-radius: 50%;
55
+ display: flex;
56
+ justify-content: center;
57
+ align-items: center;
58
+ }
59
+
60
+ .nsa_parent_count {
61
+ position: relative;
62
+ width: max-content;
63
63
  }
@@ -1,20 +1,20 @@
1
- .ns_login_container {
2
- display: flex;
3
- flex-direction: column;
4
- align-items: center;
5
- justify-content: center;
6
- }
7
-
8
- .ns_logo {
9
- text-align: center;
10
- }
11
-
12
- .ns_title {
13
- font-size: 32px;
14
- font-weight: 700;
15
- text-align: center;
16
- }
17
-
18
- .ns_button {
19
- text-align: center;
1
+ .ns_login_container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: center;
5
+ justify-content: center;
6
+ }
7
+
8
+ .ns_logo {
9
+ text-align: center;
10
+ }
11
+
12
+ .ns_title {
13
+ font-size: 32px;
14
+ font-weight: 700;
15
+ text-align: center;
16
+ }
17
+
18
+ .ns_button {
19
+ text-align: center;
20
20
  }
package/package.json CHANGED
@@ -1,65 +1,65 @@
1
- {
2
- "name": "namirasoft-account-react",
3
- "title": "Namirasoft Account React NPM Package",
4
- "description": "Namira Software Corporation Account React NPM Package",
5
- "icon": "logo.png",
6
- "logo": "https://static.namirasoft.com/image/namirasoft/account/logo/name.png",
7
- "language": "ts",
8
- "framework": "npm",
9
- "application": "package",
10
- "private": false,
11
- "version": "1.3.49",
12
- "author": "Amir Abolhasani",
13
- "license": "MIT",
14
- "main": "./dist/main.js",
15
- "types": "./dist/main.d.ts",
16
- "scripts": {
17
- "start": "react-app-rewired start",
18
- "build": "npm run copy",
19
- "test": "react-app-rewired test",
20
- "eject": "react-app-rewired eject",
21
- "copy": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.svg src/**/*.png src/**/*.jpg dist/"
22
- },
23
- "dependencies": {
24
- "@types/device-uuid": "^1.0.3",
25
- "@types/react": "^18.3.3",
26
- "device-uuid": "^1.0.4",
27
- "namirasoft-account": "^1.3.24",
28
- "namirasoft-account-client": "^1.3.0",
29
- "namirasoft-core": "^1.3.47",
30
- "namirasoft-site-react": "^1.3.196",
31
- "os-browserify": "^0.3.0",
32
- "path-browserify": "^1.0.1",
33
- "process": "^0.11.10",
34
- "query-string": "^9.0.0",
35
- "react": "^18.3.1",
36
- "react-app-rewired": "^2.2.1",
37
- "react-dom": "^18.3.1",
38
- "react-router-dom": "^6.23.1",
39
- "react-scripts": "5.0.1",
40
- "run": "^1.5.0"
41
- },
42
- "eslintConfig": {
43
- "extends": [
44
- "react-app",
45
- "react-app/jest"
46
- ]
47
- },
48
- "skip": {
49
- "content": [
50
- "/tsconfig.json"
51
- ]
52
- },
53
- "browserslist": {
54
- "production": [
55
- ">0.2%",
56
- "not dead",
57
- "not op_mini all"
58
- ],
59
- "development": [
60
- "last 1 chrome version",
61
- "last 1 firefox version",
62
- "last 1 safari version"
63
- ]
64
- }
1
+ {
2
+ "name": "namirasoft-account-react",
3
+ "title": "Namirasoft Account React NPM Package",
4
+ "description": "Namira Software Corporation Account React NPM Package",
5
+ "icon": "logo.png",
6
+ "logo": "https://static.namirasoft.com/image/namirasoft/account/logo/name.png",
7
+ "language": "ts",
8
+ "framework": "npm",
9
+ "application": "package",
10
+ "private": false,
11
+ "version": "1.3.50",
12
+ "author": "Amir Abolhasani",
13
+ "license": "MIT",
14
+ "main": "./dist/main.js",
15
+ "types": "./dist/main.d.ts",
16
+ "scripts": {
17
+ "start": "react-app-rewired start",
18
+ "build": "npm run copy",
19
+ "test": "react-app-rewired test",
20
+ "eject": "react-app-rewired eject",
21
+ "copy": "copyfiles -u 1 src/**/*.html src/**/*.css src/**/*.svg src/**/*.png src/**/*.jpg dist/"
22
+ },
23
+ "dependencies": {
24
+ "@types/device-uuid": "^1.0.3",
25
+ "@types/react": "^18.3.3",
26
+ "device-uuid": "^1.0.4",
27
+ "namirasoft-account": "^1.3.25",
28
+ "namirasoft-account-client": "^1.3.0",
29
+ "namirasoft-core": "^1.3.47",
30
+ "namirasoft-site-react": "^1.3.196",
31
+ "os-browserify": "^0.3.0",
32
+ "path-browserify": "^1.0.1",
33
+ "process": "^0.11.10",
34
+ "query-string": "^9.0.0",
35
+ "react": "^18.3.1",
36
+ "react-app-rewired": "^2.2.1",
37
+ "react-dom": "^18.3.1",
38
+ "react-router-dom": "^6.23.1",
39
+ "react-scripts": "5.0.1",
40
+ "run": "^1.5.0"
41
+ },
42
+ "eslintConfig": {
43
+ "extends": [
44
+ "react-app",
45
+ "react-app/jest"
46
+ ]
47
+ },
48
+ "skip": {
49
+ "content": [
50
+ "/tsconfig.json"
51
+ ]
52
+ },
53
+ "browserslist": {
54
+ "production": [
55
+ ">0.2%",
56
+ "not dead",
57
+ "not op_mini all"
58
+ ],
59
+ "development": [
60
+ "last 1 chrome version",
61
+ "last 1 firefox version",
62
+ "last 1 safari version"
63
+ ]
64
+ }
65
65
  }
package/public/index.html CHANGED
@@ -1,22 +1,22 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8" />
6
- <!-- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> -->
7
- <meta name="viewport" content="width=device-width, initial-scale=1" />
8
- <meta name="theme-color" content="#000000" />
9
- <meta name="description" content="Web site created using create-react-app" />
10
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
11
- integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
12
- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
- <!-- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> -->
14
- <title>React App</title>
15
- </head>
16
-
17
- <body>
18
- <noscript>You need to enable JavaScript to run this app.</noscript>
19
- <div id="root"></div>
20
- </body>
21
-
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="utf-8" />
6
+ <!-- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> -->
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ <meta name="theme-color" content="#000000" />
9
+ <meta name="description" content="Web site created using create-react-app" />
10
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
11
+ integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous" />
12
+ <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
+ <!-- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> -->
14
+ <title>React App</title>
15
+ </head>
16
+
17
+ <body>
18
+ <noscript>You need to enable JavaScript to run this app.</noscript>
19
+ <div id="root"></div>
20
+ </body>
21
+
22
22
  </html>
package/src/App.css CHANGED
@@ -1,43 +1,43 @@
1
- @font-face {
2
- font-family: inter;
3
- src: url("../src/assets/fonts/Inter-Regular.ttf");
4
- }
5
-
6
- body {
7
- margin: 0;
8
- font-family: inter;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- }
12
-
13
- .toast-header {
14
- padding: 16px !important;
15
- justify-content: space-between !important;
16
- }
17
-
18
- .toast {
19
- width: max-content !important;
20
- max-width: 100%;
21
- border: 8px;
22
- }
23
-
24
- .toast-body {
25
- padding: 0 !important;
26
- }
27
- .btn-close{
28
- background: url(./assets/images/icon_close.png) center/1em auto no-repeat!important;
29
- opacity: 1 !important;
30
- }
31
- .nsa_font_16_bold {
32
- font-size: 16px;
33
- font-weight: 600;
34
- }
35
-
36
- .nsa_font_13_normal {
37
- font-size: 13px;
38
- font-weight: 300;
39
- }
40
- .nsa_font_12_normal {
41
- font-size: 12px;
42
- font-weight: 300;
1
+ @font-face {
2
+ font-family: inter;
3
+ src: url("../src/assets/fonts/Inter-Regular.ttf");
4
+ }
5
+
6
+ body {
7
+ margin: 0;
8
+ font-family: inter;
9
+ -webkit-font-smoothing: antialiased;
10
+ -moz-osx-font-smoothing: grayscale;
11
+ }
12
+
13
+ .toast-header {
14
+ padding: 16px !important;
15
+ justify-content: space-between !important;
16
+ }
17
+
18
+ .toast {
19
+ width: max-content !important;
20
+ max-width: 100%;
21
+ border: 8px;
22
+ }
23
+
24
+ .toast-body {
25
+ padding: 0 !important;
26
+ }
27
+ .btn-close{
28
+ background: url(./assets/images/icon_close.png) center/1em auto no-repeat!important;
29
+ opacity: 1 !important;
30
+ }
31
+ .nsa_font_16_bold {
32
+ font-size: 16px;
33
+ font-weight: 600;
34
+ }
35
+
36
+ .nsa_font_13_normal {
37
+ font-size: 13px;
38
+ font-weight: 300;
39
+ }
40
+ .nsa_font_12_normal {
41
+ font-size: 12px;
42
+ font-weight: 300;
43
43
  }
package/src/App.tsx CHANGED
@@ -1,27 +1,27 @@
1
- import './App.css';
2
- import { NSALoginPage, NSADeleteModal } from './main';
3
- import { useState } from "react";
4
-
5
- export function App()
6
- {
7
- const [showModal, setshowModal] = useState<boolean>(false);
8
- const handleModal = (): void =>
9
- {
10
- setshowModal(!showModal);
11
- }
12
- return (
13
- <>
14
- <NSALoginPage
15
- title="Namirasoft Payment"
16
- logo="Logo"
17
- background="https://static.namirasoft.com/image/namirasoft/account/background/base.svg" />
18
- <NSADeleteModal
19
- title="string"
20
- description="string"
21
- show={showModal}
22
- onYes={() => { }}
23
- onNo={handleModal}
24
- />
25
- </>
26
- );
1
+ import './App.css';
2
+ import { NSALoginPage, NSADeleteModal } from './main';
3
+ import { useState } from "react";
4
+
5
+ export function App()
6
+ {
7
+ const [showModal, setshowModal] = useState<boolean>(false);
8
+ const handleModal = (): void =>
9
+ {
10
+ setshowModal(!showModal);
11
+ }
12
+ return (
13
+ <>
14
+ <NSALoginPage
15
+ title="Namirasoft Payment"
16
+ logo="Logo"
17
+ background="https://static.namirasoft.com/image/namirasoft/account/background/base.svg" />
18
+ <NSADeleteModal
19
+ title="string"
20
+ description="string"
21
+ show={showModal}
22
+ onYes={() => { }}
23
+ onNo={handleModal}
24
+ />
25
+ </>
26
+ );
27
27
  };
@@ -1,16 +1,16 @@
1
- export interface IEntityInfo<EntityType extends { id: string }, EntityTypeInput = EntityType>
2
- {
3
- name: string;
4
- server: {
5
- get: (id: string) => Promise<EntityType>;
6
- create: (entity: EntityTypeInput) => Promise<EntityType>;
7
- update: (id: string, entity: EntityTypeInput) => Promise<EntityType>;
8
- };
9
- client: {
10
- getListURL: () => string;
11
- getNewURL: () => string;
12
- getCopyURL: (id: string) => string;
13
- getEditURL: (id: string) => string;
14
- getViewURL: (id: string) => string;
15
- }
1
+ export interface IEntityInfo<EntityType extends { id: string }, EntityTypeInput = EntityType>
2
+ {
3
+ name: string;
4
+ server: {
5
+ get: (id: string) => Promise<EntityType>;
6
+ create: (entity: EntityTypeInput) => Promise<EntityType>;
7
+ update: (id: string, entity: EntityTypeInput) => Promise<EntityType>;
8
+ };
9
+ client: {
10
+ getListURL: () => string;
11
+ getNewURL: () => string;
12
+ getCopyURL: (id: string) => string;
13
+ getEditURL: (id: string) => string;
14
+ getViewURL: (id: string) => string;
15
+ }
16
16
  }