@octaviaflow/core 3.1.0-beta.56 → 3.1.0-beta.58

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.
@@ -29,7 +29,21 @@
29
29
  *
30
30
  * useCheckbox({ ...otherProps, ...ariaProps }, state, ref);
31
31
  */
32
- import type { ReactNode } from "react";
32
+ import { type ReactNode } from "react";
33
+ /**
34
+ * True when a ReactNode renders any non-empty, human-readable text.
35
+ *
36
+ * Used by controls whose accessible name comes from their CHILDREN (e.g.
37
+ * Button). Recurses through arrays, fragments, and element children so that
38
+ * conditionally-rendered or wrapped text is detected — e.g.
39
+ * `{cond && "Save"}`, `["Connect with ", name]`, or `<span>Save</span>`.
40
+ *
41
+ * Returns false for icon/SVG-only subtrees (no string content), so genuinely
42
+ * icon-only controls still trip the missing-accessible-name check. Numbers
43
+ * count (they render as announced text, including 0); booleans / null /
44
+ * undefined do not render and so don't count.
45
+ */
46
+ export declare function hasRenderableText(node: ReactNode): boolean;
33
47
  export interface ResolveAccessibleNameInput {
34
48
  /** The visible label, if any. Strings are auto-used as aria-label. */
35
49
  label?: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["../../src/utils/a11y.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,0BAA0B;IACzC,sEAAsE;IACtE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACvC;AAED,MAAM,MAAM,sBAAsB,GAAG;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9F;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,GAAG,sBAAsB,CA4B/F"}
1
+ {"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["../../src/utils/a11y.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAS1D;AAED,MAAM,WAAW,0BAA0B;IACzC,sEAAsE;IACtE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CACvC;AAED,MAAM,MAAM,sBAAsB,GAAG;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9F;;;;;;;;;;;GAWG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,GAAG,sBAAsB,CA4B/F"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octaviaflow/core",
3
- "version": "3.1.0-beta.56",
3
+ "version": "3.1.0-beta.58",
4
4
  "description": "OctaviaFlow Design System React components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",