iguazio.dashboard-react-controls 0.0.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/LICENSE +201 -0
- package/README.md +1 -0
- package/dist/components/Button/Button.js +83 -0
- package/dist/components/Button/Button.scss +156 -0
- package/dist/components/PopUpDialog/PopUpDialog.js +137 -0
- package/dist/components/PopUpDialog/popUpDialog.scss +82 -0
- package/dist/components/RoundedIcon/RoundedIcon.js +73 -0
- package/dist/components/RoundedIcon/roundedIcon.scss +45 -0
- package/dist/components/Tooltip/Tooltip.js +196 -0
- package/dist/components/Tooltip/Tooltip.test.js +139 -0
- package/dist/components/Tooltip/tooltip.scss +9 -0
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.js +46 -0
- package/dist/components/TooltipTemplate/TextTooltipTemplate.js +47 -0
- package/dist/components/TooltipTemplate/producerTooltipTemplate.scss +23 -0
- package/dist/components/TooltipTemplate/textTooltipTemplate.scss +21 -0
- package/dist/components/index.js +47 -0
- package/dist/constants.js +18 -0
- package/dist/fonts/roboto-v27-latin-300.eot +0 -0
- package/dist/fonts/roboto-v27-latin-300.svg +1 -0
- package/dist/fonts/roboto-v27-latin-300.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-300.woff +0 -0
- package/dist/fonts/roboto-v27-latin-300.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-500.eot +0 -0
- package/dist/fonts/roboto-v27-latin-500.svg +1 -0
- package/dist/fonts/roboto-v27-latin-500.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-500.woff +0 -0
- package/dist/fonts/roboto-v27-latin-500.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-500italic.eot +0 -0
- package/dist/fonts/roboto-v27-latin-500italic.svg +326 -0
- package/dist/fonts/roboto-v27-latin-500italic.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-500italic.woff +0 -0
- package/dist/fonts/roboto-v27-latin-500italic.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-700.eot +0 -0
- package/dist/fonts/roboto-v27-latin-700.svg +309 -0
- package/dist/fonts/roboto-v27-latin-700.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-700.woff +0 -0
- package/dist/fonts/roboto-v27-latin-700.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-700italic.eot +0 -0
- package/dist/fonts/roboto-v27-latin-700italic.svg +1 -0
- package/dist/fonts/roboto-v27-latin-700italic.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-700italic.woff +0 -0
- package/dist/fonts/roboto-v27-latin-700italic.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-italic.eot +0 -0
- package/dist/fonts/roboto-v27-latin-italic.svg +323 -0
- package/dist/fonts/roboto-v27-latin-italic.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-italic.woff +0 -0
- package/dist/fonts/roboto-v27-latin-italic.woff2 +0 -0
- package/dist/fonts/roboto-v27-latin-regular.eot +0 -0
- package/dist/fonts/roboto-v27-latin-regular.svg +308 -0
- package/dist/fonts/roboto-v27-latin-regular.ttf +0 -0
- package/dist/fonts/roboto-v27-latin-regular.woff +0 -0
- package/dist/fonts/roboto-v27-latin-regular.woff2 +0 -0
- package/dist/fonts/source-code-pro-v14-latin-regular.eot +0 -0
- package/dist/fonts/source-code-pro-v14-latin-regular.svg +341 -0
- package/dist/fonts/source-code-pro-v14-latin-regular.ttf +0 -0
- package/dist/fonts/source-code-pro-v14-latin-regular.woff +0 -0
- package/dist/fonts/source-code-pro-v14-latin-regular.woff2 +0 -0
- package/dist/images/add-circle-question.svg +7 -0
- package/dist/images/add-circle.svg +5 -0
- package/dist/images/add.svg +4 -0
- package/dist/images/alerts-mini.svg +4 -0
- package/dist/images/alerts.svg +3 -0
- package/dist/images/api-getaway-icon.svg +5 -0
- package/dist/images/arrow.svg +3 -0
- package/dist/images/back-arrow.svg +5 -0
- package/dist/images/best-iteration-icon.svg +4 -0
- package/dist/images/checkbox-checked.svg +3 -0
- package/dist/images/checkbox-unchecked.svg +3 -0
- package/dist/images/checkmark.svg +3 -0
- package/dist/images/clock.svg +4 -0
- package/dist/images/close.svg +3 -0
- package/dist/images/code.svg +3 -0
- package/dist/images/collapse.svg +3 -0
- package/dist/images/dashboard-icon.svg +3 -0
- package/dist/images/dashboard-mini.svg +4 -0
- package/dist/images/data-analytics-mini.svg +4 -0
- package/dist/images/data-analytics.svg +3 -0
- package/dist/images/data-preparation-mini.svg +14 -0
- package/dist/images/data-preperation.svg +13 -0
- package/dist/images/datasets-icon.svg +3 -0
- package/dist/images/db-icon.svg +3 -0
- package/dist/images/delete.svg +3 -0
- package/dist/images/dl-mini.svg +4 -0
- package/dist/images/dl.svg +3 -0
- package/dist/images/dots-icon.png +0 -0
- package/dist/images/drop-file.svg +5 -0
- package/dist/images/dropdown.svg +3 -0
- package/dist/images/edit.svg +3 -0
- package/dist/images/elipsis.svg +3 -0
- package/dist/images/etl-mini.svg +11 -0
- package/dist/images/etl.svg +10 -0
- package/dist/images/expand.svg +3 -0
- package/dist/images/eye.svg +4 -0
- package/dist/images/feed-mini.svg +4 -0
- package/dist/images/file-icon.svg +3 -0
- package/dist/images/filter.svg +5 -0
- package/dist/images/flow-icon.svg +7 -0
- package/dist/images/function-icon.svg +3 -0
- package/dist/images/function2-icon.svg +29 -0
- package/dist/images/horovod.svg +3 -0
- package/dist/images/ic-calendar.svg +3 -0
- package/dist/images/ic-key.svg +3 -0
- package/dist/images/ic_arrow-right.svg +3 -0
- package/dist/images/ic_copy-to-clipboard.svg +3 -0
- package/dist/images/ic_remote.svg +3 -0
- package/dist/images/ic_target-with-arrow-unset.svg +4 -0
- package/dist/images/ic_target-with-dart.svg +3 -0
- package/dist/images/iguazio-logo.png +0 -0
- package/dist/images/invalid.svg +3 -0
- package/dist/images/jupyter.svg +3 -0
- package/dist/images/listview.svg +3 -0
- package/dist/images/lock-icon.svg +3 -0
- package/dist/images/ml-mini.svg +16 -0
- package/dist/images/ml.svg +10 -0
- package/dist/images/mlrun-logo-circle-small.png +0 -0
- package/dist/images/model-icon.svg +29 -0
- package/dist/images/model-serving-mini.svg +13 -0
- package/dist/images/model-serving.svg +12 -0
- package/dist/images/model-training-mini.svg +11 -0
- package/dist/images/model-training.svg +3 -0
- package/dist/images/models-icon.svg +3 -0
- package/dist/images/nlp-mini.svg +4 -0
- package/dist/images/nlp.svg +3 -0
- package/dist/images/nosql.svg +3 -0
- package/dist/images/nuclio.svg +3 -0
- package/dist/images/other.svg +3 -0
- package/dist/images/overview-icon.svg +49 -0
- package/dist/images/package.svg +4 -0
- package/dist/images/partition.svg +3 -0
- package/dist/images/pin-icon.svg +3 -0
- package/dist/images/pipelines.svg +3 -0
- package/dist/images/plus.svg +4 -0
- package/dist/images/popout.svg +4 -0
- package/dist/images/pref-icon.svg +3 -0
- package/dist/images/private-project-icon.svg +3 -0
- package/dist/images/projects.svg +3 -0
- package/dist/images/question-mark.svg +5 -0
- package/dist/images/range-arrow-small.svg +3 -0
- package/dist/images/realtime-icon-b.svg +40 -0
- package/dist/images/realtime-icon.svg +4 -0
- package/dist/images/refresh.svg +3 -0
- package/dist/images/rocket-icon.svg +12 -0
- package/dist/images/run.svg +3 -0
- package/dist/images/run2-icon.svg +14 -0
- package/dist/images/search.svg +3 -0
- package/dist/images/serving-icon.svg +44 -0
- package/dist/images/set-icon.svg +29 -0
- package/dist/images/settings.svg +3 -0
- package/dist/images/severity-error.svg +10 -0
- package/dist/images/severity-ok.svg +10 -0
- package/dist/images/severity-warning.svg +10 -0
- package/dist/images/simulator-mini.svg +4 -0
- package/dist/images/simulators.svg +3 -0
- package/dist/images/sitemap-icon.svg +3 -0
- package/dist/images/spark.svg +3 -0
- package/dist/images/stream.svg +5 -0
- package/dist/images/success_done.svg +3 -0
- package/dist/images/timer-outline-icon.svg +3 -0
- package/dist/images/tsdb-icon.svg +3 -0
- package/dist/images/unpin-icon.svg +3 -0
- package/dist/images/unsuccess_alert.svg +4 -0
- package/dist/images/upload-icon.svg +5 -0
- package/dist/images/user.svg +3 -0
- package/dist/images/users.svg +3 -0
- package/dist/images/vector-icon.svg +74 -0
- package/dist/images/view-details.svg +3 -0
- package/dist/images/vs-code.svg +3 -0
- package/dist/images/warning.svg +10 -0
- package/dist/images/workflow-icon.svg +6 -0
- package/dist/images/yaml.svg +4 -0
- package/dist/index.js +24 -0
- package/dist/scss/borders.scss +20 -0
- package/dist/scss/colors.scss +68 -0
- package/dist/scss/common.scss +59 -0
- package/dist/scss/fonts.scss +105 -0
- package/dist/scss/mixins.scss +1004 -0
- package/dist/scss/shadows.scss +14 -0
- package/dist/scss/variables.scss +13 -0
- package/dist/types.js +23 -0
- package/dist/utils/common.util.js +22 -0
- package/package.json +100 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@import './colors';
|
|
2
|
+
|
|
3
|
+
$jobsShadow: 0 3px 4px rgba($black, 0.18);
|
|
4
|
+
$headerShadow: inset 0 -1px 0 #edecef;
|
|
5
|
+
$mainHeaderShadow: 0 2px 4px -1px rgba($black, 0.2),
|
|
6
|
+
0 4px 5px 0 rgba($black, 0.14), 0 1px 10px 0 rgba($black, 0.12);
|
|
7
|
+
$filterShadow: 0 4px 8px rgba($black, 0.23);
|
|
8
|
+
$tooltipShadow: 0 5px 11px rgba($black, 0.18);
|
|
9
|
+
$hiddenChipsBlockShadow: 1px 3px 8px rgba($black, 0.2);
|
|
10
|
+
$previewBoxShadowInit: 0px 3px 10px rgba(0, 0, 0, 0.07);
|
|
11
|
+
$previewBoxShadow: 0 0 16px rgba($black, 0.3);
|
|
12
|
+
$projectStatisticsShadow: 0 8px 30px rgba($topaz, 0.08);
|
|
13
|
+
$dropdownShadow: 0 0 30px rgba($black, 0.15);
|
|
14
|
+
$tablePanelShadow: -3px 0 10px -5px rgba($black, 0.2);
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.POP_UP_CUSTOM_POSITION = exports.BUTTON_VARIANTS = void 0;
|
|
7
|
+
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
|
|
10
|
+
var _constants = require("./constants");
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
|
|
14
|
+
var BUTTON_VARIANTS = _propTypes.default.oneOf([_constants.PRIMARY_BUTTON, _constants.SECONDARY_BUTTON, _constants.TERTIARY_BUTTON, _constants.DANGER_BUTTON, _constants.LABEL_BUTTON]);
|
|
15
|
+
|
|
16
|
+
exports.BUTTON_VARIANTS = BUTTON_VARIANTS;
|
|
17
|
+
|
|
18
|
+
var POP_UP_CUSTOM_POSITION = _propTypes.default.shape({
|
|
19
|
+
element: _propTypes.default.shape({}),
|
|
20
|
+
position: _propTypes.default.oneOf(['top-left', 'top-right', 'bottom-left', 'bottom-right'])
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
exports.POP_UP_CUSTOM_POSITION = POP_UP_CUSTOM_POSITION;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.openPopUp = exports.isEveryObjectValueEmpty = void 0;
|
|
7
|
+
|
|
8
|
+
var _reactModalPromise = require("react-modal-promise");
|
|
9
|
+
|
|
10
|
+
var openPopUp = function openPopUp(element, props) {
|
|
11
|
+
return (0, _reactModalPromise.create)(element)(props);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.openPopUp = openPopUp;
|
|
15
|
+
|
|
16
|
+
var isEveryObjectValueEmpty = function isEveryObjectValueEmpty(obj) {
|
|
17
|
+
return Object.values(obj).every(function (item) {
|
|
18
|
+
return !item || item.length === 0;
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
exports.isEveryObjectValueEmpty = isEveryObjectValueEmpty;
|
package/package.json
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "iguazio.dashboard-react-controls",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Collection of resources (such as CSS styles, fonts and images) and ReactJS 17.x components to share among different Iguazio React repos.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"README.md"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git@github.com:iguazio/dashboard-react-controls.git"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"Iguazio",
|
|
17
|
+
"iguazio",
|
|
18
|
+
"MLRun",
|
|
19
|
+
"mlrun"
|
|
20
|
+
],
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"classnames": "*",
|
|
23
|
+
"lodash": "*",
|
|
24
|
+
"prop-types": "*",
|
|
25
|
+
"react": "*",
|
|
26
|
+
"react-dom": "*",
|
|
27
|
+
"react-modal-promise": "*",
|
|
28
|
+
"react-transition-group": "*"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@babel/cli": "^7.17.6",
|
|
32
|
+
"@babel/core": "^7.17.9",
|
|
33
|
+
"@babel/eslint-parser": "^7.17.0",
|
|
34
|
+
"@babel/plugin-transform-react-jsx": "^7.17.3",
|
|
35
|
+
"@babel/preset-env": "^7.16.11",
|
|
36
|
+
"@babel/preset-react": "^7.16.7",
|
|
37
|
+
"@storybook/addon-actions": "^6.4.22",
|
|
38
|
+
"@storybook/addon-essentials": "^6.4.22",
|
|
39
|
+
"@storybook/addon-interactions": "^6.4.22",
|
|
40
|
+
"@storybook/addon-links": "^6.4.22",
|
|
41
|
+
"@storybook/builder-webpack5": "^6.4.22",
|
|
42
|
+
"@storybook/manager-webpack5": "^6.4.22",
|
|
43
|
+
"@storybook/preset-create-react-app": "^4.1.0",
|
|
44
|
+
"@storybook/react": "^6.4.22",
|
|
45
|
+
"@storybook/testing-library": "0.0.9",
|
|
46
|
+
"@testing-library/jest-dom": "^5.16.4",
|
|
47
|
+
"@testing-library/react": "^12.1.5",
|
|
48
|
+
"@testing-library/user-event": "^13.5.0",
|
|
49
|
+
"babel-loader": "^8.2.4",
|
|
50
|
+
"babel-plugin-inline-react-svg": "^2.0.1",
|
|
51
|
+
"classnames": "^2.3.1",
|
|
52
|
+
"cross-env": "^7.0.3",
|
|
53
|
+
"eslint": "^8.8.0",
|
|
54
|
+
"eslint-config-prettier": "^8.3.0",
|
|
55
|
+
"eslint-config-react-app": "^7.0.0",
|
|
56
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
57
|
+
"eslint-plugin-storybook": "^0.5.10",
|
|
58
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
59
|
+
"lodash": "^4.17.21",
|
|
60
|
+
"node": "14.18.1",
|
|
61
|
+
"prettier": "^2.5.1",
|
|
62
|
+
"prop-types": "^15.8.1",
|
|
63
|
+
"react": "^17.0.2",
|
|
64
|
+
"react-dom": "^17.0.2",
|
|
65
|
+
"react-modal-promise": "^1.0.2",
|
|
66
|
+
"react-scripts": "5.0.0",
|
|
67
|
+
"react-transition-group": "^4.4.2",
|
|
68
|
+
"sass": "^1.50.0",
|
|
69
|
+
"web-vitals": "^2.1.4",
|
|
70
|
+
"webpack": "^5.72.0"
|
|
71
|
+
},
|
|
72
|
+
"scripts": {
|
|
73
|
+
"start": "react-scripts start",
|
|
74
|
+
"build": "react-scripts build",
|
|
75
|
+
"test": "react-scripts test",
|
|
76
|
+
"eject": "react-scripts eject",
|
|
77
|
+
"build-storybook": "build-storybook",
|
|
78
|
+
"storybook": "start-storybook -p 6006",
|
|
79
|
+
"compile": "npm rm -rf dist/* && babel src/lib --out-dir dist --copy-files --no-copy-ignored --ignore src/**/*.stories.js"
|
|
80
|
+
},
|
|
81
|
+
"eslintConfig": {
|
|
82
|
+
"extends": [
|
|
83
|
+
"react-app",
|
|
84
|
+
"react-app/jest"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"browserslist": {
|
|
88
|
+
"production": [
|
|
89
|
+
">0.2%",
|
|
90
|
+
"not dead",
|
|
91
|
+
"not op_mini all"
|
|
92
|
+
],
|
|
93
|
+
"development": [
|
|
94
|
+
"last 1 chrome version",
|
|
95
|
+
"last 1 firefox version",
|
|
96
|
+
"last 1 safari version"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"dependencies": {}
|
|
100
|
+
}
|