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