@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.mjs CHANGED
@@ -3446,7 +3446,35 @@ var ToggleSection = ({ wide, title, toggleLabel, toggleHint, forceOpen = false,
3446
3446
  open || forceOpen ? children : null
3447
3447
  ] });
3448
3448
  };
3449
+ var styles34 = StyleSheet.create({
3450
+ entry: { borderLeftWidth: 2, gap: 4, paddingBottom: 12, paddingLeft: 12 },
3451
+ head: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: 8 },
3452
+ time: { fontSize: 13 },
3453
+ title: { flexShrink: 1, fontSize: 15, fontWeight: "600" }
3454
+ });
3455
+ var entryTestId = (testID, key) => testID === void 0 ? void 0 : `${testID}-${key}`;
3456
+ var Timeline = ({ entries, accessibilityLabel, accessibilityHint, testID }) => {
3457
+ const { colors } = useUi().theme;
3458
+ return /* @__PURE__ */ jsx(View, { accessibilityHint, accessibilityLabel, role: "list", testID, children: entries.map((entry) => /* @__PURE__ */ jsxs(
3459
+ View,
3460
+ {
3461
+ accessibilityHint: entry.accessibilityHint,
3462
+ accessibilityLabel: entry.accessibilityLabel,
3463
+ role: "listitem",
3464
+ style: [styles34.entry, { borderLeftColor: colors.border }],
3465
+ testID: entryTestId(testID, entry.key),
3466
+ children: [
3467
+ entry.time === "" ? null : /* @__PURE__ */ jsx(Text, { style: [styles34.time, { color: colors.textSecondary }], children: entry.time }),
3468
+ /* @__PURE__ */ jsxs(View, { style: styles34.head, children: [
3469
+ /* @__PURE__ */ jsx(Text, { style: [styles34.title, { color: colors.text }], children: entry.title }),
3470
+ entry.status === void 0 || entry.status === "" ? null : /* @__PURE__ */ jsx(StatusBadge, { label: entry.status, tone: entry.tone ?? "neutral" /* Neutral */ })
3471
+ ] })
3472
+ ]
3473
+ },
3474
+ entry.key
3475
+ )) });
3476
+ };
3449
3477
 
3450
- export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, AppText, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, BuildInfoFooter, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, CopyStatus, CopyableId, CountBadge, DEFAULT_BILLING_ROUTE, DayCard, DropdownVariant, ELLIPSIS, FigureStrip, FormDialog, HEADER_STACK_BREAKPOINT, Heading, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, ModalShell, PageFrame, RowSelectedStyle, SECTION_INDEX_BREAKPOINT, ScreenColumn, Section, SectionChips, SectionDensity, SectionIndex, SectionIndexLayout, SectionVariant, SegmentedControl, SelectedMarker, SideSheet, SplitLayout, SplitPanes, StatusBadge, StickyPreview, TYPE_SCALE_BREAKPOINT, Tabs, TabsCollapsedTrigger, TextKind, ToggleSection, TruncatedText, UpgradePrompt, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
3478
+ export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, AppText, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, BuildInfoFooter, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, CopyStatus, CopyableId, CountBadge, DEFAULT_BILLING_ROUTE, DayCard, DropdownVariant, ELLIPSIS, FigureStrip, FormDialog, HEADER_STACK_BREAKPOINT, Heading, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, ModalShell, PageFrame, RowSelectedStyle, SECTION_INDEX_BREAKPOINT, ScreenColumn, Section, SectionChips, SectionDensity, SectionIndex, SectionIndexLayout, SectionVariant, SegmentedControl, SelectedMarker, SideSheet, SplitLayout, SplitPanes, StatusBadge, StickyPreview, TYPE_SCALE_BREAKPOINT, Tabs, TabsCollapsedTrigger, TextKind, Timeline, ToggleSection, TruncatedText, UpgradePrompt, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
3451
3479
  //# sourceMappingURL=index.mjs.map
3452
3480
  //# sourceMappingURL=index.mjs.map