@dloizides/ui-layout 1.46.0 → 1.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1268,4 +1268,22 @@ interface ToggleSectionProps {
1268
1268
  /** A titled card when wide; when narrow the same content sits behind one toggle button, open when forced. */
1269
1269
  declare const ToggleSection: ({ wide, title, toggleLabel, toggleHint, forceOpen, testID, children }: ToggleSectionProps) => React.ReactElement;
1270
1270
 
1271
- export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayCard, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, type PageSize, type RowLook, type RowPalette, RowSelectedStyle, type RowState, SECTION_INDEX_BREAKPOINT, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TextKind, ToggleSection, type ToggleSectionProps, type ToneColors, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
1271
+ interface TimelineEntry {
1272
+ key: string;
1273
+ time: string;
1274
+ title: string;
1275
+ accessibilityLabel: string;
1276
+ accessibilityHint: string;
1277
+ status?: string;
1278
+ tone?: BadgeTone;
1279
+ }
1280
+ interface TimelineProps {
1281
+ entries: ReadonlyArray<TimelineEntry>;
1282
+ accessibilityLabel: string;
1283
+ accessibilityHint: string;
1284
+ testID?: string;
1285
+ }
1286
+ /** A vertical rail of entries: time, title and an optional status badge per entry, in the given order. */
1287
+ declare const Timeline: ({ entries, accessibilityLabel, accessibilityHint, testID }: TimelineProps) => React.ReactElement;
1288
+
1289
+ export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayCard, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, type PageSize, type RowLook, type RowPalette, RowSelectedStyle, type RowState, SECTION_INDEX_BREAKPOINT, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
package/dist/index.d.ts CHANGED
@@ -1268,4 +1268,22 @@ interface ToggleSectionProps {
1268
1268
  /** A titled card when wide; when narrow the same content sits behind one toggle button, open when forced. */
1269
1269
  declare const ToggleSection: ({ wide, title, toggleLabel, toggleHint, forceOpen, testID, children }: ToggleSectionProps) => React.ReactElement;
1270
1270
 
1271
- export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayCard, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, type PageSize, type RowLook, type RowPalette, RowSelectedStyle, type RowState, SECTION_INDEX_BREAKPOINT, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TextKind, ToggleSection, type ToggleSectionProps, type ToneColors, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
1271
+ interface TimelineEntry {
1272
+ key: string;
1273
+ time: string;
1274
+ title: string;
1275
+ accessibilityLabel: string;
1276
+ accessibilityHint: string;
1277
+ status?: string;
1278
+ tone?: BadgeTone;
1279
+ }
1280
+ interface TimelineProps {
1281
+ entries: ReadonlyArray<TimelineEntry>;
1282
+ accessibilityLabel: string;
1283
+ accessibilityHint: string;
1284
+ testID?: string;
1285
+ }
1286
+ /** A vertical rail of entries: time, title and an optional status badge per entry, in the given order. */
1287
+ declare const Timeline: ({ entries, accessibilityLabel, accessibilityHint, testID }: TimelineProps) => React.ReactElement;
1288
+
1289
+ export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionVariant, AppText, type AppTextProps, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, type BottomSheetProps, BuildInfoFooter, type BuildInfoFooterProps, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, type ConfirmDialogProps, CopyStatus, type CopyToClipboard, CopyableId, type CopyableIdProps, CountBadge, type CountBadgeProps, DEFAULT_BILLING_ROUTE, DayCard, type DayCardProps, type DropdownOption, type DropdownTriggerState, DropdownVariant, ELLIPSIS, FigureStrip, type FigureStripProps, FormDialog, type FormDialogProps, HEADER_STACK_BREAKPOINT, Heading, type HeadingLevel, type HeadingProps, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, type ListRowProps, type ListRowTone, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, type ModalDropdownProps, type ModalProps, ModalShell, type ModalShellProps, type ModalSize, PageFrame, type PageFrameProps, type PageSize, type RowLook, type RowPalette, RowSelectedStyle, type RowState, SECTION_INDEX_BREAKPOINT, type ScaledFrame, ScreenColumn, type ScreenColumnProps, Section, SectionChips, type SectionChipsProps, SectionDensity, SectionIndex, type SectionIndexEntry, SectionIndexLayout, type SectionIndexLayoutProps, type SectionIndexProps, type SectionProps, SectionVariant, SegmentedControl, type SegmentedControlProps, type SegmentedOption, SelectedMarker, SideSheet, type SideSheetProps, SplitLayout, SplitPanes, type SplitPanesProps, StatusBadge, type StatusBadgeProps, StickyPreview, type StickyPreviewProps, TYPE_SCALE_BREAKPOINT, type TabDescriptor, Tabs, TabsCollapsedTrigger, type TabsProps, TextKind, Timeline, type TimelineEntry, type TimelineProps, ToggleSection, type ToggleSectionProps, type ToneColors, TruncatedText, type TruncatedTextProps, UpgradePrompt, type UpgradePromptProps, type VersionResponse, type VisibleViewport, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
package/dist/index.js CHANGED
@@ -3452,6 +3452,34 @@ var ToggleSection = ({ wide, title, toggleLabel, toggleHint, forceOpen = false,
3452
3452
  open || forceOpen ? children : null
3453
3453
  ] });
3454
3454
  };
