@dloizides/ui-layout 1.50.1 → 1.52.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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.52.0
4
+
5
+ - MODC-1 D-MC-705 "Chip jump row for the applicant page", UI-PKG-FIRST-1. `UnderlineTabs` takes `variant` (`TabsVariant` Underline, the default, or Chips): Chips draws each tab as a pill (selected = filled with the theme text colour and background ink, others = 1 px border outline, radius full, >= 44 px hit box) with the count after the label. `chipOverflow` (`ChipOverflow`, default Scroll) scrolls the row sideways at 360 with the end-edge fade, or Wrap wraps it. Every chip keeps role tab with the selected state as `accessibilityState` and `aria-selected`; the row is one labelled tablist.
6
+
7
+ ## 1.51.0
8
+
9
+ - 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.
10
+
3
11
  ## 1.50.0
4
12
 
5
13
  - `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
@@ -1355,6 +1355,11 @@ interface IdChipProps {
1355
1355
  /** An id chip: label and monospace value inside one box with a copy glyph; pressing it copies the full value */
1356
1356
  declare const IdChip: ({ label, value, testID, accessibilityLabel, accessibilityHint, display, valueTestID, writer }: IdChipProps) => React.ReactElement;
1357
1357
 
1358
+ declare enum TabsVariant {
1359
+ Underline = "underline",
1360
+ Chips = "chips"
1361
+ }
1362
+
1358
1363
  interface UnderlineTab {
1359
1364
  key: string;
1360
1365
  label: string;
@@ -1362,6 +1367,7 @@ interface UnderlineTab {
1362
1367
  testID?: string;
1363
1368
  accessibilityHint?: string;
1364
1369
  }
1370
+
1365
1371
  interface UnderlineTabsProps {
1366
1372
  tabs: ReadonlyArray<UnderlineTab>;
1367
1373
  activeKey: string;
@@ -1371,9 +1377,11 @@ interface UnderlineTabsProps {
1371
1377
  underlineColor?: string;
1372
1378
  fadeColor?: string;
1373
1379
  testID?: string;
1380
+ variant?: TabsVariant;
1381
+ chipOverflow?: ChipOverflow;
1374
1382
  }
1375
- /** A full-width tab strip with an underline on the selected tab and an optional count per tab. */
1376
- declare const UnderlineTabs: ({ tabs, activeKey, onChange, accessibilityLabel, accessibilityHint, underlineColor, fadeColor, testID }: UnderlineTabsProps) => React.ReactElement;
1383
+ /** A full-width tab strip: underline tabs (default) or a pill-chip jump row (`variant` Chips), with an optional count per tab. */
1384
+ declare const UnderlineTabs: ({ tabs, activeKey, onChange, accessibilityLabel, accessibilityHint, underlineColor, fadeColor, testID, variant, chipOverflow }: UnderlineTabsProps) => React.ReactElement;
1377
1385
 
1378
1386
  interface WidgetCardProps {
1379
1387
  title: string;
@@ -1386,4 +1394,92 @@ interface WidgetCardProps {
1386
1394
  /** A titled card for one record or summary block, with an optional header slot and a record action footer. */
1387
1395
  declare const WidgetCard: ({ title, children, icon, headerRight, footer, testID }: WidgetCardProps) => React.ReactElement;
1388
1396
 
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 };
1397
+ interface TransferSlipProps {
1398
+ leadLabel: string;
1399
+ amount: string;
1400
+ recipient?: string;
1401
+ children: React.ReactNode;
1402
+ footer?: React.ReactNode;
1403
+ testID: string;
1404
+ }
1405
+ /** A payment slip: the amount and recipient lead, then the copy rows (children), then an optional footer. */
1406
+ declare const TransferSlip: ({ leadLabel, amount, recipient, children, footer, testID }: TransferSlipProps) => React.ReactElement;
1407
+
1408
+ /** How loudly a copy row shows its value: inline beside a compact button, or prominent with a wide button below. */
1409
+ declare const enum CopyRowEmphasis {
1410
+ Inline = "inline",
1411
+ Prominent = "prominent"
1412
+ }
1413
+
1414
+ /** The pre-localized labels a copy control shows in each state. */
1415
+ interface CopyValueLabels {
1416
+ copy: string;
1417
+ copied: string;
1418
+ failed: string;
1419
+ hint: string;
1420
+ }
1421
+ /** The label the copy control shows for a copy status. */
1422
+ declare function copyActionLabel(status: CopyStatus, labels: CopyValueLabels): string;
1423
+
1424
+ interface CopyValueRowProps {
1425
+ label: string;
1426
+ value: string;
1427
+ labels: CopyValueLabels;
1428
+ emphasis?: CopyRowEmphasis;
1429
+ copyValue?: string;
1430
+ monospace?: boolean;
1431
+ writer?: (text: string) => void | Promise<void>;
1432
+ testID: string;
1433
+ }
1434
+ /** 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;
1436
+
1437
+ /** The tone of one total: neutral, or alert when the figure needs attention. */
1438
+ declare const enum TotalsTone {
1439
+ Neutral = "neutral",
1440
+ Alert = "alert"
1441
+ }
1442
+
1443
+ /** One total: pre-localized label, formatted value and an optional caption. */
1444
+ interface TotalsItem {
1445
+ key: string;
1446
+ label: string;
1447
+ value: string;
1448
+ caption?: string;
1449
+ tone?: TotalsTone;
1450
+ }
1451
+ interface TotalsStripProps {
1452
+ items: readonly TotalsItem[];
1453
+ breakpoint?: number;
1454
+ testID: string;
1455
+ }
1456
+ /** A row of total tiles: one row when wide, two per row when narrow. */
1457
+ declare const TotalsStrip: ({ items, breakpoint, testID }: TotalsStripProps) => React.ReactElement;
1458
+
1459
+ /** Which pane a narrow screen shows: the list, or the detail of the chosen row. */
1460
+ declare const enum ListDetailPane {
1461
+ List = "list",
1462
+ Detail = "detail"
1463
+ }
1464
+
1465
+ interface ListDetailLayoutProps {
1466
+ list: React.ReactNode;
1467
+ detail?: React.ReactNode;
1468
+ placeholder?: React.ReactNode;
1469
+ narrowPane?: ListDetailPane;
1470
+ breakpoint?: number;
1471
+ listWeight?: number;
1472
+ testID: string;
1473
+ }
1474
+ /** A list beside the chosen record when wide; one of the two when narrow. */
1475
+ declare const ListDetailLayout: ({ list, detail, placeholder, narrowPane, breakpoint, listWeight, testID, }: ListDetailLayoutProps) => React.ReactElement;
1476
+
1477
+ /** Which panes are on screen. */
1478
+ interface ListDetailVisibility {
1479
+ list: boolean;
1480
+ detail: boolean;
1481
+ }
1482
+ /** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
1483
+ declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
1484
+
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 };
package/dist/index.d.ts CHANGED
@@ -1355,6 +1355,11 @@ interface IdChipProps {
1355
1355
  /** An id chip: label and monospace value inside one box with a copy glyph; pressing it copies the full value */
1356
1356
  declare const IdChip: ({ label, value, testID, accessibilityLabel, accessibilityHint, display, valueTestID, writer }: IdChipProps) => React.ReactElement;
1357
1357
 
1358
+ declare enum TabsVariant {
1359
+ Underline = "underline",
1360
+ Chips = "chips"
1361
+ }
1362
+
1358
1363
  interface UnderlineTab {
1359
1364
  key: string;
1360
1365
  label: string;
@@ -1362,6 +1367,7 @@ interface UnderlineTab {
1362
1367
  testID?: string;
1363
1368
  accessibilityHint?: string;
1364
1369
  }
1370
+
1365
1371
  interface UnderlineTabsProps {
1366
1372
  tabs: ReadonlyArray<UnderlineTab>;
1367
1373
  activeKey: string;
@@ -1371,9 +1377,11 @@ interface UnderlineTabsProps {
1371
1377
  underlineColor?: string;
1372
1378
  fadeColor?: string;
1373
1379
  testID?: string;
1380
+ variant?: TabsVariant;
1381
+ chipOverflow?: ChipOverflow;
1374
1382
  }
1375
- /** A full-width tab strip with an underline on the selected tab and an optional count per tab. */
1376
- declare const UnderlineTabs: ({ tabs, activeKey, onChange, accessibilityLabel, accessibilityHint, underlineColor, fadeColor, testID }: UnderlineTabsProps) => React.ReactElement;
1383
+ /** A full-width tab strip: underline tabs (default) or a pill-chip jump row (`variant` Chips), with an optional count per tab. */
1384
+ declare const UnderlineTabs: ({ tabs, activeKey, onChange, accessibilityLabel, accessibilityHint, underlineColor, fadeColor, testID, variant, chipOverflow }: UnderlineTabsProps) => React.ReactElement;
1377
1385
 
1378
1386
  interface WidgetCardProps {
1379
1387
  title: string;
@@ -1386,4 +1394,92 @@ interface WidgetCardProps {
1386
1394
  /** A titled card for one record or summary block, with an optional header slot and a record action footer. */
1387
1395
  declare const WidgetCard: ({ title, children, icon, headerRight, footer, testID }: WidgetCardProps) => React.ReactElement;
1388
1396
 
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 };
1397
+ interface TransferSlipProps {
1398
+ leadLabel: string;
1399
+ amount: string;
1400
+ recipient?: string;
1401
+ children: React.ReactNode;
1402
+ footer?: React.ReactNode;
1403
+ testID: string;
1404
+ }
1405
+ /** A payment slip: the amount and recipient lead, then the copy rows (children), then an optional footer. */
1406
+ declare const TransferSlip: ({ leadLabel, amount, recipient, children, footer, testID }: TransferSlipProps) => React.ReactElement;
1407
+
1408
+ /** How loudly a copy row shows its value: inline beside a compact button, or prominent with a wide button below. */
1409
+ declare const enum CopyRowEmphasis {
1410
+ Inline = "inline",
1411
+ Prominent = "prominent"
1412
+ }
1413
+
1414
+ /** The pre-localized labels a copy control shows in each state. */
1415
+ interface CopyValueLabels {
1416
+ copy: string;
1417
+ copied: string;
1418
+ failed: string;
1419
+ hint: string;
1420
+ }
1421
+ /** The label the copy control shows for a copy status. */
1422
+ declare function copyActionLabel(status: CopyStatus, labels: CopyValueLabels): string;
1423
+
1424
+ interface CopyValueRowProps {
1425
+ label: string;
1426
+ value: string;
1427
+ labels: CopyValueLabels;
1428
+ emphasis?: CopyRowEmphasis;
1429
+ copyValue?: string;
1430
+ monospace?: boolean;
1431
+ writer?: (text: string) => void | Promise<void>;
1432
+ testID: string;
1433
+ }
1434
+ /** 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;
1436
+
1437
+ /** The tone of one total: neutral, or alert when the figure needs attention. */
1438
+ declare const enum TotalsTone {
1439
+ Neutral = "neutral",
1440
+ Alert = "alert"
1441
+ }
1442
+
1443
+ /** One total: pre-localized label, formatted value and an optional caption. */
1444
+ interface TotalsItem {
1445
+ key: string;
1446
+ label: string;
1447
+ value: string;
1448
+ caption?: string;
1449
+ tone?: TotalsTone;
1450
+ }
1451
+ interface TotalsStripProps {
1452
+ items: readonly TotalsItem[];
1453
+ breakpoint?: number;
1454
+ testID: string;
1455
+ }
1456
+ /** A row of total tiles: one row when wide, two per row when narrow. */
1457
+ declare const TotalsStrip: ({ items, breakpoint, testID }: TotalsStripProps) => React.ReactElement;
1458
+
1459
+ /** Which pane a narrow screen shows: the list, or the detail of the chosen row. */
1460
+ declare const enum ListDetailPane {
1461
+ List = "list",
1462
+ Detail = "detail"
1463
+ }
1464
+
1465
+ interface ListDetailLayoutProps {
1466
+ list: React.ReactNode;
1467
+ detail?: React.ReactNode;
1468
+ placeholder?: React.ReactNode;
1469
+ narrowPane?: ListDetailPane;
1470
+ breakpoint?: number;
1471
+ listWeight?: number;
1472
+ testID: string;
1473
+ }
1474
+ /** A list beside the chosen record when wide; one of the two when narrow. */
1475
+ declare const ListDetailLayout: ({ list, detail, placeholder, narrowPane, breakpoint, listWeight, testID, }: ListDetailLayoutProps) => React.ReactElement;
1476
+
1477
+ /** Which panes are on screen. */
1478
+ interface ListDetailVisibility {
1479
+ list: boolean;
1480
+ detail: boolean;
1481
+ }
1482
+ /** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
1483
+ declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
1484
+
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 };
package/dist/index.js CHANGED
@@ -3689,46 +3689,81 @@ function useEdgeFade() {
3689
3689
  }
3690
3690
  var UNDERLINE = 3;
3691
3691
  var PAD_H4 = 12;
3692
+ var CHIP_PAD_H = 16;
3692
3693
  var GAP6 = 6;
3693
3694
  var FONT_SIZE4 = 14;
3694
3695
  var COUNT_FONT = 12;
3695
3696
  var COUNT_MIN = 22;
3696
3697
  var COUNT_PAD = 6;
3697
3698
  var PILL = 999;
3698
- var DEFAULT_UNDERLINE_STEP = "700";
3699
- var SCROLL_THROTTLE_MS = 16;
3700
3699
  var styles40 = reactNative.StyleSheet.create({
3700
+ chip: { alignItems: "center", borderRadius: PILL, borderWidth: 1, flexDirection: "row", gap: GAP6, justifyContent: "center", minHeight: MIN_TARGET_PX, minWidth: MIN_TARGET_PX, paddingHorizontal: CHIP_PAD_H },
3701
+ chipCount: { fontSize: FONT_SIZE4, fontWeight: "700" },
3701
3702
  count: { borderRadius: PILL, fontSize: COUNT_FONT, fontWeight: "700", minWidth: COUNT_MIN, paddingHorizontal: COUNT_PAD, textAlign: "center" },
3702
3703
  label: { fontSize: FONT_SIZE4, fontWeight: "600" },
3703
- strip: { borderBottomWidth: 1, position: "relative", width: "100%" },
3704
3704
  tab: { alignItems: "center", borderBottomWidth: UNDERLINE, flexDirection: "row", gap: GAP6, justifyContent: "center", minHeight: MIN_TARGET_PX, minWidth: MIN_TARGET_PX, paddingHorizontal: PAD_H4 }
3705
3705
  });
3706
- var UnderlineTabs = ({ tabs, activeKey, onChange, accessibilityLabel, accessibilityHint, underlineColor, fadeColor, testID }) => {
3706
+ var TabPressable = ({ tab, selected, onChange, style, children }) => /* @__PURE__ */ jsxRuntime.jsx(
3707
+ reactNative.Pressable,
3708
+ {
3709
+ accessibilityHint: tab.accessibilityHint,
3710
+ accessibilityLabel: tab.label,
3711
+ accessibilityRole: "tab",
3712
+ accessibilityState: { selected },
3713
+ "aria-selected": selected,
3714
+ style,
3715
+ testID: tab.testID,
3716
+ onPress: () => onChange(tab.key),
3717
+ children
3718
+ }
3719
+ );
3720
+ var UnderlineTabItem = ({ underline, ...item }) => {
3721
+ const { theme } = uiFeedback.useUi();
3722
+ return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [styles40.tab, { borderBottomColor: item.selected ? underline : "transparent" }], children: [
3723
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles40.label, { color: item.selected ? theme.colors.text : theme.colors.textSecondary }], children: item.tab.label }),
3724
+ item.tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles40.count, { backgroundColor: theme.colors.border, color: theme.colors.text }], children: String(item.tab.count) })
3725
+ ] });
3726
+ };
3727
+ var ChipTabItem = (item) => {
3728
+ const { theme } = uiFeedback.useUi();
3729
+ const fill = item.selected ? theme.colors.text : "transparent";
3730
+ const ink = item.selected ? theme.colors.background : theme.colors.text;
3731
+ return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [styles40.chip, { backgroundColor: fill, borderColor: item.selected ? theme.colors.text : theme.colors.border }], children: [
3732
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles40.label, { color: ink }], children: item.tab.label }),
3733
+ item.tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles40.chipCount, { color: ink }], children: String(item.tab.count) })
3734
+ ] });
3735
+ };
3736
+
3737
+ // src/Tabs/TabsVariant.ts
3738
+ var TabsVariant = /* @__PURE__ */ ((TabsVariant2) => {
3739
+ TabsVariant2["Underline"] = "underline";
3740
+ TabsVariant2["Chips"] = "chips";
3741
+ return TabsVariant2;
3742
+ })(TabsVariant || {});
3743
+ var DEFAULT_UNDERLINE_STEP = "700";
3744
+ var SCROLL_THROTTLE_MS = 16;
3745
+ var CHIP_GAP = 8;
3746
+ var CHIP_PAD_V = 4;
3747
+ var styles41 = reactNative.StyleSheet.create({
3748
+ chipRow: { alignItems: "center", flexDirection: "row", gap: CHIP_GAP, paddingVertical: CHIP_PAD_V },
3749
+ chipWrap: { flexWrap: "wrap" },
3750
+ strip: { position: "relative", width: "100%" }
3751
+ });
3752
+ var UnderlineTabs = ({ tabs, activeKey, onChange, accessibilityLabel, accessibilityHint, underlineColor, fadeColor, testID, variant = "underline" /* Underline */, chipOverflow = "scroll" /* Scroll */ }) => {
3707
3753
  const { theme } = uiFeedback.useUi();
3708
3754
  const underline = underlineColor ?? theme.palette.primary[DEFAULT_UNDERLINE_STEP];
3709
3755
  const fade = useEdgeFade();
3710
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles40.strip, { borderBottomColor: theme.colors.border }], testID, children: [
3711
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, scrollEventThrottle: SCROLL_THROTTLE_MS, showsHorizontalScrollIndicator: false, onContentSizeChange: fade.onContentSizeChange, onLayout: fade.onLayout, onScroll: fade.onScroll, children: tabs.map((tab) => {
3712
- const selected = tab.key === activeKey;
3713
- return /* @__PURE__ */ jsxRuntime.jsxs(
3714
- reactNative.Pressable,
3715
- {
3716
- accessibilityHint: tab.accessibilityHint,
3717
- accessibilityLabel: tab.label,
3718
- accessibilityRole: "tab",
3719
- accessibilityState: { selected },
3720
- "aria-selected": selected,
3721
- style: [styles40.tab, { borderBottomColor: selected ? underline : "transparent" }],
3722
- testID: tab.testID,
3723
- onPress: () => onChange(tab.key),
3724
- children: [
3725
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles40.label, { color: selected ? theme.colors.text : theme.colors.textSecondary }], children: tab.label }),
3726
- tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles40.count, { backgroundColor: theme.colors.border, color: theme.colors.text }], children: String(tab.count) })
3727
- ]
3728
- },
3729
- tab.key
3730
- );
3731
- }) }),
3756
+ const chips = variant === "chips" /* Chips */;
3757
+ const items = tabs.map((tab) => {
3758
+ const item = { tab, selected: tab.key === activeKey, onChange };
3759
+ return chips ? /* @__PURE__ */ jsxRuntime.jsx(ChipTabItem, { ...item }, tab.key) : /* @__PURE__ */ jsxRuntime.jsx(UnderlineTabItem, { ...item, underline }, tab.key);
3760
+ });
3761
+ const stripStyle = chips ? styles41.strip : [styles41.strip, { borderBottomColor: theme.colors.border, borderBottomWidth: 1 }];
3762
+ if (chips && chipOverflow === "wrap" /* Wrap */) {
3763
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles41.chipRow, styles41.chipWrap], testID, children: items });
3764
+ }
3765
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: stripStyle, testID, children: [
3766
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, contentContainerStyle: chips ? styles41.chipRow : void 0, scrollEventThrottle: SCROLL_THROTTLE_MS, showsHorizontalScrollIndicator: false, onContentSizeChange: fade.onContentSizeChange, onLayout: fade.onLayout, onScroll: fade.onScroll, children: items }),
3732
3767
  fade.visible ? /* @__PURE__ */ jsxRuntime.jsx(EdgeFadeStrip, { color: fadeColor ?? theme.colors.background }) : null
3733
3768
  ] });
3734
3769
  };
@@ -3736,7 +3771,7 @@ var RADIUS3 = 12;
3736
3771
  var PAD = 16;
3737
3772
  var GAP7 = 8;
3738
3773
  var TITLE_FONT = 15;
3739
- var styles41 = reactNative.StyleSheet.create({
3774
+ var styles42 = reactNative.StyleSheet.create({
3740
3775
  card: { borderRadius: RADIUS3, borderWidth: 1, gap: GAP7, minWidth: 0, padding: PAD },
3741
3776
  footer: { alignItems: "flex-start", flexDirection: "row", flexWrap: "wrap", gap: GAP7 },
3742
3777
  head: { alignItems: "center", flexDirection: "row", gap: GAP7 },
@@ -3744,17 +3779,192 @@ var styles41 = reactNative.StyleSheet.create({
3744
3779
  });
3745
3780
  var WidgetCard = ({ title, children, icon, headerRight, footer, testID }) => {
3746
3781
  const { theme } = uiFeedback.useUi();
3747
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles41.card, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }], testID, children: [
3748
- /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles41.head, children: [
3782
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles42.card, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }], testID, children: [
3783
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles42.head, children: [
3749
3784
  icon === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, children: icon }),
3750
- /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles41.title, { color: theme.colors.text }], children: title }),
3785
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles42.title, { color: theme.colors.text }], children: title }),
3751
3786
  headerRight
3752
3787
  ] }),
3753
3788
  children,
3754
- footer === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles41.footer, children: footer })
3789
+ footer === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles42.footer, children: footer })
3790
+ ] });
3791
+ };
3792
+ var LEAD_LABEL_SIZE = 14;
3793
+ var AMOUNT_SIZE = 30;
3794
+ var RECIPIENT_SIZE = 15;
3795
+ var LEAD_PAD = 16;
3796
+ var LEAD_RADIUS = 12;
3797
+ var GAP8 = 12;
3798
+ var LEAD_GAP = 4;
3799
+ var LEAD_BORDER = 1.5;
3800
+ var ACCENT_STEP = "500";
3801
+ var styles43 = reactNative.StyleSheet.create({
3802
+ slip: { gap: GAP8, width: "100%" },
3803
+ lead: { padding: LEAD_PAD, borderRadius: LEAD_RADIUS, borderWidth: LEAD_BORDER, gap: LEAD_GAP },
3804
+ leadLabel: { fontSize: LEAD_LABEL_SIZE },
3805
+ amount: { fontSize: AMOUNT_SIZE, fontWeight: "800" },
3806
+ recipient: { fontSize: RECIPIENT_SIZE },
3807
+ rows: { width: "100%" }
3808
+ });
3809
+ var TransferSlip = ({ leadLabel, amount, recipient, children, footer, testID }) => {
3810
+ const { theme } = uiFeedback.useUi();
3811
+ const { colors } = theme;
3812
+ const accent = theme.palette.primary[ACCENT_STEP];
3813
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles43.slip, testID, children: [
3814
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles43.lead, { borderColor: accent, backgroundColor: colors.surface }], testID: `${testID}-lead`, children: [
3815
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles43.leadLabel, { color: colors.textSecondary }], children: leadLabel }),
3816
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles43.amount, { color: colors.text }], testID: `${testID}-amount`, children: amount }),
3817
+ recipient !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles43.recipient, { color: colors.text }], children: recipient })
3818
+ ] }),
3819
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles43.rows, children }),
3820
+ footer
3755
3821
  ] });
3756
3822
  };
3757
3823
 
3824
+ // src/TransferSlip/CopyRowEmphasis.ts
3825
+ var CopyRowEmphasis = /* @__PURE__ */ ((CopyRowEmphasis2) => {
3826
+ CopyRowEmphasis2["Inline"] = "inline";
3827
+ CopyRowEmphasis2["Prominent"] = "prominent";
3828
+ return CopyRowEmphasis2;
3829
+ })(CopyRowEmphasis || {});
3830
+
3831
+ // src/TransferSlip/copyActionLabel.ts
3832
+ function copyActionLabel(status, labels) {
3833
+ if (status === "copied" /* Copied */) return labels.copied;
3834
+ if (status === "failed" /* Failed */) return labels.failed;
3835
+ return labels.copy;
3836
+ }
3837
+ var LABEL_SIZE = 13;
3838
+ var VALUE_SIZE = 16;
3839
+ var PROMINENT_SIZE = 20;
3840
+ var ROW_GAP3 = 12;
3841
+ var STACK_GAP = 8;
3842
+ var ROW_PAD = 10;
3843
+ var TEXT_GAP = 2;
3844
+ var MONO_SPACING = 1;
3845
+ var styles44 = reactNative.StyleSheet.create({
3846
+ inline: { flexDirection: "row", alignItems: "center", gap: ROW_GAP3, paddingVertical: ROW_PAD, borderTopWidth: reactNative.StyleSheet.hairlineWidth },
3847
+ prominent: { gap: STACK_GAP, paddingVertical: ROW_PAD },
3848
+ text: { flex: 1, minWidth: 0, gap: TEXT_GAP },
3849
+ label: { fontSize: LABEL_SIZE, fontWeight: "600" },
3850
+ value: { fontSize: VALUE_SIZE },
3851
+ big: { fontSize: PROMINENT_SIZE, fontWeight: "700", fontFamily: "monospace", letterSpacing: MONO_SPACING }
3852
+ });
3853
+ var CopyValueRow = ({
3854
+ label,
3855
+ value,
3856
+ labels,
3857
+ emphasis = "inline" /* Inline */,
3858
+ copyValue,
3859
+ monospace = false,
3860
+ writer,
3861
+ testID
3862
+ }) => {
3863
+ const { theme } = uiFeedback.useUi();
3864
+ const { colors } = theme;
3865
+ const { status, copy } = useCopyToClipboard(copyValue ?? value, writer);
3866
+ const action = copyActionLabel(status, labels);
3867
+ const prominent = emphasis === "prominent" /* Prominent */;
3868
+ const valueStyle = prominent || monospace ? styles44.big : styles44.value;
3869
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: prominent ? styles44.prominent : [styles44.inline, { borderTopColor: colors.border }], testID, children: [
3870
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles44.text, children: [
3871
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles44.label, { color: colors.textSecondary }], children: label }),
3872
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { selectable: true, style: [valueStyle, { color: colors.text }], testID: `${testID}-value`, children: value })
3873
+ ] }),
3874
+ /* @__PURE__ */ jsxRuntime.jsx(
3875
+ uiButtons.Button,
3876
+ {
3877
+ accessibilityHint: labels.hint,
3878
+ accessibilityLabel: `${action}: ${label}`,
3879
+ fullWidth: prominent,
3880
+ label: action,
3881
+ size: prominent ? "md" : "sm",
3882
+ testID: `${testID}-copy`,
3883
+ variant: "outline",
3884
+ onPress: copy
3885
+ }
3886
+ )
3887
+ ] });
3888
+ };
3889
+
3890
+ // src/TotalsStrip/TotalsTone.ts
3891
+ var TotalsTone = /* @__PURE__ */ ((TotalsTone2) => {
3892
+ TotalsTone2["Neutral"] = "neutral";
3893
+ TotalsTone2["Alert"] = "alert";
3894
+ return TotalsTone2;
3895
+ })(TotalsTone || {});
3896
+ var LABEL_SIZE2 = 13;
3897
+ var VALUE_SIZE2 = 20;
3898
+ var CAPTION_SIZE = 13;
3899
+ var TILE_PAD = 12;
3900
+ var TILE_RADIUS = 10;
3901
+ var TILE_GAP = 2;
3902
+ var ALERT_STEP = "500";
3903
+ var styles45 = reactNative.StyleSheet.create({
3904
+ tile: { padding: TILE_PAD, borderRadius: TILE_RADIUS, borderWidth: reactNative.StyleSheet.hairlineWidth, gap: TILE_GAP },
3905
+ label: { fontSize: LABEL_SIZE2, fontWeight: "600" },
3906
+ value: { fontSize: VALUE_SIZE2, fontWeight: "700" },
3907
+ caption: { fontSize: CAPTION_SIZE }
3908
+ });
3909
+ var TotalsStrip = ({ items, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT, testID }) => {
3910
+ const { theme } = uiFeedback.useUi();
3911
+ const { colors } = theme;
3912
+ const { width } = reactNative.useWindowDimensions();
3913
+ const wide = width >= breakpoint;
3914
+ return /* @__PURE__ */ jsxRuntime.jsx(FigureStrip, { testID, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
3915
+ reactNative.View,
3916
+ {
3917
+ style: [styles45.tile, figureCell(wide), { borderColor: colors.border, backgroundColor: colors.surfaceElevated }],
3918
+ testID: `${testID}-${item.key}`,
3919
+ children: [
3920
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles45.label, { color: colors.textSecondary }], children: item.label }),
3921
+ /* @__PURE__ */ jsxRuntime.jsx(
3922
+ reactNative.Text,
3923
+ {
3924
+ style: [styles45.value, { color: item.tone === "alert" /* Alert */ ? theme.semantic.error[ALERT_STEP] : colors.text }],
3925
+ testID: `${testID}-${item.key}-value`,
3926
+ children: item.value
3927
+ }
3928
+ ),
3929
+ item.caption !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles45.caption, { color: colors.textSecondary }], children: item.caption })
3930
+ ]
3931
+ },
3932
+ item.key
3933
+ )) });
3934
+ };
3935
+
3936
+ // src/ListDetailLayout/ListDetailPane.ts
3937
+ var ListDetailPane = /* @__PURE__ */ ((ListDetailPane2) => {
3938
+ ListDetailPane2["List"] = "list";
3939
+ ListDetailPane2["Detail"] = "detail";
3940
+ return ListDetailPane2;
3941
+ })(ListDetailPane || {});
3942
+
3943
+ // src/ListDetailLayout/resolveListDetailPanes.ts
3944
+ function resolveListDetailPanes(wide, narrowPane, hasDetail) {
3945
+ if (wide) return { list: true, detail: true };
3946
+ const detail = narrowPane === "detail" /* Detail */ && hasDetail;
3947
+ return { list: !detail, detail };
3948
+ }
3949
+ var ListDetailLayout = ({
3950
+ list,
3951
+ detail,
3952
+ placeholder,
3953
+ narrowPane = "list" /* List */,
3954
+ breakpoint = LAYOUT_COLLAPSE_BREAKPOINT,
3955
+ listWeight,
3956
+ testID
3957
+ }) => {
3958
+ const { width } = reactNative.useWindowDimensions();
3959
+ const wide = width >= breakpoint;
3960
+ const hasDetail = detail !== void 0 && detail !== null;
3961
+ const panes = resolveListDetailPanes(wide, narrowPane, hasDetail);
3962
+ if (wide) {
3963
+ return /* @__PURE__ */ jsxRuntime.jsx(SplitPanes, { end: hasDetail ? detail : placeholder, layout: "side" /* Side */, start: list, startWeight: listWeight, testID });
3964
+ }
3965
+ return /* @__PURE__ */ jsxRuntime.jsx(SplitPanes, { end: null, layout: "stack" /* Stack */, start: panes.detail ? detail : list, testID });
3966
+ };
3967
+
3758
3968
  exports.A4_PAGE = A4_PAGE;
3759
3969
  exports.API_COMMIT_SEPARATOR = API_COMMIT_SEPARATOR;
3760
3970
  exports.Accordion = Accordion;
@@ -3769,7 +3979,9 @@ exports.COPY_FEEDBACK_MS = COPY_FEEDBACK_MS;
3769
3979
  exports.ChipOverflow = ChipOverflow;
3770
3980
  exports.ConfirmDialog = ConfirmDialog;
3771
3981
  exports.ConfirmDialogFocus = ConfirmDialogFocus;
3982
+ exports.CopyRowEmphasis = CopyRowEmphasis;
3772
3983
  exports.CopyStatus = CopyStatus;
3984
+ exports.CopyValueRow = CopyValueRow;
3773
3985
  exports.CopyableId = CopyableId;
3774
3986
  exports.CountBadge = CountBadge;
3775
3987
  exports.DEFAULT_BILLING_ROUTE = DEFAULT_BILLING_ROUTE;
@@ -3784,6 +3996,8 @@ exports.IdChip = IdChip;
3784
3996
  exports.LAYOUT_COLLAPSE_BREAKPOINT = LAYOUT_COLLAPSE_BREAKPOINT;
3785
3997
  exports.LAYOUT_I18N = LAYOUT_I18N;
3786
3998
  exports.LAYOUT_TEST_IDS = LAYOUT_TEST_IDS;
3999
+ exports.ListDetailLayout = ListDetailLayout;
4000
+ exports.ListDetailPane = ListDetailPane;
3787
4001
  exports.ListRow = ListRow;
3788
4002
  exports.MIN_TARGET_PX = MIN_TARGET_PX;
3789
4003
  exports.MODAL_FOOTER_STACK_BELOW = MODAL_FOOTER_STACK_BELOW;
@@ -3812,13 +4026,18 @@ exports.StickyPreview = StickyPreview;
3812
4026
  exports.TYPE_SCALE_BREAKPOINT = TYPE_SCALE_BREAKPOINT;
3813
4027
  exports.Tabs = Tabs;
3814
4028
  exports.TabsCollapsedTrigger = TabsCollapsedTrigger;
4029
+ exports.TabsVariant = TabsVariant;
3815
4030
  exports.TextKind = TextKind;
3816
4031
  exports.Timeline = Timeline;
3817
4032
  exports.ToggleSection = ToggleSection;
4033
+ exports.TotalsStrip = TotalsStrip;
4034
+ exports.TotalsTone = TotalsTone;
4035
+ exports.TransferSlip = TransferSlip;
3818
4036
  exports.TruncatedText = TruncatedText;
3819
4037
  exports.UnderlineTabs = UnderlineTabs;
3820
4038
  exports.UpgradePrompt = UpgradePrompt;
3821
4039
  exports.WidgetCard = WidgetCard;
4040
+ exports.copyActionLabel = copyActionLabel;
3822
4041
  exports.copyText = copyText;
3823
4042
  exports.figureCell = figureCell;
3824
4043
  exports.formatBuildInfo = formatBuildInfo;
@@ -3831,6 +4050,7 @@ exports.isSplitSideBySide = isSplitSideBySide;
3831
4050
  exports.isWideWebViewport = isWideWebViewport;
3832
4051
  exports.pageScale = pageScale;
3833
4052
  exports.resolveActiveKey = resolveActiveKey;
4053
+ exports.resolveListDetailPanes = resolveListDetailPanes;
3834
4054
  exports.resolveRowLook = resolveRowLook;
3835
4055
  exports.resolveToneColors = resolveToneColors;
3836
4056
  exports.rowSelection = rowSelection;