@dloizides/ui-layout 1.47.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.d.mts CHANGED
@@ -316,6 +316,8 @@ interface TabsProps {
316
316
  onChange: (key: string) => void;
317
317
  /** Accessible name for the whole tablist / collapsed menu. */
318
318
  accessibilityLabel: string;
319
+ /** Hint for the tablist / collapsed menu; the menu keeps the kit hint when omitted. */
320
+ accessibilityHint?: string;
319
321
  /** The panel content for the active tab. */
320
322
  children?: React.ReactNode;
321
323
  /** Prefix for the generated tab / panel element ids (must be unique per Tabs on a page). */
@@ -347,7 +349,7 @@ interface TabsProps {
347
349
  * the wide pill strip or — below `collapseBelow` — the mobile menu. Generic-free
348
350
  * by design: tab identity is a plain string `key`.
349
351
  */
350
- declare const Tabs: ({ tabs, activeKey, onChange, accessibilityLabel, children, idPrefix, collapseBelow, collapsedTrigger, style, stripStyle, panelStyle, testID, }: TabsProps) => React.ReactElement;
352
+ declare const Tabs: ({ tabs, activeKey, onChange, accessibilityLabel, accessibilityHint, children, idPrefix, collapseBelow, collapsedTrigger, style, stripStyle, panelStyle, testID, }: TabsProps) => React.ReactElement;
351
353
 
352
354
  /**
353
355
  * UpgradePrompt — shown when a free-tier user hits a feature limit. CTA navigates to the
package/dist/index.d.ts CHANGED
@@ -316,6 +316,8 @@ interface TabsProps {
316
316
  onChange: (key: string) => void;
317
317
  /** Accessible name for the whole tablist / collapsed menu. */
318
318
  accessibilityLabel: string;
319
+ /** Hint for the tablist / collapsed menu; the menu keeps the kit hint when omitted. */
320
+ accessibilityHint?: string;
319
321
  /** The panel content for the active tab. */
320
322
  children?: React.ReactNode;
321
323
  /** Prefix for the generated tab / panel element ids (must be unique per Tabs on a page). */
@@ -347,7 +349,7 @@ interface TabsProps {
347
349
  * the wide pill strip or — below `collapseBelow` — the mobile menu. Generic-free
348
350
  * by design: tab identity is a plain string `key`.
349
351
  */
350
- declare const Tabs: ({ tabs, activeKey, onChange, accessibilityLabel, children, idPrefix, collapseBelow, collapsedTrigger, style, stripStyle, panelStyle, testID, }: TabsProps) => React.ReactElement;
352
+ declare const Tabs: ({ tabs, activeKey, onChange, accessibilityLabel, accessibilityHint, children, idPrefix, collapseBelow, collapsedTrigger, style, stripStyle, panelStyle, testID, }: TabsProps) => React.ReactElement;
351
353
 
352
354
  /**
353
355
  * UpgradePrompt — shown when a free-tier user hits a feature limit. CTA navigates to the
package/dist/index.js CHANGED
@@ -1717,6 +1717,7 @@ var TabsMenu = ({
1717
1717
  activeKey,
1718
1718
  onChange,
1719
1719
  accessibilityLabel,
1720
+ accessibilityHint,
1720
1721
  idPrefix,
1721
1722
  testID,
1722
1723
  collapsedTrigger = "caret" /* Caret */
@@ -1737,7 +1738,7 @@ var TabsMenu = ({
1737
1738
  return /* @__PURE__ */ jsxRuntime.jsx(
1738
1739
  ModalDropdown,
1739
1740
  {
1740
- accessibilityHint: t(LAYOUT_I18N.tabsMenuHint),
1741
+ accessibilityHint: accessibilityHint ?? t(LAYOUT_I18N.tabsMenuHint),
1741
1742
  accessibilityLabel,
1742
1743
  optionTestID,
1743
1744
  options,
@@ -1817,13 +1818,14 @@ var WideTabStrip = ({
1817
1818
  activeKey,
1818
1819
  onChange,
1819
1820
  accessibilityLabel,
1821
+ accessibilityHint,
1820
1822
  idPrefix,
1821
1823
  borderColor,
1822
1824
  primaryColor,
1823
1825
  textSecondary,
1824
1826
  surfaceElevated,
1825
1827
  stripStyle
1826
- }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles15.stripOuter, { borderBottomColor: borderColor }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles15.strip, stripStyle], children: tabs.map((tab) => {
1828
+ }) => /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles15.stripOuter, { borderBottomColor: borderColor }], children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, style: [styles15.strip, stripStyle], children: tabs.map((tab) => {
1827
1829
  const selected = tab.key === activeKey;
1828
1830
  const textColor = selected ? TEXT_ON_PRIMARY : textSecondary;
1829
1831
  const pillColor = selected ? primaryColor : surfaceElevated;
@@ -1850,6 +1852,7 @@ var Tabs = ({
1850
1852
  activeKey,
1851
1853
  onChange,
1852
1854
  accessibilityLabel,
1855
+ accessibilityHint,
1853
1856
  children,
1854
1857
  idPrefix = "tabs",
1855
1858
  collapseBelow = TABS_COLLAPSE_BREAKPOINT,
@@ -1869,6 +1872,7 @@ var Tabs = ({
1869
1872
  collapsed ? /* @__PURE__ */ jsxRuntime.jsx(
1870
1873
  TabsMenu,
1871
1874
  {
1875
+ accessibilityHint,
1872
1876
  accessibilityLabel,
1873
1877
  activeKey,
1874
1878
  collapsedTrigger,
@@ -1880,6 +1884,7 @@ var Tabs = ({
1880
1884
  ) : /* @__PURE__ */ jsxRuntime.jsx(
1881
1885
  WideTabStrip,
1882
1886
  {
1887
+ accessibilityHint,
1883
1888
  accessibilityLabel,
1884
1889
  activeKey,
1885
1890
  borderColor: colors.border,