@dloizides/ui-layout 1.26.3 → 1.26.4

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
@@ -138,11 +138,14 @@ var styles3 = StyleSheet.create({
138
138
  paddingHorizontal: DEFAULT_PADDING_H,
139
139
  paddingVertical: DEFAULT_PADDING_V,
140
140
  borderRadius: DEFAULT_BORDER_RADIUS,
141
- alignSelf: "flex-start"
141
+ alignSelf: "flex-start",
142
+ // Never wider than the container: a long label wraps inside the pill instead of being clipped.
143
+ maxWidth: "100%"
142
144
  },
143
145
  text: {
144
146
  fontSize: DEFAULT_FONT_SIZE,
145
- fontWeight: "600"
147
+ fontWeight: "600",
148
+ flexShrink: 1
146
149
  }
147
150
  });
148
151
  var StatusBadge = ({