@bigbinary/neetoui 6.5.11-beta.1 → 6.5.12

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 (187) hide show
  1. package/dist/Accordion.js +1 -1
  2. package/dist/ActionDropdown.js +4 -4
  3. package/dist/Alert.js +5 -5
  4. package/dist/Avatar.js +10 -3
  5. package/dist/Avatar.js.map +1 -1
  6. package/dist/Button.js +3 -4
  7. package/dist/Button.js.map +1 -1
  8. package/dist/Checkbox.js +3 -3
  9. package/dist/ColorPicker.js +9 -8
  10. package/dist/ColorPicker.js.map +1 -1
  11. package/dist/DatePicker.js +3 -3
  12. package/dist/DateTimePicker.js +6 -7
  13. package/dist/DateTimePicker.js.map +1 -1
  14. package/dist/Dropdown.js +4 -4
  15. package/dist/Input.js +3 -3
  16. package/dist/Kbd.js +1 -2
  17. package/dist/Kbd.js.map +1 -1
  18. package/dist/Label.js +1 -2
  19. package/dist/Label.js.map +1 -1
  20. package/dist/Modal.js +5 -5
  21. package/dist/MultiEmailInput.js +5 -6
  22. package/dist/MultiEmailInput.js.map +1 -1
  23. package/dist/NoData.js +2 -3
  24. package/dist/NoData.js.map +1 -1
  25. package/dist/Pagination.js +3 -2
  26. package/dist/Pagination.js.map +1 -1
  27. package/dist/Pane.js +5 -5
  28. package/dist/Popover.js +1 -2
  29. package/dist/Popover.js.map +1 -1
  30. package/dist/Radio.js +3 -3
  31. package/dist/Select.js +183 -30
  32. package/dist/Select.js.map +1 -1
  33. package/dist/Sidebar.js +3 -4
  34. package/dist/Sidebar.js.map +1 -1
  35. package/dist/Slider.js +3 -3
  36. package/dist/Switch.js +3 -3
  37. package/dist/Table.js +4527 -391
  38. package/dist/Table.js.map +1 -1
  39. package/dist/Textarea.js +3 -3
  40. package/dist/TimePicker.js +3 -3
  41. package/dist/TimePickerInput.js +7 -8
  42. package/dist/TimePickerInput.js.map +1 -1
  43. package/dist/Toastr.js +1654 -3
  44. package/dist/Toastr.js.map +1 -1
  45. package/dist/Tooltip.js +1 -2
  46. package/dist/Tooltip.js.map +1 -1
  47. package/dist/Tree.js +2 -1
  48. package/dist/Tree.js.map +1 -1
  49. package/dist/TreeSelect.js +3 -3
  50. package/dist/_commonjsHelpers-ced4e05c.js +29 -0
  51. package/dist/_commonjsHelpers-ced4e05c.js.map +1 -0
  52. package/dist/cjs/Accordion.js +14 -14
  53. package/dist/cjs/Accordion.js.map +1 -1
  54. package/dist/cjs/ActionDropdown.js +4 -4
  55. package/dist/cjs/Alert.js +5 -5
  56. package/dist/cjs/Avatar.js +11 -5
  57. package/dist/cjs/Avatar.js.map +1 -1
  58. package/dist/cjs/Button.js +11 -12
  59. package/dist/cjs/Button.js.map +1 -1
  60. package/dist/cjs/Checkbox.js +3 -3
  61. package/dist/cjs/ColorPicker.js +8 -7
  62. package/dist/cjs/ColorPicker.js.map +1 -1
  63. package/dist/cjs/DatePicker.js +3 -3
  64. package/dist/cjs/DateTimePicker.js +6 -7
  65. package/dist/cjs/DateTimePicker.js.map +1 -1
  66. package/dist/cjs/Dropdown.js +4 -4
  67. package/dist/cjs/Input.js +3 -3
  68. package/dist/cjs/Kbd.js +1 -2
  69. package/dist/cjs/Kbd.js.map +1 -1
  70. package/dist/cjs/Label.js +1 -2
  71. package/dist/cjs/Label.js.map +1 -1
  72. package/dist/cjs/Modal.js +5 -5
  73. package/dist/cjs/MultiEmailInput.js +13 -15
  74. package/dist/cjs/MultiEmailInput.js.map +1 -1
  75. package/dist/cjs/NoData.js +2 -3
  76. package/dist/cjs/NoData.js.map +1 -1
  77. package/dist/cjs/Pagination.js +3 -2
  78. package/dist/cjs/Pagination.js.map +1 -1
  79. package/dist/cjs/Pane.js +5 -5
  80. package/dist/cjs/Popover.js +1 -2
  81. package/dist/cjs/Popover.js.map +1 -1
  82. package/dist/cjs/Radio.js +3 -3
  83. package/dist/cjs/Select.js +193 -26
  84. package/dist/cjs/Select.js.map +1 -1
  85. package/dist/cjs/Sidebar.js +3 -4
  86. package/dist/cjs/Sidebar.js.map +1 -1
  87. package/dist/cjs/Slider.js +3 -3
  88. package/dist/cjs/Switch.js +3 -3
  89. package/dist/cjs/Table.js +4551 -415
  90. package/dist/cjs/Table.js.map +1 -1
  91. package/dist/cjs/Textarea.js +3 -3
  92. package/dist/cjs/TimePicker.js +3 -3
  93. package/dist/cjs/TimePickerInput.js +7 -8
  94. package/dist/cjs/TimePickerInput.js.map +1 -1
  95. package/dist/cjs/Toastr.js +1657 -6
  96. package/dist/cjs/Toastr.js.map +1 -1
  97. package/dist/cjs/Tooltip.js +1 -2
  98. package/dist/cjs/Tooltip.js.map +1 -1
  99. package/dist/cjs/Tree.js +2 -1
  100. package/dist/cjs/Tree.js.map +1 -1
  101. package/dist/cjs/TreeSelect.js +3 -3
  102. package/dist/cjs/_commonjsHelpers-44e4a143.js +33 -0
  103. package/dist/cjs/_commonjsHelpers-44e4a143.js.map +1 -0
  104. package/dist/cjs/formik/ActionBlock.js +2 -3
  105. package/dist/cjs/formik/ActionBlock.js.map +1 -1
  106. package/dist/cjs/formik/BlockNavigation.js +5 -5
  107. package/dist/cjs/formik/Button.js +2 -3
  108. package/dist/cjs/formik/Button.js.map +1 -1
  109. package/dist/cjs/formik/Checkbox.js +3 -3
  110. package/dist/cjs/formik/Input.js +3 -3
  111. package/dist/cjs/formik/MultiEmailInput.js +5 -6
  112. package/dist/cjs/formik/MultiEmailInput.js.map +1 -1
  113. package/dist/cjs/formik/Radio.js +3 -3
  114. package/dist/cjs/formik/Select.js +5 -8
  115. package/dist/cjs/formik/Select.js.map +1 -1
  116. package/dist/cjs/formik/Slider.js +3 -3
  117. package/dist/cjs/formik/Switch.js +3 -3
  118. package/dist/cjs/formik/Textarea.js +3 -3
  119. package/dist/cjs/formik/TreeSelect.js +3 -3
  120. package/dist/cjs/formik/index.js +6 -9
  121. package/dist/cjs/formik/index.js.map +1 -1
  122. package/dist/cjs/index-0e68cfff.js +3934 -0
  123. package/dist/cjs/index-0e68cfff.js.map +1 -0
  124. package/dist/cjs/index-1ad9d2c1.js +9176 -0
  125. package/dist/cjs/index-1ad9d2c1.js.map +1 -0
  126. package/dist/cjs/{index-6e09c7bc.js → index-68589e5c.js} +7 -9
  127. package/dist/cjs/{index-6e09c7bc.js.map → index-68589e5c.js.map} +1 -1
  128. package/dist/cjs/index-a780bb4a.js +3841 -0
  129. package/dist/cjs/index-a780bb4a.js.map +1 -0
  130. package/dist/cjs/index.css +1 -1
  131. package/dist/cjs/index.js +8 -18
  132. package/dist/cjs/index.js.map +1 -1
  133. package/dist/cjs/layouts.js +3 -4
  134. package/dist/cjs/layouts.js.map +1 -1
  135. package/dist/cjs/react-select-creatable.esm-b39742a3.js +6675 -0
  136. package/dist/cjs/react-select-creatable.esm-b39742a3.js.map +1 -0
  137. package/dist/cjs/{useOverlayManager-359ed795.js → useOverlayManager-b8f5f220.js} +2 -2
  138. package/dist/cjs/{useOverlayManager-359ed795.js.map → useOverlayManager-b8f5f220.js.map} +1 -1
  139. package/dist/cjs/{useQueryParams-14f054b3.js → useQueryParams-dcfba9f0.js} +2 -2
  140. package/dist/cjs/{useQueryParams-14f054b3.js.map → useQueryParams-dcfba9f0.js.map} +1 -1
  141. package/dist/formik/ActionBlock.js +2 -3
  142. package/dist/formik/ActionBlock.js.map +1 -1
  143. package/dist/formik/BlockNavigation.js +5 -5
  144. package/dist/formik/Button.js +2 -3
  145. package/dist/formik/Button.js.map +1 -1
  146. package/dist/formik/Checkbox.js +3 -3
  147. package/dist/formik/Input.js +3 -3
  148. package/dist/formik/MultiEmailInput.js +5 -6
  149. package/dist/formik/MultiEmailInput.js.map +1 -1
  150. package/dist/formik/Radio.js +3 -3
  151. package/dist/formik/Select.js +5 -8
  152. package/dist/formik/Select.js.map +1 -1
  153. package/dist/formik/Slider.js +3 -3
  154. package/dist/formik/Switch.js +3 -3
  155. package/dist/formik/Textarea.js +3 -3
  156. package/dist/formik/TreeSelect.js +3 -3
  157. package/dist/formik/index.js +6 -9
  158. package/dist/formik/index.js.map +1 -1
  159. package/dist/index-2123b5e9.js +3927 -0
  160. package/dist/index-2123b5e9.js.map +1 -0
  161. package/dist/index-4883abd9.js +3834 -0
  162. package/dist/index-4883abd9.js.map +1 -0
  163. package/dist/index-75a336d9.js +9151 -0
  164. package/dist/index-75a336d9.js.map +1 -0
  165. package/dist/{index-c8d9113c.js → index-c3d336a5.js} +3 -4
  166. package/dist/index-c3d336a5.js.map +1 -0
  167. package/dist/index.css +1 -1
  168. package/dist/index.js +8 -18
  169. package/dist/index.js.map +1 -1
  170. package/dist/layouts.js +3 -4
  171. package/dist/layouts.js.map +1 -1
  172. package/dist/react-select-creatable.esm-93affeca.js +6644 -0
  173. package/dist/react-select-creatable.esm-93affeca.js.map +1 -0
  174. package/dist/{useOverlayManager-95a474d5.js → useOverlayManager-8651b46d.js} +2 -2
  175. package/dist/{useOverlayManager-95a474d5.js.map → useOverlayManager-8651b46d.js.map} +1 -1
  176. package/dist/{useQueryParams-4e7ddcf8.js → useQueryParams-5059df24.js} +2 -2
  177. package/dist/{useQueryParams-4e7ddcf8.js.map → useQueryParams-5059df24.js.map} +1 -1
  178. package/package.json +2 -13
  179. package/dist/cjs/index-773961dd.js +0 -453
  180. package/dist/cjs/index-773961dd.js.map +0 -1
  181. package/dist/cjs/index-b1ac86d6.js +0 -258
  182. package/dist/cjs/index-b1ac86d6.js.map +0 -1
  183. package/dist/index-b3a8dd29.js +0 -249
  184. package/dist/index-b3a8dd29.js.map +0 -1
  185. package/dist/index-c442518b.js +0 -445
  186. package/dist/index-c442518b.js.map +0 -1
  187. package/dist/index-c8d9113c.js.map +0 -1
