@bigbinary/neetoui 8.2.78 → 8.2.79
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.
- package/dist/Select.js +2 -2
- package/dist/Select.js.map +1 -1
- package/dist/cjs/Select.js +2 -2
- package/dist/cjs/Select.js.map +1 -1
- package/package.json +1 -1
package/dist/Select.js
CHANGED
|
@@ -266,7 +266,7 @@ var CustomOption = function CustomOption(props) {
|
|
|
266
266
|
return /*#__PURE__*/React__default.createElement(components.Option, _extends$1({}, props, {
|
|
267
267
|
innerRef: ref,
|
|
268
268
|
innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
|
|
269
|
-
"data-cy": dataCy || "".concat(props.
|
|
269
|
+
"data-cy": dataCy || "".concat(hyphenize(props.label), "-select-option")
|
|
270
270
|
})
|
|
271
271
|
}));
|
|
272
272
|
};
|
|
@@ -274,7 +274,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
274
274
|
var selectProps = props.selectProps;
|
|
275
275
|
return /*#__PURE__*/React__default.createElement(components.Placeholder, _extends$1({}, props, {
|
|
276
276
|
innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
|
|
277
|
-
"data-cy": selectProps ? "".concat(selectProps.hyphenatedDataCyLabel, "-select-placeholder") : "select-placeholder"
|
|
277
|
+
"data-cy": selectProps !== null && selectProps !== void 0 && selectProps.hyphenatedDataCyLabel ? "".concat(selectProps.hyphenatedDataCyLabel, "-select-placeholder") : "select-placeholder"
|
|
278
278
|
})
|
|
279
279
|
}));
|
|
280
280
|
};
|
package/dist/Select.js.map
CHANGED
|
@@ -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, mergeDeepRight, isEmpty } 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 || `${props.hyphenatedDataCyLabel}-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 ? `${selectProps.hyphenatedDataCyLabel}-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 ? `${selectProps.hyphenatedDataCyLabel}-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 ? `${selectProps.hyphenatedDataCyLabel}-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 styles = {},\n dataCy = \"nui\",\n ...otherProps\n}) => {\n const inputId = useId(id);\n const isMenuOpen = useRef(\n otherProps.isMenuOpen ?? otherProps.defaultMenuIsOpen ?? false\n );\n\n const hyphenatedDataCyLabel = isEmpty(label)\n ? hyphenize(dataCy)\n : hyphenize(label);\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: mergeDeepRight({ menuPortal: assoc(\"zIndex\", 999999) }, styles),\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={`${hyphenatedDataCyLabel}-select-container-wrapper`}\n data-testid=\"select\"\n >\n {label && (\n <Label\n {...{ required }}\n data-cy={`${hyphenatedDataCyLabel}-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={`${hyphenatedDataCyLabel}-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 {...{\n inputId,\n label,\n styles,\n ...portalProps,\n ...otherProps,\n hyphenatedDataCyLabel,\n }}\n />\n {!!error && (\n <p\n className=\"neeto-ui-input__error\"\n data-cy={`${hyphenatedDataCyLabel}-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={`${hyphenatedDataCyLabel}-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 * To specify the styles for the Select component.\n */\n styles: PropTypes.object,\n /**\n * To specify the custom data-cy label for the Select component and its child components.\n */\n dataCy: 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","dataCy","data","useEffect","isSelected","current","scrollIntoView","Option","innerRef","concat","hyphenatedDataCyLabel","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","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","_ref2$styles","styles","_ref2$dataCy","otherProps","_excluded2","inputId","useId","isMenuOpen","defaultMenuIsOpen","isEmpty","hyphenize","Parent","SelectInput","Creatable","loadOptions","AsyncCreatable","Async","getOptionValue","prop","getOptionLabel","menuPortalTarget","document","body","mergeDeepRight","menuPortal","assoc","menuPosition","defaultOptions","getRealOptionValue","option","findInOptions","_currentOptions","isPresent","currentOptions","Array","isArray","isGrouped","_existsBy","flatten","pluck","filter","opt","handleMenuOpen","handleMenuClose","handleKeyDown","e","stopPropagation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AAAe,GAAA,EAAA7I,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAA;AAEzBwG,IAAAA,OAAO,EAAPA,OAAO;AACP3B,IAAAA,KAAK,EAALA,KAAK;AACLuB,IAAAA,MAAM,EAANA,MAAAA;GACG3C,EAAAA,WAAW,GACX6C,UAAU,CAAA,EAAA,EAAA,EAAA;AACb1D,IAAAA,qBAAqB,EAArBA,qBAAAA;AAAqB,GAAA,CAAA,CAAA,CAEvB,EACD,CAAC,CAACqC,KAAK,iBACNnE,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEG,IAAAA,SAAS,EAAC,uBAAuB;IACjC,SAAAyB,EAAAA,EAAAA,CAAAA,MAAA,CAAYC,qBAAqB,EAAgB,eAAA,CAAA;IACjD,aAAY,EAAA,cAAA;AAAc,GAAA,EAEzBqC,KAAK,CAET,EACAE,QAAQ,iBACPrE,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEG,IAAAA,SAAS,EAAC,2BAA2B;IACrC,SAAAyB,EAAAA,EAAAA,CAAAA,MAAA,CAAYC,qBAAqB,EAAoB,mBAAA,CAAA;IACrD,aAAY,EAAA,kBAAA;GAEXuC,EAAAA,QAAQ,CAEZ,CACG,CAAA;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, mergeDeepRight, isEmpty } 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?.hyphenatedDataCyLabel\n ? `${selectProps.hyphenatedDataCyLabel}-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 ? `${selectProps.hyphenatedDataCyLabel}-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 ? `${selectProps.hyphenatedDataCyLabel}-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 styles = {},\n dataCy = \"nui\",\n ...otherProps\n}) => {\n const inputId = useId(id);\n const isMenuOpen = useRef(\n otherProps.isMenuOpen ?? otherProps.defaultMenuIsOpen ?? false\n );\n\n const hyphenatedDataCyLabel = isEmpty(label)\n ? hyphenize(dataCy)\n : hyphenize(label);\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: mergeDeepRight({ menuPortal: assoc(\"zIndex\", 999999) }, styles),\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={`${hyphenatedDataCyLabel}-select-container-wrapper`}\n data-testid=\"select\"\n >\n {label && (\n <Label\n {...{ required }}\n data-cy={`${hyphenatedDataCyLabel}-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={`${hyphenatedDataCyLabel}-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 {...{\n inputId,\n label,\n styles,\n ...portalProps,\n ...otherProps,\n hyphenatedDataCyLabel,\n }}\n />\n {!!error && (\n <p\n className=\"neeto-ui-input__error\"\n data-cy={`${hyphenatedDataCyLabel}-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={`${hyphenatedDataCyLabel}-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 * To specify the styles for the Select component.\n */\n styles: PropTypes.object,\n /**\n * To specify the custom data-cy label for the Select component and its child components.\n */\n dataCy: 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","dataCy","data","useEffect","isSelected","current","scrollIntoView","Option","innerRef","concat","hyphenize","label","Placeholder","hyphenatedDataCyLabel","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","_ref2$styles","styles","_ref2$dataCy","otherProps","_excluded2","inputId","useId","isMenuOpen","defaultMenuIsOpen","isEmpty","Parent","SelectInput","Creatable","loadOptions","AsyncCreatable","Async","getOptionValue","prop","getOptionLabel","menuPortalTarget","document","body","mergeDeepRight","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,IAAI,kBAAkB,gBAAgB,UAAU,CAAC,UAAU,KAAK,EAAE,GAAG,EAAE;AACvE,EAAE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A,MAAM,EAANA,MAAAA;GACG1C,EAAAA,WAAW,GACX4C,UAAU,CAAA,EAAA,EAAA,EAAA;AACbxD,IAAAA,qBAAqB,EAArBA,qBAAAA;AAAqB,GAAA,CAAA,CAAA,CAEvB,EACD,CAAC,CAACmC,KAAK,iBACNpE,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEG,IAAAA,SAAS,EAAC,uBAAuB;IACjC,SAAAyB,EAAAA,EAAAA,CAAAA,MAAA,CAAYI,qBAAqB,EAAgB,eAAA,CAAA;IACjD,aAAY,EAAA,cAAA;AAAc,GAAA,EAEzBmC,KAAK,CAET,EACAE,QAAQ,iBACPtE,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AACEG,IAAAA,SAAS,EAAC,2BAA2B;IACrC,SAAAyB,EAAAA,EAAAA,CAAAA,MAAA,CAAYI,qBAAqB,EAAoB,mBAAA,CAAA;IACrD,aAAY,EAAA,kBAAA;GAEXqC,EAAAA,QAAQ,CAEZ,CACG,CAAA;AAEV;;;;","x_google_ignoreList":[0,1,2,3]}
|
package/dist/cjs/Select.js
CHANGED
|
@@ -286,7 +286,7 @@ var CustomOption = function CustomOption(props) {
|
|
|
286
286
|
return /*#__PURE__*/React.createElement(reactSelectCreatable_esm.components.Option, _extends$1({}, props, {
|
|
287
287
|
innerRef: ref,
|
|
288
288
|
innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
|
|
289
|
-
"data-cy": dataCy || "".concat(props.
|
|
289
|
+
"data-cy": dataCy || "".concat(index.hyphenize(props.label), "-select-option")
|
|
290
290
|
})
|
|
291
291
|
}));
|
|
292
292
|
};
|
|
@@ -294,7 +294,7 @@ var Placeholder = function Placeholder(props) {
|
|
|
294
294
|
var selectProps = props.selectProps;
|
|
295
295
|
return /*#__PURE__*/React.createElement(reactSelectCreatable_esm.components.Placeholder, _extends$1({}, props, {
|
|
296
296
|
innerProps: _objectSpread(_objectSpread({}, props.innerProps), {}, {
|
|
297
|
-
"data-cy": selectProps ? "".concat(selectProps.hyphenatedDataCyLabel, "-select-placeholder") : "select-placeholder"
|
|
297
|
+
"data-cy": selectProps !== null && selectProps !== void 0 && selectProps.hyphenatedDataCyLabel ? "".concat(selectProps.hyphenatedDataCyLabel, "-select-placeholder") : "select-placeholder"
|
|
298
298
|
})
|
|
299
299
|
}));
|
|
300
300
|
};
|
package/dist/cjs/Select.js.map
CHANGED
|
@@ -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, mergeDeepRight, isEmpty } 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 || `${props.hyphenatedDataCyLabel}-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 ? `${selectProps.hyphenatedDataCyLabel}-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 ? `${selectProps.hyphenatedDataCyLabel}-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 ? `${selectProps.hyphenatedDataCyLabel}-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 styles = {},\n dataCy = \"nui\",\n ...otherProps\n}) => {\n const inputId = useId(id);\n const isMenuOpen = useRef(\n otherProps.isMenuOpen ?? otherProps.defaultMenuIsOpen ?? false\n );\n\n const hyphenatedDataCyLabel = isEmpty(label)\n ? hyphenize(dataCy)\n : hyphenize(label);\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: mergeDeepRight({ menuPortal: assoc(\"zIndex\", 999999) }, styles),\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={`${hyphenatedDataCyLabel}-select-container-wrapper`}\n data-testid=\"select\"\n >\n {label && (\n <Label\n {...{ required }}\n data-cy={`${hyphenatedDataCyLabel}-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={`${hyphenatedDataCyLabel}-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 {...{\n inputId,\n label,\n styles,\n ...portalProps,\n ...otherProps,\n hyphenatedDataCyLabel,\n }}\n />\n {!!error && (\n <p\n className=\"neeto-ui-input__error\"\n data-cy={`${hyphenatedDataCyLabel}-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={`${hyphenatedDataCyLabel}-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 * To specify the styles for the Select component.\n */\n styles: PropTypes.object,\n /**\n * To specify the custom data-cy label for the Select component and its child components.\n */\n dataCy: PropTypes.string,\n};\n\nexport default Select;\n"],"names":["forwardRef","useStateManager","React","Select","_excluded","useRef","useState","useEffect","useCallback","handleInputChange","_objectSpread","useCreatable","SIZES","small","medium","large","STRATEGIES","fixed","Control","_ref","children","props","_objectWithoutProperties","selectProps","hasValue","createElement","components","isMulti","className","addButtonLabel","DropdownIndicator","_extends","innerProps","_defineProperty","Down","size","ClearIndicator","Close","MultiValueRemove","CustomInput","Input","maxLength","CustomOption","ref","dataCy","data","isSelected","current","scrollIntoView","Option","innerRef","concat","hyphenatedDataCyLabel","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","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","_ref2$styles","styles","_ref2$dataCy","otherProps","_excluded2","inputId","useId","isMenuOpen","defaultMenuIsOpen","isEmpty","hyphenize","Parent","SelectInput","Creatable","loadOptions","AsyncCreatable","Async","getOptionValue","prop","getOptionLabel","menuPortalTarget","document","body","mergeDeepRight","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,IAAI,kBAAkB,gBAAgBA,gBAAU,CAAC,UAAU,KAAK,EAAE,GAAG,EAAE;AACvE,EAAE,IAAI,eAAe,GAAGC,wCAAe,CAAC,KAAK,CAAC,CAAC;AAC/C,EAAE,oBAAoBC,gBAAK,CAAC,aAAa,CAACC,+BAAM,EAAE,QAAQ,CAAC;AAC3D,IAAI,GAAG,EAAE,GAAG;AACZ,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC;AACvB,CAAC,CAAC;;ACxBF,IAAIC,WAAS,GAAG,CAAC,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;AAC3H,SAAS,QAAQ,CAAC,IAAI,EAAE;AACxB,EAAE,IAAI,mBAAmB,GAAG,IAAI,CAAC,cAAc;AAC/C,IAAI,mBAAmB,GAAG,mBAAmB,KAA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,GAAA,EAAA;AACEG,IAAAA,SAAS,EAAC,2BAA2B;IACrC,SAAAuB,EAAAA,EAAAA,CAAAA,MAAA,CAAYC,qBAAqB,EAAoB,mBAAA,CAAA;IACrD,aAAY,EAAA,kBAAA;GAEXuC,EAAAA,QAAQ,CAEZ,CACG,CAAA;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, mergeDeepRight, isEmpty } 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?.hyphenatedDataCyLabel\n ? `${selectProps.hyphenatedDataCyLabel}-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 ? `${selectProps.hyphenatedDataCyLabel}-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 ? `${selectProps.hyphenatedDataCyLabel}-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 styles = {},\n dataCy = \"nui\",\n ...otherProps\n}) => {\n const inputId = useId(id);\n const isMenuOpen = useRef(\n otherProps.isMenuOpen ?? otherProps.defaultMenuIsOpen ?? false\n );\n\n const hyphenatedDataCyLabel = isEmpty(label)\n ? hyphenize(dataCy)\n : hyphenize(label);\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: mergeDeepRight({ menuPortal: assoc(\"zIndex\", 999999) }, styles),\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={`${hyphenatedDataCyLabel}-select-container-wrapper`}\n data-testid=\"select\"\n >\n {label && (\n <Label\n {...{ required }}\n data-cy={`${hyphenatedDataCyLabel}-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={`${hyphenatedDataCyLabel}-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 {...{\n inputId,\n label,\n styles,\n ...portalProps,\n ...otherProps,\n hyphenatedDataCyLabel,\n }}\n />\n {!!error && (\n <p\n className=\"neeto-ui-input__error\"\n data-cy={`${hyphenatedDataCyLabel}-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={`${hyphenatedDataCyLabel}-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 * To specify the styles for the Select component.\n */\n styles: PropTypes.object,\n /**\n * To specify the custom data-cy label for the Select component and its child components.\n */\n dataCy: PropTypes.string,\n};\n\nexport default Select;\n"],"names":["forwardRef","useStateManager","React","Select","_excluded","useRef","useState","useEffect","useCallback","handleInputChange","_objectSpread","useCreatable","SIZES","small","medium","large","STRATEGIES","fixed","Control","_ref","children","props","_objectWithoutProperties","selectProps","hasValue","createElement","components","isMulti","className","addButtonLabel","DropdownIndicator","_extends","innerProps","_defineProperty","Down","size","ClearIndicator","Close","MultiValueRemove","CustomInput","Input","maxLength","CustomOption","ref","dataCy","data","isSelected","current","scrollIntoView","Option","innerRef","concat","hyphenize","label","Placeholder","hyphenatedDataCyLabel","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","_ref2$styles","styles","_ref2$dataCy","otherProps","_excluded2","inputId","useId","isMenuOpen","defaultMenuIsOpen","isEmpty","Parent","SelectInput","Creatable","loadOptions","AsyncCreatable","Async","getOptionValue","prop","getOptionLabel","menuPortalTarget","document","body","mergeDeepRight","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,IAAI,kBAAkB,gBAAgBA,gBAAU,CAAC,UAAU,KAAK,EAAE,GAAG,EAAE;AACvE,EAAE,IAAI,eAAe,GAAGC,wCAAe,CAAC,KAAK,CAAC,CAAC;AAC/C,EAAE,oBAAoBC,gBAAK,CAAC,aAAa,CAACC,+BAAM,EAAE,QAAQ,CAAC;AAC3D,IAAI,GAAG,EAAE,GAAG;AACZ,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC;AACvB,CAAC,CAAC;;ACxBF,IAAIC,WAAS,GAAG,CAAC,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;AAC3H,SAAS,QAAQ,CAAC,IAAI,EAAE;AACxB,EAAE,IAAI,mBAAmB,GAAG,IAAI,CAAC,cAAc;AAC/C,IAAI,mBAAmB,GAAG,mBAAmB,KAAK,KAAK,CAAC,GAAG,KAAK,G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