@bigbinary/neeto-molecules 1.0.85 → 1.0.87-beta

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 (41) hide show
  1. package/README.md +1 -0
  2. package/dist/Container.cjs.js +1 -1
  3. package/dist/Container.js +1 -1
  4. package/dist/CustomDomainDashboard.cjs.js +23 -28
  5. package/dist/CustomDomainDashboard.cjs.js.map +1 -1
  6. package/dist/CustomDomainDashboard.js +26 -31
  7. package/dist/CustomDomainDashboard.js.map +1 -1
  8. package/dist/DynamicVariables.cjs.js +54 -6
  9. package/dist/DynamicVariables.cjs.js.map +1 -1
  10. package/dist/DynamicVariables.js +54 -6
  11. package/dist/DynamicVariables.js.map +1 -1
  12. package/dist/Header.cjs.js +11 -23
  13. package/dist/Header.cjs.js.map +1 -1
  14. package/dist/Header.js +14 -26
  15. package/dist/Header.js.map +1 -1
  16. package/dist/ImageWithFallback.cjs.js +247 -0
  17. package/dist/ImageWithFallback.cjs.js.map +1 -0
  18. package/dist/ImageWithFallback.js +241 -0
  19. package/dist/ImageWithFallback.js.map +1 -0
  20. package/dist/MenuBar.cjs.js +30 -18
  21. package/dist/MenuBar.cjs.js.map +1 -1
  22. package/dist/MenuBar.js +30 -18
  23. package/dist/MenuBar.js.map +1 -1
  24. package/dist/Scrollable.cjs.js +5 -1
  25. package/dist/Scrollable.cjs.js.map +1 -1
  26. package/dist/Scrollable.js +5 -1
  27. package/dist/Scrollable.js.map +1 -1
  28. package/dist/Sidebar.cjs.js +214 -137
  29. package/dist/Sidebar.cjs.js.map +1 -1
  30. package/dist/Sidebar.js +217 -140
  31. package/dist/Sidebar.js.map +1 -1
  32. package/dist/SubHeader.cjs.js +11 -5
  33. package/dist/SubHeader.cjs.js.map +1 -1
  34. package/dist/SubHeader.js +11 -5
  35. package/dist/SubHeader.js.map +1 -1
  36. package/package.json +2 -2
  37. package/src/translations/en.json +6 -2
  38. package/types/DateRangeFilter.d.ts +1 -1
  39. package/types/ImageWithFallback.d.ts +23 -0
  40. package/types/Sidebar.d.ts +1 -1
  41. package/types/SubHeader.d.ts +1 -0
