@trops/dash-react 1.0.20 → 1.0.22

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
@@ -3268,7 +3268,7 @@ var SelectInput = function SelectInput(_ref) {
3268
3268
  },
3269
3269
  className: "w-full rounded-md border px-3 py-2 transition-colors duration-150 ".concat(styles.backgroundColor, " ").concat(styles.borderColor, " ").concat(styles.textColor, " focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-0 ").concat(styles.focusRingColor || "", " disabled:opacity-50 disabled:cursor-not-allowed text-left flex items-center justify-between gap-2 ").concat(inputClassName),
3270
3270
  children: [/*#__PURE__*/jsxs("span", {
3271
- className: "flex items-center gap-2 truncate",
3271
+ className: "flex items-center gap-2 truncate flex-1 min-w-0",
3272
3272
  children: [(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.icon) && /*#__PURE__*/jsx(FontAwesomeIcon, {
3273
3273
  icon: selectedOption.icon,
3274
3274
  className: "h-3.5 w-3.5 shrink-0 opacity-70"
@@ -3297,7 +3297,7 @@ var SelectInput = function SelectInput(_ref) {
3297
3297
  },
3298
3298
  className: "w-full text-left px-3 py-1.5 flex items-center gap-2 text-sm transition-colors duration-150 ".concat(isSelected ? "".concat(itemStyles.selectedBackgroundColor || itemStyles.hoverBackgroundColor, " ").concat(itemStyles.selectedTextColor || styles.textColor) : "".concat(styles.textColor, " ").concat(itemStyles.hoverBackgroundColor, " ").concat(itemStyles.hoverTextColor)),
3299
3299
  children: [option.icon && /*#__PURE__*/jsx(FontAwesomeIcon, {
3300
- icon: option.icon,
3300
+ icon: isSelected ? "check" : option.icon,
3301
3301
  className: "h-3.5 w-3.5 shrink-0 opacity-70"
3302
3302
  }), /*#__PURE__*/jsx("span", {
3303
3303
  className: "truncate",
@@ -3305,9 +3305,6 @@ var SelectInput = function SelectInput(_ref) {
3305
3305
  }), option.badge && /*#__PURE__*/jsx("span", {
3306
3306
  className: "flex-shrink-0 ml-auto",
3307
3307
  children: option.badge
3308
- }), isSelected && /*#__PURE__*/jsx(FontAwesomeIcon, {
3309
- icon: "check",
3310
- className: "h-3 w-3 shrink-0 opacity-70".concat(option.badge ? "" : " ml-auto")
3311
3308
  })]
3312
3309
  }, option.value);
3313
3310
  })