@bigbinary/neetoui 8.2.78 → 8.2.80

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.
@@ -26,7 +26,7 @@ import 'react-i18next';
26
26
  import './useRecentlyUsedColors-CvgVrIg-.js';
27
27
  import './Dropdown.js';
28
28
  import './index-C9RIWUPw.js';
29
- export { D as default } from './index-CZan-OsS.js';
29
+ export { D as default } from './index-WFzj9lqQ.js';
30
30
  import './Input.js';
31
31
  import './Label.js';
32
32
  import './MultiEmailInput.js';
@@ -35,7 +35,7 @@ import './useId-Jj9hXm-g.js';
35
35
  import '@bigbinary/neeto-hotkeys';
36
36
  import './overlayManager.js';
37
37
  import 'qs';
38
- import './Textarea-0AgZQSvH.js';
38
+ import './Textarea-VhikMg-a.js';
39
39
  import './Pane.js';
40
40
  import './Popover.js';
41
41
  import 'framer-motion';
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.hyphenatedDataCyLabel, "-select-option")
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
  };
@@ -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","classnames","Label","htmlFor","blurInputOnSelect","classNamePrefix","closeMenuOnSelect"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,IAAI,kBAAkB,gBAAgB,UAAU,CAAC,UAAU,KAAK,EAAE,GAAG,EAAE;AACvE,EAAE,IAAI,eAAe,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;AAC/C,EAAE,oBAAoB,KAAK,CAAC,aAAa,CAACA,QAAM,EAAE,QAAQ,CAAC;AAC3D,IAAI,GAAG,EAAE,GAAG;AACZ,GAAG,EAAE,eAAe,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,GAAG,mBAAmB;AACtF,IAAI,iBAAiB,GAAG,IAAI,CAAC,YAAY;AACzC,IAAI,YAAY,GAAG,iBAAiB,KAAK,KAAK,CAAC,GAAG,KAAK,GAAG,iBAAiB;AAC3E,IAAI,gBAAgB,GAAG,IAAI,CAAC,WAAW,CAAC;AACxC,IAAI,IAAI,CAAC,OAAO,CAAC;AACjB,IAAI,IAAI,cAAc,GAAG,IAAI,CAAC,SAAS;AACvC,IAAI,cAAc,GAAG,cAAc,KAAK,KAAK,CAAC,GAAG,KAAK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AAA,WAAW,EAAXA,WAAW;AACXxC,MAAAA,OAAO,EAAPA,OAAAA;AAAO,KAAA,EACJsF,kBAAkB,CACrB;AACFK,IAAAA,SAAS,EAAE6C,aAAc;AACzB/C,IAAAA,WAAW,EAAE8C,eAAgB;AAC7B7C,IAAAA,UAAU,EAAE4C,cAAAA;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","ht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W,EAAE6C,eAAgB;AAC7B5C,IAAAA,UAAU,EAAE2C,cAAAA;AAAe,GAAA,EAAA7I,aAAA,CAAAA,aAAA,CAAAA,aAAA,CAAA;AAEzByG,IAAAA,OAAO,EAAPA,OAAO;AACP5D,IAAAA,KAAK,EAALA,KAAK;AACLwD,IAAAA,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]}
@@ -121,7 +121,7 @@ var Textarea = /*#__PURE__*/forwardRef(function (_ref, ref) {
121
121
  "neeto-ui-input__max-length--error": maxLengthError
122
122
  })
