@dloizides/ui-tables 1.18.0 → 1.18.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.mjs CHANGED
@@ -1565,6 +1565,10 @@ function TypeaheadField({ field, barTestID, value, onChange, onSubmit, optionHin
1565
1565
  }
1566
1566
  );
1567
1567
  }
1568
+ function clampedMinWidth(minWidth) {
1569
+ if (Platform.OS !== "web") return minWidth;
1570
+ return `min(${minWidth}px, 100%)`;
1571
+ }
1568
1572
  var EMPTY_RANGE = { from: "", to: "" };
1569
1573
  var GROW_FLEX = 1;
1570
1574
  function asString(value) {
@@ -1648,7 +1652,7 @@ function FilterFieldView({ field, barTestID, values, setField, onSubmit, strings
1648
1652
  return /* @__PURE__ */ jsx(
1649
1653
  Field,
1650
1654
  {
1651
- containerStyle: [filterStyles.fieldInBar, { minWidth }, grow, field.style],
1655
+ containerStyle: [filterStyles.fieldInBar, { minWidth: clampedMinWidth(minWidth), maxWidth: "100%" }, grow, field.style],
1652
1656
  label: field.label,
1653
1657
  labelVariant: "control",
1654
1658
  testID: field.testID ?? fieldTestID(barTestID, field.key),