@gympass/yoga 7.127.4 → 7.129.0
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/Button/web/Button.js +8 -5
- package/cjs/Heading/web/Heading.test.js +17 -0
- package/cjs/Heading/web/RightButton.js +26 -15
- package/cjs/Input/web/Phone.js +9 -2
- package/cjs/Input/web/Phone.test.js +15 -0
- package/esm/Button/web/Button.js +8 -5
- package/esm/Heading/web/Heading.test.js +17 -0
- package/esm/Heading/web/RightButton.js +26 -15
- package/esm/Input/web/Phone.js +9 -2
- package/esm/Input/web/Phone.test.js +15 -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/cjs/Button/web/Button.js
CHANGED
|
@@ -85,7 +85,8 @@ const Button = (0, import_react.forwardRef)(
|
|
|
85
85
|
small = false,
|
|
86
86
|
secondary = false,
|
|
87
87
|
icon: Icon,
|
|
88
|
-
isLoading = false
|
|
88
|
+
isLoading = false,
|
|
89
|
+
"aria-label": ariaLabel
|
|
89
90
|
} = _b, props = __objRest(_b, [
|
|
90
91
|
"children",
|
|
91
92
|
"onClick",
|
|
@@ -95,7 +96,8 @@ const Button = (0, import_react.forwardRef)(
|
|
|
95
96
|
"small",
|
|
96
97
|
"secondary",
|
|
97
98
|
"icon",
|
|
98
|
-
"isLoading"
|
|
99
|
+
"isLoading",
|
|
100
|
+
"aria-label"
|
|
99
101
|
]);
|
|
100
102
|
const finalProps = __spreadValues({}, props);
|
|
101
103
|
if (props.href) {
|
|
@@ -112,7 +114,8 @@ const Button = (0, import_react.forwardRef)(
|
|
|
112
114
|
onClick,
|
|
113
115
|
small,
|
|
114
116
|
secondary,
|
|
115
|
-
isLoading
|
|
117
|
+
isLoading,
|
|
118
|
+
"aria-label": ariaLabel
|
|
116
119
|
}, finalProps), {
|
|
117
120
|
children: [
|
|
118
121
|
Icon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { role: "img" }),
|
|
@@ -124,7 +127,6 @@ const Button = (0, import_react.forwardRef)(
|
|
|
124
127
|
}
|
|
125
128
|
);
|
|
126
129
|
Button.propTypes = {
|
|
127
|
-
ariaLabel: import_prop_types.string,
|
|
128
130
|
children: import_prop_types.node,
|
|
129
131
|
disabled: import_prop_types.bool,
|
|
130
132
|
full: import_prop_types.bool,
|
|
@@ -135,7 +137,8 @@ Button.propTypes = {
|
|
|
135
137
|
secondary: import_prop_types.bool,
|
|
136
138
|
/** an Icon from yoga-icons package */
|
|
137
139
|
icon: (0, import_prop_types.oneOfType)([import_prop_types.node, import_prop_types.func]),
|
|
138
|
-
href: import_prop_types.string
|
|
140
|
+
href: import_prop_types.string,
|
|
141
|
+
"aria-label": import_prop_types.string
|
|
139
142
|
};
|
|
140
143
|
Button.displayName = "Button";
|
|
141
144
|
var Button_default = Button;
|
|
@@ -73,6 +73,23 @@ describe("<Heading />", () => {
|
|
|
73
73
|
);
|
|
74
74
|
expect(container).toMatchSnapshot();
|
|
75
75
|
});
|
|
76
|
+
it("should have aria-label", () => {
|
|
77
|
+
const { getByLabelText } = (0, import_react2.render)(
|
|
78
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.Heading, { noPadding: true, children: [
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Title.default, { children: "Gympass" }),
|
|
80
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_BackButton.default, { onClick }),
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
82
|
+
import_RightButton.default,
|
|
83
|
+
{
|
|
84
|
+
icon: import_src.Upload2,
|
|
85
|
+
onClick,
|
|
86
|
+
"aria-label": "labelAriaText"
|
|
87
|
+
}
|
|
88
|
+
)
|
|
89
|
+
] }) })
|
|
90
|
+
);
|
|
91
|
+
expect(getByLabelText("labelAriaText")).toBeTruthy();
|
|
92
|
+
});
|
|
76
93
|
it("should override the background color", () => {
|
|
77
94
|
const { container } = (0, import_react2.render)(
|
|
78
95
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Heading, { bg: "yoga", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Title.default, { children: "Gympass" }) }) })
|
|
@@ -118,24 +118,35 @@ const ButtonIcon = (0, import_styled_components.default)(import_Button.default)`
|
|
|
118
118
|
}};
|
|
119
119
|
`;
|
|
120
120
|
const RightButton = (_a) => {
|
|
121
|
-
var _b = _a, { onClick, icon } = _b, props = __objRest(_b, ["onClick", "icon"]);
|
|
122
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
|
-
|
|
124
|
-
{
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
121
|
+
var _b = _a, { onClick, icon, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["onClick", "icon", "aria-label"]);
|
|
122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
|
+
ButtonIcon,
|
|
124
|
+
__spreadProps(__spreadValues({
|
|
125
|
+
onClick,
|
|
126
|
+
secondary: true,
|
|
127
|
+
padding: "xxxsmall",
|
|
128
|
+
"aria-label": ariaLabel
|
|
129
|
+
}, props), {
|
|
130
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
131
|
+
import_Box.default,
|
|
132
|
+
{
|
|
133
|
+
flex: 1,
|
|
134
|
+
display: "flex",
|
|
135
|
+
justifyContent: "center",
|
|
136
|
+
alignItems: "center",
|
|
137
|
+
borderRadius: "50%",
|
|
138
|
+
width: "xxlarge",
|
|
139
|
+
height: "xxlarge",
|
|
140
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Icon.default, { as: icon, role: "img" })
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
})
|
|
144
|
+
);
|
|
135
145
|
};
|
|
136
146
|
RightButton.propTypes = {
|
|
137
147
|
onClick: import_prop_types.default.func.isRequired,
|
|
138
|
-
icon: import_prop_types.default.elementType.isRequired
|
|
148
|
+
icon: import_prop_types.default.elementType.isRequired,
|
|
149
|
+
"aria-label": import_prop_types.default.string
|
|
139
150
|
};
|
|
140
151
|
RightButton.displayName = "Heading.RightButton";
|
|
141
152
|
var RightButton_default = RightButton;
|
package/cjs/Input/web/Phone.js
CHANGED
|
@@ -97,6 +97,7 @@ const Phone = import_react.default.forwardRef(
|
|
|
97
97
|
label = "",
|
|
98
98
|
placeholder = "+55 (11) 999999999",
|
|
99
99
|
value = "",
|
|
100
|
+
countries = phoneBaseSettings.onlyCountries,
|
|
100
101
|
onChange = noop,
|
|
101
102
|
cleanable = true
|
|
102
103
|
} = _b, rest = __objRest(_b, [
|
|
@@ -109,6 +110,7 @@ const Phone = import_react.default.forwardRef(
|
|
|
109
110
|
"label",
|
|
110
111
|
"placeholder",
|
|
111
112
|
"value",
|
|
113
|
+
"countries",
|
|
112
114
|
"onChange",
|
|
113
115
|
"cleanable"
|
|
114
116
|
]);
|
|
@@ -120,6 +122,9 @@ const Phone = import_react.default.forwardRef(
|
|
|
120
122
|
currentCountry.current = countryCode;
|
|
121
123
|
}
|
|
122
124
|
}, []);
|
|
125
|
+
const availableCountries = {
|
|
126
|
+
onlyCountries: (countries == null ? void 0 : countries.length) > 0 ? countries : phoneBaseSettings.onlyCountries
|
|
127
|
+
};
|
|
123
128
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
124
129
|
import_Input.default,
|
|
125
130
|
__spreadProps(__spreadValues({}, __spreadValues({
|
|
@@ -136,7 +141,7 @@ const Phone = import_react.default.forwardRef(
|
|
|
136
141
|
onClean: (phoneNumber) => onChange(phoneNumber),
|
|
137
142
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(S.Container, { error, disabled, full, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
138
143
|
import_react_phone_input_2.default,
|
|
139
|
-
__spreadProps(__spreadValues({},
|
|
144
|
+
__spreadProps(__spreadValues({}, availableCountries), {
|
|
140
145
|
ref: (phoneRef) => {
|
|
141
146
|
inputRef.current = phoneRef == null ? void 0 : phoneRef.numberInputRef;
|
|
142
147
|
},
|
|
@@ -180,6 +185,8 @@ Phone.propTypes = {
|
|
|
180
185
|
/** callback invoked when value changes, either by typing of selecting a country */
|
|
181
186
|
onChange: import_prop_types.func,
|
|
182
187
|
/** placeholder to show when the input is cleared */
|
|
183
|
-
placeholder: import_prop_types.string
|
|
188
|
+
placeholder: import_prop_types.string,
|
|
189
|
+
/** countries for mask field and dropdown, make sure to use ISO 3166-1 alpha-2 lowercase */
|
|
190
|
+
countries: import_prop_types.default.arrayOf(import_prop_types.string)
|
|
184
191
|
};
|
|
185
192
|
var Phone_default = Phone;
|
|
@@ -98,6 +98,21 @@ describe("<Input.Phone />", () => {
|
|
|
98
98
|
expect(getByDisplayValue(spec.expected)).toBeInTheDocument();
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
|
+
it(`Should only format and show countries numbers when props is given`, () => {
|
|
102
|
+
const USPhone = numbersFormats[1];
|
|
103
|
+
const { queryByDisplayValue } = (0, import_react2.render)(
|
|
104
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Input.Phone, { countries: ["br", "pt"], value: USPhone.base }) })
|
|
105
|
+
);
|
|
106
|
+
expect(queryByDisplayValue(USPhone.expected)).not.toBeInTheDocument();
|
|
107
|
+
});
|
|
108
|
+
it(`Should return all countries validation if countries equals to empty array`, () => {
|
|
109
|
+
const USPhone = numbersFormats[1];
|
|
110
|
+
const { getAllByRole } = (0, import_react2.render)(
|
|
111
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Input.Phone, { countries: [], value: USPhone.base }) })
|
|
112
|
+
);
|
|
113
|
+
import_react2.fireEvent.click(getAllByRole("button")[0]);
|
|
114
|
+
expect(getAllByRole("option").length).toBe(12);
|
|
115
|
+
});
|
|
101
116
|
it("should prefix the phone number with newly selected country dial code", () => __async(exports, null, function* () {
|
|
102
117
|
const { getByRole, getByText, getByDisplayValue } = (0, import_react2.render)(
|
|
103
118
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Input.Phone, { defaultCountry: "us" }) })
|
package/esm/Button/web/Button.js
CHANGED
|
@@ -54,7 +54,8 @@ const Button = forwardRef(
|
|
|
54
54
|
small = false,
|
|
55
55
|
secondary = false,
|
|
56
56
|
icon: Icon,
|
|
57
|
-
isLoading = false
|
|
57
|
+
isLoading = false,
|
|
58
|
+
"aria-label": ariaLabel
|
|
58
59
|
} = _b, props = __objRest(_b, [
|
|
59
60
|
"children",
|
|
60
61
|
"onClick",
|
|
@@ -64,7 +65,8 @@ const Button = forwardRef(
|
|
|
64
65
|
"small",
|
|
65
66
|
"secondary",
|
|
66
67
|
"icon",
|
|
67
|
-
"isLoading"
|
|
68
|
+
"isLoading",
|
|
69
|
+
"aria-label"
|
|
68
70
|
]);
|
|
69
71
|
const finalProps = __spreadValues({}, props);
|
|
70
72
|
if (props.href) {
|
|
@@ -81,7 +83,8 @@ const Button = forwardRef(
|
|
|
81
83
|
onClick,
|
|
82
84
|
small,
|
|
83
85
|
secondary,
|
|
84
|
-
isLoading
|
|
86
|
+
isLoading,
|
|
87
|
+
"aria-label": ariaLabel
|
|
85
88
|
}, finalProps), {
|
|
86
89
|
children: [
|
|
87
90
|
Icon && /* @__PURE__ */ jsx(Icon, { role: "img" }),
|
|
@@ -93,7 +96,6 @@ const Button = forwardRef(
|
|
|
93
96
|
}
|
|
94
97
|
);
|
|
95
98
|
Button.propTypes = {
|
|
96
|
-
ariaLabel: string,
|
|
97
99
|
children: node,
|
|
98
100
|
disabled: bool,
|
|
99
101
|
full: bool,
|
|
@@ -104,7 +106,8 @@ Button.propTypes = {
|
|
|
104
106
|
secondary: bool,
|
|
105
107
|
/** an Icon from yoga-icons package */
|
|
106
108
|
icon: oneOfType([node, func]),
|
|
107
|
-
href: string
|
|
109
|
+
href: string,
|
|
110
|
+
"aria-label": string
|
|
108
111
|
};
|
|
109
112
|
Button.displayName = "Button";
|
|
110
113
|
var Button_default = Button;
|
|
@@ -50,6 +50,23 @@ describe("<Heading />", () => {
|
|
|
50
50
|
);
|
|
51
51
|
expect(container).toMatchSnapshot();
|
|
52
52
|
});
|
|
53
|
+
it("should have aria-label", () => {
|
|
54
|
+
const { getByLabelText } = render(
|
|
55
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsxs(Heading, { noPadding: true, children: [
|
|
56
|
+
/* @__PURE__ */ jsx(Title, { children: "Gympass" }),
|
|
57
|
+
/* @__PURE__ */ jsx(BackButton, { onClick }),
|
|
58
|
+
/* @__PURE__ */ jsx(
|
|
59
|
+
RightButton,
|
|
60
|
+
{
|
|
61
|
+
icon: Upload2,
|
|
62
|
+
onClick,
|
|
63
|
+
"aria-label": "labelAriaText"
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] }) })
|
|
67
|
+
);
|
|
68
|
+
expect(getByLabelText("labelAriaText")).toBeTruthy();
|
|
69
|
+
});
|
|
53
70
|
it("should override the background color", () => {
|
|
54
71
|
const { container } = render(
|
|
55
72
|
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Heading, { bg: "yoga", children: /* @__PURE__ */ jsx(Title, { children: "Gympass" }) }) })
|
|
@@ -87,24 +87,35 @@ const ButtonIcon = styled(Button)`
|
|
|
87
87
|
}};
|
|
88
88
|
`;
|
|
89
89
|
const RightButton = (_a) => {
|
|
90
|
-
var _b = _a, { onClick, icon } = _b, props = __objRest(_b, ["onClick", "icon"]);
|
|
91
|
-
return /* @__PURE__ */ jsx(
|
|
92
|
-
|
|
93
|
-
{
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
90
|
+
var _b = _a, { onClick, icon, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["onClick", "icon", "aria-label"]);
|
|
91
|
+
return /* @__PURE__ */ jsx(
|
|
92
|
+
ButtonIcon,
|
|
93
|
+
__spreadProps(__spreadValues({
|
|
94
|
+
onClick,
|
|
95
|
+
secondary: true,
|
|
96
|
+
padding: "xxxsmall",
|
|
97
|
+
"aria-label": ariaLabel
|
|
98
|
+
}, props), {
|
|
99
|
+
children: /* @__PURE__ */ jsx(
|
|
100
|
+
Box,
|
|
101
|
+
{
|
|
102
|
+
flex: 1,
|
|
103
|
+
display: "flex",
|
|
104
|
+
justifyContent: "center",
|
|
105
|
+
alignItems: "center",
|
|
106
|
+
borderRadius: "50%",
|
|
107
|
+
width: "xxlarge",
|
|
108
|
+
height: "xxlarge",
|
|
109
|
+
children: /* @__PURE__ */ jsx(Icon, { as: icon, role: "img" })
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
})
|
|
113
|
+
);
|
|
104
114
|
};
|
|
105
115
|
RightButton.propTypes = {
|
|
106
116
|
onClick: PropTypes.func.isRequired,
|
|
107
|
-
icon: PropTypes.elementType.isRequired
|
|
117
|
+
icon: PropTypes.elementType.isRequired,
|
|
118
|
+
"aria-label": PropTypes.string
|
|
108
119
|
};
|
|
109
120
|
RightButton.displayName = "Heading.RightButton";
|
|
110
121
|
var RightButton_default = RightButton;
|
package/esm/Input/web/Phone.js
CHANGED
|
@@ -66,6 +66,7 @@ const Phone = React.forwardRef(
|
|
|
66
66
|
label = "",
|
|
67
67
|
placeholder = "+55 (11) 999999999",
|
|
68
68
|
value = "",
|
|
69
|
+
countries = phoneBaseSettings.onlyCountries,
|
|
69
70
|
onChange = noop,
|
|
70
71
|
cleanable = true
|
|
71
72
|
} = _b, rest = __objRest(_b, [
|
|
@@ -78,6 +79,7 @@ const Phone = React.forwardRef(
|
|
|
78
79
|
"label",
|
|
79
80
|
"placeholder",
|
|
80
81
|
"value",
|
|
82
|
+
"countries",
|
|
81
83
|
"onChange",
|
|
82
84
|
"cleanable"
|
|
83
85
|
]);
|
|
@@ -89,6 +91,9 @@ const Phone = React.forwardRef(
|
|
|
89
91
|
currentCountry.current = countryCode;
|
|
90
92
|
}
|
|
91
93
|
}, []);
|
|
94
|
+
const availableCountries = {
|
|
95
|
+
onlyCountries: (countries == null ? void 0 : countries.length) > 0 ? countries : phoneBaseSettings.onlyCountries
|
|
96
|
+
};
|
|
92
97
|
return /* @__PURE__ */ jsx(
|
|
93
98
|
Input,
|
|
94
99
|
__spreadProps(__spreadValues({}, __spreadValues({
|
|
@@ -105,7 +110,7 @@ const Phone = React.forwardRef(
|
|
|
105
110
|
onClean: (phoneNumber) => onChange(phoneNumber),
|
|
106
111
|
children: /* @__PURE__ */ jsx(S.Container, { error, disabled, full, children: /* @__PURE__ */ jsx(
|
|
107
112
|
BasePhoneInput,
|
|
108
|
-
__spreadProps(__spreadValues({},
|
|
113
|
+
__spreadProps(__spreadValues({}, availableCountries), {
|
|
109
114
|
ref: (phoneRef) => {
|
|
110
115
|
inputRef.current = phoneRef == null ? void 0 : phoneRef.numberInputRef;
|
|
111
116
|
},
|
|
@@ -149,7 +154,9 @@ Phone.propTypes = {
|
|
|
149
154
|
/** callback invoked when value changes, either by typing of selecting a country */
|
|
150
155
|
onChange: func,
|
|
151
156
|
/** placeholder to show when the input is cleared */
|
|
152
|
-
placeholder: string
|
|
157
|
+
placeholder: string,
|
|
158
|
+
/** countries for mask field and dropdown, make sure to use ISO 3166-1 alpha-2 lowercase */
|
|
159
|
+
countries: PropTypes.arrayOf(string)
|
|
153
160
|
};
|
|
154
161
|
var Phone_default = Phone;
|
|
155
162
|
export {
|
|
@@ -81,6 +81,21 @@ var require_Phone_test = __commonJS({
|
|
|
81
81
|
expect(getByDisplayValue(spec.expected)).toBeInTheDocument();
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
|
+
it(`Should only format and show countries numbers when props is given`, () => {
|
|
85
|
+
const USPhone = numbersFormats[1];
|
|
86
|
+
const { queryByDisplayValue } = render(
|
|
87
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Input.Phone, { countries: ["br", "pt"], value: USPhone.base }) })
|
|
88
|
+
);
|
|
89
|
+
expect(queryByDisplayValue(USPhone.expected)).not.toBeInTheDocument();
|
|
90
|
+
});
|
|
91
|
+
it(`Should return all countries validation if countries equals to empty array`, () => {
|
|
92
|
+
const USPhone = numbersFormats[1];
|
|
93
|
+
const { getAllByRole } = render(
|
|
94
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Input.Phone, { countries: [], value: USPhone.base }) })
|
|
95
|
+
);
|
|
96
|
+
fireEvent.click(getAllByRole("button")[0]);
|
|
97
|
+
expect(getAllByRole("option").length).toBe(12);
|
|
98
|
+
});
|
|
84
99
|
it("should prefix the phone number with newly selected country dial code", () => __async(exports, null, function* () {
|
|
85
100
|
const { getByRole, getByText, getByDisplayValue } = render(
|
|
86
101
|
/* @__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.
|
|
3
|
+
"version": "7.129.0",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"react-native": "0.72.3",
|
|
59
59
|
"styled-components": "^4.4.0"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "a21e35bc92a56a50e7828e704d7348651e72765e",
|
|
62
62
|
"module": "./esm",
|
|
63
63
|
"private": false,
|
|
64
64
|
"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;
|