@dloizides/ui-layout 1.48.0 → 1.49.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
@@ -1288,4 +1288,87 @@ interface TimelineProps {
1288
1288
  /** A vertical rail of entries: time, title and an optional status badge per entry, in the given order. */
1289
1289
  declare const Timeline: ({ entries, accessibilityLabel, accessibilityHint, testID }: TimelineProps) => React.ReactElement;
1290
1290
 
1291
- export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, 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, 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, type RowLook, type RowPalette, RowSelectedStyle, 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, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
1291
+ interface RecordHeaderProps {
1292
+ breadcrumb?: React.ReactNode;
1293
+ title: React.ReactNode;
1294
+ meta?: React.ReactNode;
1295
+ actions?: React.ReactNode;
1296
+ collapseBelow?: number;
1297
+ testID?: string;
1298
+ }
1299
+ /** A record page header: breadcrumb, title and id meta left, record actions top right; stacked on a phone. */
1300
+ declare const RecordHeader: ({ breadcrumb, title, meta, actions, collapseBelow, testID }: RecordHeaderProps) => React.ReactElement;
1301
+
1302
+ interface BreadcrumbItem {
1303
+ key: string;
1304
+ label: string;
1305
+ onPress?: () => void;
1306
+ accessibilityHint?: string;
1307
+ testID?: string;
1308
+ }
1309
+ interface BreadcrumbProps {
1310
+ items: ReadonlyArray<BreadcrumbItem>;
1311
+ accessibilityLabel: string;
1312
+ testID?: string;
1313
+ }
1314
+ /** A compact text trail back to the parent list; a step without onPress is the current place. */
1315
+ declare const Breadcrumb: ({ items, accessibilityLabel, testID }: BreadcrumbProps) => React.ReactElement;
1316
+
1317
+ interface RecordActionButtonProps {
1318
+ label: string;
1319
+ hint: string;
1320
+ testID: string;
1321
+ icon?: React.ReactNode;
1322
+ onPress?: () => void;
1323
+ iconOnly?: boolean;
1324
+ disabledReason?: string;
1325
+ }
1326
+ /** One record action with an icon; icon only when compact, disabled with a reason when it has no onPress. */
1327
+ declare const RecordActionButton: ({ label, hint, testID, icon, onPress, iconOnly, disabledReason }: RecordActionButtonProps) => React.ReactElement;
1328
+
1329
+ /** True when a record header stacks its parts and shows icon-only secondary actions. */
1330
+ declare function isRecordHeaderCompact(width: number, breakpoint?: number): boolean;
1331
+
1332
+ interface IdChipProps {
1333
+ label: string;
1334
+ value: string;
1335
+ testID: string;
1336
+ accessibilityLabel: string;
1337
+ accessibilityHint: string;
1338
+ display?: string;
1339
+ valueTestID?: string;
1340
+ writer?: (text: string) => void | Promise<void>;
1341
+ }
1342
+ /** An id chip: label and monospace value inside one box with a copy glyph; pressing it copies the full value. */
1343
+ declare const IdChip: ({ label, value, testID, accessibilityLabel, accessibilityHint, display, valueTestID, writer }: IdChipProps) => React.ReactElement;
1344
+
1345
+ interface UnderlineTab {
1346
+ key: string;
1347
+ label: string;
1348
+ count?: number;
1349
+ testID?: string;
1350
+ accessibilityHint?: string;
1351
+ }
1352
+ interface UnderlineTabsProps {
1353
+ tabs: ReadonlyArray<UnderlineTab>;
1354
+ activeKey: string;
1355
+ onChange: (key: string) => void;
1356
+ accessibilityLabel: string;
1357
+ underlineColor?: string;
1358
+ testID?: string;
1359
+ }
1360
+ /** A full-width tab strip with an underline on the selected tab and an optional count per tab. */
1361
+ declare const UnderlineTabs: ({ tabs, activeKey, onChange, accessibilityLabel, underlineColor, testID }: UnderlineTabsProps) => React.ReactElement;
1362
+
1363
+ interface WidgetCardProps {
1364
+ title: string;
1365
+ children: React.ReactNode;
1366
+ icon?: React.ReactNode;
1367
+ headerRight?: React.ReactNode;
1368
+ footer?: React.ReactNode;
1369
+ testID?: string;
1370
+ }
1371
+ /** A titled card for one record or summary block, with an optional header slot and a record action footer. */
1372
+ declare const WidgetCard: ({ title, children, icon, headerRight, footer, testID }: WidgetCardProps) => React.ReactElement;
1373
+
1374
+ 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 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, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
package/dist/index.d.ts CHANGED
@@ -1288,4 +1288,87 @@ interface TimelineProps {
1288
1288
  /** A vertical rail of entries: time, title and an optional status badge per entry, in the given order. */
1289
1289
  declare const Timeline: ({ entries, accessibilityLabel, accessibilityHint, testID }: TimelineProps) => React.ReactElement;
1290
1290
 
1291
- export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, 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, 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, type RowLook, type RowPalette, RowSelectedStyle, 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, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
1291
+ interface RecordHeaderProps {
1292
+ breadcrumb?: React.ReactNode;
1293
+ title: React.ReactNode;
1294
+ meta?: React.ReactNode;
1295
+ actions?: React.ReactNode;
1296
+ collapseBelow?: number;
1297
+ testID?: string;
1298
+ }
1299
+ /** A record page header: breadcrumb, title and id meta left, record actions top right; stacked on a phone. */
1300
+ declare const RecordHeader: ({ breadcrumb, title, meta, actions, collapseBelow, testID }: RecordHeaderProps) => React.ReactElement;
1301
+
1302
+ interface BreadcrumbItem {
1303
+ key: string;
1304
+ label: string;
1305
+ onPress?: () => void;
1306
+ accessibilityHint?: string;
1307
+ testID?: string;
1308
+ }
1309
+ interface BreadcrumbProps {
1310
+ items: ReadonlyArray<BreadcrumbItem>;
1311
+ accessibilityLabel: string;
1312
+ testID?: string;
1313
+ }
1314
+ /** A compact text trail back to the parent list; a step without onPress is the current place. */
1315
+ declare const Breadcrumb: ({ items, accessibilityLabel, testID }: BreadcrumbProps) => React.ReactElement;
1316
+
1317
+ interface RecordActionButtonProps {
1318
+ label: string;
1319
+ hint: string;
1320
+ testID: string;
1321
+ icon?: React.ReactNode;
1322
+ onPress?: () => void;
1323
+ iconOnly?: boolean;
1324
+ disabledReason?: string;
1325
+ }
1326
+ /** One record action with an icon; icon only when compact, disabled with a reason when it has no onPress. */
1327
+ declare const RecordActionButton: ({ label, hint, testID, icon, onPress, iconOnly, disabledReason }: RecordActionButtonProps) => React.ReactElement;
1328
+
1329
+ /** True when a record header stacks its parts and shows icon-only secondary actions. */
1330
+ declare function isRecordHeaderCompact(width: number, breakpoint?: number): boolean;
1331
+
1332
+ interface IdChipProps {
1333
+ label: string;
1334
+ value: string;
1335
+ testID: string;
1336
+ accessibilityLabel: string;
1337
+ accessibilityHint: string;
1338
+ display?: string;
1339
+ valueTestID?: string;
1340
+ writer?: (text: string) => void | Promise<void>;
1341
+ }
1342
+ /** An id chip: label and monospace value inside one box with a copy glyph; pressing it copies the full value. */
1343
+ declare const IdChip: ({ label, value, testID, accessibilityLabel, accessibilityHint, display, valueTestID, writer }: IdChipProps) => React.ReactElement;
1344
+
1345
+ interface UnderlineTab {
1346
+ key: string;
1347
+ label: string;
1348
+ count?: number;
1349
+ testID?: string;
1350
+ accessibilityHint?: string;
1351
+ }
1352
+ interface UnderlineTabsProps {
1353
+ tabs: ReadonlyArray<UnderlineTab>;
1354
+ activeKey: string;
1355
+ onChange: (key: string) => void;
1356
+ accessibilityLabel: string;
1357
+ underlineColor?: string;
1358
+ testID?: string;
1359
+ }
1360
+ /** A full-width tab strip with an underline on the selected tab and an optional count per tab. */
1361
+ declare const UnderlineTabs: ({ tabs, activeKey, onChange, accessibilityLabel, underlineColor, testID }: UnderlineTabsProps) => React.ReactElement;
1362
+
1363
+ interface WidgetCardProps {
1364
+ title: string;
1365
+ children: React.ReactNode;
1366
+ icon?: React.ReactNode;
1367
+ headerRight?: React.ReactNode;
1368
+ footer?: React.ReactNode;
1369
+ testID?: string;
1370
+ }
1371
+ /** A titled card for one record or summary block, with an optional header slot and a record action footer. */
1372
+ declare const WidgetCard: ({ title, children, icon, headerRight, footer, testID }: WidgetCardProps) => React.ReactElement;
1373
+
1374
+ 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 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, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
package/dist/index.js CHANGED
@@ -3486,6 +3486,188 @@ var Timeline = ({ entries, accessibilityLabel, accessibilityHint, testID }) => {
3486
3486
  )) });
