tenjin-ui-kit 0.2.113 → 0.2.115

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 (107) hide show
  1. package/.dockerignore +6 -0
  2. package/.storybook/main.js +16 -0
  3. package/.storybook/preview.js +11 -0
  4. package/Dockerfile +17 -0
  5. package/Jenkinsfile +66 -0
  6. package/README.md +13 -13
  7. package/dist/README.md +13 -0
  8. package/{components → dist/components}/RightContext/index.css +20 -20
  9. package/{components → dist/components}/breadCrumbs/index.js +5 -3
  10. package/{components → dist/components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewHeader/index.js +14 -3
  11. package/{components → dist/components}/browsingTestCaseLayout/index.js +35 -8
  12. package/{components → dist/components}/browsingTestCaseLayout/style.css +82 -82
  13. package/{components → dist/components}/layout/sidebar/ProjectMenu.js +6 -4
  14. package/{components → dist/components}/paper/index.js +8 -3
  15. package/{components → dist/components}/paper/style.js +15 -0
  16. package/{components → dist/components}/text/index.js +1 -1
  17. package/dist/package.json +118 -0
  18. package/package.json +118 -118
  19. package/public/favicon.ico +0 -0
  20. package/public/index.html +43 -0
  21. package/public/logo192.png +0 -0
  22. package/public/logo512.png +0 -0
  23. package/public/manifest.json +25 -0
  24. package/public/robots.txt +3 -0
  25. package/public/tenjinLogo.png +0 -0
  26. /package/{common → dist/common}/hooks/apiHooks.js +0 -0
  27. /package/{common → dist/common}/hooks/newApiHook.js +0 -0
  28. /package/{common → dist/common}/utils/security/index.js +0 -0
  29. /package/{common → dist/common}/utils/security/securityConfig.js +0 -0
  30. /package/{components → dist/components}/Canvas.js +0 -0
  31. /package/{components → dist/components}/DragBox/index.js +0 -0
  32. /package/{components → dist/components}/InputWithChip/index.js +0 -0
  33. /package/{components → dist/components}/RightContext/index.js +0 -0
  34. /package/{components → dist/components}/WorkFlow.js +0 -0
  35. /package/{components → dist/components}/WorkFlowBuilder.js +0 -0
  36. /package/{components → dist/components}/alert/Style.js +0 -0
  37. /package/{components → dist/components}/alert/index.js +0 -0
  38. /package/{components → dist/components}/authenticationProvider/AuthError.js +0 -0
  39. /package/{components → dist/components}/authenticationProvider/AuthLoader.js +0 -0
  40. /package/{components → dist/components}/authenticationProvider/index.js +0 -0
  41. /package/{components → dist/components}/avatar/index.js +0 -0
  42. /package/{components → dist/components}/avatar/styles.js +0 -0
  43. /package/{components → dist/components}/breadCrumbs/style.js +0 -0
  44. /package/{components → dist/components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/index.js +0 -0
  45. /package/{components → dist/components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/style.js +0 -0
  46. /package/{components → dist/components}/browsingTestCaseLayout/TreeViewLayout/TreeViewContent/Index.js +0 -0
  47. /package/{components → dist/components}/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/Index.js +0 -0
  48. /package/{components → dist/components}/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +0 -0
  49. /package/{components → dist/components}/button/index.js +0 -0
  50. /package/{components → dist/components}/checkBox/index.js +0 -0
  51. /package/{components → dist/components}/divider/index.js +0 -0
  52. /package/{components → dist/components}/editableField/index.js +0 -0
  53. /package/{components → dist/components}/errorBoundary/Error.jpg +0 -0
  54. /package/{components → dist/components}/errorBoundary/index.js +0 -0
  55. /package/{components → dist/components}/fileUploader/index.js +0 -0
  56. /package/{components → dist/components}/fileUploader/style.js +0 -0
  57. /package/{components → dist/components}/iconButton/index.js +0 -0
  58. /package/{components → dist/components}/iconButton/style.js +0 -0
  59. /package/{components → dist/components}/input/index.js +0 -0
  60. /package/{components → dist/components}/layout/index.js +0 -0
  61. /package/{components → dist/components}/layout/main/index.js +0 -0
  62. /package/{components → dist/components}/layout/main/style.js +0 -0
  63. /package/{components → dist/components}/layout/pageContent/index.js +0 -0
  64. /package/{components → dist/components}/layout/sidebar/FlatMenu.js +0 -0
  65. /package/{components → dist/components}/layout/sidebar/GroupedMenu.js +0 -0
  66. /package/{components → dist/components}/layout/sidebar/index.js +0 -0
  67. /package/{components → dist/components}/layout/sidebar/style.js +0 -0
  68. /package/{components → dist/components}/layout/topBar/ProjectTopbar.js +0 -0
  69. /package/{components → dist/components}/layout/topBar/UserAvatar.js +0 -0
  70. /package/{components → dist/components}/layout/topBar/index.js +0 -0
  71. /package/{components → dist/components}/loader/index.js +0 -0
  72. /package/{components → dist/components}/modal/Modal.js +0 -0
  73. /package/{components → dist/components}/modal/index.js +0 -0
  74. /package/{components → dist/components}/modal/style.js +0 -0
  75. /package/{components → dist/components}/pagination/index.js +0 -0
  76. /package/{components → dist/components}/pagination/style.js +0 -0
  77. /package/{components → dist/components}/richTextEditor/index.js +0 -0
  78. /package/{components → dist/components}/richTextEditor/style.js +0 -0
  79. /package/{components → dist/components}/select/index.js +0 -0
  80. /package/{components → dist/components}/switch/index.js +0 -0
  81. /package/{components → dist/components}/switch/style.js +0 -0
  82. /package/{components → dist/components}/switch/switch.js +0 -0
  83. /package/{components → dist/components}/table/index.js +0 -0
  84. /package/{components → dist/components}/timeStamp/index.js +0 -0
  85. /package/{components → dist/components}/timeStamp/style.js +0 -0
  86. /package/{components → dist/components}/topBar/index.js +0 -0
  87. /package/{components → dist/components}/tree/index.js +0 -0
  88. /package/{components → dist/components}/tree/style.js +0 -0
  89. /package/{components → dist/components}/valuePicker/ValueSelector.js +0 -0
  90. /package/{components → dist/components}/valuePicker/index.js +0 -0
  91. /package/{components → dist/components}/wrapperLayout/layout/index.js +0 -0
  92. /package/{components → dist/components}/wrapperLayout/layout/style.js +0 -0
  93. /package/{components → dist/components}/wrapperLayout/main/index.js +0 -0
  94. /package/{components → dist/components}/wrapperLayout/main/pageContainer/index.js +0 -0
  95. /package/{components → dist/components}/wrapperLayout/main/sideBar/index.js +0 -0
  96. /package/{components → dist/components}/wrapperLayout/main/sideBar/style.js +0 -0
  97. /package/{components → dist/components}/wrapperLayout/topBar/UserAvatar.js +0 -0
  98. /package/{components → dist/components}/wrapperLayout/topBar/avatar.js +0 -0
  99. /package/{components → dist/components}/wrapperLayout/topBar/index.js +0 -0
  100. /package/{components → dist/components}/wrapperLayout/topBar/menuIcon.js +0 -0
  101. /package/{components → dist/components}/wrapperLayout/topBar/style.js +0 -0
  102. /package/{http → dist/http}/index.js +0 -0
  103. /package/{index.js → dist/index.js} +0 -0
  104. /package/{templates → dist/templates}/listPage/index.js +0 -0
  105. /package/{themes → dist/themes}/default.js +0 -0
  106. /package/{themes → dist/themes}/defaultSmall.js +0 -0
  107. /package/{themes → dist/themes}/responsiveTheme.js +0 -0
package/.dockerignore ADDED
@@ -0,0 +1,6 @@
1
+ node_modules
2
+ build
3
+ .dockerignore
4
+ Dockerfile
5
+ Dockerfile.prod
6
+ storybook-static
@@ -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
+ }
@@ -0,0 +1,11 @@
1
+ import ".././src/App.css"
2
+
3
+ export const parameters = {
4
+ actions: { argTypesRegex: "^on[A-Z].*" },
5
+ controls: {
6
+ matchers: {
7
+ color: /(background|color)$/i,
8
+ date: /Date$/,
9
+ },
10
+ },
11
+ }
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("./dist") {
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'
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/README.md CHANGED
@@ -1,13 +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.
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.
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.
@@ -1,20 +1,20 @@
1
- .contextContainer {
2
- z-index: 1;
3
- width: 100%;
4
- height: 500px;
5
- background: #673ab7;
6
- }
7
- .rightClick {
8
- z-index: 12;
9
- position: fixed;
10
- background: rgb(240, 200, 1);
11
- }
12
- .menuElement {
13
- color: #222222;
14
- cursor: pointer;
15
- padding: 17px 36px;
16
- }
17
- .menuElement:hover {
18
- color: #fff;
19
- background: #009688;
20
- }
1
+ .contextContainer {
2
+ z-index: 1;
3
+ width: 100%;
4
+ height: 500px;
5
+ background: #673ab7;
6
+ }
7
+ .rightClick {
8
+ z-index: 12;
9
+ position: fixed;
10
+ background: rgb(240, 200, 1);
11
+ }
12
+ .menuElement {
13
+ color: #222222;
14
+ cursor: pointer;
15
+ padding: 17px 36px;
16
+ }
17
+ .menuElement:hover {
18
+ color: #fff;
19
+ background: #009688;
20
+ }
@@ -53,11 +53,13 @@ function BreadCrumbs(props) {
53
53
  textDecoration: 'none',
54
54
  color: data !== null && data !== void 0 && data.active ? '#000000DE' : '#44409A',
55
55
  fontWeight: 500,
56
- cursor: data.active !== true && 'pointer'
56
+ cursor: data.active !== true && 'pointer',
57
+ display: "flex"
57
58
  }
58
- }, /*#__PURE__*/React.createElement("span", {
59
+ }, /*#__PURE__*/React.createElement("div", {
59
60
  style: {
60
- marginRight: '0.4rem'
61
+ marginRight: '0.4rem',
62
+ marginTop: "0.15rem"
61
63
  }
62
64
  }, data.icon), (data === null || data === void 0 ? void 0 : (_data$title = data.title) === null || _data$title === void 0 ? void 0 : _data$title.length) > 20 ? /*#__PURE__*/React.createElement(_material.Tooltip, {
63
65
  title: data === null || data === void 0 ? void 0 : data.title,
@@ -11,12 +11,23 @@ var _breadCrumbs = _interopRequireDefault(require("../../../breadCrumbs"));
11
11
  var _default2 = _interopRequireDefault(require("../../../../themes/default"));
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  var DetailsViewHeader = function DetailsViewHeader(props) {
14
- var breadcrumbsData = props.breadcrumbsData;
14
+ var breadcrumbsData = props.breadcrumbsData,
15
+ component = props.component;
15
16
  return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.ThemeProvider, {
16
17
  theme: _default2.default
17
- }, /*#__PURE__*/_react.default.createElement(_material.CssBaseline, null), /*#__PURE__*/_react.default.createElement(_breadCrumbs.default, {
18
+ }, /*#__PURE__*/_react.default.createElement(_material.CssBaseline, null), /*#__PURE__*/_react.default.createElement(_material.Grid, {
19
+ container: true
20
+ }, /*#__PURE__*/_react.default.createElement(_material.Grid, {
21
+ item: true,
22
+ xs: 6
23
+ }, " ", /*#__PURE__*/_react.default.createElement(_breadCrumbs.default, {
18
24
  crumbInfo: breadcrumbsData
19
- })));
25
+ })), /*#__PURE__*/_react.default.createElement(_material.Grid, {
26
+ item: true,
27
+ xs: 6,
28
+ container: true,
29
+ justifyContent: "flex-end"
30
+ }, component))));
20
31
  };