package/dist/Pane.js CHANGED
@@ -5,10 +5,10 @@ import { _ as _objectWithoutProperties } from './objectWithoutProperties-a0edb28
5
5
  import React__default, { useState, useRef, useEffect } from 'react';
6
6
  import { c as classnames } from './index-3659771d.js';
7
7
  import { Close } from '@bigbinary/neeto-icons';
8
- import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-95a474d5.js';
8
+ import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-8651b46d.js';
9
9
  import Button from './Button.js';
10
10
  import 'react-router-dom';
11
- import './index-c8d9113c.js';
11
+ import './index-c3d336a5.js';
12
12
  import './toPropertyKey-bdc24cb9.js';
13
13
  import './index-283bc6a6.js';
14
14
  import 'react-dom';
@@ -16,9 +16,9 @@ import 'ramda';
16
16
  import './index-7fae3611.js';
17
17
  import './overlayManager.js';
18
18
  import './createClass-601a36b2.js';
19
- import 'framer-motion';
20
- import './index-c442518b.js';
21
- import 'tippy.js';
19
+ import './index-75a336d9.js';
20
+ import './index-2123b5e9.js';
21
+ import './_commonjsHelpers-ced4e05c.js';
22
22
  import '@bigbinary/neeto-cist';
23
23
  import 'util';
24
24
 
package/dist/Popover.js CHANGED
@@ -3,11 +3,10 @@ import { _ as _objectWithoutProperties } from './objectWithoutProperties-a0edb28
3
3
  import React__default from 'react';
4
4
  import { c as classnames } from './index-3659771d.js';
5
5
  import Typography from './Typography.js';
6
- import { T as Tooltip } from './index-c442518b.js';
6
+ import { T as Tooltip } from './index-2123b5e9.js';
7
7
  import './defineProperty-e5245270.js';
8
8
  import './toPropertyKey-bdc24cb9.js';
9
9
  import './slicedToArray-45fa766e.js';
10
- import 'tippy.js';
11
10
  import 'react-dom';
12
11
 
