@gympass/yoga 7.129.2 → 7.129.3

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.
@@ -98,7 +98,8 @@ function ActionRequirement(props) {
98
98
  checkable,
99
99
  illustration,
100
100
  list,
101
- titleAsTextDisplay = false
101
+ titleAsTextDisplay = false,
102
+ ariaLevelTitle = 1
102
103
  } = props;
103
104
  let primaryButton;
104
105
  let secondaryButton;
@@ -114,7 +115,7 @@ function ActionRequirement(props) {
114
115
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledActionRequirement, __spreadProps(__spreadValues({}, props), { children: [
115
116
  illustration && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxIllustration, { "aria-hidden": true, children: illustration }),
116
117
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Content, { children: [
117
- titleAsTextDisplay ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Display2, { as: "h1", children: title }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ActionRequirementStyles.Title, { children: title }),
118
+ titleAsTextDisplay ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Display2, { as: "h1", "aria-level": ariaLevelTitle, children: title }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ActionRequirementStyles.Title, { "aria-level": ariaLevelTitle, children: title }),
118
119
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Body1, { mt: "small", color: "deep", children: description }),
119
120
  list && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Box.default, { mt: "large", children: list }),
120
121
  checkable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Box.default, { mt: "xxlarge", children: checkable }),
@@ -132,6 +133,7 @@ ActionRequirement.propTypes = {
132
133
  checkable: (0, import_prop_types.oneOfType)([(0, import_prop_types.arrayOf)(import_prop_types.node), import_prop_types.node]),
133
134
  illustration: (0, import_prop_types.oneOfType)([(0, import_prop_types.arrayOf)(import_prop_types.node), import_prop_types.node]),
134
135
  list: (0, import_prop_types.oneOfType)([(0, import_prop_types.arrayOf)(import_prop_types.node), import_prop_types.node]),
135
- titleAsTextDisplay: import_prop_types.bool
136
+ titleAsTextDisplay: import_prop_types.bool,
137
+ ariaLevelTitle: import_prop_types.number
136
138
  };
137
139
  var ActionRequirement_default = ActionRequirement;
@@ -76,4 +76,18 @@ describe("<ActionRequirement />", () => {
76
76
  );
77
77
  expect(container).toMatchSnapshot();
78
78
  });
79
+ it("should match snapshot with aria-level 2", () => {
80
+ const { container } = (0, import_react2.render)(
81
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
82
+ import_ActionRequirement.default,
83
+ {
84
+ title: "title",
85
+ description: "description",
86
+ titleAsTextDisplay: true,
87
+ ariaLevelTitle: 2
88
+ }
89
+ ) })
90
+ );
91
+ expect(container).toMatchSnapshot();
92
+ });
79
93
  });
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { jsx, jsxs } from "react/jsx-runtime";
21
21
  import React from "react";
22
- import { arrayOf, bool, node, oneOfType, string } from "prop-types";
22
+ import { arrayOf, bool, node, oneOfType, string, number } from "prop-types";
23
23
  import styled from "styled-components";
24
24
  import { media } from "@gympass/yoga-helpers";
