@dloizides/ui-layout 1.65.0 → 1.66.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
@@ -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 });
@@ -3898,16 +3901,20 @@ function isRecordHeaderCompact(width, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT) {
3898
3901
  }
3899
3902
  var GAP2 = 8;
3900
3903
  var WIDE_GAP = 16;
3904
+ var ACTIONS_MAX_SHARE = "60%";
3901
3905
  var styles38 = StyleSheet.create({
3902
- actions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2, justifyContent: "flex-end" },
3906
+ actions: { alignItems: "center", flexDirection: "row", flexShrink: 1, flexWrap: "wrap", gap: GAP2, justifyContent: "flex-end", maxWidth: ACTIONS_MAX_SHARE },
3903
3907
  compactActions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2 },
3904
3908
  identity: { flex: 1, gap: GAP2, minWidth: 0 },
3905
3909
  root: { gap: GAP2 },
3906
3910
  top: { alignItems: "flex-start", flexDirection: "row", gap: WIDE_GAP }
3907
3911
  });
3912
+ function actionsStyleOf(compact) {
3913
+ return compact ? styles38.compactActions : styles38.actions;
3914
+ }
3908
3915
  var RecordHeader = ({ breadcrumb, title, meta, actions, collapseBelow, testID }) => {
3909
3916
  const compact = isRecordHeaderCompact(useWindowDimensions().width, collapseBelow);
3910
- const actionRow = actions === void 0 ? null : /* @__PURE__ */ jsx(View, { style: compact ? styles38.compactActions : styles38.actions, children: actions });
3917
+ const actionRow = actions === void 0 ? null : /* @__PURE__ */ jsx(View, { style: actionsStyleOf(compact), children: actions });
3911
3918
  return /* @__PURE__ */ jsx(View, { style: styles38.root, testID, children: /* @__PURE__ */ jsxs(View, { style: compact ? styles38.root : styles38.top, children: [
3912
3919
  /* @__PURE__ */ jsxs(View, { style: styles38.identity, children: [
3913
3920
  breadcrumb,