@gympass/yoga 7.139.0 → 7.140.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/Checkbox.theme.js +9 -3
- package/cjs/Checkbox/native/Checkbox.js +2 -3
- package/cjs/Checkbox/web/Checkbox.js +15 -8
- package/esm/Checkbox/Checkbox.theme.js +9 -3
- package/esm/Checkbox/native/Checkbox.js +2 -3
- package/esm/Checkbox/web/Checkbox.js +15 -8
- package/package.json +3 -3
- package/typings/Theme/theme/theme.d.ts +43 -37
- package/typings/Theme/theme/v3theme.d.ts +37 -37
|
@@ -28,7 +28,8 @@ const Checkbox = ({ spacing, colors, borders, radii, fontSizes }) => ({
|
|
|
28
28
|
},
|
|
29
29
|
border: {
|
|
30
30
|
width: borders.medium,
|
|
31
|
-
radius: radii.xsmall
|
|
31
|
+
radius: radii.xsmall,
|
|
32
|
+
color: colors.mediumNew
|
|
32
33
|
},
|
|
33
34
|
label: {
|
|
34
35
|
padding: {
|
|
@@ -59,9 +60,14 @@ const Checkbox = ({ spacing, colors, borders, radii, fontSizes }) => ({
|
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
62
|
disabled: {
|
|
62
|
-
backgroundColor: colors.
|
|
63
|
+
backgroundColor: colors.white,
|
|
63
64
|
border: {
|
|
64
|
-
color: colors.
|
|
65
|
+
color: colors.steady
|
|
66
|
+
},
|
|
67
|
+
label: {
|
|
68
|
+
font: {
|
|
69
|
+
color: colors.steady
|
|
70
|
+
}
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
73
|
});
|
|
@@ -121,12 +121,12 @@ const CheckBackground = import_styled_components.default.View(
|
|
|
121
121
|
error,
|
|
122
122
|
theme: {
|
|
123
123
|
yoga: {
|
|
124
|
-
colors: { primary, feedback,
|
|
124
|
+
colors: { primary, feedback, white },
|
|
125
125
|
components: { checkbox }
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
}) => {
|
|
129
|
-
let borderColor =
|
|
129
|
+
let borderColor = checkbox.border.color;
|
|
130
130
|
let bgColor = "transparent";
|
|
131
131
|
if (error) {
|
|
132
132
|
[, borderColor] = feedback.attention;
|
|
@@ -137,7 +137,6 @@ const CheckBackground = import_styled_components.default.View(
|
|
|
137
137
|
borderColor = checkbox.disabled.border.color;
|
|
138
138
|
if (checked) {
|
|
139
139
|
bgColor = checkbox.disabled.backgroundColor;
|
|
140
|
-
borderColor = elements.lineAndBorders;
|
|
141
140
|
}
|
|
142
141
|
} else if (checked) {
|
|
143
142
|
borderColor = primary;
|
|
@@ -97,12 +97,12 @@ const CheckMark = import_styled_components.default.div.attrs(({ checked, disable
|
|
|
97
97
|
indeterminate,
|
|
98
98
|
theme: {
|
|
99
99
|
yoga: {
|
|
100
|
-
colors: { primary, feedback,
|
|
100
|
+
colors: { primary, feedback, white },
|
|
101
101
|
components: { checkbox }
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
}) => {
|
|
105
|
-
let borderColor =
|
|
105
|
+
let borderColor = checkbox.border.color;
|
|
106
106
|
let bgColor = "transparent";
|
|
107
107
|
let checkColor = checkbox.checked.icon.color;
|
|
108
108
|
if (error) {
|
|
@@ -114,7 +114,7 @@ const CheckMark = import_styled_components.default.div.attrs(({ checked, disable
|
|
|
114
114
|
borderColor = checkbox.disabled.border.color;
|
|
115
115
|
if (checked || indeterminate) {
|
|
116
116
|
bgColor = checkbox.disabled.backgroundColor;
|
|
117
|
-
borderColor =
|
|
117
|
+
borderColor = checkbox.disabled.border.color;
|
|
118
118
|
}
|
|
119
119
|
} else if (checked || indeterminate) {
|
|
120
120
|
borderColor = primary;
|
|
@@ -160,15 +160,22 @@ const Label = import_styled_components.default.label`
|
|
|
160
160
|
cursor: pointer;
|
|
161
161
|
|
|
162
162
|
${({
|
|
163
|
+
disabled,
|
|
163
164
|
theme: {
|
|
164
165
|
yoga: {
|
|
165
166
|
components: { checkbox }
|
|
166
167
|
}
|
|
167
168
|
}
|
|
168
|
-
}) =>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
}) => {
|
|
170
|
+
let { color } = checkbox.label.font;
|
|
171
|
+
if (disabled && checkbox.disabled.label) {
|
|
172
|
+
color = checkbox.disabled.label.font.color;
|
|
173
|
+
}
|
|
174
|
+
return `
|
|
175
|
+
font-size: ${checkbox.label.font.size}px;
|
|
176
|
+
color: ${color};
|
|
177
|
+
`;
|
|
178
|
+
}}
|
|
172
179
|
`;
|
|
173
180
|
const Shadow = import_styled_components.default.span`
|
|
174
181
|
position: absolute;
|
|
@@ -334,7 +341,7 @@ const Checkbox = (_a) => {
|
|
|
334
341
|
indeterminate,
|
|
335
342
|
inverted,
|
|
336
343
|
disabled,
|
|
337
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Label, { id: checkboxLabelId, children: [
|
|
344
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Label, { id: checkboxLabelId, disabled, children: [
|
|
338
345
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Shadow, {}),
|
|
339
346
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
340
347
|
CheckMark,
|
|
@@ -5,7 +5,8 @@ const Checkbox = ({ spacing, colors, borders, radii, fontSizes }) => ({
|
|
|
5
5
|
},
|
|
6
6
|
border: {
|
|
7
7
|
width: borders.medium,
|
|
8
|
-
radius: radii.xsmall
|
|
8
|
+
radius: radii.xsmall,
|
|
9
|
+
color: colors.mediumNew
|
|
9
10
|
},
|
|
10
11
|
label: {
|
|
11
12
|
padding: {
|
|
@@ -36,9 +37,14 @@ const Checkbox = ({ spacing, colors, borders, radii, fontSizes }) => ({
|
|
|
36
37
|
}
|
|
37
38
|
},
|
|
38
39
|
disabled: {
|
|
39
|
-
backgroundColor: colors.
|
|
40
|
+
backgroundColor: colors.white,
|
|
40
41
|
border: {
|
|
41
|
-
color: colors.
|
|
42
|
+
color: colors.steady
|
|
43
|
+
},
|
|
44
|
+
label: {
|
|
45
|
+
font: {
|
|
46
|
+
color: colors.steady
|
|
47
|
+
}
|
|
42
48
|
}
|
|
43
49
|
}
|
|
44
50
|
});
|
|
@@ -90,12 +90,12 @@ const CheckBackground = styled.View(
|
|
|
90
90
|
error,
|
|
91
91
|
theme: {
|
|
92
92
|
yoga: {
|
|
93
|
-
colors: { primary, feedback,
|
|
93
|
+
colors: { primary, feedback, white },
|
|
94
94
|
components: { checkbox }
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}) => {
|
|
98
|
-
let borderColor =
|
|
98
|
+
let borderColor = checkbox.border.color;
|
|
99
99
|
let bgColor = "transparent";
|
|
100
100
|
if (error) {
|
|
101
101
|
[, borderColor] = feedback.attention;
|
|
@@ -106,7 +106,6 @@ const CheckBackground = styled.View(
|
|
|
106
106
|
borderColor = checkbox.disabled.border.color;
|
|
107
107
|
if (checked) {
|
|
108
108
|
bgColor = checkbox.disabled.backgroundColor;
|
|
109
|
-
borderColor = elements.lineAndBorders;
|
|
110
109
|
}
|
|
111
110
|
} else if (checked) {
|
|
112
111
|
borderColor = primary;
|
|
@@ -66,12 +66,12 @@ const CheckMark = styled.div.attrs(({ checked, disabled }) => ({
|
|
|
66
66
|
indeterminate,
|
|
67
67
|
theme: {
|
|
68
68
|
yoga: {
|
|
69
|
-
colors: { primary, feedback,
|
|
69
|
+
colors: { primary, feedback, white },
|
|
70
70
|
components: { checkbox }
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}) => {
|
|
74
|
-
let borderColor =
|
|
74
|
+
let borderColor = checkbox.border.color;
|
|
75
75
|
let bgColor = "transparent";
|
|
76
76
|
let checkColor = checkbox.checked.icon.color;
|
|
77
77
|
if (error) {
|
|
@@ -83,7 +83,7 @@ const CheckMark = styled.div.attrs(({ checked, disabled }) => ({
|
|
|
83
83
|
borderColor = checkbox.disabled.border.color;
|
|
84
84
|
if (checked || indeterminate) {
|
|
85
85
|
bgColor = checkbox.disabled.backgroundColor;
|
|
86
|
-
borderColor =
|
|
86
|
+
borderColor = checkbox.disabled.border.color;
|
|
87
87
|
}
|
|
88
88
|
} else if (checked || indeterminate) {
|
|
89
89
|
borderColor = primary;
|
|
@@ -129,15 +129,22 @@ const Label = styled.label`
|
|
|
129
129
|
cursor: pointer;
|
|
130
130
|
|
|
131
131
|
${({
|
|
132
|
+
disabled,
|
|
132
133
|
theme: {
|
|
133
134
|
yoga: {
|
|
134
135
|
components: { checkbox }
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
|
-
}) =>
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
}) => {
|
|
139
|
+
let { color } = checkbox.label.font;
|
|
140
|
+
if (disabled && checkbox.disabled.label) {
|
|
141
|
+
color = checkbox.disabled.label.font.color;
|
|
142
|
+
}
|
|
143
|
+
return `
|
|
144
|
+
font-size: ${checkbox.label.font.size}px;
|
|
145
|
+
color: ${color};
|
|
146
|
+
`;
|
|
147
|
+
}}
|
|
141
148
|
`;
|
|
142
149
|
const Shadow = styled.span`
|
|
143
150
|
position: absolute;
|
|
@@ -303,7 +310,7 @@ const Checkbox = (_a) => {
|
|
|
303
310
|
indeterminate,
|
|
304
311
|
inverted,
|
|
305
312
|
disabled,
|
|
306
|
-
children: /* @__PURE__ */ jsxs(Label, { id: checkboxLabelId, children: [
|
|
313
|
+
children: /* @__PURE__ */ jsxs(Label, { id: checkboxLabelId, disabled, children: [
|
|
307
314
|
/* @__PURE__ */ jsx(Shadow, {}),
|
|
308
315
|
/* @__PURE__ */ jsxs(
|
|
309
316
|
CheckMark,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.140.0",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"react-phone-input-2": "^2.15.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@gympass/yoga-icons": "^1.42.
|
|
48
|
+
"@gympass/yoga-icons": "^1.42.1",
|
|
49
49
|
"@react-native-community/eslint-config": "^3.0.1",
|
|
50
50
|
"@types/styled-components": "^5.1.34",
|
|
51
51
|
"babel-plugin-inline-react-svg": "^1.1.1",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"react-native": "0.72.3",
|
|
60
60
|
"styled-components": "^4.4.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "7fa5e1da5b9b34478014f72cecbdff3c92daebd3",
|
|
63
63
|
"module": "./esm",
|
|
64
64
|
"private": false,
|
|
65
65
|
"react-native": "./cjs/index.native.js"
|
|
@@ -505,6 +505,7 @@ declare const composeTheme: (tokens: typeof yogaTokens, customTheming?: {}) => {
|
|
|
505
505
|
border: {
|
|
506
506
|
width: any;
|
|
507
507
|
radius: any;
|
|
508
|
+
color: any;
|
|
508
509
|
};
|
|
509
510
|
label: {
|
|
510
511
|
padding: {
|
|
@@ -539,6 +540,11 @@ declare const composeTheme: (tokens: typeof yogaTokens, customTheming?: {}) => {
|
|
|
539
540
|
border: {
|
|
540
541
|
color: any;
|
|
541
542
|
};
|
|
543
|
+
label: {
|
|
544
|
+
font: {
|
|
545
|
+
color: any;
|
|
546
|
+
};
|
|
547
|
+
};
|
|
542
548
|
};
|
|
543
549
|
};
|
|
544
550
|
checkboxswitch: {
|
|
@@ -1640,46 +1646,46 @@ declare const composeTheme: (tokens: typeof yogaTokens, customTheming?: {}) => {
|
|
|
1640
1646
|
length: number;
|
|
1641
1647
|
toString(): string;
|
|
1642
1648
|
toLocaleString(): string;
|
|
1643
|
-
pop(): 0 |
|
|
1644
|
-
push(...items: (0 |
|
|
1645
|
-
concat(...items: ConcatArray<0 |
|
|
1646
|
-
concat(...items: (0 |
|
|
1649
|
+
pop(): 0 | 1 | 2 | undefined;
|
|
1650
|
+
push(...items: (0 | 1 | 2)[]): number;
|
|
1651
|
+
concat(...items: ConcatArray<0 | 1 | 2>[]): (0 | 1 | 2)[];
|
|
1652
|
+
concat(...items: (0 | 1 | 2 | ConcatArray<0 | 1 | 2>)[]): (0 | 1 | 2)[];
|
|
1647
1653
|
join(separator?: string | undefined): string;
|
|
1648
|
-
reverse(): (0 |
|
|
1649
|
-
shift(): 0 |
|
|
1650
|
-
slice(start?: number | undefined, end?: number | undefined): (0 |
|
|
1651
|
-
sort(compareFn?: ((a: 0 |
|
|
1652
|
-
splice(start: number, deleteCount?: number | undefined): (0 |
|
|
1653
|
-
splice(start: number, deleteCount: number, ...items: (0 |
|
|
1654
|
-
unshift(...items: (0 |
|
|
1655
|
-
indexOf(searchElement: 0 |
|
|
1656
|
-
lastIndexOf(searchElement: 0 |
|
|
1657
|
-
every<S extends 0 |
|
|
1658
|
-
every(predicate: (value: 0 |
|
|
1659
|
-
some(predicate: (value: 0 |
|
|
1660
|
-
forEach(callbackfn: (value: 0 |
|
|
1661
|
-
map<U>(callbackfn: (value: 0 |
|
|
1662
|
-
filter<S_1 extends 0 |
|
|
1663
|
-
filter(predicate: (value: 0 |
|
|
1664
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
1665
|
-
reduce(callbackfn: (previousValue: 0 |
|
|
1666
|
-
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 |
|
|
1667
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
1668
|
-
reduceRight(callbackfn: (previousValue: 0 |
|
|
1669
|
-
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 |
|
|
1670
|
-
find<S_2 extends 0 |
|
|
1671
|
-
find(predicate: (value: 0 |
|
|
1672
|
-
findIndex(predicate: (value: 0 |
|
|
1673
|
-
fill(value: 0 |
|
|
1674
|
-
copyWithin(target: number, start: number, end?: number | undefined): (0 |
|
|
1675
|
-
entries(): IterableIterator<[number, 0 |
|
|
1654
|
+
reverse(): (0 | 1 | 2)[];
|
|
1655
|
+
shift(): 0 | 1 | 2 | undefined;
|
|
1656
|
+
slice(start?: number | undefined, end?: number | undefined): (0 | 1 | 2)[];
|
|
1657
|
+
sort(compareFn?: ((a: 0 | 1 | 2, b: 0 | 1 | 2) => number) | undefined): (0 | 1 | 2)[];
|
|
1658
|
+
splice(start: number, deleteCount?: number | undefined): (0 | 1 | 2)[];
|
|
1659
|
+
splice(start: number, deleteCount: number, ...items: (0 | 1 | 2)[]): (0 | 1 | 2)[];
|
|
1660
|
+
unshift(...items: (0 | 1 | 2)[]): number;
|
|
1661
|
+
indexOf(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): number;
|
|
1662
|
+
lastIndexOf(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): number;
|
|
1663
|
+
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[];
|
|
1664
|
+
every(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): boolean;
|
|
1665
|
+
some(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): boolean;
|
|
1666
|
+
forEach(callbackfn: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => void, thisArg?: any): void;
|
|
1667
|
+
map<U>(callbackfn: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => U, thisArg?: any): U[];
|
|
1668
|
+
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[];
|
|
1669
|
+
filter(predicate: (value: 0 | 1 | 2, index: number, array: (0 | 1 | 2)[]) => unknown, thisArg?: any): (0 | 1 | 2)[];
|
|
1670
|
+
reduce(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2): 0 | 1 | 2;
|
|
1671
|
+
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;
|
|
1672
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => U_1, initialValue: U_1): U_1;
|
|
1673
|
+
reduceRight(callbackfn: (previousValue: 0 | 1 | 2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => 0 | 1 | 2): 0 | 1 | 2;
|
|
1674
|
+
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;
|
|
1675
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: 0 | 1 | 2, currentIndex: number, array: (0 | 1 | 2)[]) => U_2, initialValue: U_2): U_2;
|
|
1676
|
+
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;
|
|
1677
|
+
find(predicate: (value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => unknown, thisArg?: any): 0 | 1 | 2 | undefined;
|
|
1678
|
+
findIndex(predicate: (value: 0 | 1 | 2, index: number, obj: (0 | 1 | 2)[]) => unknown, thisArg?: any): number;
|
|
1679
|
+
fill(value: 0 | 1 | 2, start?: number | undefined, end?: number | undefined): (0 | 1 | 2)[];
|
|
1680
|
+
copyWithin(target: number, start: number, end?: number | undefined): (0 | 1 | 2)[];
|
|
1681
|
+
entries(): IterableIterator<[number, 0 | 1 | 2]>;
|
|
1676
1682
|
keys(): IterableIterator<number>;
|
|
1677
|
-
values(): IterableIterator<0 |
|
|
1678
|
-
includes(searchElement: 0 |
|
|
1679
|
-
flatMap<U_3, This = undefined>(callback: (this: This, value: 0 |
|
|
1683
|
+
values(): IterableIterator<0 | 1 | 2>;
|
|
1684
|
+
includes(searchElement: 0 | 1 | 2, fromIndex?: number | undefined): boolean;
|
|
1685
|
+
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[];
|
|
1680
1686
|
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
1681
|
-
at(index: number): 0 |
|
|
1682
|
-
[Symbol.iterator](): IterableIterator<0 |
|
|
1687
|
+
at(index: number): 0 | 1 | 2 | undefined;
|
|
1688
|
+
[Symbol.iterator](): IterableIterator<0 | 1 | 2>;
|
|
1683
1689
|
[Symbol.unscopables](): {
|
|
1684
1690
|
copyWithin: boolean;
|
|
1685
1691
|
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;
|