@bigbinary/neeto-molecules 1.11.4 → 1.11.6

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 (291) hide show
  1. package/dist/Breadcrumbs.js +7 -8
  2. package/dist/Breadcrumbs.js.map +1 -1
  3. package/dist/BrowserSupport.js +41 -138
  4. package/dist/BrowserSupport.js.map +1 -1
  5. package/dist/Builder.js +65 -319
  6. package/dist/Builder.js.map +1 -1
  7. package/dist/CalendarView.js +38 -321
  8. package/dist/CalendarView.js.map +1 -1
  9. package/dist/Codeblock.js +14 -207
  10. package/dist/Codeblock.js.map +1 -1
  11. package/dist/Columns-702d539a.js +206 -0
  12. package/dist/Columns-702d539a.js.map +1 -0
  13. package/dist/Columns.js +16 -342
  14. package/dist/Columns.js.map +1 -1
  15. package/dist/ConfirmationModal.js +10 -10
  16. package/dist/ConfirmationModal.js.map +1 -1
  17. package/dist/Container.js +4 -1186
  18. package/dist/Container.js.map +1 -1
  19. package/dist/CopyToClipboardButton.js +7 -144
  20. package/dist/CopyToClipboardButton.js.map +1 -1
  21. package/dist/Currency.js +4 -46
  22. package/dist/Currency.js.map +1 -1
  23. package/dist/CustomDomain.js +30 -635
  24. package/dist/CustomDomain.js.map +1 -1
  25. package/dist/CustomDomainDashboard.js +41 -2198
  26. package/dist/CustomDomainDashboard.js.map +1 -1
  27. package/dist/DateFormat.js +4 -18
  28. package/dist/DateFormat.js.map +1 -1
  29. package/dist/DateRangeFilter.js +7 -61
  30. package/dist/DateRangeFilter.js.map +1 -1
  31. package/dist/DocumentEditor.js +12 -121
  32. package/dist/DocumentEditor.js.map +1 -1
  33. package/dist/DownloadMobileAppCallout.js +4 -4
  34. package/dist/DownloadMobileAppCallout.js.map +1 -1
  35. package/dist/DynamicVariables.js +11 -94
  36. package/dist/DynamicVariables.js.map +1 -1
  37. package/dist/EmailForm.js +46 -1711
  38. package/dist/EmailForm.js.map +1 -1
  39. package/dist/EmailPreview.js +28 -1209
  40. package/dist/EmailPreview.js.map +1 -1
  41. package/dist/EmojiPicker.js +5 -73
  42. package/dist/EmojiPicker.js.map +1 -1
  43. package/dist/EmojiReactions.js +13 -67
  44. package/dist/EmojiReactions.js.map +1 -1
  45. package/dist/ErrorPage.js +1 -15
  46. package/dist/ErrorPage.js.map +1 -1
  47. package/dist/FloatingActionMenu.js +74 -1401
  48. package/dist/FloatingActionMenu.js.map +1 -1
  49. package/dist/Header.js +26 -72
  50. package/dist/Header.js.map +1 -1
  51. package/dist/HelpPopover.js +14 -96
  52. package/dist/HelpPopover.js.map +1 -1
  53. package/dist/IconPicker.js +26 -123
  54. package/dist/IconPicker.js.map +1 -1
  55. package/dist/ImageWithFallback.js +8 -144
  56. package/dist/ImageWithFallback.js.map +1 -1
  57. package/dist/InlineInput.js +16 -522
  58. package/dist/InlineInput.js.map +1 -1
  59. package/dist/IntegrationCard.js +30 -229
  60. package/dist/IntegrationCard.js.map +1 -1
  61. package/dist/IntegrationDisconnectAlert.js +4 -46
  62. package/dist/IntegrationDisconnectAlert.js.map +1 -1
  63. package/dist/IntegrationWalkthroughModal.js +7 -7
  64. package/dist/IntegrationWalkthroughModal.js.map +1 -1
  65. package/dist/IpRestriction.js +16 -196
  66. package/dist/IpRestriction.js.map +1 -1
  67. package/dist/KeyboardShortcuts.js +24 -119
  68. package/dist/KeyboardShortcuts.js.map +1 -1
  69. package/dist/LoginPage.js +22 -445
  70. package/dist/LoginPage.js.map +1 -1
  71. package/dist/MenuBar.js +29 -1293
  72. package/dist/MenuBar.js.map +1 -1
  73. package/dist/Metadata.js +27 -82
  74. package/dist/Metadata.js.map +1 -1
  75. package/dist/MoreDropdown.js +15 -97
  76. package/dist/MoreDropdown.js.map +1 -1
  77. package/dist/NavigationHeader.js +39 -709
  78. package/dist/NavigationHeader.js.map +1 -1
  79. package/dist/NeetoWidget.js +15 -234
  80. package/dist/NeetoWidget.js.map +1 -1
  81. package/dist/Onboarding.js +16 -1212
  82. package/dist/Onboarding.js.map +1 -1
  83. package/dist/PageLoader.js +5 -48
  84. package/dist/PageLoader.js.map +1 -1
  85. package/dist/PhoneNumber.js +22 -156
  86. package/dist/PhoneNumber.js.map +1 -1
  87. package/dist/ProductEmbed.js +83 -172
  88. package/dist/ProductEmbed.js.map +1 -1
  89. package/dist/PublishBlock.js +15 -58
  90. package/dist/PublishBlock.js.map +1 -1
  91. package/dist/PublishYourItem.js +9 -1190
  92. package/dist/PublishYourItem.js.map +1 -1
  93. package/dist/Rename.js +30 -330
  94. package/dist/Rename.js.map +1 -1
  95. package/dist/ResponsiveDevicePicker.js +7 -143
  96. package/dist/ResponsiveDevicePicker.js.map +1 -1
  97. package/dist/Schedule.js +62 -331
  98. package/dist/Schedule.js.map +1 -1
  99. package/dist/Scrollable.js +6 -89
  100. package/dist/Scrollable.js.map +1 -1
  101. package/dist/Search.js +7 -143
  102. package/dist/Search.js.map +1 -1
  103. package/dist/Security.js +37 -1573
  104. package/dist/Security.js.map +1 -1
  105. package/dist/SendToFields.js +41 -124
  106. package/dist/SendToFields.js.map +1 -1
  107. package/dist/Settings.js +32 -488
  108. package/dist/Settings.js.map +1 -1
  109. package/dist/ShareViaEmail.js +51 -1746
  110. package/dist/ShareViaEmail.js.map +1 -1
  111. package/dist/ShareViaLink.js +60 -314
  112. package/dist/ShareViaLink.js.map +1 -1
  113. package/dist/Sidebar.js +143 -406
  114. package/dist/Sidebar.js.map +1 -1
  115. package/dist/SubHeader.js +27 -105
  116. package/dist/SubHeader.js.map +1 -1
  117. package/dist/SuffixedInput.js +15 -120
  118. package/dist/SuffixedInput.js.map +1 -1
  119. package/dist/TableWrapper.js +7 -8
  120. package/dist/TableWrapper.js.map +1 -1
  121. package/dist/Taxonomy.js +74 -1780
  122. package/dist/Taxonomy.js.map +1 -1
  123. package/dist/ThemeSidebar.js +144 -767
  124. package/dist/ThemeSidebar.js.map +1 -1
  125. package/dist/TimeFormat.js +8 -44
  126. package/dist/TimeFormat.js.map +1 -1
  127. package/dist/TimezoneMismatchModal.js +11 -65
  128. package/dist/TimezoneMismatchModal.js.map +1 -1
  129. package/dist/ToggleFeatureCard.js +20 -157
  130. package/dist/ToggleFeatureCard.js.map +1 -1
  131. package/dist/cjs/Breadcrumbs.js +2 -3
  132. package/dist/cjs/Breadcrumbs.js.map +1 -1
  133. package/dist/cjs/BrowserSupport.js +8 -105
  134. package/dist/cjs/BrowserSupport.js.map +1 -1
  135. package/dist/cjs/Builder.js +16 -270
  136. package/dist/cjs/Builder.js.map +1 -1
  137. package/dist/cjs/CalendarView.js +23 -308
  138. package/dist/cjs/CalendarView.js.map +1 -1
  139. package/dist/cjs/Codeblock.js +12 -206
  140. package/dist/cjs/Codeblock.js.map +1 -1
  141. package/dist/cjs/Columns-069368e2.js +216 -0
  142. package/dist/cjs/Columns-069368e2.js.map +1 -0
  143. package/dist/cjs/Columns.js +23 -350
  144. package/dist/cjs/Columns.js.map +1 -1
  145. package/dist/cjs/Container.js +4 -1186
  146. package/dist/cjs/Container.js.map +1 -1
  147. package/dist/cjs/CopyToClipboardButton.js +10 -147
  148. package/dist/cjs/CopyToClipboardButton.js.map +1 -1
  149. package/dist/cjs/Currency.js +4 -46
  150. package/dist/cjs/Currency.js.map +1 -1
  151. package/dist/cjs/CustomDomain.js +23 -651
  152. package/dist/cjs/CustomDomain.js.map +1 -1
  153. package/dist/cjs/CustomDomainDashboard.js +44 -2227
  154. package/dist/cjs/CustomDomainDashboard.js.map +1 -1
  155. package/dist/cjs/DateFormat.js +3 -17
  156. package/dist/cjs/DateFormat.js.map +1 -1
  157. package/dist/cjs/DateRangeFilter.js +2 -56
  158. package/dist/cjs/DateRangeFilter.js.map +1 -1
  159. package/dist/cjs/DocumentEditor.js +14 -123
  160. package/dist/cjs/DocumentEditor.js.map +1 -1
  161. package/dist/cjs/DynamicVariables.js +8 -91
  162. package/dist/cjs/DynamicVariables.js.map +1 -1
  163. package/dist/cjs/EmailForm.js +23 -1689
  164. package/dist/cjs/EmailForm.js.map +1 -1
  165. package/dist/cjs/EmailPreview.js +8 -1189
  166. package/dist/cjs/EmailPreview.js.map +1 -1
  167. package/dist/cjs/EmojiPicker.js +4 -72
  168. package/dist/cjs/EmojiPicker.js.map +1 -1
  169. package/dist/cjs/EmojiReactions.js +5 -59
  170. package/dist/cjs/EmojiReactions.js.map +1 -1
  171. package/dist/cjs/ErrorPage.js +2 -16
  172. package/dist/cjs/ErrorPage.js.map +1 -1
  173. package/dist/cjs/FloatingActionMenu.js +49 -1377
  174. package/dist/cjs/FloatingActionMenu.js.map +1 -1
  175. package/dist/cjs/Header.js +19 -67
  176. package/dist/cjs/Header.js.map +1 -1
  177. package/dist/cjs/HelpPopover.js +11 -93
  178. package/dist/cjs/HelpPopover.js.map +1 -1
  179. package/dist/cjs/IconPicker.js +10 -107
  180. package/dist/cjs/IconPicker.js.map +1 -1
  181. package/dist/cjs/ImageWithFallback.js +11 -147
  182. package/dist/cjs/ImageWithFallback.js.map +1 -1
  183. package/dist/cjs/InlineInput.js +20 -526
  184. package/dist/cjs/InlineInput.js.map +1 -1
  185. package/dist/cjs/IntegrationCard.js +8 -207
  186. package/dist/cjs/IntegrationCard.js.map +1 -1
  187. package/dist/cjs/IntegrationDisconnectAlert.js +4 -46
  188. package/dist/cjs/IntegrationDisconnectAlert.js.map +1 -1
  189. package/dist/cjs/IpRestriction.js +7 -187
  190. package/dist/cjs/IpRestriction.js.map +1 -1
  191. package/dist/cjs/KeyboardShortcuts.js +9 -104
  192. package/dist/cjs/KeyboardShortcuts.js.map +1 -1
  193. package/dist/cjs/LoginPage.js +12 -435
  194. package/dist/cjs/LoginPage.js.map +1 -1
  195. package/dist/cjs/MenuBar.js +24 -1288
  196. package/dist/cjs/MenuBar.js.map +1 -1
  197. package/dist/cjs/Metadata.js +6 -61
  198. package/dist/cjs/Metadata.js.map +1 -1
  199. package/dist/cjs/MoreDropdown.js +14 -96
  200. package/dist/cjs/MoreDropdown.js.map +1 -1
  201. package/dist/cjs/NavigationHeader.js +21 -695
  202. package/dist/cjs/NavigationHeader.js.map +1 -1
  203. package/dist/cjs/NeetoWidget.js +18 -238
  204. package/dist/cjs/NeetoWidget.js.map +1 -1
  205. package/dist/cjs/Onboarding.js +15 -1211
  206. package/dist/cjs/Onboarding.js.map +1 -1
  207. package/dist/cjs/PageLoader.js +8 -51
  208. package/dist/cjs/PageLoader.js.map +1 -1
  209. package/dist/cjs/PhoneNumber.js +22 -156
  210. package/dist/cjs/PhoneNumber.js.map +1 -1
  211. package/dist/cjs/ProductEmbed.js +28 -118
  212. package/dist/cjs/ProductEmbed.js.map +1 -1
  213. package/dist/cjs/PublishBlock.js +13 -56
  214. package/dist/cjs/PublishBlock.js.map +1 -1
  215. package/dist/cjs/PublishYourItem.js +3 -1184
  216. package/dist/cjs/PublishYourItem.js.map +1 -1
  217. package/dist/cjs/Rename.js +23 -323
  218. package/dist/cjs/Rename.js.map +1 -1
  219. package/dist/cjs/ResponsiveDevicePicker.js +8 -144
  220. package/dist/cjs/ResponsiveDevicePicker.js.map +1 -1
  221. package/dist/cjs/Schedule.js +18 -287
  222. package/dist/cjs/Schedule.js.map +1 -1
  223. package/dist/cjs/Scrollable.js +8 -91
  224. package/dist/cjs/Scrollable.js.map +1 -1
  225. package/dist/cjs/Search.js +8 -144
  226. package/dist/cjs/Search.js.map +1 -1
  227. package/dist/cjs/Security.js +27 -1565
  228. package/dist/cjs/Security.js.map +1 -1
  229. package/dist/cjs/SendToFields.js +12 -95
  230. package/dist/cjs/SendToFields.js.map +1 -1
  231. package/dist/cjs/Settings.js +18 -476
  232. package/dist/cjs/Settings.js.map +1 -1
  233. package/dist/cjs/ShareViaEmail.js +20 -1716
  234. package/dist/cjs/ShareViaEmail.js.map +1 -1
  235. package/dist/cjs/ShareViaLink.js +13 -268
  236. package/dist/cjs/ShareViaLink.js.map +1 -1
  237. package/dist/cjs/Sidebar.js +52 -316
  238. package/dist/cjs/Sidebar.js.map +1 -1
  239. package/dist/cjs/SubHeader.js +18 -97
  240. package/dist/cjs/SubHeader.js.map +1 -1
  241. package/dist/cjs/SuffixedInput.js +14 -120
  242. package/dist/cjs/SuffixedInput.js.map +1 -1
  243. package/dist/cjs/TableWrapper.js +6 -7
  244. package/dist/cjs/TableWrapper.js.map +1 -1
  245. package/dist/cjs/Taxonomy.js +36 -1746
  246. package/dist/cjs/Taxonomy.js.map +1 -1
  247. package/dist/cjs/ThemeSidebar.js +34 -657
  248. package/dist/cjs/ThemeSidebar.js.map +1 -1
  249. package/dist/cjs/TimeFormat.js +8 -49
  250. package/dist/cjs/TimeFormat.js.map +1 -1
  251. package/dist/cjs/TimezoneMismatchModal.js +2 -56
  252. package/dist/cjs/TimezoneMismatchModal.js.map +1 -1
  253. package/dist/cjs/ToggleFeatureCard.js +15 -152
  254. package/dist/cjs/ToggleFeatureCard.js.map +1 -1
  255. package/dist/cjs/defineProperty-886ed289.js +47 -0
  256. package/dist/cjs/defineProperty-886ed289.js.map +1 -0
  257. package/dist/cjs/extends-1b35a664.js +19 -0
  258. package/dist/cjs/extends-1b35a664.js.map +1 -0
  259. package/dist/cjs/index-248c4f4c.js +1186 -0
  260. package/dist/cjs/index-248c4f4c.js.map +1 -0
  261. package/dist/cjs/index-73f9c602.js +454 -0
  262. package/dist/cjs/index-73f9c602.js.map +1 -0
  263. package/dist/cjs/index-c55ad2bc.js +375 -0
  264. package/dist/cjs/index-c55ad2bc.js.map +1 -0
  265. package/dist/cjs/inject-css-80a5faa3.js +6 -0
  266. package/dist/cjs/inject-css-80a5faa3.js.map +1 -0
  267. package/dist/cjs/objectWithoutProperties-2fed2d7d.js +33 -0
  268. package/dist/cjs/objectWithoutProperties-2fed2d7d.js.map +1 -0
  269. package/dist/cjs/slicedToArray-f320d9e7.js +61 -0
  270. package/dist/cjs/slicedToArray-f320d9e7.js.map +1 -0
  271. package/dist/cjs/toConsumableArray-9abb3858.js +22 -0
  272. package/dist/cjs/toConsumableArray-9abb3858.js.map +1 -0
  273. package/dist/defineProperty-549061a7.js +43 -0
  274. package/dist/defineProperty-549061a7.js.map +1 -0
  275. package/dist/extends-093996c9.js +17 -0
  276. package/dist/extends-093996c9.js.map +1 -0
  277. package/dist/index-372a8b29.js +422 -0
  278. package/dist/index-372a8b29.js.map +1 -0
  279. package/dist/index-9720867c.js +372 -0
  280. package/dist/index-9720867c.js.map +1 -0
  281. package/dist/index-e5588516.js +1184 -0
  282. package/dist/index-e5588516.js.map +1 -0
  283. package/dist/inject-css-c86de496.js +4 -0
  284. package/dist/inject-css-c86de496.js.map +1 -0
  285. package/dist/objectWithoutProperties-a0edb288.js +31 -0
  286. package/dist/objectWithoutProperties-a0edb288.js.map +1 -0
  287. package/dist/slicedToArray-b4278ecd.js +57 -0
  288. package/dist/slicedToArray-b4278ecd.js.map +1 -0
  289. package/dist/toConsumableArray-1cc38429.js +20 -0
  290. package/dist/toConsumableArray-1cc38429.js.map +1 -0
  291. package/package.json +1 -3
