@gympass/yoga 7.123.0 → 7.125.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/Checkbox/web/Checkbox.js +12 -4
- package/cjs/Snackbar/web/Snackbar.js +41 -10
- package/cjs/Snackbar/web/Snackbar.test.js +1 -1
- package/esm/Checkbox/web/Checkbox.js +13 -5
- 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
|
@@ -284,6 +284,7 @@ const Checkbox = (_a) => {
|
|
|
284
284
|
className,
|
|
285
285
|
inverted,
|
|
286
286
|
indeterminate,
|
|
287
|
+
ariaLabel,
|
|
287
288
|
theme: {
|
|
288
289
|
yoga: {
|
|
289
290
|
components: { checkbox }
|
|
@@ -300,9 +301,12 @@ const Checkbox = (_a) => {
|
|
|
300
301
|
"className",
|
|
301
302
|
"inverted",
|
|
302
303
|
"indeterminate",
|
|
304
|
+
"ariaLabel",
|
|
303
305
|
"theme"
|
|
304
306
|
]);
|
|
305
307
|
const inputRef = (0, import_react.useRef)(null);
|
|
308
|
+
const id = (0, import_react.useId)();
|
|
309
|
+
const checkboxLabelId = `checkbox-label-${id}`;
|
|
306
310
|
const _a2 = rest, { onChange, onClick } = _a2, restWithoutEvents = __objRest(_a2, ["onChange", "onClick"]);
|
|
307
311
|
(0, import_react.useEffect)(() => {
|
|
308
312
|
if (inputRef.current) {
|
|
@@ -324,7 +328,7 @@ const Checkbox = (_a) => {
|
|
|
324
328
|
indeterminate,
|
|
325
329
|
inverted,
|
|
326
330
|
disabled,
|
|
327
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Label, { children: [
|
|
331
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Label, { id: checkboxLabelId, children: [
|
|
328
332
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Shadow, {}),
|
|
329
333
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
330
334
|
CheckMark,
|
|
@@ -350,7 +354,9 @@ const Checkbox = (_a) => {
|
|
|
350
354
|
disabled
|
|
351
355
|
}, value ? { value } : {}), restWithoutEvents), {
|
|
352
356
|
onChange,
|
|
353
|
-
onClick
|
|
357
|
+
onClick,
|
|
358
|
+
"aria-labelledby": ariaLabel ? void 0 : checkboxLabelId,
|
|
359
|
+
"aria-label": ariaLabel
|
|
354
360
|
})
|
|
355
361
|
),
|
|
356
362
|
label
|
|
@@ -375,7 +381,8 @@ Checkbox.propTypes = {
|
|
|
375
381
|
indeterminate: import_prop_types.bool,
|
|
376
382
|
/** set a style to the checkbox container */
|
|
377
383
|
style: (0, import_prop_types.shape)({}),
|
|
378
|
-
className: import_prop_types.string
|
|
384
|
+
className: import_prop_types.string,
|
|
385
|
+
ariaLabel: import_prop_types.string
|
|
379
386
|
};
|
|
380
387
|
Checkbox.defaultProps = {
|
|
381
388
|
label: void 0,
|
|
@@ -387,7 +394,8 @@ Checkbox.defaultProps = {
|
|
|
387
394
|
indeterminate: false,
|
|
388
395
|
error: void 0,
|
|
389
396
|
style: void 0,
|
|
390
|
-
className: void 0
|
|
397
|
+
className: void 0,
|
|
398
|
+
ariaLabel: void 0
|
|
391
399
|
};
|
|
392
400
|
Checkbox.displayName = "Checkbox";
|
|
393
401
|
var Checkbox_default = (0, import_styled_components.withTheme)(Checkbox);
|
|
@@ -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
|
});
|
|
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
33
|
-
import React, { useEffect, useRef } from "react";
|
|
33
|
+
import React, { useEffect, useRef, useId } from "react";
|
|
34
34
|
import { bool, string, shape, oneOfType, node } from "prop-types";
|
|
35
35
|
import styled, { withTheme } from "styled-components";
|
|
36
36
|
import { hexToRgb } from "@gympass/yoga-common";
|
|
@@ -253,6 +253,7 @@ const Checkbox = (_a) => {
|
|
|
253
253
|
className,
|
|
254
254
|
inverted,
|
|
255
255
|
indeterminate,
|
|
256
|
+
ariaLabel,
|
|
256
257
|
theme: {
|
|
257
258
|
yoga: {
|
|
258
259
|
components: { checkbox }
|
|
@@ -269,9 +270,12 @@ const Checkbox = (_a) => {
|
|
|
269
270
|
"className",
|
|
270
271
|
"inverted",
|
|
271
272
|
"indeterminate",
|
|
273
|
+
"ariaLabel",
|
|
272
274
|
"theme"
|
|
273
275
|
]);
|
|
274
276
|
const inputRef = useRef(null);
|
|
277
|
+
const id = useId();
|
|
278
|
+
const checkboxLabelId = `checkbox-label-${id}`;
|
|
275
279
|
const _a2 = rest, { onChange, onClick } = _a2, restWithoutEvents = __objRest(_a2, ["onChange", "onClick"]);
|
|
276
280
|
useEffect(() => {
|
|
277
281
|
if (inputRef.current) {
|
|
@@ -293,7 +297,7 @@ const Checkbox = (_a) => {
|
|
|
293
297
|
indeterminate,
|
|
294
298
|
inverted,
|
|
295
299
|
disabled,
|
|
296
|
-
children: /* @__PURE__ */ jsxs(Label, { children: [
|
|
300
|
+
children: /* @__PURE__ */ jsxs(Label, { id: checkboxLabelId, children: [
|
|
297
301
|
/* @__PURE__ */ jsx(Shadow, {}),
|
|
298
302
|
/* @__PURE__ */ jsxs(
|
|
299
303
|
CheckMark,
|
|
@@ -319,7 +323,9 @@ const Checkbox = (_a) => {
|
|
|
319
323
|
disabled
|
|
320
324
|
}, value ? { value } : {}), restWithoutEvents), {
|
|
321
325
|
onChange,
|
|
322
|
-
onClick
|
|
326
|
+
onClick,
|
|
327
|
+
"aria-labelledby": ariaLabel ? void 0 : checkboxLabelId,
|
|
328
|
+
"aria-label": ariaLabel
|
|
323
329
|
})
|
|
324
330
|
),
|
|
325
331
|
label
|
|
@@ -344,7 +350,8 @@ Checkbox.propTypes = {
|
|
|
344
350
|
indeterminate: bool,
|
|
345
351
|
/** set a style to the checkbox container */
|
|
346
352
|
style: shape({}),
|
|
347
|
-
className: string
|
|
353
|
+
className: string,
|
|
354
|
+
ariaLabel: string
|
|
348
355
|
};
|
|
349
356
|
Checkbox.defaultProps = {
|
|
350
357
|
label: void 0,
|
|
@@ -356,7 +363,8 @@ Checkbox.defaultProps = {
|
|
|
356
363
|
indeterminate: false,
|
|
357
364
|
error: void 0,
|
|
358
365
|
style: void 0,
|
|
359
|
-
className: void 0
|
|
366
|
+
className: void 0,
|
|
367
|
+
ariaLabel: void 0
|
|
360
368
|
};
|
|
361
369
|
Checkbox.displayName = "Checkbox";
|
|
362
370
|
var Checkbox_default = withTheme(Checkbox);
|
|
@@ -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.125.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": "4a970f4d447797e7da969aa3d3c2b5b58ee88c97",
|
|
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;
|