@bigbinary/neetoui 8.2.62 → 8.2.64

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 (38) hide show
  1. package/dist/Alert.js +1 -1
  2. package/dist/DatePicker.js +2 -2
  3. package/dist/Modal.js +1 -1
  4. package/dist/Pane.js +1 -1
  5. package/dist/Select.js +23 -2
  6. package/dist/Select.js.map +1 -1
  7. package/dist/TimePicker.js +2 -2
  8. package/dist/Tree.js +7 -3
  9. package/dist/Tree.js.map +1 -1
  10. package/dist/cjs/Alert.js +1 -1
  11. package/dist/cjs/DatePicker.js +2 -2
  12. package/dist/cjs/Modal.js +1 -1
  13. package/dist/cjs/Pane.js +1 -1
  14. package/dist/cjs/Select.js +23 -2
  15. package/dist/cjs/Select.js.map +1 -1
  16. package/dist/cjs/TimePicker.js +2 -2
  17. package/dist/cjs/Tree.js +7 -3
  18. package/dist/cjs/Tree.js.map +1 -1
  19. package/dist/cjs/formik/BlockNavigation.js +1 -1
  20. package/dist/cjs/formik/index.js +1 -1
  21. package/dist/cjs/{index-CLN_qmjA.js → index-uTin1vLa.js} +18 -3
  22. package/dist/cjs/index-uTin1vLa.js.map +1 -0
  23. package/dist/cjs/index.js +2 -2
  24. package/dist/cjs/{useOverlayManager-WhUj0l5B.js → useOverlayManager-BNWD2l1X.js} +2 -2
  25. package/dist/cjs/{useOverlayManager-WhUj0l5B.js.map → useOverlayManager-BNWD2l1X.js.map} +1 -1
  26. package/dist/formik/BlockNavigation.js +1 -1
  27. package/dist/formik/index.js +1 -1
  28. package/dist/{index-BNHGIZeJ.js → index-D81Lz9Bl.js} +19 -4
  29. package/dist/index-D81Lz9Bl.js.map +1 -0
  30. package/dist/index.js +2 -2
  31. package/dist/{useOverlayManager-DtHaxcLZ.js → useOverlayManager-Bq6qRB9x.js} +2 -2
  32. package/dist/{useOverlayManager-DtHaxcLZ.js.map → useOverlayManager-Bq6qRB9x.js.map} +1 -1
  33. package/package.json +1 -1
  34. package/types/DatePicker.d.ts +2 -0
  35. package/types/Select.d.ts +3 -0
  36. package/types/Tree.d.ts +2 -1
  37. package/dist/cjs/index-CLN_qmjA.js.map +0 -1
  38. package/dist/index-BNHGIZeJ.js.map +0 -1
package/dist/Alert.js CHANGED
@@ -13,7 +13,7 @@ import '@babel/runtime/helpers/slicedToArray';
13
13
  import '@tippyjs/react';
14
14
  import 'tippy.js';
15
15
  import '@bigbinary/neeto-icons';
16
- import './useOverlayManager-DtHaxcLZ.js';
16
+ import './useOverlayManager-Bq6qRB9x.js';
17
17
  import '@babel/runtime/helpers/esm/extends';
18
18
  import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
19
19
  import '@babel/runtime/helpers/esm/inheritsLoose';
@@ -26,7 +26,7 @@ import 'react-i18next';
26
26
  import './useRecentlyUsedColors-CvgVrIg-.js';
27
27
  import './Dropdown.js';
28
28
  import './index-C9RIWUPw.js';
29
- export { D as default } from './index-BNHGIZeJ.js';
29
+ export { D as default } from './index-D81Lz9Bl.js';
30
30
  import './Input.js';
31
31
  import './Label.js';
32
32
  import './MultiEmailInput.js';
@@ -77,7 +77,7 @@ import 'dayjs/plugin/weekday';
77
77
  import 'dayjs/plugin/weekOfYear';
78
78
  import './Spinner.js';
79
79
  import './Tooltip.js';
80
- import './useOverlayManager-DtHaxcLZ.js';
80
+ import './useOverlayManager-Bq6qRB9x.js';
81
81
  import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
82
82
  import '@babel/runtime/helpers/esm/inheritsLoose';
83
83
  import './constants.js';
package/dist/Modal.js CHANGED
@@ -5,7 +5,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
5
5
  import React__default, { useState, useRef } from 'react';
6
6
  import classnames from 'classnames';
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-DtHaxcLZ.js';
8
+ import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-Bq6qRB9x.js';
9
9
  import Button from './Button.js';