3487
3487
  };
3488
3488
 
3489
+ // src/RecordHeader/recordHeaderLayout.ts
3490
+ function isRecordHeaderCompact(width, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT) {
3491
+ return width < breakpoint;
3492
+ }
3493
+ var GAP2 = 8;
3494
+ var WIDE_GAP = 16;
3495
+ var styles35 = reactNative.StyleSheet.create({
3496
+ actions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2, justifyContent: "flex-end" },
3497
+ compactActions: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP2 },
3498
+ identity: { flex: 1, gap: GAP2, minWidth: 0 },
3499
+ root: { gap: GAP2 },
3500
+ top: { alignItems: "flex-start", flexDirection: "row", gap: WIDE_GAP }
3501
+ });
3502
+ var RecordHeader = ({ breadcrumb, title, meta, actions, collapseBelow, testID }) => {
3503
+ const compact = isRecordHeaderCompact(reactNative.useWindowDimensions().width, collapseBelow);
3504
+ const actionRow = actions === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: compact ? styles35.compactActions : styles35.actions, children: actions });
3505
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles35.root, testID, children: /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: compact ? styles35.root : styles35.top, children: [
3506
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles35.identity, children: [
3507
+ breadcrumb,
3508
+ title,
3509
+ meta
3510
+ ] }),
3511
+ actionRow
3512
+ ] }) });
3513
+ };
3514
+ var FONT_SIZE = 13;
3515
+ var GAP3 = 6;
3516
+ var SEPARATOR = "\u203A";
3517
+ var BACK = "\u2039";
3518
+ var styles36 = reactNative.StyleSheet.create({
3519
+ link: { justifyContent: "center", minHeight: MIN_TARGET_PX },
3520
+ row: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP3 },
3521
+ text: { fontSize: FONT_SIZE, fontWeight: "500" }
3522
+ });
3523
+ var Breadcrumb = ({ items, accessibilityLabel, testID }) => {
3524
+ const { theme } = uiFeedback.useUi();
3525
+ const muted = { color: theme.colors.textSecondary };
3526
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { "aria-label": accessibilityLabel, style: styles36.row, testID, children: [
3527
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles36.text, muted], children: BACK }),
3528
+ items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React16__default.default.Fragment, { children: [
3529
+ index > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles36.text, muted], children: SEPARATOR }) : null,
3530
+ item.onPress === void 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles36.text, muted], testID: item.testID, children: item.label }) : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { accessibilityHint: item.accessibilityHint, accessibilityLabel: item.label, accessibilityRole: "link", style: styles36.link, testID: item.testID, onPress: item.onPress, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles36.text, { color: theme.colors.text }], children: item.label }) })
3531
+ ] }, item.key))
3532
+ ] });
3533
+ };
3534
+ var RADIUS = 8;
3535
+ var PAD_H2 = 12;
3536
+ var GAP4 = 6;
3537
+ var FONT_SIZE2 = 13;
3538
+ var DISABLED_OPACITY2 = 0.55;
3539
+ var styles37 = reactNative.StyleSheet.create({
3540
+ base: { alignItems: "center", borderRadius: RADIUS, borderWidth: 1, flexDirection: "row", gap: GAP4, justifyContent: "center", minHeight: MIN_TARGET_PX, minWidth: MIN_TARGET_PX, paddingHorizontal: PAD_H2 },
3541
+ disabled: { borderStyle: "dashed", opacity: DISABLED_OPACITY2 },
3542
+ text: { fontSize: FONT_SIZE2, fontWeight: "600" }
3543
+ });
3544
+ function hasTitle(node) {
3545
+ return typeof node === "object" && node !== null && "setAttribute" in node;
3546
+ }
3547
+ var RecordActionButton = ({ label, hint, testID, icon, onPress, iconOnly = false, disabledReason }) => {
3548
+ const { theme } = uiFeedback.useUi();
3549
+ const ref = React16.useRef(null);
3550
+ const disabled = onPress === void 0;
3551
+ const title = disabled ? disabledReason : void 0;
3552
+ React16.useEffect(() => {
3553
+ const node = ref.current;
3554
+ if (reactNative.Platform.OS === "web" && title !== void 0 && hasTitle(node)) node.setAttribute("title", title);
3555
+ }, [title]);
3556
+ const showLabel = !iconOnly || icon === void 0;
3557
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3558
+ reactNative.Pressable,
3559
+ {
3560
+ ref,
3561
+ accessibilityHint: title ?? hint,
3562
+ accessibilityLabel: label,
3563
+ accessibilityRole: "button",
3564
+ accessibilityState: { disabled },
3565
+ disabled,
3566
+ style: [styles37.base, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }, disabled && styles37.disabled],
3567
+ testID,
3568
+ onPress,
3569
+ children: [
3570
+ icon === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, children: icon }),
3571
+ showLabel ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles37.text, { color: theme.colors.text }], children: label }) : null
3572
+ ]
3573
+ }
3574
+ );
3575
+ };
3576
+ var RADIUS2 = 6;
3577
+ var PAD_H3 = 10;
3578
+ var GAP5 = 6;
3579
+ var FONT_SIZE3 = 12;
3580
+ var COPY_GLYPH = "\u29C9";
3581
+ var COPIED_GLYPH = "\u2713";
3582
+ var MONO = reactNative.Platform.select({ web: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", default: "monospace" });
3583
+ var styles38 = reactNative.StyleSheet.create({
3584
+ chip: { alignItems: "center", alignSelf: "flex-start", borderRadius: RADIUS2, borderWidth: 1, flexDirection: "row", gap: GAP5, maxWidth: "100%", minHeight: MIN_TARGET_PX, paddingHorizontal: PAD_H3 },
3585
+ text: { flexShrink: 1, fontFamily: MONO, fontSize: FONT_SIZE3 }
3586
+ });
3587
+ var IdChip = ({ label, value, testID, accessibilityLabel, accessibilityHint, display, valueTestID, writer }) => {
3588
+ const { theme } = uiFeedback.useUi();
3589
+ const { status, copy } = useCopyToClipboard(value, writer);
3590
+ const ink = { color: theme.colors.text };
3591
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3592
+ reactNative.Pressable,
3593
+ {
3594
+ accessibilityHint,
3595
+ accessibilityLabel,
3596
+ accessibilityRole: "button",
3597
+ style: [styles38.chip, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }],
3598
+ testID,
3599
+ onPress: copy,
3600
+ children: [
3601
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles38.text, { color: theme.colors.textSecondary }], children: label }),
3602
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles38.text, ink], testID: valueTestID, children: display ?? value }),
3603
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles38.text, ink], testID: `${testID}-glyph`, children: status === "copied" /* Copied */ ? COPIED_GLYPH : COPY_GLYPH })
3604
+ ]
3605
+ }
3606
+ );
3607
+ };
3608
+ var UNDERLINE = 3;
3609
+ var PAD_H4 = 12;
3610
+ var GAP6 = 6;
3611
+ var FONT_SIZE4 = 14;
3612
+ var COUNT_FONT = 12;
3613
+ var COUNT_MIN = 22;
3614
+ var COUNT_PAD = 6;
3615
+ var PILL = 999;
3616
+ var DEFAULT_UNDERLINE_STEP = "700";
3617
+ var styles39 = reactNative.StyleSheet.create({
3618
+ count: { borderRadius: PILL, fontSize: COUNT_FONT, fontWeight: "700", minWidth: COUNT_MIN, paddingHorizontal: COUNT_PAD, textAlign: "center" },
3619
+ label: { fontSize: FONT_SIZE4, fontWeight: "600" },
3620
+ strip: { borderBottomWidth: 1, width: "100%" },
3621
+ tab: { alignItems: "center", borderBottomWidth: UNDERLINE, flexDirection: "row", gap: GAP6, justifyContent: "center", minHeight: MIN_TARGET_PX, minWidth: MIN_TARGET_PX, paddingHorizontal: PAD_H4 }
3622
+ });
3623
+ var UnderlineTabs = ({ tabs, activeKey, onChange, accessibilityLabel, underlineColor, testID }) => {
3624
+ const { theme } = uiFeedback.useUi();
3625
+ const underline = underlineColor ?? theme.palette.primary[DEFAULT_UNDERLINE_STEP];
3626
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles39.strip, { borderBottomColor: theme.colors.border }], testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, accessibilityRole: "tablist", "aria-label": accessibilityLabel, showsHorizontalScrollIndicator: false, children: tabs.map((tab) => {
3627
+ const selected = tab.key === activeKey;
3628
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3629
+ reactNative.Pressable,
3630
+ {
3631
+ accessibilityHint: tab.accessibilityHint,
3632
+ accessibilityLabel: tab.label,
3633
+ accessibilityRole: "tab",
3634
+ accessibilityState: { selected },
3635
+ "aria-selected": selected,
3636
+ style: [styles39.tab, { borderBottomColor: selected ? underline : "transparent" }],
3637
+ testID: tab.testID,
3638
+ onPress: () => onChange(tab.key),
3639
+ children: [
3640
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles39.label, { color: selected ? theme.colors.text : theme.colors.textSecondary }], children: tab.label }),
3641
+ tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles39.count, { backgroundColor: theme.colors.border, color: theme.colors.text }], children: String(tab.count) })
3642
+ ]
3643
+ },
3644
+ tab.key
3645
+ );
3646
+ }) }) });
3647
+ };
3648
+ var RADIUS3 = 12;
3649
+ var PAD = 16;
3650
+ var GAP7 = 8;
3651
+ var TITLE_FONT = 15;
3652
+ var styles40 = reactNative.StyleSheet.create({
3653
+ card: { borderRadius: RADIUS3, borderWidth: 1, gap: GAP7, minWidth: 0, padding: PAD },
3654
+ footer: { borderRadius: GAP7, borderWidth: 1, gap: GAP7, padding: PAD / 2 + GAP7 / 2 },
3655
+ head: { alignItems: "center", flexDirection: "row", gap: GAP7 },
3656
+ title: { flex: 1, fontSize: TITLE_FONT, fontWeight: "700" }
3657
+ });
3658
+ var WidgetCard = ({ title, children, icon, headerRight, footer, testID }) => {
3659
+ const { theme } = uiFeedback.useUi();
3660
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles40.card, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }], testID, children: [
3661
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles40.head, children: [
3662
+ icon === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, children: icon }),
3663
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles40.title, { color: theme.colors.text }], children: title }),
3664
+ headerRight
3665
+ ] }),
3666
+ children,
3667
+ footer === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles40.footer, { backgroundColor: theme.colors.background, borderColor: theme.colors.border }], children: footer })
3668
+ ] });
3669
+ };
3670
+
3489
3671
  exports.A4_PAGE = A4_PAGE;
