@octaviaflow/core 3.1.0-beta.58 → 3.1.0-beta.60
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/components/ConditionBuilder/ConditionBuilder.d.ts +11 -0
- package/dist/components/ConditionBuilder/ConditionBuilder.d.ts.map +1 -1
- package/dist/components/ConditionBuilder/index.d.ts +1 -1
- package/dist/components/ConditionBuilder/index.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/index.cjs +185 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +185 -15
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/a11y.d.ts +8 -0
- package/dist/utils/a11y.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/utils/a11y.d.ts
CHANGED
|
@@ -44,6 +44,14 @@ import { type ReactNode } from "react";
|
|
|
44
44
|
* undefined do not render and so don't count.
|
|
45
45
|
*/
|
|
46
46
|
export declare function hasRenderableText(node: ReactNode): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Extract the concatenated visible text from a ReactNode — used to derive an
|
|
49
|
+
* accessible name when a control accepts a rich `label` (icon + text, custom
|
|
50
|
+
* JSX). Mirrors `hasRenderableText`'s traversal: strings/numbers contribute,
|
|
51
|
+
* arrays/fragments/elements recurse into their children, and
|
|
52
|
+
* booleans/null/undefined contribute nothing. Returns '' when there is no text.
|
|
53
|
+
*/
|
|
54
|
+
export declare function getRenderableText(node: ReactNode): string;
|
|
47
55
|
export interface ResolveAccessibleNameInput {
|
|
48
56
|
/** The visible label, if any. Strings are auto-used as aria-label. */
|
|
49
57
|
label?: ReactNode;
|
package/dist/utils/a11y.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["../../src/utils/a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