tenjin-ui-kit 0.1.0-dev.0 → 0.1.0-dev.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/.dockerignore +6 -0
- package/.storybook/main.js +16 -0
- package/.storybook/preview.js +11 -0
- package/Dockerfile +17 -0
- package/Jenkinsfile +66 -0
- package/dist/README.md +13 -0
- package/{components → dist/components}/layout/topBar/ProjectTopbar.js +26 -24
- package/dist/package.json +122 -0
- package/package.json +5 -2
- package/public/favicon.ico +0 -0
- package/public/index.html +43 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/robots.txt +3 -0
- package/public/tenjinLogo.png +0 -0
- /package/{assets → dist/assets}/images/MicrosoftTeams-image (1).png +0 -0
- /package/{assets → dist/assets}/images/tenjin-4.0-logo.png +0 -0
- /package/{common → dist/common}/hooks/apiHooks.js +0 -0
- /package/{common → dist/common}/hooks/newApiHook.js +0 -0
- /package/{common → dist/common}/utils/security/index.js +0 -0
- /package/{common → dist/common}/utils/security/securityConfig.js +0 -0
- /package/{components → dist/components}/Canvas.js +0 -0
- /package/{components → dist/components}/DragBox/index.js +0 -0
- /package/{components → dist/components}/InputWithChip/index.js +0 -0
- /package/{components → dist/components}/RightContext/index.css +0 -0
- /package/{components → dist/components}/RightContext/index.js +0 -0
- /package/{components → dist/components}/WorkFlow.js +0 -0
- /package/{components → dist/components}/WorkFlowBuilder.js +0 -0
- /package/{components → dist/components}/alert/Style.js +0 -0
- /package/{components → dist/components}/alert/index.js +0 -0
- /package/{components → dist/components}/attachment/index.js +0 -0
- /package/{components → dist/components}/authenticationProvider/AuthError.js +0 -0
- /package/{components → dist/components}/authenticationProvider/AuthLoader.js +0 -0
- /package/{components → dist/components}/authenticationProvider/index.js +0 -0
- /package/{components → dist/components}/avatar/index.js +0 -0
- /package/{components → dist/components}/avatar/styles.js +0 -0
- /package/{components → dist/components}/breadCrumbs/index.js +0 -0
- /package/{components → dist/components}/breadCrumbs/style.js +0 -0
- /package/{components → dist/components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/index.js +0 -0
- /package/{components → dist/components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/style.js +0 -0
- /package/{components → dist/components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewHeader/index.js +0 -0
- /package/{components → dist/components}/browsingTestCaseLayout/TreeViewLayout/TreeViewContent/Index.js +0 -0
- /package/{components → dist/components}/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/Index.js +0 -0
- /package/{components → dist/components}/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +0 -0
- /package/{components → dist/components}/browsingTestCaseLayout/index.js +0 -0
- /package/{components → dist/components}/browsingTestCaseLayout/style.css +0 -0
- /package/{components → dist/components}/button/index.js +0 -0
- /package/{components → dist/components}/chatBotModal/index.js +0 -0
- /package/{components → dist/components}/checkBox/index.js +0 -0
- /package/{components → dist/components}/divider/index.js +0 -0
- /package/{components → dist/components}/editableField/index.js +0 -0
- /package/{components → dist/components}/error/index.js +0 -0
- /package/{components → dist/components}/errorBoundary/Error.jpg +0 -0
- /package/{components → dist/components}/errorBoundary/index.js +0 -0
- /package/{components → dist/components}/fileUploader/index.js +0 -0
- /package/{components → dist/components}/fileUploader/style.js +0 -0
- /package/{components → dist/components}/filter/ValueSelector.js +0 -0
- /package/{components → dist/components}/filter/index.js +0 -0
- /package/{components → dist/components}/iconButton/index.js +0 -0
- /package/{components → dist/components}/iconButton/style.js +0 -0
- /package/{components → dist/components}/input/index.js +0 -0
- /package/{components → dist/components}/layout/index.js +0 -0
- /package/{components → dist/components}/layout/main/index.js +0 -0
- /package/{components → dist/components}/layout/main/style.js +0 -0
- /package/{components → dist/components}/layout/pageContent/index.js +0 -0
- /package/{components → dist/components}/layout/sidebar/FlatMenu.js +0 -0
- /package/{components → dist/components}/layout/sidebar/GroupedIconMenu.js +0 -0
- /package/{components → dist/components}/layout/sidebar/GroupedMenu.js +0 -0
- /package/{components → dist/components}/layout/sidebar/ProjectMenu.js +0 -0
- /package/{components → dist/components}/layout/sidebar/index.js +0 -0
- /package/{components → dist/components}/layout/sidebar/style.js +0 -0
- /package/{components → dist/components}/layout/topBar/UserAvatar.js +0 -0
- /package/{components → dist/components}/layout/topBar/index.js +0 -0
- /package/{components → dist/components}/loader/index.js +0 -0
- /package/{components → dist/components}/menu/index.js +0 -0
- /package/{components → dist/components}/modal/Modal.js +0 -0
- /package/{components → dist/components}/modal/index.js +0 -0
- /package/{components → dist/components}/modal/style.js +0 -0
- /package/{components → dist/components}/optionMenu/index.js +0 -0
- /package/{components → dist/components}/pagination/index.js +0 -0
- /package/{components → dist/components}/pagination/style.js +0 -0
- /package/{components → dist/components}/paginationUpdated/index.js +0 -0
- /package/{components → dist/components}/paper/index.js +0 -0
- /package/{components → dist/components}/paper/style.js +0 -0
- /package/{components → dist/components}/reactSelect/index.js +0 -0
- /package/{components → dist/components}/reactSelect/style.js +0 -0
- /package/{components → dist/components}/richTextEditor/index.js +0 -0
- /package/{components → dist/components}/richTextEditor/style.js +0 -0
- /package/{components → dist/components}/select/GroupedSelect.js +0 -0
- /package/{components → dist/components}/select/SimpleSelect.js +0 -0
- /package/{components → dist/components}/select/index.js +0 -0
- /package/{components → dist/components}/simpleSelect/index.js +0 -0
- /package/{components → dist/components}/sort/index.js +0 -0
- /package/{components → dist/components}/switch/index.js +0 -0
- /package/{components → dist/components}/switch/style.js +0 -0
- /package/{components → dist/components}/switch/switch.js +0 -0
- /package/{components → dist/components}/table/ReactTable.js +0 -0
- /package/{components → dist/components}/table/SimpleTable.js +0 -0
- /package/{components → dist/components}/table/index.js +0 -0
- /package/{components → dist/components}/text/index.js +0 -0
- /package/{components → dist/components}/timeStamp/index.js +0 -0
- /package/{components → dist/components}/timeStamp/style.js +0 -0
- /package/{components → dist/components}/topBar/index.js +0 -0
- /package/{components → dist/components}/tree/index.js +0 -0
- /package/{components → dist/components}/tree/style.js +0 -0
- /package/{components → dist/components}/valuePicker/ValueSelector.js +0 -0
- /package/{components → dist/components}/valuePicker/index.js +0 -0
- /package/{components → dist/components}/wrapperLayout/layout/index.js +0 -0
- /package/{components → dist/components}/wrapperLayout/layout/style.js +0 -0
- /package/{components → dist/components}/wrapperLayout/main/index.js +0 -0
- /package/{components → dist/components}/wrapperLayout/main/pageContainer/index.js +0 -0
- /package/{components → dist/components}/wrapperLayout/main/sideBar/index.js +0 -0
- /package/{components → dist/components}/wrapperLayout/main/sideBar/style.js +0 -0
- /package/{components → dist/components}/wrapperLayout/topBar/UserAvatar.js +0 -0
- /package/{components → dist/components}/wrapperLayout/topBar/avatar.js +0 -0
- /package/{components → dist/components}/wrapperLayout/topBar/index.js +0 -0
- /package/{components → dist/components}/wrapperLayout/topBar/menuIcon.js +0 -0
- /package/{components → dist/components}/wrapperLayout/topBar/style.js +0 -0
- /package/{http → dist/http}/index.js +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{templates → dist/templates}/listPage/index.js +0 -0
- /package/{themes → dist/themes}/default.js +0 -0
- /package/{themes → dist/themes}/defaultSmall.js +0 -0
- /package/{themes → dist/themes}/responsiveTheme.js +0 -0
package/.dockerignore
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"stories": [
|
|
3
|
+
"../src/**/*.stories.mdx",
|
|
4
|
+
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
|
5
|
+
],
|
|
6
|
+
"addons": [
|
|
7
|
+
"@storybook/addon-links",
|
|
8
|
+
"@storybook/addon-essentials",
|
|
9
|
+
"@storybook/addon-interactions",
|
|
10
|
+
"@storybook/preset-create-react-app"
|
|
11
|
+
],
|
|
12
|
+
"framework": "@storybook/react",
|
|
13
|
+
"core": {
|
|
14
|
+
"builder": "@storybook/builder-webpack5"
|
|
15
|
+
}
|
|
16
|
+
}
|
package/Dockerfile
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# build environment
|
|
2
|
+
FROM node:16-alpine as build
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
ENV PATH /app/node_modules/.bin:$PATH
|
|
5
|
+
COPY package.json ./
|
|
6
|
+
COPY package-lock.json ./
|
|
7
|
+
COPY . ./
|
|
8
|
+
RUN npm install
|
|
9
|
+
RUN npm run build-storybook
|
|
10
|
+
RUN npm run compile
|
|
11
|
+
RUN npm version patch -m "CI patch version bump"
|
|
12
|
+
RUN cp ./package.json ./dist
|
|
13
|
+
RUN cp ./README.md ./dist
|
|
14
|
+
RUN cd dist
|
|
15
|
+
RUN npm publish
|
|
16
|
+
# TEST COMMIT 2
|
|
17
|
+
|
package/Jenkinsfile
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
pipeline {
|
|
2
|
+
agent {label 'tjui-kit'}
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
stages {
|
|
8
|
+
stage ("Build") {
|
|
9
|
+
steps {
|
|
10
|
+
dir("./") {
|
|
11
|
+
sh 'npm install'
|
|
12
|
+
sh 'npm run compile'
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
stage ("Upgrade version") {
|
|
17
|
+
steps {
|
|
18
|
+
dir("./") {
|
|
19
|
+
sh 'git restore package-lock.json'
|
|
20
|
+
|
|
21
|
+
sh 'npm version patch'
|
|
22
|
+
sh 'git remote set-url origin https://vybhavkadam:glpat-Ee-CqdVnwzURCGPzFwys@gitlab.com/yethi/react/tenjin-ui-kit.git'
|
|
23
|
+
sh 'git push origin HEAD:main --tags'
|
|
24
|
+
//sh 'git push --tags'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
stage ("Publish library") {
|
|
30
|
+
steps {
|
|
31
|
+
dir("./") {
|
|
32
|
+
sh 'cp ./package.json ./dist'
|
|
33
|
+
// sh 'cp ./README.md ./dist'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
dir("./") {
|
|
37
|
+
//sh 'npm config set //registry.npmjs.org/:_authToken=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'
|
|
38
|
+
sh 'export NPM_TOKEN=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'
|
|
39
|
+
sh 'npm publish ./dist'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
stage ("Build Storybook") {
|
|
45
|
+
steps {
|
|
46
|
+
dir("./") {
|
|
47
|
+
sh 'npm run build-storybook'
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
stage ("Deploy Storybook") {
|
|
53
|
+
steps {
|
|
54
|
+
dir("./") {
|
|
55
|
+
sh 'npx netlify deploy --auth xZ5gRrdcq6pPShzAcOtxCqD3e5MzwWxwBevsrQdyIl0 --site 9a55e91f-3c3e-4492-8d50-7f17ca87adeb --dir storybook-static --prod'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
stage('CleanWorkspace') {
|
|
60
|
+
steps {
|
|
61
|
+
cleanWs()
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
}
|
package/dist/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Tenjin UI Kit
|
|
2
|
+
|
|
3
|
+
The Tenjin UI kit ships a set of pre-built components that can be used while building user interfaces for Tenjin.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
In the project directory, you can run:
|
|
8
|
+
|
|
9
|
+
npm install tenjin-ui-kit
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
The [Tenjin UI Kit](https://tenjin-ui-kit.netlify.app) storybook gives clear documentation on how to use the Tenjin UI Kit.
|
|
@@ -33,24 +33,24 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
33
33
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
34
34
|
var ANNOUNCEMENT_TYPES = {
|
|
35
35
|
success: {
|
|
36
|
-
backgroundColor:
|
|
37
|
-
borderLeft:
|
|
38
|
-
color:
|
|
36
|
+
backgroundColor: "#EDF7ED",
|
|
37
|
+
borderLeft: "6px solid #4CAF50",
|
|
38
|
+
color: "#1B5E20"
|
|
39
39
|
},
|
|
40
40
|
error: {
|
|
41
|
-
backgroundColor:
|
|
42
|
-
borderLeft:
|
|
43
|
-
color:
|
|
41
|
+
backgroundColor: "#FDECEA",
|
|
42
|
+
borderLeft: "6px solid #F44336",
|
|
43
|
+
color: "#B71C1C"
|
|
44
44
|
},
|
|
45
45
|
warning: {
|
|
46
|
-
backgroundColor:
|
|
47
|
-
borderLeft:
|
|
48
|
-
color:
|
|
46
|
+
backgroundColor: "#FFF6DA",
|
|
47
|
+
borderLeft: "6px solid #FFC107",
|
|
48
|
+
color: "#7C5E10"
|
|
49
49
|
},
|
|
50
50
|
info: {
|
|
51
|
-
backgroundColor:
|
|
52
|
-
borderLeft:
|
|
53
|
-
color:
|
|
51
|
+
backgroundColor: "#E8F4FD",
|
|
52
|
+
borderLeft: "6px solid #2196F3",
|
|
53
|
+
color: "#0D47A1"
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
var ProjectTopbar = function ProjectTopbar(_ref) {
|
|
@@ -103,6 +103,8 @@ var ProjectTopbar = function ProjectTopbar(_ref) {
|
|
|
103
103
|
} else {
|
|
104
104
|
navigate(item.href);
|
|
105
105
|
}
|
|
106
|
+
} else if (item.onClick) {
|
|
107
|
+
item.onClick();
|
|
106
108
|
} else {
|
|
107
109
|
if (localStorage.getItem("chatBot")) {
|
|
108
110
|
localStorage.removeItem("chatBot");
|
|
@@ -255,20 +257,20 @@ var ProjectTopbar = function ProjectTopbar(_ref) {
|
|
|
255
257
|
backgroundColor: ANNOUNCEMENT_TYPES[announcement.type].backgroundColor,
|
|
256
258
|
borderLeft: ANNOUNCEMENT_TYPES[announcement.type].borderLeft,
|
|
257
259
|
color: ANNOUNCEMENT_TYPES[announcement.type].color,
|
|
258
|
-
minHeight:
|
|
259
|
-
height:
|
|
260
|
-
minWidth:
|
|
261
|
-
borderRadius:
|
|
262
|
-
marginRight:
|
|
263
|
-
paddingInline:
|
|
264
|
-
paddingBlock:
|
|
265
|
-
display:
|
|
266
|
-
alignItems:
|
|
267
|
-
fontSize:
|
|
260
|
+
minHeight: "26px",
|
|
261
|
+
height: "100%",
|
|
262
|
+
minWidth: "200px",
|
|
263
|
+
borderRadius: "4px",
|
|
264
|
+
marginRight: "10px",
|
|
265
|
+
paddingInline: "10px",
|
|
266
|
+
paddingBlock: "6px",
|
|
267
|
+
display: "flex",
|
|
268
|
+
alignItems: "center",
|
|
269
|
+
fontSize: "12px"
|
|
268
270
|
}
|
|
269
|
-
}, typeof announcement.message ===
|
|
271
|
+
}, typeof announcement.message === "string" ? /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
270
272
|
sx: {
|
|
271
|
-
fontSize:
|
|
273
|
+
fontSize: "12px"
|
|
272
274
|
}
|
|
273
275
|
}, announcement.message) : announcement.message), (loggedInUser === null || loggedInUser === void 0 ? void 0 : (_loggedInUser$role = loggedInUser.role) === null || _loggedInUser$role === void 0 ? void 0 : _loggedInUser$role.id) === 1 && /*#__PURE__*/_react.default.createElement(_button.default, {
|
|
274
276
|
variant: "text",
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tenjin-ui-kit",
|
|
3
|
+
"version": "0.1.0-dev.1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
|
|
6
|
+
},
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@floating-ui/dom": "^1.2.1",
|
|
9
|
+
"@mantine/core": "^5.10.1",
|
|
10
|
+
"@mantine/hooks": "^5.10.1",
|
|
11
|
+
"@mantine/rte": "^5.10.1",
|
|
12
|
+
"@mui/icons-material": "^5.11.0",
|
|
13
|
+
"@mui/lab": "^5.0.0-alpha.116",
|
|
14
|
+
"@mui/styles": "^5.11.2",
|
|
15
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
16
|
+
"@testing-library/react": "^13.4.0",
|
|
17
|
+
"@testing-library/user-event": "^13.5.0",
|
|
18
|
+
"aria-hidden": "^1.2.2",
|
|
19
|
+
"axios": "^0.26.0",
|
|
20
|
+
"clsx": "^1.2.1",
|
|
21
|
+
"d3-hierarchy": "^3.1.2",
|
|
22
|
+
"feather-icons": "^4.29.0",
|
|
23
|
+
"final-form": "^4.20.9",
|
|
24
|
+
"material-ui-popup-state": "^5.0.8",
|
|
25
|
+
"moment": "^2.29.4",
|
|
26
|
+
"npm-run-all": "^4.1.5",
|
|
27
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
28
|
+
"react-dnd": "^16.0.1",
|
|
29
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
30
|
+
"react-dropzone": "^14.2.3",
|
|
31
|
+
"react-feather": "^2.0.10",
|
|
32
|
+
"react-final-form": "^6.5.9",
|
|
33
|
+
"react-flow-renderer": "^10.3.17",
|
|
34
|
+
"react-icons": "^4.10.1",
|
|
35
|
+
"react-moment": "^1.1.3",
|
|
36
|
+
"react-scripts": "5.0.1",
|
|
37
|
+
"react-select": "^5.7.4",
|
|
38
|
+
"react-sortable-hoc": "^2.0.0",
|
|
39
|
+
"reactflow": "^11.6.1",
|
|
40
|
+
"storybook-react-context": "^0.6.0",
|
|
41
|
+
"styled-components": "^5.3.9",
|
|
42
|
+
"uuid": "^9.0.0",
|
|
43
|
+
"web-vitals": "^2.1.4"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"start": "react-scripts start",
|
|
47
|
+
"build": "react-scripts build",
|
|
48
|
+
"test": "react-scripts test",
|
|
49
|
+
"eject": "react-scripts eject",
|
|
50
|
+
"storybook": "start-storybook -p 6006 -s public",
|
|
51
|
+
"build-storybook": "build-storybook -s public",
|
|
52
|
+
"clean": "rimraf dist",
|
|
53
|
+
"compile": "npm run clean && cross-env NODE_ENV=production babel src/package --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__",
|
|
54
|
+
"copy-and-publish": "copy package.json dist && copy README.md dist && npm publish --tag dev",
|
|
55
|
+
"publish-dev": "npm-run-all compile copy-and-publish"
|
|
56
|
+
},
|
|
57
|
+
"eslintConfig": {
|
|
58
|
+
"extends": [
|
|
59
|
+
"react-app",
|
|
60
|
+
"react-app/jest"
|
|
61
|
+
],
|
|
62
|
+
"overrides": [
|
|
63
|
+
{
|
|
64
|
+
"files": [
|
|
65
|
+
"**/*.stories.*"
|
|
66
|
+
],
|
|
67
|
+
"rules": {
|
|
68
|
+
"import/no-anonymous-default-export": "off"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"browserslist": {
|
|
74
|
+
"production": [
|
|
75
|
+
">0.2%",
|
|
76
|
+
"not dead",
|
|
77
|
+
"not op_mini all"
|
|
78
|
+
],
|
|
79
|
+
"development": [
|
|
80
|
+
"last 1 chrome version",
|
|
81
|
+
"last 1 firefox version",
|
|
82
|
+
"last 1 safari version"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@babel/cli": "^7.20.7",
|
|
87
|
+
"@babel/preset-env": "^7.20.2",
|
|
88
|
+
"@babel/preset-react": "^7.18.6",
|
|
89
|
+
"@emotion/react": "^11.10.5",
|
|
90
|
+
"@emotion/styled": "^11.10.5",
|
|
91
|
+
"@mui/material": "^5.11.3",
|
|
92
|
+
"@storybook/addon-actions": "^6.5.15",
|
|
93
|
+
"@storybook/addon-essentials": "^6.5.15",
|
|
94
|
+
"@storybook/addon-interactions": "^6.5.15",
|
|
95
|
+
"@storybook/addon-links": "^6.5.15",
|
|
96
|
+
"@storybook/builder-webpack5": "^6.5.15",
|
|
97
|
+
"@storybook/manager-webpack5": "^6.5.15",
|
|
98
|
+
"@storybook/node-logger": "^6.5.15",
|
|
99
|
+
"@storybook/preset-create-react-app": "^4.1.2",
|
|
100
|
+
"@storybook/react": "^6.5.15",
|
|
101
|
+
"@storybook/testing-library": "^0.0.13",
|
|
102
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
103
|
+
"cross-env": "^7.0.3",
|
|
104
|
+
"prop-types": "^15.8.1",
|
|
105
|
+
"react": "^18.2.0",
|
|
106
|
+
"react-dom": "^18.2.0",
|
|
107
|
+
"react-router-dom": "^6.6.1",
|
|
108
|
+
"rimraf": "^3.0.2",
|
|
109
|
+
"webpack": "^5.75.0"
|
|
110
|
+
},
|
|
111
|
+
"peerDependencies": {
|
|
112
|
+
"@emotion/react": "^11.10.5",
|
|
113
|
+
"@emotion/styled": "^11.10.5",
|
|
114
|
+
"@mui/material": "^5.11.3",
|
|
115
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
116
|
+
"@testing-library/react": "^13.4.0",
|
|
117
|
+
"@testing-library/user-event": "^13.5.0",
|
|
118
|
+
"react": "^18.2.0",
|
|
119
|
+
"react-dom": "^18.2.0",
|
|
120
|
+
"react-router-dom": "^6.6.1"
|
|
121
|
+
}
|
|
122
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tenjin-ui-kit",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
|
|
6
6
|
},
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"final-form": "^4.20.9",
|
|
24
24
|
"material-ui-popup-state": "^5.0.8",
|
|
25
25
|
"moment": "^2.29.4",
|
|
26
|
+
"npm-run-all": "^4.1.5",
|
|
26
27
|
"react-beautiful-dnd": "^13.1.1",
|
|
27
28
|
"react-dnd": "^16.0.1",
|
|
28
29
|
"react-dnd-html5-backend": "^16.0.1",
|
|
@@ -49,7 +50,9 @@
|
|
|
49
50
|
"storybook": "start-storybook -p 6006 -s public",
|
|
50
51
|
"build-storybook": "build-storybook -s public",
|
|
51
52
|
"clean": "rimraf dist",
|
|
52
|
-
"compile": "npm run clean && cross-env NODE_ENV=production babel src/package --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__"
|
|
53
|
+
"compile": "npm run clean && cross-env NODE_ENV=production babel src/package --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__",
|
|
54
|
+
"copy-and-publish": "copy package.json dist && copy README.md dist && npm publish --tag dev",
|
|
55
|
+
"publish-dev": "npm-run-all compile copy-and-publish"
|
|
53
56
|
},
|
|
54
57
|
"eslintConfig": {
|
|
55
58
|
"extends": [
|
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<meta name="theme-color" content="#000000" />
|
|
8
|
+
<meta
|
|
9
|
+
name="description"
|
|
10
|
+
content="Web site created using create-react-app"
|
|
11
|
+
/>
|
|
12
|
+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
+
<!--
|
|
14
|
+
manifest.json provides metadata used when your web app is installed on a
|
|
15
|
+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
16
|
+
-->
|
|
17
|
+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
18
|
+
<!--
|
|
19
|
+
Notice the use of %PUBLIC_URL% in the tags above.
|
|
20
|
+
It will be replaced with the URL of the `public` folder during the build.
|
|
21
|
+
Only files inside the `public` folder can be referenced from the HTML.
|
|
22
|
+
|
|
23
|
+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
24
|
+
work correctly both with client-side routing and a non-root public URL.
|
|
25
|
+
Learn how to configure a non-root public URL by running `npm run build`.
|
|
26
|
+
-->
|
|
27
|
+
<title>React App</title>
|
|
28
|
+
</head>
|
|
29
|
+
<body>
|
|
30
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
31
|
+
<div id="root"></div>
|
|
32
|
+
<!--
|
|
33
|
+
This HTML file is a template.
|
|
34
|
+
If you open it directly in the browser, you will see an empty page.
|
|
35
|
+
|
|
36
|
+
You can add webfonts, meta tags, or analytics to this file.
|
|
37
|
+
The build step will place the bundled scripts into the <body> tag.
|
|
38
|
+
|
|
39
|
+
To begin the development, run `npm start` or `yarn start`.
|
|
40
|
+
To create a production bundle, use `npm run build` or `yarn build`.
|
|
41
|
+
-->
|
|
42
|
+
</body>
|
|
43
|
+
</html>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"short_name": "React App",
|
|
3
|
+
"name": "Create React App Sample",
|
|
4
|
+
"icons": [
|
|
5
|
+
{
|
|
6
|
+
"src": "favicon.ico",
|
|
7
|
+
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
+
"type": "image/x-icon"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"src": "logo192.png",
|
|
12
|
+
"type": "image/png",
|
|
13
|
+
"sizes": "192x192"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"src": "logo512.png",
|
|
17
|
+
"type": "image/png",
|
|
18
|
+
"sizes": "512x512"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"start_url": ".",
|
|
22
|
+
"display": "standalone",
|
|
23
|
+
"theme_color": "#000000",
|
|
24
|
+
"background_color": "#ffffff"
|
|
25
|
+
}
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|