3490
3672
  exports.API_COMMIT_SEPARATOR = API_COMMIT_SEPARATOR;
3491
3673
  exports.Accordion = Accordion;
@@ -3494,6 +3676,7 @@ exports.AppText = AppText;
3494
3676
  exports.BUILD_INFO_PREFIX = BUILD_INFO_PREFIX;
3495
3677
  exports.BadgeTone = BadgeTone;
3496
3678
  exports.BottomSheet = BottomSheet;
3679
+ exports.Breadcrumb = Breadcrumb;
3497
3680
  exports.BuildInfoFooter = BuildInfoFooter;
3498
3681
  exports.COPY_FEEDBACK_MS = COPY_FEEDBACK_MS;
3499
3682
  exports.ChipOverflow = ChipOverflow;
@@ -3510,6 +3693,7 @@ exports.FigureStrip = FigureStrip;
3510
3693
  exports.FormDialog = FormDialog;
3511
3694
  exports.HEADER_STACK_BREAKPOINT = HEADER_STACK_BREAKPOINT;
3512
3695
  exports.Heading = Heading;
3696
+ exports.IdChip = IdChip;
3513
3697
  exports.LAYOUT_COLLAPSE_BREAKPOINT = LAYOUT_COLLAPSE_BREAKPOINT;