@@ -0,0 +1,241 @@
1
+ import React, { useState, useEffect } from 'react';
2
+
3
+ function _extends() {
4
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
5
+ for (var i = 1; i < arguments.length; i++) {
6
+ var source = arguments[i];
7
+ for (var key in source) {
8
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
9
+ target[key] = source[key];
10
+ }
11
+ }
12
+ }
13
+ return target;
14
+ };
15
+ return _extends.apply(this, arguments);
16
+ }
17
+
18
+ function _typeof(obj) {
19
+ "@babel/helpers - typeof";
20
+
21
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
22
+ return typeof obj;
23
+ } : function (obj) {
24
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
25
+ }, _typeof(obj);
26
+ }
27
+
28
+ function _toPrimitive(input, hint) {
29
+ if (_typeof(input) !== "object" || input === null) return input;
30
+ var prim = input[Symbol.toPrimitive];
31
+ if (prim !== undefined) {
32
+ var res = prim.call(input, hint || "default");
33
+ if (_typeof(res) !== "object") return res;
34
+ throw new TypeError("@@toPrimitive must return a primitive value.");
35
+ }
36
+ return (hint === "string" ? String : Number)(input);
37
+ }
38
+
39
+ function _toPropertyKey(arg) {
40
+ var key = _toPrimitive(arg, "string");
41
+ return _typeof(key) === "symbol" ? key : String(key);
42
+ }
43
+
44
+ function _defineProperty(obj, key, value) {
45
+ key = _toPropertyKey(key);
46
+ if (key in obj) {
47
+ Object.defineProperty(obj, key, {
48
+ value: value,
49
+ enumerable: true,
50
+ configurable: true,
51
+ writable: true
52
+ });
53
+ } else {
54
+ obj[key] = value;
55
+ }
56
+ return obj;
57
+ }
58
+
59
+ function _arrayWithHoles(arr) {
60
+ if (Array.isArray(arr)) return arr;
61
+ }
62
+
63
+ function _iterableToArrayLimit(arr, i) {
64
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
65
+ if (null != _i) {
66
+ var _s,
67
+ _e,
68
+ _x,
69
+ _r,
70
+ _arr = [],
71
+ _n = !0,
72
+ _d = !1;
73
+ try {
74
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
75
+ if (Object(_i) !== _i) return;
76
+ _n = !1;
77
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
78
+ } catch (err) {
79
+ _d = !0, _e = err;
80
+ } finally {
81
+ try {
82
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
83
+ } finally {
84
+ if (_d) throw _e;
85
+ }
86
+ }
87
+ return _arr;
88
+ }
89
+ }
90
+
91
+ function _arrayLikeToArray(arr, len) {
92
+ if (len == null || len > arr.length) len = arr.length;
93
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
94
+ return arr2;
95
+ }
96
+
97
+ function _unsupportedIterableToArray(o, minLen) {
98
+ if (!o) return;
99
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
100
+ var n = Object.prototype.toString.call(o).slice(8, -1);
101
+ if (n === "Object" && o.constructor) n = o.constructor.name;
102
+ if (n === "Map" || n === "Set") return Array.from(o);
103
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
104
+ }
105
+
106
+ function _nonIterableRest() {
107
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
108
+ }
109
+
110
+ function _slicedToArray(arr, i) {
111
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
112
+ }
113
+
114
+ function _objectWithoutPropertiesLoose(source, excluded) {
115
+ if (source == null) return {};
116
+ var target = {};
117
+ var sourceKeys = Object.keys(source);
118
+ var key, i;
119
+ for (i = 0; i < sourceKeys.length; i++) {
120
+ key = sourceKeys[i];
121
+ if (excluded.indexOf(key) >= 0) continue;
122
+ target[key] = source[key];
123
+ }
124
+ return target;
125
+ }
126
+
127
+ function _objectWithoutProperties(source, excluded) {
128
+ if (source == null) return {};
129
+ var target = _objectWithoutPropertiesLoose(source, excluded);
130
+ var key, i;
131
+ if (Object.getOwnPropertySymbols) {
132
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
133
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
134
+ key = sourceSymbolKeys[i];
135
+ if (excluded.indexOf(key) >= 0) continue;
136
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
137
+ target[key] = source[key];
138
+ }
139
+ }
140
+ return target;
141
+ }
142
+
143
+ var classnames$1 = {exports: {}};
144
+
145
+ /*!
146
+ Copyright (c) 2018 Jed Watson.
147
+ Licensed under the MIT License (MIT), see
148
+ http://jedwatson.github.io/classnames
149
+ */
150
+
151
+ (function (module) {
152
+ /* global define */
153
+
154
+ (function () {
155
+
156
+ var hasOwn = {}.hasOwnProperty;
157
+
158
+ function classNames() {
159
+ var classes = [];
160
+
161
+ for (var i = 0; i < arguments.length; i++) {
162
+ var arg = arguments[i];
163
+ if (!arg) continue;
164
+
165
+ var argType = typeof arg;
166
+
167
+ if (argType === 'string' || argType === 'number') {
168
+ classes.push(arg);
169
+ } else if (Array.isArray(arg)) {
170
+ if (arg.length) {
171
+ var inner = classNames.apply(null, arg);
172
+ if (inner) {
173
+ classes.push(inner);
174
+ }
175
+ }
176
+ } else if (argType === 'object') {
177
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
178
+ classes.push(arg.toString());
179
+ continue;
180
+ }
181
+
182
+ for (var key in arg) {
183
+ if (hasOwn.call(arg, key) && arg[key]) {
184
+ classes.push(key);
185
+ }
186
+ }
187
+ }
188
+ }
189
+
190
+ return classes.join(' ');
191
+ }
192
+
193
+ if (module.exports) {
194
+ classNames.default = classNames;
195
+ module.exports = classNames;
196
+ } else {
197
+ window.classNames = classNames;
198
+ }
199
+ }());
200
+ } (classnames$1));
201
+
202
+ var classnames = classnames$1.exports;
203
+
204
+ var _excluded$1 = ["className"];
205
+ var ImagePlaceholder = function ImagePlaceholder(_ref) {
206
+ var _ref$className = _ref.className,
207
+ className = _ref$className === void 0 ? "" : _ref$className,
208
+ props = _objectWithoutProperties(_ref, _excluded$1);
209
+ return /*#__PURE__*/React.createElement("div", _extends({
210
+ "data-testid": "fallback-image",
211
+ className: classnames("neeto-ui-bg-gray-100", _defineProperty({}, className, className))
212
+ }, props));
213
+ };
214
+
215
+ var _excluded = ["src", "fallback"];
216
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
217
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
218
+ var ImageWithFallback = function ImageWithFallback(_ref) {
219
+ var src = _ref.src,
220
+ fallback = _ref.fallback,
221
+ otherProps = _objectWithoutProperties(_ref, _excluded);
222
+ var _useState = useState(false),
223
+ _useState2 = _slicedToArray(_useState, 2),
224
+ isLoaded = _useState2[0],
225
+ setIsLoaded = _useState2[1];
226
+ useEffect(function () {
227
+ var img = new Image();
228
+ img.onload = function () {
229
+ setIsLoaded(true);
230
+ };
231
+ img.src = src;
232
+ }, [src]);
233
+ return isLoaded ? /*#__PURE__*/React.createElement("img", _extends({
234
+ "data-testid": "original-image"
235
+ }, _objectSpread({
236
+ src: src
237
+ }, otherProps))) : /*#__PURE__*/React.createElement(React.Fragment, null, fallback || /*#__PURE__*/React.createElement(ImagePlaceholder, otherProps));
238
+ };
239
+
240
+ export { ImageWithFallback as default };
241
+ //# sourceMappingURL=ImageWithFallback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageWithFallback.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/classnames/index.js","../src/components/ImageWithFallback/ImagePlaceholder.jsx","../src/components/ImageWithFallback/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React from \"react\";\n\nimport classnames from \"classnames\";\n\nconst ImagePlaceholder = ({ className = \"\", ...props }) => (\n <div\n data-testid=\"fallback-image\"\n className={classnames(\"neeto-ui-bg-gray-100\", {\n [className]: className,\n })}\n {...props}\n />\n);\n\nexport default ImagePlaceholder;\n","import React, { useEffect, useState } from \"react\";\n\nimport PropTypes from \"prop-types\";\n\nimport ImagePlaceholder from \"./ImagePlaceholder\";\n\nconst ImageWithFallback = ({ src, fallback, ...otherProps }) => {\n const [isLoaded, setIsLoaded] = useState(false);\n\n useEffect(() => {\n const img = new Image();\n img.onload = () => {\n setIsLoaded(true);\n };\n img.src = src;\n }, [src]);\n\n return isLoaded ? (\n <img data-testid=\"original-image\" {...{ src, ...otherProps }} />\n ) : (\n <>{fallback || <ImagePlaceholder {...otherProps} />}</>\n );\n};\n\nImageWithFallback.propTypes = {\n /**\n * The provide the source of the image.\n */\n src: PropTypes.string,\n /**\n * Displays a fallback component in case no image is available.\n */\n fallback: PropTypes.node,\n};\n\nexport default ImageWithFallback;\n"],"names":["toPrimitive","toPropertyKey","arrayLikeToArray","arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest","objectWithoutPropertiesLoose","ImagePlaceholder","_ref","_ref$className","className","props","_objectWithoutProperties","_excluded","React","createElement","_extends","classnames","_defineProperty","ImageWithFallback","src","fallback","otherProps","_useState","useState","_useState2","_slicedToArray","isLoaded","setIsLoaded","useEffect","img","Image","onload","_objectSpread","Fragment"],"mappings":";;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;AAC/D,UAAU,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACpC,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG,CAAC;AACJ,EAAE,OAAO,QAAQ,CAAC,KA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GAAAV,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AACvD,EAAA,IAAAU,SAAA,GAAgCC,QAAQ,CAAC,KAAK,CAAC;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAxCI,IAAAA,QAAQ,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,WAAW,GAAAH,UAAA,CAAA,CAAA,CAAA,CAAA;AAE5BI,EAAAA,SAAS,CAAC,YAAM;AACd,IAAA,IAAMC,GAAG,GAAG,IAAIC,KAAK,EAAE,CAAA;IACvBD,GAAG,CAACE,MAAM,GAAG,YAAM;MACjBJ,WAAW,CAAC,IAAI,CAAC,CAAA;KAClB,CAAA;IACDE,GAAG,CAACV,GAAG,GAAGA,GAAG,CAAA;AACf,GAAC,EAAE,CAACA,GAAG,CAAC,CAAC,CAAA;AAET,EAAA,OAAOO,QAAQ,gBACbb,KAAA,CAAAC,aAAA,QAAAC,QAAA,CAAA;IAAK,aAAY,EAAA,gBAAA;AAAgB,GAAA,EAAAiB,aAAA,CAAA;AAAOb,IAAAA,GAAG,EAAHA,GAAAA;GAAQE,EAAAA,UAAU,GAAM,gBAEhER,KAAA,CAAAC,aAAA,CAAAD,KAAA,CAAAoB,QAAA,QAAGb,QAAQ,iBAAIP,KAAA,CAAAC,aAAA,CAACR,gBAAgB,EAAKe,UAAU,CAAI,CACpD,CAAA;AACH;;;;"}
@@ -4,8 +4,9 @@ var React = require('react');
4
4
  var neetoui = require('@bigbinary/neetoui');
