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

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,6 +2323,25 @@ 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
+ };
2326
2345
  return (0, $4MPRY$jsxs)("div", {
2327
2346
  className: styles.container,
2328
2347
  "data-testid": selectDataTestId,
@@ -2367,28 +2386,7 @@ const $0f7b65f3f54c9363$var$SelectMenu = (props)=>{
2367
2386
  onChange: handleChange,
2368
2387
  onSearchInputChange: handleSearchInputChange,
2369
2388
  //
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
- },
2389
+ formatOptionLabel: searchInputOptionRenderer ? handleFormatOptionLabel : undefined,
2392
2390
  classNames: {
2393
2391
  menuButton: ()=>(0, $66c3dcaaa74b5389$export$4370d69198e9314a)(styles.input, `bx-select-menu-${name}`, state === null && '*:text-gray-300! ', state === null && !isValid && isTouched && '*:text-red-300!'),
2394
2392
  menu: styles.menu,