123
123
  }, valueLength, "/", maxLength)), /*#__PURE__*/React__default.createElement("div", {
124
- "data-cy": "".concat(hyphenize(label), "-text-input"),
124
+ "data-cy": "".concat(hyphenize(label), "-text-input-label"),
125
125
  className: classnames("neeto-ui-input", "neeto-ui-input--textarea", {
126
126
  "neeto-ui-input--error": !!error,
127
127
  "neeto-ui-input--disabled": !!disabled,
@@ -135,6 +135,7 @@ var Textarea = /*#__PURE__*/forwardRef(function (_ref, ref) {
135
135
  }, prefix && /*#__PURE__*/React__default.createElement("div", {
136
136
  className: "neeto-ui-input__prefix"
137
137
  }, prefix), /*#__PURE__*/React__default.createElement("textarea", _extends({
138
+ "data-cy": "".concat(hyphenize(label), "-text-input"),
138
139
  ref: textareaRef,
139
140
  rows: ROWS[size]
140
141
  }, _objectSpread(_objectSpread(_objectSpread({
@@ -160,4 +161,4 @@ var Textarea = /*#__PURE__*/forwardRef(function (_ref, ref) {
160
161
  Textarea.displayName = "Textarea";
161
162
 
162
163
  export { Textarea as T, useSyncedRef as u };
163
- //# sourceMappingURL=Textarea-0AgZQSvH.js.map
164
+ //# sourceMappingURL=Textarea-VhikMg-a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Textarea-VhikMg-a.js","sources":["../src/hooks/useSyncedRef.js","../src/components/Textarea.jsx"],"sourcesContent":["import { useEffect, useRef } from \"react\";\n\nconst useSyncedRef = ref => {\n const innerRef = useRef();\n\n useEffect(() => {\n if (!ref) return;\n\n if (typeof ref === \"function\") {\n ref(innerRef.current);\n } else {\n ref.current = innerRef.current;\n }\n });\n\n return innerRef;\n};\n\nexport default useSyncedRef;\n","import React, { useState, useEffect, forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport { useSyncedRef, useId } from \"hooks\";\nimport { hyphenize } from \"utils\";\n\nimport Label from \"./Label\";\n\nconst SIZES = { small: \"small\", medium: \"medium\", large: \"large\" };\n\nconst ROWS = { small: 1, medium: 3, large: 4 };\n\nconst RESIZE = { vertical: \"vertical\", none: \"none\" };\n\nconst Textarea = forwardRef(\n (\n {\n size = SIZES.medium,\n resize = RESIZE.vertical,\n suffix = null,\n prefix = null,\n disabled = false,\n required = false,\n nakedTextarea = false,\n helpText = \"\",\n error = \"\",\n label = \"\",\n className = \"\",\n maxLength,\n unlimitedChars = false,\n labelProps,\n onBlur,\n disableTrimOnBlur = false,\n ...otherProps\n },\n ref\n ) => {\n const [valueInternal, setValueInternal] = useState(\"\");\n\n const value = otherProps.value ?? valueInternal ?? \"\";\n\n const id = useId(otherProps.id);\n const errorId = `error_${id}`;\n const helpTextId = `helpText_${id}`;\n const textareaRef = useSyncedRef(ref);\n\n const valueLength = value?.toString().length || 0;\n const isCharacterLimitVisible = valueLength >= maxLength * 0.85;\n const maxLengthError = unlimitedChars && valueLength > maxLength;\n\n const onChangeInternal = e => setValueInternal(e.target.value);\n const onChange = otherProps.onChange ?? onChangeInternal;\n const isMaxLengthPresent = !!maxLength || maxLength === 0;\n\n useEffect(() => {\n textareaRef.current.style.minHeight = \"22px\";\n textareaRef.current.style.height = \"auto\";\n const scrollHeight = textareaRef.current.scrollHeight;\n textareaRef.current.style.height = `${scrollHeight + 1}px`;\n }, [value]);\n\n const handleTrimmedChangeOnBlur = e => {\n if (disableTrimOnBlur || typeof value !== \"string\") return;\n\n const trimmedValue = value.trim();\n if (value === trimmedValue) return;\n\n e.target.value = trimmedValue;\n onChange(e);\n };\n\n const handleOnBlur = e => {\n handleTrimmedChangeOnBlur(e);\n onBlur?.(e);\n };\n\n return (\n <div className={classnames([\"neeto-ui-input__wrapper\", className])}>\n <div className=\"neeto-ui-input__label-wrapper\">\n {label && (\n <Label\n {...{ required }}\n data-cy={`${hyphenize(label)}-label`}\n htmlFor={id}\n {...labelProps}\n >\n {label}\n </Label>\n )}\n {isCharacterLimitVisible && (\n <p\n className={classnames(\"neeto-ui-input__max-length\", {\n \"neeto-ui-input__max-length--error\": maxLengthError,\n })}\n >\n {valueLength}/{maxLength}\n </p>\n )}\n </div>\n <div\n data-cy={`${hyphenize(label)}-text-input-label`}\n className={classnames(\"neeto-ui-input\", \"neeto-ui-input--textarea\", {\n \"neeto-ui-input--error\": !!error,\n \"neeto-ui-input--disabled\": !!disabled,\n \"neeto-ui-input--naked\": !!nakedTextarea,\n \"neeto-ui-input--small\": size === SIZES.small,\n \"neeto-ui-input--medium\": size === SIZES.medium,\n \"neeto-ui-input--large\": size === SIZES.large,\n \"neeto-ui-input--resize--vertical\": resize === RESIZE.vertical,\n \"neeto-ui-input--resize--none\": resize === RESIZE.none,\n })}\n >\n {prefix && <div className=\"neeto-ui-input__prefix\">{prefix}</div>}\n <textarea\n data-cy={`${hyphenize(label)}-text-input`}\n ref={textareaRef}\n rows={ROWS[size]}\n {...{\n disabled,\n ...(isMaxLengthPresent && !unlimitedChars && { maxLength }),\n ...otherProps,\n onChange,\n value,\n }}\n onBlur={handleOnBlur}\n />\n {suffix && <div className=\"neeto-ui-input__suffix\">{suffix}</div>}\n </div>\n {!!error && (\n <p\n className=\"neeto-ui-input__error\"\n data-cy={`${hyphenize(label)}-input-error`}\n id={errorId}\n >\n {error}\n </p>\n )}\n {helpText && (\n <p className=\"neeto-ui-input__help-text\" id={helpTextId}>\n {helpText}\n </p>\n )}\n </div>\n );\n }\n);\n\nTextarea.displayName = \"Textarea\";\n\nTextarea.propTypes = {\n /**\n * To specify the row height of the Textarea.\n */\n rows: PropTypes.number,\n /**\n * To specify the size of Textarea.\n */\n size: PropTypes.oneOf(Object.values(SIZES)),\n /**\n * To specify the label shown above the Textarea.\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 provide the value of the Textarea.\n */\n value: PropTypes.string,\n /**\n * To provide the error message shown below the Textarea.\n */\n error: PropTypes.string,\n /**\n * To provide the placeholder text for the Textarea.\n */\n placeholder: PropTypes.string,\n /**\n * To specify whether the Textarea is required.\n */\n required: PropTypes.bool,\n /**\n * To specify whether the Textarea is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * To provide additional classnames to the Textarea container.\n */\n className: PropTypes.string,\n /**\n * The resize property sets whether the Textarea is resizable.\n */\n resize: PropTypes.oneOf(Object.values(RESIZE)),\n /**\n * To specify the text that appears below the Textarea.\n */\n helpText: PropTypes.string,\n /**\n * To create a Textarea without any borders.\n */\n nakedTextarea: PropTypes.bool,\n /**\n * To specify a maximum character limit to the Textarea. Charater limit is visible only if the Textarea value is greater than or equal to 85% of the maximum character limit.\n */\n maxLength: PropTypes.number,\n /**\n * To be used along with maxLength prop. When set to true the character limit will not be enforced and character count will be shown in error state if the character limit is exceeded.\n */\n unlimitedChars: PropTypes.bool,\n /**\n * To specify the content to be added at the end of the Textarea.\n */\n suffix: PropTypes.node,\n /**\n * To specify the content to be added at the beginning of the Textarea.\n */\n prefix: PropTypes.node,\n /**\n * To disable leading and trailing white spaces onBlur.\n */\n disableTrimOnBlur: PropTypes.bool,\n};\n\nexport default Textarea;\n"],"names":["useSyncedRef","ref","innerRef","useRef","useEffect","current","SIZES","small","medium","large","ROWS","RESIZE","vertical","none","Textarea","forwardRef","_ref","_ref2","_otherProps$value","_otherProps$onChange","_ref$size","size","_ref$resize","resize","_ref$suffix","suffix","_ref$prefix","prefix","_ref$disabled","disabled","_ref$required","required","_ref$nakedTextarea","nakedTextarea","_ref$helpText","helpText","_ref$error","error","_ref$label","label","_ref$className","className","maxLength","_ref$unlimitedChars","unlimitedChars","labelProps","onBlur","_ref$disableTrimOnBlu","disableTrimOnBlur","otherProps","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","valueInternal","setValueInternal","value","id","useId","errorId","concat","helpTextId","textareaRef","valueLength","toString","length","isCharacterLimitVisible","maxLengthError","onChangeInternal","e","target","onChange","isMaxLengthPresent","style","minHeight","height","scrollHeight","handleTrimmedChangeOnBlur","trimmedValue","trim","handleOnBlur","React","createElement","classnames","Label","_extends","hyphenize","htmlFor","rows","_objectSpread","displayName"],"mappings":";;;;;;;;;;;;;;AAEA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAGC,GAAG,EAAI;EAC1B,IAAMC,QAAQ,GAAGC,MAAM,EAAE,CAAA;AAEzBC,EAAAA,SAAS,CAAC,YAAM;IACd,IAAI,CAACH,GAAG,EAAE,OAAA;AAEV,IAAA,IAAI,OAAOA,GAAG,KAAK,UAAU,EAAE;AAC7BA,MAAAA,GAAG,CAACC,QAAQ,CAACG,OAAO,C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AAqB,MAAA,CAAY0B,SAAS,CAACjD,KAAK,CAAC,EAAe,cAAA,CAAA;AAC3CoB,IAAAA,EAAE,EAAEE,OAAAA;AAAQ,GAAA,EAEXxB,KAAK,CAET,EACAF,QAAQ,iBACPgD,cAAA,CAAAC,aAAA,CAAA,GAAA,EAAA;AAAG3C,IAAAA,SAAS,EAAC,2BAA2B;AAACkB,IAAAA,EAAE,EAAEI,UAAAA;GAC1C5B,EAAAA,QAAQ,CAEZ,CACG,CAAA;AAEV,CAAC,EACF;AAEDrB,QAAQ,CAAC8E,WAAW,GAAG,UAAU;;;;"}
package/dist/Textarea.js CHANGED
@@ -10,7 +10,7 @@ import '@bigbinary/neeto-hotkeys';
10
10
  import './overlayManager.js';
11
11
  import './index-C9RIWUPw.js';
12
12
  import 'qs';
13
- export { T as default } from './Textarea-0AgZQSvH.js';
13
+ export { T as default } from './Textarea-VhikMg-a.js';
14
14
  import './Label.js';
15
15
  import '@babel/runtime/helpers/classCallCheck';
16
16
  import '@babel/runtime/helpers/createClass';
@@ -25,7 +25,7 @@ import 'react-colorful';
25
25
  import './useRecentlyUsedColors-CvgVrIg-.js';
26
26
  import './Dropdown.js';
27
27
  import './index-C9RIWUPw.js';
28
- export { T as default } from './index-CZan-OsS.js';
28
+ export { T as default } from './index-WFzj9lqQ.js';
29
29
  import './Input.js';
30
30
  import './Label.js';
31
31
  import './MultiEmailInput.js';
@@ -34,7 +34,7 @@ import './useId-Jj9hXm-g.js';
34
34
  import '@bigbinary/neeto-hotkeys';
35
35
  import './overlayManager.js';
36
36
  import 'qs';
37
- import './Textarea-0AgZQSvH.js';
37
+ import './Textarea-VhikMg-a.js';
38
38
  import './Pane.js';
39
39
  import './Popover.js';
40
40
  import 'framer-motion';
@@ -28,7 +28,7 @@ require('react-i18next');
28
28
  require('./useRecentlyUsedColors-D9b7Om0L.js');
29
29
  require('./Dropdown.js');
30
30
  require('./index-Ci1VcKxO.js');
31
- var DatePicker = require('./index-pNTDmN6J.js');
31
+ var DatePicker = require('./index-OqMH-4B8.js');
32
32
  require('./Input.js');
33
33
  require('./Label.js');
34
34
  require('./MultiEmailInput.js');
@@ -37,7 +37,7 @@ require('./useId-DXHUzdxd.js');
37
37
  require('@bigbinary/neeto-hotkeys');
38
38
  require('./overlayManager.js');
39
39
  require('qs');
40
- require('./Textarea-BIHQ-Xj3.js');
40
+ require('./Textarea-DRm4VyzW.js');
41
41
  require('./Pane.js');
42
42
  require('./Popover.js');
43
43
  require('framer-motion');
@@ -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.hyphenatedDataCyLabel, "-select-option")
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
  };