3455
+ var styles34 = reactNative.StyleSheet.create({
3456
+ entry: { borderLeftWidth: 2, gap: 4, paddingBottom: 12, paddingLeft: 12 },
3457
+ head: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: 8 },
3458
+ time: { fontSize: 13 },
3459
+ title: { flexShrink: 1, fontSize: 15, fontWeight: "600" }
3460
+ });
3461
+ var entryTestId = (testID, key) => testID === void 0 ? void 0 : `${testID}-${key}`;
3462
+ var Timeline = ({ entries, accessibilityLabel, accessibilityHint, testID }) => {
3463
+ const { colors } = uiFeedback.useUi().theme;
3464
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityLabel, role: "list", testID, children: entries.map((entry) => /* @__PURE__ */ jsxRuntime.jsxs(
3465
+ reactNative.View,
3466
+ {
3467
+ accessibilityHint: entry.accessibilityHint,
3468
+ accessibilityLabel: entry.accessibilityLabel,
3469
+ role: "listitem",
3470
+ style: [styles34.entry, { borderLeftColor: colors.border }],
3471
+ testID: entryTestId(testID, entry.key),
3472
+ children: [
3473
+ entry.time === "" ? null : /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles34.time, { color: colors.textSecondary }], children: entry.time }),
3474
+ /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: styles34.head, children: [
3475
+ /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { style: [styles34.title, { color: colors.text }], children: entry.title }),
3476
+ entry.status === void 0 || entry.status === "" ? null : /* @__PURE__ */ jsxRuntime.jsx(StatusBadge, { label: entry.status, tone: entry.tone ?? "neutral" /* Neutral */ })
3477
+ ] })
3478
+ ]
3479
+ },
3480
+ entry.key
3481
+ )) });
3482
+ };
3455
3483
 
3456
3484
  exports.A4_PAGE = A4_PAGE;
3457
3485
  exports.API_COMMIT_SEPARATOR = API_COMMIT_SEPARATOR;
@@ -3507,6 +3535,7 @@ exports.TYPE_SCALE_BREAKPOINT = TYPE_SCALE_BREAKPOINT;
3507
3535
  exports.Tabs = Tabs;
3508
3536
  exports.TabsCollapsedTrigger = TabsCollapsedTrigger;
3509
3537
  exports.TextKind = TextKind;
3538
+ exports.Timeline = Timeline;
3510
3539
  exports.ToggleSection = ToggleSection;
3511
3540
  exports.TruncatedText = TruncatedText;
3512
3541
  exports.UpgradePrompt = UpgradePrompt;