@ballistix.digital/react-components 9.5.2 → 9.5.3

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/index.js CHANGED
@@ -2296,7 +2296,6 @@ const $0c7305af577f9538$var$styles = {
2296
2296
  var $0c7305af577f9538$export$2e2bcd8739ae039 = $0c7305af577f9538$var$styles;
2297
2297
 
2298
2298
 
2299
- const $cb1b9d36d0757897$var$searchPrefix = '__search__';
2300
2299
  const $cb1b9d36d0757897$var$SelectMenu = (props)=>{
2301
2300
  const { name: name = 'select-menu-form', label: label, description: description, hint: hint, placeholder: placeholder, options: options, required: required, value: value, error: error, isRequired: isRequired = false, isLoading: isLoading, isTouched: isTouched = false, isDisabled: isDisabled, isClearable: isClearable = true, isMultiple: isMultiple = false, isSearchable: isSearchable = true, isSolo: isSolo = false, isOptionalLabelHidden: isOptionalLabelHidden = false, onChange: onChange, onSearchInputChange: onSearchInputChange, onClear: onClear, onBlur: onBlur, searchInputOptionRenderer: searchInputOptionRenderer, dataTestId: dataTestId, styles: stylesOverrides } = props;
2302
2301
  const [isFocus, setIsFocus] = (0, $iA2ta$react.useState)(true);
@@ -2329,7 +2328,8 @@ const $cb1b9d36d0757897$var$SelectMenu = (props)=>{
2329
2328
  ...options,
2330
2329
  {
2331
2330
  label: searchValue,
2332
- value: $cb1b9d36d0757897$var$searchPrefix + searchValue
2331
+ value: searchValue,
2332
+ isSearch: true
2333
2333
  }
2334
2334
  ];
2335
2335
  }, [
@@ -2392,7 +2392,7 @@ const $cb1b9d36d0757897$var$SelectMenu = (props)=>{
2392
2392
  error
2393
2393
  ]);
2394
2394
  const handleFormatOptionLabel = (data)=>{
2395
- if (searchInputOptionRenderer && data.value.startsWith($cb1b9d36d0757897$var$searchPrefix)) {
2395
+ if (searchInputOptionRenderer && !!data.isSearch) {
2396
2396
  const tagItem = (0, $iA2ta$reactjsxruntime.jsx)("div", {
2397
2397
  className: styles.tagItem,
2398
2398
  children: (0, $iA2ta$reactjsxruntime.jsx)("p", {