@trops/dash-react 1.0.19 → 1.0.20

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
@@ -3276,6 +3276,9 @@ var SelectInput = function SelectInput(_ref) {
3276
3276
  className: "truncate",
3277
3277
  children: selectedOption ? selectedOption.label : placeholder
3278
3278
  })]
3279
+ }), (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.badge) && /*#__PURE__*/jsx("span", {
3280
+ className: "flex-shrink-0",
3281
+ children: selectedOption.badge
3279
3282
  }), /*#__PURE__*/jsx(FontAwesomeIcon, {
3280
3283
  icon: "chevron-down",
3281
3284
  className: "h-3 w-3 shrink-0 opacity-50 transition-transform duration-150 ".concat(isOpen ? "rotate-180" : "")
@@ -3299,9 +3302,12 @@ var SelectInput = function SelectInput(_ref) {
3299
3302
  }), /*#__PURE__*/jsx("span", {
3300
3303
  className: "truncate",
3301
3304
  children: option.label
3305
+ }), option.badge && /*#__PURE__*/jsx("span", {
3306
+ className: "flex-shrink-0 ml-auto",
3307
+ children: option.badge
3302
3308
  }), isSelected && /*#__PURE__*/jsx(FontAwesomeIcon, {
3303
3309
  icon: "check",
3304
- className: "h-3 w-3 shrink-0 ml-auto opacity-70"
3310
+ className: "h-3 w-3 shrink-0 opacity-70".concat(option.badge ? "" : " ml-auto")
3305
3311
  })]
3306
3312
  }, option.value);
3307
3313
  })