@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/dist/index.mjs CHANGED
@@ -192,6 +192,7 @@ var TextKind = /* @__PURE__ */ ((TextKind2) => {
192
192
  TextKind2["Small"] = "small";
193
193
  return TextKind2;
194
194
  })(TextKind || {});
195
+ var TITLE_HEADING_LEVEL = 1;
195
196
  var SIZES = {
196
197
  ["title" /* Title */]: { fontSize: 24, fontWeight: "700", lineHeight: 30 },
197
198
  ["heading" /* Heading */]: { fontSize: 17, fontWeight: "700", lineHeight: 24 },
@@ -209,9 +210,12 @@ var AppText = ({
209
210
  }) => {
210
211
  const { theme } = useUi();
211
212
  const quiet = kind === "muted" /* Muted */ || kind === "small" /* Small */;
213
+ const isTitle = kind === "title" /* Title */;
212
214
  return /* @__PURE__ */ jsx(
213
215
  Text,
214
216
  {
217
+ accessibilityRole: isTitle ? "header" : void 0,
218
+ "aria-level": isTitle ? TITLE_HEADING_LEVEL : void 0,
215
219
  style: [
216
220
  SIZES[kind],
217
221
  { color: color ?? (quiet ? theme.colors.textSecondary : theme.colors.text) },