10
10
  import 'react-router-dom';
11
11
  import 'qs';
package/dist/Pane.js CHANGED
@@ -5,7 +5,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
5
5
  import React__default, { useState, useRef, useEffect } from 'react';
6
6
  import classnames from 'classnames';
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-DtHaxcLZ.js';
8
+ import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-Bq6qRB9x.js';
9
9
  import Button from './Button.js';
10
10
  import 'react-router-dom';
11
11
  import 'qs';
package/dist/Select.js CHANGED
@@ -207,7 +207,7 @@ var AsyncCreatableSelect = /*#__PURE__*/forwardRef(function (props, ref) {
207
207
  });
208
208
 
209
209
  var _excluded = ["children"],
210
- _excluded2 = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping"];
210
+ _excluded2 = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping", "onMenuClose", "onMenuOpen", "onKeyDown"];
211
211
  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; }
212
212
  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; }
213
213
  var SIZES = {
@@ -339,6 +339,7 @@ var MenuList = function MenuList(props) {
339
339
  }, /*#__PURE__*/React__default.createElement(Spinner, null)));
340
340
  };
341
341
  var Select = function Select(_ref2) {
342
+ var _ref3, _otherProps$isMenuOpe;
342
343
  var _ref2$size = _ref2.size,
343
344
  size = _ref2$size === void 0 ? SIZES.medium : _ref2$size,
344
345
  _ref2$label = _ref2.label,
@@ -363,8 +364,12 @@ var Select = function Select(_ref2) {
363
364
  componentOverrides = _ref2.components,
364
365
  _ref2$optionRemapping = _ref2.optionRemapping,
365
366
  optionRemapping = _ref2$optionRemapping === void 0 ? {} : _ref2$optionRemapping,
367
+ onMenuClose = _ref2.onMenuClose,
368
+ onMenuOpen = _ref2.onMenuOpen,
369
+ onKeyDown = _ref2.onKeyDown,
366
370
  otherProps = _objectWithoutProperties$1(_ref2, _excluded2);
367
371
  var inputId = useId(id);
372
+ var isMenuOpen = useRef((_ref3 = (_otherProps$isMenuOpe = otherProps.isMenuOpen) !== null && _otherProps$isMenuOpe !== void 0 ? _otherProps$isMenuOpe : otherProps.defaultMenuIsOpen) !== null && _ref3 !== void 0 ? _ref3 : false);
368
373
  var Parent = StateManagedSelect;
369
374
  if (isCreateable) {
370
375
  Parent = CreatableSelect;
@@ -413,6 +418,19 @@ var Select = function Select(_ref2) {
413
418
  return getRealOptionValue(opt) === getRealOptionValue(value);
414
419
  });
415
420
  };
421
+ var handleMenuOpen = function handleMenuOpen() {
422
+ isMenuOpen.current = true;
423
+ onMenuOpen === null || onMenuOpen === void 0 || onMenuOpen();
424
+ };
425
+ var handleMenuClose = function handleMenuClose() {
426
+ isMenuOpen.current = false;
427
+ onMenuClose === null || onMenuClose === void 0 || onMenuClose();
428
+ };
429
+ var handleKeyDown = function handleKeyDown(e) {
430
+ if (!isMenuOpen.current) return;
431
+ e.stopPropagation();
432
+ onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
433
+ };
416
434
  return /*#__PURE__*/React__default.createElement("div", {
417
435
  className: classnames(["neeto-ui-input__wrapper", className]),
418
436
  "data-cy": "".concat(hyphenize(label), "-select-container-wrapper"),
@@ -448,7 +466,10 @@ var Select = function Select(_ref2) {
448
466
  MenuList: MenuList,
449
467
  SingleValue: SingleValue,
450
468
  Control: Control
451
- }, componentOverrides)
469
+ }, componentOverrides),
470
+ onKeyDown: handleKeyDown,
471
+ onMenuClose: handleMenuClose,
472
+ onMenuOpen: handleMenuOpen
452
473
  }, _objectSpread(_objectSpread({
453
474
  inputId: inputId,
454
475
  label: label
@@ -1 +1 @@
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, isPresent } 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 const { dataCy } = props.data;\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\": dataCy || `${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 {\n fetchMore,\n totalOptionsCount,\n isAsyncLoadOptionEnabled,\n options,\n portalProps = {},\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 {...portalProps}\n innerProps={{ ...props.innerProps, [\"data-testid\"]: \"menu-list\" }}\n >\n {props.children}\n {hasMore && (\n <div\n className=\"neeto-ui-flex neeto-ui-w-full neeto-ui-items-center neeto-ui-justify-center neeto-ui-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 const { fetchMore, isMulti } = otherProps;\n if (!value || isMulti || isPresent(fetchMore)) {\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 * To specify the extra props to be passed to the menu list.\n */\n portalProps: PropTypes.object,\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","dataCy","data","useEffect","isSelected","current","scrollIntoView","Option","innerRef","concat","hyphenize","label","Placeholder","Menu","SingleValue","ValueContainer","name","MenuList","_props$selectProps","fetchMore","totalOptionsCount","isAsyncLoadOptionEnabled","options","_props$selectProps$po","portalProps","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","menuPortalTarget","document","body","styles","menuPortal","assoc","menuPosition","defaultOptions","getRealOptionValue","option","findInOptions","_currentOptions","isPresent","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,EAAE,eAAe,C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AAA;AAEV;;;;","x_google_ignoreList":[0,1,2,3]}
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, isPresent } 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 const { dataCy } = props.data;\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\": dataCy || `${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 {\n fetchMore,\n totalOptionsCount,\n isAsyncLoadOptionEnabled,\n options,\n portalProps = {},\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 {...portalProps}\n innerProps={{ ...props.innerProps, [\"data-testid\"]: \"menu-list\" }}\n >\n {props.children}\n {hasMore && (\n <div\n className=\"neeto-ui-flex neeto-ui-w-full neeto-ui-items-center neeto-ui-justify-center neeto-ui-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 onMenuClose,\n onMenuOpen,\n onKeyDown,\n ...otherProps\n}) => {\n const inputId = useId(id);\n const isMenuOpen = useRef(\n otherProps.isMenuOpen ?? otherProps.defaultMenuIsOpen ?? false\n );\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 const { fetchMore, isMulti } = otherProps;\n if (!value || isMulti || isPresent(fetchMore)) {\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 const handleMenuOpen = () => {\n isMenuOpen.current = true;\n onMenuOpen?.();\n };\n\n const handleMenuClose = () => {\n isMenuOpen.current = false;\n onMenuClose?.();\n };\n\n const handleKeyDown = e => {\n if (!isMenuOpen.current) return;\n\n e.stopPropagation();\n onKeyDown?.(e);\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 onKeyDown={handleKeyDown}\n onMenuClose={handleMenuClose}\n onMenuOpen={handleMenuOpen}\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 * To specify the extra props to be passed to the menu list.\n */\n portalProps: PropTypes.object,\n /**\n * Callback function which will be invoked when the menu is opened.\n */\n onMenuOpen: PropTypes.func,\n /**\n * Callback function which will be invoked when the menu is closed.\n */\n onMenuClose: PropTypes.func,\n /**\n * Callback function which will be invoked when a key is pressed.\n */\n onKeyDown: PropTypes.func,\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","dataCy","data","useEffect","isSelected","current","scrollIntoView","Option","innerRef","concat","hyphenize","label","Placeholder","Menu","SingleValue","ValueContainer","name","MenuList","_props$selectProps","fetchMore","totalOptionsCount","isAsyncLoadOptionEnabled","options","_props$selectProps$po","portalProps","hasMore","length","loaderRef","observer","IntersectionObserver","entries","isIntersecting","root","rootMargin","threshold","observe","_observer","unobserve","Spinner","_ref2","_ref3","_otherProps$isMenuOpe","_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","onMenuClose","onMenuOpen","onKeyDown","otherProps","_excluded2","inputId","useId","isMenuOpen","defaultMenuIsOpen","Parent","SelectInput","Creatable","loadOptions","AsyncCreatable","Async","getOptionValue","prop","getOptionLabel","menuPortalTarget","document","body","styles","menuPortal","assoc","menuPosition","defaultOptions","getRealOptionValue","option","findInOptions","_currentOptions","isPresent","currentOptions","Array","isArray","isGrouped","_existsBy","flatten","pluck","filter","opt","handleMenuOpen","handleMenuClose","handleKeyDown","e","stopPropagation","classnames","Label","htmlFor","blurInputOnSelect","classNamePrefix","closeMenuOnSelect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BoC,KAAK,CAET,EACAE,QAAQ,iBACPrE,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEG,IAAAA,SAAS,EAAC,2BAA2B;AACrC,IAAA,SAAA,EAAA,EAAA,CAAAyB,MAAA,CAAYC,SAAS,CAACC,KAAK,CAAC,EAAoB,mBAAA,CAAA;IAChD,aAAY,EAAA,kBAAA;GAEXsC,EAAAA,QAAQ,CAEZ,CACG,CAAA;AAEV;;;;","x_google_ignoreList":[0,1,2,3]}
@@ -25,7 +25,7 @@ import 'react-colorful';
25
25
  import './useRecentlyUsedColors-CvgVrIg-.js';
