@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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.66.1
4
+
5
+ - `RecordHeader`: beside the title the actions row takes at most 60% of the width and wraps, so the title and id chips keep the rest (they were squeezed to the space the unwrapped actions left). `actionsStyleOf(compact)` exported.
6
+
3
7
  ## 1.65.0
4
8
 
5
9
  - MODC-1 "Module C unified console" scroll-0 fix. With the scroll spy on, the scroller at its top marks the first section current, even when `initialKey` names a later one or a short first section lets the second cross the activation line (`ScrollViewport` gains `atStart`). The collapsed (chips) layout opens on `collapsedKey` only, else the first chip; `initialKey` no longer applies below the index breakpoint.
package/dist/index.d.mts CHANGED
@@ -1333,6 +1333,11 @@ declare const enum DayCardLayout {
1333
1333
  Separate = "separate"
1334
1334
  }
1335
1335
 
1336
+ /** Explicit badge fill and ink, e.g. a brand colour from the app's theme config. */
1337
+ interface DayBadgeColors {
1338
+ backgroundColor: string;
1339
+ color: string;
1340
+ }
1336
1341
  interface DayCardProps {
1337
1342
  label: string;
1338
1343
  badge: string;
@@ -1341,13 +1346,14 @@ interface DayCardProps {
1341
1346
  accessibilityHint: string;
1342
1347
  badgeTone?: BadgeTone;
1343
1348
  badgeFill?: DayBadgeFill;
1349
+ badgeColors?: DayBadgeColors;
1344
1350
  badgeIcon?: IconName;
1345
1351
  layout?: DayCardLayout;
1346
1352
  testID?: string;
1347
1353
  children: React.ReactNode;
1348
1354
  }
1349
1355
  /** One day of a list: its label, an age badge and the item count over the day's rows, in one card or one card per row (`layout`). */
1350
- declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, badgeFill, badgeIcon, layout, testID, children, }: DayCardProps) => React.ReactElement;
1356
+ declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, badgeFill, badgeColors, badgeIcon, layout, testID, children, }: DayCardProps) => React.ReactElement;
1351
1357
 
1352
1358
  /** The style of one figure cell: an equal share of the strip when wide, half a row when narrow; span widens it. */
1353
1359
  declare function figureCell(wide: boolean, span?: number): StyleProp<ViewStyle>;
@@ -1424,7 +1430,7 @@ interface RecordHeaderProps {
1424
1430
  collapseBelow?: number;
1425
1431
  testID?: string;
1426
1432
  }
1427
- /** A record page header: breadcrumb, title and id meta left, record actions top right; stacked on a phone. */
1433
+ /** A record page header: breadcrumb, title and id meta left, record actions top right (at most 60%, wrapping); stacked on a phone. */
1428
1434
  declare const RecordHeader: ({ breadcrumb, title, meta, actions, collapseBelow, testID }: RecordHeaderProps) => React.ReactElement;
1429
1435
 
1430
1436
  interface BreadcrumbItem {
@@ -1608,4 +1614,4 @@ interface ListDetailVisibility {
1608
1614
  /** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
1609
1615
  declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
1610
1616
 
1611
- export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, SPY_ACTIVATION_RATIO, SPY_CLICK_LOCK_MS, type ScaledFrame, ScreenColumn, type ScreenColumnProps, type ScrollSpyControl, type ScrollSpyOptions, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, type StickyIndexConfig, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, pickActiveIndex, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useScrollSpy, useVisibleViewport };
1617
+ export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, type DayBadgeColors, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, SPY_ACTIVATION_RATIO, SPY_CLICK_LOCK_MS, type ScaledFrame, ScreenColumn, type ScreenColumnProps, type ScrollSpyControl, type ScrollSpyOptions, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, type StickyIndexConfig, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, pickActiveIndex, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useScrollSpy, useVisibleViewport };
package/dist/index.d.ts CHANGED
@@ -1333,6 +1333,11 @@ declare const enum DayCardLayout {
1333
1333
  Separate = "separate"
1334
1334
  }
1335
1335
 
1336
+ /** Explicit badge fill and ink, e.g. a brand colour from the app's theme config. */
1337
+ interface DayBadgeColors {
1338
+ backgroundColor: string;
1339
+ color: string;
1340
+ }
1336
1341
  interface DayCardProps {
1337
1342
  label: string;
1338
1343
  badge: string;
@@ -1341,13 +1346,14 @@ interface DayCardProps {
1341
1346
  accessibilityHint: string;
1342
1347
  badgeTone?: BadgeTone;
1343
1348
  badgeFill?: DayBadgeFill;
1349
+ badgeColors?: DayBadgeColors;
1344
1350
  badgeIcon?: IconName;
1345
1351
  layout?: DayCardLayout;
1346
1352
  testID?: string;
1347
1353
  children: React.ReactNode;
1348
1354
  }
1349
1355
  /** One day of a list: its label, an age badge and the item count over the day's rows, in one card or one card per row (`layout`). */
1350
- declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, badgeFill, badgeIcon, layout, testID, children, }: DayCardProps) => React.ReactElement;
1356
+ declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, badgeFill, badgeColors, badgeIcon, layout, testID, children, }: DayCardProps) => React.ReactElement;
1351
1357
 
1352
1358
  /** The style of one figure cell: an equal share of the strip when wide, half a row when narrow; span widens it. */
