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