@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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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,
|