@js-smart/react-kit 1.0.1 → 1.0.2
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.d.ts +21 -0
- package/index.js +208 -0
- package/index.mjs +14350 -0
- package/lib/components/CenteredCircularProgress.d.ts +7 -0
- package/lib/components/ConfirmationDialog.d.ts +11 -0
- package/lib/components/DismissibleAlert.d.ts +18 -0
- package/lib/components/OpenInNewIconLink.d.ts +18 -0
- package/lib/components/ReactIf.d.ts +14 -0
- package/lib/components/buttons/CancelButton.d.ts +26 -0
- package/lib/components/buttons/DeleteButton.d.ts +14 -0
- package/lib/components/buttons/ExcelButton.d.ts +26 -0
- package/lib/components/buttons/GoBackButton.d.ts +8 -0
- package/lib/components/buttons/HistoryButton.d.ts +26 -0
- package/lib/components/buttons/LoadingSuccessButton.d.ts +26 -0
- package/lib/components/buttons/ManageButton.d.ts +11 -0
- package/lib/components/buttons/SuccessButton.d.ts +26 -0
- package/lib/components/snack-bar/AppSnackBar.d.ts +7 -0
- package/lib/components/snack-bar/QuerySnackBar.d.ts +18 -0
- package/lib/constants/AppConstants.d.ts +15 -0
- package/lib/types/ProgressState.d.ts +7 -0
- package/lib/utils/BooleanUtils.d.ts +7 -0
- package/lib/utils/DateUtils.d.ts +22 -0
- package/lib/utils/NumberUtils.d.ts +7 -0
- package/lib/utils/ProgressStateUtils.d.ts +39 -0
- package/lib/utils/StringUtils.d.ts +7 -0
- package/lib/utils/UrlUtils.d.ts +11 -0
- package/package.json +1 -1
- package/style.css +0 -0
- package/.babelrc +0 -12
- package/.eslintrc.json +0 -18
- package/README.md +0 -7
- package/project.json +0 -10
- package/src/index.ts +0 -29
- package/src/lib/components/CenteredCircularProgress.tsx +0 -16
- package/src/lib/components/ConfirmationDialog.tsx +0 -40
- package/src/lib/components/DismissibleAlert.tsx +0 -64
- package/src/lib/components/OpenInNewIconLink.tsx +0 -28
- package/src/lib/components/ReactIf.tsx +0 -13
- package/src/lib/components/buttons/CancelButton.tsx +0 -39
- package/src/lib/components/buttons/DeleteButton.tsx +0 -29
- package/src/lib/components/buttons/ExcelButton.tsx +0 -39
- package/src/lib/components/buttons/GoBackButton.tsx +0 -14
- package/src/lib/components/buttons/HistoryButton.tsx +0 -39
- package/src/lib/components/buttons/LoadingSuccessButton.tsx +0 -50
- package/src/lib/components/buttons/ManageButton.tsx +0 -26
- package/src/lib/components/buttons/SuccessButton.tsx +0 -38
- package/src/lib/components/snack-bar/AppSnackBar.tsx +0 -46
- package/src/lib/components/snack-bar/QuerySnackBar.tsx +0 -62
- package/src/lib/constants/AppConstants.ts +0 -17
- package/src/lib/react-kit.module.scss +0 -22
- package/src/lib/types/ProgressState.ts +0 -7
- package/src/lib/utils/BooleanUtils.ts +0 -13
- package/src/lib/utils/DateUtils.ts +0 -43
- package/src/lib/utils/NumberUtils.ts +0 -12
- package/src/lib/utils/ProgressStateUtils.ts +0 -74
- package/src/lib/utils/StringUtils.ts +0 -14
- package/src/lib/utils/UrlUtils.ts +0 -19
- package/tsconfig.json +0 -21
- package/tsconfig.lib.json +0 -23
- package/tsconfig.spec.json +0 -26
- package/vite.config.ts +0 -63
package/tsconfig.spec.json
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "../dist/out-tsc",
|
|
5
|
-
"types": [
|
|
6
|
-
"vitest/globals",
|
|
7
|
-
"vitest/importMeta",
|
|
8
|
-
"vite/client",
|
|
9
|
-
"node",
|
|
10
|
-
"vitest"
|
|
11
|
-
]
|
|
12
|
-
},
|
|
13
|
-
"include": [
|
|
14
|
-
"vite.config.ts",
|
|
15
|
-
"vitest.config.ts",
|
|
16
|
-
"src/**/*.test.ts",
|
|
17
|
-
"src/**/*.spec.ts",
|
|
18
|
-
"src/**/*.test.tsx",
|
|
19
|
-
"src/**/*.spec.tsx",
|
|
20
|
-
"src/**/*.test.js",
|
|
21
|
-
"src/**/*.spec.js",
|
|
22
|
-
"src/**/*.test.jsx",
|
|
23
|
-
"src/**/*.spec.jsx",
|
|
24
|
-
"src/**/*.d.ts"
|
|
25
|
-
]
|
|
26
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/// <reference types='vitest' />
|
|
2
|
-
import { defineConfig } from 'vite';
|
|
3
|
-
import react from '@vitejs/plugin-react';
|
|
4
|
-
import dts from 'vite-plugin-dts';
|
|
5
|
-
import * as path from 'path';
|
|
6
|
-
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
7
|
-
|
|
8
|
-
export default defineConfig({
|
|
9
|
-
root: __dirname,
|
|
10
|
-
cacheDir: '../node_modules/.vite/react-kit',
|
|
11
|
-
|
|
12
|
-
plugins: [
|
|
13
|
-
react(),
|
|
14
|
-
nxViteTsPaths(),
|
|
15
|
-
dts({
|
|
16
|
-
entryRoot: 'src',
|
|
17
|
-
tsconfigPath: path.join(__dirname, 'tsconfig.lib.json'),
|
|
18
|
-
}),
|
|
19
|
-
],
|
|
20
|
-
|
|
21
|
-
// Uncomment this if you are using workers.
|
|
22
|
-
// worker: {
|
|
23
|
-
// plugins: [ nxViteTsPaths() ],
|
|
24
|
-
// },
|
|
25
|
-
|
|
26
|
-
// Configuration for building your library.
|
|
27
|
-
// See: https://vitejs.dev/guide/build.html#library-mode
|
|
28
|
-
build: {
|
|
29
|
-
outDir: '../dist/react-kit',
|
|
30
|
-
reportCompressedSize: true,
|
|
31
|
-
commonjsOptions: {
|
|
32
|
-
transformMixedEsModules: true,
|
|
33
|
-
},
|
|
34
|
-
lib: {
|
|
35
|
-
// Could also be a dictionary or array of multiple entry points.
|
|
36
|
-
entry: 'src/index.ts',
|
|
37
|
-
name: 'react-kit',
|
|
38
|
-
fileName: 'index',
|
|
39
|
-
// Change this to the formats you want to support.
|
|
40
|
-
// Don't forget to update your package.json as well.
|
|
41
|
-
formats: ['es', 'cjs'],
|
|
42
|
-
},
|
|
43
|
-
rollupOptions: {
|
|
44
|
-
// External packages that should not be bundled into your library.
|
|
45
|
-
external: ['react', 'react-dom', 'react/jsx-runtime'],
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
test: {
|
|
50
|
-
globals: true,
|
|
51
|
-
cache: {
|
|
52
|
-
dir: '../node_modules/.vitest/react-kit',
|
|
53
|
-
},
|
|
54
|
-
environment: 'jsdom',
|
|
55
|
-
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
|
56
|
-
|
|
57
|
-
reporters: ['default'],
|
|
58
|
-
coverage: {
|
|
59
|
-
reportsDirectory: '../coverage/react-kit',
|
|
60
|
-
provider: 'v8',
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
});
|