26
26
  import './Dropdown.js';
27
27
  import './index-C9RIWUPw.js';
28
- export { T as default } from './index-BNHGIZeJ.js';
28
+ export { T as default } from './index-D81Lz9Bl.js';
29
29
  import './Input.js';
30
30
  import './Label.js';
31
31
  import './MultiEmailInput.js';
@@ -70,7 +70,7 @@ import 'dayjs/plugin/weekday';
70
70
  import 'dayjs/plugin/weekOfYear';
71
71
  import './Spinner.js';
72
72
  import './Tooltip.js';
73
- import './useOverlayManager-DtHaxcLZ.js';
73
+ import './useOverlayManager-Bq6qRB9x.js';
74
74
  import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
75
75
  import '@babel/runtime/helpers/esm/inheritsLoose';
76
76
  import 'antd/lib/date-picker';
package/dist/Tree.js CHANGED
@@ -2,6 +2,7 @@ import _ConfigProvider from 'antd/lib/config-provider';
2
2
  import _Tree from 'antd/lib/tree';
3
3
  import _extends from '@babel/runtime/helpers/extends';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
+ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
5
6
  import React__default from 'react';
6
7
  import classnames from 'classnames';
7
8
  import { useTranslation } from 'react-i18next';
@@ -38,9 +39,12 @@ var SwitcherIcon = function SwitcherIcon(_ref) {
38
39
  });
