bord-design-system 0.0.30 → 0.0.31

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.
@@ -1 +1 @@
1
- {"version":3,"file":"BordSelect.d.ts","sourceRoot":"","sources":["../../../src/components/BordSelect/BordSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAA6B,MAAM,OAAO,CAAC;AAQ3D,OAAO,KAAK,EAAyB,gBAAgB,EAA0B,MAAM,oBAAoB,CAAC;AAM1G,OAAO,mBAAmB,CAAC;AAQ3B,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,gBAAgB,CAgSpC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"BordSelect.d.ts","sourceRoot":"","sources":["../../../src/components/BordSelect/BordSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAA6B,MAAM,OAAO,CAAC;AAQ3D,OAAO,KAAK,EAAyB,gBAAgB,EAA0B,MAAM,oBAAoB,CAAC;AAM1G,OAAO,mBAAmB,CAAC;AAQ3B,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,gBAAgB,CAqSpC,CAAC;AAEF,eAAe,UAAU,CAAC"}
package/dist/index.esm.js CHANGED
@@ -11402,7 +11402,11 @@ const BordSelect = props => {
11402
11402
  }
11403
11403
  if (normalizedSearchText && !hasExactMatch) {
11404
11404
  const searchedText = searchText.trim();
11405
- const noMatchContent = renderNoMatch ? (renderNoMatch(searchedText)) : (jsx(BordSelectSearchState, { message: searchNoExactMatchText(searchedText), spacious: !hasPartialMatches, noMatchActionLabel: onNoMatchAction ? noMatchActionLabel : undefined, onAction: onNoMatchAction ? () => onNoMatchAction(searchedText) : undefined }));
11405
+ const handleNoMatchAction = () => {
11406
+ onNoMatchAction?.(searchedText);
11407
+ closeDropdown();
11408
+ };
11409
+ const noMatchContent = renderNoMatch ? (renderNoMatch(searchedText)) : (jsx(BordSelectSearchState, { message: searchNoExactMatchText(searchedText), spacious: !hasPartialMatches, noMatchActionLabel: onNoMatchAction ? noMatchActionLabel : undefined, onAction: onNoMatchAction ? handleNoMatchAction : undefined }));
11406
11410
  return (jsxs(Fragment, { children: [optionsList, noMatchContent] }));
11407
11411
  }
11408
11412
  return optionsList;