25
25
  import {
@@ -72,7 +72,8 @@ function ActionRequirement(props) {
72
72
  checkable,
73
73
  illustration,
74
74
  list,
75
- titleAsTextDisplay = false
75
+ titleAsTextDisplay = false,
76
+ ariaLevelTitle = 1
76
77
  } = props;
77
78
  let primaryButton;
78
79
  let secondaryButton;
@@ -88,7 +89,7 @@ function ActionRequirement(props) {
88
89
  return /* @__PURE__ */ jsxs(StyledActionRequirement, __spreadProps(__spreadValues({}, props), { children: [
89
90
  illustration && /* @__PURE__ */ jsx(BoxIllustration, { "aria-hidden": true, children: illustration }),
90
91
  /* @__PURE__ */ jsxs(Content, { children: [
91
- titleAsTextDisplay ? /* @__PURE__ */ jsx(Text.Display2, { as: "h1", children: title }) : /* @__PURE__ */ jsx(Title, { children: title }),
92
+ titleAsTextDisplay ? /* @__PURE__ */ jsx(Text.Display2, { as: "h1", "aria-level": ariaLevelTitle, children: title }) : /* @__PURE__ */ jsx(Title, { "aria-level": ariaLevelTitle, children: title }),
92
93
  /* @__PURE__ */ jsx(Text.Body1, { mt: "small", color: "deep", children: description }),
93
94
  list && /* @__PURE__ */ jsx(Box, { mt: "large", children: list }),
94
95
  checkable && /* @__PURE__ */ jsx(Box, { mt: "xxlarge", children: checkable }),
@@ -106,7 +107,8 @@ ActionRequirement.propTypes = {
106
107
  checkable: oneOfType([arrayOf(node), node]),
107
108
  illustration: oneOfType([arrayOf(node), node]),
108
109
  list: oneOfType([arrayOf(node), node]),
109
- titleAsTextDisplay: bool
110
+ titleAsTextDisplay: bool,
111
+ ariaLevelTitle: number
110
112
  };
111
113
  var ActionRequirement_default = ActionRequirement;
112
114
  export {
@@ -53,4 +53,18 @@ describe("<ActionRequirement />", () => {
53
53
  );
54
54
  expect(container).toMatchSnapshot();
55
55
  });
56
+ it("should match snapshot with aria-level 2", () => {
57
+ const { container } = render(
58
+ /* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(
59
+ ActionRequirement,
60
+ {
61
+ title: "title",
62
+ description: "description",
63
+ titleAsTextDisplay: true,
64
+ ariaLevelTitle: 2
65
+ }
66
+ ) })
67
+ );
68
+ expect(container).toMatchSnapshot();
69
+ });
56
70
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gympass/yoga",
3
- "version": "7.129.2",
3
+ "version": "7.129.3",
4
4
  "description": "Gympass component library",
5
5
  "main": "./cjs",
6
6
  "types": "./typings/index.d.ts",
@@ -59,7 +59,7 @@
59
59
  "react-native": "0.72.3",
60
60
  "styled-components": "^4.4.0"
61
61
  },
62
- "gitHead": "80d9a26eac0590d41b55997aff7d267fb259e499",
62
+ "gitHead": "018c3084ee875bada3f2ed90968b5d250cb5ae07",
63
63
  "module": "./esm",
64
64
  "private": false,
65
65
  "react-native": "./cjs/index.native.js"
@@ -1638,46 +1638,46 @@ declare const composeTheme: (tokens: typeof yogaTokens, customTheming?: {}) => {
1638
1638
  length: number;
1639
1639
  toString(): string;
1640
1640
  toLocaleString(): string;
1641
- pop(): 0 | 2 | 1 | undefined;
1642
- push(...items: (0 | 2 | 1)[]): number;
1643
- concat(...items: ConcatArray<0 | 2 | 1>[]): (0 | 2 | 1)[];
1644
- concat(...items: (0 | 2 | 1 | ConcatArray<0 | 2 | 1>)[]): (0 | 2 | 1)[];
1641
+ pop(): 0 | 1 | 2 | undefined;
1642
+ push(...items: (0 | 1 | 2)[]): number;
1643
+ concat(...items: ConcatArray<0 | 1 | 2>[]): (0 | 1 | 2)[];
1644
+ concat(...items: (0 | 1 | 2 | ConcatArray<0 | 1 | 2>)[]): (0 | 1 | 2)[];
1645
1645
  join(separator?: string | undefined): string;
1646
- reverse(): (0 | 2 | 1)[];
1647
- shift(): 0 | 2 | 1 | undefined;
1648
- slice(start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
1649
- sort(compareFn?: ((a: 0 | 2 | 1, b: 0 | 2 | 1) => number) | undefined): (0 | 2 | 1)[];
1650
- splice(start: number, deleteCount?: number | undefined): (0 | 2 | 1)[];
1651
- splice(start: number, deleteCount: number, ...items: (0 | 2 | 1)[]): (0 | 2 | 1)[];
1652
- unshift(...items: (0 | 2 | 1)[]): number;
1653
- indexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
1654
- lastIndexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
1655
- every<S extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S, thisArg?: any): this is S[];
1656
- every(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
1657
- some(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
1658
- forEach(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => void, thisArg?: any): void;
1659
- map<U>(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => U, thisArg?: any): U[];
1660
- filter<S_1 extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S_1, thisArg?: any): S_1[];
1661
- filter(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): (0 | 2 | 1)[];
1662
- reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
1663
- reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
1664
- reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_1, initialValue: U_1): U_1;
1665
- reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
1666
- reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
1667
- reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_2, initialValue: U_2): U_2;
1668
- find<S_2 extends 0 | 2 | 1>(predicate: (this: void, value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => value is S_2, thisArg?: any): S_2 | undefined;
1669
- find(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): 0 | 2 | 1 | undefined;
1670
- findIndex(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): number;
1671
- fill(value: 0 | 2 | 1, start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
1672
- copyWithin(target: number, start: number, end?: number | undefined): (0 | 2 | 1)[];
1673
- entries(): IterableIterator<[number, 0 | 2 | 1]>;
1646
+ reverse(): (0 | 1 | 2)[];
1647
+ shift(): 0 | 1 | 2 | undefined;
1648
+ slice(start?: number | undefined, end?: number | undefined): (0 | 1 | 2)[];
1649
+ sort(compareFn?: ((a: 0 | 1 | 2, b: 0 | 1 | 2) => number) | undefined): (0 | 1 | 2)[];
1650
+ splice(start: number, deleteCount?: number | undefined): (0 | 1 | 2)[];
1651
+ splice(start: number, deleteCount: number, ...items: (0 | 1 | 2)[]): (0 | 1 | 2)[];
1652
+ unshift(...items: (0 | 1 | 2)[]): number;
1653
+ indexOf(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): number;
1654
+ lastIndexOf(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): number;
1655
+ every<S extends 0 | 1 | 2>(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => value is S, thisArg?: any): this is S[];
1656
+ every(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): boolean;
1657
+ some(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): boolean;
1658
+ forEach(callbackfn: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => void, thisArg?: any): void;
1659
+ map<U>(callbackfn: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => U, thisArg?: any): U[];
1660
+ filter<S_1 extends 0 | 1 | 2>(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => value is S_1, thisArg?: any): S_1[];
1661
+ filter(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): (0 | 1 | 2)[];
1662
+ reduce(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2): 0 | 1 | 2;
1663
+ reduce(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2, initialValue: 0 | 1 | 2): 0 | 1 | 2;
1664
+ reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => U_1, initialValue: U_1): U_1;
1665
+ reduceRight(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2): 0 | 1 | 2;
1666
+ reduceRight(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2, initialValue: 0 | 1 | 2): 0 | 1 | 2;
1667
+ reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => U_2, initialValue: U_2): U_2;
1668
+ find<S_2 extends 0 | 1 | 2>(predicate: (this: void, value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => value is S_2, thisArg?: any): S_2 | undefined;
1669
+ find(predicate: (value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => unknown, thisArg?: any): 0 | 1 | 2 | undefined;
1670
+ findIndex(predicate: (value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => unknown, thisArg?: any): number;
1671
+ fill(value: 0 | 1 | 2, start?: number | undefined, end?: number | undefined): (0 | 1 | 2)[];
1672
+ copyWithin(target: number, start: number, end?: number | undefined): (0 | 1 | 2)[];
1673
+ entries(): IterableIterator<[number, 0 | 1 | 2]>;
1674
1674
  keys(): IterableIterator<number>;
1675
- values(): IterableIterator<0 | 2 | 1>;
1676
- includes(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): boolean;
1677
- flatMap<U_3, This = undefined>(callback: (this: This, value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
1675
+ values(): IterableIterator<0 | 1 | 2>;
1676
+ includes(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): boolean;
1677
+ flatMap<U_3, This = undefined>(callback: (this: This, value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
1678
1678
  flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
1679
- at(index: number): 0 | 2 | 1 | undefined;
1680
- [Symbol.iterator](): IterableIterator<0 | 2 | 1>;
1679
+ at(index: number): 0 | 1 | 2 | undefined;
1680
+ [Symbol.iterator](): IterableIterator<0 | 1 | 2>;
1681
1681
  [Symbol.unscopables](): {
1682
1682
  copyWithin: boolean;
1683
1683
  entries: boolean;
@@ -9,46 +9,46 @@ declare const v3theme: {
9
9
  length: number;
10
10
  toString(): string;
11
11
  toLocaleString(): string;
12
- pop(): 0 | 2 | 1 | undefined;
13
- push(...items: (0 | 2 | 1)[]): number;
14
- concat(...items: ConcatArray<0 | 2 | 1>[]): (0 | 2 | 1)[];
15
- concat(...items: (0 | 2 | 1 | ConcatArray<0 | 2 | 1>)[]): (0 | 2 | 1)[];
12
+ pop(): 0 | 1 | 2 | undefined;
13
+ push(...items: (0 | 1 | 2)[]): number;
14
+ concat(...items: ConcatArray<0 | 1 | 2>[]): (0 | 1 | 2)[];
15
+ concat(...items: (0 | 1 | 2 | ConcatArray<0 | 1 | 2>)[]): (0 | 1 | 2)[];
16
16
  join(separator?: string | undefined): string;
17
- reverse(): (0 | 2 | 1)[];
18
- shift(): 0 | 2 | 1 | undefined;
19
- slice(start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
20
- sort(compareFn?: ((a: 0 | 2 | 1, b: 0 | 2 | 1) => number) | undefined): (0 | 2 | 1)[];
21
- splice(start: number, deleteCount?: number | undefined): (0 | 2 | 1)[];
22
- splice(start: number, deleteCount: number, ...items: (0 | 2 | 1)[]): (0 | 2 | 1)[];
23
- unshift(...items: (0 | 2 | 1)[]): number;
24
- indexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
25
- lastIndexOf(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): number;
26
- every<S extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S, thisArg?: any): this is S[];
27
- every(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
28
- some(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): boolean;
29
- forEach(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => void, thisArg?: any): void;
30
- map<U>(callbackfn: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => U, thisArg?: any): U[];
31
- filter<S_1 extends 0 | 2 | 1>(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => value is S_1, thisArg?: any): S_1[];
32
- filter(predicate: (value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => unknown, thisArg?: any): (0 | 2 | 1)[];
33
- reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
34
- reduce(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
35
- reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_1, initialValue: U_1): U_1;
36
- reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1): 0 | 2 | 1;
37
- reduceRight(callbackfn: (previousValue: 0 | 2 | 1, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => 0 | 2 | 1, initialValue: 0 | 2 | 1): 0 | 2 | 1;
38
- reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 | 2 | 1, currentIndex: number, array: (0 | 2 | 1)[]) => U_2, initialValue: U_2): U_2;
39
- find<S_2 extends 0 | 2 | 1>(predicate: (this: void, value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => value is S_2, thisArg?: any): S_2 | undefined;
40
- find(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): 0 | 2 | 1 | undefined;
41
- findIndex(predicate: (value: 0 | 2 | 1, index: number, obj: (0 | 2 | 1)[]) => unknown, thisArg?: any): number;
42
- fill(value: 0 | 2 | 1, start?: number | undefined, end?: number | undefined): (0 | 2 | 1)[];
43
- copyWithin(target: number, start: number, end?: number | undefined): (0 | 2 | 1)[];
44
- entries(): IterableIterator<[number, 0 | 2 | 1]>;
17
+ reverse(): (0 | 1 | 2)[];
18
+ shift(): 0 | 1 | 2 | undefined;
19
+ slice(start?: number | undefined, end?: number | undefined): (0 | 1 | 2)[];
20
+ sort(compareFn?: ((a: 0 | 1 | 2, b: 0 | 1 | 2) => number) | undefined): (0 | 1 | 2)[];
21
+ splice(start: number, deleteCount?: number | undefined): (0 | 1 | 2)[];
22
+ splice(start: number, deleteCount: number, ...items: (0 | 1 | 2)[]): (0 | 1 | 2)[];
23
+ unshift(...items: (0 | 1 | 2)[]): number;
24
+ indexOf(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): number;
25
+ lastIndexOf(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): number;
26
+ every<S extends 0 | 1 | 2>(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => value is S, thisArg?: any): this is S[];
27
+ every(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): boolean;
28
+ some(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): boolean;
29
+ forEach(callbackfn: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => void, thisArg?: any): void;
30
+ map<U>(callbackfn: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => U, thisArg?: any): U[];
31
+ filter<S_1 extends 0 | 1 | 2>(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => value is S_1, thisArg?: any): S_1[];
32
+ filter(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): (0 | 1 | 2)[];
33
+ reduce(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2): 0 | 1 | 2;
34
+ reduce(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2, initialValue: 0 | 1 | 2): 0 | 1 | 2;
35
+ reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => U_1, initialValue: U_1): U_1;
36
+ reduceRight(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2): 0 | 1 | 2;
37
+ reduceRight(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2, initialValue: 0 | 1 | 2): 0 | 1 | 2;
38
+ reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => U_2, initialValue: U_2): U_2;
39
+ find<S_2 extends 0 | 1 | 2>(predicate: (this: void, value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => value is S_2, thisArg?: any): S_2 | undefined;
40
+ find(predicate: (value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => unknown, thisArg?: any): 0 | 1 | 2 | undefined;
41
+ findIndex(predicate: (value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => unknown, thisArg?: any): number;
42
+ fill(value: 0 | 1 | 2, start?: number | undefined, end?: number | undefined): (0 | 1 | 2)[];
43
+ copyWithin(target: number, start: number, end?: number | undefined): (0 | 1 | 2)[];
44
+ entries(): IterableIterator<[number, 0 | 1 | 2]>;
45
45
  keys(): IterableIterator<number>;
46
- values(): IterableIterator<0 | 2 | 1>;
47
- includes(searchElement: 0 | 2 | 1, fromIndex?: number | undefined): boolean;
48
- flatMap<U_3, This = undefined>(callback: (this: This, value: 0 | 2 | 1, index: number, array: (0 | 2 | 1)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
46
+ values(): IterableIterator<0 | 1 | 2>;
47
+ includes(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): boolean;
48
+ flatMap<U_3, This = undefined>(callback: (this: This, value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
49
49
  flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
50
- at(index: number): 0 | 2 | 1 | undefined;
51
- [Symbol.iterator](): IterableIterator<0 | 2 | 1>;
50
+ at(index: number): 0 | 1 | 2 | undefined;
51
+ [Symbol.iterator](): IterableIterator<0 | 1 | 2>;
52
52
  [Symbol.unscopables](): {
53
53
  copyWithin: boolean;
54
54
  entries: boolean;
@@ -408,6 +408,7 @@ declare namespace ActionRequirement {
408
408
  export const illustration: prop_types.Requireable<string | number | boolean | prop_types.ReactElementLike | prop_types.ReactNodeArray>;
409
409
  export const list: prop_types.Requireable<string | number | boolean | prop_types.ReactElementLike | prop_types.ReactNodeArray>;
410
410
  export { bool as titleAsTextDisplay };
411
+ export { number as ariaLevelTitle };
411
412
  }
412
413
  }
413
414