@dloizides/ui-layout 1.65.0 → 1.66.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.mjs CHANGED
@@ -1008,6 +1008,7 @@ var styles11 = StyleSheet.create({
1008
1008
  track: {
1009
1009
  flexDirection: "row",
1010
1010
  alignSelf: "flex-start",
1011
+ maxWidth: "100%",
1011
1012
  alignItems: "center",
1012
1013
  gap: TRACK_PADDING + 1,
1013
1014
  padding: TRACK_PADDING,
@@ -1015,6 +1016,7 @@ var styles11 = StyleSheet.create({
1015
1016
  borderWidth: BORDER_WIDTH
1016
1017
  },
1017
1018
  segment: {
1019
+ flexShrink: 1,
1018
1020
  minHeight: MIN_TARGET_PX,
1019
1021
  justifyContent: "center",
1020
1022
  paddingHorizontal: SEGMENT_PAD_H,
@@ -3759,6 +3761,7 @@ var DayCard = ({
3759
3761
  accessibilityHint,
3760
3762
  badgeTone = "warning" /* Warning */,
3761
3763
  badgeFill = "solid" /* Solid */,
3764
+ badgeColors,
3762
3765
  badgeIcon,
3763
3766
  layout = "grouped" /* Grouped */,
3764
3767
  testID,
@@ -3766,7 +3769,7 @@ var DayCard = ({
3766
3769
  }) => {
3767
3770
  const { theme } = useUi();
3768
3771
  const { colors } = theme;
3769
- const tint = badgeFill === "tint" /* Tint */ ? resolveTintColors(theme, badgeTone) : void 0;
3772
+ const tint = badgeColors ?? (badgeFill === "tint" /* Tint */ ? resolveTintColors(theme, badgeTone) : void 0);
3770
3773
  const surface = { backgroundColor: colors.surface, borderColor: colors.border };
3771
3774
  const iconInk = tint?.color ?? colors.textSecondary;
3772
3775
  const icon = badgeIcon === void 0 ? void 0 : /* @__PURE__ */ jsx(SvgIcon, { color: iconInk, name: badgeIcon, size: BADGE_ICON_SIZE });