tenjin-ui-kit 0.2.80 → 0.2.87
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 +62 -0
- package/dist/README.md +13 -0
- package/dist/components/DragBox/index.js +45 -0
- package/dist/components/Typo/index.js +123 -0
- package/{components → dist/components}/layout/index.js +6 -2
- package/{components → dist/components}/layout/sidebar/ProjectMenu.js +9 -3
- package/{components → dist/components}/layout/sidebar/index.js +3 -1
- package/dist/package.json +117 -0
- package/{themes → dist/themes}/default.js +88 -59
- package/{themes → dist/themes}/responsiveTheme.js +1 -1
- package/package.json +1 -1
- 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/{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}/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}/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}/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}/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}/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/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/GroupedMenu.js +0 -0
- /package/{components → dist/components}/layout/sidebar/style.js +0 -0
- /package/{components → dist/components}/layout/topBar/ProjectTopbar.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}/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}/pagination/index.js +0 -0
- /package/{components → dist/components}/pagination/style.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}/richTextEditor/index.js +0 -0
- /package/{components → dist/components}/richTextEditor/style.js +0 -0
- /package/{components → dist/components}/select/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/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}/defaultSmall.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,62 @@
|
|
|
1
|
+
pipeline {
|
|
2
|
+
agent {label 'tjui-kit'}
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
stages {
|
|
6
|
+
stage ("Build") {
|
|
7
|
+
steps {
|
|
8
|
+
dir("./") {
|
|
9
|
+
sh 'npm install'
|
|
10
|
+
sh 'npm run compile'
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
stage ("Upgrade version") {
|
|
15
|
+
steps {
|
|
16
|
+
dir("./") {
|
|
17
|
+
sh 'git restore package-lock.json'
|
|
18
|
+
sh 'git stash'
|
|
19
|
+
sh 'npm version patch '
|
|
20
|
+
sh 'git remote set-url origin https://vybhavkadam:glpat-Ee-CqdVnwzURCGPzFwys@gitlab.com/yethi/react/tenjin-ui-kit.git'
|
|
21
|
+
sh 'git push origin HEAD:main --tags'
|
|
22
|
+
//sh 'git push --tags'
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
stage ("Publish library") {
|
|
28
|
+
steps {
|
|
29
|
+
dir("./") {
|
|
30
|
+
sh 'cp ./package.json ./dist'
|
|
31
|
+
sh 'cp ./README.md ./dist'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
dir("./dist") {
|
|
35
|
+
sh 'npm publish'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
stage ("Build Storybook") {
|
|
41
|
+
steps {
|
|
42
|
+
dir("./") {
|
|
43
|
+
sh 'npm run build-storybook'
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
stage ("Deploy Storybook") {
|
|
49
|
+
steps {
|
|
50
|
+
dir("./") {
|
|
51
|
+
sh 'npx netlify deploy --auth xZ5gRrdcq6pPShzAcOtxCqD3e5MzwWxwBevsrQdyIl0 --site 9a55e91f-3c3e-4492-8d50-7f17ca87adeb --dir storybook-static --prod'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
stage('CleanWorkspace') {
|
|
56
|
+
steps {
|
|
57
|
+
cleanWs()
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
}
|
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.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DragBox = void 0;
|
|
7
|
+
var _reactDnd = require("react-dnd");
|
|
8
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
13
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
+
var DragBox = function DragBox(_ref) {
|
|
15
|
+
var name = _ref.name;
|
|
16
|
+
console.log({
|
|
17
|
+
name: name
|
|
18
|
+
});
|
|
19
|
+
var _useDrag = (0, _reactDnd.useDrag)(function () {
|
|
20
|
+
return {
|
|
21
|
+
type: "box",
|
|
22
|
+
item: {
|
|
23
|
+
name: name
|
|
24
|
+
},
|
|
25
|
+
collect: function collect(monitor) {
|
|
26
|
+
return {
|
|
27
|
+
isDragging: monitor.isDragging(),
|
|
28
|
+
handlerId: monitor.getHandlerId()
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}),
|
|
33
|
+
_useDrag2 = _slicedToArray(_useDrag, 2),
|
|
34
|
+
isDragging = _useDrag2[0].isDragging,
|
|
35
|
+
drag = _useDrag2[1];
|
|
36
|
+
var opacity = isDragging ? 0.4 : 1;
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
ref: drag,
|
|
39
|
+
style: {
|
|
40
|
+
opacity: opacity
|
|
41
|
+
},
|
|
42
|
+
"data-testid": "box"
|
|
43
|
+
}, name);
|
|
44
|
+
};
|
|
45
|
+
exports.DragBox = DragBox;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _default2 = _interopRequireDefault(require("../../themes/default"));
|
|
9
|
+
var _material = require("@mui/material");
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
var _reactRouterDom = require("react-router-dom");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
+
var Typo = function Typo(props) {
|
|
15
|
+
var color = props.color,
|
|
16
|
+
fontWeight = props.fontWeight,
|
|
17
|
+
secondary = props.secondary,
|
|
18
|
+
variant = props.variant,
|
|
19
|
+
to = props.to;
|
|
20
|
+
var titleSize = {
|
|
21
|
+
1: _default2.default.spacing(3),
|
|
22
|
+
1.25: _default2.default.spacing(3.345),
|
|
23
|
+
1.5: _default2.default.spacing(4.5)
|
|
24
|
+
};
|
|
25
|
+
var title1Size = {
|
|
26
|
+
1: _default2.default.spacing(2.5),
|
|
27
|
+
1.25: _default2.default.spacing(3),
|
|
28
|
+
1.5: _default2.default.spacing(4)
|
|
29
|
+
};
|
|
30
|
+
var textSize = {
|
|
31
|
+
1: _default2.default.spacing(2),
|
|
32
|
+
1.25: _default2.default.spacing(2.5),
|
|
33
|
+
1.5: _default2.default.spacing(3.5)
|
|
34
|
+
};
|
|
35
|
+
var text2Size = {
|
|
36
|
+
1: _default2.default.spacing(1.75),
|
|
37
|
+
1.25: _default2.default.spacing(2.1),
|
|
38
|
+
1.5: _default2.default.spacing(2.8)
|
|
39
|
+
};
|
|
40
|
+
var text3Size = {
|
|
41
|
+
1: _default2.default.spacing(1.5),
|
|
42
|
+
1.25: _default2.default.spacing(1.8),
|
|
43
|
+
1.5: _default2.default.spacing(2.7)
|
|
44
|
+
};
|
|
45
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, function () {
|
|
46
|
+
switch (variant) {
|
|
47
|
+
case "title1":
|
|
48
|
+
case "h1":
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(_material.Typography, _extends({
|
|
50
|
+
fontSize: titleSize[window.devicePixelRatio],
|
|
51
|
+
color: color ? color : secondary ? _default2.default.palette.grey.main : _default2.default.palette.text.main,
|
|
52
|
+
fontWeight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : 600
|
|
53
|
+
}, props), props.children, titleSize[window.devicePixelRatio]);
|
|
54
|
+
case "title2":
|
|
55
|
+
case "h2":
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement(_material.Typography, _extends({
|
|
57
|
+
fontSize: title1Size[window.devicePixelRatio],
|
|
58
|
+
color: color ? color : secondary ? _default2.default.palette.grey.main : _default2.default.palette.text.main,
|
|
59
|
+
fontWeight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : 600
|
|
60
|
+
}, props), props.children, title1Size[window.devicePixelRatio]);
|
|
61
|
+
case "text":
|
|
62
|
+
return /*#__PURE__*/_react.default.createElement(_material.Typography, _extends({
|
|
63
|
+
fontSize: textSize[window.devicePixelRatio],
|
|
64
|
+
color: color ? color : secondary ? _default2.default.palette.grey.main : _default2.default.palette.text.main,
|
|
65
|
+
fontWeight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : 600
|
|
66
|
+
}, props), props.children, textSize[window.devicePixelRatio]);
|
|
67
|
+
case "secondaryText":
|
|
68
|
+
return /*#__PURE__*/_react.default.createElement(_material.Typography, _extends({
|
|
69
|
+
fontSize: textSize[window.devicePixelRatio],
|
|
70
|
+
color: color ? color : _default2.default.palette.grey.main,
|
|
71
|
+
fontWeight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : 600
|
|
72
|
+
}, props), props.children, textSize[window.devicePixelRatio]);
|
|
73
|
+
case "text2":
|
|
74
|
+
return /*#__PURE__*/_react.default.createElement(_material.Typography, _extends({
|
|
75
|
+
fontSize: text2Size[window.devicePixelRatio],
|
|
76
|
+
color: color ? color : secondary ? _default2.default.palette.grey.main : _default2.default.palette.text.main,
|
|
77
|
+
fontWeight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : 600
|
|
78
|
+
}, props), props.children, text2Size[window.devicePixelRatio]);
|
|
79
|
+
case "secondaryText2":
|
|
80
|
+
return /*#__PURE__*/_react.default.createElement(_material.Typography, _extends({
|
|
81
|
+
fontSize: text2Size[window.devicePixelRatio],
|
|
82
|
+
color: color ? color : _default2.default.palette.grey.main,
|
|
83
|
+
fontWeight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : 600
|
|
84
|
+
}, props), props.children, text2Size[window.devicePixelRatio]);
|
|
85
|
+
case "link":
|
|
86
|
+
return /*#__PURE__*/_react.default.createElement(_reactRouterDom.Link, {
|
|
87
|
+
to: to,
|
|
88
|
+
style: {
|
|
89
|
+
textDecoration: "none"
|
|
90
|
+
}
|
|
91
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Typography, _extends({
|
|
92
|
+
fontSize: text2Size[window.devicePixelRatio],
|
|
93
|
+
color: _default2.default.palette.primary_link.main,
|
|
94
|
+
fontWeight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : 600
|
|
95
|
+
}, props), props.children, text2Size[window.devicePixelRatio]));
|
|
96
|
+
case "text3":
|
|
97
|
+
return /*#__PURE__*/_react.default.createElement(_material.Typography, _extends({
|
|
98
|
+
fontSize: text3Size[window.devicePixelRatio],
|
|
99
|
+
color: color ? color : secondary ? _default2.default.palette.grey.main : _default2.default.palette.text.main,
|
|
100
|
+
fontWeight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : 600
|
|
101
|
+
}, props), props.children, text3Size[window.devicePixelRatio]);
|
|
102
|
+
case "secondaryText3":
|
|
103
|
+
return /*#__PURE__*/_react.default.createElement(_material.Typography, _extends({
|
|
104
|
+
fontSize: text3Size[window.devicePixelRatio],
|
|
105
|
+
color: color ? color : _default2.default.palette.grey.main,
|
|
106
|
+
fontWeight: fontWeight !== null && fontWeight !== void 0 ? fontWeight : 600
|
|
107
|
+
}, props), props.children, text3Size[window.devicePixelRatio]);
|
|
108
|
+
default:
|
|
109
|
+
return /*#__PURE__*/_react.default.createElement(_material.Typography, _extends({
|
|
110
|
+
fontSize: _default2.default.spacing(3)
|
|
111
|
+
}, props), "Default Typo");
|
|
112
|
+
}
|
|
113
|
+
}());
|
|
114
|
+
};
|
|
115
|
+
Typo.propTypes = {
|
|
116
|
+
variant: _propTypes.default.oneOf(["title1", "h1", "title2", "h2", "text", "secondaryText", "text2", "secondaryText2", "link", "text3", "scondaryText3"]).isRequired,
|
|
117
|
+
color: _propTypes.default.string,
|
|
118
|
+
fontWeight: _propTypes.default.number,
|
|
119
|
+
secondary: _propTypes.default.string,
|
|
120
|
+
to: _propTypes.default.string
|
|
121
|
+
};
|
|
122
|
+
var _default = Typo;
|
|
123
|
+
exports.default = _default;
|
|
@@ -13,6 +13,8 @@ var _main = _interopRequireDefault(require("./main"));
|
|
|
13
13
|
var _sidebar = _interopRequireDefault(require("./sidebar"));
|
|
14
14
|
var _pageContent = _interopRequireDefault(require("./pageContent"));
|
|
15
15
|
var _ProjectTopbar = _interopRequireDefault(require("./topBar/ProjectTopbar"));
|
|
16
|
+
var _reactDnd = require("react-dnd");
|
|
17
|
+
var _reactDndHtml5Backend = require("react-dnd-html5-backend");
|
|
16
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
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); }
|
|
18
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; }
|
|
@@ -62,7 +64,9 @@ var Layout = function Layout(_ref) {
|
|
|
62
64
|
selectedSidebarKey: key
|
|
63
65
|
}));
|
|
64
66
|
};
|
|
65
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement(_reactDnd.DndProvider, {
|
|
68
|
+
backend: _reactDndHtml5Backend.HTML5Backend
|
|
69
|
+
}, /*#__PURE__*/_react.default.createElement(_material.Box, {
|
|
66
70
|
className: "tenjin-layout",
|
|
67
71
|
id: id,
|
|
68
72
|
sx: {
|
|
@@ -77,7 +81,7 @@ var Layout = function Layout(_ref) {
|
|
|
77
81
|
setWindowTitle: setWindowTitle,
|
|
78
82
|
setSelectedSidebarKey: setSelectedSidebarKey
|
|
79
83
|
}
|
|
80
|
-
}, children));
|
|
84
|
+
}, children)));
|
|
81
85
|
};
|
|
82
86
|
Layout.defaultProps = {
|
|
83
87
|
id: "wrapper"
|
|
@@ -13,6 +13,7 @@ var _style = _interopRequireDefault(require("./style"));
|
|
|
13
13
|
var _ = require("..");
|
|
14
14
|
var _clsx3 = _interopRequireDefault(require("clsx"));
|
|
15
15
|
var _styles = require("@mui/styles");
|
|
16
|
+
var _DragBox = require("../../DragBox");
|
|
16
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
18
|
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); }
|
|
18
19
|
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; }
|
|
@@ -28,7 +29,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
28
29
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
29
30
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
30
31
|
var ProjectMenu = function ProjectMenu(_ref) {
|
|
31
|
-
var groups = _ref.groups
|
|
32
|
+
var groups = _ref.groups,
|
|
33
|
+
draggable = _ref.draggable;
|
|
32
34
|
var classes = (0, _style.default)();
|
|
33
35
|
var popupRef = (0, _react.useRef)(null);
|
|
34
36
|
var navigate = (0, _reactRouterDom.useNavigate)();
|
|
@@ -171,7 +173,9 @@ var ProjectMenu = function ProjectMenu(_ref) {
|
|
|
171
173
|
}, /*#__PURE__*/_react.default.createElement(_material.ListItemText, {
|
|
172
174
|
disableTypography: true,
|
|
173
175
|
className: (0, _clsx3.default)((_clsx2 = {}, _defineProperty(_clsx2, classes.projectListText, true), _defineProperty(_clsx2, classes.selectedProjectMenuItemText, selectedSidebarKey === i.key), _clsx2))
|
|
174
|
-
},
|
|
176
|
+
}, draggable ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_DragBox.DragBox, {
|
|
177
|
+
name: i.display
|
|
178
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, i.display)));
|
|
175
179
|
})), !collapsed && index < groups.length - 1 && /*#__PURE__*/_react.default.createElement(_material.Divider, {
|
|
176
180
|
sx: {
|
|
177
181
|
height: "initial !important"
|
|
@@ -210,7 +214,9 @@ var ProjectMenu = function ProjectMenu(_ref) {
|
|
|
210
214
|
handleClose();
|
|
211
215
|
navigate(i.href);
|
|
212
216
|
}
|
|
213
|
-
},
|
|
217
|
+
}, draggable ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_DragBox.DragBox, {
|
|
218
|
+
name: i.display
|
|
219
|
+
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, i.display));
|
|
214
220
|
}))));
|
|
215
221
|
}))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
216
222
|
};
|
|
@@ -15,6 +15,7 @@ var _FlatMenu = _interopRequireDefault(require("./FlatMenu"));
|
|
|
15
15
|
var _GroupedMenu = _interopRequireDefault(require("./GroupedMenu"));
|
|
16
16
|
var _ProjectMenu = _interopRequireDefault(require("./ProjectMenu"));
|
|
17
17
|
var _style = _interopRequireDefault(require("./style"));
|
|
18
|
+
var _DragBox = require("../../DragBox");
|
|
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; }
|
|
20
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -25,7 +26,8 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
25
26
|
var Sidebar = function Sidebar(_ref) {
|
|
26
27
|
var _clsx;
|
|
27
28
|
var children = _ref.children,
|
|
28
|
-
allowCollapse = _ref.allowCollapse
|
|
29
|
+
allowCollapse = _ref.allowCollapse,
|
|
30
|
+
draggable = _ref.draggable;
|
|
29
31
|
var classes = (0, _style.default)();
|
|
30
32
|
var theme = (0, _material.useTheme)();
|
|
31
33
|
var _useContext = (0, _react.useContext)(_.LayoutContext),
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "tenjin-ui-kit",
|
|
3
|
+
"version": "0.2.87",
|
|
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
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
27
|
+
"react-dnd": "^16.0.1",
|
|
28
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
29
|
+
"react-dropzone": "^14.2.3",
|
|
30
|
+
"react-feather": "^2.0.10",
|
|
31
|
+
"react-final-form": "^6.5.9",
|
|
32
|
+
"react-flow-renderer": "^10.3.17",
|
|
33
|
+
"react-icons": "^4.7.1",
|
|
34
|
+
"react-moment": "^1.1.3",
|
|
35
|
+
"react-scripts": "5.0.1",
|
|
36
|
+
"react-sortable-hoc": "^2.0.0",
|
|
37
|
+
"reactflow": "^11.6.1",
|
|
38
|
+
"storybook-react-context": "^0.6.0",
|
|
39
|
+
"styled-components": "^5.3.9",
|
|
40
|
+
"web-vitals": "^2.1.4"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"start": "react-scripts start",
|
|
44
|
+
"build": "react-scripts build",
|
|
45
|
+
"test": "react-scripts test",
|
|
46
|
+
"eject": "react-scripts eject",
|
|
47
|
+
"storybook": "start-storybook -p 6006 -s public",
|
|
48
|
+
"build-storybook": "build-storybook -s public",
|
|
49
|
+
"clean": "rimraf dist",
|
|
50
|
+
"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__"
|
|
51
|
+
},
|
|
52
|
+
"eslintConfig": {
|
|
53
|
+
"extends": [
|
|
54
|
+
"react-app",
|
|
55
|
+
"react-app/jest"
|
|
56
|
+
],
|
|
57
|
+
"overrides": [
|
|
58
|
+
{
|
|
59
|
+
"files": [
|
|
60
|
+
"**/*.stories.*"
|
|
61
|
+
],
|
|
62
|
+
"rules": {
|
|
63
|
+
"import/no-anonymous-default-export": "off"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"browserslist": {
|
|
69
|
+
"production": [
|
|
70
|
+
">0.2%",
|
|
71
|
+
"not dead",
|
|
72
|
+
"not op_mini all"
|
|
73
|
+
],
|
|
74
|
+
"development": [
|
|
75
|
+
"last 1 chrome version",
|
|
76
|
+
"last 1 firefox version",
|
|
77
|
+
"last 1 safari version"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"devDependencies": {
|
|
81
|
+
"@babel/cli": "^7.20.7",
|
|
82
|
+
"@babel/preset-env": "^7.20.2",
|
|
83
|
+
"@babel/preset-react": "^7.18.6",
|
|
84
|
+
"@emotion/react": "^11.10.5",
|
|
85
|
+
"@emotion/styled": "^11.10.5",
|
|
86
|
+
"@mui/material": "^5.11.3",
|
|
87
|
+
"@storybook/addon-actions": "^6.5.15",
|
|
88
|
+
"@storybook/addon-essentials": "^6.5.15",
|
|
89
|
+
"@storybook/addon-interactions": "^6.5.15",
|
|
90
|
+
"@storybook/addon-links": "^6.5.15",
|
|
91
|
+
"@storybook/builder-webpack5": "^6.5.15",
|
|
92
|
+
"@storybook/manager-webpack5": "^6.5.15",
|
|
93
|
+
"@storybook/node-logger": "^6.5.15",
|
|
94
|
+
"@storybook/preset-create-react-app": "^4.1.2",
|
|
95
|
+
"@storybook/react": "^6.5.15",
|
|
96
|
+
"@storybook/testing-library": "^0.0.13",
|
|
97
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
98
|
+
"cross-env": "^7.0.3",
|
|
99
|
+
"prop-types": "^15.8.1",
|
|
100
|
+
"react": "^18.2.0",
|
|
101
|
+
"react-dom": "^18.2.0",
|
|
102
|
+
"react-router-dom": "^6.6.1",
|
|
103
|
+
"rimraf": "^3.0.2",
|
|
104
|
+
"webpack": "^5.75.0"
|
|
105
|
+
},
|
|
106
|
+
"peerDependencies": {
|
|
107
|
+
"@emotion/react": "^11.10.5",
|
|
108
|
+
"@emotion/styled": "^11.10.5",
|
|
109
|
+
"@mui/material": "^5.11.3",
|
|
110
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
111
|
+
"@testing-library/react": "^13.4.0",
|
|
112
|
+
"@testing-library/user-event": "^13.5.0",
|
|
113
|
+
"react": "^18.2.0",
|
|
114
|
+
"react-dom": "^18.2.0",
|
|
115
|
+
"react-router-dom": "^6.6.1"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -5,37 +5,61 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _material = require("@mui/material");
|
|
8
|
+
var getFontSize = function getFontSize() {
|
|
9
|
+
var devicePixelRatio = window.devicePixelRatio;
|
|
10
|
+
if (devicePixelRatio >= 1 && devicePixelRatio < 1.25) {
|
|
11
|
+
return 16;
|
|
12
|
+
} else if (devicePixelRatio >= 1.25 && devicePixelRatio < 1.5) {
|
|
13
|
+
return 14;
|
|
14
|
+
} else if (devicePixelRatio >= 1.5) {
|
|
15
|
+
return 12;
|
|
16
|
+
} else {
|
|
17
|
+
return 40;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
var getSpacing = function getSpacing() {
|
|
21
|
+
if (devicePixelRatio >= 1 && devicePixelRatio < 1.25) {
|
|
22
|
+
return 8;
|
|
23
|
+
} else if (devicePixelRatio >= 1.25 && devicePixelRatio < 1.5) {
|
|
24
|
+
return 6;
|
|
25
|
+
} else if (devicePixelRatio >= 1.5) {
|
|
26
|
+
return 4;
|
|
27
|
+
} else {
|
|
28
|
+
return 8;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
8
31
|
var _default = (0, _material.createTheme)({
|
|
32
|
+
spacing: getSpacing(),
|
|
9
33
|
components: {
|
|
10
34
|
MuiButton: {
|
|
11
35
|
defaultProps: {
|
|
12
|
-
variant:
|
|
36
|
+
variant: "contained",
|
|
13
37
|
disableRipple: true,
|
|
14
|
-
size:
|
|
38
|
+
size: "small"
|
|
15
39
|
},
|
|
16
40
|
styleOverrides: {
|
|
17
41
|
root: {
|
|
18
|
-
textTransform:
|
|
42
|
+
textTransform: "initial"
|
|
19
43
|
}
|
|
20
44
|
}
|
|
21
45
|
},
|
|
22
46
|
MuiAppBar: {
|
|
23
47
|
styleOverrides: {
|
|
24
48
|
root: {
|
|
25
|
-
height:
|
|
49
|
+
height: "60px !important"
|
|
26
50
|
}
|
|
27
51
|
}
|
|
28
52
|
},
|
|
29
53
|
MuiDivider: {
|
|
30
54
|
styleOverrides: {
|
|
31
55
|
root: {
|
|
32
|
-
height:
|
|
56
|
+
height: "93% !important"
|
|
33
57
|
}
|
|
34
58
|
}
|
|
35
59
|
},
|
|
36
60
|
MuiOutlinedInput: {
|
|
37
61
|
defaultProps: {
|
|
38
|
-
size:
|
|
62
|
+
size: "small"
|
|
39
63
|
}
|
|
40
64
|
}
|
|
41
65
|
// MuiInputBase: {
|
|
@@ -50,23 +74,23 @@ var _default = (0, _material.createTheme)({
|
|
|
50
74
|
MuiAutocomplete: {
|
|
51
75
|
styleOverrides: {
|
|
52
76
|
root: {
|
|
53
|
-
padding:
|
|
54
|
-
border:
|
|
55
|
-
borderRadius:
|
|
56
|
-
backgroundColor:
|
|
57
|
-
|
|
58
|
-
padding:
|
|
59
|
-
fontSize:
|
|
60
|
-
border:
|
|
77
|
+
padding: "0.5rem 0.75rem",
|
|
78
|
+
border: "1px solid black !important",
|
|
79
|
+
borderRadius: "0.25rem",
|
|
80
|
+
backgroundColor: "white",
|
|
81
|
+
"& .MuiAutocomplete-input": {
|
|
82
|
+
padding: "0.5rem 0.75rem",
|
|
83
|
+
fontSize: "1rem",
|
|
84
|
+
border: "1px solid black !important"
|
|
61
85
|
}
|
|
62
86
|
}
|
|
63
87
|
},
|
|
64
88
|
MuiInputLabel: {
|
|
65
89
|
styleOverrides: {
|
|
66
90
|
asterisk: {
|
|
67
|
-
color:
|
|
68
|
-
|
|
69
|
-
color:
|
|
91
|
+
color: "#db3131",
|
|
92
|
+
"&$error": {
|
|
93
|
+
color: "#db3131"
|
|
70
94
|
}
|
|
71
95
|
}
|
|
72
96
|
}
|
|
@@ -74,32 +98,32 @@ var _default = (0, _material.createTheme)({
|
|
|
74
98
|
},
|
|
75
99
|
overrides: {
|
|
76
100
|
MuiCssBaseline: {
|
|
77
|
-
|
|
101
|
+
"@global": {
|
|
78
102
|
html: {
|
|
79
|
-
|
|
80
|
-
height:
|
|
103
|
+
"scroll-behavior": "smooth",
|
|
104
|
+
height: "100vh"
|
|
81
105
|
},
|
|
82
106
|
body: {
|
|
83
|
-
position:
|
|
107
|
+
position: "relative",
|
|
84
108
|
margin: 0,
|
|
85
|
-
height:
|
|
86
|
-
color:
|
|
87
|
-
backgroundColor:
|
|
109
|
+
height: "100vh",
|
|
110
|
+
color: "#000000",
|
|
111
|
+
backgroundColor: "#f4f7fc"
|
|
88
112
|
},
|
|
89
|
-
|
|
90
|
-
width:
|
|
113
|
+
"*::-webkit-scrollbar": {
|
|
114
|
+
width: "6px"
|
|
91
115
|
},
|
|
92
116
|
a: {
|
|
93
|
-
textDecoration:
|
|
94
|
-
color:
|
|
117
|
+
textDecoration: "none",
|
|
118
|
+
color: "#44409A"
|
|
95
119
|
},
|
|
96
|
-
|
|
97
|
-
backgroundColor:
|
|
98
|
-
borderRadius:
|
|
120
|
+
"*::-webkit-scrollbar-thumb": {
|
|
121
|
+
backgroundColor: "#e4e4e4",
|
|
122
|
+
borderRadius: "3px",
|
|
99
123
|
opacity: 0.5
|
|
100
124
|
},
|
|
101
|
-
|
|
102
|
-
background:
|
|
125
|
+
"*::-webkit-scrollbar-track": {
|
|
126
|
+
background: "transparent"
|
|
103
127
|
}
|
|
104
128
|
}
|
|
105
129
|
}
|
|
@@ -141,84 +165,89 @@ var _default = (0, _material.createTheme)({
|
|
|
141
165
|
// secondary: {
|
|
142
166
|
// main: "#BF1E1E",
|
|
143
167
|
// },
|
|
168
|
+
|
|
144
169
|
primary: {
|
|
145
|
-
main:
|
|
170
|
+
main: "#44409A"
|
|
146
171
|
},
|
|
147
172
|
primary_light: {
|
|
148
|
-
main:
|
|
173
|
+
main: "#5B58A9"
|
|
149
174
|
},
|
|
150
175
|
primary_dark: {
|
|
151
|
-
main:
|
|
176
|
+
main: "#000050"
|
|
177
|
+
},
|
|
178
|
+
primary_link: {
|
|
179
|
+
main: "#44409a"
|
|
152
180
|
},
|
|
153
181
|
secondary: {
|
|
154
|
-
main:
|
|
182
|
+
main: "#BF1E1E"
|
|
155
183
|
},
|
|
156
184
|
secondary_light: {
|
|
157
|
-
main:
|
|
185
|
+
main: "#CC3F3F"
|
|
158
186
|
},
|
|
159
187
|
secondary_dark: {
|
|
160
|
-
main:
|
|
188
|
+
main: "#951010"
|
|
161
189
|
},
|
|
162
190
|
success: {
|
|
163
|
-
main:
|
|
191
|
+
main: "#2C7413"
|
|
164
192
|
},
|
|
165
193
|
success_light: {
|
|
166
|
-
main:
|
|
194
|
+
main: "#5EA342"
|
|
167
195
|
},
|
|
168
196
|
success_dark: {
|
|
169
|
-
main:
|
|
197
|
+
main: "#004700"
|
|
170
198
|
},
|
|
171
199
|
info: {
|
|
172
|
-
main:
|
|
200
|
+
main: "#70BBFD"
|
|
173
201
|
},
|
|
174
202
|
info_light: {
|
|
175
|
-
main:
|
|
203
|
+
main: "#A6EDFF"
|
|
176
204
|
},
|
|
177
205
|
info_dark: {
|
|
178
|
-
main:
|
|
206
|
+
main: "#358BCA"
|
|
179
207
|
},
|
|
180
208
|
error: {
|
|
181
|
-
main:
|
|
209
|
+
main: "#BE1515"
|
|
182
210
|
},
|
|
183
211
|
error_light: {
|
|
184
|
-
main:
|
|
212
|
+
main: "#F8533F"
|
|
185
213
|
},
|
|
186
214
|
error_dark: {
|
|
187
|
-
main:
|
|
215
|
+
main: "#860000"
|
|
188
216
|
},
|
|
189
217
|
warning: {
|
|
190
|
-
main:
|
|
218
|
+
main: "#EB9A31"
|
|
191
219
|
},
|
|
192
220
|
warning_light: {
|
|
193
|
-
main:
|
|
221
|
+
main: "#FFCB62"
|
|
194
222
|
},
|
|
195
223
|
warning_dark: {
|
|
196
|
-
main:
|
|
224
|
+
main: "#B46C00"
|
|
197
225
|
},
|
|
198
226
|
grey: {
|
|
199
|
-
main:
|
|
227
|
+
main: "#7D7D7D"
|
|
200
228
|
},
|
|
201
229
|
grey_light: {
|
|
202
|
-
main:
|
|
230
|
+
main: "#ACACAC"
|
|
203
231
|
},
|
|
204
232
|
grey_dark: {
|
|
205
|
-
main:
|
|
233
|
+
main: "#515151"
|
|
206
234
|
},
|
|
207
235
|
secondary_grey: {
|
|
208
|
-
main:
|
|
236
|
+
main: "#D7E2F0"
|
|
209
237
|
},
|
|
210
238
|
white: {
|
|
211
|
-
main:
|
|
239
|
+
main: "#ffffff"
|
|
212
240
|
},
|
|
213
241
|
default: {
|
|
214
|
-
main:
|
|
242
|
+
main: "#7D7D7D"
|
|
215
243
|
},
|
|
216
244
|
text: {
|
|
217
|
-
main:
|
|
245
|
+
main: "#000000"
|
|
218
246
|
}
|
|
219
247
|
},
|
|
220
248
|
typography: {
|
|
221
|
-
fontFamily: [
|
|
249
|
+
fontFamily: ["-apple-system", "BlinkMacSystemFont", '"Segoe UI"', "Roboto", '"Helvetica Neue"', "Arial", "sans-serif", '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"'].join(",")
|
|
250
|
+
// fontSize: getFontSize(),
|
|
222
251
|
}
|
|
223
252
|
});
|
|
224
253
|
exports.default = _default;
|
|
@@ -8,7 +8,7 @@ var _material = require("@mui/material");
|
|
|
8
8
|
var getFontSize = function getFontSize() {
|
|
9
9
|
var devicePixelRatio = window.devicePixelRatio;
|
|
10
10
|
if (devicePixelRatio >= 1 && devicePixelRatio < 1.25) {
|
|
11
|
-
return
|
|
11
|
+
return 14;
|
|
12
12
|
} else if (devicePixelRatio >= 1.25 && devicePixelRatio < 1.5) {
|
|
13
13
|
return 12;
|
|
14
14
|
} else if (devicePixelRatio >= 1.5) {
|
package/package.json
CHANGED
|
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
|