@dloizides/ui-layout 1.46.0 → 1.48.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
@@ -1711,6 +1711,7 @@ var TabsMenu = ({
1711
1711
  activeKey,
1712
1712
  onChange,
1713
1713
  accessibilityLabel,
1714
+ accessibilityHint,
1714
1715
  idPrefix,
1715
1716
  testID,
1716
1717
  collapsedTrigger = "caret" /* Caret */
@@ -1731,7 +1732,7 @@ var TabsMenu = ({
1731
1732
  return /* @__PURE__ */ jsx(
1732
1733
  ModalDropdown,
1733
1734
  {
1734
- accessibilityHint: t(LAYOUT_I18N.tabsMenuHint),
1735
+ accessibilityHint: accessibilityHint ?? t(LAYOUT_I18N.tabsMenuHint),
1735
1736
  accessibilityLabel,
1736
1737
  optionTestID,
1737
1738
  options,
@@ -1811,13 +1812,14 @@ var WideTabStrip = ({
1811
1812
  activeKey,
1812
1813
  onChange,
1813
1814
  accessibilityLabel,
1815
+ accessibilityHint,
1814
1816
  idPrefix,
1815
1817
  borderColor,
1816
1818
  primaryColor,
1817
1819
  textSecondary,
1818
1820
  surfaceElevated,
1819
1821
  stripStyle
1820
- }) => /* @__PURE__ */ jsx(View, { style: [styles15.stripOuter, { borderBottomColor: borderColor }], children: /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsx(View, { accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles15.strip, stripStyle], children: tabs.map((tab) => {
1822
+ }) => /* @__PURE__ */ jsx(View, { style: [styles15.stripOuter, { borderBottomColor: borderColor }], children: /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsx(View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles15.strip, stripStyle], children: tabs.map((tab) => {
1821
1823
  const selected = tab.key === activeKey;
1822
1824
  const textColor = selected ? TEXT_ON_PRIMARY : textSecondary;
1823
1825
  const pillColor = selected ? primaryColor : surfaceElevated;
@@ -1844,6 +1846,7 @@ var Tabs = ({
1844
1846
  activeKey,
1845
1847
  onChange,
1846
1848
  accessibilityLabel,
1849
+ accessibilityHint,
1847
1850
  children,
1848
1851
  idPrefix = "tabs",
1849
1852
  collapseBelow = TABS_COLLAPSE_BREAKPOINT,
@@ -1863,6 +1866,7 @@ var Tabs = ({
1863
1866
  collapsed ? /* @__PURE__ */ jsx(
1864
1867
  TabsMenu,
1865
1868
  {
1869
+ accessibilityHint,
1866
1870
  accessibilityLabel,
1867
1871
  activeKey,
1868
1872
  collapsedTrigger,
@@ -1874,6 +1878,7 @@ var Tabs = ({
1874
1878
  ) : /* @__PURE__ */ jsx(
1875
1879
  WideTabStrip,
1876
1880
  {
1881
+ accessibilityHint,
1877
1882
  accessibilityLabel,
1878
1883
  activeKey,
1879
1884
  borderColor: colors.border,
@@ -3446,7 +3451,35 @@ var ToggleSection = ({ wide, title, toggleLabel, toggleHint, forceOpen = false,
3446
3451
  open || forceOpen ? children : null
3447
3452
  ] });
3448
3453
  };
3454
+ var styles34 = StyleSheet.create({
3455
+ entry: { borderLeftWidth: 2, gap: 4, paddingBottom: 12, paddingLeft: 12 },
3456
+ head: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: 8 },
3457
+ time: { fontSize: 13 },
3458
+ title: { flexShrink: 1, fontSize: 15, fontWeight: "600" }
3459
+ });
3460
+ var entryTestId = (testID, key) => testID === void 0 ? void 0 : `${testID}-${key}`;
3461
+ var Timeline = ({ entries, accessibilityLabel, accessibilityHint, testID }) => {
3462
+ const { colors } = useUi().theme;
3463
+ return /* @__PURE__ */ jsx(View, { accessibilityHint, accessibilityLabel, role: "list", testID, children: entries.map((entry) => /* @__PURE__ */ jsxs(
3464
+ View,
3465
+ {
3466
+ accessibilityHint: entry.accessibilityHint,
3467
+ accessibilityLabel: entry.accessibilityLabel,
3468
+ role: "listitem",
3469
+ style: [styles34.entry, { borderLeftColor: colors.border }],
3470
+ testID: entryTestId(testID, entry.key),
3471
+ children: [
3472
+ entry.time === "" ? null : /* @__PURE__ */ jsx(Text, { style: [styles34.time, { color: colors.textSecondary }], children: entry.time }),
3473
+ /* @__PURE__ */ jsxs(View, { style: styles34.head, children: [
3474
+ /* @__PURE__ */ jsx(Text, { style: [styles34.title, { color: colors.text }], children: entry.title }),
3475
+ entry.status === void 0 || entry.status === "" ? null : /* @__PURE__ */ jsx(StatusBadge, { label: entry.status, tone: entry.tone ?? "neutral" /* Neutral */ })
3476
+ ] })
3477
+ ]
3478
+ },
3479
+ entry.key
3480
+ )) });
3481
+ };
3449
3482
 
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 };
3483
+ 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
3484
  //# sourceMappingURL=index.mjs.map
3452
3485
  //# sourceMappingURL=index.mjs.map