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.
Files changed (181) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -0
  3. package/dist/components/Button/Button.js +83 -0
  4. package/dist/components/Button/Button.scss +156 -0
  5. package/dist/components/PopUpDialog/PopUpDialog.js +137 -0
  6. package/dist/components/PopUpDialog/popUpDialog.scss +82 -0
  7. package/dist/components/RoundedIcon/RoundedIcon.js +73 -0
  8. package/dist/components/RoundedIcon/roundedIcon.scss +45 -0
  9. package/dist/components/Tooltip/Tooltip.js +196 -0
  10. package/dist/components/Tooltip/Tooltip.test.js +139 -0
  11. package/dist/components/Tooltip/tooltip.scss +9 -0
  12. package/dist/components/TooltipTemplate/ProducerTooltipTemplate.js +46 -0
  13. package/dist/components/TooltipTemplate/TextTooltipTemplate.js +47 -0
  14. package/dist/components/TooltipTemplate/producerTooltipTemplate.scss +23 -0
  15. package/dist/components/TooltipTemplate/textTooltipTemplate.scss +21 -0
  16. package/dist/components/index.js +47 -0
  17. package/dist/constants.js +18 -0
  18. package/dist/fonts/roboto-v27-latin-300.eot +0 -0
  19. package/dist/fonts/roboto-v27-latin-300.svg +1 -0
  20. package/dist/fonts/roboto-v27-latin-300.ttf +0 -0
  21. package/dist/fonts/roboto-v27-latin-300.woff +0 -0
  22. package/dist/fonts/roboto-v27-latin-300.woff2 +0 -0
  23. package/dist/fonts/roboto-v27-latin-500.eot +0 -0
  24. package/dist/fonts/roboto-v27-latin-500.svg +1 -0
  25. package/dist/fonts/roboto-v27-latin-500.ttf +0 -0
  26. package/dist/fonts/roboto-v27-latin-500.woff +0 -0
  27. package/dist/fonts/roboto-v27-latin-500.woff2 +0 -0
  28. package/dist/fonts/roboto-v27-latin-500italic.eot +0 -0
  29. package/dist/fonts/roboto-v27-latin-500italic.svg +326 -0
  30. package/dist/fonts/roboto-v27-latin-500italic.ttf +0 -0
  31. package/dist/fonts/roboto-v27-latin-500italic.woff +0 -0
  32. package/dist/fonts/roboto-v27-latin-500italic.woff2 +0 -0
  33. package/dist/fonts/roboto-v27-latin-700.eot +0 -0
  34. package/dist/fonts/roboto-v27-latin-700.svg +309 -0
  35. package/dist/fonts/roboto-v27-latin-700.ttf +0 -0
  36. package/dist/fonts/roboto-v27-latin-700.woff +0 -0
  37. package/dist/fonts/roboto-v27-latin-700.woff2 +0 -0
  38. package/dist/fonts/roboto-v27-latin-700italic.eot +0 -0
  39. package/dist/fonts/roboto-v27-latin-700italic.svg +1 -0
  40. package/dist/fonts/roboto-v27-latin-700italic.ttf +0 -0
  41. package/dist/fonts/roboto-v27-latin-700italic.woff +0 -0
  42. package/dist/fonts/roboto-v27-latin-700italic.woff2 +0 -0
  43. package/dist/fonts/roboto-v27-latin-italic.eot +0 -0
  44. package/dist/fonts/roboto-v27-latin-italic.svg +323 -0
  45. package/dist/fonts/roboto-v27-latin-italic.ttf +0 -0
  46. package/dist/fonts/roboto-v27-latin-italic.woff +0 -0
  47. package/dist/fonts/roboto-v27-latin-italic.woff2 +0 -0
  48. package/dist/fonts/roboto-v27-latin-regular.eot +0 -0
  49. package/dist/fonts/roboto-v27-latin-regular.svg +308 -0
  50. package/dist/fonts/roboto-v27-latin-regular.ttf +0 -0
  51. package/dist/fonts/roboto-v27-latin-regular.woff +0 -0
  52. package/dist/fonts/roboto-v27-latin-regular.woff2 +0 -0
  53. package/dist/fonts/source-code-pro-v14-latin-regular.eot +0 -0
  54. package/dist/fonts/source-code-pro-v14-latin-regular.svg +341 -0
  55. package/dist/fonts/source-code-pro-v14-latin-regular.ttf +0 -0
  56. package/dist/fonts/source-code-pro-v14-latin-regular.woff +0 -0
  57. package/dist/fonts/source-code-pro-v14-latin-regular.woff2 +0 -0
  58. package/dist/images/add-circle-question.svg +7 -0
  59. package/dist/images/add-circle.svg +5 -0
  60. package/dist/images/add.svg +4 -0
  61. package/dist/images/alerts-mini.svg +4 -0
  62. package/dist/images/alerts.svg +3 -0
  63. package/dist/images/api-getaway-icon.svg +5 -0
  64. package/dist/images/arrow.svg +3 -0
  65. package/dist/images/back-arrow.svg +5 -0
  66. package/dist/images/best-iteration-icon.svg +4 -0
  67. package/dist/images/checkbox-checked.svg +3 -0
  68. package/dist/images/checkbox-unchecked.svg +3 -0
  69. package/dist/images/checkmark.svg +3 -0
  70. package/dist/images/clock.svg +4 -0
  71. package/dist/images/close.svg +3 -0
  72. package/dist/images/code.svg +3 -0
  73. package/dist/images/collapse.svg +3 -0
  74. package/dist/images/dashboard-icon.svg +3 -0
  75. package/dist/images/dashboard-mini.svg +4 -0
  76. package/dist/images/data-analytics-mini.svg +4 -0
  77. package/dist/images/data-analytics.svg +3 -0
  78. package/dist/images/data-preparation-mini.svg +14 -0
  79. package/dist/images/data-preperation.svg +13 -0
  80. package/dist/images/datasets-icon.svg +3 -0
  81. package/dist/images/db-icon.svg +3 -0
  82. package/dist/images/delete.svg +3 -0
  83. package/dist/images/dl-mini.svg +4 -0
  84. package/dist/images/dl.svg +3 -0
  85. package/dist/images/dots-icon.png +0 -0
  86. package/dist/images/drop-file.svg +5 -0
  87. package/dist/images/dropdown.svg +3 -0
  88. package/dist/images/edit.svg +3 -0
  89. package/dist/images/elipsis.svg +3 -0
  90. package/dist/images/etl-mini.svg +11 -0
  91. package/dist/images/etl.svg +10 -0
  92. package/dist/images/expand.svg +3 -0
  93. package/dist/images/eye.svg +4 -0
  94. package/dist/images/feed-mini.svg +4 -0
  95. package/dist/images/file-icon.svg +3 -0
  96. package/dist/images/filter.svg +5 -0
  97. package/dist/images/flow-icon.svg +7 -0
  98. package/dist/images/function-icon.svg +3 -0
  99. package/dist/images/function2-icon.svg +29 -0
  100. package/dist/images/horovod.svg +3 -0
  101. package/dist/images/ic-calendar.svg +3 -0
  102. package/dist/images/ic-key.svg +3 -0
  103. package/dist/images/ic_arrow-right.svg +3 -0
  104. package/dist/images/ic_copy-to-clipboard.svg +3 -0
  105. package/dist/images/ic_remote.svg +3 -0
  106. package/dist/images/ic_target-with-arrow-unset.svg +4 -0
  107. package/dist/images/ic_target-with-dart.svg +3 -0
  108. package/dist/images/iguazio-logo.png +0 -0
  109. package/dist/images/invalid.svg +3 -0
  110. package/dist/images/jupyter.svg +3 -0
  111. package/dist/images/listview.svg +3 -0
  112. package/dist/images/lock-icon.svg +3 -0
  113. package/dist/images/ml-mini.svg +16 -0
  114. package/dist/images/ml.svg +10 -0
  115. package/dist/images/mlrun-logo-circle-small.png +0 -0
  116. package/dist/images/model-icon.svg +29 -0
  117. package/dist/images/model-serving-mini.svg +13 -0
  118. package/dist/images/model-serving.svg +12 -0
  119. package/dist/images/model-training-mini.svg +11 -0
  120. package/dist/images/model-training.svg +3 -0
  121. package/dist/images/models-icon.svg +3 -0
  122. package/dist/images/nlp-mini.svg +4 -0
  123. package/dist/images/nlp.svg +3 -0
  124. package/dist/images/nosql.svg +3 -0
  125. package/dist/images/nuclio.svg +3 -0
  126. package/dist/images/other.svg +3 -0
  127. package/dist/images/overview-icon.svg +49 -0
  128. package/dist/images/package.svg +4 -0
  129. package/dist/images/partition.svg +3 -0
  130. package/dist/images/pin-icon.svg +3 -0
  131. package/dist/images/pipelines.svg +3 -0
  132. package/dist/images/plus.svg +4 -0
  133. package/dist/images/popout.svg +4 -0
  134. package/dist/images/pref-icon.svg +3 -0
  135. package/dist/images/private-project-icon.svg +3 -0
  136. package/dist/images/projects.svg +3 -0
  137. package/dist/images/question-mark.svg +5 -0
  138. package/dist/images/range-arrow-small.svg +3 -0
  139. package/dist/images/realtime-icon-b.svg +40 -0
  140. package/dist/images/realtime-icon.svg +4 -0
  141. package/dist/images/refresh.svg +3 -0
  142. package/dist/images/rocket-icon.svg +12 -0
  143. package/dist/images/run.svg +3 -0
  144. package/dist/images/run2-icon.svg +14 -0
  145. package/dist/images/search.svg +3 -0
  146. package/dist/images/serving-icon.svg +44 -0
  147. package/dist/images/set-icon.svg +29 -0
  148. package/dist/images/settings.svg +3 -0
  149. package/dist/images/severity-error.svg +10 -0
  150. package/dist/images/severity-ok.svg +10 -0
  151. package/dist/images/severity-warning.svg +10 -0
  152. package/dist/images/simulator-mini.svg +4 -0
  153. package/dist/images/simulators.svg +3 -0
  154. package/dist/images/sitemap-icon.svg +3 -0
  155. package/dist/images/spark.svg +3 -0
  156. package/dist/images/stream.svg +5 -0
  157. package/dist/images/success_done.svg +3 -0
  158. package/dist/images/timer-outline-icon.svg +3 -0
  159. package/dist/images/tsdb-icon.svg +3 -0
  160. package/dist/images/unpin-icon.svg +3 -0
  161. package/dist/images/unsuccess_alert.svg +4 -0
  162. package/dist/images/upload-icon.svg +5 -0
  163. package/dist/images/user.svg +3 -0
  164. package/dist/images/users.svg +3 -0
  165. package/dist/images/vector-icon.svg +74 -0
  166. package/dist/images/view-details.svg +3 -0
  167. package/dist/images/vs-code.svg +3 -0
  168. package/dist/images/warning.svg +10 -0
  169. package/dist/images/workflow-icon.svg +6 -0
  170. package/dist/images/yaml.svg +4 -0
  171. package/dist/index.js +24 -0
  172. package/dist/scss/borders.scss +20 -0
  173. package/dist/scss/colors.scss +68 -0
  174. package/dist/scss/common.scss +59 -0
  175. package/dist/scss/fonts.scss +105 -0
  176. package/dist/scss/mixins.scss +1004 -0
  177. package/dist/scss/shadows.scss +14 -0
  178. package/dist/scss/variables.scss +13 -0
  179. package/dist/types.js +23 -0
  180. package/dist/utils/common.util.js +22 -0
  181. 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);
@@ -0,0 +1,13 @@
1
+ @import './colors';
2
+
3
+ $heightRowTable: 55px;
4
+ $leftRowOffset: 49px;
5
+ $mainBorderRadius: 4px;
6
+
7
+ $navbarWidth: 235px;
8
+ $navbarTogglerWidth: 35px;
9
+
10
+ $headerHeight: 64px;
11
+
12
+ $primaryTextColor: $primary;
13
+ $secondaryTextColor: $topaz;
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
+ }