@gympass/yoga 7.122.0 → 7.124.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/Input/web/Input.js +8 -2
- package/cjs/Input/web/Input.test.js +19 -1
- package/cjs/Snackbar/web/Snackbar.js +41 -10
- package/cjs/Snackbar/web/Snackbar.test.js +1 -1
- package/esm/Input/web/Input.js +8 -2
- package/esm/Input/web/Input.test.js +19 -1
- package/esm/Snackbar/web/Snackbar.js +41 -10
- package/esm/Snackbar/web/Snackbar.test.js +1 -1
- 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/Input/web/Input.js
CHANGED
|
@@ -143,6 +143,7 @@ const Input = import_react.default.forwardRef(
|
|
|
143
143
|
full,
|
|
144
144
|
helper,
|
|
145
145
|
label,
|
|
146
|
+
ariaLabel,
|
|
146
147
|
maxLength,
|
|
147
148
|
readOnly,
|
|
148
149
|
style,
|
|
@@ -163,6 +164,7 @@ const Input = import_react.default.forwardRef(
|
|
|
163
164
|
"full",
|
|
164
165
|
"helper",
|
|
165
166
|
"label",
|
|
167
|
+
"ariaLabel",
|
|
166
168
|
"maxLength",
|
|
167
169
|
"readOnly",
|
|
168
170
|
"style",
|
|
@@ -188,8 +190,9 @@ const Input = import_react.default.forwardRef(
|
|
|
188
190
|
const helperA11yId = includeAriaAttributes && a11yId && `${a11yId}-helper`;
|
|
189
191
|
const labelA11yId = includeAriaAttributes && a11yId && `${a11yId}-label`;
|
|
190
192
|
let a11yFieldProps;
|
|
193
|
+
const labelAria = ariaLabel || label;
|
|
191
194
|
if (includeAriaAttributes) {
|
|
192
|
-
a11yFieldProps = a11yId ? __spreadValues(__spreadValues({}, hasHelper && { "aria-describedby": helperA11yId }), label && { "aria-labelledby": labelA11yId }) : __spreadValues({},
|
|
195
|
+
a11yFieldProps = a11yId ? __spreadValues(__spreadValues({}, hasHelper && { "aria-describedby": helperA11yId }), label && { "aria-labelledby": labelA11yId }) : __spreadValues({}, labelAria && { "aria-label": labelAria });
|
|
193
196
|
a11yFieldProps["aria-invalid"] = !!error;
|
|
194
197
|
} else {
|
|
195
198
|
a11yFieldProps = {};
|
|
@@ -225,6 +228,7 @@ const Input = import_react.default.forwardRef(
|
|
|
225
228
|
maxLength
|
|
226
229
|
}), {
|
|
227
230
|
ref: inputRef,
|
|
231
|
+
"data-testid": "input",
|
|
228
232
|
value,
|
|
229
233
|
onChange
|
|
230
234
|
}), a11yFieldProps), {
|
|
@@ -296,6 +300,7 @@ Input.propTypes = {
|
|
|
296
300
|
/** a helper text to be displayed below field */
|
|
297
301
|
helper: import_prop_types.string,
|
|
298
302
|
label: import_prop_types.string,
|
|
303
|
+
ariaLabel: import_prop_types.string,
|
|
299
304
|
/** maximum length (number of characters) of value */
|
|
300
305
|
maxLength: import_prop_types.number,
|
|
301
306
|
readOnly: import_prop_types.bool,
|
|
@@ -325,7 +330,8 @@ Input.defaultProps = {
|
|
|
325
330
|
error: void 0,
|
|
326
331
|
full: false,
|
|
327
332
|
helper: void 0,
|
|
328
|
-
label:
|
|
333
|
+
label: void 0,
|
|
334
|
+
ariaLabel: void 0,
|
|
329
335
|
maxLength: void 0,
|
|
330
336
|
readOnly: false,
|
|
331
337
|
style: void 0,
|
|
@@ -140,7 +140,7 @@ describe("<Input />", () => {
|
|
|
140
140
|
});
|
|
141
141
|
it("should test if clean button is present", () => {
|
|
142
142
|
const { rerender } = (0, import_react2.render)(
|
|
143
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Input, { label: "Input" }) })
|
|
143
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Input, { label: "Input", ariaLabel: "valor aria label" }) })
|
|
144
144
|
);
|
|
145
145
|
expect(import_react2.screen.queryByRole("button")).toBeNull();
|
|
146
146
|
rerender(
|
|
@@ -148,5 +148,23 @@ describe("<Input />", () => {
|
|
|
148
148
|
);
|
|
149
149
|
expect(import_react2.screen.queryByRole("button")).not.toBeNull();
|
|
150
150
|
});
|
|
151
|
+
it("should have aria-label", () => {
|
|
152
|
+
const value = "aria label value";
|
|
153
|
+
const { getByTestId } = (0, import_react2.render)(
|
|
154
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Input, { label: "Input", value: "foo", ariaLabel: value }) })
|
|
155
|
+
);
|
|
156
|
+
const inputElement = getByTestId("input");
|
|
157
|
+
expect(inputElement).toBeInTheDocument();
|
|
158
|
+
expect(inputElement).toHaveAttribute("aria-label", value);
|
|
159
|
+
});
|
|
160
|
+
it("should have label value", () => {
|
|
161
|
+
const value = "label value";
|
|
162
|
+
const { getByTestId } = (0, import_react2.render)(
|
|
163
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Input, { label: value, value: "foo" }) })
|
|
164
|
+
);
|
|
165
|
+
const inputElement = getByTestId("input");
|
|
166
|
+
expect(inputElement).toBeInTheDocument();
|
|
167
|
+
expect(inputElement).toHaveAttribute("aria-label", value);
|
|
168
|
+
});
|
|
151
169
|
});
|
|
152
170
|
});
|
|
@@ -84,6 +84,12 @@ const IconButtonWrapper = import_styled_components.default.div`
|
|
|
84
84
|
display: flex;
|
|
85
85
|
align-items: center;
|
|
86
86
|
|
|
87
|
+
background: none;
|
|
88
|
+
color: inherit;
|
|
89
|
+
border: none;
|
|
90
|
+
padding: 0;
|
|
91
|
+
outline: inherit;
|
|
92
|
+
|
|
87
93
|
cursor: pointer;
|
|
88
94
|
|
|
89
95
|
&:hover {
|
|
@@ -168,6 +174,7 @@ const Snackbar = import_react.default.forwardRef(
|
|
|
168
174
|
onAction,
|
|
169
175
|
onClose,
|
|
170
176
|
hideCloseButton,
|
|
177
|
+
ariaLabelClose,
|
|
171
178
|
theme: {
|
|
172
179
|
yoga: {
|
|
173
180
|
components: { snackbar }
|
|
@@ -183,6 +190,7 @@ const Snackbar = import_react.default.forwardRef(
|
|
|
183
190
|
"onAction",
|
|
184
191
|
"onClose",
|
|
185
192
|
"hideCloseButton",
|
|
193
|
+
"ariaLabelClose",
|
|
186
194
|
"theme"
|
|
187
195
|
]);
|
|
188
196
|
const timeoutRef = (0, import_react.useRef)();
|
|
@@ -204,19 +212,39 @@ const Snackbar = import_react.default.forwardRef(
|
|
|
204
212
|
ref
|
|
205
213
|
}, props), {
|
|
206
214
|
children: [
|
|
207
|
-
!hideIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
208
|
-
|
|
215
|
+
!hideIcon && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
216
|
+
import_Box.default,
|
|
209
217
|
{
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
218
|
+
display: "flex",
|
|
219
|
+
alignItems: "center",
|
|
220
|
+
mr: "small",
|
|
221
|
+
role: "img",
|
|
222
|
+
"data-testid": "img",
|
|
223
|
+
"aria-hidden": true,
|
|
224
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
225
|
+
import_Icon.default,
|
|
226
|
+
{
|
|
227
|
+
as: snackbar.variant.icon[variant],
|
|
228
|
+
fill: "secondary",
|
|
229
|
+
width: "large",
|
|
230
|
+
height: "large"
|
|
231
|
+
}
|
|
232
|
+
)
|
|
214
233
|
}
|
|
215
|
-
)
|
|
234
|
+
),
|
|
216
235
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Text.default.Body2, { flex: 1, mr: "small", numberOfLines: 2, children: message }),
|
|
217
236
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ActionsWrapper, { children: [
|
|
218
237
|
onAction && actionLabel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Button.default.Link, { onClick: onAction, secondary: true, small: true, children: actionLabel }),
|
|
219
|
-
!hideCloseButton && onClose && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
238
|
+
!hideCloseButton && onClose && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
239
|
+
IconButtonWrapper,
|
|
240
|
+
{
|
|
241
|
+
role: "button",
|
|
242
|
+
onClick: onClose,
|
|
243
|
+
"aria-label": ariaLabelClose,
|
|
244
|
+
as: "button",
|
|
245
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Icon.default, { as: import_yoga_icons.Close, fill: "secondary", size: "medium" })
|
|
246
|
+
}
|
|
247
|
+
)
|
|
220
248
|
] })
|
|
221
249
|
]
|
|
222
250
|
})
|
|
@@ -241,7 +269,9 @@ Snackbar.propTypes = {
|
|
|
241
269
|
/** The style variant, it may be "success", "failure" or "info". */
|
|
242
270
|
variant: (0, import_prop_types.oneOf)(["success", "failure", "info"]),
|
|
243
271
|
/** Hides the close button. */
|
|
244
|
-
hideCloseButton: import_prop_types.bool
|
|
272
|
+
hideCloseButton: import_prop_types.bool,
|
|
273
|
+
/** Custom aria label for close button. */
|
|
274
|
+
ariaLabelClose: import_prop_types.string
|
|
245
275
|
};
|
|
246
276
|
Snackbar.defaultProps = {
|
|
247
277
|
open: false,
|
|
@@ -250,6 +280,7 @@ Snackbar.defaultProps = {
|
|
|
250
280
|
hideIcon: false,
|
|
251
281
|
onAction: void 0,
|
|
252
282
|
variant: "success",
|
|
253
|
-
hideCloseButton: false
|
|
283
|
+
hideCloseButton: false,
|
|
284
|
+
ariaLabelClose: void 0
|
|
254
285
|
};
|
|
255
286
|
var Snackbar_default = (0, import_react.memo)((0, import_styled_components.withTheme)(Snackbar));
|
|
@@ -58,7 +58,7 @@ describe("<Snackbar />", () => {
|
|
|
58
58
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.Snackbar, { open: true, message: "Make wellbeing universal", onClose: jest.fn() }) })
|
|
59
59
|
);
|
|
60
60
|
import_react2.screen.getByRole("alert");
|
|
61
|
-
import_react2.screen.
|
|
61
|
+
import_react2.screen.getByTestId("img");
|
|
62
62
|
import_react2.screen.getByLabelText("success");
|
|
63
63
|
import_react2.screen.getByText("Make wellbeing universal");
|
|
64
64
|
});
|
package/esm/Input/web/Input.js
CHANGED
|
@@ -121,6 +121,7 @@ const Input = React.forwardRef(
|
|
|
121
121
|
full,
|
|
122
122
|
helper,
|
|
123
123
|
label,
|
|
124
|
+
ariaLabel,
|
|
124
125
|
maxLength,
|
|
125
126
|
readOnly,
|
|
126
127
|
style,
|
|
@@ -141,6 +142,7 @@ const Input = React.forwardRef(
|
|
|
141
142
|
"full",
|
|
142
143
|
"helper",
|
|
143
144
|
"label",
|
|
145
|
+
"ariaLabel",
|
|
144
146
|
"maxLength",
|
|
145
147
|
"readOnly",
|
|
146
148
|
"style",
|
|
@@ -166,8 +168,9 @@ const Input = React.forwardRef(
|
|
|
166
168
|
const helperA11yId = includeAriaAttributes && a11yId && `${a11yId}-helper`;
|
|
167
169
|
const labelA11yId = includeAriaAttributes && a11yId && `${a11yId}-label`;
|
|
168
170
|
let a11yFieldProps;
|
|
171
|
+
const labelAria = ariaLabel || label;
|
|
169
172
|
if (includeAriaAttributes) {
|
|
170
|
-
a11yFieldProps = a11yId ? __spreadValues(__spreadValues({}, hasHelper && { "aria-describedby": helperA11yId }), label && { "aria-labelledby": labelA11yId }) : __spreadValues({},
|
|
173
|
+
a11yFieldProps = a11yId ? __spreadValues(__spreadValues({}, hasHelper && { "aria-describedby": helperA11yId }), label && { "aria-labelledby": labelA11yId }) : __spreadValues({}, labelAria && { "aria-label": labelAria });
|
|
171
174
|
a11yFieldProps["aria-invalid"] = !!error;
|
|
172
175
|
} else {
|
|
173
176
|
a11yFieldProps = {};
|
|
@@ -203,6 +206,7 @@ const Input = React.forwardRef(
|
|
|
203
206
|
maxLength
|
|
204
207
|
}), {
|
|
205
208
|
ref: inputRef,
|
|
209
|
+
"data-testid": "input",
|
|
206
210
|
value,
|
|
207
211
|
onChange
|
|
208
212
|
}), a11yFieldProps), {
|
|
@@ -274,6 +278,7 @@ Input.propTypes = {
|
|
|
274
278
|
/** a helper text to be displayed below field */
|
|
275
279
|
helper: string,
|
|
276
280
|
label: string,
|
|
281
|
+
ariaLabel: string,
|
|
277
282
|
/** maximum length (number of characters) of value */
|
|
278
283
|
maxLength: number,
|
|
279
284
|
readOnly: bool,
|
|
@@ -303,7 +308,8 @@ Input.defaultProps = {
|
|
|
303
308
|
error: void 0,
|
|
304
309
|
full: false,
|
|
305
310
|
helper: void 0,
|
|
306
|
-
label:
|
|
311
|
+
label: void 0,
|
|
312
|
+
ariaLabel: void 0,
|
|
307
313
|
maxLength: void 0,
|
|
308
314
|
readOnly: false,
|
|
309
315
|
style: void 0,
|
|
@@ -117,7 +117,7 @@ describe("<Input />", () => {
|
|
|
117
117
|
});
|
|
118
118
|
it("should test if clean button is present", () => {
|
|
119
119
|
const { rerender } = render(
|
|
120
|
-
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Input, { label: "Input" }) })
|
|
120
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Input, { label: "Input", ariaLabel: "valor aria label" }) })
|
|
121
121
|
);
|
|
122
122
|
expect(screen.queryByRole("button")).toBeNull();
|
|
123
123
|
rerender(
|
|
@@ -125,5 +125,23 @@ describe("<Input />", () => {
|
|
|
125
125
|
);
|
|
126
126
|
expect(screen.queryByRole("button")).not.toBeNull();
|
|
127
127
|
});
|
|
128
|
+
it("should have aria-label", () => {
|
|
129
|
+
const value = "aria label value";
|
|
130
|
+
const { getByTestId } = render(
|
|
131
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Input, { label: "Input", value: "foo", ariaLabel: value }) })
|
|
132
|
+
);
|
|
133
|
+
const inputElement = getByTestId("input");
|
|
134
|
+
expect(inputElement).toBeInTheDocument();
|
|
135
|
+
expect(inputElement).toHaveAttribute("aria-label", value);
|
|
136
|
+
});
|
|
137
|
+
it("should have label value", () => {
|
|
138
|
+
const value = "label value";
|
|
139
|
+
const { getByTestId } = render(
|
|
140
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Input, { label: value, value: "foo" }) })
|
|
141
|
+
);
|
|
142
|
+
const inputElement = getByTestId("input");
|
|
143
|
+
expect(inputElement).toBeInTheDocument();
|
|
144
|
+
expect(inputElement).toHaveAttribute("aria-label", value);
|
|
145
|
+
});
|
|
128
146
|
});
|
|
129
147
|
});
|
|
@@ -53,6 +53,12 @@ const IconButtonWrapper = styled.div`
|
|
|
53
53
|
display: flex;
|
|
54
54
|
align-items: center;
|
|
55
55
|
|
|
56
|
+
background: none;
|
|
57
|
+
color: inherit;
|
|
58
|
+
border: none;
|
|
59
|
+
padding: 0;
|
|
60
|
+
outline: inherit;
|
|
61
|
+
|
|
56
62
|
cursor: pointer;
|
|
57
63
|
|
|
58
64
|
&:hover {
|
|
@@ -137,6 +143,7 @@ const Snackbar = React.forwardRef(
|
|
|
137
143
|
onAction,
|
|
138
144
|
onClose,
|
|
139
145
|
hideCloseButton,
|
|
146
|
+
ariaLabelClose,
|
|
140
147
|
theme: {
|
|
141
148
|
yoga: {
|
|
142
149
|
components: { snackbar }
|
|
@@ -152,6 +159,7 @@ const Snackbar = React.forwardRef(
|
|
|
152
159
|
"onAction",
|
|
153
160
|
"onClose",
|
|
154
161
|
"hideCloseButton",
|
|
162
|
+
"ariaLabelClose",
|
|
155
163
|
"theme"
|
|
156
164
|
]);
|
|
157
165
|
const timeoutRef = useRef();
|
|
@@ -173,19 +181,39 @@ const Snackbar = React.forwardRef(
|
|
|
173
181
|
ref
|
|
174
182
|
}, props), {
|
|
175
183
|
children: [
|
|
176
|
-
!hideIcon && /* @__PURE__ */ jsx(
|
|
177
|
-
|
|
184
|
+
!hideIcon && /* @__PURE__ */ jsx(
|
|
185
|
+
Box,
|
|
178
186
|
{
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
187
|
+
display: "flex",
|
|
188
|
+
alignItems: "center",
|
|
189
|
+
mr: "small",
|
|
190
|
+
role: "img",
|
|
191
|
+
"data-testid": "img",
|
|
192
|
+
"aria-hidden": true,
|
|
193
|
+
children: /* @__PURE__ */ jsx(
|
|
194
|
+
Icon,
|
|
195
|
+
{
|
|
196
|
+
as: snackbar.variant.icon[variant],
|
|
197
|
+
fill: "secondary",
|
|
198
|
+
width: "large",
|
|
199
|
+
height: "large"
|
|
200
|
+
}
|
|
201
|
+
)
|
|
183
202
|
}
|
|
184
|
-
)
|
|
203
|
+
),
|
|
185
204
|
/* @__PURE__ */ jsx(Text.Body2, { flex: 1, mr: "small", numberOfLines: 2, children: message }),
|
|
186
205
|
/* @__PURE__ */ jsxs(ActionsWrapper, { children: [
|
|
187
206
|
onAction && actionLabel && /* @__PURE__ */ jsx(Button.Link, { onClick: onAction, secondary: true, small: true, children: actionLabel }),
|
|
188
|
-
!hideCloseButton && onClose && /* @__PURE__ */ jsx(
|
|
207
|
+
!hideCloseButton && onClose && /* @__PURE__ */ jsx(
|
|
208
|
+
IconButtonWrapper,
|
|
209
|
+
{
|
|
210
|
+
role: "button",
|
|
211
|
+
onClick: onClose,
|
|
212
|
+
"aria-label": ariaLabelClose,
|
|
213
|
+
as: "button",
|
|
214
|
+
children: /* @__PURE__ */ jsx(Icon, { as: Close, fill: "secondary", size: "medium" })
|
|
215
|
+
}
|
|
216
|
+
)
|
|
189
217
|
] })
|
|
190
218
|
]
|
|
191
219
|
})
|
|
@@ -210,7 +238,9 @@ Snackbar.propTypes = {
|
|
|
210
238
|
/** The style variant, it may be "success", "failure" or "info". */
|
|
211
239
|
variant: oneOf(["success", "failure", "info"]),
|
|
212
240
|
/** Hides the close button. */
|
|
213
|
-
hideCloseButton: bool
|
|
241
|
+
hideCloseButton: bool,
|
|
242
|
+
/** Custom aria label for close button. */
|
|
243
|
+
ariaLabelClose: string
|
|
214
244
|
};
|
|
215
245
|
Snackbar.defaultProps = {
|
|
216
246
|
open: false,
|
|
@@ -219,7 +249,8 @@ Snackbar.defaultProps = {
|
|
|
219
249
|
hideIcon: false,
|
|
220
250
|
onAction: void 0,
|
|
221
251
|
variant: "success",
|
|
222
|
-
hideCloseButton: false
|
|
252
|
+
hideCloseButton: false,
|
|
253
|
+
ariaLabelClose: void 0
|
|
223
254
|
};
|
|
224
255
|
var Snackbar_default = memo(withTheme(Snackbar));
|
|
225
256
|
export {
|
|
@@ -41,7 +41,7 @@ var require_Snackbar_test = __commonJS({
|
|
|
41
41
|
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Snackbar, { open: true, message: "Make wellbeing universal", onClose: jest.fn() }) })
|
|
42
42
|
);
|
|
43
43
|
screen.getByRole("alert");
|
|
44
|
-
screen.
|
|
44
|
+
screen.getByTestId("img");
|
|
45
45
|
screen.getByLabelText("success");
|
|
46
46
|
screen.getByText("Make wellbeing universal");
|
|
47
47
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.124.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": "19f2cf453d3e3925bbd6a961163da89cda3fedeb",
|
|
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 | 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)[];
|
|
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 | 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]>;
|
|
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 | 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[];
|
|
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 | 2 | 1 | undefined;
|
|
1680
|
+
[Symbol.iterator](): IterableIterator<0 | 2 | 1>;
|
|
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 | 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)[];
|
|
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 | 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]>;
|
|
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 | 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[];
|
|
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 | 2 | 1 | undefined;
|
|
51
|
+
[Symbol.iterator](): IterableIterator<0 | 2 | 1>;
|
|
52
52
|
[Symbol.unscopables](): {
|
|
53
53
|
copyWithin: boolean;
|
|
54
54
|
entries: boolean;
|