@ballistix.digital/react-components 9.5.1-rc-366.0 → 9.5.1

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.esm.js CHANGED
@@ -2323,25 +2323,6 @@ const $0f7b65f3f54c9363$var$SelectMenu = (props)=>{
2323
2323
  }, [
2324
2324
  error
2325
2325
  ]);
2326
- const handleFormatOptionLabel = (data)=>{
2327
- if (searchInputOptionRenderer && data.value.startsWith($0f7b65f3f54c9363$var$searchPrefix)) {
2328
- const tagItem = (0, $4MPRY$jsx)("div", {
2329
- className: styles.tagItem,
2330
- children: (0, $4MPRY$jsx)("p", {
2331
- className: styles.tagItemText,
2332
- children: data.label
2333
- })
2334
- });
2335
- return (0, $4MPRY$jsx)("div", {
2336
- className: styles.listItem,
2337
- children: searchInputOptionRenderer(tagItem)
2338
- });
2339
- }
2340
- return (0, $4MPRY$jsx)("div", {
2341
- className: styles.listItem,
2342
- children: data.label
2343
- });
2344
- };
2345
2326
  return (0, $4MPRY$jsxs)("div", {
2346
2327
  className: styles.container,
2347
2328
  "data-testid": selectDataTestId,
@@ -2386,7 +2367,28 @@ const $0f7b65f3f54c9363$var$SelectMenu = (props)=>{
2386
2367
  onChange: handleChange,
2387
2368
  onSearchInputChange: handleSearchInputChange,
2388
2369
  //
2389
- formatOptionLabel: searchInputOptionRenderer ? handleFormatOptionLabel : undefined,
2370
+ formatOptionLabel: (data)=>{
2371
+ if (searchInputOptionRenderer && data.value.startsWith($0f7b65f3f54c9363$var$searchPrefix)) {
2372
+ const tagItem = (0, $4MPRY$jsx)("div", {
2373
+ className: styles.listItem,
2374
+ children: (0, $4MPRY$jsx)("div", {
2375
+ className: styles.tagItem,
2376
+ children: (0, $4MPRY$jsx)("p", {
2377
+ className: styles.tagItemText,
2378
+ children: data.label
2379
+ })
2380
+ })
2381
+ });
2382
+ return (0, $4MPRY$jsx)("div", {
2383
+ className: styles.listItem,
2384
+ children: searchInputOptionRenderer(tagItem)
2385
+ });
2386
+ }
2387
+ return (0, $4MPRY$jsx)("div", {
2388
+ className: styles.listItem,
2389
+ children: data.label
2390
+ });
2391
+ },
2390
2392
  classNames: {
2391
2393
  menuButton: ()=>(0, $66c3dcaaa74b5389$export$4370d69198e9314a)(styles.input, `bx-select-menu-${name}`, state === null && '*:text-gray-300! ', state === null && !isValid && isTouched && '*:text-red-300!'),
2392
2394
  menu: styles.menu,