@dloizides/ui-layout 1.50.1 → 1.51.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.51.0
4
+
5
+ - INV-BILLS-1 D-BILLS-9 "Every Bills UI part is shared", UI-ATOMIC-1. New molecule `CopyValueRow` (label, value, copy button that shows copied / failed through `useCopyToClipboard`; `emphasis` `CopyRowEmphasis` inline or prominent with a wide button; `copyValue` copies a different string than shown, e.g. an IBAN without spaces; `monospace`). New organism `TransferSlip` (amount and recipient lead, copy rows as children, optional `footer`). New molecule `TotalsStrip` (`TotalsItem[]` over `FigureStrip`, `TotalsTone.Alert` colours the value). New organism `ListDetailLayout` (list beside the chosen record from the breakpoint, one pane below it chosen by `narrowPane` `ListDetailPane`; `resolveListDetailPanes`). All labels are pre-localized props.
6
+
3
7
  ## 1.50.0
4
8
 
5
9
  - `SplitPanes` takes `startWidth`: fixes the start pane (a list rail) at that width while side by side, like `endWidth`; stacked it stays full width.
package/dist/index.d.mts CHANGED
@@ -1386,4 +1386,92 @@ interface WidgetCardProps {
1386
1386
  /** A titled card for one record or summary block, with an optional header slot and a record action footer. */
1387
1387
  declare const WidgetCard: ({ title, children, icon, headerRight, footer, testID }: WidgetCardProps) => React.ReactElement;
1388
1388
 
1389
- 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, CopyStatus, type CopyToClipboard, 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, 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, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
1389
+ interface TransferSlipProps {
1390
+ leadLabel: string;
1391
+ amount: string;
1392
+ recipient?: string;
1393
+ children: React.ReactNode;
1394
+ footer?: React.ReactNode;
1395
+ testID: string;
1396
+ }
1397
+ /** A payment slip: the amount and recipient lead, then the copy rows (children), then an optional footer. */
1398
+ declare const TransferSlip: ({ leadLabel, amount, recipient, children, footer, testID }: TransferSlipProps) => React.ReactElement;
1399
+
1400
+ /** How loudly a copy row shows its value: inline beside a compact button, or prominent with a wide button below. */
1401
+ declare const enum CopyRowEmphasis {
1402
+ Inline = "inline",
1403
+ Prominent = "prominent"
1404
+ }
1405
+
1406
+ /** The pre-localized labels a copy control shows in each state. */
1407
+ interface CopyValueLabels {
1408
+ copy: string;
1409
+ copied: string;
1410
+ failed: string;
1411
+ hint: string;
1412
+ }
1413
+ /** The label the copy control shows for a copy status. */
1414
+ declare function copyActionLabel(status: CopyStatus, labels: CopyValueLabels): string;
1415
+
1416
+ interface CopyValueRowProps {
1417
+ label: string;
1418
+ value: string;
1419
+ labels: CopyValueLabels;
1420
+ emphasis?: CopyRowEmphasis;
1421
+ copyValue?: string;
1422
+ monospace?: boolean;
1423
+ writer?: (text: string) => void | Promise<void>;
1424
+ testID: string;
1425
+ }
1426
+ /** One labelled value with a copy button that confirms the copy or says it failed. */
1427
+ declare const CopyValueRow: ({ label, value, labels, emphasis, copyValue, monospace, writer, testID, }: CopyValueRowProps) => React.ReactElement;
1428
+
1429
+ /** The tone of one total: neutral, or alert when the figure needs attention. */
1430
+ declare const enum TotalsTone {
1431
+ Neutral = "neutral",
1432
+ Alert = "alert"
1433
+ }
1434
+
1435
+ /** One total: pre-localized label, formatted value and an optional caption. */
1436
+ interface TotalsItem {
1437
+ key: string;
1438
+ label: string;
1439
+ value: string;
1440
+ caption?: string;
1441
+ tone?: TotalsTone;
1442
+ }
1443
+ interface TotalsStripProps {
1444
+ items: readonly TotalsItem[];
1445
+ breakpoint?: number;
1446
+ testID: string;
1447
+ }
1448
+ /** A row of total tiles: one row when wide, two per row when narrow. */
1449
+ declare const TotalsStrip: ({ items, breakpoint, testID }: TotalsStripProps) => React.ReactElement;
1450
+
1451
+ /** Which pane a narrow screen shows: the list, or the detail of the chosen row. */
1452
+ declare const enum ListDetailPane {
1453
+ List = "list",
1454
+ Detail = "detail"
1455
+ }
1456
+
1457
+ interface ListDetailLayoutProps {
1458
+ list: React.ReactNode;
1459
+ detail?: React.ReactNode;
1460
+ placeholder?: React.ReactNode;
1461
+ narrowPane?: ListDetailPane;
1462
+ breakpoint?: number;
1463
+ listWeight?: number;
1464
+ testID: string;
1465
+ }
1466
+ /** A list beside the chosen record when wide; one of the two when narrow. */
1467
+ declare const ListDetailLayout: ({ list, detail, placeholder, narrowPane, breakpoint, listWeight, testID, }: ListDetailLayoutProps) => React.ReactElement;
1468
+
1469
+ /** Which panes are on screen. */
1470
+ interface ListDetailVisibility {
1471
+ list: boolean;
1472
+ detail: boolean;
1473
+ }
1474
+ /** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
1475
+ declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
1476
+
1477
+ 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, 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 };
package/dist/index.d.ts CHANGED
@@ -1386,4 +1386,92 @@ interface WidgetCardProps {
1386
1386
  /** A titled card for one record or summary block, with an optional header slot and a record action footer. */
1387
1387
  declare const WidgetCard: ({ title, children, icon, headerRight, footer, testID }: WidgetCardProps) => React.ReactElement;
1388
1388
 
1389
- 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, CopyStatus, type CopyToClipboard, 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, 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, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
1389
+ interface TransferSlipProps {
1390
+ leadLabel: string;
1391
+ amount: string;
1392
+ recipient?: string;
1393
+ children: React.ReactNode;
1394
+ footer?: React.ReactNode;
1395
+ testID: string;
1396
+ }
1397
+ /** A payment slip: the amount and recipient lead, then the copy rows (children), then an optional footer. */
1398
+ declare const TransferSlip: ({ leadLabel, amount, recipient, children, footer, testID }: TransferSlipProps) => React.ReactElement;
1399
+
1400
+ /** How loudly a copy row shows its value: inline beside a compact button, or prominent with a wide button below. */
1401
+ declare const enum CopyRowEmphasis {
1402
+ Inline = "inline",
1403
+ Prominent = "prominent"
1404
+ }
1405
+
1406
+ /** The pre-localized labels a copy control shows in each state. */
1407
+ interface CopyValueLabels {
1408
+ copy: string;
1409
+ copied: string;
1410
+ failed: string;
1411
+ hint: string;
1412
+ }
1413
+ /** The label the copy control shows for a copy status. */
1414
+ declare function copyActionLabel(status: CopyStatus, labels: CopyValueLabels): string;
1415
+
1416
+ interface CopyValueRowProps {
1417
+ label: string;
1418
+ value: string;
1419
+ labels: CopyValueLabels;
1420
+ emphasis?: CopyRowEmphasis;
1421
+ copyValue?: string;
1422
+ monospace?: boolean;
1423
+ writer?: (text: string) => void | Promise<void>;
1424
+ testID: string;
1425
+ }
1426
+ /** One labelled value with a copy button that confirms the copy or says it failed. */
1427
+ declare const CopyValueRow: ({ label, value, labels, emphasis, copyValue, monospace, writer, testID, }: CopyValueRowProps) => React.ReactElement;
1428
+
1429
+ /** The tone of one total: neutral, or alert when the figure needs attention. */
1430
+ declare const enum TotalsTone {
1431
+ Neutral = "neutral",
1432
+ Alert = "alert"
1433
+ }
1434
+
1435
+ /** One total: pre-localized label, formatted value and an optional caption. */
1436
+ interface TotalsItem {
1437
+ key: string;
1438
+ label: string;
1439
+ value: string;
1440
+ caption?: string;
1441
+ tone?: TotalsTone;
1442
+ }
1443
+ interface TotalsStripProps {
1444
+ items: readonly TotalsItem[];
1445
+ breakpoint?: number;
1446
+ testID: string;
1447
+ }
1448
+ /** A row of total tiles: one row when wide, two per row when narrow. */
1449
+ declare const TotalsStrip: ({ items, breakpoint, testID }: TotalsStripProps) => React.ReactElement;
1450
+
1451
+ /** Which pane a narrow screen shows: the list, or the detail of the chosen row. */
1452
+ declare const enum ListDetailPane {
1453
+ List = "list",
1454
+ Detail = "detail"
1455
+ }
1456
+
1457
+ interface ListDetailLayoutProps {
1458
+ list: React.ReactNode;
1459
+ detail?: React.ReactNode;
1460
+ placeholder?: React.ReactNode;
1461
+ narrowPane?: ListDetailPane;
1462
+ breakpoint?: number;
1463
+ listWeight?: number;
1464
+ testID: string;
1465
+ }
1466
+ /** A list beside the chosen record when wide; one of the two when narrow. */
1467
+ declare const ListDetailLayout: ({ list, detail, placeholder, narrowPane, breakpoint, listWeight, testID, }: ListDetailLayoutProps) => React.ReactElement;
1468
+
1469
+ /** Which panes are on screen. */
1470
+ interface ListDetailVisibility {
1471
+ list: boolean;
1472
+ detail: boolean;
1473
+ }
1474
+ /** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
1475
+ declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
1476
+
1477
+ 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, 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 };
package/dist/index.js CHANGED
@@ -3754,6 +3754,181 @@ var WidgetCard = ({ title, children, icon, headerRight, footer, testID }) => {
3754
3754
  footer === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles41.footer, children: footer })
3755
3755
  ] });
3756
3756
  };
3757
+ var LEAD_LABEL_SIZE = 14;
3758
+ var AMOUNT_SIZE = 30;
3759
+ var RECIPIENT_SIZE = 15;
3760
+ var LEAD_PAD = 16;
3761
+ var LEAD_RADIUS = 12;
3762
+ var GAP8 = 12;
3763
+ var LEAD_GAP = 4;
3764
+ var LEAD_BORDER = 1.5;
3765
+ var ACCENT_STEP = "500";
3766
+ var styles42 = reactNative.StyleSheet.create({
3767
+ slip: { gap: GAP8, width: "100%" },
3768
+ lead: { padding: LEAD_PAD, borderRadius: LEAD_RADIUS, borderWidth: LEAD_BORDER, gap: LEAD_GAP },
3769
+ leadLabel: { fontSize: LEAD_LABEL_SIZE },
3770
+ amount: { fontSize: AMOUNT_SIZE, fontWeight: "800" },
3771
+ recipient: { fontSize: RECIPIENT_SIZE },
3772
+ rows: { width: "100%" }
3773
+ });
3774
+ var TransferSlip = ({ leadLabel, amount, recipient, children, footer, testID }) => {
3775
+ const { theme } = uiFeedback.useUi();
3776
+ const { colors } = theme;
3777
+ const accent = theme.palette.primary[ACCENT_STEP];
3778
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles42.slip, testID, children: [
3779
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles42.lead, { borderColor: accent, backgroundColor: colors.surface }], testID: `${testID}-lead`, children: [
3780
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles42.leadLabel, { color: colors.textSecondary }], children: leadLabel }),
3781
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles42.amount, { color: colors.text }], testID: `${testID}-amount`, children: amount }),
3782
+ recipient !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles42.recipient, { color: colors.text }], children: recipient })
3783
+ ] }),
3784
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles42.rows, children }),
3785
+ footer
3786
+ ] });
3787
+ };
3788
+
3789
+ // src/TransferSlip/CopyRowEmphasis.ts
3790
+ var CopyRowEmphasis = /* @__PURE__ */ ((CopyRowEmphasis2) => {
3791
+ CopyRowEmphasis2["Inline"] = "inline";
3792
+ CopyRowEmphasis2["Prominent"] = "prominent";
3793
+ return CopyRowEmphasis2;
3794
+ })(CopyRowEmphasis || {});
3795
+
3796
+ // src/TransferSlip/copyActionLabel.ts
3797
+ function copyActionLabel(status, labels) {
3798
+ if (status === "copied" /* Copied */) return labels.copied;
3799
+ if (status === "failed" /* Failed */) return labels.failed;
3800
+ return labels.copy;
3801
+ }
3802
+ var LABEL_SIZE = 13;
3803
+ var VALUE_SIZE = 16;
3804
+ var PROMINENT_SIZE = 20;
3805
+ var ROW_GAP3 = 12;
3806
+ var STACK_GAP = 8;
3807
+ var ROW_PAD = 10;
3808
+ var TEXT_GAP = 2;
3809
+ var MONO_SPACING = 1;
3810
+ var styles43 = reactNative.StyleSheet.create({
3811
+ inline: { flexDirection: "row", alignItems: "center", gap: ROW_GAP3, paddingVertical: ROW_PAD, borderTopWidth: reactNative.StyleSheet.hairlineWidth },
3812
+ prominent: { gap: STACK_GAP, paddingVertical: ROW_PAD },
3813
+ text: { flex: 1, minWidth: 0, gap: TEXT_GAP },
3814
+ label: { fontSize: LABEL_SIZE, fontWeight: "600" },
3815
+ value: { fontSize: VALUE_SIZE },
3816
+ big: { fontSize: PROMINENT_SIZE, fontWeight: "700", fontFamily: "monospace", letterSpacing: MONO_SPACING }
3817
+ });
3818
+ var CopyValueRow = ({
3819
+ label,
3820
+ value,
3821
+ labels,
3822
+ emphasis = "inline" /* Inline */,
3823
+ copyValue,
3824
+ monospace = false,
3825
+ writer,
3826
+ testID
3827
+ }) => {
3828
+ const { theme } = uiFeedback.useUi();
3829
+ const { colors } = theme;
3830
+ const { status, copy } = useCopyToClipboard(copyValue ?? value, writer);
3831
+ const action = copyActionLabel(status, labels);
3832
+ const prominent = emphasis === "prominent" /* Prominent */;
3833
+ const valueStyle = prominent || monospace ? styles43.big : styles43.value;
3834
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: prominent ? styles43.prominent : [styles43.inline, { borderTopColor: colors.border }], testID, children: [
3835
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles43.text, children: [
3836
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles43.label, { color: colors.textSecondary }], children: label }),
3837
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { selectable: true, style: [valueStyle, { color: colors.text }], testID: `${testID}-value`, children: value })
3838
+ ] }),
3839
+ /* @__PURE__ */ jsxRuntime.jsx(
3840
+ uiButtons.Button,
3841
+ {
3842
+ accessibilityHint: labels.hint,
3843
+ accessibilityLabel: `${action}: ${label}`,
3844
+ fullWidth: prominent,
3845
+ label: action,
3846
+ size: prominent ? "md" : "sm",
3847
+ testID: `${testID}-copy`,
3848
+ variant: "outline",
3849
+ onPress: copy
3850
+ }
3851
+ )
3852
+ ] });
3853
+ };
3854
+
3855
+ // src/TotalsStrip/TotalsTone.ts
3856
+ var TotalsTone = /* @__PURE__ */ ((TotalsTone2) => {
3857
+ TotalsTone2["Neutral"] = "neutral";
3858
+ TotalsTone2["Alert"] = "alert";
3859
+ return TotalsTone2;
3860
+ })(TotalsTone || {});
3861
+ var LABEL_SIZE2 = 13;
3862
+ var VALUE_SIZE2 = 20;
3863
+ var CAPTION_SIZE = 13;
3864
+ var TILE_PAD = 12;
3865
+ var TILE_RADIUS = 10;
3866
+ var TILE_GAP = 2;
3867
+ var ALERT_STEP = "500";
3868
+ var styles44 = reactNative.StyleSheet.create({
3869
+ tile: { padding: TILE_PAD, borderRadius: TILE_RADIUS, borderWidth: reactNative.StyleSheet.hairlineWidth, gap: TILE_GAP },
3870
+ label: { fontSize: LABEL_SIZE2, fontWeight: "600" },
3871
+ value: { fontSize: VALUE_SIZE2, fontWeight: "700" },
3872
+ caption: { fontSize: CAPTION_SIZE }
3873
+ });
3874
+ var TotalsStrip = ({ items, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT, testID }) => {
3875
+ const { theme } = uiFeedback.useUi();
3876
+ const { colors } = theme;
3877
+ const { width } = reactNative.useWindowDimensions();
3878
+ const wide = width >= breakpoint;
3879
+ return /* @__PURE__ */ jsxRuntime.jsx(FigureStrip, { testID, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
3880
+ reactNative.View,
3881
+ {
3882
+ style: [styles44.tile, figureCell(wide), { borderColor: colors.border, backgroundColor: colors.surfaceElevated }],
3883
+ testID: `${testID}-${item.key}`,
3884
+ children: [
3885
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles44.label, { color: colors.textSecondary }], children: item.label }),
3886
+ /* @__PURE__ */ jsxRuntime.jsx(
3887
+ reactNative.Text,
3888
+ {
3889
+ style: [styles44.value, { color: item.tone === "alert" /* Alert */ ? theme.semantic.error[ALERT_STEP] : colors.text }],
3890
+ testID: `${testID}-${item.key}-value`,
3891
+ children: item.value
3892
+ }
3893
+ ),
3894
+ item.caption !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles44.caption, { color: colors.textSecondary }], children: item.caption })
3895
+ ]
3896
+ },
3897
+ item.key
3898
+ )) });
3899
+ };
3900
+
3901
+ // src/ListDetailLayout/ListDetailPane.ts
3902
+ var ListDetailPane = /* @__PURE__ */ ((ListDetailPane2) => {
3903
+ ListDetailPane2["List"] = "list";
3904
+ ListDetailPane2["Detail"] = "detail";
3905
+ return ListDetailPane2;
3906
+ })(ListDetailPane || {});
3907
+
3908
+ // src/ListDetailLayout/resolveListDetailPanes.ts
3909
+ function resolveListDetailPanes(wide, narrowPane, hasDetail) {
3910
+ if (wide) return { list: true, detail: true };
3911
+ const detail = narrowPane === "detail" /* Detail */ && hasDetail;
3912
+ return { list: !detail, detail };
3913
+ }
3914
+ var ListDetailLayout = ({
3915
+ list,
3916
+ detail,
3917
+ placeholder,
3918
+ narrowPane = "list" /* List */,
3919
+ breakpoint = LAYOUT_COLLAPSE_BREAKPOINT,
3920
+ listWeight,
3921
+ testID
3922
+ }) => {
3923
+ const { width } = reactNative.useWindowDimensions();
3924
+ const wide = width >= breakpoint;
3925
+ const hasDetail = detail !== void 0 && detail !== null;
3926
+ const panes = resolveListDetailPanes(wide, narrowPane, hasDetail);
3927
+ if (wide) {
3928
+ return /* @__PURE__ */ jsxRuntime.jsx(SplitPanes, { end: hasDetail ? detail : placeholder, layout: "side" /* Side */, start: list, startWeight: listWeight, testID });
3929
+ }
3930
+ return /* @__PURE__ */ jsxRuntime.jsx(SplitPanes, { end: null, layout: "stack" /* Stack */, start: panes.detail ? detail : list, testID });
3931
+ };
3757
3932
 