13
12
  var Title = function Title(_ref) {
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","sources":["../src/components/Popover/Title.jsx","../src/components/Popover/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport Typography from \"../Typography\";\n\nconst Title = ({ className, children }) => (\n <Typography\n className={classnames(\"neeto-ui-mb-1\", className)}\n data-testid=\"popover-title\"\n lineHeight=\"snug\"\n style=\"h5\"\n weight=\"semibold\"\n >\n {children}\n </Typography>\n);\n\nTitle.propTypes = {\n /**\n * To specify className to be applied to the Popover Title.\n */\n className: PropTypes.string,\n /**\n * To specify the content to be rendered inside the Popover Title.\n */\n children: PropTypes.node,\n};\n\nexport default Title;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport Title from \"./Title\";\n\nimport Tooltip from \"../Tooltip\";\n\nconst Popover = ({\n children,\n className = \"\",\n theme = \"light\",\n ...otherProps\n}) => (\n <Tooltip\n {...{ theme }}\n arrow\n interactive\n className={classnames(\"neeto-ui-popover\", className)}\n content={children}\n {...otherProps}\n />\n);\n\nPopover.propTypes = {\n /**\n * The content to be rendered inside the popup.\n */\n children: PropTypes.node,\n /**\n * The popover will be positioned next to the specified element.\n */\n reference: PropTypes.oneOfType([\n // Either a function\n PropTypes.func,\n // Or the instance of a DOM native element (see the note about SSR)\n PropTypes.shape({ current: PropTypes.instanceOf(Element) }),\n ]),\n /**\n * To display Popover in dark or light theme. By default the theme is dark.\n */\n theme: PropTypes.oneOf([\"dark\", \"light\"]),\n /**\n * To specify whether the Popover is disabled or not.\n */\n disabled: PropTypes.bool,\n /**\n * To specify the position of the Popover.\n */\n position: PropTypes.string,\n /**\n * To auto-hide the Popover after n-milliseconds.\n * Negative values to this prop disables this feature.\n * By default it's disabled.\n */\n hideAfter: PropTypes.number,\n /**\n * To auto-hide the Popover on when target leaves the screen.\n * By default it's disabled.\n */\n hideOnTargetExit: PropTypes.bool,\n};\n\nPopover.Title = Title;\n\nexport default Popover;\n"],"names":["Title","_ref","className","children","React","createElement","Typography","classnames","lineHeight","style","weight","Popover","_ref$className","_ref$theme","theme","otherProps","_objectWithoutProperties","_excluded","Tooltip","_extends","arrow","interactive","content"],"mappings":";;;;;;;;;;;;AAOA,IAAMA,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,SAAS,GAAAD,IAAA,CAATC,SAAS;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ,CAAA;AAAA,EAAA,oBAClCC,cAAA,CAAAC,aAAA,CAACC,UAAU,EAAA;AACTJ,IAAAA,SAAS,EAAEK,UAAU,CAAC,eAAe,EAAEL,SAAS,CAAE;AAClD,IAAA,aAAA,EAAY,eAAe;AAC3BM,IAAAA,UAAU,EAAC,MAAM;AACjBC,IAAAA,KAAK,EAAC,IAAI;AACVC,IAAAA,MAAM,EAAC,UAAA;AAAU,GAAA,EAEhBP,QAAQ,CACE,CAAA;AAAA,CACd;;;ACRD,IAAMQ,OAAO,GAAG,SAAVA,OAAOA,CAAAV,IAAA,EAAA;AAAA,EAAA,IACXE,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAS,cAAA,GAAAX,IAAA,CACRC,SAAS;AAATA,IAAAA,SAAS,GAAAU,cAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,cAAA;IAAAC,UAAA,GAAAZ,IAAA,CACda,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,OAAO,GAAAA,UAAA;AACZE,IAAAA,UAAU,GAAAC,wBAAA,CAAAf,IAAA,EAAAgB,SAAA,CAAA,CAAA;AAAA,EAAA,oBAEbb,cAAA,CAAAC,aAAA,CAACa,OAAO,EAAAC,QAAA,CAAA;AACAL,IAAAA,KAAK,EAALA,KAAK;IACXM,KAAK,EAAA,IAAA;IACLC,WAAW,EAAA,IAAA;AACXnB,IAAAA,SAAS,EAAEK,UAAU,CAAC,kBAAkB,EAAEL,SAAS,CAAE;AACrDoB,IAAAA,OAAO,EAAEnB,QAAAA;AAAS,GAAA,EACdY,UAAU,CACd,CAAA,CAAA;AAAA,EACH;AAyCDJ,OAAO,CAACX,KAAK,GAAGA,KAAK;;;;"}
1
+ {"version":3,"file":"Popover.js","sources":["../src/components/Popover/Title.jsx","../src/components/Popover/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport Typography from \"../Typography\";\n\nconst Title = ({ className, children }) => (\n <Typography\n className={classnames(\"neeto-ui-mb-1\", className)}\n data-testid=\"popover-title\"\n lineHeight=\"snug\"\n style=\"h5\"\n weight=\"semibold\"\n >\n {children}\n </Typography>\n);\n\nTitle.propTypes = {\n /**\n * To specify className to be applied to the Popover Title.\n */\n className: PropTypes.string,\n /**\n * To specify the content to be rendered inside the Popover Title.\n */\n children: PropTypes.node,\n};\n\nexport default Title;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport Title from \"./Title\";\n\nimport Tooltip from \"../Tooltip\";\n\nconst Popover = ({\n children,\n className = \"\",\n theme = \"light\",\n ...otherProps\n}) => (\n <Tooltip\n {...{ theme }}\n arrow\n interactive\n className={classnames(\"neeto-ui-popover\", className)}\n content={children}\n {...otherProps}\n />\n);\n\nPopover.propTypes = {\n /**\n * The content to be rendered inside the popup.\n */\n children: PropTypes.node,\n /**\n * The popover will be positioned next to the specified element.\n */\n reference: PropTypes.oneOfType([\n // Either a function\n PropTypes.func,\n // Or the instance of a DOM native element (see the note about SSR)\n PropTypes.shape({ current: PropTypes.instanceOf(Element) }),\n ]),\n /**\n * To display Popover in dark or light theme. By default the theme is dark.\n */\n theme: PropTypes.oneOf([\"dark\", \"light\"]),\n /**\n * To specify whether the Popover is disabled or not.\n */\n disabled: PropTypes.bool,\n /**\n * To specify the position of the Popover.\n */\n position: PropTypes.string,\n /**\n * To auto-hide the Popover after n-milliseconds.\n * Negative values to this prop disables this feature.\n * By default it's disabled.\n */\n hideAfter: PropTypes.number,\n /**\n * To auto-hide the Popover on when target leaves the screen.\n * By default it's disabled.\n */\n hideOnTargetExit: PropTypes.bool,\n};\n\nPopover.Title = Title;\n\nexport default Popover;\n"],"names":["Title","_ref","className","children","React","createElement","Typography","classnames","lineHeight","style","weight","Popover","_ref$className","_ref$theme","theme","otherProps","_objectWithoutProperties","_excluded","Tooltip","_extends","arrow","interactive","content"],"mappings":";;;;;;;;;;;AAOA,IAAMA,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA,EAAA;AAAA,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  import 'react-router-dom';
10
10
  import './index-7fae3611.js';
11
11
  import './overlayManager.js';
12
- import { h as hyphenize } from './index-c8d9113c.js';
12
+ import { h as hyphenize } from './index-c3d336a5.js';
13
13
  import './toPropertyKey-bdc24cb9.js';
14
14
  import '@bigbinary/neeto-icons';
15
- import './index-c442518b.js';
16
- import 'tippy.js';
15
+ import './index-2123b5e9.js';
17
16
  import 'react-dom';
18
17
  import 'ramda';
19
18
  import './createClass-601a36b2.js';
19
+ import './_commonjsHelpers-ced4e05c.js';
20
20
  import '@bigbinary/neeto-cist';
21
21
  import 'util';
22
22
 
package/dist/Select.js CHANGED
@@ -1,34 +1,187 @@
1
- import { _ as _extends } from './extends-093996c9.js';
2
- import { _ as _defineProperty } from './defineProperty-e5245270.js';
3
- import { _ as _objectWithoutProperties } from './objectWithoutProperties-a0edb288.js';
4
- import React__default, { useRef, useEffect } from 'react';
1
+ import { _ as _extends$1 } from './extends-093996c9.js';
2
+ import { _ as _defineProperty$1 } from './defineProperty-e5245270.js';
3
+ import { _ as _objectWithoutProperties$1 } from './objectWithoutProperties-a0edb288.js';
4
+ import * as React from 'react';
5
+ import React__default, { forwardRef, useRef, useState, useEffect, useCallback } from 'react';
5
6
  import { c as classnames } from './index-3659771d.js';
6
7
  import { _existsBy } from '@bigbinary/neeto-cist';
7
8
  import { Down, Close } from '@bigbinary/neeto-icons';
8
9
  import { prop, assoc, flatten, pluck } from 'ramda';
9
- import SelectInput, { components } from 'react-select';
10
- import Async from 'react-select/async';
11
- import AsyncCreatable from 'react-select/async-creatable';
12
- import CreatableSelect from 'react-select/creatable';
10
+ import { u as useStateManager, S as Select$1, _ as _extends, a as _objectWithoutProperties, b as _slicedToArray, h as handleInputChange, d as _objectSpread2, e as _defineProperty, f as useCreatable, C as CreatableSelect, c as components } from './react-select-creatable.esm-93affeca.js';
11
+ import 'react-dom';
13
12
  import { u as useId } from './useId-c1d20bba.js';
14
13
  import 'react-router-dom';
15
14
  import './index-7fae3611.js';
16
15
  import './overlayManager.js';
17
- import { h as hyphenize } from './index-c8d9113c.js';
16
+ import { h as hyphenize } from './index-c3d336a5.js';
18
17
  import Label from './Label.js';
19
18
  import Spinner from './Spinner.js';
20
19
  import './toPropertyKey-bdc24cb9.js';
21
20
  import './createClass-601a36b2.js';
22
21
  import './slicedToArray-45fa766e.js';
22
+ import './_commonjsHelpers-ced4e05c.js';
23
23
  import 'util';
24
- import './index-c442518b.js';
25
- import 'tippy.js';
26
- import 'react-dom';
24
+ import './index-2123b5e9.js';
25
+
26
+ var StateManagedSelect = /*#__PURE__*/forwardRef(function (props, ref) {
27
+ var baseSelectProps = useStateManager(props);
28
+ return /*#__PURE__*/React.createElement(Select$1, _extends({
29
+ ref: ref
30
+ }, baseSelectProps));
31
+ });
32
+
33
+ var _excluded$1 = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
34
+ function useAsync(_ref) {
35
+ var _ref$defaultOptions = _ref.defaultOptions,
36
+ propsDefaultOptions = _ref$defaultOptions === void 0 ? false : _ref$defaultOptions,
37
+ _ref$cacheOptions = _ref.cacheOptions,
38
+ cacheOptions = _ref$cacheOptions === void 0 ? false : _ref$cacheOptions,
39
+ propsLoadOptions = _ref.loadOptions;
40
+ _ref.options;
41
+ var _ref$isLoading = _ref.isLoading,
42
+ propsIsLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
43
+ propsOnInputChange = _ref.onInputChange,
44
+ _ref$filterOption = _ref.filterOption,
45
+ filterOption = _ref$filterOption === void 0 ? null : _ref$filterOption,
46
+ restSelectProps = _objectWithoutProperties(_ref, _excluded$1);
47
+ var propsInputValue = restSelectProps.inputValue;
48
+ var lastRequest = useRef(undefined);
49
+ var mounted = useRef(false);
50
+ var _useState = useState(Array.isArray(propsDefaultOptions) ? propsDefaultOptions : undefined),
51
+ _useState2 = _slicedToArray(_useState, 2),
52
+ defaultOptions = _useState2[0],
53
+ setDefaultOptions = _useState2[1];
54
+ var _useState3 = useState(typeof propsInputValue !== 'undefined' ? propsInputValue : ''),
55
+ _useState4 = _slicedToArray(_useState3, 2),
56
+ stateInputValue = _useState4[0],
57
+ setStateInputValue = _useState4[1];
58
+ var _useState5 = useState(propsDefaultOptions === true),
59
+ _useState6 = _slicedToArray(_useState5, 2),
60
+ isLoading = _useState6[0],
61
+ setIsLoading = _useState6[1];
62
+ var _useState7 = useState(undefined),
63
+ _useState8 = _slicedToArray(_useState7, 2),
64
+ loadedInputValue = _useState8[0],
65
+ setLoadedInputValue = _useState8[1];
66
+ var _useState9 = useState([]),
67
+ _useState10 = _slicedToArray(_useState9, 2),
68
+ loadedOptions = _useState10[0],
69
+ setLoadedOptions = _useState10[1];
70
+ var _useState11 = useState(false),
71
+ _useState12 = _slicedToArray(_useState11, 2),
72
+ passEmptyOptions = _useState12[0],
73
+ setPassEmptyOptions = _useState12[1];
74
+ var _useState13 = useState({}),
75
+ _useState14 = _slicedToArray(_useState13, 2),
76
+ optionsCache = _useState14[0],
77
+ setOptionsCache = _useState14[1];
78
+ var _useState15 = useState(undefined),
79
+ _useState16 = _slicedToArray(_useState15, 2),
80
+ prevDefaultOptions = _useState16[0],
81
+ setPrevDefaultOptions = _useState16[1];
82
+ var _useState17 = useState(undefined),
83
+ _useState18 = _slicedToArray(_useState17, 2),
84
+ prevCacheOptions = _useState18[0],
85
+ setPrevCacheOptions = _useState18[1];
86
+ if (cacheOptions !== prevCacheOptions) {
87
+ setOptionsCache({});
88
+ setPrevCacheOptions(cacheOptions);
89
+ }
90
+ if (propsDefaultOptions !== prevDefaultOptions) {
91
+ setDefaultOptions(Array.isArray(propsDefaultOptions) ? propsDefaultOptions : undefined);
92
+ setPrevDefaultOptions(propsDefaultOptions);
93
+ }
94
+ useEffect(function () {
95
+ mounted.current = true;
96
+ return function () {
97
+ mounted.current = false;
98
+ };
99
+ }, []);
100
+ var loadOptions = useCallback(function (inputValue, callback) {
101
+ if (!propsLoadOptions) return callback();
102
+ var loader = propsLoadOptions(inputValue, callback);
103
+ if (loader && typeof loader.then === 'function') {
104
+ loader.then(callback, function () {
105
+ return callback();
106
+ });
107
+ }
108
+ }, [propsLoadOptions]);
109
+ useEffect(function () {
110
+ if (propsDefaultOptions === true) {
111
+ loadOptions(stateInputValue, function (options) {
112
+ if (!mounted.current) return;
113
+ setDefaultOptions(options || []);
114
+ setIsLoading(!!lastRequest.current);
115
+ });
116
+ }
117
+ // NOTE: this effect is designed to only run when the component mounts,
118
+ // so we don't want to include any hook dependencies
119
+ // eslint-disable-next-line react-hooks/exhaustive-deps
120
+ }, []);
121
+ var onInputChange = useCallback(function (newValue, actionMeta) {
122
+ var inputValue = handleInputChange(newValue, actionMeta, propsOnInputChange);
123
+ if (!inputValue) {
124
+ lastRequest.current = undefined;
125
+ setStateInputValue('');
126
+ setLoadedInputValue('');
127
+ setLoadedOptions([]);
128
+ setIsLoading(false);
129
+ setPassEmptyOptions(false);
130
+ return;
131
+ }
132
+ if (cacheOptions && optionsCache[inputValue]) {
133
+ setStateInputValue(inputValue);
134
+ setLoadedInputValue(inputValue);
135
+ setLoadedOptions(optionsCache[inputValue]);
136
+ setIsLoading(false);
137
+ setPassEmptyOptions(false);
138
+ } else {
139
+ var request = lastRequest.current = {};
140
+ setStateInputValue(inputValue);
141
+ setIsLoading(true);
142
+ setPassEmptyOptions(!loadedInputValue);
143
+ loadOptions(inputValue, function (options) {
144
+ if (!mounted) return;
145
+ if (request !== lastRequest.current) return;
146
+ lastRequest.current = undefined;
147
+ setIsLoading(false);
148
+ setLoadedInputValue(inputValue);
149
+ setLoadedOptions(options || []);
150
+ setPassEmptyOptions(false);
151
+ setOptionsCache(options ? _objectSpread2(_objectSpread2({}, optionsCache), {}, _defineProperty({}, inputValue, options)) : optionsCache);
152
+ });
153
+ }
154
+ }, [cacheOptions, loadOptions, loadedInputValue, optionsCache, propsOnInputChange]);
155
+ var options = passEmptyOptions ? [] : stateInputValue && loadedInputValue ? loadedOptions : defaultOptions || [];
156
+ return _objectSpread2(_objectSpread2({}, restSelectProps), {}, {
157
+ options: options,
158
+ isLoading: isLoading || propsIsLoading,
159
+ onInputChange: onInputChange,
160
+ filterOption: filterOption
161
+ });
162
+ }
163
+
164
+ var AsyncSelect = /*#__PURE__*/forwardRef(function (props, ref) {
165
+ var stateManagedProps = useAsync(props);
166
+ var selectProps = useStateManager(stateManagedProps);
167
+ return /*#__PURE__*/React.createElement(Select$1, _extends({
168
+ ref: ref
169
+ }, selectProps));
170
+ });
171
+
172
+ var AsyncCreatableSelect = /*#__PURE__*/forwardRef(function (props, ref) {
173
+ var stateManagerProps = useAsync(props);
174
+ var creatableProps = useStateManager(stateManagerProps);
175
+ var selectProps = useCreatable(creatableProps);
176
+ return /*#__PURE__*/React.createElement(Select$1, _extends({
177
+ ref: ref
178
+ }, selectProps));
179
+ });
27
180
 
28
181
  var _excluded = ["children"],
29
182
  _excluded2 = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping"];
30
183
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
31
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
184
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32
185
  var SIZES = {
33
186
  small: "small",
34
187
  medium: "medium",
@@ -40,7 +193,7 @@ var STRATEGIES = {
40
193
  };
41
194
  var Control = function Control(_ref) {
42
195
  var children = _ref.children,
43
- props = _objectWithoutProperties(_ref, _excluded);
196
+ props = _objectWithoutProperties$1(_ref, _excluded);
44
197
  var selectProps = props.selectProps,
45
198
  hasValue = props.hasValue;
46
199
  return /*#__PURE__*/React__default.createElement(components.Control, props, hasValue && selectProps.isMulti && /*#__PURE__*/React__default.createElement("span", {
@@ -48,14 +201,14 @@ var Control = function Control(_ref) {
48
201
  }, selectProps.addButtonLabel || "Add"), " ", children);
49
202
  };
50
203
  var DropdownIndicator = function DropdownIndicator(props) {
51
- return /*#__PURE__*/React__default.createElement(components.DropdownIndicator, _extends({}, props, {
52
- innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, _defineProperty({}, "data-cy", "action-select-indicator"))
204
+ return /*#__PURE__*/React__default.createElement(components.DropdownIndicator, _extends$1({}, props, {
205
+ innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, _defineProperty$1({}, "data-cy", "action-select-indicator"))
53
206
  }), /*#__PURE__*/React__default.createElement(Down, {
54
207
  size: 16
55
208
  }));
56
209
  };
57
210
  var ClearIndicator = function ClearIndicator(props) {
58
- return /*#__PURE__*/React__default.createElement(components.ClearIndicator, _extends({}, props, {
211
+ return /*#__PURE__*/React__default.createElement(components.ClearIndicator, _extends$1({}, props, {
59
212
  innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
60
213
  "data-cy": "clear-select-indicator"
61
214
  })
@@ -70,7 +223,7 @@ var MultiValueRemove = function MultiValueRemove(props) {
70
223
  };
71
224
  var CustomInput = function CustomInput(props) {
72
225
  var selectProps = props.selectProps;
73
- return /*#__PURE__*/React__default.createElement(components.Input, _extends({}, props, {
226
+ return /*#__PURE__*/React__default.createElement(components.Input, _extends$1({}, props, {
74
227
  "data-cy": selectProps ? selectProps["data-cy"] : "select-input",
75
228
  "data-testid": selectProps && selectProps["data-testid"],
76
229
  maxLength: selectProps && selectProps.maxLength
@@ -81,7 +234,7 @@ var CustomOption = function CustomOption(props) {
81
234
  useEffect(function () {
82
235
  props.isSelected && ref.current.scrollIntoView();
83
236
  }, [props.isSelected]);
84
- return /*#__PURE__*/React__default.createElement(components.Option, _extends({}, props, {
237
+ return /*#__PURE__*/React__default.createElement(components.Option, _extends$1({}, props, {
85
238
  innerRef: ref,
86
239
  innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
87
240
  "data-cy": "".concat(hyphenize(props.label), "-select-option")
@@ -90,7 +243,7 @@ var CustomOption = function CustomOption(props) {
90
243
  };
91
244
  var Placeholder = function Placeholder(props) {
92
245
  var selectProps = props.selectProps;
93
- return /*#__PURE__*/React__default.createElement(components.Placeholder, _extends({}, props, {
246
+ return /*#__PURE__*/React__default.createElement(components.Placeholder, _extends$1({}, props, {
94
247
  innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
95
248
  "data-cy": selectProps ? "".concat(hyphenize(selectProps.label), "-select-placeholder") : "select-placeholder"
96
249
  })
@@ -98,14 +251,14 @@ var Placeholder = function Placeholder(props) {
98
251
  };
99
252
  var Menu = function Menu(props) {
100
253
  var selectProps = props.selectProps;
101
- return /*#__PURE__*/React__default.createElement(components.Menu, _extends({}, props, {
254
+ return /*#__PURE__*/React__default.createElement(components.Menu, _extends$1({}, props, {
102
255
  innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
103
256
  "data-cy": selectProps ? "".concat(hyphenize(selectProps.label), "-select-menu") : "select-menu"
104
257
  })
105
258
  }));
106
259
  };
107
260
  var SingleValue = function SingleValue(props) {
108
- return /*#__PURE__*/React__default.createElement(components.SingleValue, _extends({}, props, {
261
+ return /*#__PURE__*/React__default.createElement(components.SingleValue, _extends$1({}, props, {
109
262
  innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
110
263
  "data-cy": "select-single-value"
111
264
  })
@@ -113,7 +266,7 @@ var SingleValue = function SingleValue(props) {
113
266
  };
114
267
  var ValueContainer = function ValueContainer(props) {
115
268
  var selectProps = props.selectProps;
116
- return /*#__PURE__*/React__default.createElement(components.ValueContainer, _extends({}, props, {
269
+ return /*#__PURE__*/React__default.createElement(components.ValueContainer, _extends$1({}, props, {
117
270
  innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
118
271
  name: selectProps.name,
119
272
  "data-cy": selectProps ? "".concat(hyphenize(selectProps.label), "-select-value-container") : "select-value-container"
@@ -146,8 +299,8 @@ var MenuList = function MenuList(props) {
146
299
  (_observer = observer) === null || _observer === void 0 || _observer.unobserve(loaderRef.current);
147
300
  };
148
301
  }, [hasMore]);
149
- return /*#__PURE__*/React__default.createElement(components.MenuList, _extends({}, props, {
150
- innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, _defineProperty({}, "data-testid", "menu-list"))
302
+ return /*#__PURE__*/React__default.createElement(components.MenuList, _extends$1({}, props, {
303
+ innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, _defineProperty$1({}, "data-testid", "menu-list"))
151
304
  }), props.children, hasMore && /*#__PURE__*/React__default.createElement("div", {
152
305
  className: "flex w-full items-center justify-center py-3",
153
306
  "data-testid": "loader",
@@ -179,14 +332,14 @@ var Select = function Select(_ref2) {
179
332
  componentOverrides = _ref2.components,
180
333
  _ref2$optionRemapping = _ref2.optionRemapping,
181
334
  optionRemapping = _ref2$optionRemapping === void 0 ? {} : _ref2$optionRemapping,
182
- otherProps = _objectWithoutProperties(_ref2, _excluded2);
335
+ otherProps = _objectWithoutProperties$1(_ref2, _excluded2);
183
336
  var inputId = useId(id);
184
- var Parent = SelectInput;
337
+ var Parent = StateManagedSelect;
185
338
  if (isCreateable) {
186
339
  Parent = CreatableSelect;
187
340
  }
188
341
  if (otherProps.loadOptions) {
189
- Parent = isCreateable ? AsyncCreatable : Async;
342
+ Parent = isCreateable ? AsyncCreatableSelect : AsyncSelect;
190
343
  }
191
344
  if (optionRemapping.value) {
192
345
  otherProps.getOptionValue = prop(optionRemapping.value);
@@ -231,12 +384,12 @@ var Select = function Select(_ref2) {
231
384
  className: classnames(["neeto-ui-input__wrapper", className]),
232
385
  "data-cy": "".concat(hyphenize(label), "-select-container-wrapper"),
233
386
  "data-testid": "select"
234
- }, label && /*#__PURE__*/React__default.createElement(Label, _extends({
387
+ }, label && /*#__PURE__*/React__default.createElement(Label, _extends$1({
235
388
  required: required,
236
389
  "data-cy": "".concat(hyphenize(label), "-input-label"),
237
390
  "data-testid": "select-label",
238
391
  htmlFor: inputId
239
- }, labelProps), label), /*#__PURE__*/React__default.createElement(Parent, _extends({
392
+ }, labelProps), label), /*#__PURE__*/React__default.createElement(Parent, _extends$1({
240
393
  blurInputOnSelect: false,
241
394
  classNamePrefix: "neeto-ui-react-select",
242
395
  closeMenuOnSelect: !otherProps.isMulti,
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","sources":["../src/components/Select.jsx"],"sourcesContent":["import React, { useEffect, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { _existsBy } from \"neetocist\";\nimport { Down, Close } from \"neetoicons\";\nimport PropTypes from \"prop-types\";\nimport { prop, assoc, flatten, pluck } from \"ramda\";\nimport SelectInput, { components } from \"react-select\";\nimport Async from \"react-select/async\";\nimport AsyncCreatable from \"react-select/async-creatable\";\nimport Creatable from \"react-select/creatable\";\n\nimport { useId } from \"hooks\";\nimport { hyphenize } from \"utils\";\n\nimport Label from \"./Label\";\nimport Spinner from \"./Spinner\";\n\nconst SIZES = { small: \"small\", medium: \"medium\", large: \"large\" };\n\nconst STRATEGIES = { default: \"default\", fixed: \"fixed\" };\n\nconst Control = ({ children, ...props }) => {\n const { selectProps, hasValue } = props;\n\n return (\n <components.Control {...props}>\n {/* hasValue is part of commonProps passed to custom components internally by react-select */}\n {hasValue && selectProps.isMulti && (\n <span className=\"neeto-ui-btn neeto-ui-btn--style-secondary neeto-ui-react-select__add-btn\">\n {selectProps.addButtonLabel || \"Add\"}\n </span>\n )}{\" \"}\n {children}\n </components.Control>\n );\n};\n\nconst DropdownIndicator = props => (\n <components.DropdownIndicator\n {...props}\n innerProps={{ ...props.innerProps, [\"data-cy\"]: \"action-select-indicator\" }}\n >\n <Down size={16} />\n </components.DropdownIndicator>\n);\n\nconst ClearIndicator = props => (\n <components.ClearIndicator\n {...props}\n innerProps={{ ...props.innerProps, \"data-cy\": \"clear-select-indicator\" }}\n >\n <Close size={16} />\n </components.ClearIndicator>\n);\n\nconst MultiValueRemove = props => (\n <components.MultiValueRemove {...props}>\n <Close size={16} />\n </components.MultiValueRemove>\n);\n\nconst CustomInput = props => {\n const { selectProps } = props;\n\n return (\n <components.Input\n {...props}\n data-cy={selectProps ? selectProps[\"data-cy\"] : \"select-input\"}\n data-testid={selectProps && selectProps[\"data-testid\"]}\n maxLength={selectProps && selectProps.maxLength}\n />\n );\n};\n\nconst CustomOption = props => {\n const ref = useRef();\n\n useEffect(() => {\n props.isSelected && ref.current.scrollIntoView();\n }, [props.isSelected]);\n\n return (\n <components.Option\n {...props}\n innerRef={ref}\n innerProps={{\n ...props.innerProps,\n \"data-cy\": `${hyphenize(props.label)}-select-option`,\n }}\n />\n );\n};\n\nconst Placeholder = props => {\n const { selectProps } = props;\n\n return (\n <components.Placeholder\n {...props}\n innerProps={{\n ...props.innerProps,\n \"data-cy\": selectProps\n ? `${hyphenize(selectProps.label)}-select-placeholder`\n : \"select-placeholder\",\n }}\n />\n );\n};\n\nconst Menu = props => {\n const { selectProps } = props;\n\n return (\n <components.Menu\n {...props}\n innerProps={{\n ...props.innerProps,\n \"data-cy\": selectProps\n ? `${hyphenize(selectProps.label)}-select-menu`\n : \"select-menu\",\n }}\n />\n );\n};\n\nconst SingleValue = props => (\n <components.SingleValue\n {...props}\n innerProps={{ ...props.innerProps, \"data-cy\": \"select-single-value\" }}\n />\n);\n\nconst ValueContainer = props => {\n const { selectProps } = props;\n\n return (\n <components.ValueContainer\n {...props}\n innerProps={{\n ...props.innerProps,\n name: selectProps.name,\n \"data-cy\": selectProps\n ? `${hyphenize(selectProps.label)}-select-value-container`\n : \"select-value-container\",\n }}\n />\n );\n};\n\nconst MenuList = props => {\n const { fetchMore, totalOptionsCount, isAsyncLoadOptionEnabled, options } =\n props.selectProps;\n\n const hasMore =\n isAsyncLoadOptionEnabled && totalOptionsCount > options.length;\n\n const loaderRef = useRef();\n\n useEffect(() => {\n let observer = null;\n\n if (loaderRef.current && isAsyncLoadOptionEnabled) {\n observer = new IntersectionObserver(\n entries => entries[0].isIntersecting && fetchMore(),\n { root: null, rootMargin: \"0px\", threshold: 0.1 }\n );\n observer.observe(loaderRef.current);\n }\n\n return () => {\n if (!(loaderRef.current && isAsyncLoadOptionEnabled)) return;\n observer?.unobserve(loaderRef.current);\n };\n }, [hasMore]);\n\n return (\n <components.MenuList\n {...props}\n innerProps={{ ...props.innerProps, [\"data-testid\"]: \"menu-list\" }}\n >\n {props.children}\n {hasMore && (\n <div\n className=\"flex w-full items-center justify-center py-3\"\n data-testid=\"loader\"\n ref={loaderRef}\n >\n <Spinner />\n </div>\n )}\n </components.MenuList>\n );\n};\n\nconst Select = ({\n size = SIZES.medium,\n label = \"\",\n required = false,\n error = \"\",\n helpText = \"\",\n className = \"\",\n innerRef,\n isCreateable = false,\n strategy = STRATEGIES.default,\n id,\n labelProps,\n value,\n defaultValue,\n components: componentOverrides,\n optionRemapping = {},\n ...otherProps\n}) => {\n const inputId = useId(id);\n\n let Parent = SelectInput;\n\n if (isCreateable) {\n Parent = Creatable;\n }\n\n if (otherProps.loadOptions) {\n Parent = isCreateable ? AsyncCreatable : Async;\n }\n\n if (optionRemapping.value) {\n otherProps.getOptionValue = prop(optionRemapping.value);\n }\n\n if (optionRemapping.label) {\n otherProps.getOptionLabel = prop(optionRemapping.label);\n }\n\n const portalProps = strategy === STRATEGIES.fixed && {\n menuPortalTarget: document.body,\n styles: { menuPortal: assoc(\"zIndex\", 999999) },\n menuPosition: \"fixed\",\n };\n\n const { options, defaultOptions, getOptionValue } = otherProps;\n\n const getRealOptionValue = option => {\n if (typeof getOptionValue !== \"function\") {\n return option.value;\n }\n\n return getOptionValue(option);\n };\n\n const findInOptions = value => {\n if (!value || otherProps.isMulti) {\n return value;\n }\n\n let currentOptions = options || defaultOptions;\n if (Array.isArray(value)) value = value[0];\n\n const isGrouped = _existsBy({ options: Array.isArray }, currentOptions);\n\n if (isGrouped) {\n currentOptions = flatten(pluck(\"options\", currentOptions));\n }\n\n return currentOptions?.filter(\n opt => getRealOptionValue(opt) === getRealOptionValue(value)\n );\n };\n\n return (\n <div\n className={classnames([\"neeto-ui-input__wrapper\", className])}\n data-cy={`${hyphenize(label)}-select-container-wrapper`}\n data-testid=\"select\"\n >\n {label && (\n <Label\n {...{ required }}\n data-cy={`${hyphenize(label)}-input-label`}\n data-testid=\"select-label\"\n htmlFor={inputId}\n {...labelProps}\n >\n {label}\n </Label>\n )}\n <Parent\n blurInputOnSelect={false}\n classNamePrefix=\"neeto-ui-react-select\"\n closeMenuOnSelect={!otherProps.isMulti}\n data-cy={`${hyphenize(label)}-select-container`}\n defaultValue={findInOptions(defaultValue)}\n ref={innerRef}\n value={findInOptions(value)}\n className={classnames([\"neeto-ui-react-select__container\"], {\n \"neeto-ui-react-select__container--error\": !!error,\n \"neeto-ui-react-select__container--small\": size === SIZES.small,\n \"neeto-ui-react-select__container--medium\": size === SIZES.medium,\n \"neeto-ui-react-select__container--large\": size === SIZES.large,\n })}\n components={{\n Input: CustomInput,\n Option: CustomOption,\n DropdownIndicator,\n ClearIndicator,\n MultiValueRemove,\n Placeholder,\n Menu,\n ValueContainer,\n MenuList,\n SingleValue,\n Control,\n ...componentOverrides,\n }}\n {...{ inputId, label, ...portalProps, ...otherProps }}\n />\n {!!error && (\n <p\n className=\"neeto-ui-input__error\"\n data-cy={`${hyphenize(label)}-select-error`}\n data-testid=\"select-error\"\n >\n {error}\n </p>\n )}\n {helpText && (\n <p\n className=\"neeto-ui-input__help-text\"\n data-cy={`${hyphenize(label)}-select-help-text`}\n data-testid=\"select-help-text\"\n >\n {helpText}\n </p>\n )}\n </div>\n );\n};\n\nSelect.propTypes = {\n /**\n * To specify the default selected option.\n */\n defaultValue: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\n /**\n * To specify the placeholder text.\n */\n placeholder: PropTypes.string,\n /**\n * To specify whether the Select input is disabled.\n */\n isDisabled: PropTypes.bool,\n /**\n * To specify whether the Select input is clearable.\n */\n isClearable: PropTypes.bool,\n /**\n * To specify whether the Select input is searchable.\n */\n isSearchable: PropTypes.bool,\n /**\n * To specify the name for the Select input.\n */\n name: PropTypes.string,\n /**\n * The `options` prop expects an array of objects of the format `{ label: \"\", value: \"\" }`.\n *\n * If your array has different keys, you can specify them using this prop.\n *\n * Eg: `{ label: \"name\", value: \"id\" }` if `options` is an array of `{ name: \"\", id: \"\" }` objects.\n */\n optionRemapping: PropTypes.shape({\n label: PropTypes.string,\n value: PropTypes.string,\n }),\n /**\n * To provide the options for the Select input.\n */\n options: PropTypes.array,\n /**\n * To specify the size of the Select component.\n */\n size: PropTypes.oneOf(Object.values(SIZES)),\n /**\n * To specify positioning strategy for Select component.\n */\n strategy: PropTypes.oneOf(Object.values(STRATEGIES)),\n /**\n * To specify the text to be displayed above the Select component.\n */\n label: PropTypes.string,\n /**\n * To specify the label props to be passed to the Label component.\n */\n labelProps: PropTypes.object,\n /**\n * To specify whether the Select field is required or not.\n */\n required: PropTypes.bool,\n /**\n * To specify the error message to be displayed in the Select component.\n */\n error: PropTypes.string,\n /**\n * To specify the help text that appears below the Select component.\n */\n helpText: PropTypes.string,\n /**\n * To specify external classnames as overrides to the Select component.\n */\n className: PropTypes.string,\n /**\n * To specify whether the Select component is a creatable Select component.\n */\n isCreateable: PropTypes.bool,\n /**\n * To specify the ref to the Select component.\n */\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n /**\n * Callback to load more options\n */\n fetchMore: PropTypes.func,\n /**\n * To specify if the total number of option available when lazy option load is enabled.\n */\n totalOptionsCount: PropTypes.number,\n /**\n * To specify if async options loading is enabled\n */\n isAsyncLoadOptionEnabled: PropTypes.bool,\n /**\n * To specify the label for the button shown in multi select\n */\n addButtonLabel: PropTypes.string,\n};\n\nexport default Select;\n"],"names":["SIZES","small","medium","large","STRATEGIES","fixed","Control","_ref","children","props","_objectWithoutProperties","_excluded","selectProps","hasValue","React","createElement","components","isMulti","className","addButtonLabel","DropdownIndicator","_extends","innerProps","_objectSpread","_defineProperty","Down","size","ClearIndicator","Close","MultiValueRemove","CustomInput","Input","maxLength","CustomOption","ref","useRef","useEffect","isSelected","current","scrollIntoView","Option","innerRef","concat","hyphenize","label","Placeholder","Menu","SingleValue","ValueContainer","name","MenuList","_props$selectProps","fetchMore","totalOptionsCount","isAsyncLoadOptionEnabled","options","hasMore","length","loaderRef","observer","IntersectionObserver","entries","isIntersecting","root","rootMargin","threshold","observe","_observer","unobserve","Spinner","Select","_ref2","_ref2$size","_ref2$label","_ref2$required","required","_ref2$error","error","_ref2$helpText","helpText","_ref2$className","_ref2$isCreateable","isCreateable","_ref2$strategy","strategy","id","labelProps","value","defaultValue","componentOverrides","_ref2$optionRemapping","optionRemapping","otherProps","_excluded2","inputId","useId","Parent","SelectInput","Creatable","loadOptions","AsyncCreatable","Async","getOptionValue","prop","getOptionLabel","portalProps","menuPortalTarget","document","body","styles","menuPortal","assoc","menuPosition","defaultOptions","getRealOptionValue","option","findInOptions","_currentOptions","currentOptions","Array","isArray","isGrouped","_existsBy","flatten","pluck","filter","opt","classnames","Label","htmlFor","blurInputOnSelect","classNamePrefix","closeMenuOnSelect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,IAAMA,KAAK,GAAG;AAAEC,EAAAA,KAAK,EAAE,OAAO;AAAEC,EAAAA,MAAM,EAAE,QAAQ;AAAEC,EAAAA,KAAK,EAAE,OAAA;AAAQ,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aAAA,CAAA;AACIuE,IAAAA,OAAO,EAAPA,OAAO;AAAElD,IAAAA,KAAK,EAALA,KAAAA;GAAU6D,EAAAA,WAAW,CAAKb,EAAAA,UAAU,CACnD,CAAA,CAAA,EACD,CAAC,CAACf,KAAK,iBACN/D,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEG,IAAAA,SAAS,EAAC,uBAAuB;AACjC,IAAA,SAAA,EAAA,EAAA,CAAAwB,MAAA,CAAYC,SAAS,CAACC,KAAK,CAAC,EAAgB,eAAA,CAAA;IAC5C,aAAY,EAAA,cAAA;AAAc,GAAA,EAEzBiC,KAAK,CAET,EACAE,QAAQ,iBACPjE,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEG,IAAAA,SAAS,EAAC,2BAA2B;AACrC,IAAA,SAAA,EAAA,EAAA,CAAAwB,MAAA,CAAYC,SAAS,CAACC,KAAK,CAAC,EAAoB,mBAAA,CAAA;IAChD,aAAY,EAAA,kBAAA;GAEXmC,EAAAA,QAAQ,CAEZ,CACG,CAAA;AAEV;;;;"}
1
+ {"version":3,"file":"Select.js","sources":["../node_modules/react-select/dist/react-select.esm.js","../node_modules/react-select/dist/useAsync-5d308f11.esm.js","../node_modules/react-select/async/dist/react-select-async.esm.js","../node_modules/react-select/async-creatable/dist/react-select-async-creatable.esm.js","../src/components/Select.jsx"],"sourcesContent":["import { u as useStateManager } from './useStateManager-7e1e8489.esm.js';\nexport { u as useStateManager } from './useStateManager-7e1e8489.esm.js';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport * as React from 'react';\nimport { forwardRef, useMemo } from 'react';\nimport { S as Select } from './Select-6efcc53a.esm.js';\nexport { c as createFilter, d as defaultTheme, m as mergeStyles } from './Select-6efcc53a.esm.js';\nimport { CacheProvider } from '@emotion/react';\nimport createCache from '@emotion/cache';\nexport { c as components } from './index-9f7dc477.esm.js';\nimport '@babel/runtime/helpers/objectSpread2';\nimport '@babel/runtime/helpers/slicedToArray';\nimport '@babel/runtime/helpers/objectWithoutProperties';\nimport '@babel/runtime/helpers/classCallCheck';\nimport '@babel/runtime/helpers/createClass';\nimport '@babel/runtime/helpers/inherits';\nimport '@babel/runtime/helpers/createSuper';\nimport '@babel/runtime/helpers/toConsumableArray';\nimport 'memoize-one';\nimport '@babel/runtime/helpers/taggedTemplateLiteral';\nimport '@babel/runtime/helpers/typeof';\nimport '@babel/runtime/helpers/defineProperty';\nimport 'react-dom';\nimport '@floating-ui/dom';\nimport 'use-isomorphic-layout-effect';\n\nvar StateManagedSelect = /*#__PURE__*/forwardRef(function (props, ref) {\n var baseSelectProps = useStateManager(props);\n return /*#__PURE__*/React.createElement(Select, _extends({\n ref: ref\n }, baseSelectProps));\n});\n\nvar NonceProvider = (function (_ref) {\n var nonce = _ref.nonce,\n children = _ref.children,\n cacheKey = _ref.cacheKey;\n var emotionCache = useMemo(function () {\n return createCache({\n key: cacheKey,\n nonce: nonce\n });\n }, [cacheKey, nonce]);\n return /*#__PURE__*/React.createElement(CacheProvider, {\n value: emotionCache\n }, children);\n});\n\nexport default StateManagedSelect;\nexport { NonceProvider };\n","import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';\nimport _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport { useRef, useState, useEffect, useCallback } from 'react';\nimport { L as handleInputChange } from './index-9f7dc477.esm.js';\n\nvar _excluded = [\"defaultOptions\", \"cacheOptions\", \"loadOptions\", \"options\", \"isLoading\", \"onInputChange\", \"filterOption\"];\nfunction useAsync(_ref) {\n var _ref$defaultOptions = _ref.defaultOptions,\n propsDefaultOptions = _ref$defaultOptions === void 0 ? false : _ref$defaultOptions,\n _ref$cacheOptions = _ref.cacheOptions,\n cacheOptions = _ref$cacheOptions === void 0 ? false : _ref$cacheOptions,\n propsLoadOptions = _ref.loadOptions;\n _ref.options;\n var _ref$isLoading = _ref.isLoading,\n propsIsLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,\n propsOnInputChange = _ref.onInputChange,\n _ref$filterOption = _ref.filterOption,\n filterOption = _ref$filterOption === void 0 ? null : _ref$filterOption,\n restSelectProps = _objectWithoutProperties(_ref, _excluded);\n var propsInputValue = restSelectProps.inputValue;\n var lastRequest = useRef(undefined);\n var mounted = useRef(false);\n var _useState = useState(Array.isArray(propsDefaultOptions) ? propsDefaultOptions : undefined),\n _useState2 = _slicedToArray(_useState, 2),\n defaultOptions = _useState2[0],\n setDefaultOptions = _useState2[1];\n var _useState3 = useState(typeof propsInputValue !== 'undefined' ? propsInputValue : ''),\n _useState4 = _slicedToArray(_useState3, 2),\n stateInputValue = _useState4[0],\n setStateInputValue = _useState4[1];\n var _useState5 = useState(propsDefaultOptions === true),\n _useState6 = _slicedToArray(_useState5, 2),\n isLoading = _useState6[0],\n setIsLoading = _useState6[1];\n var _useState7 = useState(undefined),\n _useState8 = _slicedToArray(_useState7, 2),\n loadedInputValue = _useState8[0],\n setLoadedInputValue = _useState8[1];\n var _useState9 = useState([]),\n _useState10 = _slicedToArray(_useState9, 2),\n loadedOptions = _useState10[0],\n setLoadedOptions = _useState10[1];\n var _useState11 = useState(false),\n _useState12 = _slicedToArray(_useState11, 2),\n passEmptyOptions = _useState12[0],\n setPassEmptyOptions = _useState12[1];\n var _useState13 = useState({}),\n _useState14 = _slicedToArray(_useState13, 2),\n optionsCache = _useState14[0],\n setOptionsCache = _useState14[1];\n var _useState15 = useState(undefined),\n _useState16 = _slicedToArray(_useState15, 2),\n prevDefaultOptions = _useState16[0],\n setPrevDefaultOptions = _useState16[1];\n var _useState17 = useState(undefined),\n _useState18 = _slicedToArray(_useState17, 2),\n prevCacheOptions = _useState18[0],\n setPrevCacheOptions = _useState18[1];\n if (cacheOptions !== prevCacheOptions) {\n setOptionsCache({});\n setPrevCacheOptions(cacheOptions);\n }\n if (propsDefaultOptions !== prevDefaultOptions) {\n setDefaultOptions(Array.isArray(propsDefaultOptions) ? propsDefaultOptions : undefined);\n setPrevDefaultOptions(propsDefaultOptions);\n }\n useEffect(function () {\n mounted.current = true;\n return function () {\n mounted.current = false;\n };\n }, []);\n var loadOptions = useCallback(function (inputValue, callback) {\n if (!propsLoadOptions) return callback();\n var loader = propsLoadOptions(inputValue, callback);\n if (loader && typeof loader.then === 'function') {\n loader.then(callback, function () {\n return callback();\n });\n }\n }, [propsLoadOptions]);\n useEffect(function () {\n if (propsDefaultOptions === true) {\n loadOptions(stateInputValue, function (options) {\n if (!mounted.current) return;\n setDefaultOptions(options || []);\n setIsLoading(!!lastRequest.current);\n });\n }\n // NOTE: this effect is designed to only run when the component mounts,\n // so we don't want to include any hook dependencies\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n var onInputChange = useCallback(function (newValue, actionMeta) {\n var inputValue = handleInputChange(newValue, actionMeta, propsOnInputChange);\n if (!inputValue) {\n lastRequest.current = undefined;\n setStateInputValue('');\n setLoadedInputValue('');\n setLoadedOptions([]);\n setIsLoading(false);\n setPassEmptyOptions(false);\n return;\n }\n if (cacheOptions && optionsCache[inputValue]) {\n setStateInputValue(inputValue);\n setLoadedInputValue(inputValue);\n setLoadedOptions(optionsCache[inputValue]);\n setIsLoading(false);\n setPassEmptyOptions(false);\n } else {\n var request = lastRequest.current = {};\n setStateInputValue(inputValue);\n setIsLoading(true);\n setPassEmptyOptions(!loadedInputValue);\n loadOptions(inputValue, function (options) {\n if (!mounted) return;\n if (request !== lastRequest.current) return;\n lastRequest.current = undefined;\n setIsLoading(false);\n setLoadedInputValue(inputValue);\n setLoadedOptions(options || []);\n setPassEmptyOptions(false);\n setOptionsCache(options ? _objectSpread(_objectSpread({}, optionsCache), {}, _defineProperty({}, inputValue, options)) : optionsCache);\n });\n }\n }, [cacheOptions, loadOptions, loadedInputValue, optionsCache, propsOnInputChange]);\n var options = passEmptyOptions ? [] : stateInputValue && loadedInputValue ? loadedOptions : defaultOptions || [];\n return _objectSpread(_objectSpread({}, restSelectProps), {}, {\n options: options,\n isLoading: isLoading || propsIsLoading,\n onInputChange: onInputChange,\n filterOption: filterOption\n });\n}\n\nexport { useAsync as u };\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport * as React from 'react';\nimport { forwardRef } from 'react';\nimport { S as Select } from '../../dist/Select-6efcc53a.esm.js';\nimport { u as useStateManager } from '../../dist/useStateManager-7e1e8489.esm.js';\nimport { u as useAsync } from '../../dist/useAsync-5d308f11.esm.js';\nexport { u as useAsync } from '../../dist/useAsync-5d308f11.esm.js';\nimport '@babel/runtime/helpers/objectSpread2';\nimport '@babel/runtime/helpers/classCallCheck';\nimport '@babel/runtime/helpers/createClass';\nimport '@babel/runtime/helpers/inherits';\nimport '@babel/runtime/helpers/createSuper';\nimport '@babel/runtime/helpers/toConsumableArray';\nimport '../../dist/index-9f7dc477.esm.js';\nimport '@emotion/react';\nimport '@babel/runtime/helpers/taggedTemplateLiteral';\nimport '@babel/runtime/helpers/objectWithoutProperties';\nimport '@babel/runtime/helpers/slicedToArray';\nimport '@babel/runtime/helpers/typeof';\nimport '@babel/runtime/helpers/defineProperty';\nimport 'react-dom';\nimport '@floating-ui/dom';\nimport 'use-isomorphic-layout-effect';\nimport 'memoize-one';\n\nvar AsyncSelect = /*#__PURE__*/forwardRef(function (props, ref) {\n var stateManagedProps = useAsync(props);\n var selectProps = useStateManager(stateManagedProps);\n return /*#__PURE__*/React.createElement(Select, _extends({\n ref: ref\n }, selectProps));\n});\n\nexport default AsyncSelect;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport * as React from 'react';\nimport { forwardRef } from 'react';\nimport { S as Select } from '../../dist/Select-6efcc53a.esm.js';\nimport { u as useAsync } from '../../dist/useAsync-5d308f11.esm.js';\nimport { u as useStateManager } from '../../dist/useStateManager-7e1e8489.esm.js';\nimport { u as useCreatable } from '../../dist/useCreatable-ff70b556.esm.js';\nimport '@babel/runtime/helpers/objectSpread2';\nimport '@babel/runtime/helpers/classCallCheck';\nimport '@babel/runtime/helpers/createClass';\nimport '@babel/runtime/helpers/inherits';\nimport '@babel/runtime/helpers/createSuper';\nimport '@babel/runtime/helpers/toConsumableArray';\nimport '../../dist/index-9f7dc477.esm.js';\nimport '@emotion/react';\nimport '@babel/runtime/helpers/taggedTemplateLiteral';\nimport '@babel/runtime/helpers/objectWithoutProperties';\nimport '@babel/runtime/helpers/slicedToArray';\nimport '@babel/runtime/helpers/typeof';\nimport '@babel/runtime/helpers/defineProperty';\nimport 'react-dom';\nimport '@floating-ui/dom';\nimport 'use-isomorphic-layout-effect';\nimport 'memoize-one';\n\nvar AsyncCreatableSelect = /*#__PURE__*/forwardRef(function (props, ref) {\n var stateManagerProps = useAsync(props);\n var creatableProps = useStateManager(stateManagerProps);\n var selectProps = useCreatable(creatableProps);\n return /*#__PURE__*/React.createElement(Select, _extends({\n ref: ref\n }, selectProps));\n});\n\nexport default AsyncCreatableSelect;\n","import React, { useEffect, useRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { _existsBy } from \"neetocist\";\nimport { Down, Close } from \"neetoicons\";\nimport PropTypes from \"prop-types\";\nimport { prop, assoc, flatten, pluck } from \"ramda\";\nimport SelectInput, { components } from \"react-select\";\nimport Async from \"react-select/async\";\nimport AsyncCreatable from \"react-select/async-creatable\";\nimport Creatable from \"react-select/creatable\";\n\nimport { useId } from \"hooks\";\nimport { hyphenize } from \"utils\";\n\nimport Label from \"./Label\";\nimport Spinner from \"./Spinner\";\n\nconst SIZES = { small: \"small\", medium: \"medium\", large: \"large\" };\n\nconst STRATEGIES = { default: \"default\", fixed: \"fixed\" };\n\nconst Control = ({ children, ...props }) => {\n const { selectProps, hasValue } = props;\n\n return (\n <components.Control {...props}>\n {/* hasValue is part of commonProps passed to custom components internally by react-select */}\n {hasValue && selectProps.isMulti && (\n <span className=\"neeto-ui-btn neeto-ui-btn--style-secondary neeto-ui-react-select__add-btn\">\n {selectProps.addButtonLabel || \"Add\"}\n </span>\n )}{\" \"}\n {children}\n </components.Control>\n );\n};\n\nconst DropdownIndicator = props => (\n <components.DropdownIndicator\n {...props}\n innerProps={{ ...props.innerProps, [\"data-cy\"]: \"action-select-indicator\" }}\n >\n <Down size={16} />\n </components.DropdownIndicator>\n);\n\nconst ClearIndicator = props => (\n <components.ClearIndicator\n {...props}\n innerProps={{ ...props.innerProps, \"data-cy\": \"clear-select-indicator\" }}\n >\n <Close size={16} />\n </components.ClearIndicator>\n);\n\nconst MultiValueRemove = props => (\n <components.MultiValueRemove {...props}>\n <Close size={16} />\n </components.MultiValueRemove>\n);\n\nconst CustomInput = props => {\n const { selectProps } = props;\n\n return (\n <components.Input\n {...props}\n data-cy={selectProps ? selectProps[\"data-cy\"] : \"select-input\"}\n data-testid={selectProps && selectProps[\"data-testid\"]}\n maxLength={selectProps && selectProps.maxLength}\n />\n );\n};\n\nconst CustomOption = props => {\n const ref = useRef();\n\n useEffect(() => {\n props.isSelected && ref.current.scrollIntoView();\n }, [props.isSelected]);\n\n return (\n <components.Option\n {...props}\n innerRef={ref}\n innerProps={{\n ...props.innerProps,\n \"data-cy\": `${hyphenize(props.label)}-select-option`,\n }}\n />\n );\n};\n\nconst Placeholder = props => {\n const { selectProps } = props;\n\n return (\n <components.Placeholder\n {...props}\n innerProps={{\n ...props.innerProps,\n \"data-cy\": selectProps\n ? `${hyphenize(selectProps.label)}-select-placeholder`\n : \"select-placeholder\",\n }}\n />\n );\n};\n\nconst Menu = props => {\n const { selectProps } = props;\n\n return (\n <components.Menu\n {...props}\n innerProps={{\n ...props.innerProps,\n \"data-cy\": selectProps\n ? `${hyphenize(selectProps.label)}-select-menu`\n : \"select-menu\",\n }}\n />\n );\n};\n\nconst SingleValue = props => (\n <components.SingleValue\n {...props}\n innerProps={{ ...props.innerProps, \"data-cy\": \"select-single-value\" }}\n />\n);\n\nconst ValueContainer = props => {\n const { selectProps } = props;\n\n return (\n <components.ValueContainer\n {...props}\n innerProps={{\n ...props.innerProps,\n name: selectProps.name,\n \"data-cy\": selectProps\n ? `${hyphenize(selectProps.label)}-select-value-container`\n : \"select-value-container\",\n }}\n />\n );\n};\n\nconst MenuList = props => {\n const { fetchMore, totalOptionsCount, isAsyncLoadOptionEnabled, options } =\n props.selectProps;\n\n const hasMore =\n isAsyncLoadOptionEnabled && totalOptionsCount > options.length;\n\n const loaderRef = useRef();\n\n useEffect(() => {\n let observer = null;\n\n if (loaderRef.current && isAsyncLoadOptionEnabled) {\n observer = new IntersectionObserver(\n entries => entries[0].isIntersecting && fetchMore(),\n { root: null, rootMargin: \"0px\", threshold: 0.1 }\n );\n observer.observe(loaderRef.current);\n }\n\n return () => {\n if (!(loaderRef.current && isAsyncLoadOptionEnabled)) return;\n observer?.unobserve(loaderRef.current);\n };\n }, [hasMore]);\n\n return (\n <components.MenuList\n {...props}\n innerProps={{ ...props.innerProps, [\"data-testid\"]: \"menu-list\" }}\n >\n {props.children}\n {hasMore && (\n <div\n className=\"flex w-full items-center justify-center py-3\"\n data-testid=\"loader\"\n ref={loaderRef}\n >\n <Spinner />\n </div>\n )}\n </components.MenuList>\n );\n};\n\nconst Select = ({\n size = SIZES.medium,\n label = \"\",\n required = false,\n error = \"\",\n helpText = \"\",\n className = \"\",\n innerRef,\n isCreateable = false,\n strategy = STRATEGIES.default,\n id,\n labelProps,\n value,\n defaultValue,\n components: componentOverrides,\n optionRemapping = {},\n ...otherProps\n}) => {\n const inputId = useId(id);\n\n let Parent = SelectInput;\n\n if (isCreateable) {\n Parent = Creatable;\n }\n\n if (otherProps.loadOptions) {\n Parent = isCreateable ? AsyncCreatable : Async;\n }\n\n if (optionRemapping.value) {\n otherProps.getOptionValue = prop(optionRemapping.value);\n }\n\n if (optionRemapping.label) {\n otherProps.getOptionLabel = prop(optionRemapping.label);\n }\n\n const portalProps = strategy === STRATEGIES.fixed && {\n menuPortalTarget: document.body,\n styles: { menuPortal: assoc(\"zIndex\", 999999) },\n menuPosition: \"fixed\",\n };\n\n const { options, defaultOptions, getOptionValue } = otherProps;\n\n const getRealOptionValue = option => {\n if (typeof getOptionValue !== \"function\") {\n return option.value;\n }\n\n return getOptionValue(option);\n };\n\n const findInOptions = value => {\n if (!value || otherProps.isMulti) {\n return value;\n }\n\n let currentOptions = options || defaultOptions;\n if (Array.isArray(value)) value = value[0];\n\n const isGrouped = _existsBy({ options: Array.isArray }, currentOptions);\n\n if (isGrouped) {\n currentOptions = flatten(pluck(\"options\", currentOptions));\n }\n\n return currentOptions?.filter(\n opt => getRealOptionValue(opt) === getRealOptionValue(value)\n );\n };\n\n return (\n <div\n className={classnames([\"neeto-ui-input__wrapper\", className])}\n data-cy={`${hyphenize(label)}-select-container-wrapper`}\n data-testid=\"select\"\n >\n {label && (\n <Label\n {...{ required }}\n data-cy={`${hyphenize(label)}-input-label`}\n data-testid=\"select-label\"\n htmlFor={inputId}\n {...labelProps}\n >\n {label}\n </Label>\n )}\n <Parent\n blurInputOnSelect={false}\n classNamePrefix=\"neeto-ui-react-select\"\n closeMenuOnSelect={!otherProps.isMulti}\n data-cy={`${hyphenize(label)}-select-container`}\n defaultValue={findInOptions(defaultValue)}\n ref={innerRef}\n value={findInOptions(value)}\n className={classnames([\"neeto-ui-react-select__container\"], {\n \"neeto-ui-react-select__container--error\": !!error,\n \"neeto-ui-react-select__container--small\": size === SIZES.small,\n \"neeto-ui-react-select__container--medium\": size === SIZES.medium,\n \"neeto-ui-react-select__container--large\": size === SIZES.large,\n })}\n components={{\n Input: CustomInput,\n Option: CustomOption,\n DropdownIndicator,\n ClearIndicator,\n MultiValueRemove,\n Placeholder,\n Menu,\n ValueContainer,\n MenuList,\n SingleValue,\n Control,\n ...componentOverrides,\n }}\n {...{ inputId, label, ...portalProps, ...otherProps }}\n />\n {!!error && (\n <p\n className=\"neeto-ui-input__error\"\n data-cy={`${hyphenize(label)}-select-error`}\n data-testid=\"select-error\"\n >\n {error}\n </p>\n )}\n {helpText && (\n <p\n className=\"neeto-ui-input__help-text\"\n data-cy={`${hyphenize(label)}-select-help-text`}\n data-testid=\"select-help-text\"\n >\n {helpText}\n </p>\n )}\n </div>\n );\n};\n\nSelect.propTypes = {\n /**\n * To specify the default selected option.\n */\n defaultValue: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),\n /**\n * To specify the placeholder text.\n */\n placeholder: PropTypes.string,\n /**\n * To specify whether the Select input is disabled.\n */\n isDisabled: PropTypes.bool,\n /**\n * To specify whether the Select input is clearable.\n */\n isClearable: PropTypes.bool,\n /**\n * To specify whether the Select input is searchable.\n */\n isSearchable: PropTypes.bool,\n /**\n * To specify the name for the Select input.\n */\n name: PropTypes.string,\n /**\n * The `options` prop expects an array of objects of the format `{ label: \"\", value: \"\" }`.\n *\n * If your array has different keys, you can specify them using this prop.\n *\n * Eg: `{ label: \"name\", value: \"id\" }` if `options` is an array of `{ name: \"\", id: \"\" }` objects.\n */\n optionRemapping: PropTypes.shape({\n label: PropTypes.string,\n value: PropTypes.string,\n }),\n /**\n * To provide the options for the Select input.\n */\n options: PropTypes.array,\n /**\n * To specify the size of the Select component.\n */\n size: PropTypes.oneOf(Object.values(SIZES)),\n /**\n * To specify positioning strategy for Select component.\n */\n strategy: PropTypes.oneOf(Object.values(STRATEGIES)),\n /**\n * To specify the text to be displayed above the Select component.\n */\n label: PropTypes.string,\n /**\n * To specify the label props to be passed to the Label component.\n */\n labelProps: PropTypes.object,\n /**\n * To specify whether the Select field is required or not.\n */\n required: PropTypes.bool,\n /**\n * To specify the error message to be displayed in the Select component.\n */\n error: PropTypes.string,\n /**\n * To specify the help text that appears below the Select component.\n */\n helpText: PropTypes.string,\n /**\n * To specify external classnames as overrides to the Select component.\n */\n className: PropTypes.string,\n /**\n * To specify whether the Select component is a creatable Select component.\n */\n isCreateable: PropTypes.bool,\n /**\n * To specify the ref to the Select component.\n */\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n /**\n * Callback to load more options\n */\n fetchMore: PropTypes.func,\n /**\n * To specify if the total number of option available when lazy option load is enabled.\n */\n totalOptionsCount: PropTypes.number,\n /**\n * To specify if async options loading is enabled\n */\n isAsyncLoadOptionEnabled: PropTypes.bool,\n /**\n * To specify the label for the button shown in multi select\n */\n addButtonLabel: PropTypes.string,\n};\n\nexport default Select;\n"],"names":["Select","_excluded","_objectSpread","SIZES","small","medium","large","STRATEGIES","fixed","Control","_ref","children","props","_objectWithoutProperties","selectProps","hasValue","React","createElement","components","isMulti","className","addButtonLabel","DropdownIndicator","_extends","innerProps","_defineProperty","Down","size","ClearIndicator","Close","MultiValueRemove","CustomInput","Input","maxLength","CustomOption","ref","useRef","useEffect","isSelected","current","scrollIntoView","Option","innerRef","concat","hyphenize","label","Placeholder","Menu","SingleValue","ValueContainer","name","MenuList","_props$selectProps","fetchMore","totalOptionsCount","isAsyncLoadOptionEnabled","options","hasMore","length","loaderRef","observer","IntersectionObserver","entries","isIntersecting","root","rootMargin","threshold","observe","_observer","unobserve","Spinner","_ref2","_ref2$size","_ref2$label","_ref2$required","required","_ref2$error","error","_ref2$helpText","helpText","_ref2$className","_ref2$isCreateable","isCreateable","_ref2$strategy","strategy","id","labelProps","value","defaultValue","componentOverrides","_ref2$optionRemapping","optionRemapping","otherProps","_excluded2","inputId","useId","Parent","SelectInput","Creatable","loadOptions","AsyncCreatable","Async","getOptionValue","prop","getOptionLabel","portalProps","menuPortalTarget","document","body","styles","menuPortal","assoc","menuPosition","defaultOptions","getRealOptionValue","option","findInOptions","_currentOptions","currentOptions","Array","isArray","isGrouped","_existsBy","flatten","pluck","filter","opt","classnames","Label","htmlFor","blurInputOnSelect","classNamePrefix","closeMenuOnSelect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,IAAI,kBAAkB,gBAAgB,UAAU,CAAC,UAAU,KAAK,EAAE,GAAG,EAAE;AACvE,EAAE,IAAI,eAAe,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAC/C,EAAE,oBAAoB,KAAK,CAAC,aAAa,CAACA,QAAM,EAAE,QAAQ,CAAC;AAC3D,IAAI,GAAG,EAAE,GAAG;AACZ,GAAG,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AgB;AAChBgB,MAAAA,WAAW,EAAXA,WAAW;AACXC,MAAAA,IAAI,EAAJA,IAAI;AACJE,MAAAA,cAAc,EAAdA,cAAc;AACdE,MAAAA,QAAQ,EAARA,QAAQ;AACRH,MAAAA,WAAW,EAAXA,WAAW;AACXvC,MAAAA,OAAO,EAAPA,OAAAA;AAAO,KAAA,EACJgF,kBAAkB,CAAA;GACrBvF,EAAAA,aAAA,CAAAA,aAAA,CAAA;AACI4F,IAAAA,OAAO,EAAPA,OAAO;AAAEjD,IAAAA,KAAK,EAALA,KAAAA;GAAU4D,EAAAA,WAAW,CAAKb,EAAAA,UAAU,CACnD,CAAA,CAAA,EACD,CAAC,CAACf,KAAK,iBACN7D,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEG,IAAAA,SAAS,EAAC,uBAAuB;AACjC,IAAA,SAAA,EAAA,EAAA,CAAAuB,MAAA,CAAYC,SAAS,CAACC,KAAK,CAAC,EAAgB,eAAA,CAAA;IAC5C,aAAY,EAAA,cAAA;AAAc,GAAA,EAEzBgC,KAAK,CAET,EACAE,QAAQ,iBACP/D,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEG,IAAAA,SAAS,EAAC,2BAA2B;AACrC,IAAA,SAAA,EAAA,EAAA,CAAAuB,MAAA,CAAYC,SAAS,CAACC,KAAK,CAAC,EAAoB,mBAAA,CAAA;IAChD,aAAY,EAAA,kBAAA;GAEXkC,EAAAA,QAAQ,CAEZ,CACG,CAAA;AAEV;;;;"}
package/dist/Sidebar.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import React__default, { forwardRef, useState } from 'react';
2
2
  import { c as classnames } from './index-3659771d.js';
3
- import { n as noop } from './index-c8d9113c.js';
3
+ import { n as noop } from './index-c3d336a5.js';
4
4
  import { _ as _slicedToArray } from './slicedToArray-45fa766e.js';
5
- import { T as Tooltip } from './index-c442518b.js';
5
+ import { T as Tooltip } from './index-2123b5e9.js';
6
6
  import { AppSwitcher as AppSwitcher$1, Help, Book, Keyboard, ChatEmpty, Gift } from '@bigbinary/neeto-icons';
7
7
  import Typography from './Typography.js';
8
8
  import { _ as _defineProperty } from './defineProperty-e5245270.js';
@@ -14,11 +14,10 @@ import { Neeto } from '@bigbinary/neeto-icons/logos';
14
14
  import { useLocation, NavLink } from 'react-router-dom';
15
15
  import './createClass-601a36b2.js';
16
16
  import './toPropertyKey-bdc24cb9.js';
17
+ import './_commonjsHelpers-ced4e05c.js';
17
18
  import '@bigbinary/neeto-cist';
18
19
  import 'util';
19
- import 'tippy.js';
20
20
  import 'react-dom';
21
- import 'boring-avatars';
22
21
 
23
22
  var FeaturedTooltip = function FeaturedTooltip(_ref) {
24
23
  var label = _ref.label,