@dloizides/ui-layout 1.55.1 → 1.55.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
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.55.2
4
+
5
+ - INV-QA-LOW-1 D-INV-QA-2 "Title heading role in the package". `AppText` with `TextKind.Title` renders `accessibilityRole="header"` and `aria-level` 1 (an `<h1>` on web), so screen titles are announced as headings. Other kinds unchanged.
6
+
3
7
  ## 1.54.0
4
8
 
5
9
  - MODC-1 D-MC-710 "Shared parts in packages", UI-PKG-FIRST-1. New `StickyActionBar`: page actions pinned to the bottom edge when narrow (web `position: sticky`, bottom padding 12 px + `bottomInset` + `env(safe-area-inset-bottom)`; native pads by the inset), an inline end-aligned row when wide (`breakpoint`, default 768); role toolbar with the caller's label. New `PageHead` (title + subtitle left, actions right, actions wrap below on narrow screens; testIDs `<id>-title`, `<id>-actions`). `DayCard` takes `badgeFill` (`DayBadgeFill` Solid, the default, or Tint: tone tint step 100 with deep ink, solid fallback) and `badgeIcon` (ui-icons name, e.g. `clock`); badge testID `<id>-badge`. `SectionIndexLayout` takes `indexWidth` (default `SECTION_INDEX_WIDTH` 200); `SectionIndex` takes `width`. `ToggleSection` takes controlled `open` + `onOpenChange`. `Section` takes `padding` (number or `{ vertical, horizontal }`). New export `resolveTintColors`. All additive; defaults unchanged.
package/dist/index.js CHANGED
@@ -198,6 +198,7 @@ var TextKind = /* @__PURE__ */ ((TextKind2) => {
198
198
  TextKind2["Small"] = "small";
199
199
  return TextKind2;
200
200
  })(TextKind || {});
201
+ var TITLE_HEADING_LEVEL = 1;
201
202
  var SIZES = {
202
203
  ["title" /* Title */]: { fontSize: 24, fontWeight: "700", lineHeight: 30 },
203
204
  ["heading" /* Heading */]: { fontSize: 17, fontWeight: "700", lineHeight: 24 },
@@ -215,9 +216,12 @@ var AppText = ({
215
216
  }) => {
216
217
  const { theme } = uiFeedback.useUi();
217
218
  const quiet = kind === "muted" /* Muted */ || kind === "small" /* Small */;
219
+ const isTitle = kind === "title" /* Title */;
218
220
  return /* @__PURE__ */ jsxRuntime.jsx(
219
221
  reactNative.Text,
220
222
  {
223
+ accessibilityRole: isTitle ? "header" : void 0,
224
+ "aria-level": isTitle ? TITLE_HEADING_LEVEL : void 0,
221
225
  style: [
222
226
  SIZES[kind],
223
227
  { color: color ?? (quiet ? theme.colors.textSecondary : theme.colors.text) },