5
5
  var neetoIcons = require('@bigbinary/neeto-icons');
6
6
  var pure = require('@bigbinary/neeto-commons-frontend/pure');
7
+ var utils = require('@bigbinary/neeto-commons-frontend/utils');
7
8
  var reactRouterDom = require('react-router-dom');
8
- var reactI18next = require('react-i18next');
9
+ var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
9
10
 
10
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
12
 
@@ -30871,7 +30872,7 @@ function _extends() {
30871
30872
 
30872
30873
  var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
30873
30874
 
30874
- var css = ".neeto-molecules-menubar__wrapper{background-color:rgb(var(--neeto-ui-gray-100));flex-shrink:0;overflow:hidden;transition:all .3s}.neeto-molecules-menubar__container{height:100vh;overflow-y:auto;padding:24px;width:324px}.neeto-molecules-menubar__title{margin-bottom:16px}.neeto-molecules-menubar__search{align-items:center;display:flex;gap:4px;margin-bottom:20px}.neeto-molecules-menubar__subtitle{align-items:center;display:flex;justify-content:space-between;margin-bottom:20px;margin-top:20px}.neeto-molecules-menubar__subtitle-actions{align-items:center;display:flex;gap:4px}.neeto-molecules-menubar__add-new-wrap,.neeto-molecules-menubar__block{margin-bottom:8px;padding:7px 8px}.neeto-molecules-menubar__block{align-items:center;border:thin solid transparent;border-radius:var(--neeto-ui-rounded);cursor:pointer;display:flex;justify-content:space-between;text-align:left;transition:all .3s;width:100%}.neeto-molecules-menubar__block:active,.neeto-molecules-menubar__block:focus,.neeto-molecules-menubar__block:focus-visible,.neeto-molecules-menubar__block:hover{background-color:rgb(var(--neeto-ui-gray-200));outline:none;text-decoration:none}.neeto-molecules-menubar__block--active{background-color:rgb(var(--neeto-ui-white));border-color:rgb(var(--neeto-ui-gray-300));box-shadow:var(--neeto-ui-shadow-xs)}.neeto-molecules-menubar__block--active:active,.neeto-molecules-menubar__block--active:focus,.neeto-molecules-menubar__block--active:focus-visible,.neeto-molecules-menubar__block--active:hover{background-color:rgb(var(--neeto-ui-white))}.neeto-molecules-menubar__block .neeto-molecules-menubar__block-label{align-items:center;display:flex}.neeto-molecules-menubar__block .neeto-molecules-menubar__block-icon{margin-right:4px}.neeto-molecules-menubar__item{border:thin solid transparent;border-radius:var(--neeto-ui-rounded);cursor:pointer;margin-bottom:8px;padding:12px;text-align:left;transition:all .3s;width:100%}.neeto-molecules-menubar__item:active,.neeto-molecules-menubar__item:focus,.neeto-molecules-menubar__item:focus-visible,.neeto-molecules-menubar__item:hover{background-color:rgb(var(--neeto-ui-gray-200));outline:none}.neeto-molecules-menubar__item--active{background-color:rgb(var(--neeto-ui-white));border-color:rgb(var(--neeto-ui-gray-300));box-shadow:var(--neeto-ui-shadow-xs);color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-menubar__item--active:active,.neeto-molecules-menubar__item--active:focus,.neeto-molecules-menubar__item--active:focus-visible,.neeto-molecules-menubar__item--active:hover{background-color:rgb(var(--neeto-ui-white))}.neeto-molecules-menubar-enter.neeto-molecules-menubar__wrapper{width:0}.neeto-molecules-menubar-enter-active.neeto-molecules-menubar__wrapper,.neeto-molecules-menubar-enter-done.neeto-molecules-menubar__wrapper,.neeto-molecules-menubar-exit.neeto-molecules-menubar__wrapper{width:324px}.neeto-molecules-menubar-exit-active.neeto-molecules-menubar__wrapper{width:0}";
30875
+ var css = ".neeto-molecules-menubar__wrapper{background-color:rgb(var(--neeto-ui-white))!important;border-right:1px solid rgb(var(--neeto-ui-gray-300));flex-shrink:0;overflow:hidden;transition:all .3s}.neeto-molecules-menubar__container{height:100vh;overflow-y:auto;padding:32px!important;width:324px}.neeto-molecules-menubar__title{margin-bottom:16px}.neeto-molecules-menubar__search{align-items:center;display:flex;gap:4px;margin-bottom:20px}.neeto-molecules-menubar__subtitle{align-items:center;display:flex;justify-content:space-between;margin-bottom:20px;margin-top:20px}.neeto-molecules-menubar__subtitle-actions{align-items:center;display:flex;gap:4px}.neeto-molecules-menubar__add-new-wrap,.neeto-molecules-menubar__block{margin-bottom:8px;padding:7px 8px}.neeto-molecules-menubar__block{align-items:center;border:thin solid transparent;border-radius:var(--neeto-ui-rounded);cursor:pointer;display:flex;justify-content:space-between;text-align:left;transition:all .3s;width:100%}.neeto-molecules-menubar__block:active,.neeto-molecules-menubar__block:focus,.neeto-molecules-menubar__block:focus-visible,.neeto-molecules-menubar__block:hover{background-color:rgb(var(--neeto-ui-gray-200));outline:none;text-decoration:none}.neeto-molecules-menubar__block--active{background-color:rgb(var(--neeto-ui-white));border-color:rgb(var(--neeto-ui-gray-300));box-shadow:var(--neeto-ui-shadow-xs)}.neeto-molecules-menubar__block--active:active,.neeto-molecules-menubar__block--active:focus,.neeto-molecules-menubar__block--active:focus-visible,.neeto-molecules-menubar__block--active:hover{background-color:rgb(var(--neeto-ui-white))}.neeto-molecules-menubar__block .neeto-molecules-menubar__block-label{align-items:center;display:flex}.neeto-molecules-menubar__block .neeto-molecules-menubar__block-icon{margin-right:4px}.neeto-molecules-menubar__item{border:thin solid transparent;border-radius:var(--neeto-ui-rounded);cursor:pointer;margin-bottom:8px;padding:12px;text-align:left;transition:all .3s;width:100%}.neeto-molecules-menubar__item:active,.neeto-molecules-menubar__item:focus,.neeto-molecules-menubar__item:focus-visible,.neeto-molecules-menubar__item:hover{background-color:rgb(var(--neeto-ui-gray-200));outline:none}.neeto-molecules-menubar__item--active{background-color:rgb(var(--neeto-ui-white));border-color:rgb(var(--neeto-ui-gray-300));box-shadow:var(--neeto-ui-shadow-xs);color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-menubar__item--active:active,.neeto-molecules-menubar__item--active:focus,.neeto-molecules-menubar__item--active:focus-visible,.neeto-molecules-menubar__item--active:hover{background-color:rgb(var(--neeto-ui-white))}.neeto-molecules-menubar-enter.neeto-molecules-menubar__wrapper{width:0}.neeto-molecules-menubar-enter-active.neeto-molecules-menubar__wrapper,.neeto-molecules-menubar-enter-done.neeto-molecules-menubar__wrapper,.neeto-molecules-menubar-exit.neeto-molecules-menubar__wrapper{width:324px}.neeto-molecules-menubar-exit-active.neeto-molecules-menubar__wrapper{width:0}";
30875
30876
  n(css,{});
30876
30877
 
30877
30878
  var _excluded$5 = ["label", "onClick"];
@@ -30894,6 +30895,8 @@ var AddNew = function AddNew(_ref) {
30894
30895
  };
30895
30896
 
30896
30897
  var _excluded$4 = ["url", "icon", "label", "count", "active", "onEdit", "onClick", "className"];
30898
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
30899
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
30897
30900
  var Block = function Block(_ref) {
30898
30901
  var url = _ref.url,
30899
30902
  icon = _ref.icon,
@@ -30913,20 +30916,18 @@ var Block = function Block(_ref) {
30913
30916
  var Parent = url ? reactRouterDom.Link : function (props) {
30914
30917
  return /*#__PURE__*/React__default["default"].createElement("button", props);
30915
30918
  };
30916
- var hyphenize = function hyphenize(string) {
30917
- if (string && typeof string === "string") return undefined;
30918
- return string.replace(/[\s_]/g, "-").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/-+/g, "-").toLowerCase();
30919
- };
30920
30919
  return /*#__PURE__*/React__default["default"].createElement(Parent, _extends({
30921
- "data-cy": otherProps["data-cy"] || hyphenize(label) || "nui",
30920
+ "data-cy": otherProps["data-cy"] || "menubar-block",
30922
30921
  to: url,
30923
30922
  className: classnames("neeto-molecules-menubar__block", _defineProperty({
30924
30923
  "neeto-molecules-menubar__block--editable": !!onEdit,
30925
30924
  "neeto-molecules-menubar__block--active": active
30926
- }, className, className)),
30925
+ }, className, className))
30926
+ }, _objectSpread({
30927
30927
  onClick: onClick
30928
- }, otherProps), /*#__PURE__*/React__default["default"].createElement("div", {
30929
- className: "neeto-molecules-menubar__block-label"
30928
+ }, otherProps)), /*#__PURE__*/React__default["default"].createElement("div", {
30929
+ className: "neeto-molecules-menubar__block-label",
30930
+ "data-cy": utils.joinHyphenCase("menubar-block-label", label)
30930
30931
  }, icon && /*#__PURE__*/React__default["default"].createElement("i", {
30931
30932
  className: "neeto-molecules-menubar__block-icon"
30932
30933
  }, icon), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
@@ -30968,25 +30969,35 @@ var Item = function Item(_ref) {
30968
30969
  }, description));