3758
3933
  exports.A4_PAGE = A4_PAGE;
3759
3934
  exports.API_COMMIT_SEPARATOR = API_COMMIT_SEPARATOR;
@@ -3769,7 +3944,9 @@ exports.COPY_FEEDBACK_MS = COPY_FEEDBACK_MS;
3769
3944
  exports.ChipOverflow = ChipOverflow;
3770
3945
  exports.ConfirmDialog = ConfirmDialog;
3771
3946
  exports.ConfirmDialogFocus = ConfirmDialogFocus;
3947
+ exports.CopyRowEmphasis = CopyRowEmphasis;
3772
3948
  exports.CopyStatus = CopyStatus;
3949
+ exports.CopyValueRow = CopyValueRow;
3773
3950
  exports.CopyableId = CopyableId;
3774
3951
  exports.CountBadge = CountBadge;
3775
3952
  exports.DEFAULT_BILLING_ROUTE = DEFAULT_BILLING_ROUTE;
@@ -3784,6 +3961,8 @@ exports.IdChip = IdChip;
3784
3961
  exports.LAYOUT_COLLAPSE_BREAKPOINT = LAYOUT_COLLAPSE_BREAKPOINT;
3785
3962
  exports.LAYOUT_I18N = LAYOUT_I18N;
3786
3963
  exports.LAYOUT_TEST_IDS = LAYOUT_TEST_IDS;
