@dloizides/ui-layout 1.52.0 → 1.54.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.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  import React, { RefObject } from 'react';
2
2
  import { Text, StyleProp, ViewStyle, TextStyle, View } from 'react-native';
3
3
  import { UiTheme } from '@dloizides/ui-feedback';
4
+ import { IconName } from '@dloizides/ui-icons';
4
5
 
5
6
  /**
6
7
  * Heading — themed section heading text, rendered as a REAL `<h1>`–`<h6>` on web.
@@ -56,9 +57,15 @@ interface SectionProps {
56
57
  variant?: SectionVariant;
57
58
  title?: string;
58
59
  titleLevel?: HeadingLevel;
60
+ padding?: SectionPadding;
59
61
  testID?: string;
60
62
  }
61
- declare const Section: ({ children, style, variant, title, titleLevel, testID, }: SectionProps) => React.ReactElement;
63
+ /** Inner padding: one value for every side, or a vertical and horizontal pair. */
64
+ type SectionPadding = number | {
65
+ vertical: number;
66
+ horizontal: number;
67
+ };
68
+ declare const Section: ({ children, style, variant, title, titleLevel, padding, testID, }: SectionProps) => React.ReactElement;
62
69
 
63
70
  declare enum TextKind {
64
71
  Title = "title",
@@ -116,6 +123,8 @@ interface ToneColors {
116
123
  }
117
124
  /** Fill and ink (>= 4.5:1 on the fill) for a tone; a tone no theme fill can carry falls back to neutral. */
118
125
  declare function resolveToneColors(theme: UiTheme, tone: BadgeTone): ToneColors;
126
+ /** Light tint fill with the tone's deep ink; a theme without a tint step falls back to the solid tone colours. */
127
+ declare function resolveTintColors(theme: UiTheme, tone: BadgeTone): ToneColors;
119
128
 
120
129
  interface CountBadgeProps {
121
130
  count: number;
@@ -1008,6 +1017,8 @@ declare const LAYOUT_TEST_IDS: {
1008
1017
  readonly accordion: "accordion";
1009
1018
  /** Default testID for the `BuildInfoFooter` caption (`v<version>`). */
1010
1019
  readonly buildInfoFooter: "build-info-footer";
1020
+ readonly stickyActionBar: "sticky-action-bar";
1021
+ readonly pageHead: "page-head";
1011
1022
  };
1012
1023
  /** Window width (px) below which a dialog footer stacks its actions full width. */
1013
1024
  declare const MODAL_FOOTER_STACK_BELOW = 400;
@@ -1220,10 +1231,12 @@ interface SectionIndexLayoutProps {
1220
1231
  density?: SectionDensity;
1221
1232
  stickyIndex?: boolean;
1222
1233
  chipOverflow?: ChipOverflow;
1234
+ indexWidth?: number;
1223
1235
  testID?: string;
1224
1236
  }
1225
- declare const SectionIndexLayout: ({ sections, indexHeading, itemHint, initialKey, breakpoint, density, stickyIndex, chipOverflow, testID, }: SectionIndexLayoutProps) => React.ReactElement;
1237
+ declare const SectionIndexLayout: ({ sections, indexHeading, itemHint, initialKey, breakpoint, density, stickyIndex, chipOverflow, indexWidth, testID, }: SectionIndexLayoutProps) => React.ReactElement;
1226
1238
 
1239
+ declare const SECTION_INDEX_WIDTH = 200;
1227
1240
  interface SectionIndexProps {
1228
1241
  sections: ReadonlyArray<SectionIndexEntry>;
1229
1242
  activeKey: string;
@@ -1231,8 +1244,9 @@ interface SectionIndexProps {
1231
1244
  itemHint: string;
1232
1245
  onSelect: (key: string) => void;
1233
1246
  testID: string;
1247
+ width?: number;
1234
1248
  }
1235
- declare const SectionIndex: ({ sections, activeKey, heading, itemHint, onSelect, testID }: SectionIndexProps) => React.ReactElement;
1249
+ declare const SectionIndex: ({ sections, activeKey, heading, itemHint, onSelect, testID, width }: SectionIndexProps) => React.ReactElement;
1236
1250
 
1237
1251
  interface SectionChipsProps {
1238
1252
  sections: ReadonlyArray<SectionIndexEntry>;
@@ -1248,6 +1262,12 @@ declare const SectionChips: ({ sections, activeKey, groupLabel, itemHint, overfl
1248
1262
  declare const SECTION_INDEX_BREAKPOINT = 1024;
1249
1263
  declare function resolveActiveKey(sections: ReadonlyArray<SectionIndexEntry>, wanted: string | undefined): string;
1250
1264
 
1265
+ /** How the DayCard age badge is filled: a solid tone fill or a light tint with tone-coloured ink. */
1266
+ declare const enum DayBadgeFill {
1267
+ Solid = "solid",
1268
+ Tint = "tint"
1269
+ }
1270
+
1251
1271
  interface DayCardProps {
1252
1272
  label: string;
1253
1273
  badge: string;
@@ -1255,11 +1275,13 @@ interface DayCardProps {
1255
1275
  accessibilityLabel: string;
1256
1276
  accessibilityHint: string;
1257
1277
  badgeTone?: BadgeTone;
1278
+ badgeFill?: DayBadgeFill;
1279
+ badgeIcon?: IconName;
1258
1280
  testID?: string;
1259
1281
  children: React.ReactNode;
1260
1282
  }
1261
1283
  /** One day of a list: its label, an age badge and the item count over a card holding the day's rows. */
1262
- declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, testID, children, }: DayCardProps) => React.ReactElement;
1284
+ declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, badgeFill, badgeIcon, testID, children, }: DayCardProps) => React.ReactElement;
1263
1285
 
1264
1286
  /** The style of one figure cell: an equal share of the strip when wide, half a row when narrow; span widens it. */
1265
1287
  declare function figureCell(wide: boolean, span?: number): StyleProp<ViewStyle>;
@@ -1276,11 +1298,32 @@ interface ToggleSectionProps {
1276
1298
  toggleLabel: string;
1277
1299
  toggleHint: string;
1278
1300
  forceOpen?: boolean;
1301
+ open?: boolean;
1302
+ onOpenChange?: (open: boolean) => void;
1279
1303
  testID: string;
1280
1304
  children: React.ReactNode;
1281
1305
  }
1282
1306
  /** A titled card when wide; when narrow the same content sits behind one toggle button, open when forced. */
1283
- declare const ToggleSection: ({ wide, title, toggleLabel, toggleHint, forceOpen, testID, children }: ToggleSectionProps) => React.ReactElement;
1307
+ declare const ToggleSection: ({ wide, title, toggleLabel, toggleHint, forceOpen, open, onOpenChange, testID, children }: ToggleSectionProps) => React.ReactElement;
1308
+
1309
+ interface StickyActionBarProps {
1310
+ accessibilityLabel: string;
1311
+ children: React.ReactNode;
1312
+ breakpoint?: number;
1313
+ bottomInset?: number;
1314
+ testID?: string;
1315
+ }
1316
+ /** Page actions: pinned to the bottom edge above the safe area when narrow, an inline end-aligned row when wide. */
1317
+ declare const StickyActionBar: ({ accessibilityLabel, children, breakpoint, bottomInset, testID, }: StickyActionBarProps) => React.ReactElement;
1318
+
1319
+ interface PageHeadProps {
1320
+ title: string;
1321
+ subtitle?: React.ReactNode;
1322
+ actions?: React.ReactNode;
1323
+ testID?: string;
1324
+ }
1325
+ /** Page title row: heading and subtitle on the left, page actions on the right; actions wrap below on narrow screens. */
1326
+ declare const PageHead: ({ title, subtitle, actions, testID }: PageHeadProps) => React.ReactElement;
1284
1327
 
1285
1328
  interface TimelineEntry {
1286
1329
  key: string;
@@ -1405,6 +1448,12 @@ interface TransferSlipProps {
1405
1448
  /** A payment slip: the amount and recipient lead, then the copy rows (children), then an optional footer. */
1406
1449
  declare const TransferSlip: ({ leadLabel, amount, recipient, children, footer, testID }: TransferSlipProps) => React.ReactElement;
1407
1450
 
1451
+ /** How a copy row draws its copy control: a text button, or a 44 px icon button named by its accessible label. */
1452
+ declare const enum CopyControl {
1453
+ Text = "text",
1454
+ Icon = "icon"
1455
+ }
1456
+
1408
1457
  /** How loudly a copy row shows its value: inline beside a compact button, or prominent with a wide button below. */
1409
1458
  declare const enum CopyRowEmphasis {
1410
1459
  Inline = "inline",
@@ -1426,13 +1475,14 @@ interface CopyValueRowProps {
1426
1475
  value: string;
1427
1476
  labels: CopyValueLabels;
1428
1477
  emphasis?: CopyRowEmphasis;
1478
+ copyControl?: CopyControl;
1429
1479
  copyValue?: string;
1430
1480
  monospace?: boolean;
1431
1481
  writer?: (text: string) => void | Promise<void>;
1432
1482
  testID: string;
1433
1483
  }
1434
1484
  /** One labelled value with a copy button that confirms the copy or says it failed. */
1435
- declare const CopyValueRow: ({ label, value, labels, emphasis, copyValue, monospace, writer, testID, }: CopyValueRowProps) => React.ReactElement;
1485
+ declare const CopyValueRow: ({ label, value, labels, emphasis, copyControl, copyValue, monospace, writer, testID, }: CopyValueRowProps) => React.ReactElement;
1436
1486
 
1437
1487
  /** The tone of one total: neutral, or alert when the figure needs attention. */
1438
1488
  declare const enum TotalsTone {
@@ -1482,4 +1532,4 @@ interface ListDetailVisibility {
1482
1532
  /** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
1483
1533
  declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
1484
1534
 
1485
- export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayCard, 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, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, 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, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
1535
+ export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, 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, 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, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, 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, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import React, { RefObject } from 'react';
2
2
  import { Text, StyleProp, ViewStyle, TextStyle, View } from 'react-native';
3
3
  import { UiTheme } from '@dloizides/ui-feedback';
4
+ import { IconName } from '@dloizides/ui-icons';
4
5
 
5
6
  /**
6
7
  * Heading — themed section heading text, rendered as a REAL `<h1>`–`<h6>` on web.
@@ -56,9 +57,15 @@ interface SectionProps {
56
57
  variant?: SectionVariant;
57
58
  title?: string;
58
59
  titleLevel?: HeadingLevel;
60
+ padding?: SectionPadding;
59
61
  testID?: string;
60
62
  }
61
- declare const Section: ({ children, style, variant, title, titleLevel, testID, }: SectionProps) => React.ReactElement;
63
+ /** Inner padding: one value for every side, or a vertical and horizontal pair. */
64
+ type SectionPadding = number | {
65
+ vertical: number;
66
+ horizontal: number;
67
+ };
68
+ declare const Section: ({ children, style, variant, title, titleLevel, padding, testID, }: SectionProps) => React.ReactElement;
62
69
 
63
70
  declare enum TextKind {
64
71
  Title = "title",
@@ -116,6 +123,8 @@ interface ToneColors {
116
123
  }
117
124
  /** Fill and ink (>= 4.5:1 on the fill) for a tone; a tone no theme fill can carry falls back to neutral. */
118
125
  declare function resolveToneColors(theme: UiTheme, tone: BadgeTone): ToneColors;
126
+ /** Light tint fill with the tone's deep ink; a theme without a tint step falls back to the solid tone colours. */
127
+ declare function resolveTintColors(theme: UiTheme, tone: BadgeTone): ToneColors;
119
128
 
120
129
  interface CountBadgeProps {
121
130
  count: number;
@@ -1008,6 +1017,8 @@ declare const LAYOUT_TEST_IDS: {
1008
1017
  readonly accordion: "accordion";
1009
1018
  /** Default testID for the `BuildInfoFooter` caption (`v<version>`). */
1010
1019
  readonly buildInfoFooter: "build-info-footer";
1020
+ readonly stickyActionBar: "sticky-action-bar";
1021
+ readonly pageHead: "page-head";
1011
1022
  };
1012
1023
  /** Window width (px) below which a dialog footer stacks its actions full width. */
1013
1024
  declare const MODAL_FOOTER_STACK_BELOW = 400;
@@ -1220,10 +1231,12 @@ interface SectionIndexLayoutProps {
1220
1231
  density?: SectionDensity;
1221
1232
  stickyIndex?: boolean;
1222
1233
  chipOverflow?: ChipOverflow;
1234
+ indexWidth?: number;
1223
1235
  testID?: string;
1224
1236
  }
1225
- declare const SectionIndexLayout: ({ sections, indexHeading, itemHint, initialKey, breakpoint, density, stickyIndex, chipOverflow, testID, }: SectionIndexLayoutProps) => React.ReactElement;
1237
+ declare const SectionIndexLayout: ({ sections, indexHeading, itemHint, initialKey, breakpoint, density, stickyIndex, chipOverflow, indexWidth, testID, }: SectionIndexLayoutProps) => React.ReactElement;
1226
1238
 
1239
+ declare const SECTION_INDEX_WIDTH = 200;
1227
1240
  interface SectionIndexProps {
1228
1241
  sections: ReadonlyArray<SectionIndexEntry>;
1229
1242
  activeKey: string;
@@ -1231,8 +1244,9 @@ interface SectionIndexProps {
1231
1244
  itemHint: string;
1232
1245
  onSelect: (key: string) => void;
1233
1246
  testID: string;
1247
+ width?: number;
1234
1248
  }
1235
- declare const SectionIndex: ({ sections, activeKey, heading, itemHint, onSelect, testID }: SectionIndexProps) => React.ReactElement;
1249
+ declare const SectionIndex: ({ sections, activeKey, heading, itemHint, onSelect, testID, width }: SectionIndexProps) => React.ReactElement;
1236
1250
 
1237
1251
  interface SectionChipsProps {
1238
1252
  sections: ReadonlyArray<SectionIndexEntry>;
@@ -1248,6 +1262,12 @@ declare const SectionChips: ({ sections, activeKey, groupLabel, itemHint, overfl
1248
1262
  declare const SECTION_INDEX_BREAKPOINT = 1024;
1249
1263
  declare function resolveActiveKey(sections: ReadonlyArray<SectionIndexEntry>, wanted: string | undefined): string;
1250
1264
 
1265
+ /** How the DayCard age badge is filled: a solid tone fill or a light tint with tone-coloured ink. */
1266
+ declare const enum DayBadgeFill {
1267
+ Solid = "solid",
1268
+ Tint = "tint"
1269
+ }
1270
+
1251
1271
  interface DayCardProps {
1252
1272
  label: string;
1253
1273
  badge: string;
@@ -1255,11 +1275,13 @@ interface DayCardProps {
1255
1275
  accessibilityLabel: string;
1256
1276
  accessibilityHint: string;
1257
1277
  badgeTone?: BadgeTone;
1278
+ badgeFill?: DayBadgeFill;
1279
+ badgeIcon?: IconName;
1258
1280
  testID?: string;
1259
1281
  children: React.ReactNode;
1260
1282
  }
1261
1283
  /** One day of a list: its label, an age badge and the item count over a card holding the day's rows. */
1262
- declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, testID, children, }: DayCardProps) => React.ReactElement;
1284
+ declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, badgeFill, badgeIcon, testID, children, }: DayCardProps) => React.ReactElement;
1263
1285
 
1264
1286
  /** The style of one figure cell: an equal share of the strip when wide, half a row when narrow; span widens it. */
1265
1287
  declare function figureCell(wide: boolean, span?: number): StyleProp<ViewStyle>;
@@ -1276,11 +1298,32 @@ interface ToggleSectionProps {
1276
1298
  toggleLabel: string;
1277
1299
  toggleHint: string;
1278
1300
  forceOpen?: boolean;
1301
+ open?: boolean;
1302
+ onOpenChange?: (open: boolean) => void;
1279
1303
  testID: string;
1280
1304
  children: React.ReactNode;
1281
1305
  }
1282
1306
  /** A titled card when wide; when narrow the same content sits behind one toggle button, open when forced. */
1283
- declare const ToggleSection: ({ wide, title, toggleLabel, toggleHint, forceOpen, testID, children }: ToggleSectionProps) => React.ReactElement;
1307
+ declare const ToggleSection: ({ wide, title, toggleLabel, toggleHint, forceOpen, open, onOpenChange, testID, children }: ToggleSectionProps) => React.ReactElement;
1308
+
1309
+ interface StickyActionBarProps {
1310
+ accessibilityLabel: string;
1311
+ children: React.ReactNode;
1312
+ breakpoint?: number;
1313
+ bottomInset?: number;
1314
+ testID?: string;
1315
+ }
1316
+ /** Page actions: pinned to the bottom edge above the safe area when narrow, an inline end-aligned row when wide. */
1317
+ declare const StickyActionBar: ({ accessibilityLabel, children, breakpoint, bottomInset, testID, }: StickyActionBarProps) => React.ReactElement;
1318
+
1319
+ interface PageHeadProps {
1320
+ title: string;
1321
+ subtitle?: React.ReactNode;
1322
+ actions?: React.ReactNode;
1323
+ testID?: string;
1324
+ }
1325
+ /** Page title row: heading and subtitle on the left, page actions on the right; actions wrap below on narrow screens. */
1326
+ declare const PageHead: ({ title, subtitle, actions, testID }: PageHeadProps) => React.ReactElement;
1284
1327
 
1285
1328
  interface TimelineEntry {
1286
1329
  key: string;
@@ -1405,6 +1448,12 @@ interface TransferSlipProps {
1405
1448
  /** A payment slip: the amount and recipient lead, then the copy rows (children), then an optional footer. */
1406
1449
  declare const TransferSlip: ({ leadLabel, amount, recipient, children, footer, testID }: TransferSlipProps) => React.ReactElement;
1407
1450
 
1451
+ /** How a copy row draws its copy control: a text button, or a 44 px icon button named by its accessible label. */
1452
+ declare const enum CopyControl {
1453
+ Text = "text",
1454
+ Icon = "icon"
1455
+ }
1456
+
1408
1457
  /** How loudly a copy row shows its value: inline beside a compact button, or prominent with a wide button below. */
1409
1458
  declare const enum CopyRowEmphasis {
1410
1459
  Inline = "inline",
@@ -1426,13 +1475,14 @@ interface CopyValueRowProps {
1426
1475
  value: string;
1427
1476
  labels: CopyValueLabels;
1428
1477
  emphasis?: CopyRowEmphasis;
1478
+ copyControl?: CopyControl;
1429
1479
  copyValue?: string;
1430
1480
  monospace?: boolean;
1431
1481
  writer?: (text: string) => void | Promise<void>;
1432
1482
  testID: string;
1433
1483
  }
1434
1484
  /** One labelled value with a copy button that confirms the copy or says it failed. */
1435
- declare const CopyValueRow: ({ label, value, labels, emphasis, copyValue, monospace, writer, testID, }: CopyValueRowProps) => React.ReactElement;
1485
+ declare const CopyValueRow: ({ label, value, labels, emphasis, copyControl, copyValue, monospace, writer, testID, }: CopyValueRowProps) => React.ReactElement;
1436
1486
 
1437
1487
  /** The tone of one total: neutral, or alert when the figure needs attention. */
1438
1488
  declare const enum TotalsTone {
@@ -1482,4 +1532,4 @@ interface ListDetailVisibility {
1482
1532
  /** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
1483
1533
  declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
1484
1534
 
1485
- export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayCard, 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, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, 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, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
1535
+ export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, 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, 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, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, 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, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };