@dloizides/ui-layout 1.53.0 → 1.55.1
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 +4 -0
- package/dist/index.d.mts +52 -6
- package/dist/index.d.ts +52 -6
- package/dist/index.js +158 -69
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +155 -71
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.54.0
|
|
4
|
+
|
|
5
|
+
- MODC-1 D-MC-710 "Shared parts in packages", UI-PKG-FIRST-1. New `StickyActionBar`: page actions pinned to the bottom edge when narrow (web `position: sticky`, bottom padding 12 px + `bottomInset` + `env(safe-area-inset-bottom)`; native pads by the inset), an inline end-aligned row when wide (`breakpoint`, default 768); role toolbar with the caller's label. New `PageHead` (title + subtitle left, actions right, actions wrap below on narrow screens; testIDs `<id>-title`, `<id>-actions`). `DayCard` takes `badgeFill` (`DayBadgeFill` Solid, the default, or Tint: tone tint step 100 with deep ink, solid fallback) and `badgeIcon` (ui-icons name, e.g. `clock`); badge testID `<id>-badge`. `SectionIndexLayout` takes `indexWidth` (default `SECTION_INDEX_WIDTH` 200); `SectionIndex` takes `width`. `ToggleSection` takes controlled `open` + `onOpenChange`. `Section` takes `padding` (number or `{ vertical, horizontal }`). New export `resolveTintColors`. All additive; defaults unchanged.
|
|
6
|
+
|
|
3
7
|
## 1.53.0
|
|
4
8
|
|
|
5
9
|
- U6-F17 "Pay copy icon buttons", UI-PKG-FIRST-1. `CopyValueRow` takes `copyControl` (`CopyControl` Text, the default and unchanged, or Icon): Icon draws a 44 px outline `IconButton` with the copy glyph, named `<action>: <label>` with the copy hint; after a press the copied / failed word shows beside the glyph until the feedback time ends.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
2
|
import { Text, StyleProp, ViewStyle, TextStyle, View } from 'react-native';
|
|
3
3
|
import { UiTheme } from '@dloizides/ui-feedback';
|
|
4
|
+
import { IconName } from '@dloizides/ui-icons';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Heading — themed section heading text, rendered as a REAL `<h1>`–`<h6>` on web.
|
|
@@ -56,9 +57,15 @@ interface SectionProps {
|
|
|
56
57
|
variant?: SectionVariant;
|
|
57
58
|
title?: string;
|
|
58
59
|
titleLevel?: HeadingLevel;
|
|
60
|
+
padding?: SectionPadding;
|
|
59
61
|
testID?: string;
|
|
60
62
|
}
|
|
61
|
-
|
|
63
|
+
/** Inner padding: one value for every side, or a vertical and horizontal pair. */
|
|
64
|
+
type SectionPadding = number | {
|
|
65
|
+
vertical: number;
|
|
66
|
+
horizontal: number;
|
|
67
|
+
};
|
|
68
|
+
declare const Section: ({ children, style, variant, title, titleLevel, padding, testID, }: SectionProps) => React.ReactElement;
|
|
62
69
|
|
|
63
70
|
declare enum TextKind {
|
|
64
71
|
Title = "title",
|
|
@@ -116,6 +123,8 @@ interface ToneColors {
|
|
|
116
123
|
}
|
|
117
124
|
/** Fill and ink (>= 4.5:1 on the fill) for a tone; a tone no theme fill can carry falls back to neutral. */
|
|
118
125
|
declare function resolveToneColors(theme: UiTheme, tone: BadgeTone): ToneColors;
|
|
126
|
+
/** Light tint fill with the tone's deep ink; a theme without a tint step falls back to the solid tone colours. */
|
|
127
|
+
declare function resolveTintColors(theme: UiTheme, tone: BadgeTone): ToneColors;
|
|
119
128
|
|
|
120
129
|
interface CountBadgeProps {
|
|
121
130
|
count: number;
|
|
@@ -1008,6 +1017,8 @@ declare const LAYOUT_TEST_IDS: {
|
|
|
1008
1017
|
readonly accordion: "accordion";
|
|
1009
1018
|
/** Default testID for the `BuildInfoFooter` caption (`v<version>`). */
|
|
1010
1019
|
readonly buildInfoFooter: "build-info-footer";
|
|
1020
|
+
readonly stickyActionBar: "sticky-action-bar";
|
|
1021
|
+
readonly pageHead: "page-head";
|
|
1011
1022
|
};
|
|
1012
1023
|
/** Window width (px) below which a dialog footer stacks its actions full width. */
|
|
1013
1024
|
declare const MODAL_FOOTER_STACK_BELOW = 400;
|
|
@@ -1220,10 +1231,12 @@ interface SectionIndexLayoutProps {
|
|
|
1220
1231
|
density?: SectionDensity;
|
|
1221
1232
|
stickyIndex?: boolean;
|
|
1222
1233
|
chipOverflow?: ChipOverflow;
|
|
1234
|
+
indexWidth?: number;
|
|
1223
1235
|
testID?: string;
|
|
1224
1236
|
}
|
|
1225
|
-
declare const SectionIndexLayout: ({ sections, indexHeading, itemHint, initialKey, breakpoint, density, stickyIndex, chipOverflow, testID, }: SectionIndexLayoutProps) => React.ReactElement;
|
|
1237
|
+
declare const SectionIndexLayout: ({ sections, indexHeading, itemHint, initialKey, breakpoint, density, stickyIndex, chipOverflow, indexWidth, testID, }: SectionIndexLayoutProps) => React.ReactElement;
|
|
1226
1238
|
|
|
1239
|
+
declare const SECTION_INDEX_WIDTH = 200;
|
|
1227
1240
|
interface SectionIndexProps {
|
|
1228
1241
|
sections: ReadonlyArray<SectionIndexEntry>;
|
|
1229
1242
|
activeKey: string;
|
|
@@ -1231,8 +1244,9 @@ interface SectionIndexProps {
|
|
|
1231
1244
|
itemHint: string;
|
|
1232
1245
|
onSelect: (key: string) => void;
|
|
1233
1246
|
testID: string;
|
|
1247
|
+
width?: number;
|
|
1234
1248
|
}
|
|
1235
|
-
declare const SectionIndex: ({ sections, activeKey, heading, itemHint, onSelect, testID }: SectionIndexProps) => React.ReactElement;
|
|
1249
|
+
declare const SectionIndex: ({ sections, activeKey, heading, itemHint, onSelect, testID, width }: SectionIndexProps) => React.ReactElement;
|
|
1236
1250
|
|
|
1237
1251
|
interface SectionChipsProps {
|
|
1238
1252
|
sections: ReadonlyArray<SectionIndexEntry>;
|
|
@@ -1248,6 +1262,12 @@ declare const SectionChips: ({ sections, activeKey, groupLabel, itemHint, overfl
|
|
|
1248
1262
|
declare const SECTION_INDEX_BREAKPOINT = 1024;
|
|
1249
1263
|
declare function resolveActiveKey(sections: ReadonlyArray<SectionIndexEntry>, wanted: string | undefined): string;
|
|
1250
1264
|
|
|
1265
|
+
/** How the DayCard age badge is filled: a solid tone fill or a light tint with tone-coloured ink. */
|
|
1266
|
+
declare const enum DayBadgeFill {
|
|
1267
|
+
Solid = "solid",
|
|
1268
|
+
Tint = "tint"
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1251
1271
|
interface DayCardProps {
|
|
1252
1272
|
label: string;
|
|
1253
1273
|
badge: string;
|
|
@@ -1255,11 +1275,13 @@ interface DayCardProps {
|
|
|
1255
1275
|
accessibilityLabel: string;
|
|
1256
1276
|
accessibilityHint: string;
|
|
1257
1277
|
badgeTone?: BadgeTone;
|
|
1278
|
+
badgeFill?: DayBadgeFill;
|
|
1279
|
+
badgeIcon?: IconName;
|
|
1258
1280
|
testID?: string;
|
|
1259
1281
|
children: React.ReactNode;
|
|
1260
1282
|
}
|
|
1261
1283
|
/** One day of a list: its label, an age badge and the item count over a card holding the day's rows. */
|
|
1262
|
-
declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, testID, children, }: DayCardProps) => React.ReactElement;
|
|
1284
|
+
declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, badgeFill, badgeIcon, testID, children, }: DayCardProps) => React.ReactElement;
|
|
1263
1285
|
|
|
1264
1286
|
/** The style of one figure cell: an equal share of the strip when wide, half a row when narrow; span widens it. */
|
|
1265
1287
|
declare function figureCell(wide: boolean, span?: number): StyleProp<ViewStyle>;
|
|
@@ -1276,11 +1298,35 @@ interface ToggleSectionProps {
|
|
|
1276
1298
|
toggleLabel: string;
|
|
1277
1299
|
toggleHint: string;
|
|
1278
1300
|
forceOpen?: boolean;
|
|
1301
|
+
open?: boolean;
|
|
1302
|
+
onOpenChange?: (open: boolean) => void;
|
|
1279
1303
|
testID: string;
|
|
1280
1304
|
children: React.ReactNode;
|
|
1281
1305
|
}
|
|
1282
1306
|
/** A titled card when wide; when narrow the same content sits behind one toggle button, open when forced. */
|
|
1283
|
-
declare const ToggleSection: ({ wide, title, toggleLabel, toggleHint, forceOpen, testID, children }: ToggleSectionProps) => React.ReactElement;
|
|
1307
|
+
declare const ToggleSection: ({ wide, title, toggleLabel, toggleHint, forceOpen, open, onOpenChange, testID, children }: ToggleSectionProps) => React.ReactElement;
|
|
1308
|
+
|
|
1309
|
+
interface StickyActionBarProps {
|
|
1310
|
+
accessibilityLabel: string;
|
|
1311
|
+
accessibilityHint?: string;
|
|
1312
|
+
children: React.ReactNode;
|
|
1313
|
+
breakpoint?: number;
|
|
1314
|
+
bottomInset?: number;
|
|
1315
|
+
testID?: string;
|
|
1316
|
+
}
|
|
1317
|
+
/** Page actions: pinned to the bottom edge above the safe area when narrow, an inline end-aligned row when wide. */
|
|
1318
|
+
declare const StickyActionBar: ({ accessibilityLabel, accessibilityHint, children, breakpoint, bottomInset, testID, }: StickyActionBarProps) => React.ReactElement;
|
|
1319
|
+
|
|
1320
|
+
interface PageHeadProps {
|
|
1321
|
+
title: string;
|
|
1322
|
+
subtitle?: React.ReactNode;
|
|
1323
|
+
actions?: React.ReactNode;
|
|
1324
|
+
/** Focus the title when the page opens (FOCUS-1); default false. */
|
|
1325
|
+
initialFocus?: boolean;
|
|
1326
|
+
testID?: string;
|
|
1327
|
+
}
|
|
1328
|
+
/** Page title row: heading and subtitle on the left, page actions on the right; actions wrap below on narrow screens. */
|
|
1329
|
+
declare const PageHead: ({ title, subtitle, actions, initialFocus, testID }: PageHeadProps) => React.ReactElement;
|
|
1284
1330
|
|
|
1285
1331
|
interface TimelineEntry {
|
|
1286
1332
|
key: string;
|
|
@@ -1489,4 +1535,4 @@ interface ListDetailVisibility {
|
|
|
1489
1535
|
/** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
|
|
1490
1536
|
declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
|
|
1491
1537
|
|
|
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 };
|
|
1538
|
+
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, DayBadgeFill, 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, 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, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, 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, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { RefObject } from 'react';
|
|
2
2
|
import { Text, StyleProp, ViewStyle, TextStyle, View } from 'react-native';
|
|
3
3
|
import { UiTheme } from '@dloizides/ui-feedback';
|
|
4
|
+
import { IconName } from '@dloizides/ui-icons';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Heading — themed section heading text, rendered as a REAL `<h1>`–`<h6>` on web.
|
|
@@ -56,9 +57,15 @@ interface SectionProps {
|
|
|
56
57
|
variant?: SectionVariant;
|
|
57
58
|
title?: string;
|
|
58
59
|
titleLevel?: HeadingLevel;
|
|
60
|
+
padding?: SectionPadding;
|
|
59
61
|
testID?: string;
|
|
60
62
|
}
|
|
61
|
-
|
|
63
|
+
/** Inner padding: one value for every side, or a vertical and horizontal pair. */
|
|
64
|
+
type SectionPadding = number | {
|
|
65
|
+
vertical: number;
|
|
66
|
+
horizontal: number;
|
|
67
|
+
};
|
|
68
|
+
declare const Section: ({ children, style, variant, title, titleLevel, padding, testID, }: SectionProps) => React.ReactElement;
|
|
62
69
|
|
|
63
70
|
declare enum TextKind {
|
|
64
71
|
Title = "title",
|
|
@@ -116,6 +123,8 @@ interface ToneColors {
|
|
|
116
123
|
}
|
|
117
124
|
/** Fill and ink (>= 4.5:1 on the fill) for a tone; a tone no theme fill can carry falls back to neutral. */
|
|
118
125
|
declare function resolveToneColors(theme: UiTheme, tone: BadgeTone): ToneColors;
|
|
126
|
+
/** Light tint fill with the tone's deep ink; a theme without a tint step falls back to the solid tone colours. */
|
|
127
|
+
declare function resolveTintColors(theme: UiTheme, tone: BadgeTone): ToneColors;
|
|
119
128
|
|
|
120
129
|
interface CountBadgeProps {
|
|
121
130
|
count: number;
|
|
@@ -1008,6 +1017,8 @@ declare const LAYOUT_TEST_IDS: {
|
|
|
1008
1017
|
readonly accordion: "accordion";
|
|
1009
1018
|
/** Default testID for the `BuildInfoFooter` caption (`v<version>`). */
|
|
1010
1019
|
readonly buildInfoFooter: "build-info-footer";
|
|
1020
|
+
readonly stickyActionBar: "sticky-action-bar";
|
|
1021
|
+
readonly pageHead: "page-head";
|
|
1011
1022
|
};
|
|
1012
1023
|
/** Window width (px) below which a dialog footer stacks its actions full width. */
|
|
1013
1024
|
declare const MODAL_FOOTER_STACK_BELOW = 400;
|
|
@@ -1220,10 +1231,12 @@ interface SectionIndexLayoutProps {
|
|
|
1220
1231
|
density?: SectionDensity;
|
|
1221
1232
|
stickyIndex?: boolean;
|
|
1222
1233
|
chipOverflow?: ChipOverflow;
|
|
1234
|
+
indexWidth?: number;
|
|
1223
1235
|
testID?: string;
|
|
1224
1236
|
}
|
|
1225
|
-
declare const SectionIndexLayout: ({ sections, indexHeading, itemHint, initialKey, breakpoint, density, stickyIndex, chipOverflow, testID, }: SectionIndexLayoutProps) => React.ReactElement;
|
|
1237
|
+
declare const SectionIndexLayout: ({ sections, indexHeading, itemHint, initialKey, breakpoint, density, stickyIndex, chipOverflow, indexWidth, testID, }: SectionIndexLayoutProps) => React.ReactElement;
|
|
1226
1238
|
|
|
1239
|
+
declare const SECTION_INDEX_WIDTH = 200;
|
|
1227
1240
|
interface SectionIndexProps {
|
|
1228
1241
|
sections: ReadonlyArray<SectionIndexEntry>;
|
|
1229
1242
|
activeKey: string;
|
|
@@ -1231,8 +1244,9 @@ interface SectionIndexProps {
|
|
|
1231
1244
|
itemHint: string;
|
|
1232
1245
|
onSelect: (key: string) => void;
|
|
1233
1246
|
testID: string;
|
|
1247
|
+
width?: number;
|
|
1234
1248
|
}
|
|
1235
|
-
declare const SectionIndex: ({ sections, activeKey, heading, itemHint, onSelect, testID }: SectionIndexProps) => React.ReactElement;
|
|
1249
|
+
declare const SectionIndex: ({ sections, activeKey, heading, itemHint, onSelect, testID, width }: SectionIndexProps) => React.ReactElement;
|
|
1236
1250
|
|
|
1237
1251
|
interface SectionChipsProps {
|
|
1238
1252
|
sections: ReadonlyArray<SectionIndexEntry>;
|
|
@@ -1248,6 +1262,12 @@ declare const SectionChips: ({ sections, activeKey, groupLabel, itemHint, overfl
|
|
|
1248
1262
|
declare const SECTION_INDEX_BREAKPOINT = 1024;
|
|
1249
1263
|
declare function resolveActiveKey(sections: ReadonlyArray<SectionIndexEntry>, wanted: string | undefined): string;
|
|
1250
1264
|
|
|
1265
|
+
/** How the DayCard age badge is filled: a solid tone fill or a light tint with tone-coloured ink. */
|
|
1266
|
+
declare const enum DayBadgeFill {
|
|
1267
|
+
Solid = "solid",
|
|
1268
|
+
Tint = "tint"
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1251
1271
|
interface DayCardProps {
|
|
1252
1272
|
label: string;
|
|
1253
1273
|
badge: string;
|
|
@@ -1255,11 +1275,13 @@ interface DayCardProps {
|
|
|
1255
1275
|
accessibilityLabel: string;
|
|
1256
1276
|
accessibilityHint: string;
|
|
1257
1277
|
badgeTone?: BadgeTone;
|
|
1278
|
+
badgeFill?: DayBadgeFill;
|
|
1279
|
+
badgeIcon?: IconName;
|
|
1258
1280
|
testID?: string;
|
|
1259
1281
|
children: React.ReactNode;
|
|
1260
1282
|
}
|
|
1261
1283
|
/** One day of a list: its label, an age badge and the item count over a card holding the day's rows. */
|
|
1262
|
-
declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, testID, children, }: DayCardProps) => React.ReactElement;
|
|
1284
|
+
declare const DayCard: ({ label, badge, count, accessibilityLabel, accessibilityHint, badgeTone, badgeFill, badgeIcon, testID, children, }: DayCardProps) => React.ReactElement;
|
|
1263
1285
|
|
|
1264
1286
|
/** The style of one figure cell: an equal share of the strip when wide, half a row when narrow; span widens it. */
|
|
1265
1287
|
declare function figureCell(wide: boolean, span?: number): StyleProp<ViewStyle>;
|
|
@@ -1276,11 +1298,35 @@ interface ToggleSectionProps {
|
|
|
1276
1298
|
toggleLabel: string;
|
|
1277
1299
|
toggleHint: string;
|
|
1278
1300
|
forceOpen?: boolean;
|
|
1301
|
+
open?: boolean;
|
|
1302
|
+
onOpenChange?: (open: boolean) => void;
|
|
1279
1303
|
testID: string;
|
|
1280
1304
|
children: React.ReactNode;
|
|
1281
1305
|
}
|
|
1282
1306
|
/** A titled card when wide; when narrow the same content sits behind one toggle button, open when forced. */
|
|
1283
|
-
declare const ToggleSection: ({ wide, title, toggleLabel, toggleHint, forceOpen, testID, children }: ToggleSectionProps) => React.ReactElement;
|
|
1307
|
+
declare const ToggleSection: ({ wide, title, toggleLabel, toggleHint, forceOpen, open, onOpenChange, testID, children }: ToggleSectionProps) => React.ReactElement;
|
|
1308
|
+
|
|
1309
|
+
interface StickyActionBarProps {
|
|
1310
|
+
accessibilityLabel: string;
|
|
1311
|
+
accessibilityHint?: string;
|
|
1312
|
+
children: React.ReactNode;
|
|
1313
|
+
breakpoint?: number;
|
|
1314
|
+
bottomInset?: number;
|
|
1315
|
+
testID?: string;
|
|
1316
|
+
}
|
|
1317
|
+
/** Page actions: pinned to the bottom edge above the safe area when narrow, an inline end-aligned row when wide. */
|
|
1318
|
+
declare const StickyActionBar: ({ accessibilityLabel, accessibilityHint, children, breakpoint, bottomInset, testID, }: StickyActionBarProps) => React.ReactElement;
|
|
1319
|
+
|
|
1320
|
+
interface PageHeadProps {
|
|
1321
|
+
title: string;
|
|
1322
|
+
subtitle?: React.ReactNode;
|
|
1323
|
+
actions?: React.ReactNode;
|
|
1324
|
+
/** Focus the title when the page opens (FOCUS-1); default false. */
|
|
1325
|
+
initialFocus?: boolean;
|
|
1326
|
+
testID?: string;
|
|
1327
|
+
}
|
|
1328
|
+
/** Page title row: heading and subtitle on the left, page actions on the right; actions wrap below on narrow screens. */
|
|
1329
|
+
declare const PageHead: ({ title, subtitle, actions, initialFocus, testID }: PageHeadProps) => React.ReactElement;
|
|
1284
1330
|
|
|
1285
1331
|
interface TimelineEntry {
|
|
1286
1332
|
key: string;
|
|
@@ -1489,4 +1535,4 @@ interface ListDetailVisibility {
|
|
|
1489
1535
|
/** Wide shows both panes; narrow shows one, the detail only when asked for and present. */
|
|
1490
1536
|
declare function resolveListDetailPanes(wide: boolean, narrowPane: ListDetailPane, hasDetail: boolean): ListDetailVisibility;
|
|
1491
1537
|
|
|
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 };
|
|
1538
|
+
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, DayBadgeFill, 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, 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, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionPadding, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyActionBar, type StickyActionBarProps, 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, resolveTintColors, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|