@hero-design/rn 8.54.0 → 8.55.1-rc2.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/.turbo/turbo-build.log +1 -4
- package/CHANGELOG.md +18 -0
- package/es/index.js +275 -261
- package/lib/index.js +275 -261
- package/package.json +12 -9
- package/src/components/Tabs/StyledTabs.tsx +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -3
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +2 -1
- package/src/theme/components/tabs.ts +2 -1
- package/types/theme/components/tabs.d.ts +1 -0
package/es/index.js
CHANGED
|
@@ -12,341 +12,363 @@ import PagerView from 'react-native-pager-view';
|
|
|
12
12
|
import { EventEmitter } from 'events';
|
|
13
13
|
import { WebView } from 'react-native-webview';
|
|
14
14
|
|
|
15
|
-
function
|
|
16
|
-
var
|
|
17
|
-
if (
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
function _iterableToArrayLimit(r, l) {
|
|
16
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
17
|
+
if (null != t) {
|
|
18
|
+
var e,
|
|
19
|
+
n,
|
|
20
|
+
i,
|
|
21
|
+
u,
|
|
22
|
+
a = [],
|
|
23
|
+
f = !0,
|
|
24
|
+
o = !1;
|
|
25
|
+
try {
|
|
26
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
27
|
+
if (Object(t) !== t) return;
|
|
28
|
+
f = !1;
|
|
29
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
30
|
+
} catch (r) {
|
|
31
|
+
o = !0, n = r;
|
|
32
|
+
} finally {
|
|
33
|
+
try {
|
|
34
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
35
|
+
} finally {
|
|
36
|
+
if (o) throw n;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return a;
|
|
22
40
|
}
|
|
23
|
-
return keys;
|
|
24
41
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
42
|
+
function ownKeys(e, r) {
|
|
43
|
+
var t = Object.keys(e);
|
|
44
|
+
if (Object.getOwnPropertySymbols) {
|
|
45
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
46
|
+
r && (o = o.filter(function (r) {
|
|
47
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
48
|
+
})), t.push.apply(t, o);
|
|
49
|
+
}
|
|
50
|
+
return t;
|
|
51
|
+
}
|
|
52
|
+
function _objectSpread2(e) {
|
|
53
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
54
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
55
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
56
|
+
_defineProperty(e, r, t[r]);
|
|
57
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
58
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
32
59
|
});
|
|
33
60
|
}
|
|
34
|
-
return
|
|
61
|
+
return e;
|
|
35
62
|
}
|
|
36
63
|
function _regeneratorRuntime() {
|
|
37
64
|
_regeneratorRuntime = function () {
|
|
38
|
-
return
|
|
65
|
+
return e;
|
|
39
66
|
};
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
67
|
+
var t,
|
|
68
|
+
e = {},
|
|
69
|
+
r = Object.prototype,
|
|
70
|
+
n = r.hasOwnProperty,
|
|
71
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
72
|
+
t[e] = r.value;
|
|
45
73
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
function define(
|
|
51
|
-
return Object.defineProperty(
|
|
52
|
-
value:
|
|
74
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
75
|
+
a = i.iterator || "@@iterator",
|
|
76
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
77
|
+
u = i.toStringTag || "@@toStringTag";
|
|
78
|
+
function define(t, e, r) {
|
|
79
|
+
return Object.defineProperty(t, e, {
|
|
80
|
+
value: r,
|
|
53
81
|
enumerable: !0,
|
|
54
82
|
configurable: !0,
|
|
55
83
|
writable: !0
|
|
56
|
-
}),
|
|
84
|
+
}), t[e];
|
|
57
85
|
}
|
|
58
86
|
try {
|
|
59
87
|
define({}, "");
|
|
60
|
-
} catch (
|
|
61
|
-
define = function (
|
|
62
|
-
return
|
|
88
|
+
} catch (t) {
|
|
89
|
+
define = function (t, e, r) {
|
|
90
|
+
return t[e] = r;
|
|
63
91
|
};
|
|
64
92
|
}
|
|
65
|
-
function wrap(
|
|
66
|
-
var
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return
|
|
70
|
-
value: makeInvokeMethod(
|
|
71
|
-
}),
|
|
93
|
+
function wrap(t, e, r, n) {
|
|
94
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
95
|
+
a = Object.create(i.prototype),
|
|
96
|
+
c = new Context(n || []);
|
|
97
|
+
return o(a, "_invoke", {
|
|
98
|
+
value: makeInvokeMethod(t, r, c)
|
|
99
|
+
}), a;
|
|
72
100
|
}
|
|
73
|
-
function tryCatch(
|
|
101
|
+
function tryCatch(t, e, r) {
|
|
74
102
|
try {
|
|
75
103
|
return {
|
|
76
104
|
type: "normal",
|
|
77
|
-
arg:
|
|
105
|
+
arg: t.call(e, r)
|
|
78
106
|
};
|
|
79
|
-
} catch (
|
|
107
|
+
} catch (t) {
|
|
80
108
|
return {
|
|
81
109
|
type: "throw",
|
|
82
|
-
arg:
|
|
110
|
+
arg: t
|
|
83
111
|
};
|
|
84
112
|
}
|
|
85
113
|
}
|
|
86
|
-
|
|
87
|
-
var
|
|
114
|
+
e.wrap = wrap;
|
|
115
|
+
var h = "suspendedStart",
|
|
116
|
+
l = "suspendedYield",
|
|
117
|
+
f = "executing",
|
|
118
|
+
s = "completed",
|
|
119
|
+
y = {};
|
|
88
120
|
function Generator() {}
|
|
89
121
|
function GeneratorFunction() {}
|
|
90
122
|
function GeneratorFunctionPrototype() {}
|
|
91
|
-
var
|
|
92
|
-
define(
|
|
123
|
+
var p = {};
|
|
124
|
+
define(p, a, function () {
|
|
93
125
|
return this;
|
|
94
126
|
});
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
var
|
|
99
|
-
function defineIteratorMethods(
|
|
100
|
-
["next", "throw", "return"].forEach(function (
|
|
101
|
-
define(
|
|
102
|
-
return this._invoke(
|
|
127
|
+
var d = Object.getPrototypeOf,
|
|
128
|
+
v = d && d(d(values([])));
|
|
129
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
130
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
131
|
+
function defineIteratorMethods(t) {
|
|
132
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
133
|
+
define(t, e, function (t) {
|
|
134
|
+
return this._invoke(e, t);
|
|
103
135
|
});
|
|
104
136
|
});
|
|
105
137
|
}
|
|
106
|
-
function AsyncIterator(
|
|
107
|
-
function invoke(
|
|
108
|
-
var
|
|
109
|
-
if ("throw" !==
|
|
110
|
-
var
|
|
111
|
-
|
|
112
|
-
return
|
|
113
|
-
invoke("next",
|
|
114
|
-
}, function (
|
|
115
|
-
invoke("throw",
|
|
116
|
-
}) :
|
|
117
|
-
|
|
118
|
-
}, function (
|
|
119
|
-
return invoke("throw",
|
|
138
|
+
function AsyncIterator(t, e) {
|
|
139
|
+
function invoke(r, o, i, a) {
|
|
140
|
+
var c = tryCatch(t[r], t, o);
|
|
141
|
+
if ("throw" !== c.type) {
|
|
142
|
+
var u = c.arg,
|
|
143
|
+
h = u.value;
|
|
144
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
145
|
+
invoke("next", t, i, a);
|
|
146
|
+
}, function (t) {
|
|
147
|
+
invoke("throw", t, i, a);
|
|
148
|
+
}) : e.resolve(h).then(function (t) {
|
|
149
|
+
u.value = t, i(u);
|
|
150
|
+
}, function (t) {
|
|
151
|
+
return invoke("throw", t, i, a);
|
|
120
152
|
});
|
|
121
153
|
}
|
|
122
|
-
|
|
154
|
+
a(c.arg);
|
|
123
155
|
}
|
|
124
|
-
var
|
|
125
|
-
|
|
126
|
-
value: function (
|
|
156
|
+
var r;
|
|
157
|
+
o(this, "_invoke", {
|
|
158
|
+
value: function (t, n) {
|
|
127
159
|
function callInvokeWithMethodAndArg() {
|
|
128
|
-
return new
|
|
129
|
-
invoke(
|
|
160
|
+
return new e(function (e, r) {
|
|
161
|
+
invoke(t, n, e, r);
|
|
130
162
|
});
|
|
131
163
|
}
|
|
132
|
-
return
|
|
164
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
133
165
|
}
|
|
134
166
|
});
|
|
135
167
|
}
|
|
136
|
-
function makeInvokeMethod(
|
|
137
|
-
var
|
|
138
|
-
return function (
|
|
139
|
-
if (
|
|
140
|
-
if (
|
|
141
|
-
if ("throw" ===
|
|
142
|
-
return
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
168
|
+
function makeInvokeMethod(e, r, n) {
|
|
169
|
+
var o = h;
|
|
170
|
+
return function (i, a) {
|
|
171
|
+
if (o === f) throw new Error("Generator is already running");
|
|
172
|
+
if (o === s) {
|
|
173
|
+
if ("throw" === i) throw a;
|
|
174
|
+
return {
|
|
175
|
+
value: t,
|
|
176
|
+
done: !0
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
for (n.method = i, n.arg = a;;) {
|
|
180
|
+
var c = n.delegate;
|
|
181
|
+
if (c) {
|
|
182
|
+
var u = maybeInvokeDelegate(c, n);
|
|
183
|
+
if (u) {
|
|
184
|
+
if (u === y) continue;
|
|
185
|
+
return u;
|
|
151
186
|
}
|
|
152
187
|
}
|
|
153
|
-
if ("next" ===
|
|
154
|
-
if (
|
|
155
|
-
|
|
156
|
-
} else "return" ===
|
|
157
|
-
|
|
158
|
-
var
|
|
159
|
-
if ("normal" ===
|
|
160
|
-
if (
|
|
188
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
189
|
+
if (o === h) throw o = s, n.arg;
|
|
190
|
+
n.dispatchException(n.arg);
|
|
191
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
192
|
+
o = f;
|
|
193
|
+
var p = tryCatch(e, r, n);
|
|
194
|
+
if ("normal" === p.type) {
|
|
195
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
161
196
|
return {
|
|
162
|
-
value:
|
|
163
|
-
done:
|
|
197
|
+
value: p.arg,
|
|
198
|
+
done: n.done
|
|
164
199
|
};
|
|
165
200
|
}
|
|
166
|
-
"throw" ===
|
|
201
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
167
202
|
}
|
|
168
203
|
};
|
|
169
204
|
}
|
|
170
|
-
function maybeInvokeDelegate(
|
|
171
|
-
var
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
183
|
-
}
|
|
184
|
-
function pushTryEntry(locs) {
|
|
185
|
-
var entry = {
|
|
186
|
-
tryLoc: locs[0]
|
|
205
|
+
function maybeInvokeDelegate(e, r) {
|
|
206
|
+
var n = r.method,
|
|
207
|
+
o = e.iterator[n];
|
|
208
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
209
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
210
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
211
|
+
var a = i.arg;
|
|
212
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
213
|
+
}
|
|
214
|
+
function pushTryEntry(t) {
|
|
215
|
+
var e = {
|
|
216
|
+
tryLoc: t[0]
|
|
187
217
|
};
|
|
188
|
-
1 in
|
|
218
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
189
219
|
}
|
|
190
|
-
function resetTryEntry(
|
|
191
|
-
var
|
|
192
|
-
|
|
220
|
+
function resetTryEntry(t) {
|
|
221
|
+
var e = t.completion || {};
|
|
222
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
193
223
|
}
|
|
194
|
-
function Context(
|
|
224
|
+
function Context(t) {
|
|
195
225
|
this.tryEntries = [{
|
|
196
226
|
tryLoc: "root"
|
|
197
|
-
}],
|
|
198
|
-
}
|
|
199
|
-
function values(
|
|
200
|
-
if (
|
|
201
|
-
var
|
|
202
|
-
if (
|
|
203
|
-
if ("function" == typeof
|
|
204
|
-
if (!isNaN(
|
|
205
|
-
var
|
|
206
|
-
|
|
207
|
-
for (; ++
|
|
208
|
-
return next.value =
|
|
227
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
228
|
+
}
|
|
229
|
+
function values(e) {
|
|
230
|
+
if (e || "" === e) {
|
|
231
|
+
var r = e[a];
|
|
232
|
+
if (r) return r.call(e);
|
|
233
|
+
if ("function" == typeof e.next) return e;
|
|
234
|
+
if (!isNaN(e.length)) {
|
|
235
|
+
var o = -1,
|
|
236
|
+
i = function next() {
|
|
237
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
238
|
+
return next.value = t, next.done = !0, next;
|
|
209
239
|
};
|
|
210
|
-
return
|
|
240
|
+
return i.next = i;
|
|
211
241
|
}
|
|
212
242
|
}
|
|
213
|
-
|
|
214
|
-
next: doneResult
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
function doneResult() {
|
|
218
|
-
return {
|
|
219
|
-
value: undefined,
|
|
220
|
-
done: !0
|
|
221
|
-
};
|
|
243
|
+
throw new TypeError(typeof e + " is not iterable");
|
|
222
244
|
}
|
|
223
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
245
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
224
246
|
value: GeneratorFunctionPrototype,
|
|
225
247
|
configurable: !0
|
|
226
|
-
}),
|
|
248
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
227
249
|
value: GeneratorFunction,
|
|
228
250
|
configurable: !0
|
|
229
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
|
230
|
-
var
|
|
231
|
-
return !!
|
|
232
|
-
},
|
|
233
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
|
234
|
-
},
|
|
251
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
252
|
+
var e = "function" == typeof t && t.constructor;
|
|
253
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
254
|
+
}, e.mark = function (t) {
|
|
255
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
256
|
+
}, e.awrap = function (t) {
|
|
235
257
|
return {
|
|
236
|
-
__await:
|
|
258
|
+
__await: t
|
|
237
259
|
};
|
|
238
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
|
260
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
239
261
|
return this;
|
|
240
|
-
}),
|
|
241
|
-
void 0 ===
|
|
242
|
-
var
|
|
243
|
-
return
|
|
244
|
-
return
|
|
262
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
263
|
+
void 0 === i && (i = Promise);
|
|
264
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
265
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
266
|
+
return t.done ? t.value : a.next();
|
|
245
267
|
});
|
|
246
|
-
}, defineIteratorMethods(
|
|
268
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
247
269
|
return this;
|
|
248
|
-
}), define(
|
|
270
|
+
}), define(g, "toString", function () {
|
|
249
271
|
return "[object Generator]";
|
|
250
|
-
}),
|
|
251
|
-
var
|
|
252
|
-
|
|
253
|
-
for (var
|
|
254
|
-
return
|
|
255
|
-
for (;
|
|
256
|
-
var
|
|
257
|
-
if (
|
|
272
|
+
}), e.keys = function (t) {
|
|
273
|
+
var e = Object(t),
|
|
274
|
+
r = [];
|
|
275
|
+
for (var n in e) r.push(n);
|
|
276
|
+
return r.reverse(), function next() {
|
|
277
|
+
for (; r.length;) {
|
|
278
|
+
var t = r.pop();
|
|
279
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
258
280
|
}
|
|
259
281
|
return next.done = !0, next;
|
|
260
282
|
};
|
|
261
|
-
},
|
|
283
|
+
}, e.values = values, Context.prototype = {
|
|
262
284
|
constructor: Context,
|
|
263
|
-
reset: function (
|
|
264
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
|
285
|
+
reset: function (e) {
|
|
286
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
265
287
|
},
|
|
266
288
|
stop: function () {
|
|
267
289
|
this.done = !0;
|
|
268
|
-
var
|
|
269
|
-
if ("throw" ===
|
|
290
|
+
var t = this.tryEntries[0].completion;
|
|
291
|
+
if ("throw" === t.type) throw t.arg;
|
|
270
292
|
return this.rval;
|
|
271
293
|
},
|
|
272
|
-
dispatchException: function (
|
|
273
|
-
if (this.done) throw
|
|
274
|
-
var
|
|
275
|
-
function handle(
|
|
276
|
-
return
|
|
277
|
-
}
|
|
278
|
-
for (var
|
|
279
|
-
var
|
|
280
|
-
|
|
281
|
-
if ("root" ===
|
|
282
|
-
if (
|
|
283
|
-
var
|
|
284
|
-
|
|
285
|
-
if (
|
|
286
|
-
if (this.prev <
|
|
287
|
-
if (this.prev <
|
|
288
|
-
} else if (
|
|
289
|
-
if (this.prev <
|
|
294
|
+
dispatchException: function (e) {
|
|
295
|
+
if (this.done) throw e;
|
|
296
|
+
var r = this;
|
|
297
|
+
function handle(n, o) {
|
|
298
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
299
|
+
}
|
|
300
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
301
|
+
var i = this.tryEntries[o],
|
|
302
|
+
a = i.completion;
|
|
303
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
304
|
+
if (i.tryLoc <= this.prev) {
|
|
305
|
+
var c = n.call(i, "catchLoc"),
|
|
306
|
+
u = n.call(i, "finallyLoc");
|
|
307
|
+
if (c && u) {
|
|
308
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
309
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
310
|
+
} else if (c) {
|
|
311
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
290
312
|
} else {
|
|
291
|
-
if (!
|
|
292
|
-
if (this.prev <
|
|
313
|
+
if (!u) throw new Error("try statement without catch or finally");
|
|
314
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
293
315
|
}
|
|
294
316
|
}
|
|
295
317
|
}
|
|
296
318
|
},
|
|
297
|
-
abrupt: function (
|
|
298
|
-
for (var
|
|
299
|
-
var
|
|
300
|
-
if (
|
|
301
|
-
var
|
|
319
|
+
abrupt: function (t, e) {
|
|
320
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
321
|
+
var o = this.tryEntries[r];
|
|
322
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
323
|
+
var i = o;
|
|
302
324
|
break;
|
|
303
325
|
}
|
|
304
326
|
}
|
|
305
|
-
|
|
306
|
-
var
|
|
307
|
-
return
|
|
327
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
328
|
+
var a = i ? i.completion : {};
|
|
329
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
308
330
|
},
|
|
309
|
-
complete: function (
|
|
310
|
-
if ("throw" ===
|
|
311
|
-
return "break" ===
|
|
331
|
+
complete: function (t, e) {
|
|
332
|
+
if ("throw" === t.type) throw t.arg;
|
|
333
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
312
334
|
},
|
|
313
|
-
finish: function (
|
|
314
|
-
for (var
|
|
315
|
-
var
|
|
316
|
-
if (
|
|
335
|
+
finish: function (t) {
|
|
336
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
337
|
+
var r = this.tryEntries[e];
|
|
338
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
317
339
|
}
|
|
318
340
|
},
|
|
319
|
-
catch: function (
|
|
320
|
-
for (var
|
|
321
|
-
var
|
|
322
|
-
if (
|
|
323
|
-
var
|
|
324
|
-
if ("throw" ===
|
|
325
|
-
var
|
|
326
|
-
resetTryEntry(
|
|
341
|
+
catch: function (t) {
|
|
342
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
343
|
+
var r = this.tryEntries[e];
|
|
344
|
+
if (r.tryLoc === t) {
|
|
345
|
+
var n = r.completion;
|
|
346
|
+
if ("throw" === n.type) {
|
|
347
|
+
var o = n.arg;
|
|
348
|
+
resetTryEntry(r);
|
|
327
349
|
}
|
|
328
|
-
return
|
|
350
|
+
return o;
|
|
329
351
|
}
|
|
330
352
|
}
|
|
331
353
|
throw new Error("illegal catch attempt");
|
|
332
354
|
},
|
|
333
|
-
delegateYield: function (
|
|
355
|
+
delegateYield: function (e, r, n) {
|
|
334
356
|
return this.delegate = {
|
|
335
|
-
iterator: values(
|
|
336
|
-
resultName:
|
|
337
|
-
nextLoc:
|
|
338
|
-
}, "next" === this.method && (this.arg =
|
|
357
|
+
iterator: values(e),
|
|
358
|
+
resultName: r,
|
|
359
|
+
nextLoc: n
|
|
360
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
339
361
|
}
|
|
340
|
-
},
|
|
362
|
+
}, e;
|
|
341
363
|
}
|
|
342
|
-
function _typeof(
|
|
364
|
+
function _typeof(o) {
|
|
343
365
|
"@babel/helpers - typeof";
|
|
344
366
|
|
|
345
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
346
|
-
return typeof
|
|
347
|
-
} : function (
|
|
348
|
-
return
|
|
349
|
-
}, _typeof(
|
|
367
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
368
|
+
return typeof o;
|
|
369
|
+
} : function (o) {
|
|
370
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
371
|
+
}, _typeof(o);
|
|
350
372
|
}
|
|
351
373
|
function _classCallCheck(instance, Constructor) {
|
|
352
374
|
if (!(instance instanceof Constructor)) {
|
|
@@ -359,7 +381,7 @@ function _defineProperties(target, props) {
|
|
|
359
381
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
360
382
|
descriptor.configurable = true;
|
|
361
383
|
if ("value" in descriptor) descriptor.writable = true;
|
|
362
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
384
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
363
385
|
}
|
|
364
386
|
}
|
|
365
387
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -371,6 +393,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
371
393
|
return Constructor;
|
|
372
394
|
}
|
|
373
395
|
function _defineProperty(obj, key, value) {
|
|
396
|
+
key = _toPropertyKey(key);
|
|
374
397
|
if (key in obj) {
|
|
375
398
|
Object.defineProperty(obj, key, {
|
|
376
399
|
value: value,
|
|
@@ -442,30 +465,6 @@ function _arrayWithHoles(arr) {
|
|
|
442
465
|
function _iterableToArray(iter) {
|
|
443
466
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
444
467
|
}
|
|
445
|
-
function _iterableToArrayLimit(arr, i) {
|
|
446
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
447
|
-
if (_i == null) return;
|
|
448
|
-
var _arr = [];
|
|
449
|
-
var _n = true;
|
|
450
|
-
var _d = false;
|
|
451
|
-
var _s, _e;
|
|
452
|
-
try {
|
|
453
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
454
|
-
_arr.push(_s.value);
|
|
455
|
-
if (i && _arr.length === i) break;
|
|
456
|
-
}
|
|
457
|
-
} catch (err) {
|
|
458
|
-
_d = true;
|
|
459
|
-
_e = err;
|
|
460
|
-
} finally {
|
|
461
|
-
try {
|
|
462
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
463
|
-
} finally {
|
|
464
|
-
if (_d) throw _e;
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
return _arr;
|
|
468
|
-
}
|
|
469
468
|
function _unsupportedIterableToArray(o, minLen) {
|
|
470
469
|
if (!o) return;
|
|
471
470
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
@@ -536,6 +535,20 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
536
535
|
}
|
|
537
536
|
};
|
|
538
537
|
}
|
|
538
|
+
function _toPrimitive(input, hint) {
|
|
539
|
+
if (typeof input !== "object" || input === null) return input;
|
|
540
|
+
var prim = input[Symbol.toPrimitive];
|
|
541
|
+
if (prim !== undefined) {
|
|
542
|
+
var res = prim.call(input, hint || "default");
|
|
543
|
+
if (typeof res !== "object") return res;
|
|
544
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
545
|
+
}
|
|
546
|
+
return (hint === "string" ? String : Number)(input);
|
|
547
|
+
}
|
|
548
|
+
function _toPropertyKey(arg) {
|
|
549
|
+
var key = _toPrimitive(arg, "string");
|
|
550
|
+
return typeof key === "symbol" ? key : String(key);
|
|
551
|
+
}
|
|
539
552
|
|
|
540
553
|
var BASE_BORDER_WIDTH = 1;
|
|
541
554
|
var BASE_SPACE = 8;
|
|
@@ -3220,13 +3233,14 @@ var getTabsTheme = function getTabsTheme(theme) {
|
|
|
3220
3233
|
itemVerticalPadding: theme.space.small,
|
|
3221
3234
|
itemMargin: theme.space.smallMedium,
|
|
3222
3235
|
outlineHorizontalPadding: theme.space.small,
|
|
3223
|
-
outlineVerticalPadding: theme.space.xsmall
|
|
3236
|
+
outlineVerticalPadding: theme.space.xsmall,
|
|
3237
|
+
tabIndicatorBottom: -theme.space.xxsmall
|
|
3224
3238
|
};
|
|
3225
3239
|
var radii = {
|
|
3226
3240
|
outline: theme.radii.xlarge
|
|
3227
3241
|
};
|
|
3228
3242
|
var borderWidths = {
|
|
3229
|
-
headerBottom: theme.borderWidths.
|
|
3243
|
+
headerBottom: theme.borderWidths.medium
|
|
3230
3244
|
};
|
|
3231
3245
|
var sizes = {
|
|
3232
3246
|
indicator: theme.sizes.xxsmall
|
|
@@ -17198,7 +17212,7 @@ var StyledIndicator = index$a(Animated.View)(function (_ref3) {
|
|
|
17198
17212
|
height: theme.__hd__.tabs.sizes.indicator,
|
|
17199
17213
|
backgroundColor: theme.__hd__.tabs.colors.indicator,
|
|
17200
17214
|
position: 'absolute',
|
|
17201
|
-
bottom:
|
|
17215
|
+
bottom: theme.__hd__.tabs.space.tabIndicatorBottom
|
|
17202
17216
|
};
|
|
17203
17217
|
});
|
|
17204
17218
|
var StyledBadgeWrapper = index$a(View)({
|