3514
3698
  exports.LAYOUT_I18N = LAYOUT_I18N;
3515
3699
  exports.LAYOUT_TEST_IDS = LAYOUT_TEST_IDS;
@@ -3520,6 +3704,8 @@ exports.Modal = Modal;
3520
3704
  exports.ModalDropdown = ModalDropdown;
3521
3705
  exports.ModalShell = ModalShell;
3522
3706
  exports.PageFrame = PageFrame;
3707
+ exports.RecordActionButton = RecordActionButton;
3708
+ exports.RecordHeader = RecordHeader;
3523
3709
  exports.RowSelectedStyle = RowSelectedStyle;
3524
3710
  exports.SECTION_INDEX_BREAKPOINT = SECTION_INDEX_BREAKPOINT;
3525
3711
  exports.ScreenColumn = ScreenColumn;
@@ -3543,7 +3729,9 @@ exports.TextKind = TextKind;
3543
3729
  exports.Timeline = Timeline;
3544
3730
  exports.ToggleSection = ToggleSection;
3545
3731
  exports.TruncatedText = TruncatedText;
3732
+ exports.UnderlineTabs = UnderlineTabs;
3546
3733
  exports.UpgradePrompt = UpgradePrompt;
3734
+ exports.WidgetCard = WidgetCard;
3547
3735
  exports.copyText = copyText;
3548
3736
  exports.figureCell = figureCell;
3549
3737
  exports.formatBuildInfo = formatBuildInfo;
@@ -3551,6 +3739,7 @@ exports.formatCount = formatCount;
3551
3739
  exports.formatUrlForDisplay = formatUrlForDisplay;
3552
3740
  exports.isKeyboardOpen = isKeyboardOpen;
3553
3741
  exports.isModalFooterStacked = isModalFooterStacked;
3742
+ exports.isRecordHeaderCompact = isRecordHeaderCompact;
3554
3743
  exports.isSplitSideBySide = isSplitSideBySide;
3555
3744
  exports.isWideWebViewport = isWideWebViewport;
3556
3745
  exports.pageScale = pageScale;