21
32
  DetailsViewHeader.propTypes = {};
22
33
  var _default = DetailsViewHeader;
@@ -14,6 +14,7 @@ require("./style.css");
14
14
  var _material = require("@mui/material");
15
15
  var _bs = require("react-icons/bs");
16
16
  var _iconButton = _interopRequireDefault(require("../iconButton"));
17
+ var _text = _interopRequireDefault(require("../text"));
17
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
19
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
20
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -75,21 +76,47 @@ var BrowsingTestCaseLayout = function BrowsingTestCaseLayout(_ref) {
75
76
  ref: boxARef,
76
77
  elevation: 0,
77
78
  className: "leftWrapper"
78
- }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
79
- className: "arrowButton"
79
+ }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !expand ? /*#__PURE__*/_react.default.createElement("div", {
80
+ style: {
81
+ marginTop: "2rem"
82
+ }
83
+ }, /*#__PURE__*/_react.default.createElement(_text.default, {
84
+ style: {
85
+ color: "#44409A"
86
+ },
87
+ className: "verticalText",
88
+ semibold: true
89
+ }, "Test Repository")) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children[0], children[1])))), /*#__PURE__*/_react.default.createElement("div", {
90
+ style: {
91
+ display: "flex",
92
+ justifyContent: "center",
93
+ alignItems: "center",
94
+ flexDirection: "column"
95
+ }
96
+ }, /*#__PURE__*/_react.default.createElement("div", {
97
+ style: {
98
+ marginTop: "-0.3rem"
99
+ }
80
100
  }, /*#__PURE__*/_react.default.createElement(_iconButton.default, {
81
101
  title: expand ? "Collapse" : "Expand",
82
- icon: expand ? /*#__PURE__*/_react.default.createElement(_bs.BsArrowLeftCircle, null) : /*#__PURE__*/_react.default.createElement(_bs.BsArrowRightCircle, null),
102
+ icon: expand ? /*#__PURE__*/_react.default.createElement(_bs.BsArrowLeftCircle, {
103
+ style: {
104
+ width: "20px",
105
+ height: "20px"
106
+ }
107
+ }) : /*#__PURE__*/_react.default.createElement(_bs.BsArrowRightCircle, {
108
+ style: {
109
+ width: "20px",
110
+ height: "20px"
111
+ }
112
+ }),
83
113
  onClick: function onClick() {
84
114
  return setExpand(!expand);
85
115
  }
86
- })), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !expand ? /*#__PURE__*/_react.default.createElement(_material.Typography, {
87
- color: "#44409A",
88
- className: "verticalText"
89
- }, "Test Repository") : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children[0], children[1])))), /*#__PURE__*/_react.default.createElement("div", {
116
+ }), " "), /*#__PURE__*/_react.default.createElement("div", {
90
117
  class: "handler",
91
118
  onMouseDown: handleMouseDown
92
- }), /*#__PURE__*/_react.default.createElement(_material.Paper, {
119
+ })), /*#__PURE__*/_react.default.createElement(_material.Paper, {
93
120
  ref: boxARef,
94
121
  elevation: 0,
95
122
  className: "rightWrapper"
@@ -1,82 +1,82 @@
1
- :root {
2
- --box-width: 200px;
3
- }
4
-
5
- body {
6
- margin: 40px;
7
- }
8
-
9
- .wrapper {
10
- background-color: #fff;
11
- color: #444;
12
- display: flex;
13
- }
14
-
15
- .box {
16
- background-color: #444;
17
- color: #fff;
18
- border-radius: 5px;
19
- padding: 20px;
20
- font-size: 12px;
21
-
22
- box-sizing: border-box;
23
-
24
- flex: 1 1 auto;
25
- }
26
-
27
- .handler {
28
- width: 20px;
29
- padding: 0;
30
- cursor: ew-resize;
31
- flex: 0 0 auto;
32
- }
33
-
34
- .handler::before {
35
- content: "";
36
- display: block;
37
- width: 2px;
38
- height: calc(100vh - 34px);
39
- background: #c0c0c0;
40
- margin: 0 auto;
41
- }
42
-
43
- .arrowButton {
44
- display: flex;
45
- justify-content: flex-end;
46
- /* transition: 0.4s; */
47
- width: 100%;
48
- }
49
-
50
- .verticalText {
51
- display: flex;
52
- flex-direction: column;
53
- justify-content: center;
54
- writing-mode: vertical-lr;
55
- text-orientation: mixed;
56
- transform: rotate(180deg);
57
- font-size: 1.3rem;
58
- }
59
-
60
- .leftWrapper {
61
- background-color: #fff;
62
- color: black;
63
- border-radius: 5px;
64
- padding: 0rem 0.5rem;
65
- font-size: 12px;
66
- box-sizing: border-box;
67
- flex: 1 1 auto;
68
- min-width: var(--box-width);
69
- flex-grow: 0;
70
- }
71
-
72
- .rightWrapper {
73
- background-color: #fff;
74
- color: black;
75
- border-radius: 5px;
76
- padding: 0rem 0.5rem;
77
- font-size: 12px;
78
- box-sizing: border-box;
79
- flex: 1 1 auto;
80
- min-width: var(--box-width);
81
- flex-grow: 1;
82
- }
1
+ :root {
2
+ --box-width: 200px;
3
+ }
4
+
5
+ body {
6
+ margin: 40px;
7
+ }
8
+
9
+ .wrapper {
10
+ background-color: #fff;
11
+ color: #444;
12
+ display: flex;
13
+ }
14
+
15
+ .box {
16
+ background-color: #444;
17
+ color: #fff;
18
+ border-radius: 5px;
19
+ padding: 20px;
20
+ font-size: 12px;
21
+
22
+ box-sizing: border-box;
23
+
24
+ flex: 1 1 auto;
25
+ }
26
+
27
+ .handler {
28
+ width: 20px;
29
+ padding: 0;
30
+ cursor: ew-resize;
31
+ flex: 0 0 auto;
32
+ }
33
+
34
+ .handler::before {
35
+ content: "";
36
+ display: block;
37
+ width: 2px;
38
+ height: calc(100vh - 34px);
39
+ background: #c0c0c0;
40
+ margin: 0 auto;
41
+ }
42
+
43
+ .arrowButton {
44
+ display: flex;
45
+ justify-content: flex-end;
46
+ /* transition: 0.4s; */
47
+ width: 100%;
48
+ }
49
+
50
+ .verticalText {
51
+ display: flex;
52
+ flex-direction: column;
53
+ justify-content: center;
54
+ writing-mode: vertical-lr;
55
+ text-orientation: mixed;
56
+ transform: rotate(180deg);
57
+ font-size: 1.3rem;
58
+ }
59
+
60
+ .leftWrapper {
61
+ background-color: #fff;
62
+ color: black;
63
+ border-radius: 5px;
64
+ padding: 0rem 0.5rem;
65
+ font-size: 12px;
66
+ box-sizing: border-box;
67
+ flex: 1 1 auto;
68
+ min-width: var(--box-width);
69
+ flex-grow: 0;
70
+ }
71
+
72
+ .rightWrapper {
73
+ background-color: #fff;
74
+ color: black;
75
+ border-radius: 5px;
76
+ padding: 0rem 0.5rem;
77
+ font-size: 12px;
78
+ box-sizing: border-box;
79
+ flex: 1 1 auto;
80
+ min-width: var(--box-width);
81
+ flex-grow: 1;
82
+ }
@@ -30,7 +30,8 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
30
30
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
31
  var ProjectMenu = function ProjectMenu(_ref) {
32
32
  var groups = _ref.groups,
33
- draggable = _ref.draggable;
33
+ draggable = _ref.draggable,
34
+ title = _ref.title;
34
35
  var classes = (0, _style.default)();
35
36
  var popupRef = (0, _react.useRef)(null);
36
37
  var navigate = (0, _reactRouterDom.useNavigate)();
@@ -95,10 +96,11 @@ var ProjectMenu = function ProjectMenu(_ref) {
95
96
  className: classes.projectMenuMainWrapper
96
97
  }, /*#__PURE__*/_react.default.createElement("div", null, !collapsed && /*#__PURE__*/_react.default.createElement(_material.Typography, {
97
98
  className: classes.projectMenuHeader,
98
- fontWeight: 600,
99
- marginBottom: "0.5rem",
99
+ fontWeight: 600
100
+ // marginBottom="0.5rem"
101
+ ,
100
102
  marginTop: "1rem"
101
- }, "TENJIN 4.0 Release")), /*#__PURE__*/_react.default.createElement("div", null, groups.map(function (group, index) {
103
+ }, title)), /*#__PURE__*/_react.default.createElement("div", null, groups.map(function (group, index) {
102
104
  var _ref2, _group$items$filter$, _group$items$filter$2, _clsx, _ref3, _group$groupName, _group$groupName2;
103
105
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
104
106
  key: group.groupName
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
  var _clsx2 = _interopRequireDefault(require("clsx"));
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
  var _style = _interopRequireDefault(require("./style"));
14
- var _excluded = ["className", "sx", "children", "loading", "fullHeight"];
14
+ var _excluded = ["className", "sx", "children", "loading", "fullHeight", "position"];
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
16
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
17
17
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
@@ -25,15 +25,20 @@ var Paper = function Paper(_ref) {
25
25
  children = _ref.children,
26
26
  loading = _ref.loading,
27
27
  fullHeight = _ref.fullHeight,
28
+ position = _ref.position,
28
29
  rest = _objectWithoutProperties(_ref, _excluded);
29
30
  var classes = (0, _style.default)();
30
31
  return /*#__PURE__*/_react.default.createElement(_material.Paper, {
31
- className: (0, _clsx2.default)((_clsx = {}, _defineProperty(_clsx, classes.paper, true), _defineProperty(_clsx, classes.fullHeight, fullHeight), _defineProperty(_clsx, className, true), _clsx)),
32
+ className: (0, _clsx2.default)((_clsx = {}, _defineProperty(_clsx, classes.paper, true), _defineProperty(_clsx, classes.fullHeight, fullHeight), _defineProperty(_clsx, className, true), _defineProperty(_clsx, classes[position], true), _clsx)),
32
33
  sx: sx
33
34
  }, loading ? /*#__PURE__*/_react.default.createElement(_loader.default, null) : children);
34
35
  };
35
36
  Paper.propTypes = {
36
- loading: _propTypes.default.bool
37
+ loading: _propTypes.default.bool,
38
+ position: _propTypes.default.oneOf(["static", "relative", "fixed", "absolute", "sticky"])
39
+ };
40
+ Paper.defaultProps = {
41
+ position: "static"
37
42
  };
38
43
  var _default = Paper;
39
44
  exports.default = _default;
@@ -13,6 +13,21 @@ var _default = (0, _styles.makeStyles)(function (theme) {
13
13
  },
14
14
  fullHeight: {
15
15
  height: "100%"
16
+ },
17
+ relative: {
18
+ position: "relative"
19
+ },
20
+ fixed: {
21
+ position: "fixed"
22
+ },
23
+ static: {
24
+ position: "static"
25
+ },
26
+ sticky: {
27
+ position: "sticky"
28
+ },
29
+ absolute: {
30
+ position: "absolute"
16
31
  }
17
32
  };
18
33
  });
@@ -46,7 +46,7 @@ var Text = function Text(_ref) {
46
46
  var theme = (0, _material.useTheme)();
47
47
  return /*#__PURE__*/_react.default.createElement(_material.Typography, _extends({
48
48
  variant: variant === "title" ? "h6" : variant === "subtitle" ? "body2" : "body1",
49
- fontWeight: bold ? "bold" : semibold ? 600 : "inherit",
49
+ fontWeight: bold ? "bold" : semibold || variant === "title" ? 600 : "inherit",
50
50
  color: link ? "primary" : getColor(color, theme)
51
51
  }, rest, {
52
52
  sx: _objectSpread({