@dloizides/ui-layout 1.66.1 → 1.67.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 +25 -8
- package/dist/index.d.ts +25 -8
- package/dist/index.js +85 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +84 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -228,7 +228,8 @@ declare const PageFrame: ({ children, pageSize, testID, enlargeable, }: PageFram
|
|
|
228
228
|
|
|
229
229
|
declare enum SegmentedVariant {
|
|
230
230
|
Raised = "raised",
|
|
231
|
-
Filled = "filled"
|
|
231
|
+
Filled = "filled",
|
|
232
|
+
Boxed = "boxed"
|
|
232
233
|
}
|
|
233
234
|
|
|
234
235
|
/**
|
|
@@ -268,9 +269,9 @@ interface SegmentedControlProps<V extends string = string> {
|
|
|
268
269
|
style?: StyleProp<ViewStyle>;
|
|
269
270
|
/** Fill the parent width, every segment an equal share. */
|
|
270
271
|
stretch?: boolean;
|
|
271
|
-
/** Raised (default) lifts the selected segment; Filled paints it with `selectedColor`. */
|
|
272
|
+
/** Raised (default) lifts the selected segment; Filled paints it with `selectedColor`; Boxed is the square-cornered frame track that tints it with `selectedColor`. */
|
|
272
273
|
variant?: SegmentedVariant;
|
|
273
|
-
/** Fill of the selected segment in the Filled
|
|
274
|
+
/** Fill of the selected segment in the Filled (default: theme text colour) and Boxed (default: surface) variants. */
|
|
274
275
|
selectedColor?: string;
|
|
275
276
|
testID?: string;
|
|
276
277
|
}
|
|
@@ -1174,6 +1175,7 @@ interface ListRowProps {
|
|
|
1174
1175
|
meta?: React.ReactNode;
|
|
1175
1176
|
badges?: React.ReactNode;
|
|
1176
1177
|
after?: React.ReactNode;
|
|
1178
|
+
divider?: boolean;
|
|
1177
1179
|
selected: boolean;
|
|
1178
1180
|
selectedStyle?: RowSelectedStyle;
|
|
1179
1181
|
onPress: () => void;
|
|
@@ -1181,8 +1183,8 @@ interface ListRowProps {
|
|
|
1181
1183
|
accessibilityHint: string;
|
|
1182
1184
|
testID?: string;
|
|
1183
1185
|
}
|
|
1184
|
-
/** A selectable list row with title, trailing, meta and badge slots
|
|
1185
|
-
declare const ListRow: ({ title, trailing, meta, badges, after, selected, selectedStyle, onPress, accessibilityLabel, accessibilityHint, testID, }: ListRowProps) => React.ReactElement;
|
|
1186
|
+
/** A selectable list row with title, trailing, meta and badge slots, one selected-style setting and an optional top divider. */
|
|
1187
|
+
declare const ListRow: ({ title, trailing, meta, badges, after, divider, selected, selectedStyle, onPress, accessibilityLabel, accessibilityHint, testID, }: ListRowProps) => React.ReactElement;
|
|
1186
1188
|
|
|
1187
1189
|
interface ListRowTone {
|
|
1188
1190
|
textColor: string;
|
|
@@ -1464,6 +1466,12 @@ declare const RecordActionButton: ({ label, hint, testID, icon, onPress, iconOnl
|
|
|
1464
1466
|
/** True when a record header stacks its parts and shows icon-only secondary actions. */
|
|
1465
1467
|
declare function isRecordHeaderCompact(width: number, breakpoint?: number): boolean;
|
|
1466
1468
|
|
|
1469
|
+
declare enum IdEllipsis {
|
|
1470
|
+
Head = "head",
|
|
1471
|
+
Middle = "middle",
|
|
1472
|
+
Tail = "tail"
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1467
1475
|
interface IdChipProps {
|
|
1468
1476
|
label: string;
|
|
1469
1477
|
value: string | null;
|
|
@@ -1473,9 +1481,18 @@ interface IdChipProps {
|
|
|
1473
1481
|
display?: string;
|
|
1474
1482
|
valueTestID?: string;
|
|
1475
1483
|
writer?: (text: string) => void | Promise<void>;
|
|
1484
|
+
width?: number;
|
|
1485
|
+
ellipsis?: IdEllipsis;
|
|
1486
|
+
}
|
|
1487
|
+
/** An id chip: label and monospace value inside one box with a copy glyph; pressing it copies the full value; a set width keeps label and glyph whole and cuts the value at `ellipsis` */
|
|
1488
|
+
declare const IdChip: ({ label, value, testID, accessibilityLabel, accessibilityHint, display, valueTestID, writer, width, ellipsis }: IdChipProps) => React.ReactElement;
|
|
1489
|
+
|
|
1490
|
+
interface CardTitleProps {
|
|
1491
|
+
label: string;
|
|
1492
|
+
testID?: string;
|
|
1476
1493
|
}
|
|
1477
|
-
/**
|
|
1478
|
-
declare const
|
|
1494
|
+
/** The bold heading a card opens with: a header for assistive tech, inked with the theme text colour. */
|
|
1495
|
+
declare const CardTitle: ({ label, testID }: CardTitleProps) => React.ReactElement;
|
|
1479
1496
|
|
|
1480
1497
|
declare enum TabsVariant {
|
|
1481
1498
|
Underline = "underline",
|
|
@@ -1614,4 +1631,4 @@ interface ListDetailVisibility {
|
|
|
1614
1631
|
/** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
|
|
1615
1632
|
declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
|
|
1616
1633
|
|
|
1617
|
-
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, type DayBadgeColors, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, SPY_ACTIVATION_RATIO, SPY_CLICK_LOCK_MS, type ScaledFrame, ScreenColumn, type ScreenColumnProps, type ScrollSpyControl, type ScrollSpyOptions, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, type StickyIndexConfig, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, pickActiveIndex, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useScrollSpy, useVisibleViewport };
|
|
1634
|
+
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, CardTitle, type CardTitleProps, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, type DayBadgeColors, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, IdEllipsis, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, SPY_ACTIVATION_RATIO, SPY_CLICK_LOCK_MS, type ScaledFrame, ScreenColumn, type ScreenColumnProps, type ScrollSpyControl, type ScrollSpyOptions, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, type StickyIndexConfig, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, pickActiveIndex, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useScrollSpy, useVisibleViewport };
|
package/dist/index.d.ts
CHANGED
|
@@ -228,7 +228,8 @@ declare const PageFrame: ({ children, pageSize, testID, enlargeable, }: PageFram
|
|
|
228
228
|
|
|
229
229
|
declare enum SegmentedVariant {
|
|
230
230
|
Raised = "raised",
|
|
231
|
-
Filled = "filled"
|
|
231
|
+
Filled = "filled",
|
|
232
|
+
Boxed = "boxed"
|
|
232
233
|
}
|
|
233
234
|
|
|
234
235
|
/**
|
|
@@ -268,9 +269,9 @@ interface SegmentedControlProps<V extends string = string> {
|
|
|
268
269
|
style?: StyleProp<ViewStyle>;
|
|
269
270
|
/** Fill the parent width, every segment an equal share. */
|
|
270
271
|
stretch?: boolean;
|
|
271
|
-
/** Raised (default) lifts the selected segment; Filled paints it with `selectedColor`. */
|
|
272
|
+
/** Raised (default) lifts the selected segment; Filled paints it with `selectedColor`; Boxed is the square-cornered frame track that tints it with `selectedColor`. */
|
|
272
273
|
variant?: SegmentedVariant;
|
|
273
|
-
/** Fill of the selected segment in the Filled
|
|
274
|
+
/** Fill of the selected segment in the Filled (default: theme text colour) and Boxed (default: surface) variants. */
|
|
274
275
|
selectedColor?: string;
|
|
275
276
|
testID?: string;
|
|
276
277
|
}
|
|
@@ -1174,6 +1175,7 @@ interface ListRowProps {
|
|
|
1174
1175
|
meta?: React.ReactNode;
|
|
1175
1176
|
badges?: React.ReactNode;
|
|
1176
1177
|
after?: React.ReactNode;
|
|
1178
|
+
divider?: boolean;
|
|
1177
1179
|
selected: boolean;
|
|
1178
1180
|
selectedStyle?: RowSelectedStyle;
|
|
1179
1181
|
onPress: () => void;
|
|
@@ -1181,8 +1183,8 @@ interface ListRowProps {
|
|
|
1181
1183
|
accessibilityHint: string;
|
|
1182
1184
|
testID?: string;
|
|
1183
1185
|
}
|
|
1184
|
-
/** A selectable list row with title, trailing, meta and badge slots
|
|
1185
|
-
declare const ListRow: ({ title, trailing, meta, badges, after, selected, selectedStyle, onPress, accessibilityLabel, accessibilityHint, testID, }: ListRowProps) => React.ReactElement;
|
|
1186
|
+
/** A selectable list row with title, trailing, meta and badge slots, one selected-style setting and an optional top divider. */
|
|
1187
|
+
declare const ListRow: ({ title, trailing, meta, badges, after, divider, selected, selectedStyle, onPress, accessibilityLabel, accessibilityHint, testID, }: ListRowProps) => React.ReactElement;
|
|
1186
1188
|
|
|
1187
1189
|
interface ListRowTone {
|
|
1188
1190
|
textColor: string;
|
|
@@ -1464,6 +1466,12 @@ declare const RecordActionButton: ({ label, hint, testID, icon, onPress, iconOnl
|
|
|
1464
1466
|
/** True when a record header stacks its parts and shows icon-only secondary actions. */
|
|
1465
1467
|
declare function isRecordHeaderCompact(width: number, breakpoint?: number): boolean;
|
|
1466
1468
|
|
|
1469
|
+
declare enum IdEllipsis {
|
|
1470
|
+
Head = "head",
|
|
1471
|
+
Middle = "middle",
|
|
1472
|
+
Tail = "tail"
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1467
1475
|
interface IdChipProps {
|
|
1468
1476
|
label: string;
|
|
1469
1477
|
value: string | null;
|
|
@@ -1473,9 +1481,18 @@ interface IdChipProps {
|
|
|
1473
1481
|
display?: string;
|
|
1474
1482
|
valueTestID?: string;
|
|
1475
1483
|
writer?: (text: string) => void | Promise<void>;
|
|
1484
|
+
width?: number;
|
|
1485
|
+
ellipsis?: IdEllipsis;
|
|
1486
|
+
}
|
|
1487
|
+
/** An id chip: label and monospace value inside one box with a copy glyph; pressing it copies the full value; a set width keeps label and glyph whole and cuts the value at `ellipsis` */
|
|
1488
|
+
declare const IdChip: ({ label, value, testID, accessibilityLabel, accessibilityHint, display, valueTestID, writer, width, ellipsis }: IdChipProps) => React.ReactElement;
|
|
1489
|
+
|
|
1490
|
+
interface CardTitleProps {
|
|
1491
|
+
label: string;
|
|
1492
|
+
testID?: string;
|
|
1476
1493
|
}
|
|
1477
|
-
/**
|
|
1478
|
-
declare const
|
|
1494
|
+
/** The bold heading a card opens with: a header for assistive tech, inked with the theme text colour. */
|
|
1495
|
+
declare const CardTitle: ({ label, testID }: CardTitleProps) => React.ReactElement;
|
|
1479
1496
|
|
|
1480
1497
|
declare enum TabsVariant {
|
|
1481
1498
|
Underline = "underline",
|
|
@@ -1614,4 +1631,4 @@ interface ListDetailVisibility {
|
|
|
1614
1631
|
/** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
|
|
1615
1632
|
declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
|
|
1616
1633
|
|
|
1617
|
-
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, type DayBadgeColors, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, SPY_ACTIVATION_RATIO, SPY_CLICK_LOCK_MS, type ScaledFrame, ScreenColumn, type ScreenColumnProps, type ScrollSpyControl, type ScrollSpyOptions, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, type StickyIndexConfig, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, pickActiveIndex, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useScrollSpy, useVisibleViewport };
|
|
1634
|
+
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeSize, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, CardTitle, type CardTitleProps, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, type DayBadgeColors, DayBadgeFill, DayCard, DayCardLayout, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, IdChip, type IdChipProps, IdEllipsis, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListDetailLayout, type ListDetailLayoutProps, ListDetailPane, type ListDetailVisibility, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, PageHead, type PageHeadProps, type PageSize, RecordActionButton, type RecordActionButtonProps, RecordHeader, type RecordHeaderProps, type RowLook, type RowPalette, RowSelectedStyle, type RowSelection, type RowSelectionKeys, type RowState, SECTION_INDEX_BREAKPOINT, SECTION_INDEX_WIDTH, SPY_ACTIVATION_RATIO, SPY_CLICK_LOCK_MS, type ScaledFrame, ScreenColumn, type ScreenColumnProps, type ScrollSpyControl, type ScrollSpyOptions, Section, SectionChips, type SectionChipsProps, SectionDensity, type SectionFold, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SegmentedVariant, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, type StickyIndexConfig, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TabsVariant, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, type TotalsItem, TotalsStrip, type TotalsStripProps, TotalsTone, TransferSlip, type TransferSlipProps, TruncatedText, type TruncatedTextProps, type UnderlineTab, UnderlineTabs, type UnderlineTabsProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, WidgetCard, type WidgetCardProps, copyActionLabel, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, pickActiveIndex, resolveActiveKey, resolveListDetailPanes, resolveRowLook, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useScrollSpy, useVisibleViewport };
|
package/dist/index.js
CHANGED
|
@@ -969,36 +969,53 @@ var PageFrame = ({
|
|
|
969
969
|
var SegmentedVariant = /* @__PURE__ */ ((SegmentedVariant2) => {
|
|
970
970
|
SegmentedVariant2["Raised"] = "raised";
|
|
971
971
|
SegmentedVariant2["Filled"] = "filled";
|
|
972
|
+
SegmentedVariant2["Boxed"] = "boxed";
|
|
972
973
|
return SegmentedVariant2;
|
|
973
974
|
})(SegmentedVariant || {});
|
|
974
975
|
|
|
975
976
|
// src/SegmentedControl/segmentLook.ts
|
|
976
977
|
var FILLED_RADIUS = 10;
|
|
977
978
|
var FILLED_PAD_V = 12;
|
|
979
|
+
var BOXED_RADIUS = 10;
|
|
980
|
+
var BOXED_PAD = 3;
|
|
981
|
+
var BOXED_GAP = 2;
|
|
982
|
+
var BOXED_SEGMENT_RADIUS = 7;
|
|
983
|
+
var BOXED_PAD_V = 6;
|
|
984
|
+
var BOXED_PAD_H = 12;
|
|
985
|
+
var BOXED_FONT = 13;
|
|
978
986
|
var TRANSPARENT = "transparent";
|
|
979
987
|
var styles10 = reactNative.StyleSheet.create({
|
|
980
988
|
filledTrack: { borderRadius: FILLED_RADIUS, padding: 0, gap: 0, overflow: "hidden" },
|
|
981
989
|
filledSegment: { borderRadius: 0, paddingVertical: FILLED_PAD_V },
|
|
990
|
+
boxedTrack: { borderRadius: BOXED_RADIUS, padding: BOXED_PAD, gap: BOXED_GAP },
|
|
991
|
+
boxedSegment: { borderRadius: BOXED_SEGMENT_RADIUS, paddingVertical: BOXED_PAD_V, paddingHorizontal: BOXED_PAD_H },
|
|
992
|
+
boxedLabel: { fontSize: BOXED_FONT },
|
|
982
993
|
stretchTrack: { alignSelf: "stretch" },
|
|
983
994
|
stretchSegment: { flex: 1 }
|
|
984
995
|
});
|
|
985
996
|
function segmentLook(variant, selected, colors, selectedColor) {
|
|
986
997
|
if (!selected) return { fill: TRANSPARENT, ink: colors.textSecondary };
|
|
987
998
|
if (variant === "filled" /* Filled */) return { fill: selectedColor ?? colors.text, ink: colors.surface };
|
|
999
|
+
if (variant === "boxed" /* Boxed */) return { fill: selectedColor ?? colors.surface, ink: colors.text };
|
|
988
1000
|
return { fill: colors.surface, ink: colors.text };
|
|
989
1001
|
}
|
|
990
1002
|
function trackShape(variant, stretch) {
|
|
991
1003
|
const shape = [];
|
|
992
1004
|
if (variant === "filled" /* Filled */) shape.push(styles10.filledTrack);
|
|
1005
|
+
if (variant === "boxed" /* Boxed */) shape.push(styles10.boxedTrack);
|
|
993
1006
|
if (stretch) shape.push(styles10.stretchTrack);
|
|
994
1007
|
return shape;
|
|
995
1008
|
}
|
|
996
1009
|
function segmentShape(variant, stretch) {
|
|
997
1010
|
const shape = [];
|
|
998
1011
|
if (variant === "filled" /* Filled */) shape.push(styles10.filledSegment);
|
|
1012
|
+
if (variant === "boxed" /* Boxed */) shape.push(styles10.boxedSegment);
|
|
999
1013
|
if (stretch) shape.push(styles10.stretchSegment);
|
|
1000
1014
|
return shape;
|
|
1001
1015
|
}
|
|
1016
|
+
function labelShape(variant) {
|
|
1017
|
+
return variant === "boxed" /* Boxed */ ? [styles10.boxedLabel] : [];
|
|
1018
|
+
}
|
|
1002
1019
|
var TRACK_PADDING = 3;
|
|
1003
1020
|
var TRACK_RADIUS = 999;
|
|
1004
1021
|
var SEGMENT_RADIUS = 999;
|
|
@@ -1086,7 +1103,7 @@ function SegmentedControl({
|
|
|
1086
1103
|
],
|
|
1087
1104
|
testID: opt.testID,
|
|
1088
1105
|
...ariaSelectedProps(selected),
|
|
1089
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.label, { color: look.ink }], children: opt.label })
|
|
1106
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles11.label, ...labelShape(variant), { color: look.ink }], children: opt.label })
|
|
1090
1107
|
},
|
|
1091
1108
|
opt.value
|
|
1092
1109
|
);
|
|
@@ -2528,10 +2545,10 @@ function useAccordionContext() {
|
|
|
2528
2545
|
}
|
|
2529
2546
|
return value;
|
|
2530
2547
|
}
|
|
2531
|
-
var
|
|
2548
|
+
var BOXED_GAP2 = 12;
|
|
2532
2549
|
var styles22 = reactNative.StyleSheet.create({
|
|
2533
2550
|
container: { alignSelf: "stretch" },
|
|
2534
|
-
boxed: { gap:
|
|
2551
|
+
boxed: { gap: BOXED_GAP2 }
|
|
2535
2552
|
});
|
|
2536
2553
|
function computeInitialOpen(children, defaultOpenIds, allowMultiple) {
|
|
2537
2554
|
const ids = new Set(defaultOpenIds ?? []);
|
|
@@ -3339,6 +3356,7 @@ var ListRow = ({
|
|
|
3339
3356
|
meta,
|
|
3340
3357
|
badges,
|
|
3341
3358
|
after,
|
|
3359
|
+
divider = true,
|
|
3342
3360
|
selected,
|
|
3343
3361
|
selectedStyle = "surface" /* Surface */,
|
|
3344
3362
|
onPress,
|
|
@@ -3363,7 +3381,7 @@ var ListRow = ({
|
|
|
3363
3381
|
style: (state) => {
|
|
3364
3382
|
const { pressed, hovered } = state;
|
|
3365
3383
|
const look = resolveRowLook(selectedStyle, { selected, pressed, focused, hovered: hovered === true }, palette);
|
|
3366
|
-
return [styles28.row, { borderTopColor: colors.border }, look.container];
|
|
3384
|
+
return [styles28.row, { borderTopColor: colors.border, borderTopWidth: divider ? 1 : 0 }, look.container];
|
|
3367
3385
|
},
|
|
3368
3386
|
testID,
|
|
3369
3387
|
onBlur: () => {
|
|
@@ -3992,6 +4010,14 @@ var RecordActionButton = ({ label, hint, testID, icon, onPress, iconOnly = false
|
|
|
3992
4010
|
}
|
|
3993
4011
|
);
|
|
3994
4012
|
};
|
|
4013
|
+
|
|
4014
|
+
// src/CopyableId/IdEllipsis.ts
|
|
4015
|
+
var IdEllipsis = /* @__PURE__ */ ((IdEllipsis2) => {
|
|
4016
|
+
IdEllipsis2["Head"] = "head";
|
|
4017
|
+
IdEllipsis2["Middle"] = "middle";
|
|
4018
|
+
IdEllipsis2["Tail"] = "tail";
|
|
4019
|
+
return IdEllipsis2;
|
|
4020
|
+
})(IdEllipsis || {});
|
|
3995
4021
|
var RADIUS2 = 6;
|
|
3996
4022
|
var PAD_H3 = 10;
|
|
3997
4023
|
var GAP5 = 6;
|
|
@@ -4001,9 +4027,10 @@ var COPIED_GLYPH = "\u2713";
|
|
|
4001
4027
|
var MONO = reactNative.Platform.select({ web: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", default: "monospace" });
|
|
4002
4028
|
var styles41 = reactNative.StyleSheet.create({
|
|
4003
4029
|
chip: { alignItems: "center", alignSelf: "flex-start", borderRadius: RADIUS2, borderWidth: 1, flexDirection: "row", gap: GAP5, maxWidth: "100%", minHeight: MIN_TARGET_PX, paddingHorizontal: PAD_H3 },
|
|
4004
|
-
text: { flexShrink: 1, fontFamily: MONO, fontSize: FONT_SIZE3 }
|
|
4030
|
+
text: { flexShrink: 1, fontFamily: MONO, fontSize: FONT_SIZE3 },
|
|
4031
|
+
fixed: { flexShrink: 0, fontFamily: MONO, fontSize: FONT_SIZE3 }
|
|
4005
4032
|
});
|
|
4006
|
-
var IdChip = ({ label, value, testID, accessibilityLabel, accessibilityHint, display, valueTestID, writer }) => {
|
|
4033
|
+
var IdChip = ({ label, value, testID, accessibilityLabel, accessibilityHint, display, valueTestID, writer, width, ellipsis = "tail" /* Tail */ }) => {
|
|
4007
4034
|
const { theme } = uiFeedback.useUi();
|
|
4008
4035
|
const copyable = value !== null && value !== "";
|
|
4009
4036
|
const { status, copy } = useCopyToClipboard(value ?? "", writer);
|
|
@@ -4016,24 +4043,33 @@ var IdChip = ({ label, value, testID, accessibilityLabel, accessibilityHint, dis
|
|
|
4016
4043
|
accessibilityRole: "button",
|
|
4017
4044
|
accessibilityState: { disabled: !copyable },
|
|
4018
4045
|
disabled: !copyable,
|
|
4019
|
-
style: [styles41.chip, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }],
|
|
4046
|
+
style: [styles41.chip, width === void 0 ? null : { width }, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }],
|
|
4020
4047
|
testID,
|
|
4021
4048
|
onPress: copyable ? copy : void 0,
|
|
4022
4049
|
children: [
|
|
4023
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles41.
|
|
4024
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { numberOfLines: 1, style: [styles41.text, ink], testID: valueTestID, children: display ?? value }),
|
|
4025
|
-
copyable ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles41.
|
|
4050
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles41.fixed, { color: theme.colors.textSecondary }], children: label }),
|
|
4051
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { ellipsizeMode: ellipsis, numberOfLines: 1, style: [styles41.text, ink], testID: valueTestID, children: display ?? value }),
|
|
4052
|
+
copyable ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles41.fixed, ink], testID: `${testID}-glyph`, children: status === "copied" /* Copied */ ? COPIED_GLYPH : COPY_GLYPH }) : null
|
|
4026
4053
|
]
|
|
4027
4054
|
}
|
|
4028
4055
|
);
|
|
4029
4056
|
};
|
|
4057
|
+
var TITLE_FONT = 15;
|
|
4058
|
+
var TITLE_GAP = 12;
|
|
4059
|
+
var styles42 = reactNative.StyleSheet.create({
|
|
4060
|
+
title: { fontSize: TITLE_FONT, fontWeight: "700", marginBottom: TITLE_GAP }
|
|
4061
|
+
});
|
|
4062
|
+
var CardTitle = ({ label, testID }) => {
|
|
4063
|
+
const { theme } = uiFeedback.useUi();
|
|
4064
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles42.title, { color: theme.colors.text }], testID, children: label });
|
|
4065
|
+
};
|
|
4030
4066
|
var STEP_WIDTH = 8;
|
|
4031
4067
|
var STEP_OPACITIES = [0.35, 0.65, 0.9];
|
|
4032
|
-
var
|
|
4068
|
+
var styles43 = reactNative.StyleSheet.create({
|
|
4033
4069
|
fade: { bottom: 0, flexDirection: "row", position: "absolute", right: 0, top: 0 },
|
|
4034
4070
|
step: { width: STEP_WIDTH }
|
|
4035
4071
|
});
|
|
4036
|
-
var EdgeFadeStrip = ({ color }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, pointerEvents: "none", style:
|
|
4072
|
+
var EdgeFadeStrip = ({ color }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, pointerEvents: "none", style: styles43.fade, children: STEP_OPACITIES.map((opacity) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles43.step, { backgroundColor: color, opacity }] }, opacity)) });
|
|
4037
4073
|
var SLACK_PX = 1;
|
|
4038
4074
|
function showsEdgeFade({ contentWidth, viewportWidth, offset }) {
|
|
4039
4075
|
return contentWidth - viewportWidth - offset > SLACK_PX;
|
|
@@ -4060,7 +4096,7 @@ var COUNT_FONT = 12;
|
|
|
4060
4096
|
var COUNT_MIN = 22;
|
|
4061
4097
|
var COUNT_PAD = 6;
|
|
4062
4098
|
var PILL = 999;
|
|
4063
|
-
var
|
|
4099
|
+
var styles44 = reactNative.StyleSheet.create({
|
|
4064
4100
|
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 },
|
|
4065
4101
|
chipCount: { fontSize: FONT_SIZE4, fontWeight: "700" },
|
|
4066
4102
|
count: { borderRadius: PILL, fontSize: COUNT_FONT, fontWeight: "700", minWidth: COUNT_MIN, paddingHorizontal: COUNT_PAD, textAlign: "center" },
|
|
@@ -4084,10 +4120,10 @@ var TabPressable = ({ tab, selected, onChange, style, children }) => /* @__PURE_
|
|
|
4084
4120
|
var UnderlineTabItem = ({ underline, activeText, ...item }) => {
|
|
4085
4121
|
const { theme } = uiFeedback.useUi();
|
|
4086
4122
|
const selectedInk = activeText ?? theme.colors.text;
|
|
4087
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [
|
|
4123
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [styles44.tab, { borderBottomColor: item.selected ? underline : "transparent" }], children: [
|
|
4088
4124
|
item.tab.icon ?? null,
|
|
4089
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4090
|
-
item.tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4125
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles44.label, { color: item.selected ? selectedInk : theme.colors.textSecondary }], children: item.tab.label }),
|
|
4126
|
+
item.tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles44.count, { backgroundColor: theme.colors.border, color: theme.colors.text }], children: String(item.tab.count) })
|
|
4091
4127
|
] });
|
|
4092
4128
|
};
|
|
4093
4129
|
var ChipTabItem = ({ activeFill, activeText, ...item }) => {
|
|
@@ -4095,9 +4131,9 @@ var ChipTabItem = ({ activeFill, activeText, ...item }) => {
|
|
|
4095
4131
|
const selectedFill = activeFill ?? theme.colors.text;
|
|
4096
4132
|
const fill = item.selected ? selectedFill : "transparent";
|
|
4097
4133
|
const ink = item.selected ? activeText ?? theme.colors.background : theme.colors.text;
|
|
4098
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [
|
|
4099
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4100
|
-
item.tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4134
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(TabPressable, { ...item, style: [styles44.chip, { backgroundColor: fill, borderColor: item.selected ? selectedFill : theme.colors.border }], children: [
|
|
4135
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles44.label, { color: ink }], children: item.tab.label }),
|
|
4136
|
+
item.tab.count === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles44.chipCount, { color: ink }], children: String(item.tab.count) })
|
|
4101
4137
|
] });
|
|
4102
4138
|
};
|
|
4103
4139
|
|
|
@@ -4111,7 +4147,7 @@ var DEFAULT_UNDERLINE_STEP = "700";
|
|
|
4111
4147
|
var SCROLL_THROTTLE_MS = 16;
|
|
4112
4148
|
var CHIP_GAP = 8;
|
|
4113
4149
|
var CHIP_PAD_V = 4;
|
|
4114
|
-
var
|
|
4150
|
+
var styles45 = reactNative.StyleSheet.create({
|
|
4115
4151
|
chipRow: { alignItems: "center", flexDirection: "row", gap: CHIP_GAP, paddingVertical: CHIP_PAD_V },
|
|
4116
4152
|
chipWrap: { flexWrap: "wrap" },
|
|
4117
4153
|
strip: { position: "relative", width: "100%" }
|
|
@@ -4125,35 +4161,35 @@ var UnderlineTabs = ({ tabs, activeKey, onChange, accessibilityLabel, accessibil
|
|
|
4125
4161
|
const item = { tab, selected: tab.key === activeKey, onChange, activeText: activeTextColor };
|
|
4126
4162
|
return chips ? /* @__PURE__ */ jsxRuntime.jsx(ChipTabItem, { ...item, activeFill: activeFillColor }, tab.key) : /* @__PURE__ */ jsxRuntime.jsx(UnderlineTabItem, { ...item, underline }, tab.key);
|
|
4127
4163
|
});
|
|
4128
|
-
const stripStyle = chips ?
|
|
4164
|
+
const stripStyle = chips ? styles45.strip : [styles45.strip, { borderBottomColor: theme.colors.border, borderBottomWidth: 1 }];
|
|
4129
4165
|
if (chips && chipOverflow === "wrap" /* Wrap */) {
|
|
4130
|
-
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [
|
|
4166
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles45.chipRow, styles45.chipWrap], testID, children: items });
|
|
4131
4167
|
}
|
|
4132
4168
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: stripStyle, testID, children: [
|
|
4133
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, contentContainerStyle: chips ?
|
|
4169
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, contentContainerStyle: chips ? styles45.chipRow : void 0, scrollEventThrottle: SCROLL_THROTTLE_MS, showsHorizontalScrollIndicator: false, onContentSizeChange: fade.onContentSizeChange, onLayout: fade.onLayout, onScroll: fade.onScroll, children: items }),
|
|
4134
4170
|
fade.visible ? /* @__PURE__ */ jsxRuntime.jsx(EdgeFadeStrip, { color: fadeColor ?? theme.colors.background }) : null
|
|
4135
4171
|
] });
|
|
4136
4172
|
};
|
|
4137
4173
|
var RADIUS3 = 12;
|
|
4138
4174
|
var PAD = 16;
|
|
4139
4175
|
var GAP7 = 8;
|
|
4140
|
-
var
|
|
4141
|
-
var
|
|
4176
|
+
var TITLE_FONT2 = 15;
|
|
4177
|
+
var styles46 = reactNative.StyleSheet.create({
|
|
4142
4178
|
card: { borderRadius: RADIUS3, borderWidth: 1, gap: GAP7, minWidth: 0, padding: PAD },
|
|
4143
4179
|
footer: { alignItems: "flex-start", flexDirection: "row", flexWrap: "wrap", gap: GAP7 },
|
|
4144
4180
|
head: { alignItems: "center", flexDirection: "row", gap: GAP7 },
|
|
4145
|
-
title: { flex: 1, fontSize:
|
|
4181
|
+
title: { flex: 1, fontSize: TITLE_FONT2, fontWeight: "700" }
|
|
4146
4182
|
});
|
|
4147
4183
|
var WidgetCard = ({ title, children, icon, headerRight, footer, testID }) => {
|
|
4148
4184
|
const { theme } = uiFeedback.useUi();
|
|
4149
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
4150
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
4185
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles46.card, { backgroundColor: theme.colors.surfaceElevated, borderColor: theme.colors.border }], testID, children: [
|
|
4186
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles46.head, children: [
|
|
4151
4187
|
icon === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { "aria-hidden": true, children: icon }),
|
|
4152
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [
|
|
4188
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { accessibilityRole: "header", style: [styles46.title, { color: theme.colors.text }], children: title }),
|
|
4153
4189
|
headerRight
|
|
4154
4190
|
] }),
|
|
4155
4191
|
children,
|
|
4156
|
-
footer === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
4192
|
+
footer === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles46.footer, children: footer })
|
|
4157
4193
|
] });
|
|
4158
4194
|
};
|
|
4159
4195
|
var LEAD_LABEL_SIZE = 14;
|
|
@@ -4165,7 +4201,7 @@ var GAP8 = 12;
|
|
|
4165
4201
|
var LEAD_GAP = 4;
|
|
4166
4202
|
var LEAD_BORDER = 1.5;
|
|
4167
4203
|
var ACCENT_STEP = "500";
|
|
4168
|
-
var
|
|
4204
|
+
var styles47 = reactNative.StyleSheet.create({
|
|
4169
4205
|
slip: { gap: GAP8, width: "100%" },
|
|
4170
4206
|
lead: { padding: LEAD_PAD, borderRadius: LEAD_RADIUS, borderWidth: LEAD_BORDER, gap: LEAD_GAP },
|
|
4171
4207
|
leadLabel: { fontSize: LEAD_LABEL_SIZE },
|
|
@@ -4177,13 +4213,13 @@ var TransferSlip = ({ leadLabel, amount, recipient, children, footer, testID })
|
|
|
4177
4213
|
const { theme } = uiFeedback.useUi();
|
|
4178
4214
|
const { colors } = theme;
|
|
4179
4215
|
const accent = theme.palette.primary[ACCENT_STEP];
|
|
4180
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
4181
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [
|
|
4182
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4183
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4184
|
-
recipient !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4216
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles47.slip, testID, children: [
|
|
4217
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: [styles47.lead, { borderColor: accent, backgroundColor: colors.surface }], testID: `${testID}-lead`, children: [
|
|
4218
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles47.leadLabel, { color: colors.textSecondary }], children: leadLabel }),
|
|
4219
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles47.amount, { color: colors.text }], testID: `${testID}-amount`, children: amount }),
|
|
4220
|
+
recipient !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles47.recipient, { color: colors.text }], children: recipient })
|
|
4185
4221
|
] }),
|
|
4186
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style:
|
|
4222
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: styles47.rows, children }),
|
|
4187
4223
|
footer
|
|
4188
4224
|
] });
|
|
4189
4225
|
};
|
|
@@ -4216,7 +4252,7 @@ var STACK_GAP = 8;
|
|
|
4216
4252
|
var ROW_PAD = 10;
|
|
4217
4253
|
var TEXT_GAP = 2;
|
|
4218
4254
|
var MONO_SPACING = 1;
|
|
4219
|
-
var
|
|
4255
|
+
var styles48 = reactNative.StyleSheet.create({
|
|
4220
4256
|
inline: { flexDirection: "row", alignItems: "center", gap: ROW_GAP3, paddingVertical: ROW_PAD, borderTopWidth: reactNative.StyleSheet.hairlineWidth },
|
|
4221
4257
|
prominent: { gap: STACK_GAP, paddingVertical: ROW_PAD },
|
|
4222
4258
|
text: { flex: 1, minWidth: 0, gap: TEXT_GAP },
|
|
@@ -4240,10 +4276,10 @@ var CopyValueRow = ({
|
|
|
4240
4276
|
const { status, copy } = useCopyToClipboard(copyValue ?? value, writer);
|
|
4241
4277
|
const action = copyActionLabel(status, labels);
|
|
4242
4278
|
const prominent = emphasis === "prominent" /* Prominent */;
|
|
4243
|
-
const valueStyle = prominent || monospace ?
|
|
4244
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: prominent ?
|
|
4245
|
-
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style:
|
|
4246
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4279
|
+
const valueStyle = prominent || monospace ? styles48.big : styles48.value;
|
|
4280
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: prominent ? styles48.prominent : [styles48.inline, { borderTopColor: colors.border }], testID, children: [
|
|
4281
|
+
/* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles48.text, children: [
|
|
4282
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles48.label, { color: colors.textSecondary }], children: label }),
|
|
4247
4283
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { selectable: true, style: [valueStyle, { color: colors.text }], testID: `${testID}-value`, children: value })
|
|
4248
4284
|
] }),
|
|
4249
4285
|
copyControl === "icon" /* Icon */ ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4286,7 +4322,7 @@ var TILE_PAD = 12;
|
|
|
4286
4322
|
var TILE_RADIUS = 10;
|
|
4287
4323
|
var TILE_GAP = 2;
|
|
4288
4324
|
var ALERT_STEP = "500";
|
|
4289
|
-
var
|
|
4325
|
+
var styles49 = reactNative.StyleSheet.create({
|
|
4290
4326
|
tile: { padding: TILE_PAD, borderRadius: TILE_RADIUS, borderWidth: reactNative.StyleSheet.hairlineWidth, gap: TILE_GAP },
|
|
4291
4327
|
label: { fontSize: LABEL_SIZE2, fontWeight: "600" },
|
|
4292
4328
|
value: { fontSize: VALUE_SIZE2, fontWeight: "700" },
|
|
@@ -4300,19 +4336,19 @@ var TotalsStrip = ({ items, breakpoint = LAYOUT_COLLAPSE_BREAKPOINT, testID }) =
|
|
|
4300
4336
|
return /* @__PURE__ */ jsxRuntime.jsx(FigureStrip, { testID, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4301
4337
|
reactNative.View,
|
|
4302
4338
|
{
|
|
4303
|
-
style: [
|
|
4339
|
+
style: [styles49.tile, figureCell(wide), { borderColor: colors.border, backgroundColor: colors.surfaceElevated }],
|
|
4304
4340
|
testID: `${testID}-${item.key}`,
|
|
4305
4341
|
children: [
|
|
4306
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4342
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles49.label, { color: colors.textSecondary }], children: item.label }),
|
|
4307
4343
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4308
4344
|
reactNative.Text,
|
|
4309
4345
|
{
|
|
4310
|
-
style: [
|
|
4346
|
+
style: [styles49.value, { color: item.tone === "alert" /* Alert */ ? theme.semantic.error[ALERT_STEP] : colors.text }],
|
|
4311
4347
|
testID: `${testID}-${item.key}-value`,
|
|
4312
4348
|
children: item.value
|
|
4313
4349
|
}
|
|
4314
4350
|
),
|
|
4315
|
-
item.caption !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [
|
|
4351
|
+
item.caption !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles49.caption, { color: colors.textSecondary }], children: item.caption })
|
|
4316
4352
|
]
|
|
4317
4353
|
},
|
|
4318
4354
|
item.key
|
|
@@ -4363,6 +4399,7 @@ exports.BottomSheet = BottomSheet;
|
|
|
4363
4399
|
exports.Breadcrumb = Breadcrumb;
|
|
4364
4400
|
exports.BuildInfoFooter = BuildInfoFooter;
|
|
4365
4401
|
exports.COPY_FEEDBACK_MS = COPY_FEEDBACK_MS;
|
|
4402
|
+
exports.CardTitle = CardTitle;
|
|
4366
4403
|
exports.ChipOverflow = ChipOverflow;
|
|
4367
4404
|
exports.ConfirmDialog = ConfirmDialog;
|
|
4368
4405
|
exports.ConfirmDialogFocus = ConfirmDialogFocus;
|
|
@@ -4383,6 +4420,7 @@ exports.FormDialog = FormDialog;
|
|
|
4383
4420
|
exports.HEADER_STACK_BREAKPOINT = HEADER_STACK_BREAKPOINT;
|
|
4384
4421
|
exports.Heading = Heading;
|
|
4385
4422
|
exports.IdChip = IdChip;
|
|
4423
|
+
exports.IdEllipsis = IdEllipsis;
|
|
4386
4424
|
exports.LAYOUT_COLLAPSE_BREAKPOINT = LAYOUT_COLLAPSE_BREAKPOINT;
|
|
4387
4425
|
exports.LAYOUT_I18N = LAYOUT_I18N;
|
|
4388
4426
|
exports.LAYOUT_TEST_IDS = LAYOUT_TEST_IDS;
|