30969
30970
  };
30970
30971
 
30971
- var _excluded$2 = ["isCollapsed", "onCollapse"];
30972
- var Search = function Search(_ref) {
30973
- var _ref$isCollapsed = _ref.isCollapsed,
30972
+ var _excluded$2 = ["t", "isCollapsed", "onCollapse"];
30973
+ var Search = reactUtils.withT(function (_ref) {
30974
+ var t = _ref.t,
30975
+ _ref$isCollapsed = _ref.isCollapsed,
30974
30976
  isCollapsed = _ref$isCollapsed === void 0 ? true : _ref$isCollapsed,
30975
30977
  onCollapse = _ref.onCollapse,
30976
30978
  props = _objectWithoutProperties(_ref, _excluded$2);
30977
- var _useTranslation = reactI18next.useTranslation(),
30978
- t = _useTranslation.t;
30979
- return !isCollapsed && /*#__PURE__*/React__default["default"].createElement("div", {
30979
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, !isCollapsed && /*#__PURE__*/React__default["default"].createElement("div", {
30980
30980
  className: "neeto-molecules-menubar__search"
30981
30981
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends({
30982
30982
  placeholder: t("neetoMolecules.common.actions.search"),
30983
30983
  prefix: /*#__PURE__*/React__default["default"].createElement(neetoIcons.Search, null),
30984
30984
  type: "search"
30985
30985
  }, props)), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
30986
+ "data-cy": "menubar-search-close-icon",
30986
30987
  icon: neetoIcons.Close,
30987
30988
  style: "text",
30988
30989
  onClick: onCollapse
30989
- }));
30990
+ })));
30991
+ });
30992
+ Search.propTypes = {
30993
+ /**
30994
+ * To specify whether the search field is collapsed.
30995
+ */
30996
+ isCollapsed: propTypes.exports.bool,
30997
+ /**
30998
+ * To provide a callback function on collapse of the search field.
30999
+ */
31000
+ onCollapse: propTypes.exports.func
30990
31001
  };
30991
31002
 
30992
31003
  var _excluded$1 = ["children", "iconProps"];
@@ -31025,7 +31036,8 @@ var MenuBar = function MenuBar(_ref) {
31025
31036
  }, /*#__PURE__*/React__default["default"].createElement("div", {
31026
31037
  className: classnames("neeto-molecules-menubar__wrapper", _defineProperty({}, className, className))
31027
31038
  }, /*#__PURE__*/React__default["default"].createElement("div", {
31028
- className: "neeto-molecules-menubar__container"
31039
+ className: "neeto-molecules-menubar__container",
31040
+ "data-cy": "menubar-container"
31029
31041
  }, title && /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31030
31042
  className: "neeto-molecules-menubar__title",
31031
31043
  "data-cy": otherProps["data-cy"] || "menubar-heading",