@dloizides/ui-layout 1.49.1 → 1.49.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.49.2
6
+ - Breadcrumb and UnderlineTabs take an optional `accessibilityHint`, passed to the strip element.
7
+
5
8
  ## 1.49.1
6
9
  - IdChip: `value` may be null or empty; the chip then copies nothing, is disabled and hides the copy glyph (was: copied the placeholder).
7
10
 
package/dist/index.d.mts CHANGED
@@ -1309,10 +1309,11 @@ interface BreadcrumbItem {
1309
1309
  interface BreadcrumbProps {
1310
1310
  items: ReadonlyArray<BreadcrumbItem>;
1311
1311
  accessibilityLabel: string;
1312
+ accessibilityHint?: string;
1312
1313
  testID?: string;
1313
1314
  }
1314
1315
  /** A compact text trail back to the parent list; a step without onPress is the current place. */
1315
- declare const Breadcrumb: ({ items, accessibilityLabel, testID }: BreadcrumbProps) => React.ReactElement;
1316
+ declare const Breadcrumb: ({ items, accessibilityLabel, accessibilityHint, testID }: BreadcrumbProps) => React.ReactElement;
1316
1317
 
1317
1318
  interface RecordActionButtonProps {
1318
1319
  label: string;
@@ -1354,11 +1355,12 @@ interface UnderlineTabsProps {
1354
1355
  activeKey: string;
1355
1356
  onChange: (key: string) => void;
1356
1357
  accessibilityLabel: string;
1358
+ accessibilityHint?: string;
1357
1359
  underlineColor?: string;
1358
1360
  testID?: string;
1359
1361
  }
1360
1362
  /** A full-width tab strip with an underline on the selected tab and an optional count per tab. */
1361
- declare const UnderlineTabs: ({ tabs, activeKey, onChange, accessibilityLabel, underlineColor, testID }: UnderlineTabsProps) => React.ReactElement;
1363
+ declare const UnderlineTabs: ({ tabs, activeKey, onChange, accessibilityLabel, accessibilityHint, underlineColor, testID }: UnderlineTabsProps) => React.ReactElement;
1362
1364
 
1363
1365
  interface WidgetCardProps {
1364
1366
  title: string;
package/dist/index.d.ts CHANGED
@@ -1309,10 +1309,11 @@ interface BreadcrumbItem {
1309
1309
  interface BreadcrumbProps {
1310
1310
  items: ReadonlyArray<BreadcrumbItem>;
1311
1311
  accessibilityLabel: string;
1312
+ accessibilityHint?: string;
1312
1313
  testID?: string;
1313
1314
  }
1314
1315
  /** A compact text trail back to the parent list; a step without onPress is the current place. */
1315
- declare const Breadcrumb: ({ items, accessibilityLabel, testID }: BreadcrumbProps) => React.ReactElement;
1316
+ declare const Breadcrumb: ({ items, accessibilityLabel, accessibilityHint, testID }: BreadcrumbProps) => React.ReactElement;
1316
1317
 
1317
1318
  interface RecordActionButtonProps {
1318
1319
  label: string;
@@ -1354,11 +1355,12 @@ interface UnderlineTabsProps {
1354
1355
  activeKey: string;
1355
1356
  onChange: (key: string) => void;
1356
1357
  accessibilityLabel: string;
1358
+ accessibilityHint?: string;
1357
1359
  underlineColor?: string;
1358
1360
  testID?: string;
1359
1361
  }
1360
1362
  /** A full-width tab strip with an underline on the selected tab and an optional count per tab. */
1361
- declare const UnderlineTabs: ({ tabs, activeKey, onChange, accessibilityLabel, underlineColor, testID }: UnderlineTabsProps) => React.ReactElement;
1363
+ declare const UnderlineTabs: ({ tabs, activeKey, onChange, accessibilityLabel, accessibilityHint, underlineColor, testID }: UnderlineTabsProps) => React.ReactElement;
1362
1364
 
1363
1365
  interface WidgetCardProps {
1364
1366
  title: string;
package/dist/index.js CHANGED
@@ -3520,10 +3520,10 @@ var styles36 = reactNative.StyleSheet.create({
3520
3520
  row: { alignItems: "center", flexDirection: "row", flexWrap: "wrap", gap: GAP3 },
3521
3521
  text: { fontSize: FONT_SIZE, fontWeight: "500" }
3522
3522
  });
3523
- var Breadcrumb = ({ items, accessibilityLabel, testID }) => {
3523
+ var Breadcrumb = ({ items, accessibilityLabel, accessibilityHint, testID }) => {
3524
3524
  const { theme } = uiFeedback.useUi();
3525
3525
  const muted = { color: theme.colors.textSecondary };
3526
- return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { "aria-label": accessibilityLabel, style: styles36.row, testID, children: [
3526
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { accessibilityHint, "aria-label": accessibilityLabel, style: styles36.row, testID, children: [
3527
3527
  /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles36.text, muted], children: BACK }),
3528
3528
  items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsxs(React16__default.default.Fragment, { children: [
3529
3529
  index > 0 ? /* @__PURE__ */ jsxRuntime.jsx(reactNative.Text, { "aria-hidden": true, style: [styles36.text, muted], children: SEPARATOR }) : null,
@@ -3623,10 +3623,10 @@ var styles39 = reactNative.StyleSheet.create({
3623
3623
  strip: { borderBottomWidth: 1, width: "100%" },
3624
3624
  tab: { alignItems: "center", borderBottomWidth: UNDERLINE, flexDirection: "row", gap: GAP6, justifyContent: "center", minHeight: MIN_TARGET_PX, minWidth: MIN_TARGET_PX, paddingHorizontal: PAD_H4 }
3625
3625
  });
3626
- var UnderlineTabs = ({ tabs, activeKey, onChange, accessibilityLabel, underlineColor, testID }) => {
3626
+ var UnderlineTabs = ({ tabs, activeKey, onChange, accessibilityLabel, accessibilityHint, underlineColor, testID }) => {
3627
3627
  const { theme } = uiFeedback.useUi();
3628
3628
  const underline = underlineColor ?? theme.palette.primary[DEFAULT_UNDERLINE_STEP];
3629
- return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles39.strip, { borderBottomColor: theme.colors.border }], testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, accessibilityRole: "tablist", "aria-label": accessibilityLabel, showsHorizontalScrollIndicator: false, children: tabs.map((tab) => {
3629
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles39.strip, { borderBottomColor: theme.colors.border }], testID, children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.ScrollView, { horizontal: true, accessibilityHint, accessibilityRole: "tablist", "aria-label": accessibilityLabel, showsHorizontalScrollIndicator: false, children: tabs.map((tab) => {
3630
3630
  const selected = tab.key === activeKey;
3631
3631
  return /* @__PURE__ */ jsxRuntime.jsxs(
3632
3632
  reactNative.Pressable,