39
40
  };
40
41
 
42
+ var _excluded = ["componentToken"];
41
43
  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; }
42
44
  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; }
43
- var Tree = function Tree(props) {
45
+ var Tree = function Tree(_ref) {
46
+ var componentToken = _ref.componentToken,
47
+ props = _objectWithoutProperties(_ref, _excluded);
44
48
  var _useTranslation = useTranslation(),
45
49
  i18n = _useTranslation.i18n;
46
50
  return /*#__PURE__*/React__default.createElement(_ConfigProvider, {
@@ -48,12 +52,12 @@ var Tree = function Tree(props) {
48
52
  theme: {
49
53
  token: _objectSpread({}, ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES),
50
54
  components: {
51
- Tree: {
55
+ Tree: _objectSpread({
52
56
  directoryNodeSelectedBg: "rgb(var(--neeto-ui-primary-500))",
53
57
  directoryNodeSelectedColor: "rgb(var(--neeto-ui-white))",
54
58
  nodeHoverBg: "rgb(var(--neeto-ui-gray-100))",
55
59
  nodeSelectedBg: "rgb(var(--neeto-ui-primary-100))"
56
- }
60
+ }, componentToken)
57
61
  }
58
62
  }
59
63
  }, /*#__PURE__*/React__default.createElement(_Tree, _extends({
package/dist/Tree.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Tree.js","sources":["../src/components/Tree/SwitcherIcon.jsx","../src/components/Tree/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { Down, Right } from \"neetoicons\";\n\nconst SwitcherIcon = ({ expanded }) =>\n expanded ? <Down size={16} /> : <Right size={16} />;\n\nexport default SwitcherIcon;\n","import React from \"react\";\n\nimport { ConfigProvider, Tree as TreeComponent } from \"antd\";\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { ANTD_LOCALE } from \"components/constants\";\nimport { ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from \"utils\";\n\nimport SwitcherIcon from \"./SwitcherIcon\";\n\nconst Tree = props => {\n const { i18n } = useTranslation();\n\n return (\n <ConfigProvider\n locale={ANTD_LOCALE[i18n.language || \"en\"]}\n theme={{\n token: { ...ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES },\n components: {\n Tree: {\n directoryNodeSelectedBg: \"rgb(var(--neeto-ui-primary-500))\",\n directoryNodeSelectedColor: \"rgb(var(--neeto-ui-white))\",\n nodeHoverBg: \"rgb(var(--neeto-ui-gray-100))\",\n nodeSelectedBg: \"rgb(var(--neeto-ui-primary-100))\",\n },\n },\n }}\n >\n <TreeComponent\n switcherIcon={SwitcherIcon}\n {...props}\n className={classnames(\"neeto-ui-tree\", props.className)}\n />\n </ConfigProvider>\n );\n};\n\nTree.propTypes = {\n /**\n * Whether to allow dropping on the node\n */\n allowDrop: PropTypes.bool,\n /**\n * Whether to automatically expand a parent treeNode\n */\n autoExpandParent: PropTypes.bool,\n /**\n * Whether treeNode fill remaining horizontal space\n */\n blockNode: PropTypes.bool,\n /**\n * Add a Checkbox before the treeNodes.\n */\n checkable: PropTypes.bool,\n /**\n * Specifies the keys of the checked treeNodes\n */\n checkedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Check treeNode precisely; parent treeNode and children treeNodes are not associated\n */\n checkStrictly: PropTypes.bool,\n /**\n * Specifies the keys of the default checked treeNodes.\n */\n defaultCheckedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Specify the keys of the default expanded treeNodes.\n */\n defaultExpandedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Specifies the keys of the default selected treeNodes.\n */\n defaultSelectedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Callback function for when the onCheck event occurs.\n */\n onCheck: PropTypes.func,\n /**\n * Whether disabled the tree\n */\n disabled: PropTypes.bool,\n /**\n * The treeNodes data Array, if set it then you need not to construct children TreeNode. (key should be unique across the whole array).\n */\n treeData: PropTypes.array,\n /**\n * Callback function for when the user clicks a treeNode.\n */\n onSelect: PropTypes.func,\n /**\n * Shows a connecting line.\n */\n showLine: PropTypes.bool,\n /**\n * Config virtual scroll height. Will not support horizontal scroll when enable this.\n */\n height: PropTypes.number,\n /**\n * Specifies whether this Tree or the node is draggable.\n */\n draggable: PropTypes.bool,\n /**\n * Callback function for when the onDragEnter event occurs\n */\n onDragEnter: PropTypes.func,\n /**\n * Callback function for when the onDragStart event occurs\n */\n onDragStart: PropTypes.func,\n /**\n * Callback function for when the onDragEnter event occurs\n */\n onDragEnd: PropTypes.func,\n /**\n * Callback function for when the onDragLeave event occurs\n */\n onDragLeave: PropTypes.func,\n /**\n * Callback function for when the onDragOver event occurs\n */\n onDragOver: PropTypes.func,\n /**\n * Callback function for when the onDrop event occurs\n */\n onDrop: PropTypes.func,\n /**\n * Defines a function to filter (highlight) treeNodes. When the function returns true, the corresponding treeNode will be highlighted\n */\n filterTreeNode: PropTypes.func,\n /**\n * Load data asynchronously\n */\n loadData: PropTypes.func,\n /**\n * Set loaded tree nodes. Need work with loadData\n */\n loadedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Whether can be selected\n */\n selectable: PropTypes.bool,\n /**\n * Specifies the keys of the selected treeNodes, multiple selection needs to set multiple to true\n */\n selectedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Allows selecting multiple treeNodes\n */\n multiple: PropTypes.bool,\n /**\n * Customize tree node title render\n */\n titleRender: PropTypes.func,\n /**\n * Disable virtual scroll when set to false\n */\n virtual: PropTypes.bool,\n /**\n * Callback function for when a treeNode is expanded or collapsed\n */\n onExpand: PropTypes.func,\n /**\n * Callback function for when a treeNode is loaded\n */\n onLoad: PropTypes.func,\n /**\n * Customize collapse/expand icon of tree node\n */\n switcherIcon: PropTypes.node,\n};\n\nexport default Tree;\n"],"names":["SwitcherIcon","_ref","expanded","React","createElement","Down","size","Right","Tree","props","_useTranslation","useTranslation","i18n","_ConfigProvider","locale","ANTD_LOCALE","language","theme","token","_objectSpread","ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES","components","directoryNodeSelectedBg","directoryNodeSelectedColor","nodeHoverBg","nodeSelectedBg","_Tree","_extends","switcherIcon","className","classnames"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ,CAAA;AAAA,EAAA,OAC9BA,QAAQ,gBAAGC,cAAA,CAAAC,aAAA,CAACC,IAAI,EAAA;AAACC,IAAAA,IAAI,EAAE,EAAA;AAAG,GAAA,CAAG,gBAAGH,cAAA,CAAAC,aAAA,CAACG,KAAK,EAAA;AAACD,IAAAA,IAAI,EAAE,EAAA;GAAM,CAAA,CAAA;AAAA,CAAA;;;;ACOrD,IAAME,IAAI,GAAG,SAAPA,IAAIA,CAAGC,KAAK,EAAI;EACpB,IAAAC,eAAA,GAAiBC,cAAc,EAAE;IAAzBC,IAAI,GAAAF,eAAA,CAAJE,IAAI,CAAA;AAEZ,EAAA,oBACET,cAAA,CAAAC,aAAA,CAAAS,eAAA,EAAA;IACEC,MAAM,EAAEC,WAAW,CAACH,IAAI,CAACI,QAAQ,IAAI,IAAI,CAAE;AAC3CC,IAAAA,KAAK,EAAE;AACLC,MAAAA,KAAK,EAAAC,aAAA,CAAOC,EAAAA,EAAAA,iCAAiC,CAAE;AAC/CC,MAAAA,UAAU,EAAE;AACVb,QAAAA,IAAI,EAAE;AACJc,UAAAA,uBAAuB,EAAE,kCAAkC;AAC3DC,UAAAA,0BAA0B,EAAE,4BAA4B;AACxDC,UAAAA,WAAW,EAAE,+BAA+B;AAC5CC,UAAAA,cAAc,EAAE,kCAAA;AAClB,SAAA;AACF,OAAA;AACF,KAAA;AAAE,GAAA,eAEFtB,cAAA,CAAAC,aAAA,CAAAsB,KAAA,EAAAC,QAAA,CAAA;AACEC,IAAAA,YAAY,EAAE5B,YAAAA;AAAa,GAAA,EACvBS,KAAK,EAAA;AACToB,IAAAA,SAAS,EAAEC,UAAU,CAAC,eAAe,EAAErB,KAAK,CAACoB,SAAS,CAAA;AAAE,GAAA,CAAA,CACxD,CACa,CAAA;AAErB;;;;"}
1
+ {"version":3,"file":"Tree.js","sources":["../src/components/Tree/SwitcherIcon.jsx","../src/components/Tree/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { Down, Right } from \"neetoicons\";\n\nconst SwitcherIcon = ({ expanded }) =>\n expanded ? <Down size={16} /> : <Right size={16} />;\n\nexport default SwitcherIcon;\n","import React from \"react\";\n\nimport { ConfigProvider, Tree as TreeComponent } from \"antd\";\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { ANTD_LOCALE } from \"components/constants\";\nimport { ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from \"utils\";\n\nimport SwitcherIcon from \"./SwitcherIcon\";\n\nconst Tree = ({ componentToken, ...props }) => {\n const { i18n } = useTranslation();\n\n return (\n <ConfigProvider\n locale={ANTD_LOCALE[i18n.language || \"en\"]}\n theme={{\n token: { ...ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES },\n components: {\n Tree: {\n directoryNodeSelectedBg: \"rgb(var(--neeto-ui-primary-500))\",\n directoryNodeSelectedColor: \"rgb(var(--neeto-ui-white))\",\n nodeHoverBg: \"rgb(var(--neeto-ui-gray-100))\",\n nodeSelectedBg: \"rgb(var(--neeto-ui-primary-100))\",\n ...componentToken,\n },\n },\n }}\n >\n <TreeComponent\n switcherIcon={SwitcherIcon}\n {...props}\n className={classnames(\"neeto-ui-tree\", props.className)}\n />\n </ConfigProvider>\n );\n};\n\nTree.propTypes = {\n /**\n * Whether to allow dropping on the node\n */\n allowDrop: PropTypes.bool,\n /**\n * Whether to automatically expand a parent treeNode\n */\n autoExpandParent: PropTypes.bool,\n /**\n * Whether treeNode fill remaining horizontal space\n */\n blockNode: PropTypes.bool,\n /**\n * Add a Checkbox before the treeNodes.\n */\n checkable: PropTypes.bool,\n /**\n * Specifies the keys of the checked treeNodes\n */\n checkedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Check treeNode precisely; parent treeNode and children treeNodes are not associated\n */\n checkStrictly: PropTypes.bool,\n /**\n * Specifies the keys of the default checked treeNodes.\n */\n defaultCheckedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Specify the keys of the default expanded treeNodes.\n */\n defaultExpandedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Specifies the keys of the default selected treeNodes.\n */\n defaultSelectedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Callback function for when the onCheck event occurs.\n */\n onCheck: PropTypes.func,\n /**\n * Whether disabled the tree\n */\n disabled: PropTypes.bool,\n /**\n * The treeNodes data Array, if set it then you need not to construct children TreeNode. (key should be unique across the whole array).\n */\n treeData: PropTypes.array,\n /**\n * Callback function for when the user clicks a treeNode.\n */\n onSelect: PropTypes.func,\n /**\n * Shows a connecting line.\n */\n showLine: PropTypes.bool,\n /**\n * Config virtual scroll height. Will not support horizontal scroll when enable this.\n */\n height: PropTypes.number,\n /**\n * Specifies whether this Tree or the node is draggable.\n */\n draggable: PropTypes.bool,\n /**\n * Object to override default theme styles for the component\n */\n componentToken: PropTypes.object,\n /**\n * Callback function for when the onDragEnter event occurs\n */\n onDragEnter: PropTypes.func,\n /**\n * Callback function for when the onDragStart event occurs\n */\n onDragStart: PropTypes.func,\n /**\n * Callback function for when the onDragEnter event occurs\n */\n onDragEnd: PropTypes.func,\n /**\n * Callback function for when the onDragLeave event occurs\n */\n onDragLeave: PropTypes.func,\n /**\n * Callback function for when the onDragOver event occurs\n */\n onDragOver: PropTypes.func,\n /**\n * Callback function for when the onDrop event occurs\n */\n onDrop: PropTypes.func,\n /**\n * Defines a function to filter (highlight) treeNodes. When the function returns true, the corresponding treeNode will be highlighted\n */\n filterTreeNode: PropTypes.func,\n /**\n * Load data asynchronously\n */\n loadData: PropTypes.func,\n /**\n * Set loaded tree nodes. Need work with loadData\n */\n loadedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Whether can be selected\n */\n selectable: PropTypes.bool,\n /**\n * Specifies the keys of the selected treeNodes, multiple selection needs to set multiple to true\n */\n selectedKeys: PropTypes.arrayOf(PropTypes.string),\n /**\n * Allows selecting multiple treeNodes\n */\n multiple: PropTypes.bool,\n /**\n * Customize tree node title render\n */\n titleRender: PropTypes.func,\n /**\n * Disable virtual scroll when set to false\n */\n virtual: PropTypes.bool,\n /**\n * Callback function for when a treeNode is expanded or collapsed\n */\n onExpand: PropTypes.func,\n /**\n * Callback function for when a treeNode is loaded\n */\n onLoad: PropTypes.func,\n /**\n * Customize collapse/expand icon of tree node\n */\n switcherIcon: PropTypes.node,\n};\n\nexport default Tree;\n"],"names":["SwitcherIcon","_ref","expanded","React","createElement","Down","size","Right","Tree","componentToken","props","_objectWithoutProperties","_excluded","_useTranslation","useTranslation","i18n","_ConfigProvider","locale","ANTD_LOCALE","language","theme","token","_objectSpread","ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES","components","directoryNodeSelectedBg","directoryNodeSelectedColor","nodeHoverBg","nodeSelectedBg","_Tree","_extends","switcherIcon","className","classnames"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ,CAAA;AAAA,EAAA,OAC9BA,QAAQ,gBAAGC,cAAA,CAAAC,aAAA,CAACC,IAAI,EAAA;AAACC,IAAAA,IAAI,EAAE,EAAA;A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');
15
15
  require('@tippyjs/react');
16
16
  require('tippy.js');
17
17
  require('@bigbinary/neeto-icons');
18
- require('./useOverlayManager-WhUj0l5B.js');
18
+ require('./useOverlayManager-BNWD2l1X.js');
19
19
  require('@babel/runtime/helpers/esm/extends');
20
20
  require('@babel/runtime/helpers/esm/objectWithoutPropertiesLoose');
21
21
  require('@babel/runtime/helpers/esm/inheritsLoose');
@@ -28,7 +28,7 @@ require('react-i18next');
28
28
  require('./useRecentlyUsedColors-D9b7Om0L.js');
29
29
  require('./Dropdown.js');
30
30
  require('./index-Ci1VcKxO.js');
31
- var DatePicker = require('./index-CLN_qmjA.js');
31
+ var DatePicker = require('./index-uTin1vLa.js');
32
32
  require('./Input.js');
33
33
  require('./Label.js');
34
34
  require('./MultiEmailInput.js');
@@ -79,7 +79,7 @@ require('dayjs/plugin/weekday');
79
79
  require('dayjs/plugin/weekOfYear');
80
80
  require('./Spinner.js');
81
81
  require('./Tooltip.js');
82
- require('./useOverlayManager-WhUj0l5B.js');
82
+ require('./useOverlayManager-BNWD2l1X.js');
83
83
  require('@babel/runtime/helpers/esm/objectWithoutPropertiesLoose');
84
84
  require('@babel/runtime/helpers/esm/inheritsLoose');
85
85
  require('./constants.js');
package/dist/cjs/Modal.js CHANGED
@@ -7,7 +7,7 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
7
7
  var React = require('react');
8
8
  var classnames = require('classnames');
9
9
  var neetoIcons = require('@bigbinary/neeto-icons');
10
- var useOverlayManager = require('./useOverlayManager-WhUj0l5B.js');
10
+ var useOverlayManager = require('./useOverlayManager-BNWD2l1X.js');
11
11
  var Button = require('./Button.js');
12
12
  require('react-router-dom');
13
13
  require('qs');
package/dist/cjs/Pane.js CHANGED
@@ -7,7 +7,7 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
7
7
  var React = require('react');
8
8
  var classnames = require('classnames');
9
9
  var neetoIcons = require('@bigbinary/neeto-icons');
10
- var useOverlayManager = require('./useOverlayManager-WhUj0l5B.js');
10
+ var useOverlayManager = require('./useOverlayManager-BNWD2l1X.js');
11
11
  var Button = require('./Button.js');
12
12
  require('react-router-dom');
13
13
  require('qs');
@@ -227,7 +227,7 @@ var AsyncCreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
227
227
  });
228
228
 
229
229
  var _excluded = ["children"],
230
- _excluded2 = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping"];
230
+ _excluded2 = ["size", "label", "required", "error", "helpText", "className", "innerRef", "isCreateable", "strategy", "id", "labelProps", "value", "defaultValue", "components", "optionRemapping", "onMenuClose", "onMenuOpen", "onKeyDown"];
231
231
  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; }
232
232
  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; }
233
233
  var SIZES = {
@@ -359,6 +359,7 @@ var MenuList = function MenuList(props) {
359
359
  }, /*#__PURE__*/React.createElement(Spinner, null)));
360
360
  };
361
361
  var Select = function Select(_ref2) {
362
+ var _ref3, _otherProps$isMenuOpe;
362
363
  var _ref2$size = _ref2.size,
363
364
  size = _ref2$size === void 0 ? SIZES.medium : _ref2$size,
364
365
  _ref2$label = _ref2.label,
@@ -383,8 +384,12 @@ var Select = function Select(_ref2) {
383
384
  componentOverrides = _ref2.components,
384
385
  _ref2$optionRemapping = _ref2.optionRemapping,
385
386
  optionRemapping = _ref2$optionRemapping === void 0 ? {} : _ref2$optionRemapping,
387
+ onMenuClose = _ref2.onMenuClose,
388
+ onMenuOpen = _ref2.onMenuOpen,
389
+ onKeyDown = _ref2.onKeyDown,
386
390
  otherProps = _objectWithoutProperties$1(_ref2, _excluded2);
387
391
  var inputId = useId.useId(id);
392
+ var isMenuOpen = React.useRef((_ref3 = (_otherProps$isMenuOpe = otherProps.isMenuOpen) !== null && _otherProps$isMenuOpe !== void 0 ? _otherProps$isMenuOpe : otherProps.defaultMenuIsOpen) !== null && _ref3 !== void 0 ? _ref3 : false);
388
393
  var Parent = StateManagedSelect;
389
394
  if (isCreateable) {
390
395
  Parent = reactSelectCreatable_esm.CreatableSelect;
@@ -433,6 +438,19 @@ var Select = function Select(_ref2) {
433
438
  return getRealOptionValue(opt) === getRealOptionValue(value);
434
439
  });
435
440
  };
441
+ var handleMenuOpen = function handleMenuOpen() {
442
+ isMenuOpen.current = true;
443
+ onMenuOpen === null || onMenuOpen === void 0 || onMenuOpen();
444
+ };
445
+ var handleMenuClose = function handleMenuClose() {
446
+ isMenuOpen.current = false;
447
+ onMenuClose === null || onMenuClose === void 0 || onMenuClose();
448
+ };
449
+ var handleKeyDown = function handleKeyDown(e) {
450
+ if (!isMenuOpen.current) return;
451
+ e.stopPropagation();
452
+ onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
453
+ };
436
454
  return /*#__PURE__*/React.createElement("div", {
437
455
  className: classnames(["neeto-ui-input__wrapper", className]),
438
456
  "data-cy": "".concat(index.hyphenize(label), "-select-container-wrapper"),
@@ -468,7 +486,10 @@ var Select = function Select(_ref2) {
468
486
  MenuList: MenuList,
469
487
  SingleValue: SingleValue,
470
488
  Control: Control
471
- }, componentOverrides)
489
+ }, componentOverrides),
490
+ onKeyDown: handleKeyDown,
491
+ onMenuClose: handleMenuClose,
492
+ onMenuOpen: handleMenuOpen
472
493
  }, _objectSpread(_objectSpread({
473
494
  inputId: inputId,
474
495
  label: label