@gympass/yoga 7.129.1 → 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.
- package/cjs/ActionRequirement/web/ActionRequirement.js +5 -3
- package/cjs/ActionRequirement/web/ActionRequirement.test.js +14 -0
- package/cjs/Input/web/Phone.js +4 -4
- package/cjs/Input/web/Phone.test.js +10 -0
- package/esm/ActionRequirement/web/ActionRequirement.js +6 -4
- package/esm/ActionRequirement/web/ActionRequirement.test.js +14 -0
- package/esm/Input/web/Phone.js +4 -4
- package/esm/Input/web/Phone.test.js +10 -0
- package/package.json +2 -2
- package/typings/Theme/theme/theme.d.ts +37 -37
- package/typings/Theme/theme/v3theme.d.ts +37 -37
- package/typings/index.d.ts +1 -0
|
@@ -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
|
});
|
package/cjs/Input/web/Phone.js
CHANGED
|
@@ -127,7 +127,7 @@ const Phone = import_react.default.forwardRef(
|
|
|
127
127
|
};
|
|
128
128
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
129
129
|
import_Input.default,
|
|
130
|
-
__spreadProps(__spreadValues({},
|
|
130
|
+
__spreadProps(__spreadValues({}, {
|
|
131
131
|
disabled,
|
|
132
132
|
readOnly,
|
|
133
133
|
error,
|
|
@@ -135,17 +135,17 @@ const Phone = import_react.default.forwardRef(
|
|
|
135
135
|
helper,
|
|
136
136
|
value,
|
|
137
137
|
cleanable
|
|
138
|
-
}
|
|
138
|
+
}), {
|
|
139
139
|
ref: inputRef,
|
|
140
140
|
label: "",
|
|
141
141
|
onClean: (phoneNumber) => onChange(phoneNumber),
|
|
142
142
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(S.Container, { error, disabled, full, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
143
143
|
import_react_phone_input_2.default,
|
|
144
|
-
__spreadProps(__spreadValues({}, availableCountries), {
|
|
144
|
+
__spreadProps(__spreadValues(__spreadValues({}, availableCountries), rest), {
|
|
145
145
|
ref: (phoneRef) => {
|
|
146
146
|
inputRef.current = phoneRef == null ? void 0 : phoneRef.numberInputRef;
|
|
147
147
|
},
|
|
148
|
-
inputProps: { readOnly },
|
|
148
|
+
inputProps: __spreadProps(__spreadValues({}, rest.inputProps), { readOnly }),
|
|
149
149
|
disabled,
|
|
150
150
|
disableDropdown: readOnly,
|
|
151
151
|
country: defaultCountry,
|
|
@@ -113,6 +113,16 @@ describe("<Input.Phone />", () => {
|
|
|
113
113
|
import_react2.fireEvent.click(getAllByRole("button")[0]);
|
|
114
114
|
expect(getAllByRole("option").length).toBe(12);
|
|
115
115
|
});
|
|
116
|
+
it(`Should call onblur event`, () => {
|
|
117
|
+
const USPhone = numbersFormats[1];
|
|
118
|
+
const onBlur = jest.fn();
|
|
119
|
+
const { getAllByRole } = (0, import_react2.render)(
|
|
120
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Input.Phone, { onBlur, countries: [], value: USPhone.base }) })
|
|
121
|
+
);
|
|
122
|
+
const inputPhone = getAllByRole("textbox")[0];
|
|
123
|
+
import_react2.fireEvent.blur(inputPhone);
|
|
124
|
+
expect(onBlur).toHaveBeenCalled();
|
|
125
|
+
});
|
|
116
126
|
it("should prefix the phone number with newly selected country dial code", () => __async(exports, null, function* () {
|
|
117
127
|
const { getByRole, getByText, getByDisplayValue } = (0, import_react2.render)(
|
|
118
128
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Input.Phone, { defaultCountry: "us" }) })
|
|
@@ -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/esm/Input/web/Phone.js
CHANGED
|
@@ -96,7 +96,7 @@ const Phone = React.forwardRef(
|
|
|
96
96
|
};
|
|
97
97
|
return /* @__PURE__ */ jsx(
|
|
98
98
|
Input,
|
|
99
|
-
__spreadProps(__spreadValues({},
|
|
99
|
+
__spreadProps(__spreadValues({}, {
|
|
100
100
|
disabled,
|
|
101
101
|
readOnly,
|
|
102
102
|
error,
|
|
@@ -104,17 +104,17 @@ const Phone = React.forwardRef(
|
|
|
104
104
|
helper,
|
|
105
105
|
value,
|
|
106
106
|
cleanable
|
|
107
|
-
}
|
|
107
|
+
}), {
|
|
108
108
|
ref: inputRef,
|
|
109
109
|
label: "",
|
|
110
110
|
onClean: (phoneNumber) => onChange(phoneNumber),
|
|
111
111
|
children: /* @__PURE__ */ jsx(S.Container, { error, disabled, full, children: /* @__PURE__ */ jsx(
|
|
112
112
|
BasePhoneInput,
|
|
113
|
-
__spreadProps(__spreadValues({}, availableCountries), {
|
|
113
|
+
__spreadProps(__spreadValues(__spreadValues({}, availableCountries), rest), {
|
|
114
114
|
ref: (phoneRef) => {
|
|
115
115
|
inputRef.current = phoneRef == null ? void 0 : phoneRef.numberInputRef;
|
|
116
116
|
},
|
|
117
|
-
inputProps: { readOnly },
|
|
117
|
+
inputProps: __spreadProps(__spreadValues({}, rest.inputProps), { readOnly }),
|
|
118
118
|
disabled,
|
|
119
119
|
disableDropdown: readOnly,
|
|
120
120
|
country: defaultCountry,
|
|
@@ -96,6 +96,16 @@ var require_Phone_test = __commonJS({
|
|
|
96
96
|
fireEvent.click(getAllByRole("button")[0]);
|
|
97
97
|
expect(getAllByRole("option").length).toBe(12);
|
|
98
98
|
});
|
|
99
|
+
it(`Should call onblur event`, () => {
|
|
100
|
+
const USPhone = numbersFormats[1];
|
|
101
|
+
const onBlur = jest.fn();
|
|
102
|
+
const { getAllByRole } = render(
|
|
103
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Input.Phone, { onBlur, countries: [], value: USPhone.base }) })
|
|
104
|
+
);
|
|
105
|
+
const inputPhone = getAllByRole("textbox")[0];
|
|
106
|
+
fireEvent.blur(inputPhone);
|
|
107
|
+
expect(onBlur).toHaveBeenCalled();
|
|
108
|
+
});
|
|
99
109
|
it("should prefix the phone number with newly selected country dial code", () => __async(exports, null, function* () {
|
|
100
110
|
const { getByRole, getByText, getByDisplayValue } = render(
|
|
101
111
|
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Input.Phone, { defaultCountry: "us" }) })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.129.
|
|
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": "
|
|
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 |
|
|
1642
|
-
push(...items: (0 |
|
|
1643
|
-
concat(...items: ConcatArray<0 |
|
|
1644
|
-
concat(...items: (0 |
|
|
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 |
|
|
1647
|
-
shift(): 0 |
|
|
1648
|
-
slice(start?: number | undefined, end?: number | undefined): (0 |
|
|
1649
|
-
sort(compareFn?: ((a: 0 |
|
|
1650
|
-
splice(start: number, deleteCount?: number | undefined): (0 |
|
|
1651
|
-
splice(start: number, deleteCount: number, ...items: (0 |
|
|
1652
|
-
unshift(...items: (0 |
|
|
1653
|
-
indexOf(searchElement: 0 |
|
|
1654
|
-
lastIndexOf(searchElement: 0 |
|
|
1655
|
-
every<S extends 0 |
|
|
1656
|
-
every(predicate: (value: 0 |
|
|
1657
|
-
some(predicate: (value: 0 |
|
|
1658
|
-
forEach(callbackfn: (value: 0 |
|
|
1659
|
-
map<U>(callbackfn: (value: 0 |
|
|
1660
|
-
filter<S_1 extends 0 |
|
|
1661
|
-
filter(predicate: (value: 0 |
|
|
1662
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
1663
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
1664
|
-
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 |
|
|
1665
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
1666
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
1667
|
-
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 |
|
|
1668
|
-
find<S_2 extends 0 |
|
|
1669
|
-
find(predicate: (value: 0 |
|
|
1670
|
-
findIndex(predicate: (value: 0 |
|
|
1671
|
-
fill(value: 0 |
|
|
1672
|
-
copyWithin(target: number, start: number, end?: number | undefined): (0 |
|
|
1673
|
-
entries(): IterableIterator<[number, 0 |
|
|
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 |
|
|
1676
|
-
includes(searchElement: 0 |
|
|
1677
|
-
flatMap<U_3, This = undefined>(callback: (this: This, value: 0 |
|
|
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 |
|
|
1680
|
-
[Symbol.iterator](): IterableIterator<0 |
|
|
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 |
|
|
13
|
-
push(...items: (0 |
|
|
14
|
-
concat(...items: ConcatArray<0 |
|
|
15
|
-
concat(...items: (0 |
|
|
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 |
|
|
18
|
-
shift(): 0 |
|
|
19
|
-
slice(start?: number | undefined, end?: number | undefined): (0 |
|
|
20
|
-
sort(compareFn?: ((a: 0 |
|
|
21
|
-
splice(start: number, deleteCount?: number | undefined): (0 |
|
|
22
|
-
splice(start: number, deleteCount: number, ...items: (0 |
|
|
23
|
-
unshift(...items: (0 |
|
|
24
|
-
indexOf(searchElement: 0 |
|
|
25
|
-
lastIndexOf(searchElement: 0 |
|
|
26
|
-
every<S extends 0 |
|
|
27
|
-
every(predicate: (value: 0 |
|
|
28
|
-
some(predicate: (value: 0 |
|
|
29
|
-
forEach(callbackfn: (value: 0 |
|
|
30
|
-
map<U>(callbackfn: (value: 0 |
|
|
31
|
-
filter<S_1 extends 0 |
|
|
32
|
-
filter(predicate: (value: 0 |
|
|
33
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
34
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
35
|
-
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 |
|
|
36
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
37
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
38
|
-
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 |
|
|
39
|
-
find<S_2 extends 0 |
|
|
40
|
-
find(predicate: (value: 0 |
|
|
41
|
-
findIndex(predicate: (value: 0 |
|
|
42
|
-
fill(value: 0 |
|
|
43
|
-
copyWithin(target: number, start: number, end?: number | undefined): (0 |
|
|
44
|
-
entries(): IterableIterator<[number, 0 |
|
|
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 |
|
|
47
|
-
includes(searchElement: 0 |
|
|
48
|
-
flatMap<U_3, This = undefined>(callback: (this: This, value: 0 |
|
|
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 |
|
|
51
|
-
[Symbol.iterator](): IterableIterator<0 |
|
|
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;
|
package/typings/index.d.ts
CHANGED
|
@@ -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
|
|