@dloizides/ui-layout 1.52.0 → 1.53.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 +725 -721
- package/dist/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1405,6 +1405,12 @@ interface TransferSlipProps {
|
|
|
1405
1405
|
/** A payment slip: the amount and recipient lead, then the copy rows (children), then an optional footer. */
|
|
1406
1406
|
declare const TransferSlip: ({ leadLabel, amount, recipient, children, footer, testID }: TransferSlipProps) => React.ReactElement;
|
|
1407
1407
|
|
|
1408
|
+
/** How a copy row draws its copy control: a text button, or a 44 px icon button named by its accessible label. */
|
|
1409
|
+
declare const enum CopyControl {
|
|
1410
|
+
Text = "text",
|
|
1411
|
+
Icon = "icon"
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1408
1414
|
/** How loudly a copy row shows its value: inline beside a compact button, or prominent with a wide button below. */
|
|
1409
1415
|
declare const enum CopyRowEmphasis {
|
|
1410
1416
|
Inline = "inline",
|
|
@@ -1426,13 +1432,14 @@ interface CopyValueRowProps {
|
|
|
1426
1432
|
value: string;
|
|
1427
1433
|
labels: CopyValueLabels;
|
|
1428
1434
|
emphasis?: CopyRowEmphasis;
|
|
1435
|
+
copyControl?: CopyControl;
|
|
1429
1436
|
copyValue?: string;
|
|
1430
1437
|
monospace?: boolean;
|
|
1431
1438
|
writer?: (text: string) => void | Promise<void>;
|
|
1432
1439
|
testID: string;
|
|
1433
1440
|
}
|
|
1434
1441
|
/** 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;
|
|
1442
|
+
declare const CopyValueRow: ({ label, value, labels, emphasis, copyControl, copyValue, monospace, writer, testID, }: CopyValueRowProps) => React.ReactElement;
|
|
1436
1443
|
|
|
1437
1444
|
/** The tone of one total: neutral, or alert when the figure needs attention. */
|
|
1438
1445
|
declare const enum TotalsTone {
|
|
@@ -1482,4 +1489,4 @@ interface ListDetailVisibility {
|
|
|
1482
1489
|
/** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
|
|
1483
1490
|
declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
|
|
1484
1491
|
|
|
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 };
|
|
1492
|
+
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, 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
|
@@ -1405,6 +1405,12 @@ interface TransferSlipProps {
|
|
|
1405
1405
|
/** A payment slip: the amount and recipient lead, then the copy rows (children), then an optional footer. */
|
|
1406
1406
|
declare const TransferSlip: ({ leadLabel, amount, recipient, children, footer, testID }: TransferSlipProps) => React.ReactElement;
|
|
1407
1407
|
|
|
1408
|
+
/** How a copy row draws its copy control: a text button, or a 44 px icon button named by its accessible label. */
|
|
1409
|
+
declare const enum CopyControl {
|
|
1410
|
+
Text = "text",
|
|
1411
|
+
Icon = "icon"
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1408
1414
|
/** How loudly a copy row shows its value: inline beside a compact button, or prominent with a wide button below. */
|
|
1409
1415
|
declare const enum CopyRowEmphasis {
|
|
1410
1416
|
Inline = "inline",
|
|
@@ -1426,13 +1432,14 @@ interface CopyValueRowProps {
|
|
|
1426
1432
|
value: string;
|
|
1427
1433
|
labels: CopyValueLabels;
|
|
1428
1434
|
emphasis?: CopyRowEmphasis;
|
|
1435
|
+
copyControl?: CopyControl;
|
|
1429
1436
|
copyValue?: string;
|
|
1430
1437
|
monospace?: boolean;
|
|
1431
1438
|
writer?: (text: string) => void | Promise<void>;
|
|
1432
1439
|
testID: string;
|
|
1433
1440
|
}
|
|
1434
1441
|
/** 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;
|
|
1442
|
+
declare const CopyValueRow: ({ label, value, labels, emphasis, copyControl, copyValue, monospace, writer, testID, }: CopyValueRowProps) => React.ReactElement;
|
|
1436
1443
|
|
|
1437
1444
|
/** The tone of one total: neutral, or alert when the figure needs attention. */
|
|
1438
1445
|
declare const enum TotalsTone {
|
|
@@ -1482,4 +1489,4 @@ interface ListDetailVisibility {
|
|
|
1482
1489
|
/** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
|
|
1483
1490
|
declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
|
|
1484
1491
|
|
|
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 };
|
|
1492
|
+
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyControl, CopyRowEmphasis, CopyStatus, type CopyToClipboard, type CopyValueLabels, CopyValueRow, type CopyValueRowProps, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, 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
|
@@ -3821,6 +3821,13 @@ var TransferSlip = ({ leadLabel, amount, recipient, children, footer, testID })
|
|
|
3821
3821
|
] });
|
|
3822
3822
|
};
|
|
3823
3823
|
|
|
3824
|
+
// src/TransferSlip/CopyControl.ts
|
|
3825
|
+
var CopyControl = /* @__PURE__ */ ((CopyControl2) => {
|
|
3826
|
+
CopyControl2["Text"] = "text";
|
|
3827
|
+
CopyControl2["Icon"] = "icon";
|
|
3828
|
+
return CopyControl2;
|
|
3829
|
+
})(CopyControl || {});
|
|
3830
|
+
|
|
3824
3831
|
// src/TransferSlip/CopyRowEmphasis.ts
|
|
3825
3832
|
var CopyRowEmphasis = /* @__PURE__ */ ((CopyRowEmphasis2) => {
|
|
3826
3833
|
CopyRowEmphasis2["Inline"] = "inline";
|
|
@@ -3855,6 +3862,7 @@ var CopyValueRow = ({
|
|
|
3855
3862
|
value,
|
|
3856
3863
|
labels,
|
|
3857
3864
|
emphasis = "inline" /* Inline */,
|
|
3865
|
+
copyControl = "text" /* Text */,
|
|
3858
3866
|
copyValue,
|
|
3859
3867
|
monospace = false,
|
|
3860
3868
|
writer,
|
|
@@ -3871,7 +3879,18 @@ var CopyValueRow = ({
|
|
|
3871
3879
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles44.label, { color: colors.textSecondary }], children: label }),
|
|
3872
3880
|
/* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { selectable: true, style: [valueStyle, { color: colors.text }], testID: `${testID}-value`, children: value })
|
|
3873
3881
|
] }),
|
|
3874
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3882
|
+
copyControl === "icon" /* Icon */ ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3883
|
+
uiButtons.IconButton,
|
|
3884
|
+
{
|
|
3885
|
+
accessibilityHint: labels.hint,
|
|
3886
|
+
accessibilityLabel: `${action}: ${label}`,
|
|
3887
|
+
label: status === "idle" /* Idle */ ? void 0 : action,
|
|
3888
|
+
renderIcon: (color, size) => /* @__PURE__ */ jsxRuntime.jsx(uiIcons.SvgIcon, { color, name: "copy", size }),
|
|
3889
|
+
testID: `${testID}-copy`,
|
|
3890
|
+
variant: "outline",
|
|
3891
|
+
onPress: copy
|
|
3892
|
+
}
|
|
3893
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3875
3894
|
uiButtons.Button,
|
|
3876
3895
|
{
|
|
3877
3896
|
accessibilityHint: labels.hint,
|
|
@@ -3979,6 +3998,7 @@ exports.COPY_FEEDBACK_MS = COPY_FEEDBACK_MS;
|
|
|
3979
3998
|
exports.ChipOverflow = ChipOverflow;
|
|
3980
3999
|
exports.ConfirmDialog = ConfirmDialog;
|
|
3981
4000
|
exports.ConfirmDialogFocus = ConfirmDialogFocus;
|
|
4001
|
+
exports.CopyControl = CopyControl;
|
|
3982
4002
|
exports.CopyRowEmphasis = CopyRowEmphasis;
|
|
3983
4003
|
exports.CopyStatus = CopyStatus;
|
|
3984
4004
|
exports.CopyValueRow = CopyValueRow;
|