3964
+ exports.ListDetailLayout = ListDetailLayout;
3965
+ exports.ListDetailPane = ListDetailPane;
3787
3966
  exports.ListRow = ListRow;
3788
3967
  exports.MIN_TARGET_PX = MIN_TARGET_PX;
3789
3968
  exports.MODAL_FOOTER_STACK_BELOW = MODAL_FOOTER_STACK_BELOW;
@@ -3815,10 +3994,14 @@ exports.TabsCollapsedTrigger = TabsCollapsedTrigger;
3815
3994
  exports.TextKind = TextKind;
3816
3995
  exports.Timeline = Timeline;
3817
3996
  exports.ToggleSection = ToggleSection;
3997
+ exports.TotalsStrip = TotalsStrip;
3998
+ exports.TotalsTone = TotalsTone;
3999
+ exports.TransferSlip = TransferSlip;
3818
4000
  exports.TruncatedText = TruncatedText;
3819
4001
  exports.UnderlineTabs = UnderlineTabs;
3820
4002
  exports.UpgradePrompt = UpgradePrompt;
3821
4003
  exports.WidgetCard = WidgetCard;
4004
+ exports.copyActionLabel = copyActionLabel;
3822
4005
  exports.copyText = copyText;
3823
4006
  exports.figureCell = figureCell;
3824
4007
  exports.formatBuildInfo = formatBuildInfo;
@@ -3831,6 +4014,7 @@ exports.isSplitSideBySide = isSplitSideBySide;
3831
4014
  exports.isWideWebViewport = isWideWebViewport;
3832
4015
  exports.pageScale = pageScale;
3833
4016
  exports.resolveActiveKey = resolveActiveKey;
4017
+ exports.resolveListDetailPanes = resolveListDetailPanes;
3834
4018
  exports.resolveRowLook = resolveRowLook;
3835
4019
  exports.resolveToneColors = resolveToneColors;
3836
4020
  exports.rowSelection = rowSelection;