@@ -1,14 +1,19 @@
1
1
  'use strict';
2
2
 
3
+ var defineProperty = require('./defineProperty-886ed289.js');
4
+ var objectWithoutProperties = require('./objectWithoutProperties-2fed2d7d.js');
3
5
  var React = require('react');
4
6
  var classnames = require('classnames');
5
7
  var neetoui = require('@bigbinary/neetoui');
6
8
  var reactTransitionGroup = require('react-transition-group');
9
+ var _extends = require('./extends-1b35a664.js');
7
10
  var neetoIcons = require('@bigbinary/neeto-icons');
11
+ var injectCss = require('./inject-css-80a5faa3.js');
8
12
  var neetoCist = require('@bigbinary/neeto-cist');
9
13
  var general = require('@bigbinary/neeto-commons-frontend/utils/general');
10
14
  var reactRouterDom = require('react-router-dom');
11
15
  var withT = require('@bigbinary/neeto-commons-frontend/react-utils/withT');
16
+ var index = require('./index-248c4f4c.js');
12
17
 
13
18
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
19
 
@@ -16,103 +21,16 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
21
  var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
17
22
  var withT__default = /*#__PURE__*/_interopDefaultLegacy(withT);
18
23
 
19
- function _typeof(o) {
20
- "@babel/helpers - typeof";
21
-
22
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
23
- return typeof o;
24
- } : function (o) {
25
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
26
- }, _typeof(o);
27
- }
28
-
29
- function _toPrimitive(input, hint) {
30
- if (_typeof(input) !== "object" || input === null) return input;
31
- var prim = input[Symbol.toPrimitive];
32
- if (prim !== undefined) {
33
- var res = prim.call(input, hint || "default");
34
- if (_typeof(res) !== "object") return res;
35
- throw new TypeError("@@toPrimitive must return a primitive value.");
36
- }
37
- return (hint === "string" ? String : Number)(input);
38
- }
39
-
40
- function _toPropertyKey(arg) {
41
- var key = _toPrimitive(arg, "string");
42
- return _typeof(key) === "symbol" ? key : String(key);
43
- }
44
-
45
- function _defineProperty(obj, key, value) {
46
- key = _toPropertyKey(key);
47
- if (key in obj) {
48
- Object.defineProperty(obj, key, {
49
- value: value,
50
- enumerable: true,
51
- configurable: true,
52
- writable: true
53
- });
54
- } else {
55
- obj[key] = value;
56
- }
57
- return obj;
58
- }
59
-
60
- function _objectWithoutPropertiesLoose(source, excluded) {
61
- if (source == null) return {};
62
- var target = {};
63
- var sourceKeys = Object.keys(source);
64
- var key, i;
65
- for (i = 0; i < sourceKeys.length; i++) {
66
- key = sourceKeys[i];
67
- if (excluded.indexOf(key) >= 0) continue;
68
- target[key] = source[key];
69
- }
70
- return target;
71
- }
72
-
73
- function _objectWithoutProperties(source, excluded) {
74
- if (source == null) return {};
75
- var target = _objectWithoutPropertiesLoose(source, excluded);
76
- var key, i;
77
- if (Object.getOwnPropertySymbols) {
78
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
79
- for (i = 0; i < sourceSymbolKeys.length; i++) {
80
- key = sourceSymbolKeys[i];
81
- if (excluded.indexOf(key) >= 0) continue;
82
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
83
- target[key] = source[key];
84
- }
85
- }
86
- return target;
87
- }
88
-
89
- function _extends() {
90
- _extends = Object.assign ? Object.assign.bind() : function (target) {
91
- for (var i = 1; i < arguments.length; i++) {
92
- var source = arguments[i];
93
- for (var key in source) {
94
- if (Object.prototype.hasOwnProperty.call(source, key)) {
95
- target[key] = source[key];
96
- }
97
- }
98
- }
99
- return target;
100
- };
101
- return _extends.apply(this, arguments);
102
- }
103
-
104
- 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}}
105
-
106
24
  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}@media screen and (max-width:1024px){.neeto-molecules-menubar__container{padding:40px 24px 24px!important;width:280px}}@media screen and (max-width:768px){.neeto-molecules-menubar__container{padding:40px 20px 24px!important;width:240px}}.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-primary-100));border-color:rgb(var(--neeto-ui-primary-100));box-shadow:none;position:relative}.neeto-molecules-menubar__block--active:after{background-color:rgb(var(--neeto-ui-primary-500));border-bottom-left-radius:var(--neeto-ui-rounded);border-top-left-radius:var(--neeto-ui-rounded);content:\"\";height:100%;left:-1px;position:absolute;top:0;width:3px}.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-primary-100))}.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%}@media screen and (max-width:1024px){.neeto-molecules-menubar__item{padding:10px}}@media screen and (max-width:768px){.neeto-molecules-menubar__item{padding:8px}}.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}";
107
- n(css,{});
25
+ injectCss.n(css,{});
108
26
 
109
27
  var _excluded$5 = ["label", "onClick"];
110
28
  var AddNew = function AddNew(_ref) {
111
29
  var _ref$label = _ref.label,
112
30
  label = _ref$label === void 0 ? "" : _ref$label,
113
31
  onClick = _ref.onClick,
114
- otherProps = _objectWithoutProperties(_ref, _excluded$5);
115
- return /*#__PURE__*/React__default["default"].createElement("div", _extends({
32
+ otherProps = objectWithoutProperties._objectWithoutProperties(_ref, _excluded$5);
33
+ return /*#__PURE__*/React__default["default"].createElement("div", _extends._extends({
116
34
  className: "neeto-molecules-menubar__add-new-wrap"
117
35
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
118
36
  icon: neetoIcons.Plus,
@@ -127,7 +45,7 @@ var AddNew = function AddNew(_ref) {
127
45
 
128
46
  var _excluded$4 = ["url", "icon", "label", "count", "active", "onEdit", "onClick", "className"];
129
47
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
130
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
48
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { defineProperty._defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
131
49
  var Block = function Block(_ref) {
132
50
  var url = _ref.url,
133
51
  icon = _ref.icon,
@@ -139,7 +57,7 @@ var Block = function Block(_ref) {
139
57
  _ref$onClick = _ref.onClick,
140
58
  onClick = _ref$onClick === void 0 ? neetoCist.noop : _ref$onClick,
141
59
  className = _ref.className,
142
- otherProps = _objectWithoutProperties(_ref, _excluded$4);
60
+ otherProps = objectWithoutProperties._objectWithoutProperties(_ref, _excluded$4);
143
61
  var handleEdit = function handleEdit(e) {
144
62
  e.stopPropagation();
145
63
  onEdit && onEdit();
@@ -147,10 +65,10 @@ var Block = function Block(_ref) {
147
65
  var Parent = url ? reactRouterDom.Link : function (props) {
148
66
  return /*#__PURE__*/React__default["default"].createElement("button", props);
149
67
  };
150
- return /*#__PURE__*/React__default["default"].createElement(Parent, _extends({
68
+ return /*#__PURE__*/React__default["default"].createElement(Parent, _extends._extends({
151
69
  "data-cy": otherProps["data-cy"] || "menubar-block",
152
70
  to: url,
153
- className: classnames__default["default"]("neeto-molecules-menubar__block", _defineProperty({
71
+ className: classnames__default["default"]("neeto-molecules-menubar__block", defineProperty._defineProperty({
154
72
  "neeto-molecules-menubar__block--editable": !!onEdit,
155
73
  "neeto-molecules-menubar__block--active": active
156
74
  }, className, className))
@@ -185,9 +103,9 @@ var Item = function Item(_ref) {
185
103
  active = _ref$active === void 0 ? false : _ref$active,
186
104
  _ref$className = _ref.className,
187
105
  className = _ref$className === void 0 ? "" : _ref$className,
188
- otherProps = _objectWithoutProperties(_ref, _excluded$3);
189
- return /*#__PURE__*/React__default["default"].createElement("button", _extends({
190
- className: classnames__default["default"]("neeto-molecules-menubar__item", _defineProperty({
106
+ otherProps = objectWithoutProperties._objectWithoutProperties(_ref, _excluded$3);
107
+ return /*#__PURE__*/React__default["default"].createElement("button", _extends._extends({
108
+ className: classnames__default["default"]("neeto-molecules-menubar__item", defineProperty._defineProperty({
191
109
  "neeto-molecules-menubar__item--active": active
192
110
  }, className, className))
193
111
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
@@ -200,1198 +118,16 @@ var Item = function Item(_ref) {
200
118
  }, description));
201
119
  };
202
120
 
203
- var propTypes = {exports: {}};
204
-
205
- var reactIs = {exports: {}};
206
-
207
- var reactIs_production_min = {};
208
-
209
- /** @license React v16.13.1
210
- * react-is.production.min.js
211
- *
212
- * Copyright (c) Facebook, Inc. and its affiliates.
213
- *
214
- * This source code is licensed under the MIT license found in the
215
- * LICENSE file in the root directory of this source tree.
216
- */
217
-
218
- var hasRequiredReactIs_production_min;
219
-
220
- function requireReactIs_production_min () {
221
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
222
- hasRequiredReactIs_production_min = 1;
223
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
224
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
225
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
226
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
227
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
228
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
229
- return reactIs_production_min;
230
- }
231
-
232
- var reactIs_development = {};
233
-
234
- /** @license React v16.13.1
235
- * react-is.development.js
236
- *
237
- * Copyright (c) Facebook, Inc. and its affiliates.
238
- *
239
- * This source code is licensed under the MIT license found in the
240
- * LICENSE file in the root directory of this source tree.
241
- */
242
-
243
- var hasRequiredReactIs_development;
244
-
245
- function requireReactIs_development () {
246
- if (hasRequiredReactIs_development) return reactIs_development;
247
- hasRequiredReactIs_development = 1;
248
-
249
-
250
-
251
- if (process.env.NODE_ENV !== "production") {
252
- (function() {
253
-
254
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
255
- // nor polyfill, then a plain number is used for performance.
256
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
257
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
258
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
259
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
260
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
261
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
262
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
263
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
264
- // (unstable) APIs that have been removed. Can we remove the symbols?
265
-
266
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
267
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
268
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
269
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
270
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
271
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
272
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
273
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
274
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
275
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
276
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
277
-
278
- function isValidElementType(type) {
279
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
280
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
281
- }
282
-
283
- function typeOf(object) {
284
- if (typeof object === 'object' && object !== null) {
285
- var $$typeof = object.$$typeof;
286
-
287
- switch ($$typeof) {
288
- case REACT_ELEMENT_TYPE:
289
- var type = object.type;
290
-
291
- switch (type) {
292
- case REACT_ASYNC_MODE_TYPE:
293
- case REACT_CONCURRENT_MODE_TYPE:
294
- case REACT_FRAGMENT_TYPE:
295
- case REACT_PROFILER_TYPE:
296
- case REACT_STRICT_MODE_TYPE:
297
- case REACT_SUSPENSE_TYPE:
298
- return type;
299
-
300
- default:
301
- var $$typeofType = type && type.$$typeof;
302
-
303
- switch ($$typeofType) {
304
- case REACT_CONTEXT_TYPE:
305
- case REACT_FORWARD_REF_TYPE:
306
- case REACT_LAZY_TYPE:
307
- case REACT_MEMO_TYPE:
308
- case REACT_PROVIDER_TYPE:
309
- return $$typeofType;
310
-
311
- default:
312
- return $$typeof;
313
- }
314
-
315
- }
316
-
317
- case REACT_PORTAL_TYPE:
318
- return $$typeof;
319
- }
320
- }
321
-
322
- return undefined;
323
- } // AsyncMode is deprecated along with isAsyncMode
324
-
325
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
326
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
327
- var ContextConsumer = REACT_CONTEXT_TYPE;
328
- var ContextProvider = REACT_PROVIDER_TYPE;
329
- var Element = REACT_ELEMENT_TYPE;
330
- var ForwardRef = REACT_FORWARD_REF_TYPE;
331
- var Fragment = REACT_FRAGMENT_TYPE;
332
- var Lazy = REACT_LAZY_TYPE;
333
- var Memo = REACT_MEMO_TYPE;
334
- var Portal = REACT_PORTAL_TYPE;
335
- var Profiler = REACT_PROFILER_TYPE;
336
- var StrictMode = REACT_STRICT_MODE_TYPE;
337
- var Suspense = REACT_SUSPENSE_TYPE;
338
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
339
-
340
- function isAsyncMode(object) {
341
- {
342
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
343
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
344
-
345
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
346
- }
347
- }
348
-
349
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
350
- }
351
- function isConcurrentMode(object) {
352
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
353
- }
354
- function isContextConsumer(object) {
355
- return typeOf(object) === REACT_CONTEXT_TYPE;
356
- }
357
- function isContextProvider(object) {
358
- return typeOf(object) === REACT_PROVIDER_TYPE;
359
- }
360
- function isElement(object) {
361
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
362
- }
363
- function isForwardRef(object) {
364
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
365
- }
366
- function isFragment(object) {
367
- return typeOf(object) === REACT_FRAGMENT_TYPE;
368
- }
369
- function isLazy(object) {
370
- return typeOf(object) === REACT_LAZY_TYPE;
371
- }
372
- function isMemo(object) {
373
- return typeOf(object) === REACT_MEMO_TYPE;
374
- }
375
- function isPortal(object) {
376
- return typeOf(object) === REACT_PORTAL_TYPE;
377
- }
378
- function isProfiler(object) {
379
- return typeOf(object) === REACT_PROFILER_TYPE;
380
- }
381
- function isStrictMode(object) {
382
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
383
- }
384
- function isSuspense(object) {
385
- return typeOf(object) === REACT_SUSPENSE_TYPE;
386
- }
387
-
388
- reactIs_development.AsyncMode = AsyncMode;
389
- reactIs_development.ConcurrentMode = ConcurrentMode;
390
- reactIs_development.ContextConsumer = ContextConsumer;
391
- reactIs_development.ContextProvider = ContextProvider;
392
- reactIs_development.Element = Element;
393
- reactIs_development.ForwardRef = ForwardRef;
394
- reactIs_development.Fragment = Fragment;
395
- reactIs_development.Lazy = Lazy;
396
- reactIs_development.Memo = Memo;
397
- reactIs_development.Portal = Portal;
398
- reactIs_development.Profiler = Profiler;
399
- reactIs_development.StrictMode = StrictMode;
400
- reactIs_development.Suspense = Suspense;
401
- reactIs_development.isAsyncMode = isAsyncMode;
402
- reactIs_development.isConcurrentMode = isConcurrentMode;
403
- reactIs_development.isContextConsumer = isContextConsumer;
404
- reactIs_development.isContextProvider = isContextProvider;
405
- reactIs_development.isElement = isElement;
406
- reactIs_development.isForwardRef = isForwardRef;
407
- reactIs_development.isFragment = isFragment;
408
- reactIs_development.isLazy = isLazy;
409
- reactIs_development.isMemo = isMemo;
410
- reactIs_development.isPortal = isPortal;
411
- reactIs_development.isProfiler = isProfiler;
412
- reactIs_development.isStrictMode = isStrictMode;
413
- reactIs_development.isSuspense = isSuspense;
414
- reactIs_development.isValidElementType = isValidElementType;
415
- reactIs_development.typeOf = typeOf;
416
- })();
417
- }
418
- return reactIs_development;
419
- }
420
-
421
- var hasRequiredReactIs;
422
-
423
- function requireReactIs () {
424
- if (hasRequiredReactIs) return reactIs.exports;
425
- hasRequiredReactIs = 1;
426
- (function (module) {
427
-
428
- if (process.env.NODE_ENV === 'production') {
429
- module.exports = requireReactIs_production_min();
430
- } else {
431
- module.exports = requireReactIs_development();
432
- }
433
- } (reactIs));
434
- return reactIs.exports;
435
- }
436
-
437
- /*
438
- object-assign
439
- (c) Sindre Sorhus
440
- @license MIT
441
- */
442
-
443
- var objectAssign;
444
- var hasRequiredObjectAssign;
445
-
446
- function requireObjectAssign () {
447
- if (hasRequiredObjectAssign) return objectAssign;
448
- hasRequiredObjectAssign = 1;
449
- /* eslint-disable no-unused-vars */
450
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
451
- var hasOwnProperty = Object.prototype.hasOwnProperty;
452
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
453
-
454
- function toObject(val) {
455
- if (val === null || val === undefined) {
456
- throw new TypeError('Object.assign cannot be called with null or undefined');
457
- }
458
-
459
- return Object(val);
460
- }
461
-
462
- function shouldUseNative() {
463
- try {
464
- if (!Object.assign) {
465
- return false;
466
- }
467
-
468
- // Detect buggy property enumeration order in older V8 versions.
469
-
470
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
471
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
472
- test1[5] = 'de';
473
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
474
- return false;
475
- }
476
-
477
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
478
- var test2 = {};
479
- for (var i = 0; i < 10; i++) {
480
- test2['_' + String.fromCharCode(i)] = i;
481
- }
482
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
483
- return test2[n];
484
- });
485
- if (order2.join('') !== '0123456789') {
486
- return false;
487
- }
488
-
489
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
490
- var test3 = {};
491
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
492
- test3[letter] = letter;
493
- });
494
- if (Object.keys(Object.assign({}, test3)).join('') !==
495
- 'abcdefghijklmnopqrst') {
496
- return false;
497
- }
498
-
499
- return true;
500
- } catch (err) {
501
- // We don't expect any of the above to throw, but better to be safe.
502
- return false;
503
- }
504
- }
505
-
506
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
507
- var from;
508
- var to = toObject(target);
509
- var symbols;
510
-
511
- for (var s = 1; s < arguments.length; s++) {
512
- from = Object(arguments[s]);
513
-
514
- for (var key in from) {
515
- if (hasOwnProperty.call(from, key)) {
516
- to[key] = from[key];
517
- }
518
- }
519
-
520
- if (getOwnPropertySymbols) {
521
- symbols = getOwnPropertySymbols(from);
522
- for (var i = 0; i < symbols.length; i++) {
523
- if (propIsEnumerable.call(from, symbols[i])) {
524
- to[symbols[i]] = from[symbols[i]];
525
- }
526
- }
527
- }
528
- }
529
-
530
- return to;
531
- };
532
- return objectAssign;
533
- }
534
-
535
- /**
536
- * Copyright (c) 2013-present, Facebook, Inc.
537
- *
538
- * This source code is licensed under the MIT license found in the
539
- * LICENSE file in the root directory of this source tree.
540
- */
541
-
542
- var ReactPropTypesSecret_1;
543
- var hasRequiredReactPropTypesSecret;
544
-
545
- function requireReactPropTypesSecret () {
546
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
547
- hasRequiredReactPropTypesSecret = 1;
548
-
549
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
550
-
551
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
552
- return ReactPropTypesSecret_1;
553
- }
554
-
555
- var has;
556
- var hasRequiredHas;
557
-
558
- function requireHas () {
559
- if (hasRequiredHas) return has;
560
- hasRequiredHas = 1;
561
- has = Function.call.bind(Object.prototype.hasOwnProperty);
562
- return has;
563
- }
564
-
565
- /**
566
- * Copyright (c) 2013-present, Facebook, Inc.
567
- *
568
- * This source code is licensed under the MIT license found in the
569
- * LICENSE file in the root directory of this source tree.
570
- */
571
-
572
- var checkPropTypes_1;
573
- var hasRequiredCheckPropTypes;
574
-
575
- function requireCheckPropTypes () {
576
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
577
- hasRequiredCheckPropTypes = 1;
578
-
579
- var printWarning = function() {};
580
-
581
- if (process.env.NODE_ENV !== 'production') {
582
- var ReactPropTypesSecret = requireReactPropTypesSecret();
583
- var loggedTypeFailures = {};
584
- var has = requireHas();
585
-
586
- printWarning = function(text) {
587
- var message = 'Warning: ' + text;
588
- if (typeof console !== 'undefined') {
589
- console.error(message);
590
- }
591
- try {
592
- // --- Welcome to debugging React ---
593
- // This error was thrown as a convenience so that you can use this stack
594
- // to find the callsite that caused this warning to fire.
595
- throw new Error(message);
596
- } catch (x) { /**/ }
597
- };
598
- }
599
-
600
- /**
601
- * Assert that the values match with the type specs.
602
- * Error messages are memorized and will only be shown once.
603
- *
604
- * @param {object} typeSpecs Map of name to a ReactPropType
605
- * @param {object} values Runtime values that need to be type-checked
606
- * @param {string} location e.g. "prop", "context", "child context"
607
- * @param {string} componentName Name of the component for error messages.
608
- * @param {?Function} getStack Returns the component stack.
609
- * @private
610
- */
611
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
612
- if (process.env.NODE_ENV !== 'production') {
613
- for (var typeSpecName in typeSpecs) {
614
- if (has(typeSpecs, typeSpecName)) {
615
- var error;
616
- // Prop type validation may throw. In case they do, we don't want to
617
- // fail the render phase where it didn't fail before. So we log it.
618
- // After these have been cleaned up, we'll let them throw.
619
- try {
620
- // This is intentionally an invariant that gets caught. It's the same
621
- // behavior as without this statement except with a better message.
622
- if (typeof typeSpecs[typeSpecName] !== 'function') {
623
- var err = Error(
624
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
625
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
626
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
627
- );
628
- err.name = 'Invariant Violation';
629
- throw err;
630
- }
631
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
632
- } catch (ex) {
633
- error = ex;
634
- }
635
- if (error && !(error instanceof Error)) {
636
- printWarning(
637
- (componentName || 'React class') + ': type specification of ' +
638
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
639
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
640
- 'You may have forgotten to pass an argument to the type checker ' +
641
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
642
- 'shape all require an argument).'
643
- );
644
- }
645
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
646
- // Only monitor this failure once because there tends to be a lot of the
647
- // same error.
648
- loggedTypeFailures[error.message] = true;
649
-
650
- var stack = getStack ? getStack() : '';
651
-
652
- printWarning(
653
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
654
- );
655
- }
656
- }
657
- }
658
- }
659
- }
660
-
661
- /**
662
- * Resets warning cache when testing.
663
- *
664
- * @private
665
- */
666
- checkPropTypes.resetWarningCache = function() {
667
- if (process.env.NODE_ENV !== 'production') {
668
- loggedTypeFailures = {};
669
- }
670
- };
671
-
672
- checkPropTypes_1 = checkPropTypes;
673
- return checkPropTypes_1;
674
- }
675
-
676
- /**
677
- * Copyright (c) 2013-present, Facebook, Inc.
678
- *
679
- * This source code is licensed under the MIT license found in the
680
- * LICENSE file in the root directory of this source tree.
681
- */
682
-
683
- var factoryWithTypeCheckers;
684
- var hasRequiredFactoryWithTypeCheckers;
685
-
686
- function requireFactoryWithTypeCheckers () {
687
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
688
- hasRequiredFactoryWithTypeCheckers = 1;
689
-
690
- var ReactIs = requireReactIs();
691
- var assign = requireObjectAssign();
692
-
693
- var ReactPropTypesSecret = requireReactPropTypesSecret();
694
- var has = requireHas();
695
- var checkPropTypes = requireCheckPropTypes();
696
-
697
- var printWarning = function() {};
698
-
699
- if (process.env.NODE_ENV !== 'production') {
700
- printWarning = function(text) {
701
- var message = 'Warning: ' + text;
702
- if (typeof console !== 'undefined') {
703
- console.error(message);
704
- }
705
- try {
706
- // --- Welcome to debugging React ---
707
- // This error was thrown as a convenience so that you can use this stack
708
- // to find the callsite that caused this warning to fire.
709
- throw new Error(message);
710
- } catch (x) {}
711
- };
712
- }
713
-
714
- function emptyFunctionThatReturnsNull() {
715
- return null;
716
- }
717
-
718
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
719
- /* global Symbol */
720
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
721
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
722
-
723
- /**
724
- * Returns the iterator method function contained on the iterable object.
725
- *
726
- * Be sure to invoke the function with the iterable as context:
727
- *
728
- * var iteratorFn = getIteratorFn(myIterable);
729
- * if (iteratorFn) {
730
- * var iterator = iteratorFn.call(myIterable);
731
- * ...
732
- * }
733
- *
734
- * @param {?object} maybeIterable
735
- * @return {?function}
736
- */
737
- function getIteratorFn(maybeIterable) {
738
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
739
- if (typeof iteratorFn === 'function') {
740
- return iteratorFn;
741
- }
742
- }
743
-
744
- /**
745
- * Collection of methods that allow declaration and validation of props that are
746
- * supplied to React components. Example usage:
747
- *
748
- * var Props = require('ReactPropTypes');
749
- * var MyArticle = React.createClass({
750
- * propTypes: {
751
- * // An optional string prop named "description".
752
- * description: Props.string,
753
- *
754
- * // A required enum prop named "category".
755
- * category: Props.oneOf(['News','Photos']).isRequired,
756
- *
757
- * // A prop named "dialog" that requires an instance of Dialog.
758
- * dialog: Props.instanceOf(Dialog).isRequired
759
- * },
760
- * render: function() { ... }
761
- * });
762
- *
763
- * A more formal specification of how these methods are used:
764
- *
765
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
766
- * decl := ReactPropTypes.{type}(.isRequired)?
767
- *
768
- * Each and every declaration produces a function with the same signature. This
769
- * allows the creation of custom validation functions. For example:
770
- *
771
- * var MyLink = React.createClass({
772
- * propTypes: {
773
- * // An optional string or URI prop named "href".
774
- * href: function(props, propName, componentName) {
775
- * var propValue = props[propName];
776
- * if (propValue != null && typeof propValue !== 'string' &&
777
- * !(propValue instanceof URI)) {
778
- * return new Error(
779
- * 'Expected a string or an URI for ' + propName + ' in ' +
780
- * componentName
781
- * );
782
- * }
783
- * }
784
- * },
785
- * render: function() {...}
786
- * });
787
- *
788
- * @internal
789
- */
790
-
791
- var ANONYMOUS = '<<anonymous>>';
792
-
793
- // Important!
794
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
795
- var ReactPropTypes = {
796
- array: createPrimitiveTypeChecker('array'),
797
- bigint: createPrimitiveTypeChecker('bigint'),
798
- bool: createPrimitiveTypeChecker('boolean'),
799
- func: createPrimitiveTypeChecker('function'),
800
- number: createPrimitiveTypeChecker('number'),
801
- object: createPrimitiveTypeChecker('object'),
802
- string: createPrimitiveTypeChecker('string'),
803
- symbol: createPrimitiveTypeChecker('symbol'),
804
-
805
- any: createAnyTypeChecker(),
806
- arrayOf: createArrayOfTypeChecker,
807
- element: createElementTypeChecker(),
808
- elementType: createElementTypeTypeChecker(),
809
- instanceOf: createInstanceTypeChecker,
810
- node: createNodeChecker(),
811
- objectOf: createObjectOfTypeChecker,
812
- oneOf: createEnumTypeChecker,
813
- oneOfType: createUnionTypeChecker,
814
- shape: createShapeTypeChecker,
815
- exact: createStrictShapeTypeChecker,
816
- };
817
-
818
- /**
819
- * inlined Object.is polyfill to avoid requiring consumers ship their own
820
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
821
- */
822
- /*eslint-disable no-self-compare*/
823
- function is(x, y) {
824
- // SameValue algorithm
825
- if (x === y) {
826
- // Steps 1-5, 7-10
827
- // Steps 6.b-6.e: +0 != -0
828
- return x !== 0 || 1 / x === 1 / y;
829
- } else {
830
- // Step 6.a: NaN == NaN
831
- return x !== x && y !== y;
832
- }
833
- }
834
- /*eslint-enable no-self-compare*/
835
-
836
- /**
837
- * We use an Error-like object for backward compatibility as people may call
838
- * PropTypes directly and inspect their output. However, we don't use real
839
- * Errors anymore. We don't inspect their stack anyway, and creating them
840
- * is prohibitively expensive if they are created too often, such as what
841
- * happens in oneOfType() for any type before the one that matched.
842
- */
843
- function PropTypeError(message, data) {
844
- this.message = message;
845
- this.data = data && typeof data === 'object' ? data: {};
846
- this.stack = '';
847
- }
848
- // Make `instanceof Error` still work for returned errors.
849
- PropTypeError.prototype = Error.prototype;
850
-
851
- function createChainableTypeChecker(validate) {
852
- if (process.env.NODE_ENV !== 'production') {
853
- var manualPropTypeCallCache = {};
854
- var manualPropTypeWarningCount = 0;
855
- }
856
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
857
- componentName = componentName || ANONYMOUS;
858
- propFullName = propFullName || propName;
859
-
860
- if (secret !== ReactPropTypesSecret) {
861
- if (throwOnDirectAccess) {
862
- // New behavior only for users of `prop-types` package
863
- var err = new Error(
864
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
865
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
866
- 'Read more at http://fb.me/use-check-prop-types'
867
- );
868
- err.name = 'Invariant Violation';
869
- throw err;
870
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
871
- // Old behavior for people using React.PropTypes
872
- var cacheKey = componentName + ':' + propName;
873
- if (
874
- !manualPropTypeCallCache[cacheKey] &&
875
- // Avoid spamming the console because they are often not actionable except for lib authors
876
- manualPropTypeWarningCount < 3
877
- ) {
878
- printWarning(
879
- 'You are manually calling a React.PropTypes validation ' +
880
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
881
- 'and will throw in the standalone `prop-types` package. ' +
882
- 'You may be seeing this warning due to a third-party PropTypes ' +
883
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
884
- );
885
- manualPropTypeCallCache[cacheKey] = true;
886
- manualPropTypeWarningCount++;
887
- }
888
- }
889
- }
890
- if (props[propName] == null) {
891
- if (isRequired) {
892
- if (props[propName] === null) {
893
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
894
- }
895
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
896
- }
897
- return null;
898
- } else {
899
- return validate(props, propName, componentName, location, propFullName);
900
- }
901
- }
902
-
903
- var chainedCheckType = checkType.bind(null, false);
904
- chainedCheckType.isRequired = checkType.bind(null, true);
905
-
906
- return chainedCheckType;
907
- }
908
-
909
- function createPrimitiveTypeChecker(expectedType) {
910
- function validate(props, propName, componentName, location, propFullName, secret) {
911
- var propValue = props[propName];
912
- var propType = getPropType(propValue);
913
- if (propType !== expectedType) {
914
- // `propValue` being instance of, say, date/regexp, pass the 'object'
915
- // check, but we can offer a more precise error message here rather than
916
- // 'of type `object`'.
917
- var preciseType = getPreciseType(propValue);
918
-
919
- return new PropTypeError(
920
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
921
- {expectedType: expectedType}
922
- );
923
- }
924
- return null;
925
- }
926
- return createChainableTypeChecker(validate);
927
- }
928
-
929
- function createAnyTypeChecker() {
930
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
931
- }
932
-
933
- function createArrayOfTypeChecker(typeChecker) {
934
- function validate(props, propName, componentName, location, propFullName) {
935
- if (typeof typeChecker !== 'function') {
936
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
937
- }
938
- var propValue = props[propName];
939
- if (!Array.isArray(propValue)) {
940
- var propType = getPropType(propValue);
941
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
942
- }
943
- for (var i = 0; i < propValue.length; i++) {
944
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
945
- if (error instanceof Error) {
946
- return error;
947
- }
948
- }
949
- return null;
950
- }
951
- return createChainableTypeChecker(validate);
952
- }
953
-
954
- function createElementTypeChecker() {
955
- function validate(props, propName, componentName, location, propFullName) {
956
- var propValue = props[propName];
957
- if (!isValidElement(propValue)) {
958
- var propType = getPropType(propValue);
959
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
960
- }
961
- return null;
962
- }
963
- return createChainableTypeChecker(validate);
964
- }
965
-
966
- function createElementTypeTypeChecker() {
967
- function validate(props, propName, componentName, location, propFullName) {
968
- var propValue = props[propName];
969
- if (!ReactIs.isValidElementType(propValue)) {
970
- var propType = getPropType(propValue);
971
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
972
- }
973
- return null;
974
- }
975
- return createChainableTypeChecker(validate);
976
- }
977
-
978
- function createInstanceTypeChecker(expectedClass) {
979
- function validate(props, propName, componentName, location, propFullName) {
980
- if (!(props[propName] instanceof expectedClass)) {
981
- var expectedClassName = expectedClass.name || ANONYMOUS;
982
- var actualClassName = getClassName(props[propName]);
983
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
984
- }
985
- return null;
986
- }
987
- return createChainableTypeChecker(validate);
988
- }
989
-
990
- function createEnumTypeChecker(expectedValues) {
991
- if (!Array.isArray(expectedValues)) {
992
- if (process.env.NODE_ENV !== 'production') {
993
- if (arguments.length > 1) {
994
- printWarning(
995
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
996
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
997
- );
998
- } else {
999
- printWarning('Invalid argument supplied to oneOf, expected an array.');
1000
- }
1001
- }
1002
- return emptyFunctionThatReturnsNull;
1003
- }
1004
-
1005
- function validate(props, propName, componentName, location, propFullName) {
1006
- var propValue = props[propName];
1007
- for (var i = 0; i < expectedValues.length; i++) {
1008
- if (is(propValue, expectedValues[i])) {
1009
- return null;
1010
- }
1011
- }
1012
-
1013
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1014
- var type = getPreciseType(value);
1015
- if (type === 'symbol') {
1016
- return String(value);
1017
- }
1018
- return value;
1019
- });
1020
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1021
- }
1022
- return createChainableTypeChecker(validate);
1023
- }
1024
-
1025
- function createObjectOfTypeChecker(typeChecker) {
1026
- function validate(props, propName, componentName, location, propFullName) {
1027
- if (typeof typeChecker !== 'function') {
1028
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1029
- }
1030
- var propValue = props[propName];
1031
- var propType = getPropType(propValue);
1032
- if (propType !== 'object') {
1033
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1034
- }
1035
- for (var key in propValue) {
1036
- if (has(propValue, key)) {
1037
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1038
- if (error instanceof Error) {
1039
- return error;
1040
- }
1041
- }
1042
- }
1043
- return null;
1044
- }
1045
- return createChainableTypeChecker(validate);
1046
- }
1047
-
1048
- function createUnionTypeChecker(arrayOfTypeCheckers) {
1049
- if (!Array.isArray(arrayOfTypeCheckers)) {
1050
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
1051
- return emptyFunctionThatReturnsNull;
1052
- }
1053
-
1054
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1055
- var checker = arrayOfTypeCheckers[i];
1056
- if (typeof checker !== 'function') {
1057
- printWarning(
1058
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1059
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1060
- );
1061
- return emptyFunctionThatReturnsNull;
1062
- }
1063
- }
1064
-
1065
- function validate(props, propName, componentName, location, propFullName) {
1066
- var expectedTypes = [];
1067
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1068
- var checker = arrayOfTypeCheckers[i];
1069
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
1070
- if (checkerResult == null) {
1071
- return null;
1072
- }
1073
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1074
- expectedTypes.push(checkerResult.data.expectedType);
1075
- }
1076
- }
1077
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1078
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1079
- }
1080
- return createChainableTypeChecker(validate);
1081
- }
1082
-
1083
- function createNodeChecker() {
1084
- function validate(props, propName, componentName, location, propFullName) {
1085
- if (!isNode(props[propName])) {
1086
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1087
- }
1088
- return null;
1089
- }
1090
- return createChainableTypeChecker(validate);
1091
- }
1092
-
1093
- function invalidValidatorError(componentName, location, propFullName, key, type) {
1094
- return new PropTypeError(
1095
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1096
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1097
- );
1098
- }
1099
-
1100
- function createShapeTypeChecker(shapeTypes) {
1101
- function validate(props, propName, componentName, location, propFullName) {
1102
- var propValue = props[propName];
1103
- var propType = getPropType(propValue);
1104
- if (propType !== 'object') {
1105
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1106
- }
1107
- for (var key in shapeTypes) {
1108
- var checker = shapeTypes[key];
1109
- if (typeof checker !== 'function') {
1110
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1111
- }
1112
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1113
- if (error) {
1114
- return error;
1115
- }
1116
- }
1117
- return null;
1118
- }
1119
- return createChainableTypeChecker(validate);
1120
- }
1121
-
1122
- function createStrictShapeTypeChecker(shapeTypes) {
1123
- function validate(props, propName, componentName, location, propFullName) {
1124
- var propValue = props[propName];
1125
- var propType = getPropType(propValue);
1126
- if (propType !== 'object') {
1127
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1128
- }
1129
- // We need to check all keys in case some are required but missing from props.
1130
- var allKeys = assign({}, props[propName], shapeTypes);
1131
- for (var key in allKeys) {
1132
- var checker = shapeTypes[key];
1133
- if (has(shapeTypes, key) && typeof checker !== 'function') {
1134
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1135
- }
1136
- if (!checker) {
1137
- return new PropTypeError(
1138
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1139
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1140
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1141
- );
1142
- }
1143
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
1144
- if (error) {
1145
- return error;
1146
- }
1147
- }
1148
- return null;
1149
- }
1150
-
1151
- return createChainableTypeChecker(validate);
1152
- }
1153
-
1154
- function isNode(propValue) {
1155
- switch (typeof propValue) {
1156
- case 'number':
1157
- case 'string':
1158
- case 'undefined':
1159
- return true;
1160
- case 'boolean':
1161
- return !propValue;
1162
- case 'object':
1163
- if (Array.isArray(propValue)) {
1164
- return propValue.every(isNode);
1165
- }
1166
- if (propValue === null || isValidElement(propValue)) {
1167
- return true;
1168
- }
1169
-
1170
- var iteratorFn = getIteratorFn(propValue);
1171
- if (iteratorFn) {
1172
- var iterator = iteratorFn.call(propValue);
1173
- var step;
1174
- if (iteratorFn !== propValue.entries) {
1175
- while (!(step = iterator.next()).done) {
1176
- if (!isNode(step.value)) {
1177
- return false;
1178
- }
1179
- }
1180
- } else {
1181
- // Iterator will provide entry [k,v] tuples rather than values.
1182
- while (!(step = iterator.next()).done) {
1183
- var entry = step.value;
1184
- if (entry) {
1185
- if (!isNode(entry[1])) {
1186
- return false;
1187
- }
1188
- }
1189
- }
1190
- }
1191
- } else {
1192
- return false;
1193
- }
1194
-
1195
- return true;
1196
- default:
1197
- return false;
1198
- }
1199
- }
1200
-
1201
- function isSymbol(propType, propValue) {
1202
- // Native Symbol.
1203
- if (propType === 'symbol') {
1204
- return true;
1205
- }
1206
-
1207
- // falsy value can't be a Symbol
1208
- if (!propValue) {
1209
- return false;
1210
- }
1211
-
1212
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1213
- if (propValue['@@toStringTag'] === 'Symbol') {
1214
- return true;
1215
- }
1216
-
1217
- // Fallback for non-spec compliant Symbols which are polyfilled.
1218
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1219
- return true;
1220
- }
1221
-
1222
- return false;
1223
- }
1224
-
1225
- // Equivalent of `typeof` but with special handling for array and regexp.
1226
- function getPropType(propValue) {
1227
- var propType = typeof propValue;
1228
- if (Array.isArray(propValue)) {
1229
- return 'array';
1230
- }
1231
- if (propValue instanceof RegExp) {
1232
- // Old webkits (at least until Android 4.0) return 'function' rather than
1233
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1234
- // passes PropTypes.object.
1235
- return 'object';
1236
- }
1237
- if (isSymbol(propType, propValue)) {
1238
- return 'symbol';
1239
- }
1240
- return propType;
1241
- }
1242
-
1243
- // This handles more types than `getPropType`. Only used for error messages.
1244
- // See `createPrimitiveTypeChecker`.
1245
- function getPreciseType(propValue) {
1246
- if (typeof propValue === 'undefined' || propValue === null) {
1247
- return '' + propValue;
1248
- }
1249
- var propType = getPropType(propValue);
1250
- if (propType === 'object') {
1251
- if (propValue instanceof Date) {
1252
- return 'date';
1253
- } else if (propValue instanceof RegExp) {
1254
- return 'regexp';
1255
- }
1256
- }
1257
- return propType;
1258
- }
1259
-
1260
- // Returns a string that is postfixed to a warning about an invalid type.
1261
- // For example, "undefined" or "of type array"
1262
- function getPostfixForTypeWarning(value) {
1263
- var type = getPreciseType(value);
1264
- switch (type) {
1265
- case 'array':
1266
- case 'object':
1267
- return 'an ' + type;
1268
- case 'boolean':
1269
- case 'date':
1270
- case 'regexp':
1271
- return 'a ' + type;
1272
- default:
1273
- return type;
1274
- }
1275
- }
1276
-
1277
- // Returns class name of the object, if any.
1278
- function getClassName(propValue) {
1279
- if (!propValue.constructor || !propValue.constructor.name) {
1280
- return ANONYMOUS;
1281
- }
1282
- return propValue.constructor.name;
1283
- }
1284
-
1285
- ReactPropTypes.checkPropTypes = checkPropTypes;
1286
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1287
- ReactPropTypes.PropTypes = ReactPropTypes;
1288
-
1289
- return ReactPropTypes;
1290
- };
1291
- return factoryWithTypeCheckers;
1292
- }
1293
-
1294
- /**
1295
- * Copyright (c) 2013-present, Facebook, Inc.
1296
- *
1297
- * This source code is licensed under the MIT license found in the
1298
- * LICENSE file in the root directory of this source tree.
1299
- */
1300
-
1301
- var factoryWithThrowingShims;
1302
- var hasRequiredFactoryWithThrowingShims;
1303
-
1304
- function requireFactoryWithThrowingShims () {
1305
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1306
- hasRequiredFactoryWithThrowingShims = 1;
1307
-
1308
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1309
-
1310
- function emptyFunction() {}
1311
- function emptyFunctionWithReset() {}
1312
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1313
-
1314
- factoryWithThrowingShims = function() {
1315
- function shim(props, propName, componentName, location, propFullName, secret) {
1316
- if (secret === ReactPropTypesSecret) {
1317
- // It is still safe when called from React.
1318
- return;
1319
- }
1320
- var err = new Error(
1321
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1322
- 'Use PropTypes.checkPropTypes() to call them. ' +
1323
- 'Read more at http://fb.me/use-check-prop-types'
1324
- );
1325
- err.name = 'Invariant Violation';
1326
- throw err;
1327
- } shim.isRequired = shim;
1328
- function getShim() {
1329
- return shim;
1330
- } // Important!
1331
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1332
- var ReactPropTypes = {
1333
- array: shim,
1334
- bigint: shim,
1335
- bool: shim,
1336
- func: shim,
1337
- number: shim,
1338
- object: shim,
1339
- string: shim,
1340
- symbol: shim,
1341
-
1342
- any: shim,
1343
- arrayOf: getShim,
1344
- element: shim,
1345
- elementType: shim,
1346
- instanceOf: getShim,
1347
- node: shim,
1348
- objectOf: getShim,
1349
- oneOf: getShim,
1350
- oneOfType: getShim,
1351
- shape: getShim,
1352
- exact: getShim,
1353
-
1354
- checkPropTypes: emptyFunctionWithReset,
1355
- resetWarningCache: emptyFunction
1356
- };
1357
-
1358
- ReactPropTypes.PropTypes = ReactPropTypes;
1359
-
1360
- return ReactPropTypes;
1361
- };
1362
- return factoryWithThrowingShims;
1363
- }
1364
-
1365
- /**
1366
- * Copyright (c) 2013-present, Facebook, Inc.
1367
- *
1368
- * This source code is licensed under the MIT license found in the
1369
- * LICENSE file in the root directory of this source tree.
1370
- */
1371
-
1372
- if (process.env.NODE_ENV !== 'production') {
1373
- var ReactIs = requireReactIs();
1374
-
1375
- // By explicitly using `prop-types` you are opting into new development behavior.
1376
- // http://fb.me/prop-types-in-prod
1377
- var throwOnDirectAccess = true;
1378
- propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1379
- } else {
1380
- // By explicitly using `prop-types` you are opting into new production behavior.
1381
- // http://fb.me/prop-types-in-prod
1382
- propTypes.exports = requireFactoryWithThrowingShims()();
1383
- }
1384
-
1385
121
  var _excluded$2 = ["t", "isCollapsed", "onCollapse"];
1386
122
  var Search = withT__default["default"](function (_ref) {
1387
123
  var t = _ref.t,
1388
124
  _ref$isCollapsed = _ref.isCollapsed,
1389
125
  isCollapsed = _ref$isCollapsed === void 0 ? true : _ref$isCollapsed,
1390
126
  onCollapse = _ref.onCollapse,
1391
- props = _objectWithoutProperties(_ref, _excluded$2);
127
+ props = objectWithoutProperties._objectWithoutProperties(_ref, _excluded$2);
1392
128
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, !isCollapsed && /*#__PURE__*/React__default["default"].createElement("div", {
1393
129
  className: "neeto-molecules-menubar__search"
1394
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends({
130
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Input, _extends._extends({
1395
131
  placeholder: t("neetoMolecules.common.actions.search"),
1396
132
  prefix: /*#__PURE__*/React__default["default"].createElement(neetoIcons.Search, null),
1397
133
  type: "search"
@@ -1406,25 +142,25 @@ Search.propTypes = {
1406
142
  /**
1407
143
  * To specify whether the search field is collapsed.
1408
144
  */
1409
- isCollapsed: propTypes.exports.bool,
145
+ isCollapsed: index.propTypes.exports.bool,
1410
146
  /**
1411
147
  * To provide a callback function on collapse of the search field.
1412
148
  */
1413
- onCollapse: propTypes.exports.func
149
+ onCollapse: index.propTypes.exports.func
1414
150
  };
1415
151
 
1416
152
  var _excluded$1 = ["children", "iconProps"];
1417
153
  var SubTitle = function SubTitle(_ref) {
1418
154
  var children = _ref.children,
1419
155
  iconProps = _ref.iconProps,
1420
- otherProps = _objectWithoutProperties(_ref, _excluded$1);
1421
- return /*#__PURE__*/React__default["default"].createElement("div", _extends({
156
+ otherProps = objectWithoutProperties._objectWithoutProperties(_ref, _excluded$1);
157
+ return /*#__PURE__*/React__default["default"].createElement("div", _extends._extends({
1422
158
  className: "neeto-molecules-menubar__subtitle",
1423
159
  "data-cy": otherProps["data-cy"] || "menubar-subtitle-heading"
1424
160
  }, otherProps), children, /*#__PURE__*/React__default["default"].createElement("div", {
1425
161
  className: "neeto-molecules-menubar__subtitle-actions"
1426
162
  }, iconProps === null || iconProps === void 0 ? void 0 : iconProps.map(function (iconProp, index) {
1427
- return /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends({
163
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends._extends({
1428
164
  key: index,
1429
165
  style: "text"
1430
166
  }, iconProp));
@@ -1440,14 +176,14 @@ var MenuBar = function MenuBar(_ref) {
1440
176
  showMenu = _ref$showMenu === void 0 ? false : _ref$showMenu,
1441
177
  _ref$className = _ref.className,
1442
178
  className = _ref$className === void 0 ? "" : _ref$className,
1443
- otherProps = _objectWithoutProperties(_ref, _excluded);
179
+ otherProps = objectWithoutProperties._objectWithoutProperties(_ref, _excluded);
1444
180
  return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.CSSTransition, {
1445
181
  unmountOnExit: true,
1446
182
  classNames: "neeto-molecules-menubar",
1447
183
  "in": showMenu,
1448
184
  timeout: 300
1449
185
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1450
- className: classnames__default["default"]("neeto-molecules-menubar__wrapper", _defineProperty({}, className, className))
186
+ className: classnames__default["default"]("neeto-molecules-menubar__wrapper", defineProperty._defineProperty({}, className, className))
1451
187
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1452
188
  className: "neeto-molecules-menubar__container",
1453
189
  "data-cy": "menubar-container"