1353
1359
  declare function figureCell(wide: boolean, span?: number): StyleProp<ViewStyle>;
@@ -1424,7 +1430,7 @@ interface RecordHeaderProps {
1424
1430
  collapseBelow?: number;
1425
1431
  testID?: string;
1426
1432
  }
1427
- /** A record page header: breadcrumb, title and id meta left, record actions top right; stacked on a phone. */
1433
+ /** A record page header: breadcrumb, title and id meta left, record actions top right (at most 60%, wrapping); stacked on a phone. */
1428
1434
  declare const RecordHeader: ({ breadcrumb, title, meta, actions, collapseBelow, testID }: RecordHeaderProps) => React.ReactElement;
1429
1435
 
1430
1436
  interface BreadcrumbItem {
@@ -1608,4 +1614,4 @@ interface ListDetailVisibility {
1608
1614
  /** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
1609
1615
  declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
1610
1616
 
1611
- export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, SPY_ACTIVATION_RATIO, SPY_CLICK_LOCK_MS, type ScaledFrame, ScreenColumn, type ScreenColumnProps, type ScrollSpyControl, type ScrollSpyOptions, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, type StickyIndexConfig, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, pickActiveIndex, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useScrollSpy, useVisibleViewport };
1617
+ export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, type DayBadgeColors, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, SPY_ACTIVATION_RATIO, SPY_CLICK_LOCK_MS, type ScaledFrame, ScreenColumn, type ScreenColumnProps, type ScrollSpyControl, type ScrollSpyOptions, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, type StickyIndexConfig, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, pickActiveIndex, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useScrollSpy, useVisibleViewport };
package/dist/index.js CHANGED
@@ -1014,6 +1014,7 @@ var styles11 = reactNative.StyleSheet.create({
1014
1014
  track: {
1015
1015
  flexDirection: "row",
1016
1016
  alignSelf: "flex-start",
1017
+ maxWidth: "100%",
1017
1018
  alignItems: "center",
1018
1019
  gap: TRACK_PADDING + 1,
1019
1020
  padding: TRACK_PADDING,
@@ -1021,6 +1022,7 @@ var styles11 = reactNative.StyleSheet.create({
1021
1022
  borderWidth: BORDER_WIDTH
1022
1023
  },
1023
1024
  segment: {
1025
+ flexShrink: 1,
1024
1026
  minHeight: MIN_TARGET_PX,
1025
1027
  justifyContent: "center",
1026
1028
  paddingHorizontal: SEGMENT_PAD_H,
@@ -3765,6 +3767,7 @@ var DayCard = ({
3765
3767
  accessibilityHint,
3766
3768
  badgeTone = "warning" /* Warning */,
3767
3769
  badgeFill = "solid" /* Solid */,
3770
+ badgeColors,
3768
3771
  badgeIcon,
3769
3772
  layout = "grouped" /* Grouped */,
3770
3773
  testID,
@@ -3772,7 +3775,7 @@ var DayCard = ({
3772
3775
  }) => {
3773
3776
  const { theme } = uiFeedback.useUi();
3774
3777
  const { colors } = theme;
3775
- const tint = badgeFill === "tint" /* Tint */ ? resolveTintColors(theme, badgeTone) : void 0;
3778
+ const tint = badgeColors ?? (badgeFill === "tint" /* Tint */ ? resolveTintColors(theme, badgeTone) : void 0);
3776
3779
  const surface = { backgroundColor: colors.surface, borderColor: colors.border };
3777
3780
  const iconInk = tint?.color ?? colors.textSecondary;
3778
3781
  const icon = badgeIcon === void 0 ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color: iconInk, name: badgeIcon, size: BADGE_ICON_SIZE });
@@ -3904,16 +3907,20 @@ function isRecordHeaderCompact(width, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT) {
3904
3907
  }
3905
3908
  var GAP2 = 8;
3906
3909
  var WIDE_GAP = 16;
3910
+ var ACTIONS_MAX_SHARE = "60%";
3907
3911
  var styles38 = reactNative.StyleSheet.create({
3908
- actions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2, justifyContent: "flex-end" },
3912
+ actions: { alignItems: "center", flexDirection: "row", flexShrink: 1, flexWrap: "wrap", gap: GAP2, justifyContent: "flex-end", maxWidth: ACTIONS_MAX_SHARE },
3909
3913
  compactActions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2 },
3910
3914
  identity: { flex: 1, gap: GAP2, minWidth: 0 },
3911
3915
  root: { gap: GAP2 },
3912
3916
  top: { alignItems: "flex-start", flexDirection: "row", gap: WIDE_GAP }
3913
3917
  });
3918
+ function actionsStyleOf(compact) {
3919
+ return compact ? styles38.compactActions : styles38.actions;
3920
+ }
3914
3921
  var RecordHeader = ({ breadcrumb, title, meta, actions, collapseBelow, testID }) => {
3915
3922
  const compact = isRecordHeaderCompact(reactNative.useWindowDimensions().width, collapseBelow);
3916
- const actionRow = actions === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: compact ? styles38.compactActions : styles38.actions, children: actions });
3923
+ const actionRow = actions === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: actionsStyleOf(compact), children: actions });
3917
3924
  return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles38.root, testID, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: compact ? styles38.root : styles38.top, children: [
3918
3925
  /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles38.identity, children: [
3919
3926
  breadcrumb,