@hero-design/rn 8.61.1 → 8.61.3
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 -1
- package/CHANGELOG.md +17 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +776 -754
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +239 -217
- package/package.json +6 -5
- package/sonar-project.properties +1 -0
- package/src/components/Calendar/StyledCalendar.tsx +2 -2
- package/src/components/Carousel/CardCarousel.tsx +2 -2
- package/src/components/Carousel/CarouselItem.tsx +3 -3
- package/src/components/Carousel/StyledCarousel.tsx +7 -7
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +1 -0
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +152 -9
- package/src/components/Success/__tests__/index.spec.tsx +28 -3
- package/src/components/Success/index.tsx +4 -3
- package/src/components/TextInput/__tests__/index.spec.tsx +1 -6
- package/tsconfig.json +12 -4
- package/types/components/Carousel/StyledCarousel.d.ts +3 -3
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Success/index.d.ts +1 -1
- package/types/components/TextInput/index.d.ts +3 -3
package/es/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as reactNative from 'react-native';
|
|
2
2
|
import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, UIManager, LayoutAnimation, TouchableOpacity, Text as Text$1, Easing, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, TouchableHighlight, ScrollView, Modal as Modal$1, FlatList, TextInput as TextInput$1, PanResponder, BackHandler, InteractionManager, useWindowDimensions, Keyboard, SectionList, RefreshControl as RefreshControl$1 } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import React__default, { useMemo, useEffect, useCallback, useRef, useState, createContext, useContext, forwardRef, memo, useReducer, useLayoutEffect, useImperativeHandle, isValidElement } from 'react';
|
|
4
5
|
import { createIconSet } from 'react-native-vector-icons';
|
|
5
6
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
6
7
|
import { MonthYearPickerViewIOS, MonthYearPickerDialogueAndroid } from '@hero-design/react-native-month-year-picker';
|
|
@@ -3840,6 +3841,7 @@ var RULESET = 'rule';
|
|
|
3840
3841
|
var DECLARATION = 'decl';
|
|
3841
3842
|
var IMPORT = '@import';
|
|
3842
3843
|
var KEYFRAMES = '@keyframes';
|
|
3844
|
+
var LAYER = '@layer';
|
|
3843
3845
|
|
|
3844
3846
|
/**
|
|
3845
3847
|
* @param {number}
|
|
@@ -3865,7 +3867,7 @@ var assign = Object.assign;
|
|
|
3865
3867
|
* @return {number}
|
|
3866
3868
|
*/
|
|
3867
3869
|
function hash(value, length) {
|
|
3868
|
-
return (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3);
|
|
3870
|
+
return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
3869
3871
|
}
|
|
3870
3872
|
|
|
3871
3873
|
/**
|
|
@@ -4219,7 +4221,7 @@ function parse$2(value, root, parent, rule, rules, rulesets, pseudo, points, dec
|
|
|
4219
4221
|
while (scanning) switch (previous = character, character = next()) {
|
|
4220
4222
|
// (
|
|
4221
4223
|
case 40:
|
|
4222
|
-
if (previous != 108 && characters
|
|
4224
|
+
if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
4223
4225
|
if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1) ampersand = -1;
|
|
4224
4226
|
break;
|
|
4225
4227
|
}
|
|
@@ -4265,6 +4267,7 @@ function parse$2(value, root, parent, rule, rules, rulesets, pseudo, points, dec
|
|
|
4265
4267
|
scanning = 0;
|
|
4266
4268
|
// ;
|
|
4267
4269
|
case 59 + offset:
|
|
4270
|
+
if (ampersand == -1) characters = replace(characters, /\f/g, '');
|
|
4268
4271
|
if (property > 0 && strlen(characters) - length) append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
|
|
4269
4272
|
break;
|
|
4270
4273
|
// @ ;
|
|
@@ -4273,9 +4276,10 @@ function parse$2(value, root, parent, rule, rules, rulesets, pseudo, points, dec
|
|
|
4273
4276
|
// { rule/at-rule
|
|
4274
4277
|
default:
|
|
4275
4278
|
append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets);
|
|
4276
|
-
if (character === 123) if (offset === 0) parse$2(characters, root, reference, reference, props, rulesets, length, points, children);else switch (atrule) {
|
|
4277
|
-
// d m s
|
|
4279
|
+
if (character === 123) if (offset === 0) parse$2(characters, root, reference, reference, props, rulesets, length, points, children);else switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
4280
|
+
// d l m s
|
|
4278
4281
|
case 100:
|
|
4282
|
+
case 108:
|
|
4279
4283
|
case 109:
|
|
4280
4284
|
case 115:
|
|
4281
4285
|
parse$2(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
|
|
@@ -4357,157 +4361,6 @@ function declaration(value, root, parent, length) {
|
|
|
4357
4361
|
return node$1(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length);
|
|
4358
4362
|
}
|
|
4359
4363
|
|
|
4360
|
-
/**
|
|
4361
|
-
* @param {string} value
|
|
4362
|
-
* @param {number} length
|
|
4363
|
-
* @return {string}
|
|
4364
|
-
*/
|
|
4365
|
-
function prefix(value, length) {
|
|
4366
|
-
switch (hash(value, length)) {
|
|
4367
|
-
// color-adjust
|
|
4368
|
-
case 5103:
|
|
4369
|
-
return WEBKIT + 'print-' + value + value;
|
|
4370
|
-
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
4371
|
-
case 5737:
|
|
4372
|
-
case 4201:
|
|
4373
|
-
case 3177:
|
|
4374
|
-
case 3433:
|
|
4375
|
-
case 1641:
|
|
4376
|
-
case 4457:
|
|
4377
|
-
case 2921:
|
|
4378
|
-
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
4379
|
-
case 5572:
|
|
4380
|
-
case 6356:
|
|
4381
|
-
case 5844:
|
|
4382
|
-
case 3191:
|
|
4383
|
-
case 6645:
|
|
4384
|
-
case 3005:
|
|
4385
|
-
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
4386
|
-
case 6391:
|
|
4387
|
-
case 5879:
|
|
4388
|
-
case 5623:
|
|
4389
|
-
case 6135:
|
|
4390
|
-
case 4599:
|
|
4391
|
-
case 4855:
|
|
4392
|
-
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
4393
|
-
case 4215:
|
|
4394
|
-
case 6389:
|
|
4395
|
-
case 5109:
|
|
4396
|
-
case 5365:
|
|
4397
|
-
case 5621:
|
|
4398
|
-
case 3829:
|
|
4399
|
-
return WEBKIT + value + value;
|
|
4400
|
-
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
4401
|
-
case 5349:
|
|
4402
|
-
case 4246:
|
|
4403
|
-
case 4810:
|
|
4404
|
-
case 6968:
|
|
4405
|
-
case 2756:
|
|
4406
|
-
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
4407
|
-
// flex, flex-direction
|
|
4408
|
-
case 6828:
|
|
4409
|
-
case 4268:
|
|
4410
|
-
return WEBKIT + value + MS + value + value;
|
|
4411
|
-
// order
|
|
4412
|
-
case 6165:
|
|
4413
|
-
return WEBKIT + value + MS + 'flex-' + value + value;
|
|
4414
|
-
// align-items
|
|
4415
|
-
case 5187:
|
|
4416
|
-
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
4417
|
-
// align-self
|
|
4418
|
-
case 5443:
|
|
4419
|
-
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
|
4420
|
-
// align-content
|
|
4421
|
-
case 4675:
|
|
4422
|
-
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
|
4423
|
-
// flex-shrink
|
|
4424
|
-
case 5548:
|
|
4425
|
-
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
4426
|
-
// flex-basis
|
|
4427
|
-
case 5292:
|
|
4428
|
-
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
4429
|
-
// flex-grow
|
|
4430
|
-
case 6060:
|
|
4431
|
-
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
4432
|
-
// transition
|
|
4433
|
-
case 4554:
|
|
4434
|
-
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
4435
|
-
// cursor
|
|
4436
|
-
case 6187:
|
|
4437
|
-
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
4438
|
-
// background, background-image
|
|
4439
|
-
case 5495:
|
|
4440
|
-
case 3959:
|
|
4441
|
-
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
4442
|
-
// justify-content
|
|
4443
|
-
case 4968:
|
|
4444
|
-
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
4445
|
-
// (margin|padding)-inline-(start|end)
|
|
4446
|
-
case 4095:
|
|
4447
|
-
case 3583:
|
|
4448
|
-
case 4068:
|
|
4449
|
-
case 2532:
|
|
4450
|
-
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
4451
|
-
// (min|max)?(width|height|inline-size|block-size)
|
|
4452
|
-
case 8116:
|
|
4453
|
-
case 7059:
|
|
4454
|
-
case 5753:
|
|
4455
|
-
case 5535:
|
|
4456
|
-
case 5445:
|
|
4457
|
-
case 5701:
|
|
4458
|
-
case 4933:
|
|
4459
|
-
case 4677:
|
|
4460
|
-
case 5533:
|
|
4461
|
-
case 5789:
|
|
4462
|
-
case 5021:
|
|
4463
|
-
case 4765:
|
|
4464
|
-
// stretch, max-content, min-content, fill-available
|
|
4465
|
-
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
4466
|
-
// (m)ax-content, (m)in-content
|
|
4467
|
-
case 109:
|
|
4468
|
-
// -
|
|
4469
|
-
if (charat(value, length + 4) !== 45) break;
|
|
4470
|
-
// (f)ill-available, (f)it-content
|
|
4471
|
-
case 102:
|
|
4472
|
-
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
4473
|
-
// (s)tretch
|
|
4474
|
-
case 115:
|
|
4475
|
-
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
|
4476
|
-
}
|
|
4477
|
-
break;
|
|
4478
|
-
// position: sticky
|
|
4479
|
-
case 4949:
|
|
4480
|
-
// (s)ticky?
|
|
4481
|
-
if (charat(value, length + 1) !== 115) break;
|
|
4482
|
-
// display: (flex|inline-flex)
|
|
4483
|
-
case 6444:
|
|
4484
|
-
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
|
4485
|
-
// stic(k)y
|
|
4486
|
-
case 107:
|
|
4487
|
-
return replace(value, ':', ':' + WEBKIT) + value;
|
|
4488
|
-
// (inline-)?fl(e)x
|
|
4489
|
-
case 101:
|
|
4490
|
-
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
4491
|
-
}
|
|
4492
|
-
break;
|
|
4493
|
-
// writing-mode
|
|
4494
|
-
case 5936:
|
|
4495
|
-
switch (charat(value, length + 11)) {
|
|
4496
|
-
// vertical-l(r)
|
|
4497
|
-
case 114:
|
|
4498
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
4499
|
-
// vertical-r(l)
|
|
4500
|
-
case 108:
|
|
4501
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
4502
|
-
// horizontal(-)tb
|
|
4503
|
-
case 45:
|
|
4504
|
-
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
4505
|
-
}
|
|
4506
|
-
return WEBKIT + value + MS + value + value;
|
|
4507
|
-
}
|
|
4508
|
-
return value;
|
|
4509
|
-
}
|
|
4510
|
-
|
|
4511
4364
|
/**
|
|
4512
4365
|
* @param {object[]} children
|
|
4513
4366
|
* @param {function} callback
|
|
@@ -4529,6 +4382,8 @@ function serialize(children, callback) {
|
|
|
4529
4382
|
*/
|
|
4530
4383
|
function stringify$2(element, index, children, callback) {
|
|
4531
4384
|
switch (element.type) {
|
|
4385
|
+
case LAYER:
|
|
4386
|
+
if (element.children.length) break;
|
|
4532
4387
|
case IMPORT:
|
|
4533
4388
|
case DECLARATION:
|
|
4534
4389
|
return element["return"] = element["return"] || element.value;
|
|
@@ -4565,45 +4420,6 @@ function rulesheet(callback) {
|
|
|
4565
4420
|
};
|
|
4566
4421
|
}
|
|
4567
4422
|
|
|
4568
|
-
/**
|
|
4569
|
-
* @param {object} element
|
|
4570
|
-
* @param {number} index
|
|
4571
|
-
* @param {object[]} children
|
|
4572
|
-
* @param {function} callback
|
|
4573
|
-
*/
|
|
4574
|
-
function prefixer(element, index, children, callback) {
|
|
4575
|
-
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
|
4576
|
-
case DECLARATION:
|
|
4577
|
-
element["return"] = prefix(element.value, element.length);
|
|
4578
|
-
break;
|
|
4579
|
-
case KEYFRAMES:
|
|
4580
|
-
return serialize([copy(element, {
|
|
4581
|
-
value: replace(element.value, '@', '@' + WEBKIT)
|
|
4582
|
-
})], callback);
|
|
4583
|
-
case RULESET:
|
|
4584
|
-
if (element.length) return combine(element.props, function (value) {
|
|
4585
|
-
switch (match$2(value, /(::plac\w+|:read-\w+)/)) {
|
|
4586
|
-
// :read-(only|write)
|
|
4587
|
-
case ':read-only':
|
|
4588
|
-
case ':read-write':
|
|
4589
|
-
return serialize([copy(element, {
|
|
4590
|
-
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
4591
|
-
})], callback);
|
|
4592
|
-
// :placeholder
|
|
4593
|
-
case '::placeholder':
|
|
4594
|
-
return serialize([copy(element, {
|
|
4595
|
-
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
4596
|
-
}), copy(element, {
|
|
4597
|
-
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
4598
|
-
}), copy(element, {
|
|
4599
|
-
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
4600
|
-
})], callback);
|
|
4601
|
-
}
|
|
4602
|
-
return '';
|
|
4603
|
-
});
|
|
4604
|
-
}
|
|
4605
|
-
}
|
|
4606
|
-
|
|
4607
4423
|
var weakMemoize = function weakMemoize(func) {
|
|
4608
4424
|
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
4609
4425
|
var cache = new WeakMap();
|
|
@@ -4725,6 +4541,211 @@ var removeLabel = function removeLabel(element) {
|
|
|
4725
4541
|
}
|
|
4726
4542
|
}
|
|
4727
4543
|
};
|
|
4544
|
+
|
|
4545
|
+
/* eslint-disable no-fallthrough */
|
|
4546
|
+
|
|
4547
|
+
function prefix(value, length) {
|
|
4548
|
+
switch (hash(value, length)) {
|
|
4549
|
+
// color-adjust
|
|
4550
|
+
case 5103:
|
|
4551
|
+
return WEBKIT + 'print-' + value + value;
|
|
4552
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
4553
|
+
|
|
4554
|
+
case 5737:
|
|
4555
|
+
case 4201:
|
|
4556
|
+
case 3177:
|
|
4557
|
+
case 3433:
|
|
4558
|
+
case 1641:
|
|
4559
|
+
case 4457:
|
|
4560
|
+
case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
4561
|
+
|
|
4562
|
+
case 5572:
|
|
4563
|
+
case 6356:
|
|
4564
|
+
case 5844:
|
|
4565
|
+
case 3191:
|
|
4566
|
+
case 6645:
|
|
4567
|
+
case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
4568
|
+
|
|
4569
|
+
case 6391:
|
|
4570
|
+
case 5879:
|
|
4571
|
+
case 5623:
|
|
4572
|
+
case 6135:
|
|
4573
|
+
case 4599:
|
|
4574
|
+
case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
4575
|
+
|
|
4576
|
+
case 4215:
|
|
4577
|
+
case 6389:
|
|
4578
|
+
case 5109:
|
|
4579
|
+
case 5365:
|
|
4580
|
+
case 5621:
|
|
4581
|
+
case 3829:
|
|
4582
|
+
return WEBKIT + value + value;
|
|
4583
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
4584
|
+
|
|
4585
|
+
case 5349:
|
|
4586
|
+
case 4246:
|
|
4587
|
+
case 4810:
|
|
4588
|
+
case 6968:
|
|
4589
|
+
case 2756:
|
|
4590
|
+
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
4591
|
+
// flex, flex-direction
|
|
4592
|
+
|
|
4593
|
+
case 6828:
|
|
4594
|
+
case 4268:
|
|
4595
|
+
return WEBKIT + value + MS + value + value;
|
|
4596
|
+
// order
|
|
4597
|
+
|
|
4598
|
+
case 6165:
|
|
4599
|
+
return WEBKIT + value + MS + 'flex-' + value + value;
|
|
4600
|
+
// align-items
|
|
4601
|
+
|
|
4602
|
+
case 5187:
|
|
4603
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
|
|
4604
|
+
// align-self
|
|
4605
|
+
|
|
4606
|
+
case 5443:
|
|
4607
|
+
return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
|
|
4608
|
+
// align-content
|
|
4609
|
+
|
|
4610
|
+
case 4675:
|
|
4611
|
+
return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
|
|
4612
|
+
// flex-shrink
|
|
4613
|
+
|
|
4614
|
+
case 5548:
|
|
4615
|
+
return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
|
|
4616
|
+
// flex-basis
|
|
4617
|
+
|
|
4618
|
+
case 5292:
|
|
4619
|
+
return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
|
|
4620
|
+
// flex-grow
|
|
4621
|
+
|
|
4622
|
+
case 6060:
|
|
4623
|
+
return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
|
|
4624
|
+
// transition
|
|
4625
|
+
|
|
4626
|
+
case 4554:
|
|
4627
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
|
|
4628
|
+
// cursor
|
|
4629
|
+
|
|
4630
|
+
case 6187:
|
|
4631
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
|
|
4632
|
+
// background, background-image
|
|
4633
|
+
|
|
4634
|
+
case 5495:
|
|
4635
|
+
case 3959:
|
|
4636
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
|
|
4637
|
+
// justify-content
|
|
4638
|
+
|
|
4639
|
+
case 4968:
|
|
4640
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
|
|
4641
|
+
// (margin|padding)-inline-(start|end)
|
|
4642
|
+
|
|
4643
|
+
case 4095:
|
|
4644
|
+
case 3583:
|
|
4645
|
+
case 4068:
|
|
4646
|
+
case 2532:
|
|
4647
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
|
|
4648
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
4649
|
+
|
|
4650
|
+
case 8116:
|
|
4651
|
+
case 7059:
|
|
4652
|
+
case 5753:
|
|
4653
|
+
case 5535:
|
|
4654
|
+
case 5445:
|
|
4655
|
+
case 5701:
|
|
4656
|
+
case 4933:
|
|
4657
|
+
case 4677:
|
|
4658
|
+
case 5533:
|
|
4659
|
+
case 5789:
|
|
4660
|
+
case 5021:
|
|
4661
|
+
case 4765:
|
|
4662
|
+
// stretch, max-content, min-content, fill-available
|
|
4663
|
+
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
4664
|
+
// (m)ax-content, (m)in-content
|
|
4665
|
+
case 109:
|
|
4666
|
+
// -
|
|
4667
|
+
if (charat(value, length + 4) !== 45) break;
|
|
4668
|
+
// (f)ill-available, (f)it-content
|
|
4669
|
+
|
|
4670
|
+
case 102:
|
|
4671
|
+
return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
|
|
4672
|
+
// (s)tretch
|
|
4673
|
+
|
|
4674
|
+
case 115:
|
|
4675
|
+
return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
|
|
4676
|
+
}
|
|
4677
|
+
break;
|
|
4678
|
+
// position: sticky
|
|
4679
|
+
|
|
4680
|
+
case 4949:
|
|
4681
|
+
// (s)ticky?
|
|
4682
|
+
if (charat(value, length + 1) !== 115) break;
|
|
4683
|
+
// display: (flex|inline-flex)
|
|
4684
|
+
|
|
4685
|
+
case 6444:
|
|
4686
|
+
switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
|
|
4687
|
+
// stic(k)y
|
|
4688
|
+
case 107:
|
|
4689
|
+
return replace(value, ':', ':' + WEBKIT) + value;
|
|
4690
|
+
// (inline-)?fl(e)x
|
|
4691
|
+
|
|
4692
|
+
case 101:
|
|
4693
|
+
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
|
|
4694
|
+
}
|
|
4695
|
+
break;
|
|
4696
|
+
// writing-mode
|
|
4697
|
+
|
|
4698
|
+
case 5936:
|
|
4699
|
+
switch (charat(value, length + 11)) {
|
|
4700
|
+
// vertical-l(r)
|
|
4701
|
+
case 114:
|
|
4702
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
|
|
4703
|
+
// vertical-r(l)
|
|
4704
|
+
|
|
4705
|
+
case 108:
|
|
4706
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
|
|
4707
|
+
// horizontal(-)tb
|
|
4708
|
+
|
|
4709
|
+
case 45:
|
|
4710
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
|
|
4711
|
+
}
|
|
4712
|
+
return WEBKIT + value + MS + value + value;
|
|
4713
|
+
}
|
|
4714
|
+
return value;
|
|
4715
|
+
}
|
|
4716
|
+
var prefixer = function prefixer(element, index, children, callback) {
|
|
4717
|
+
if (element.length > -1) if (!element["return"]) switch (element.type) {
|
|
4718
|
+
case DECLARATION:
|
|
4719
|
+
element["return"] = prefix(element.value, element.length);
|
|
4720
|
+
break;
|
|
4721
|
+
case KEYFRAMES:
|
|
4722
|
+
return serialize([copy(element, {
|
|
4723
|
+
value: replace(element.value, '@', '@' + WEBKIT)
|
|
4724
|
+
})], callback);
|
|
4725
|
+
case RULESET:
|
|
4726
|
+
if (element.length) return combine(element.props, function (value) {
|
|
4727
|
+
switch (match$2(value, /(::plac\w+|:read-\w+)/)) {
|
|
4728
|
+
// :read-(only|write)
|
|
4729
|
+
case ':read-only':
|
|
4730
|
+
case ':read-write':
|
|
4731
|
+
return serialize([copy(element, {
|
|
4732
|
+
props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
|
|
4733
|
+
})], callback);
|
|
4734
|
+
// :placeholder
|
|
4735
|
+
|
|
4736
|
+
case '::placeholder':
|
|
4737
|
+
return serialize([copy(element, {
|
|
4738
|
+
props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
|
|
4739
|
+
}), copy(element, {
|
|
4740
|
+
props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
|
|
4741
|
+
}), copy(element, {
|
|
4742
|
+
props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
|
|
4743
|
+
})], callback);
|
|
4744
|
+
}
|
|
4745
|
+
return '';
|
|
4746
|
+
});
|
|
4747
|
+
}
|
|
4748
|
+
};
|
|
4728
4749
|
var defaultStylisPlugins = [prefixer];
|
|
4729
4750
|
var createCache = function createCache(options) {
|
|
4730
4751
|
var key = options.key;
|
|
@@ -4820,7 +4841,7 @@ function _extends() {
|
|
|
4820
4841
|
return _extends.apply(this, arguments);
|
|
4821
4842
|
}
|
|
4822
4843
|
|
|
4823
|
-
var EmotionCacheContext = /* #__PURE__ */createContext(
|
|
4844
|
+
var EmotionCacheContext = /* #__PURE__ */React.createContext(
|
|
4824
4845
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
4825
4846
|
// because this module is primarily intended for the browser and node
|
|
4826
4847
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -4831,9 +4852,9 @@ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
|
|
|
4831
4852
|
key: 'css'
|
|
4832
4853
|
}) : null);
|
|
4833
4854
|
EmotionCacheContext.Provider;
|
|
4834
|
-
var ThemeContext = /* #__PURE__ */createContext({});
|
|
4855
|
+
var ThemeContext = /* #__PURE__ */React.createContext({});
|
|
4835
4856
|
var useTheme$1 = function useTheme() {
|
|
4836
|
-
return useContext(ThemeContext);
|
|
4857
|
+
return React.useContext(ThemeContext);
|
|
4837
4858
|
};
|
|
4838
4859
|
var getTheme = function getTheme(outerTheme, theme) {
|
|
4839
4860
|
if (typeof theme === 'function') {
|
|
@@ -4848,11 +4869,11 @@ var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
|
|
|
4848
4869
|
});
|
|
4849
4870
|
});
|
|
4850
4871
|
var ThemeProvider$1 = function ThemeProvider(props) {
|
|
4851
|
-
var theme = useContext(ThemeContext);
|
|
4872
|
+
var theme = React.useContext(ThemeContext);
|
|
4852
4873
|
if (props.theme !== theme) {
|
|
4853
4874
|
theme = createCacheWithTheme(theme)(props.theme);
|
|
4854
4875
|
}
|
|
4855
|
-
return /*#__PURE__*/createElement(ThemeContext.Provider, {
|
|
4876
|
+
return /*#__PURE__*/React.createElement(ThemeContext.Provider, {
|
|
4856
4877
|
value: theme
|
|
4857
4878
|
}, props.children);
|
|
4858
4879
|
};
|
|
@@ -4880,15 +4901,15 @@ var ThemeSwitcher = function ThemeSwitcher(_ref) {
|
|
|
4880
4901
|
return getTheme$1(scale$1, swagDarkSystemPalette);
|
|
4881
4902
|
}
|
|
4882
4903
|
}, [name]);
|
|
4883
|
-
return /*#__PURE__*/
|
|
4904
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
4884
4905
|
theme: theme
|
|
4885
4906
|
}, children);
|
|
4886
4907
|
};
|
|
4887
4908
|
var withTheme = function withTheme(C, themeName) {
|
|
4888
4909
|
return function (props) {
|
|
4889
|
-
return /*#__PURE__*/
|
|
4910
|
+
return /*#__PURE__*/React__default.createElement(ThemeSwitcher, {
|
|
4890
4911
|
name: themeName
|
|
4891
|
-
}, /*#__PURE__*/
|
|
4912
|
+
}, /*#__PURE__*/React__default.createElement(C, props));
|
|
4892
4913
|
};
|
|
4893
4914
|
};
|
|
4894
4915
|
|
|
@@ -6518,7 +6539,7 @@ function createStyled(StyleSheet, _temp) {
|
|
|
6518
6539
|
} // do we really want to use the same infra as the web since it only really uses theming?
|
|
6519
6540
|
// $FlowFixMe
|
|
6520
6541
|
|
|
6521
|
-
var Styled = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
6542
|
+
var Styled = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
6522
6543
|
var finalTag = shouldUseAs && props.as || component;
|
|
6523
6544
|
var mergedProps = props;
|
|
6524
6545
|
if (props.theme == null) {
|
|
@@ -6526,7 +6547,7 @@ function createStyled(StyleSheet, _temp) {
|
|
|
6526
6547
|
for (var key in props) {
|
|
6527
6548
|
mergedProps[key] = props[key];
|
|
6528
6549
|
}
|
|
6529
|
-
mergedProps.theme = useContext(ThemeContext);
|
|
6550
|
+
mergedProps.theme = React.useContext(ThemeContext);
|
|
6530
6551
|
}
|
|
6531
6552
|
var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getShouldForwardProp(finalTag) : defaultShouldForwardProp;
|
|
6532
6553
|
var newProps = {};
|
|
@@ -6539,7 +6560,7 @@ function createStyled(StyleSheet, _temp) {
|
|
|
6539
6560
|
newProps.style = [css.apply(mergedProps, styles), props.style];
|
|
6540
6561
|
newProps.ref = ref; // $FlowFixMe
|
|
6541
6562
|
|
|
6542
|
-
return /*#__PURE__*/createElement(finalTag, newProps);
|
|
6563
|
+
return /*#__PURE__*/React.createElement(finalTag, newProps);
|
|
6543
6564
|
}); // $FlowFixMe
|
|
6544
6565
|
|
|
6545
6566
|
Styled.withComponent = function (newComponent) {
|
|
@@ -6572,14 +6593,14 @@ var index$9 = components.reduce(function (acc, comp) {
|
|
|
6572
6593
|
|
|
6573
6594
|
// Get previous state value
|
|
6574
6595
|
var usePrevious = function usePrevious(value) {
|
|
6575
|
-
var ref =
|
|
6576
|
-
|
|
6596
|
+
var ref = React__default.useRef();
|
|
6597
|
+
React__default.useEffect(function () {
|
|
6577
6598
|
ref.current = value;
|
|
6578
6599
|
}, [value]);
|
|
6579
6600
|
return ref.current;
|
|
6580
6601
|
};
|
|
6581
6602
|
function usePropsOrInternalState(initialState, state, setState) {
|
|
6582
|
-
var _React$useState =
|
|
6603
|
+
var _React$useState = React__default.useState(initialState),
|
|
6583
6604
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
6584
6605
|
internalState = _React$useState2[0],
|
|
6585
6606
|
setInternalState = _React$useState2[1];
|
|
@@ -6627,11 +6648,11 @@ var Collapse = function Collapse(_ref) {
|
|
|
6627
6648
|
testID = _ref.testID,
|
|
6628
6649
|
style = _ref.style,
|
|
6629
6650
|
onLayout = _ref.onLayout;
|
|
6630
|
-
var _React$useState =
|
|
6651
|
+
var _React$useState = React__default.useState(0),
|
|
6631
6652
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
6632
6653
|
contentHeight = _React$useState2[0],
|
|
6633
6654
|
setContentHeight = _React$useState2[1];
|
|
6634
|
-
var _React$useState3 =
|
|
6655
|
+
var _React$useState3 = React__default.useState(false),
|
|
6635
6656
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
6636
6657
|
componentMounted = _React$useState4[0],
|
|
6637
6658
|
setComponentMounted = _React$useState4[1];
|
|
@@ -6649,13 +6670,13 @@ var Collapse = function Collapse(_ref) {
|
|
|
6649
6670
|
setComponentMounted(true);
|
|
6650
6671
|
onLayout === null || onLayout === void 0 || onLayout(e);
|
|
6651
6672
|
}, []);
|
|
6652
|
-
return /*#__PURE__*/
|
|
6673
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$d, {
|
|
6653
6674
|
style: {
|
|
6654
6675
|
height: open ? contentHeight : 0
|
|
6655
6676
|
},
|
|
6656
6677
|
onLayout: onCollapseLayout,
|
|
6657
6678
|
testID: testID
|
|
6658
|
-
}, /*#__PURE__*/
|
|
6679
|
+
}, /*#__PURE__*/React__default.createElement(StyledHiddenWrapper, null, /*#__PURE__*/React__default.createElement(StyledChildWrapper, {
|
|
6659
6680
|
onLayout: function onLayout(event) {
|
|
6660
6681
|
return fetchMaxHeight(event.nativeEvent.layout);
|
|
6661
6682
|
},
|
|
@@ -6731,7 +6752,7 @@ var Text = function Text(_ref) {
|
|
|
6731
6752
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6732
6753
|
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
6733
6754
|
useDeprecation('Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.');
|
|
6734
|
-
return /*#__PURE__*/
|
|
6755
|
+
return /*#__PURE__*/React__default.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6735
6756
|
themeFontSize: fontSize,
|
|
6736
6757
|
themeFontWeight: fontWeight,
|
|
6737
6758
|
themeIntent: intent,
|
|
@@ -6769,7 +6790,7 @@ var Caption = function Caption(_ref) {
|
|
|
6769
6790
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6770
6791
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6771
6792
|
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
6772
|
-
return /*#__PURE__*/
|
|
6793
|
+
return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
6773
6794
|
themeFontWeight: fontWeight,
|
|
6774
6795
|
themeIntent: intent,
|
|
6775
6796
|
allowFontScaling: allowFontScaling
|
|
@@ -6795,7 +6816,7 @@ var Label = function Label(_ref) {
|
|
|
6795
6816
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6796
6817
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6797
6818
|
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
6798
|
-
return /*#__PURE__*/
|
|
6819
|
+
return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
6799
6820
|
themeIntent: intent,
|
|
6800
6821
|
allowFontScaling: allowFontScaling
|
|
6801
6822
|
}), children);
|
|
@@ -6827,7 +6848,7 @@ var Title = function Title(_ref) {
|
|
|
6827
6848
|
_ref$typeface = _ref.typeface,
|
|
6828
6849
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6829
6850
|
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
6830
|
-
return /*#__PURE__*/
|
|
6851
|
+
return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
6831
6852
|
themeLevel: level,
|
|
6832
6853
|
themeTypeface: typeface,
|
|
6833
6854
|
themeIntent: intent,
|
|
@@ -6873,7 +6894,7 @@ var Body = function Body(_ref) {
|
|
|
6873
6894
|
_ref$variant = _ref.variant,
|
|
6874
6895
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
6875
6896
|
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
6876
|
-
return /*#__PURE__*/
|
|
6897
|
+
return /*#__PURE__*/React__default.createElement(StyledBody, _extends$1({}, nativeProps, {
|
|
6877
6898
|
themeTypeface: typeface,
|
|
6878
6899
|
themeIntent: intent,
|
|
6879
6900
|
themeVariant: variant,
|
|
@@ -6890,7 +6911,7 @@ var Typography = {
|
|
|
6890
6911
|
};
|
|
6891
6912
|
|
|
6892
6913
|
// 🔴 DO NOT EDIT — This file is generated automatically.
|
|
6893
|
-
var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', 'bookmark', 'box-check', 'box', 'bpay', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'double-buildings', 'edit-template', 'envelope', 'exclude', 'expand-content', 'expense', 'explore_nearby', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'hero-points', 'home', 'image', 'import', 'incident-siren', 'instapay-daily', 'instapay-now', 'instapay', 'list', 'loading-2', 'loading', 'location-on', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'near-me', 'node', 'open-folder', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'swipe-right', 'switch', 'tag', 'target', 'teams', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'ai-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'application-outlined', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'bill-management-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'call-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-outlined', 'cashback-outlined', 'charging-station-outlined', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cup-outlined', 'dentistry-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-box-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-credit-card-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-box-outlined', 'download-outlined', 'edit-template-outlined', 'email-outlined', 'enter-arrow', 'envelope-outlined', 'expense-approval-outlined', 'expense-outlined', 'explore-outlined', 'extension-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'fastfood-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-certified-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'folder-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'hand-holding-user-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'job-search-outlined', 'leave-approval-outlined', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'local_mall_outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'map-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'resume-outlined', 'return-arrow', 'rostering-outlined', 'safety-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined-2', 'share-outlined', 'shopping_basket_outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'smart-match-outlined', 'sparkle-outlined', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-outlined', 'unavailability-outlined', 'unavailable', 'underline', 'union-outlined', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'volunteer-outlined', 'wallet-outlined'];
|
|
6914
|
+
var IconList = ['activate', 'add-emoji', 'add-person', 'adjustment', 'alignment', 'antenna', 'archive', 'assignment-warning', 'bank', 'bell', 'billing', 'bolt', 'bookmark-added', 'bookmark', 'box-check', 'box', 'bpay', 'buildings', 'cake', 'calendar-clock', 'calendar', 'candy-box-menu', 'caret-down-small', 'caret-down', 'caret-left-small', 'caret-left', 'caret-right-small', 'caret-right', 'caret-up-small', 'caret-up', 'check-radio', 'circle-add', 'circle-cancel', 'circle-check', 'circle-down', 'circle-info', 'circle-left', 'circle-ok', 'circle-pencil', 'circle-question', 'circle-remove', 'circle-right', 'circle-up', 'circle-warning', 'clock-3', 'clock', 'cloud-download', 'cloud-upload', 'cog', 'coin', 'contacts', 'credit-card', 'diamond', 'direction-arrows', 'directory', 'document', 'dollar-coin-shine', 'double-buildings', 'edit-template', 'envelope', 'exclude', 'expand-content', 'expense', 'explore_nearby', 'eye-circle', 'eye-invisible', 'eye', 'face-meh', 'face-sad', 'face-smiley', 'feed', 'feedbacks', 'file-certified', 'file-clone', 'file-copy', 'file-csv', 'file-dispose', 'file-doc', 'file-excel', 'file-export', 'file-lock', 'file-pdf', 'file-powerpoint', 'file-search', 'file-secured', 'file-sheets', 'file-slide', 'file-verified', 'file-word', 'file', 'filter', 'folder-user', 'folder', 'format-bold', 'format-heading1', 'format-heading2', 'format-italic', 'format-list-bulleted', 'format-list-numbered', 'format-underlined', 'funnel-filter', 'global-dollar', 'globe', 'graduation-cap', 'graph', 'happy-sun', 'health-bag', 'heart', 'hero-points', 'home', 'image', 'import', 'incident-siren', 'instapay-daily', 'instapay-now', 'instapay', 'list', 'loading-2', 'loading', 'location-on', 'location', 'lock', 'looks-one', 'looks-two', 'media-content', 'menu', 'money-notes', 'moneybag', 'moon', 'multiple-stars', 'multiple-users', 'near-me', 'node', 'open-folder', 'paperclip', 'payment-summary', 'pencil', 'phone', 'piggy-bank', 'plane-up', 'plane', 'play-circle', 'print', 'raising-hands', 'reply-arrow', 'reply', 'reschedule', 'rostering', 'salary-sacrifice', 'save', 'schedule-send', 'schedule', 'search-person', 'send', 'speaker-active', 'speaker', 'star-award', 'star-badge', 'star-circle', 'star-medal', 'star', 'steps-circle', 'stopwatch', 'suitcase', 'surfing', 'survey', 'swag-pillar-benefit', 'swag-pillar-career', 'swag-pillar-money', 'swag-pillar-work', 'swag', 'swipe-right', 'switch', 'tag', 'target', 'teams', 'timesheet', 'touch-id', 'trash-bin', 'unlock', 'user', 'video-1', 'video-2', 'wallet', 'warning', 'activate-outlined', 'add-credit-card-outlined', 'add-person-outlined', 'add-section-outlined', 'add-time-outlined', 'add', 'adjustment-outlined', 'ai-outlined', 'alignment-2-outlined', 'alignment-outlined', 'all-caps', 'application-outlined', 'arrow-down', 'arrow-downwards', 'arrow-left', 'arrow-leftwards', 'arrow-right', 'arrow-rightwards', 'arrow-up', 'arrow-upwards', 'article-outlined', 'at-sign', 'auto-graph-outlined', 'beer-outlined', 'bell-active-outlined', 'bell-outlined', 'bell-slash-outlined', 'bill-management-outlined', 'billing-outlined', 'body-outlined', 'bold', 'bolt-outlined', 'book-outlined', 'bookmark-added-outlined', 'bookmark-outlined', 'box-check-outlined', 'box-outlined', 'bullet-points', 'cake-outlined', 'calendar-dates-outlined', 'calendar-star-outlined', 'call-outlined', 'call-split-outlined', 'camera-outlined', 'cancel', 'car-forward-outlined', 'cashback-outlined', 'charging-station-outlined', 'chat-bubble-outlined', 'chat-unread-outlined', 'checkmark', 'circle-add-outlined', 'circle-cancel-outlined', 'circle-down-outlined', 'circle-info-outlined', 'circle-left-outlined', 'circle-ok-outlined', 'circle-question-outlined', 'circle-remove-outlined', 'circle-right-outlined', 'circle-up-outlined', 'circle-warning-outlined', 'clock-2-outlined', 'clock-outlined', 'cog-outlined', 'coin-outlined', 'coin-super-outlined', 'comment-outlined', 'contacts-outlined', 'contacts-user-outlined', 'credit-card-outlined', 'cup-outlined', 'dentistry-outlined', 'direction-arrows-outlined', 'directory-outlined', 'document-outlined', 'dollar-box-outlined', 'dollar-card-outlined', 'dollar-coin-shine-outlined', 'dollar-credit-card-outlined', 'dollar-sign', 'double-buildings-outlined', 'double-left-arrows', 'double-right-arrows', 'download-box-outlined', 'download-outlined', 'edit-template-outlined', 'email-outlined', 'enter-arrow', 'envelope-outlined', 'expense-approval-outlined', 'expense-outlined', 'explore-outlined', 'extension-outlined', 'external-link', 'eye-invisible-outlined', 'eye-outlined', 'face-id', 'face-meh-outlined', 'face-open-smiley-outlined', 'face-sad-outlined', 'face-smiley-outlined', 'fastfood-outlined', 'feed-outlined', 'file-certified-outlined', 'file-clone-outlined', 'file-copy-outlined', 'file-dispose-outlined', 'file-dollar-certified-outlined', 'file-dollar-outlined', 'file-download-outlined', 'file-export-outlined', 'file-lock-outlined', 'file-outlined', 'file-search-outlined', 'file-secured-outlined', 'file-statutory-outlined', 'file-verified-outlined', 'filter-outlined', 'folder-outlined', 'folder-user-outlined', 'form-outlined', 'funnel-filter-outline', 'goal-outlined', 'graph-outlined', 'hand-holding-user-outlined', 'happy-sun-outlined', 'health-bag-outlined', 'heart-outlined', 'home-active-outlined', 'home-outlined', 'id-card-outlined', 'image-outlined', 'import-outlined', 'instapay-outlined', 'italic', 'job-search-outlined', 'leave-approval-outlined', 'link-1', 'link-2', 'list-outlined', 'live-help-outlined', 'local_mall_outlined', 'location-on-outlined', 'location-outlined', 'lock-outlined', 'locked-file-outlined', 'log-out', 'mail-outlined', 'map-outlined', 'media-content-outlined', 'menu-close', 'menu-expand', 'menu-fold-outlined', 'menu-unfold-outlined', 'moneybag-outlined', 'moon-outlined', 'more-horizontal', 'more-vertical', 'multiple-folders-outlined', 'multiple-users-outlined', 'near-me-outlined', 'node-outlined', 'number-points', 'number', 'overview-outlined', 'payment-summary-outlined', 'payslip-outlined', 'pencil-outlined', 'percentage', 'phone-outlined', 'piggy-bank-outlined', 'plane-outlined', 'play-circle-outlined', 'print-outlined', 'propane-tank-outlined', 'qr-code-outlined', 'qualification-outlined', 're-assign', 'redeem', 'refresh', 'remove', 'reply-outlined', 'restart', 'resume-outlined', 'return-arrow', 'rostering-outlined', 'safety-outlined', 'save-outlined', 'schedule-outlined', 'search-outlined', 'search-secured-outlined', 'send-outlined', 'share-1', 'share-2', 'share-outlined-2', 'share-outlined', 'shopping_basket_outlined', 'show-chart-outlined', 'single-down-arrow', 'single-left-arrow', 'single-right-arrow', 'single-up-arrow', 'smart-match-outlined', 'sparkle-outlined', 'speaker-active-outlined', 'speaker-outlined', 'star-circle-outlined', 'star-outlined', 'stash-outlined', 'stopwatch-outlined', 'strikethrough', 'styler-outlined', 'suitcase-clock-outlined', 'suitcase-outlined', 'survey-outlined', 'switch-outlined', 'sync', 'tag-outlined', 'target-outlined', 'tennis-outlined', 'ticket-outlined', 'timesheet-outlined', 'timesheets-outlined', 'today-outlined', 'transfer', 'trash-bin-outlined', 'umbrela-outlined', 'unavailability-outlined', 'unavailable', 'underline', 'union-outlined', 'unlock-outlined', 'upload-outlined', 'user-circle-outlined', 'user-gear-outlined', 'user-outlined', 'user-rectangle-outlined', 'video-1-outlined', 'video-2-outlined', 'volunteer-outlined', 'wallet-outlined', 'wellness-outlined'];
|
|
6894
6915
|
|
|
6895
6916
|
var activate = 59000;
|
|
6896
6917
|
var adjustment = 59003;
|
|
@@ -7409,7 +7430,8 @@ var glyphMap = {
|
|
|
7409
7430
|
"video-1-outlined": 59423,
|
|
7410
7431
|
"video-2-outlined": 59424,
|
|
7411
7432
|
"volunteer-outlined": 59425,
|
|
7412
|
-
"wallet-outlined": 59426
|
|
7433
|
+
"wallet-outlined": 59426,
|
|
7434
|
+
"wellness-outlined": 59427
|
|
7413
7435
|
};
|
|
7414
7436
|
|
|
7415
7437
|
var HeroIcon = createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
|
|
@@ -7455,13 +7477,13 @@ var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
|
7455
7477
|
inputRange: [0, 1],
|
|
7456
7478
|
outputRange: ['0deg', '360deg']
|
|
7457
7479
|
});
|
|
7458
|
-
return /*#__PURE__*/
|
|
7480
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
7459
7481
|
style: [{
|
|
7460
7482
|
transform: [{
|
|
7461
7483
|
rotate: interpolatedRotateAnimation
|
|
7462
7484
|
}]
|
|
7463
7485
|
}, style]
|
|
7464
|
-
}, /*#__PURE__*/
|
|
7486
|
+
}, /*#__PURE__*/React__default.createElement(StyledHeroIcon, otherProps));
|
|
7465
7487
|
};
|
|
7466
7488
|
|
|
7467
7489
|
var Icon = function Icon(_ref) {
|
|
@@ -7499,13 +7521,13 @@ var Icon = function Icon(_ref) {
|
|
|
7499
7521
|
accessibilityViewIsModal: accessibilityViewIsModal,
|
|
7500
7522
|
accessibilityActions: accessibilityActions
|
|
7501
7523
|
};
|
|
7502
|
-
return spin ? /*#__PURE__*/
|
|
7524
|
+
return spin ? /*#__PURE__*/React__default.createElement(AnimatedIcon, _extends$1({
|
|
7503
7525
|
name: icon,
|
|
7504
7526
|
themeIntent: intent,
|
|
7505
7527
|
themeSize: size,
|
|
7506
7528
|
style: style,
|
|
7507
7529
|
testID: testID
|
|
7508
|
-
}, accessibilityProps)) : /*#__PURE__*/
|
|
7530
|
+
}, accessibilityProps)) : /*#__PURE__*/React__default.createElement(StyledHeroIcon, _extends$1({
|
|
7509
7531
|
name: icon,
|
|
7510
7532
|
themeIntent: intent,
|
|
7511
7533
|
themeSize: size,
|
|
@@ -7525,19 +7547,19 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7525
7547
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
7526
7548
|
style = _ref.style,
|
|
7527
7549
|
testID = _ref.testID;
|
|
7528
|
-
return /*#__PURE__*/
|
|
7550
|
+
return /*#__PURE__*/React__default.createElement(StyledItemWrapper$1, {
|
|
7529
7551
|
themeVariant: variant,
|
|
7530
7552
|
style: style,
|
|
7531
7553
|
testID: testID
|
|
7532
|
-
}, /*#__PURE__*/
|
|
7554
|
+
}, /*#__PURE__*/React__default.createElement(StyledHeaderWrapper$1, {
|
|
7533
7555
|
onPress: onPress
|
|
7534
|
-
}, typeof header === 'string' ? /*#__PURE__*/
|
|
7556
|
+
}, typeof header === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
7535
7557
|
variant: "regular-bold"
|
|
7536
|
-
}, header) : header, /*#__PURE__*/
|
|
7558
|
+
}, header) : header, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7537
7559
|
icon: open ? 'arrow-up' : 'arrow-down',
|
|
7538
7560
|
intent: "secondary",
|
|
7539
7561
|
size: "small"
|
|
7540
|
-
})), /*#__PURE__*/
|
|
7562
|
+
})), /*#__PURE__*/React__default.createElement(StyledCollapse, {
|
|
7541
7563
|
open: open
|
|
7542
7564
|
}, content));
|
|
7543
7565
|
};
|
|
@@ -7558,18 +7580,18 @@ var Accordion = function Accordion(_ref) {
|
|
|
7558
7580
|
_usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
|
|
7559
7581
|
_activeItemKey = _usePropsOrInternalSt2[0],
|
|
7560
7582
|
_onItemPress = _usePropsOrInternalSt2[1];
|
|
7561
|
-
return /*#__PURE__*/
|
|
7583
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$c, {
|
|
7562
7584
|
style: style,
|
|
7563
7585
|
testID: testID
|
|
7564
7586
|
}, items.map(function (_ref2, index) {
|
|
7565
7587
|
var key = _ref2.key,
|
|
7566
7588
|
props = _objectWithoutProperties(_ref2, _excluded$x);
|
|
7567
7589
|
var open = _activeItemKey === key;
|
|
7568
|
-
return /*#__PURE__*/
|
|
7590
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
7569
7591
|
key: key
|
|
7570
|
-
}, variant === 'card' && index !== 0 && /*#__PURE__*/
|
|
7592
|
+
}, variant === 'card' && index !== 0 && /*#__PURE__*/React__default.createElement(Spacer$1, {
|
|
7571
7593
|
testID: "accordion-spacer"
|
|
7572
|
-
}), /*#__PURE__*/
|
|
7594
|
+
}), /*#__PURE__*/React__default.createElement(AccordionItem, _extends$1({}, props, {
|
|
7573
7595
|
open: open,
|
|
7574
7596
|
onPress: function onPress() {
|
|
7575
7597
|
return _onItemPress(open ? defaultValue : key);
|
|
@@ -7640,9 +7662,9 @@ var getIntentIcon$1 = function getIntentIcon(intent) {
|
|
|
7640
7662
|
};
|
|
7641
7663
|
var AlertIcon = function AlertIcon(_ref) {
|
|
7642
7664
|
var icon = _ref.icon;
|
|
7643
|
-
return icon ? /*#__PURE__*/
|
|
7665
|
+
return icon ? /*#__PURE__*/React__default.createElement(IconContainer$1, {
|
|
7644
7666
|
testID: "alert-left-icon"
|
|
7645
|
-
}, /*#__PURE__*/
|
|
7667
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7646
7668
|
icon: icon,
|
|
7647
7669
|
size: "small"
|
|
7648
7670
|
})) : null;
|
|
@@ -7659,23 +7681,23 @@ var Alert = function Alert(_ref2) {
|
|
|
7659
7681
|
style = _ref2.style,
|
|
7660
7682
|
testID = _ref2.testID;
|
|
7661
7683
|
useDeprecation("Alert's notification intent is deprecated and will be removed in the next major release. Please use other intents instead.", intent === 'notification');
|
|
7662
|
-
return /*#__PURE__*/
|
|
7684
|
+
return /*#__PURE__*/React__default.createElement(Container$1, {
|
|
7663
7685
|
themeVariant: variant,
|
|
7664
7686
|
themeIntent: intent,
|
|
7665
7687
|
style: style,
|
|
7666
7688
|
testID: testID
|
|
7667
|
-
}, /*#__PURE__*/
|
|
7689
|
+
}, /*#__PURE__*/React__default.createElement(ContentContainer$1, {
|
|
7668
7690
|
showDivider: !!onClose
|
|
7669
|
-
}, icon !== null ? /*#__PURE__*/
|
|
7691
|
+
}, icon !== null ? /*#__PURE__*/React__default.createElement(AlertIcon, {
|
|
7670
7692
|
icon: icon || getIntentIcon$1(intent)
|
|
7671
|
-
}) : null, /*#__PURE__*/
|
|
7693
|
+
}) : null, /*#__PURE__*/React__default.createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
7672
7694
|
variant: "small-bold"
|
|
7673
|
-
}, title) : title, typeof content === 'string' ? /*#__PURE__*/
|
|
7695
|
+
}, title) : title, typeof content === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
7674
7696
|
variant: "small"
|
|
7675
|
-
}, content) : content)), onClose ? /*#__PURE__*/
|
|
7697
|
+
}, content) : content)), onClose ? /*#__PURE__*/React__default.createElement(CTAWrapper$1, {
|
|
7676
7698
|
onPress: onClose,
|
|
7677
7699
|
testID: "alert-close-icon"
|
|
7678
|
-
}, /*#__PURE__*/
|
|
7700
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7679
7701
|
icon: "cancel",
|
|
7680
7702
|
size: "small"
|
|
7681
7703
|
})) : null);
|
|
@@ -7723,26 +7745,26 @@ var Attachment = function Attachment(_ref) {
|
|
|
7723
7745
|
backgroundHighlighted = _ref$backgroundHighli === void 0 ? false : _ref$backgroundHighli,
|
|
7724
7746
|
style = _ref.style,
|
|
7725
7747
|
testID = _ref.testID;
|
|
7726
|
-
return /*#__PURE__*/
|
|
7748
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$6, {
|
|
7727
7749
|
testID: testID,
|
|
7728
7750
|
style: style
|
|
7729
|
-
}, /*#__PURE__*/
|
|
7751
|
+
}, /*#__PURE__*/React__default.createElement(StyledContentContainer$1, {
|
|
7730
7752
|
themeHighlighted: backgroundHighlighted
|
|
7731
|
-
}, previewElement, filename ? /*#__PURE__*/
|
|
7753
|
+
}, previewElement, filename ? /*#__PURE__*/React__default.createElement(StyledTextContainer, {
|
|
7732
7754
|
testID: "attachment-content"
|
|
7733
|
-
}, /*#__PURE__*/
|
|
7755
|
+
}, /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
7734
7756
|
variant: "small",
|
|
7735
7757
|
numberOfLines: 1
|
|
7736
|
-
}, filename)) : null), onDownload ? /*#__PURE__*/
|
|
7758
|
+
}, filename)) : null), onDownload ? /*#__PURE__*/React__default.createElement(StyledCTAWrapper, {
|
|
7737
7759
|
onPress: onDownload,
|
|
7738
7760
|
testID: "attachment-download-icon"
|
|
7739
|
-
}, /*#__PURE__*/
|
|
7761
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7740
7762
|
icon: "download-outlined",
|
|
7741
7763
|
size: "small"
|
|
7742
|
-
})) : null, onRemove ? /*#__PURE__*/
|
|
7764
|
+
})) : null, onRemove ? /*#__PURE__*/React__default.createElement(StyledCTAWrapper, {
|
|
7743
7765
|
onPress: onRemove,
|
|
7744
7766
|
testID: "attachment-remove-icon"
|
|
7745
|
-
}, /*#__PURE__*/
|
|
7767
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7746
7768
|
icon: "trash-bin-outlined",
|
|
7747
7769
|
size: "small",
|
|
7748
7770
|
intent: "danger"
|
|
@@ -7818,16 +7840,16 @@ var Avatar = function Avatar(_ref) {
|
|
|
7818
7840
|
hasImageError = _useState2[0],
|
|
7819
7841
|
setHasImageError = _useState2[1];
|
|
7820
7842
|
if (title === undefined && source === undefined) return null;
|
|
7821
|
-
return /*#__PURE__*/
|
|
7843
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$b, {
|
|
7822
7844
|
testID: testID,
|
|
7823
7845
|
onPress: onPress,
|
|
7824
7846
|
disabled: onPress === undefined,
|
|
7825
7847
|
themeIntent: intent,
|
|
7826
7848
|
themeSize: size,
|
|
7827
7849
|
style: style
|
|
7828
|
-
}, (source === undefined || hasImageError) && /*#__PURE__*/
|
|
7850
|
+
}, (source === undefined || hasImageError) && /*#__PURE__*/React__default.createElement(StyledTextWrapper$1, null, /*#__PURE__*/React__default.createElement(StyledText$2, {
|
|
7829
7851
|
themeSize: size
|
|
7830
|
-
}, title)), source !== undefined && /*#__PURE__*/
|
|
7852
|
+
}, title)), source !== undefined && /*#__PURE__*/React__default.createElement(StyledImage, {
|
|
7831
7853
|
resizeMode: "cover",
|
|
7832
7854
|
source: source,
|
|
7833
7855
|
themeSize: size,
|
|
@@ -8072,7 +8094,7 @@ var Box = function Box(_ref) {
|
|
|
8072
8094
|
style = _ref.style,
|
|
8073
8095
|
testID = _ref.testID,
|
|
8074
8096
|
otherProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
8075
|
-
return /*#__PURE__*/
|
|
8097
|
+
return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8076
8098
|
style: style,
|
|
8077
8099
|
testID: testID
|
|
8078
8100
|
}), children);
|
|
@@ -8171,7 +8193,7 @@ var Surplus = function Surplus(_ref) {
|
|
|
8171
8193
|
backgroundColor = _ref.backgroundColor;
|
|
8172
8194
|
if (value > 0) {
|
|
8173
8195
|
if (renderSurplus) {
|
|
8174
|
-
return /*#__PURE__*/
|
|
8196
|
+
return /*#__PURE__*/React__default.createElement(StyledSurplusContainer, {
|
|
8175
8197
|
testID: "surplus-container",
|
|
8176
8198
|
themeSize: size,
|
|
8177
8199
|
themeVariant: variant,
|
|
@@ -8181,7 +8203,7 @@ var Surplus = function Surplus(_ref) {
|
|
|
8181
8203
|
}
|
|
8182
8204
|
}, renderSurplus(value));
|
|
8183
8205
|
}
|
|
8184
|
-
return /*#__PURE__*/
|
|
8206
|
+
return /*#__PURE__*/React__default.createElement(StyledAvatar, {
|
|
8185
8207
|
testID: "surplus-container",
|
|
8186
8208
|
themeVariant: variant,
|
|
8187
8209
|
title: "+".concat(value),
|
|
@@ -8217,7 +8239,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8217
8239
|
}
|
|
8218
8240
|
return remain;
|
|
8219
8241
|
}();
|
|
8220
|
-
return /*#__PURE__*/
|
|
8242
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$a, {
|
|
8221
8243
|
themeSize: size,
|
|
8222
8244
|
themeAvatarCount: avatars.length,
|
|
8223
8245
|
themeHasSurplus: remainingAvatar > 0,
|
|
@@ -8225,7 +8247,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8225
8247
|
testID: testID,
|
|
8226
8248
|
themeVariant: variant
|
|
8227
8249
|
}, avatars.map(function (avt, index) {
|
|
8228
|
-
return /*#__PURE__*/
|
|
8250
|
+
return /*#__PURE__*/React__default.createElement(StyledAvatar, _extends$1({
|
|
8229
8251
|
themeVariant: variant
|
|
8230
8252
|
}, avt.props, {
|
|
8231
8253
|
size: size,
|
|
@@ -8234,7 +8256,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8234
8256
|
backgroundColor: colors[index % colors.length]
|
|
8235
8257
|
}
|
|
8236
8258
|
}));
|
|
8237
|
-
}), /*#__PURE__*/
|
|
8259
|
+
}), /*#__PURE__*/React__default.createElement(Surplus, {
|
|
8238
8260
|
value: remainingAvatar,
|
|
8239
8261
|
index: avatars.length,
|
|
8240
8262
|
size: size,
|
|
@@ -8295,10 +8317,10 @@ var Status = function Status(_ref) {
|
|
|
8295
8317
|
style = _ref.style,
|
|
8296
8318
|
testID = _ref.testID,
|
|
8297
8319
|
nativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
8298
|
-
var _React$useRef =
|
|
8320
|
+
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8299
8321
|
opacity = _React$useRef.current;
|
|
8300
|
-
var isFirstRendering =
|
|
8301
|
-
|
|
8322
|
+
var isFirstRendering = React__default.useRef(true);
|
|
8323
|
+
React__default.useEffect(function () {
|
|
8302
8324
|
// Do not run animation on very first rendering
|
|
8303
8325
|
if (isFirstRendering.current) {
|
|
8304
8326
|
isFirstRendering.current = false;
|
|
@@ -8310,10 +8332,10 @@ var Status = function Status(_ref) {
|
|
|
8310
8332
|
useNativeDriver: true
|
|
8311
8333
|
}).start();
|
|
8312
8334
|
}, [visible, opacity]);
|
|
8313
|
-
return /*#__PURE__*/
|
|
8335
|
+
return /*#__PURE__*/React__default.createElement(View, _extends$1({}, nativeProps, {
|
|
8314
8336
|
style: style,
|
|
8315
8337
|
testID: testID
|
|
8316
|
-
}), children, /*#__PURE__*/
|
|
8338
|
+
}), children, /*#__PURE__*/React__default.createElement(StyledStatus, {
|
|
8317
8339
|
style: {
|
|
8318
8340
|
opacity: opacity,
|
|
8319
8341
|
transform: [{
|
|
@@ -8343,10 +8365,10 @@ var Badge = function Badge(_ref) {
|
|
|
8343
8365
|
style = _ref.style,
|
|
8344
8366
|
testID = _ref.testID,
|
|
8345
8367
|
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
8346
|
-
var _React$useRef =
|
|
8368
|
+
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8347
8369
|
opacity = _React$useRef.current;
|
|
8348
|
-
var isFirstRendering =
|
|
8349
|
-
|
|
8370
|
+
var isFirstRendering = React__default.useRef(true);
|
|
8371
|
+
React__default.useEffect(function () {
|
|
8350
8372
|
// Do not run animation on very first rendering
|
|
8351
8373
|
if (isFirstRendering.current) {
|
|
8352
8374
|
isFirstRendering.current = false;
|
|
@@ -8359,7 +8381,7 @@ var Badge = function Badge(_ref) {
|
|
|
8359
8381
|
}).start();
|
|
8360
8382
|
}, [visible, opacity]);
|
|
8361
8383
|
var content = typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
8362
|
-
return /*#__PURE__*/
|
|
8384
|
+
return /*#__PURE__*/React__default.createElement(StyledView$2, _extends$1({}, nativeProps, {
|
|
8363
8385
|
themeIntent: intent,
|
|
8364
8386
|
themePadding: getPaddingState(content),
|
|
8365
8387
|
style: [{
|
|
@@ -8372,7 +8394,7 @@ var Badge = function Badge(_ref) {
|
|
|
8372
8394
|
}]
|
|
8373
8395
|
}, style],
|
|
8374
8396
|
testID: testID
|
|
8375
|
-
}), /*#__PURE__*/
|
|
8397
|
+
}), /*#__PURE__*/React__default.createElement(StyledText$1, null, content));
|
|
8376
8398
|
};
|
|
8377
8399
|
var Badge$1 = Object.assign(Badge, {
|
|
8378
8400
|
Status: Status
|
|
@@ -8446,7 +8468,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8446
8468
|
/**
|
|
8447
8469
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
8448
8470
|
*/
|
|
8449
|
-
var _React$useState =
|
|
8471
|
+
var _React$useState = React__default.useState([selectedTabKey]),
|
|
8450
8472
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
8451
8473
|
loaded = _React$useState2[0],
|
|
8452
8474
|
setLoaded = _React$useState2[1];
|
|
@@ -8456,7 +8478,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8456
8478
|
return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
|
|
8457
8479
|
});
|
|
8458
8480
|
}
|
|
8459
|
-
return /*#__PURE__*/
|
|
8481
|
+
return /*#__PURE__*/React__default.createElement(BottomNavigationContainer, nativeProps, /*#__PURE__*/React__default.createElement(ContentWrapper$2, null, tabs.map(function (tab) {
|
|
8460
8482
|
var key = tab.key,
|
|
8461
8483
|
component = tab.component,
|
|
8462
8484
|
testID = tab.testID;
|
|
@@ -8468,7 +8490,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8468
8490
|
// Don't render a screen if we've never navigated to it
|
|
8469
8491
|
return null;
|
|
8470
8492
|
}
|
|
8471
|
-
return /*#__PURE__*/
|
|
8493
|
+
return /*#__PURE__*/React__default.createElement(BottomNavigationTab, {
|
|
8472
8494
|
key: key,
|
|
8473
8495
|
testID: testID ? "route-screen-".concat(testID) : undefined,
|
|
8474
8496
|
pointerEvents: active ? 'auto' : 'none',
|
|
@@ -8481,26 +8503,26 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8481
8503
|
isIOS ? selectedTabKey !== key : true,
|
|
8482
8504
|
themeVisibility: active
|
|
8483
8505
|
}, component);
|
|
8484
|
-
})), /*#__PURE__*/
|
|
8506
|
+
})), /*#__PURE__*/React__default.createElement(BottomBarWrapper, {
|
|
8485
8507
|
themeInsets: insets
|
|
8486
|
-
}, /*#__PURE__*/
|
|
8508
|
+
}, /*#__PURE__*/React__default.createElement(BottomBar, null, tabs.map(function (tab) {
|
|
8487
8509
|
var key = tab.key,
|
|
8488
8510
|
icon = tab.icon,
|
|
8489
8511
|
title = tab.title,
|
|
8490
8512
|
testID = tab.testID;
|
|
8491
8513
|
var active = selectedTabKey === key;
|
|
8492
8514
|
var inactiveIcon = getInactiveIcon(icon);
|
|
8493
|
-
return /*#__PURE__*/
|
|
8515
|
+
return /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
8494
8516
|
key: key,
|
|
8495
8517
|
onPress: function onPress() {
|
|
8496
8518
|
return onTabPress(key);
|
|
8497
8519
|
},
|
|
8498
8520
|
testID: testID
|
|
8499
|
-
}, /*#__PURE__*/
|
|
8521
|
+
}, /*#__PURE__*/React__default.createElement(BottomBarItem, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
8500
8522
|
icon: active ? icon : inactiveIcon,
|
|
8501
8523
|
intent: active ? 'primary' : 'text',
|
|
8502
8524
|
testID: "hero-icon-".concat(icon)
|
|
8503
|
-
}), !!title && /*#__PURE__*/
|
|
8525
|
+
}), !!title && /*#__PURE__*/React__default.createElement(StyledBottomBarText, {
|
|
8504
8526
|
fontWeight: "semi-bold",
|
|
8505
8527
|
intent: active ? 'primary' : 'body',
|
|
8506
8528
|
numberOfLines: 1
|
|
@@ -8534,7 +8556,7 @@ var Divider = function Divider(_ref) {
|
|
|
8534
8556
|
style = _ref.style,
|
|
8535
8557
|
testID = _ref.testID,
|
|
8536
8558
|
nativeProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
8537
|
-
return /*#__PURE__*/
|
|
8559
|
+
return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
8538
8560
|
themeMarginHorizontal: marginHorizontal,
|
|
8539
8561
|
themeMarginVertical: marginVertical,
|
|
8540
8562
|
style: style,
|
|
@@ -8611,7 +8633,7 @@ var StyledIconWrapper$4 = index$9(View)(function (_ref5) {
|
|
|
8611
8633
|
var Footer$1 = function Footer(_ref) {
|
|
8612
8634
|
var children = _ref.children,
|
|
8613
8635
|
showDivider = _ref.showDivider;
|
|
8614
|
-
return /*#__PURE__*/
|
|
8636
|
+
return /*#__PURE__*/React__default.createElement(View, null, showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null, /*#__PURE__*/React__default.createElement(StyledFooter, null, children));
|
|
8615
8637
|
};
|
|
8616
8638
|
|
|
8617
8639
|
var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent) {
|
|
@@ -8670,14 +8692,14 @@ var renderDotComponent = function renderDotComponent(_ref) {
|
|
|
8670
8692
|
inputRange: [0.0, (index + 0.5) / (count + 1), (index + 1.0) / (count + 1), (index + 1.5) / (count + 1), 1.0],
|
|
8671
8693
|
outputRange: [1.0, 1.36, 1.56, 1.06, 1.0]
|
|
8672
8694
|
});
|
|
8673
|
-
return /*#__PURE__*/
|
|
8695
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
8674
8696
|
style: StyleSheet$1.flatten([{
|
|
8675
8697
|
transform: [{
|
|
8676
8698
|
scale: interpolatedProgressAnimation
|
|
8677
8699
|
}]
|
|
8678
8700
|
}]),
|
|
8679
8701
|
key: index
|
|
8680
|
-
}, /*#__PURE__*/
|
|
8702
|
+
}, /*#__PURE__*/React__default.createElement(AnimatedLoadingDot, {
|
|
8681
8703
|
size: size,
|
|
8682
8704
|
themeVariant: themeVariant
|
|
8683
8705
|
}));
|
|
@@ -8715,7 +8737,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
8715
8737
|
}
|
|
8716
8738
|
return null;
|
|
8717
8739
|
};
|
|
8718
|
-
return /*#__PURE__*/
|
|
8740
|
+
return /*#__PURE__*/React__default.createElement(AnimatedLoadingIndicatorWrapper, _extends$1({
|
|
8719
8741
|
testID: testID
|
|
8720
8742
|
}, nativeProps), Array.from(new Array(count), renderLoadingDot, themeVariant));
|
|
8721
8743
|
};
|
|
@@ -8982,7 +9004,7 @@ var Button = function Button(_ref) {
|
|
|
8982
9004
|
return getUnderlayColor(theme, themeVariant);
|
|
8983
9005
|
}, [theme, themeVariant]);
|
|
8984
9006
|
useDeprecation("Button variant ".concat(deprecatedVariants.join(', '), " are deprecated."), deprecatedVariants.includes(themeVariant));
|
|
8985
|
-
return /*#__PURE__*/
|
|
9007
|
+
return /*#__PURE__*/React__default.createElement(StyledButtonContainer, {
|
|
8986
9008
|
accessibilityHint: accessibilityHint,
|
|
8987
9009
|
accessibilityLabel: accessibilityLabel,
|
|
8988
9010
|
disabled: disabled || loading,
|
|
@@ -8992,31 +9014,31 @@ var Button = function Button(_ref) {
|
|
|
8992
9014
|
themeButtonVariant: themeVariant,
|
|
8993
9015
|
style: style,
|
|
8994
9016
|
underlayColor: underlayColor
|
|
8995
|
-
}, loading === true ? /*#__PURE__*/
|
|
9017
|
+
}, loading === true ? /*#__PURE__*/React__default.createElement(LoadingIndicator, {
|
|
8996
9018
|
testID: "".concat(testID, "-loading-indicator"),
|
|
8997
9019
|
themeVariant: themeVariant
|
|
8998
|
-
}) : /*#__PURE__*/
|
|
9020
|
+
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, icon !== undefined && /*#__PURE__*/React__default.createElement(StyledButtonIconWrapper, {
|
|
8999
9021
|
themePosition: "left"
|
|
9000
|
-
}, isIconName(icon) ? /*#__PURE__*/
|
|
9022
|
+
}, isIconName(icon) ? /*#__PURE__*/React__default.createElement(StyledButtonIcon, {
|
|
9001
9023
|
disabled: disabled,
|
|
9002
9024
|
icon: icon,
|
|
9003
9025
|
testID: "".concat(testID, "-left-icon"),
|
|
9004
9026
|
themeButtonVariant: themeVariant
|
|
9005
|
-
}) : icon), isTextVariant(themeVariant) ? /*#__PURE__*/
|
|
9027
|
+
}) : icon), isTextVariant(themeVariant) ? /*#__PURE__*/React__default.createElement(StyledButtonTitleOfVariantText, {
|
|
9006
9028
|
variant: "regular-bold",
|
|
9007
9029
|
ellipsizeMode: "tail",
|
|
9008
9030
|
numberOfLines: 1,
|
|
9009
9031
|
disabled: disabled,
|
|
9010
9032
|
themeButtonVariant: themeVariant
|
|
9011
|
-
}, text) : /*#__PURE__*/
|
|
9033
|
+
}, text) : /*#__PURE__*/React__default.createElement(StyledButtonText, {
|
|
9012
9034
|
level: "h5",
|
|
9013
9035
|
ellipsizeMode: "tail",
|
|
9014
9036
|
numberOfLines: 1,
|
|
9015
9037
|
disabled: disabled,
|
|
9016
9038
|
themeButtonVariant: themeVariant
|
|
9017
|
-
}, text), rightIcon !== undefined && /*#__PURE__*/
|
|
9039
|
+
}, text), rightIcon !== undefined && /*#__PURE__*/React__default.createElement(StyledButtonIconWrapper, {
|
|
9018
9040
|
themePosition: "right"
|
|
9019
|
-
}, isIconName(rightIcon) ? /*#__PURE__*/
|
|
9041
|
+
}, isIconName(rightIcon) ? /*#__PURE__*/React__default.createElement(StyledButtonIcon, {
|
|
9020
9042
|
disabled: disabled,
|
|
9021
9043
|
icon: rightIcon,
|
|
9022
9044
|
testID: "".concat(testID, "-right-icon"),
|
|
@@ -9033,13 +9055,13 @@ var IconButton = function IconButton(_ref) {
|
|
|
9033
9055
|
style = _ref.style,
|
|
9034
9056
|
size = _ref.size,
|
|
9035
9057
|
intent = _ref.intent;
|
|
9036
|
-
return /*#__PURE__*/
|
|
9058
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
9037
9059
|
style: style,
|
|
9038
9060
|
onPress: onPress,
|
|
9039
9061
|
testID: testID,
|
|
9040
9062
|
hitSlop: hitSlop,
|
|
9041
9063
|
disabled: disabled
|
|
9042
|
-
}, /*#__PURE__*/
|
|
9064
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
9043
9065
|
icon: icon,
|
|
9044
9066
|
size: size,
|
|
9045
9067
|
intent: disabled ? 'disabled-text' : intent
|
|
@@ -9082,16 +9104,16 @@ var UtilityButton = function UtilityButton(_ref) {
|
|
|
9082
9104
|
intent = _ref$intent === void 0 ? 'text' : _ref$intent,
|
|
9083
9105
|
style = _ref.style,
|
|
9084
9106
|
hitSlop = _ref.hitSlop;
|
|
9085
|
-
return /*#__PURE__*/
|
|
9107
|
+
return /*#__PURE__*/React__default.createElement(ButtonContainer, {
|
|
9086
9108
|
style: style,
|
|
9087
9109
|
onPress: onPress,
|
|
9088
9110
|
testID: testID,
|
|
9089
9111
|
hitSlop: hitSlop
|
|
9090
|
-
}, /*#__PURE__*/
|
|
9112
|
+
}, /*#__PURE__*/React__default.createElement(IconWrapper, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
9091
9113
|
icon: icon,
|
|
9092
9114
|
intent: intent,
|
|
9093
9115
|
testID: "".concat(testID, "-icon")
|
|
9094
|
-
})), /*#__PURE__*/
|
|
9116
|
+
})), /*#__PURE__*/React__default.createElement(ButtonText, {
|
|
9095
9117
|
intent: TEXT_INTENTS[intent]
|
|
9096
9118
|
}, text));
|
|
9097
9119
|
};
|
|
@@ -9109,19 +9131,19 @@ var Header = function Header(_ref) {
|
|
|
9109
9131
|
_ref$onRequestClose = _ref.onRequestClose,
|
|
9110
9132
|
onRequestClose = _ref$onRequestClose === void 0 ? noop$1 : _ref$onRequestClose,
|
|
9111
9133
|
showCloseButton = _ref.showCloseButton;
|
|
9112
|
-
return /*#__PURE__*/
|
|
9134
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledHeaderWrapper, null, typeof content === 'string' ? /*#__PURE__*/React__default.createElement(StyledHeader, null, /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
9113
9135
|
variant: "regular-bold"
|
|
9114
|
-
}, content)) : /*#__PURE__*/
|
|
9136
|
+
}, content)) : /*#__PURE__*/React__default.createElement(View, {
|
|
9115
9137
|
style: {
|
|
9116
9138
|
flex: 1
|
|
9117
9139
|
}
|
|
9118
|
-
}, content), showCloseButton ? /*#__PURE__*/
|
|
9140
|
+
}, content), showCloseButton ? /*#__PURE__*/React__default.createElement(StyledIconWrapper$4, null, /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
|
|
9119
9141
|
icon: "cancel",
|
|
9120
9142
|
onPress: onRequestClose,
|
|
9121
9143
|
intent: "text",
|
|
9122
9144
|
testID: "bottom-sheet-close-icon",
|
|
9123
9145
|
size: "xsmall"
|
|
9124
|
-
})) : null), showDivider ? /*#__PURE__*/
|
|
9146
|
+
})) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
|
|
9125
9147
|
};
|
|
9126
9148
|
|
|
9127
9149
|
var _excluded$p = ["scrollEventThrottle"];
|
|
@@ -9146,7 +9168,7 @@ var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
|
9146
9168
|
setInternalShowDivider(false);
|
|
9147
9169
|
props === null || props === void 0 || (_props$onMomentumScro2 = props.onMomentumScrollEnd) === null || _props$onMomentumScro2 === void 0 || _props$onMomentumScro2.call(props, e);
|
|
9148
9170
|
}, []);
|
|
9149
|
-
return /*#__PURE__*/
|
|
9171
|
+
return /*#__PURE__*/React__default.createElement(ScrollView, _extends$1({}, props, {
|
|
9150
9172
|
onScrollBeginDrag: onScrollBeginDrag,
|
|
9151
9173
|
onMomentumScrollBegin: onMomentumScrollBegin,
|
|
9152
9174
|
onMomentumScrollEnd: onMomentumScrollEnd,
|
|
@@ -9230,22 +9252,22 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9230
9252
|
setInternalShowDivider: setInternalShowDivider
|
|
9231
9253
|
};
|
|
9232
9254
|
}, [setInternalShowDivider]);
|
|
9233
|
-
return /*#__PURE__*/
|
|
9255
|
+
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
9234
9256
|
visible: visible,
|
|
9235
9257
|
onRequestClose: onRequestClose,
|
|
9236
9258
|
transparent: true,
|
|
9237
9259
|
testID: testID,
|
|
9238
9260
|
onShow: onOpen
|
|
9239
|
-
}, /*#__PURE__*/
|
|
9261
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$9, {
|
|
9240
9262
|
pointerEvents: "box-none"
|
|
9241
|
-
}, /*#__PURE__*/
|
|
9263
|
+
}, /*#__PURE__*/React__default.createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
9242
9264
|
behavior: Platform.OS === 'ios' ? 'padding' : 'height'
|
|
9243
|
-
}, keyboardAvoidingViewProps), /*#__PURE__*/
|
|
9265
|
+
}, keyboardAvoidingViewProps), /*#__PURE__*/React__default.createElement(StyledBackdrop$2, {
|
|
9244
9266
|
style: {
|
|
9245
9267
|
opacity: interpolateOpacity
|
|
9246
9268
|
},
|
|
9247
9269
|
onPress: onRequestClose
|
|
9248
|
-
}), /*#__PURE__*/
|
|
9270
|
+
}), /*#__PURE__*/React__default.createElement(StyledBottomSheet, {
|
|
9249
9271
|
style: [style, {
|
|
9250
9272
|
transform: [{
|
|
9251
9273
|
scaleY: height > 0 ? 1 : 0
|
|
@@ -9253,14 +9275,14 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9253
9275
|
translateY: interpolateY
|
|
9254
9276
|
}]
|
|
9255
9277
|
}]
|
|
9256
|
-
}, header !== undefined ? /*#__PURE__*/
|
|
9278
|
+
}, header !== undefined ? /*#__PURE__*/React__default.createElement(Header, {
|
|
9257
9279
|
content: header,
|
|
9258
9280
|
showDivider: internalShowDivider,
|
|
9259
9281
|
onRequestClose: onRequestClose,
|
|
9260
9282
|
showCloseButton: showCloseButton
|
|
9261
|
-
}) : null, /*#__PURE__*/
|
|
9283
|
+
}) : null, /*#__PURE__*/React__default.createElement(BottomSheetContext.Provider, {
|
|
9262
9284
|
value: BottomSheetContextValue
|
|
9263
|
-
}, children), footer ? /*#__PURE__*/
|
|
9285
|
+
}, children), footer ? /*#__PURE__*/React__default.createElement(Footer$1, {
|
|
9264
9286
|
showDivider: showDivider
|
|
9265
9287
|
}, footer) : null))));
|
|
9266
9288
|
};
|
|
@@ -11561,29 +11583,29 @@ function ContentNavigator(_ref) {
|
|
|
11561
11583
|
testID = _ref.testID,
|
|
11562
11584
|
style = _ref.style;
|
|
11563
11585
|
var theme = useTheme();
|
|
11564
|
-
return /*#__PURE__*/
|
|
11586
|
+
return /*#__PURE__*/React__default.createElement(Wrapper, {
|
|
11565
11587
|
testID: testID,
|
|
11566
11588
|
style: style
|
|
11567
|
-
}, /*#__PURE__*/
|
|
11589
|
+
}, /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
|
|
11568
11590
|
icon: "arrow-left",
|
|
11569
11591
|
onPress: onPreviousPress,
|
|
11570
11592
|
disabled: previousDisabled,
|
|
11571
11593
|
testID: "previous-icon-button"
|
|
11572
|
-
}), fontSize === 'medium' ? /*#__PURE__*/
|
|
11594
|
+
}), fontSize === 'medium' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
11573
11595
|
style: {
|
|
11574
11596
|
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11575
11597
|
},
|
|
11576
11598
|
variant: "small-bold",
|
|
11577
11599
|
onPress: onPress,
|
|
11578
11600
|
testID: "content-navigator-value"
|
|
11579
|
-
}, value) : /*#__PURE__*/
|
|
11601
|
+
}, value) : /*#__PURE__*/React__default.createElement(Typography.Title, {
|
|
11580
11602
|
style: {
|
|
11581
11603
|
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11582
11604
|
},
|
|
11583
11605
|
level: "h5",
|
|
11584
11606
|
onPress: onPress,
|
|
11585
11607
|
testID: "content-navigator-value"
|
|
11586
|
-
}, value), /*#__PURE__*/
|
|
11608
|
+
}, value), /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
|
|
11587
11609
|
icon: "arrow-right",
|
|
11588
11610
|
onPress: onNextPress,
|
|
11589
11611
|
disabled: nextDisabled,
|
|
@@ -11640,7 +11662,7 @@ var StyledCalendarRow = index$9(View)(function (_ref5) {
|
|
|
11640
11662
|
var StyledCalendarRowItem = index$9(View)(function (_ref6) {
|
|
11641
11663
|
var theme = _ref6.theme;
|
|
11642
11664
|
return {
|
|
11643
|
-
flexBasis: "".concat(Math.floor(100.0 / 7.0)
|
|
11665
|
+
flexBasis: "".concat(Math.floor(100.0 / 7.0), "%"),
|
|
11644
11666
|
alignItems: 'center',
|
|
11645
11667
|
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
11646
11668
|
height: theme.__hd__.calendar.sizes.cellHeight,
|
|
@@ -11650,7 +11672,7 @@ var StyledCalendarRowItem = index$9(View)(function (_ref6) {
|
|
|
11650
11672
|
var StyledDisabledCalendarRowItem = index$9(View)(function (_ref7) {
|
|
11651
11673
|
var theme = _ref7.theme;
|
|
11652
11674
|
return {
|
|
11653
|
-
flexBasis: "".concat(Math.floor(100.0 / 7.0)
|
|
11675
|
+
flexBasis: "".concat(Math.floor(100.0 / 7.0), "%"),
|
|
11654
11676
|
alignItems: 'center',
|
|
11655
11677
|
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
11656
11678
|
height: theme.__hd__.calendar.sizes.cellHeight
|
|
@@ -11686,15 +11708,15 @@ var CalendarRowItem = function CalendarRowItem(_ref) {
|
|
|
11686
11708
|
textIntent = _ref$textIntent === void 0 ? 'body' : _ref$textIntent,
|
|
11687
11709
|
_ref$marked = _ref.marked,
|
|
11688
11710
|
marked = _ref$marked === void 0 ? false : _ref$marked;
|
|
11689
|
-
return /*#__PURE__*/
|
|
11711
|
+
return /*#__PURE__*/React__default.createElement(StyledCalendarRowItem, {
|
|
11690
11712
|
testID: "calendar-date-cell"
|
|
11691
|
-
}, /*#__PURE__*/
|
|
11713
|
+
}, /*#__PURE__*/React__default.createElement(StyledCalendarCell, {
|
|
11692
11714
|
variant: getCellVariant(isSelected, isCurrent),
|
|
11693
11715
|
onPress: onPress
|
|
11694
|
-
}, /*#__PURE__*/
|
|
11716
|
+
}, /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
11695
11717
|
variant: "small",
|
|
11696
11718
|
intent: isSelected ? 'inverted' : textIntent
|
|
11697
|
-
}, date ? date.getDate() : ''), marked ? /*#__PURE__*/
|
|
11719
|
+
}, date ? date.getDate() : ''), marked ? /*#__PURE__*/React__default.createElement(StyledMark, {
|
|
11698
11720
|
testID: "calendar-date-mark",
|
|
11699
11721
|
variant: isSelected ? 'inverted' : 'primary'
|
|
11700
11722
|
}) : null));
|
|
@@ -11759,11 +11781,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11759
11781
|
var parsedMaskedDate = markedDates.reduce(function (current, markedDate) {
|
|
11760
11782
|
return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty({}, markedDate.toDateString(), true));
|
|
11761
11783
|
}, {});
|
|
11762
|
-
var _React$useState =
|
|
11784
|
+
var _React$useState = React__default.useState(false),
|
|
11763
11785
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
11764
11786
|
monthPickerVisible = _React$useState2[0],
|
|
11765
11787
|
setMonthPickerVisible = _React$useState2[1];
|
|
11766
|
-
var _React$useState3 =
|
|
11788
|
+
var _React$useState3 = React__default.useState(0),
|
|
11767
11789
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
11768
11790
|
contentHeight = _React$useState4[0],
|
|
11769
11791
|
setContentHeight = _React$useState4[1];
|
|
@@ -11792,26 +11814,26 @@ var Calendar = function Calendar(_ref) {
|
|
|
11792
11814
|
var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
|
|
11793
11815
|
return date !== undefined;
|
|
11794
11816
|
}) || maxDate <= lastDateOfMonth;
|
|
11795
|
-
return /*#__PURE__*/
|
|
11817
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$5, {
|
|
11796
11818
|
testID: testID
|
|
11797
|
-
}, /*#__PURE__*/
|
|
11798
|
-
value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/
|
|
11819
|
+
}, /*#__PURE__*/React__default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default.createElement(ContentNavigator, {
|
|
11820
|
+
value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
11799
11821
|
testID: "calendar-month-picker",
|
|
11800
11822
|
onPress: function onPress() {
|
|
11801
11823
|
onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
|
|
11802
11824
|
setMonthPickerVisible(!monthPickerVisible);
|
|
11803
11825
|
}
|
|
11804
|
-
}, /*#__PURE__*/
|
|
11826
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
11805
11827
|
flexDirection: "row",
|
|
11806
11828
|
justifyContent: "center",
|
|
11807
11829
|
alignItems: "center"
|
|
11808
|
-
}, /*#__PURE__*/
|
|
11830
|
+
}, /*#__PURE__*/React__default.createElement(Typography.Title, {
|
|
11809
11831
|
level: "h5",
|
|
11810
11832
|
style: {
|
|
11811
11833
|
textAlign: 'center',
|
|
11812
11834
|
marginRight: theme.__hd__.calendar.space.headerMarginRight
|
|
11813
11835
|
}
|
|
11814
|
-
}, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/
|
|
11836
|
+
}, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/React__default.createElement(Icon, {
|
|
11815
11837
|
icon: monthPickerVisible ? 'arrow-up' : 'arrow-down',
|
|
11816
11838
|
size: "small"
|
|
11817
11839
|
}))),
|
|
@@ -11821,11 +11843,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11821
11843
|
previousDisabled: disablePrevButton,
|
|
11822
11844
|
nextDisabled: disableNextButton,
|
|
11823
11845
|
fontSize: "large"
|
|
11824
|
-
})), Platform.OS === 'ios' && monthPickerVisible ? /*#__PURE__*/
|
|
11846
|
+
})), Platform.OS === 'ios' && monthPickerVisible ? /*#__PURE__*/React__default.createElement(Box, {
|
|
11825
11847
|
style: {
|
|
11826
11848
|
overflow: 'hidden'
|
|
11827
11849
|
}
|
|
11828
|
-
}, /*#__PURE__*/
|
|
11850
|
+
}, /*#__PURE__*/React__default.createElement(MonthYearPickerViewIOS, {
|
|
11829
11851
|
value: value,
|
|
11830
11852
|
minimumDate: minDate,
|
|
11831
11853
|
maximumDate: maxDate,
|
|
@@ -11834,18 +11856,18 @@ var Calendar = function Calendar(_ref) {
|
|
|
11834
11856
|
height: contentHeight + theme.__hd__.calendar.space.iosPickerMarginVertical * 2,
|
|
11835
11857
|
marginVertical: -theme.__hd__.calendar.space.iosPickerMarginVertical
|
|
11836
11858
|
}
|
|
11837
|
-
})) : /*#__PURE__*/
|
|
11859
|
+
})) : /*#__PURE__*/React__default.createElement(Box, {
|
|
11838
11860
|
onLayout: Platform.OS === 'ios' ? function (e) {
|
|
11839
11861
|
return setContentHeight(e.nativeEvent.layout.height);
|
|
11840
11862
|
} : undefined
|
|
11841
|
-
}, /*#__PURE__*/
|
|
11842
|
-
return /*#__PURE__*/
|
|
11863
|
+
}, /*#__PURE__*/React__default.createElement(StyledCalendarRow, null, DAYS_OF_WEEK.map(function (day) {
|
|
11864
|
+
return /*#__PURE__*/React__default.createElement(StyledCalendarRowItem, {
|
|
11843
11865
|
key: day
|
|
11844
|
-
}, /*#__PURE__*/
|
|
11866
|
+
}, /*#__PURE__*/React__default.createElement(StyledCalendarDayNameCell, null, /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
11845
11867
|
variant: "small"
|
|
11846
11868
|
}, day)));
|
|
11847
|
-
})), /*#__PURE__*/
|
|
11848
|
-
return date ? /*#__PURE__*/
|
|
11869
|
+
})), /*#__PURE__*/React__default.createElement(StyledCalendarRow, null, daysOfPreviousMonth.map(function (date) {
|
|
11870
|
+
return date ? /*#__PURE__*/React__default.createElement(CalendarRowItem, {
|
|
11849
11871
|
key: date.toDateString(),
|
|
11850
11872
|
date: date,
|
|
11851
11873
|
isCurrent: isEqDate(now, date),
|
|
@@ -11855,11 +11877,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11855
11877
|
},
|
|
11856
11878
|
textIntent: "subdued",
|
|
11857
11879
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11858
|
-
}) : /*#__PURE__*/
|
|
11880
|
+
}) : /*#__PURE__*/React__default.createElement(StyledDisabledCalendarRowItem, {
|
|
11859
11881
|
testID: "calendar-disabled-cell"
|
|
11860
11882
|
});
|
|
11861
11883
|
}), daysOfCurrentMonth.map(function (date) {
|
|
11862
|
-
return date ? /*#__PURE__*/
|
|
11884
|
+
return date ? /*#__PURE__*/React__default.createElement(CalendarRowItem, {
|
|
11863
11885
|
key: date.toDateString(),
|
|
11864
11886
|
date: date,
|
|
11865
11887
|
isCurrent: isEqDate(now, date),
|
|
@@ -11868,11 +11890,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11868
11890
|
return onChange === null || onChange === void 0 ? void 0 : onChange(date);
|
|
11869
11891
|
},
|
|
11870
11892
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11871
|
-
}) : /*#__PURE__*/
|
|
11893
|
+
}) : /*#__PURE__*/React__default.createElement(StyledDisabledCalendarRowItem, {
|
|
11872
11894
|
testID: "calendar-disabled-cell"
|
|
11873
11895
|
});
|
|
11874
11896
|
}), daysOfNextMonth.map(function (date) {
|
|
11875
|
-
return date ? /*#__PURE__*/
|
|
11897
|
+
return date ? /*#__PURE__*/React__default.createElement(CalendarRowItem, {
|
|
11876
11898
|
key: date.toDateString(),
|
|
11877
11899
|
date: date,
|
|
11878
11900
|
isCurrent: isEqDate(now, date),
|
|
@@ -11882,10 +11904,10 @@ var Calendar = function Calendar(_ref) {
|
|
|
11882
11904
|
},
|
|
11883
11905
|
textIntent: "subdued",
|
|
11884
11906
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11885
|
-
}) : /*#__PURE__*/
|
|
11907
|
+
}) : /*#__PURE__*/React__default.createElement(StyledDisabledCalendarRowItem, {
|
|
11886
11908
|
testID: "calendar-disabled-cell"
|
|
11887
11909
|
});
|
|
11888
|
-
})), Platform.OS === 'android' && monthPickerVisible && /*#__PURE__*/
|
|
11910
|
+
})), Platform.OS === 'android' && monthPickerVisible && /*#__PURE__*/React__default.createElement(MonthYearPickerDialogueAndroid, {
|
|
11889
11911
|
doneButtonLabel: monthPickerConfirmLabel,
|
|
11890
11912
|
cancelButtonLabel: monthPickerCancelLabel,
|
|
11891
11913
|
value: value,
|
|
@@ -11925,7 +11947,7 @@ var DataCard = function DataCard(_ref) {
|
|
|
11925
11947
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
11926
11948
|
children = _ref.children,
|
|
11927
11949
|
nativeProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
11928
|
-
return /*#__PURE__*/
|
|
11950
|
+
return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
|
|
11929
11951
|
themeIntent: intent,
|
|
11930
11952
|
testID: "data-card-indicator"
|
|
11931
11953
|
}), children);
|
|
@@ -11947,7 +11969,7 @@ var Card = function Card(_ref) {
|
|
|
11947
11969
|
var intent = _ref.intent,
|
|
11948
11970
|
children = _ref.children,
|
|
11949
11971
|
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
11950
|
-
return /*#__PURE__*/
|
|
11972
|
+
return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
11951
11973
|
themeIntent: intent
|
|
11952
11974
|
}), children);
|
|
11953
11975
|
};
|
|
@@ -11979,14 +12001,14 @@ var PageControl = function PageControl(_ref) {
|
|
|
11979
12001
|
testID = _ref.testID,
|
|
11980
12002
|
style = _ref.style;
|
|
11981
12003
|
var theme = useTheme();
|
|
11982
|
-
var animatedValue =
|
|
11983
|
-
|
|
12004
|
+
var animatedValue = React__default.useRef(new Animated.Value(currentPage)).current;
|
|
12005
|
+
React__default.useEffect(function () {
|
|
11984
12006
|
Animated.spring(animatedValue, {
|
|
11985
12007
|
toValue: currentPage,
|
|
11986
12008
|
useNativeDriver: false // Native driver does not support animating width, it will cause the app to crash if set to true
|
|
11987
12009
|
}).start();
|
|
11988
12010
|
}, [currentPage]);
|
|
11989
|
-
return /*#__PURE__*/
|
|
12011
|
+
return /*#__PURE__*/React__default.createElement(StyledPageControl$2, {
|
|
11990
12012
|
testID: testID,
|
|
11991
12013
|
style: style
|
|
11992
12014
|
}, new Array(numberOfPages).fill('').map(function (_, index) {
|
|
@@ -12001,7 +12023,7 @@ var PageControl = function PageControl(_ref) {
|
|
|
12001
12023
|
outputRange: [0.5, 1, 0.5],
|
|
12002
12024
|
extrapolate: 'clamp'
|
|
12003
12025
|
});
|
|
12004
|
-
return /*#__PURE__*/
|
|
12026
|
+
return /*#__PURE__*/React__default.createElement(StyledPageControlAnimatedView, {
|
|
12005
12027
|
accessibilityState: {
|
|
12006
12028
|
selected: index === currentPage
|
|
12007
12029
|
},
|
|
@@ -12099,7 +12121,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12099
12121
|
viewPosition: viewPosition
|
|
12100
12122
|
});
|
|
12101
12123
|
}, [currentIndex, items.length, viewPosition]);
|
|
12102
|
-
|
|
12124
|
+
React__default.useImperativeHandle(ref, function () {
|
|
12103
12125
|
return {
|
|
12104
12126
|
snapToIndex: function snapToIndex(index) {
|
|
12105
12127
|
_snapToIndex(index);
|
|
@@ -12145,17 +12167,17 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12145
12167
|
}, [setFlatListWidth, onLayout]);
|
|
12146
12168
|
var renderItem = useCallback(function (_ref3) {
|
|
12147
12169
|
var item = _ref3.item;
|
|
12148
|
-
return /*#__PURE__*/
|
|
12170
|
+
return /*#__PURE__*/React__default.createElement(StyledItemWrapper, {
|
|
12149
12171
|
style: {
|
|
12150
12172
|
width: itemWidth
|
|
12151
12173
|
}
|
|
12152
|
-
}, /*#__PURE__*/
|
|
12174
|
+
}, /*#__PURE__*/React__default.createElement(StyledCard, null, item));
|
|
12153
12175
|
}, [itemWidth]);
|
|
12154
12176
|
var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
|
|
12155
|
-
return /*#__PURE__*/
|
|
12177
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$8, {
|
|
12156
12178
|
style: style,
|
|
12157
12179
|
testID: testID
|
|
12158
|
-
}, /*#__PURE__*/
|
|
12180
|
+
}, /*#__PURE__*/React__default.createElement(FlatList, {
|
|
12159
12181
|
contentInset: {
|
|
12160
12182
|
top: 0,
|
|
12161
12183
|
left: contentContainerPaddingHorizontal,
|
|
@@ -12163,14 +12185,14 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12163
12185
|
right: contentContainerPaddingHorizontal
|
|
12164
12186
|
},
|
|
12165
12187
|
ListHeaderComponent: Platform.select({
|
|
12166
|
-
android: /*#__PURE__*/
|
|
12188
|
+
android: /*#__PURE__*/React__default.createElement(View, {
|
|
12167
12189
|
style: {
|
|
12168
12190
|
width: contentContainerPaddingHorizontal
|
|
12169
12191
|
}
|
|
12170
12192
|
})
|
|
12171
12193
|
}),
|
|
12172
12194
|
ListFooterComponent: Platform.select({
|
|
12173
|
-
android: /*#__PURE__*/
|
|
12195
|
+
android: /*#__PURE__*/React__default.createElement(View, {
|
|
12174
12196
|
style: {
|
|
12175
12197
|
width: contentContainerPaddingHorizontal
|
|
12176
12198
|
}
|
|
@@ -12199,7 +12221,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12199
12221
|
viewabilityConfig: {
|
|
12200
12222
|
itemVisiblePercentThreshold: 80
|
|
12201
12223
|
}
|
|
12202
|
-
}), !hidePageControl && /*#__PURE__*/
|
|
12224
|
+
}), !hidePageControl && /*#__PURE__*/React__default.createElement(StyledPageControl$1, {
|
|
12203
12225
|
testID: "pageControl",
|
|
12204
12226
|
currentPage: currentIndex,
|
|
12205
12227
|
numberOfPages: items.length
|
|
@@ -12218,7 +12240,7 @@ var Image = function Image(_ref) {
|
|
|
12218
12240
|
imageNativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
12219
12241
|
var theme = useTheme();
|
|
12220
12242
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
12221
|
-
return /*#__PURE__*/
|
|
12243
|
+
return /*#__PURE__*/React__default.createElement(Image$1, _extends$1({
|
|
12222
12244
|
testID: testID,
|
|
12223
12245
|
style: [{
|
|
12224
12246
|
width: imageSize,
|
|
@@ -12260,15 +12282,15 @@ var StyledCarouselImage = index$9(Image)(function () {
|
|
|
12260
12282
|
};
|
|
12261
12283
|
});
|
|
12262
12284
|
var StyledCustomSizeCarouselImage = index$9(Image)(function (_ref3) {
|
|
12263
|
-
var
|
|
12264
|
-
_ref3$
|
|
12265
|
-
|
|
12266
|
-
|
|
12285
|
+
var themeHeight = _ref3.themeHeight,
|
|
12286
|
+
_ref3$themeResizeMode = _ref3.themeResizeMode,
|
|
12287
|
+
themeResizeMode = _ref3$themeResizeMode === void 0 ? 'contain' : _ref3$themeResizeMode,
|
|
12288
|
+
themeWidth = _ref3.themeWidth;
|
|
12267
12289
|
return {
|
|
12268
12290
|
alignSelf: 'center',
|
|
12269
|
-
width:
|
|
12270
|
-
height:
|
|
12271
|
-
resizeMode:
|
|
12291
|
+
width: themeWidth,
|
|
12292
|
+
height: themeHeight,
|
|
12293
|
+
resizeMode: themeResizeMode
|
|
12272
12294
|
};
|
|
12273
12295
|
});
|
|
12274
12296
|
var StyledCarouselContentWrapper = index$9(Box)(function (_ref4) {
|
|
@@ -12312,20 +12334,20 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12312
12334
|
heading = _ref.heading,
|
|
12313
12335
|
body = _ref.body;
|
|
12314
12336
|
var theme = useTheme$1();
|
|
12315
|
-
var ImageComponent =
|
|
12337
|
+
var ImageComponent = React__default.useMemo(function () {
|
|
12316
12338
|
if (image) {
|
|
12317
12339
|
if (isCarouselImageProps(image)) {
|
|
12318
|
-
return /*#__PURE__*/
|
|
12340
|
+
return /*#__PURE__*/React__default.createElement(StyledCustomSizeCarouselImage, {
|
|
12319
12341
|
source: image,
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12342
|
+
themeHeight: image.height,
|
|
12343
|
+
themeWidth: image.width,
|
|
12344
|
+
themeResizeMode: image.resizeMode,
|
|
12323
12345
|
style: {
|
|
12324
12346
|
marginBottom: theme.space.medium
|
|
12325
12347
|
}
|
|
12326
12348
|
});
|
|
12327
12349
|
}
|
|
12328
|
-
return /*#__PURE__*/
|
|
12350
|
+
return /*#__PURE__*/React__default.createElement(StyledCarouselImage, {
|
|
12329
12351
|
source: typeof image === 'string' ? {
|
|
12330
12352
|
uri: image
|
|
12331
12353
|
} : image,
|
|
@@ -12336,17 +12358,17 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12336
12358
|
}
|
|
12337
12359
|
return null;
|
|
12338
12360
|
}, [image]);
|
|
12339
|
-
return /*#__PURE__*/
|
|
12361
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
12340
12362
|
style: {
|
|
12341
12363
|
width: width
|
|
12342
12364
|
}
|
|
12343
|
-
}, ImageComponent, /*#__PURE__*/
|
|
12365
|
+
}, ImageComponent, /*#__PURE__*/React__default.createElement(StyledCarouselContentWrapper, {
|
|
12344
12366
|
paddingHorizontal: "medium",
|
|
12345
12367
|
width: width
|
|
12346
|
-
}, content, !!heading && /*#__PURE__*/
|
|
12368
|
+
}, content, !!heading && /*#__PURE__*/React__default.createElement(StyledCarouselHeading, {
|
|
12347
12369
|
level: "h1",
|
|
12348
12370
|
typeface: "playful"
|
|
12349
|
-
}, heading), !!body && /*#__PURE__*/
|
|
12371
|
+
}, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
|
|
12350
12372
|
};
|
|
12351
12373
|
|
|
12352
12374
|
var _excluded$l = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
@@ -12427,15 +12449,15 @@ var Carousel = function Carousel(_ref) {
|
|
|
12427
12449
|
internalOnItemIndexChange(firstVisibleItem.index || 0);
|
|
12428
12450
|
}
|
|
12429
12451
|
});
|
|
12430
|
-
return /*#__PURE__*/
|
|
12452
|
+
return /*#__PURE__*/React__default.createElement(View, _extends$1({
|
|
12431
12453
|
style: style,
|
|
12432
12454
|
testID: testID
|
|
12433
|
-
}, nativeProps), /*#__PURE__*/
|
|
12455
|
+
}, nativeProps), /*#__PURE__*/React__default.createElement(StyledBackDrop, {
|
|
12434
12456
|
themeSlideBackground: ((_items$currentSlideIn = items[currentSlideIndex]) === null || _items$currentSlideIn === void 0 ? void 0 : _items$currentSlideIn.background) || theme.colors.defaultGlobalSurface
|
|
12435
|
-
}), /*#__PURE__*/
|
|
12457
|
+
}), /*#__PURE__*/React__default.createElement(StyledPageControlWrapper, null, pageControlPosition === 'top' && shouldRenderPagination && /*#__PURE__*/React__default.createElement(StyledPageControl, {
|
|
12436
12458
|
numberOfPages: items.length,
|
|
12437
12459
|
currentPage: currentSlideIndex
|
|
12438
|
-
})), /*#__PURE__*/
|
|
12460
|
+
})), /*#__PURE__*/React__default.createElement(StyledCarouselView, null, /*#__PURE__*/React__default.createElement(FlatList, {
|
|
12439
12461
|
onLayout: flatListOnLayout,
|
|
12440
12462
|
testID: testID ? "".concat(testID, "_flatlist") : undefined,
|
|
12441
12463
|
horizontal: true,
|
|
@@ -12463,7 +12485,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12463
12485
|
heading = item.heading,
|
|
12464
12486
|
body = item.body,
|
|
12465
12487
|
content = item.content;
|
|
12466
|
-
return /*#__PURE__*/
|
|
12488
|
+
return /*#__PURE__*/React__default.createElement(CarouselItem, {
|
|
12467
12489
|
image: image,
|
|
12468
12490
|
heading: heading,
|
|
12469
12491
|
body: body,
|
|
@@ -12478,7 +12500,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12478
12500
|
index: index
|
|
12479
12501
|
};
|
|
12480
12502
|
}
|
|
12481
|
-
}), /*#__PURE__*/
|
|
12503
|
+
}), /*#__PURE__*/React__default.createElement(StyledCarouselFooterWrapper, null, renderActions && renderActions(currentSlideIndex), pageControlPosition === 'bottom' && shouldRenderPagination && /*#__PURE__*/React__default.createElement(StyledPageControl, {
|
|
12482
12504
|
numberOfPages: items.length,
|
|
12483
12505
|
currentPage: currentSlideIndex
|
|
12484
12506
|
}))));
|
|
@@ -12596,7 +12618,7 @@ var Chip = function Chip(_ref) {
|
|
|
12596
12618
|
icon = _ref.icon,
|
|
12597
12619
|
onPress = _ref.onPress,
|
|
12598
12620
|
otherProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
12599
|
-
var internalIcon =
|
|
12621
|
+
var internalIcon = React__default.useMemo(function () {
|
|
12600
12622
|
if (icon && variant === 'filled') {
|
|
12601
12623
|
return icon;
|
|
12602
12624
|
}
|
|
@@ -12605,17 +12627,17 @@ var Chip = function Chip(_ref) {
|
|
|
12605
12627
|
}
|
|
12606
12628
|
return undefined;
|
|
12607
12629
|
}, [icon, selected, variant]);
|
|
12608
|
-
return /*#__PURE__*/
|
|
12630
|
+
return /*#__PURE__*/React__default.createElement(StyledChipWrapper, _extends$1({
|
|
12609
12631
|
onPress: onPress,
|
|
12610
12632
|
themeVariant: variant,
|
|
12611
12633
|
themeSelected: selected
|
|
12612
|
-
}, otherProps), internalIcon && /*#__PURE__*/
|
|
12634
|
+
}, otherProps), internalIcon && /*#__PURE__*/React__default.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React__default.createElement(StyledIcon$1, {
|
|
12613
12635
|
size: "xsmall",
|
|
12614
12636
|
icon: internalIcon,
|
|
12615
12637
|
themeSelected: selected,
|
|
12616
12638
|
themeVariant: variant,
|
|
12617
12639
|
testID: "chip-icon-".concat(internalIcon)
|
|
12618
|
-
})), /*#__PURE__*/
|
|
12640
|
+
})), /*#__PURE__*/React__default.createElement(StyledLabel, {
|
|
12619
12641
|
variant: "small",
|
|
12620
12642
|
themeVariant: variant,
|
|
12621
12643
|
themeSelected: selected
|
|
@@ -12696,20 +12718,20 @@ var Checkbox = function Checkbox(_ref2) {
|
|
|
12696
12718
|
disabled: disabled,
|
|
12697
12719
|
readonly: readonly
|
|
12698
12720
|
});
|
|
12699
|
-
return /*#__PURE__*/
|
|
12721
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$7, {
|
|
12700
12722
|
onPress: onPress,
|
|
12701
12723
|
disabled: disabled || readonly,
|
|
12702
12724
|
themeState: themeState,
|
|
12703
12725
|
style: style,
|
|
12704
12726
|
testID: testID
|
|
12705
|
-
}, !!description && /*#__PURE__*/
|
|
12727
|
+
}, !!description && /*#__PURE__*/React__default.createElement(StyledDescription$1, {
|
|
12706
12728
|
intent: disabled ? 'subdued' : 'body',
|
|
12707
12729
|
variant: "small"
|
|
12708
|
-
}, description), /*#__PURE__*/
|
|
12730
|
+
}, description), /*#__PURE__*/React__default.createElement(StyledCheckboxContainer, null, checked && /*#__PURE__*/React__default.createElement(StyledCheckMark, {
|
|
12709
12731
|
icon: "box-check",
|
|
12710
12732
|
testID: "check-mark",
|
|
12711
12733
|
themeState: themeState
|
|
12712
|
-
}), /*#__PURE__*/
|
|
12734
|
+
}), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
|
|
12713
12735
|
themeState: themeState
|
|
12714
12736
|
})));
|
|
12715
12737
|
};
|
|
@@ -12870,21 +12892,21 @@ var LABEL_ANIMATION_DURATION = 150;
|
|
|
12870
12892
|
var renderErrorOrHelpText = function renderErrorOrHelpText(_ref2) {
|
|
12871
12893
|
var error = _ref2.error,
|
|
12872
12894
|
helpText = _ref2.helpText;
|
|
12873
|
-
return error ? /*#__PURE__*/
|
|
12895
|
+
return error ? /*#__PURE__*/React__default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
12874
12896
|
testID: "input-error-icon",
|
|
12875
12897
|
icon: "circle-info",
|
|
12876
12898
|
size: "xsmall",
|
|
12877
12899
|
intent: "danger"
|
|
12878
|
-
}), /*#__PURE__*/
|
|
12900
|
+
}), /*#__PURE__*/React__default.createElement(StyledError, {
|
|
12879
12901
|
testID: "input-error-message"
|
|
12880
|
-
}, error)) : !!helpText && /*#__PURE__*/
|
|
12902
|
+
}, error)) : !!helpText && /*#__PURE__*/React__default.createElement(StyledHelperText, null, helpText);
|
|
12881
12903
|
};
|
|
12882
12904
|
var renderInput = function renderInput(_ref3) {
|
|
12883
12905
|
var variant = _ref3.variant,
|
|
12884
12906
|
nativeInputProps = _ref3.nativeInputProps,
|
|
12885
12907
|
renderInputValue = _ref3.renderInputValue,
|
|
12886
12908
|
ref = _ref3.ref;
|
|
12887
|
-
return renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/
|
|
12909
|
+
return renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__default.createElement(StyledTextInput, _extends$1({}, nativeInputProps, {
|
|
12888
12910
|
themeVariant: variant,
|
|
12889
12911
|
multiline: variant === 'textarea' || nativeInputProps.multiline,
|
|
12890
12912
|
ref: ref
|
|
@@ -12895,7 +12917,7 @@ var renderSuffix = function renderSuffix(_ref4) {
|
|
|
12895
12917
|
loading = _ref4.loading,
|
|
12896
12918
|
suffix = _ref4.suffix;
|
|
12897
12919
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
12898
|
-
return typeof actualSuffix === 'string' ? /*#__PURE__*/
|
|
12920
|
+
return typeof actualSuffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
12899
12921
|
intent: state === 'disabled' ? 'disabled-text' : 'text',
|
|
12900
12922
|
testID: "input-suffix",
|
|
12901
12923
|
icon: actualSuffix,
|
|
@@ -12906,7 +12928,7 @@ var renderSuffix = function renderSuffix(_ref4) {
|
|
|
12906
12928
|
var renderPrefix = function renderPrefix(_ref5) {
|
|
12907
12929
|
var state = _ref5.state,
|
|
12908
12930
|
prefix = _ref5.prefix;
|
|
12909
|
-
return typeof prefix === 'string' ? /*#__PURE__*/
|
|
12931
|
+
return typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
12910
12932
|
intent: state === 'disabled' ? 'disabled-text' : 'text',
|
|
12911
12933
|
testID: "input-prefix",
|
|
12912
12934
|
icon: prefix,
|
|
@@ -12919,7 +12941,7 @@ var renderMaxLengthMessage = function renderMaxLengthMessage(_ref6) {
|
|
|
12919
12941
|
currentLength = _ref6.currentLength,
|
|
12920
12942
|
hideCharacterCount = _ref6.hideCharacterCount;
|
|
12921
12943
|
var shouldShowMaxLength = maxLength !== undefined && !hideCharacterCount;
|
|
12922
|
-
return shouldShowMaxLength && /*#__PURE__*/
|
|
12944
|
+
return shouldShowMaxLength && /*#__PURE__*/React__default.createElement(StyledMaxLengthMessage, {
|
|
12923
12945
|
themeState: state
|
|
12924
12946
|
}, currentLength, "/", maxLength);
|
|
12925
12947
|
};
|
|
@@ -12957,22 +12979,22 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
12957
12979
|
nativeProps = _objectWithoutProperties(_ref8, _excluded$j);
|
|
12958
12980
|
var displayText = getDisplayText(value, defaultValue);
|
|
12959
12981
|
var isEmptyValue = displayText.length === 0;
|
|
12960
|
-
var _React$useState =
|
|
12982
|
+
var _React$useState = React__default.useState({
|
|
12961
12983
|
height: 0,
|
|
12962
12984
|
width: 0
|
|
12963
12985
|
}),
|
|
12964
12986
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
12965
12987
|
inputSize = _React$useState2[0],
|
|
12966
12988
|
setInputSize = _React$useState2[1];
|
|
12967
|
-
var _React$useState3 =
|
|
12989
|
+
var _React$useState3 = React__default.useState(0),
|
|
12968
12990
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
12969
12991
|
labelWidth = _React$useState4[0],
|
|
12970
12992
|
setLabelWidth = _React$useState4[1];
|
|
12971
|
-
var _React$useState5 =
|
|
12993
|
+
var _React$useState5 = React__default.useState(0),
|
|
12972
12994
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
12973
12995
|
prefixWidth = _React$useState6[0],
|
|
12974
12996
|
setPrefixWidth = _React$useState6[1];
|
|
12975
|
-
var _React$useState7 =
|
|
12997
|
+
var _React$useState7 = React__default.useState(false),
|
|
12976
12998
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
12977
12999
|
isFocused = _React$useState8[0],
|
|
12978
13000
|
setIsFocused = _React$useState8[1];
|
|
@@ -13013,8 +13035,8 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13013
13035
|
var width = event.nativeEvent.layout.width;
|
|
13014
13036
|
setLabelWidth(width);
|
|
13015
13037
|
}, []);
|
|
13016
|
-
var innerTextInput =
|
|
13017
|
-
|
|
13038
|
+
var innerTextInput = React__default.useRef();
|
|
13039
|
+
React__default.useImperativeHandle(ref, function () {
|
|
13018
13040
|
return {
|
|
13019
13041
|
// we don't expose this method, it's for testing https://medium.com/developer-rants/how-to-test-useref-without-mocking-useref-699165f4994e
|
|
13020
13042
|
getNativeTextInputRef: function getNativeTextInputRef() {
|
|
@@ -13106,25 +13128,25 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13106
13128
|
defaultValue: defaultValue,
|
|
13107
13129
|
placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
|
|
13108
13130
|
});
|
|
13109
|
-
return /*#__PURE__*/
|
|
13131
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$4, {
|
|
13110
13132
|
style: styleWithoutBackgroundColor,
|
|
13111
13133
|
pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
|
|
13112
13134
|
testID: testID
|
|
13113
|
-
}, /*#__PURE__*/
|
|
13135
|
+
}, /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
|
|
13114
13136
|
onLayout: onLayout
|
|
13115
|
-
}, /*#__PURE__*/
|
|
13137
|
+
}, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
|
|
13116
13138
|
themeFocused: isFocused,
|
|
13117
13139
|
themeState: state,
|
|
13118
13140
|
testID: "text-input-border",
|
|
13119
13141
|
style: [{
|
|
13120
13142
|
backgroundColor: backgroundColor
|
|
13121
13143
|
}, borderStyle]
|
|
13122
|
-
}), /*#__PURE__*/
|
|
13144
|
+
}), /*#__PURE__*/React__default.createElement(View, {
|
|
13123
13145
|
onLayout: onPrefixLayout
|
|
13124
13146
|
}, renderPrefix({
|
|
13125
13147
|
state: state,
|
|
13126
13148
|
prefix: prefix
|
|
13127
|
-
})), /*#__PURE__*/
|
|
13149
|
+
})), /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
|
|
13128
13150
|
themeVariant: variant,
|
|
13129
13151
|
pointerEvents: "none",
|
|
13130
13152
|
style: [{
|
|
@@ -13147,13 +13169,13 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13147
13169
|
})
|
|
13148
13170
|
}]
|
|
13149
13171
|
}]
|
|
13150
|
-
}, required && /*#__PURE__*/
|
|
13172
|
+
}, required && /*#__PURE__*/React__default.createElement(StyledAsteriskLabelInsideTextInput, {
|
|
13151
13173
|
style: {
|
|
13152
13174
|
backgroundColor: backgroundColor
|
|
13153
13175
|
},
|
|
13154
13176
|
themeState: state,
|
|
13155
13177
|
testID: "input-label-asterisk"
|
|
13156
|
-
}, "*"), !!label && /*#__PURE__*/
|
|
13178
|
+
}, "*"), !!label && /*#__PURE__*/React__default.createElement(StyledLabelInsideTextInput, {
|
|
13157
13179
|
style: {
|
|
13158
13180
|
backgroundColor: backgroundColor
|
|
13159
13181
|
},
|
|
@@ -13161,7 +13183,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13161
13183
|
testID: "input-label",
|
|
13162
13184
|
themeState: state,
|
|
13163
13185
|
onLayout: onLabelLayout
|
|
13164
|
-
}, label)), /*#__PURE__*/
|
|
13186
|
+
}, label)), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput({
|
|
13165
13187
|
variant: variant,
|
|
13166
13188
|
nativeInputProps: nativeInputProps,
|
|
13167
13189
|
renderInputValue: renderInputValue,
|
|
@@ -13172,7 +13194,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13172
13194
|
state: state,
|
|
13173
13195
|
loading: loading,
|
|
13174
13196
|
suffix: suffix
|
|
13175
|
-
})), /*#__PURE__*/
|
|
13197
|
+
})), /*#__PURE__*/React__default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__default.createElement(StyledErrorAndMaxLengthContainer, null, renderErrorOrHelpText({
|
|
13176
13198
|
error: error,
|
|
13177
13199
|
helpText: helpText
|
|
13178
13200
|
}), renderMaxLengthMessage({
|
|
@@ -13233,15 +13255,15 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
13233
13255
|
onChange: _onChange,
|
|
13234
13256
|
value: value
|
|
13235
13257
|
});
|
|
13236
|
-
return /*#__PURE__*/
|
|
13258
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
13237
13259
|
onPress: function onPress() {
|
|
13238
13260
|
return setOpen(true);
|
|
13239
13261
|
},
|
|
13240
13262
|
disabled: disabled
|
|
13241
|
-
}, /*#__PURE__*/
|
|
13263
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
13242
13264
|
pointerEvents: "none",
|
|
13243
13265
|
testID: "datePickerInputAndroid"
|
|
13244
|
-
}, /*#__PURE__*/
|
|
13266
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
13245
13267
|
label: label,
|
|
13246
13268
|
value: displayValue,
|
|
13247
13269
|
suffix: "calendar-dates-outlined",
|
|
@@ -13252,7 +13274,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
13252
13274
|
helpText: helpText,
|
|
13253
13275
|
style: style,
|
|
13254
13276
|
testID: testID
|
|
13255
|
-
})), open ? /*#__PURE__*/
|
|
13277
|
+
})), open ? /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
13256
13278
|
testID: "datePickerAndroid",
|
|
13257
13279
|
mode: "date",
|
|
13258
13280
|
value: pickerInitValue,
|
|
@@ -13284,7 +13306,7 @@ var InternalCalendar = function InternalCalendar(_ref) {
|
|
|
13284
13306
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13285
13307
|
selectingDate = _useState4[0],
|
|
13286
13308
|
setSelectingDate = _useState4[1];
|
|
13287
|
-
return /*#__PURE__*/
|
|
13309
|
+
return /*#__PURE__*/React__default.createElement(Calendar, {
|
|
13288
13310
|
testID: "calendar",
|
|
13289
13311
|
value: selectingDate,
|
|
13290
13312
|
visibleDate: visibleDate,
|
|
@@ -13351,15 +13373,15 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13351
13373
|
onChange: onChange,
|
|
13352
13374
|
value: value
|
|
13353
13375
|
});
|
|
13354
|
-
return /*#__PURE__*/
|
|
13376
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
13355
13377
|
onPress: function onPress() {
|
|
13356
13378
|
return setOpen(true);
|
|
13357
13379
|
},
|
|
13358
13380
|
disabled: disabled
|
|
13359
|
-
}, /*#__PURE__*/
|
|
13381
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
13360
13382
|
pointerEvents: "none",
|
|
13361
13383
|
testID: "datePickerCalendar"
|
|
13362
|
-
}, /*#__PURE__*/
|
|
13384
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
13363
13385
|
label: label,
|
|
13364
13386
|
value: displayValue,
|
|
13365
13387
|
suffix: "calendar-dates-outlined",
|
|
@@ -13370,13 +13392,13 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13370
13392
|
helpText: helpText,
|
|
13371
13393
|
testID: testID,
|
|
13372
13394
|
style: style
|
|
13373
|
-
})), /*#__PURE__*/
|
|
13395
|
+
})), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
|
|
13374
13396
|
open: open,
|
|
13375
13397
|
onRequestClose: function onRequestClose() {
|
|
13376
13398
|
return setOpen(false);
|
|
13377
13399
|
},
|
|
13378
13400
|
header: label,
|
|
13379
|
-
footer: shouldHideToolbar ? undefined : /*#__PURE__*/
|
|
13401
|
+
footer: shouldHideToolbar ? undefined : /*#__PURE__*/React__default.createElement(CompoundButton, {
|
|
13380
13402
|
variant: "text",
|
|
13381
13403
|
text: confirmLabel,
|
|
13382
13404
|
onPress: function onPress() {
|
|
@@ -13386,7 +13408,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13386
13408
|
setOpen(false);
|
|
13387
13409
|
}
|
|
13388
13410
|
})
|
|
13389
|
-
}, /*#__PURE__*/
|
|
13411
|
+
}, /*#__PURE__*/React__default.createElement(InternalCalendar, {
|
|
13390
13412
|
minDate: minDate,
|
|
13391
13413
|
maxDate: maxDate,
|
|
13392
13414
|
value: value,
|
|
@@ -13439,15 +13461,15 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13439
13461
|
onChange: onChange,
|
|
13440
13462
|
value: value
|
|
13441
13463
|
});
|
|
13442
|
-
return /*#__PURE__*/
|
|
13464
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
13443
13465
|
onPress: function onPress() {
|
|
13444
13466
|
return setOpen(true);
|
|
13445
13467
|
},
|
|
13446
13468
|
disabled: disabled
|
|
13447
|
-
}, /*#__PURE__*/
|
|
13469
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
13448
13470
|
pointerEvents: "none",
|
|
13449
13471
|
testID: "datePickerInputIOS"
|
|
13450
|
-
}, /*#__PURE__*/
|
|
13472
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
13451
13473
|
label: label,
|
|
13452
13474
|
value: displayValue,
|
|
13453
13475
|
suffix: "calendar-dates-outlined",
|
|
@@ -13458,13 +13480,13 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13458
13480
|
helpText: helpText,
|
|
13459
13481
|
testID: testID,
|
|
13460
13482
|
style: style
|
|
13461
|
-
})), /*#__PURE__*/
|
|
13483
|
+
})), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
|
|
13462
13484
|
open: open,
|
|
13463
13485
|
onRequestClose: function onRequestClose() {
|
|
13464
13486
|
return setOpen(false);
|
|
13465
13487
|
},
|
|
13466
13488
|
header: label,
|
|
13467
|
-
footer: /*#__PURE__*/
|
|
13489
|
+
footer: /*#__PURE__*/React__default.createElement(CompoundButton, {
|
|
13468
13490
|
variant: "text",
|
|
13469
13491
|
text: confirmLabel,
|
|
13470
13492
|
onPress: function onPress() {
|
|
@@ -13474,7 +13496,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13474
13496
|
setOpen(false);
|
|
13475
13497
|
}
|
|
13476
13498
|
})
|
|
13477
|
-
}, /*#__PURE__*/
|
|
13499
|
+
}, /*#__PURE__*/React__default.createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
13478
13500
|
testID: "datePickerIOS",
|
|
13479
13501
|
value: selectingDate,
|
|
13480
13502
|
minimumDate: minDate,
|
|
@@ -13499,12 +13521,12 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
13499
13521
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
13500
13522
|
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
13501
13523
|
if (variant === 'calendar') {
|
|
13502
|
-
return /*#__PURE__*/
|
|
13524
|
+
return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
|
|
13503
13525
|
}
|
|
13504
13526
|
if (Platform.OS === 'ios') {
|
|
13505
|
-
return /*#__PURE__*/
|
|
13527
|
+
return /*#__PURE__*/React__default.createElement(DatePickerIOS, props);
|
|
13506
13528
|
}
|
|
13507
|
-
return /*#__PURE__*/
|
|
13529
|
+
return /*#__PURE__*/React__default.createElement(DatePickerAndroid, props);
|
|
13508
13530
|
};
|
|
13509
13531
|
|
|
13510
13532
|
var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
|
|
@@ -13715,11 +13737,11 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
13715
13737
|
setAnimatedToValue(animatedValue);
|
|
13716
13738
|
}
|
|
13717
13739
|
})).current;
|
|
13718
|
-
return /*#__PURE__*/
|
|
13740
|
+
return /*#__PURE__*/React__default.createElement(StyledDragableContainer, {
|
|
13719
13741
|
testID: testID,
|
|
13720
13742
|
enableShadow: true,
|
|
13721
13743
|
pointerEvents: "box-none"
|
|
13722
|
-
}, /*#__PURE__*/
|
|
13744
|
+
}, /*#__PURE__*/React__default.createElement(StyledDragableDrawerContainer, {
|
|
13723
13745
|
enableShadow: true,
|
|
13724
13746
|
style: {
|
|
13725
13747
|
transform: [{
|
|
@@ -13732,7 +13754,7 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
13732
13754
|
var nativeEvent = _ref3.nativeEvent;
|
|
13733
13755
|
setHeight(nativeEvent.layout.height);
|
|
13734
13756
|
}
|
|
13735
|
-
}, /*#__PURE__*/
|
|
13757
|
+
}, /*#__PURE__*/React__default.createElement(StyledHandlerContainer, panResponder.panHandlers, /*#__PURE__*/React__default.createElement(StyledHandler, null)), children));
|
|
13736
13758
|
};
|
|
13737
13759
|
|
|
13738
13760
|
var Drawer = function Drawer(_ref) {
|
|
@@ -13767,17 +13789,17 @@ var Drawer = function Drawer(_ref) {
|
|
|
13767
13789
|
return animation.stop();
|
|
13768
13790
|
};
|
|
13769
13791
|
}, [visible]);
|
|
13770
|
-
return /*#__PURE__*/
|
|
13792
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$3, {
|
|
13771
13793
|
testID: testID,
|
|
13772
13794
|
enableShadow: enableShadow,
|
|
13773
13795
|
pointerEvents: "box-none"
|
|
13774
|
-
}, /*#__PURE__*/
|
|
13796
|
+
}, /*#__PURE__*/React__default.createElement(StyledBackdrop$1, {
|
|
13775
13797
|
pointerEvents: visible ? 'auto' : 'box-none',
|
|
13776
13798
|
onPress: onDismiss,
|
|
13777
13799
|
style: {
|
|
13778
13800
|
opacity: interpolateBackdropOpacity
|
|
13779
13801
|
}
|
|
13780
|
-
}), /*#__PURE__*/
|
|
13802
|
+
}), /*#__PURE__*/React__default.createElement(StyledDrawerContainer, {
|
|
13781
13803
|
enableShadow: enableShadow,
|
|
13782
13804
|
onLayout: function onLayout(_ref2) {
|
|
13783
13805
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -13832,18 +13854,18 @@ var Empty = function Empty(_ref) {
|
|
|
13832
13854
|
_ref$variant = _ref.variant,
|
|
13833
13855
|
variant = _ref$variant === void 0 ? 'light' : _ref$variant;
|
|
13834
13856
|
var theme = useTheme();
|
|
13835
|
-
return /*#__PURE__*/
|
|
13857
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$6, {
|
|
13836
13858
|
style: style,
|
|
13837
13859
|
testID: testID
|
|
13838
|
-
}, image !== undefined && /*#__PURE__*/
|
|
13860
|
+
}, image !== undefined && /*#__PURE__*/React__default.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
|
|
13839
13861
|
style: [{
|
|
13840
13862
|
marginBottom: theme.__hd__.empty.space.imageMargin
|
|
13841
13863
|
}, image.props.style]
|
|
13842
|
-
})), /*#__PURE__*/
|
|
13864
|
+
})), /*#__PURE__*/React__default.createElement(StyledTitle, {
|
|
13843
13865
|
themeVariant: variant,
|
|
13844
13866
|
level: "h4",
|
|
13845
13867
|
typeface: "playful"
|
|
13846
|
-
}, title), !!description && /*#__PURE__*/
|
|
13868
|
+
}, title), !!description && /*#__PURE__*/React__default.createElement(StyledDescription, {
|
|
13847
13869
|
themeVariant: variant,
|
|
13848
13870
|
typeface: "playful"
|
|
13849
13871
|
}, description));
|
|
@@ -13936,7 +13958,7 @@ var PortalHostComponent = function PortalHostComponent(_ref) {
|
|
|
13936
13958
|
deregisterHost();
|
|
13937
13959
|
};
|
|
13938
13960
|
}, []);
|
|
13939
|
-
return /*#__PURE__*/
|
|
13961
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, state.map(function (item) {
|
|
13940
13962
|
return item.node;
|
|
13941
13963
|
}));
|
|
13942
13964
|
};
|
|
@@ -14004,11 +14026,11 @@ var PortalProviderComponent = function PortalProviderComponent(_ref) {
|
|
|
14004
14026
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
14005
14027
|
state = _useReducer2[0],
|
|
14006
14028
|
dispatch = _useReducer2[1];
|
|
14007
|
-
return /*#__PURE__*/
|
|
14029
|
+
return /*#__PURE__*/React__default.createElement(PortalDispatchContext.Provider, {
|
|
14008
14030
|
value: dispatch
|
|
14009
|
-
}, /*#__PURE__*/
|
|
14031
|
+
}, /*#__PURE__*/React__default.createElement(PortalStateContext.Provider, {
|
|
14010
14032
|
value: state
|
|
14011
|
-
}, children, /*#__PURE__*/
|
|
14033
|
+
}, children, /*#__PURE__*/React__default.createElement(PortalHost, {
|
|
14012
14034
|
name: rootHostName
|
|
14013
14035
|
})));
|
|
14014
14036
|
};
|
|
@@ -14029,7 +14051,7 @@ var PortalComponent = function PortalComponent(_ref) {
|
|
|
14029
14051
|
return name || nanoid();
|
|
14030
14052
|
}, [name]);
|
|
14031
14053
|
var ChildrenComponent = useMemo(function () {
|
|
14032
|
-
return /*#__PURE__*/
|
|
14054
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
14033
14055
|
theme: theme || defaultTheme
|
|
14034
14056
|
}, children);
|
|
14035
14057
|
}, [theme, children, defaultTheme]);
|
|
@@ -14129,12 +14151,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14129
14151
|
return backHandler.remove();
|
|
14130
14152
|
};
|
|
14131
14153
|
}, [onRequestClose]);
|
|
14132
|
-
return /*#__PURE__*/
|
|
14154
|
+
return /*#__PURE__*/React__default.createElement(Portal$1, null, /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
14133
14155
|
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
14134
14156
|
backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
|
|
14135
14157
|
opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
|
|
14136
14158
|
})
|
|
14137
|
-
}), /*#__PURE__*/
|
|
14159
|
+
}), /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
14138
14160
|
testID: testID,
|
|
14139
14161
|
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
14140
14162
|
opacity: animationType === 'fade' ? modalAnimation : 1,
|
|
@@ -14170,7 +14192,7 @@ var ModalWrapper = function ModalWrapper(_ref3) {
|
|
|
14170
14192
|
(_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
|
|
14171
14193
|
}
|
|
14172
14194
|
}, [internalVisible]);
|
|
14173
|
-
return internalVisible ? /*#__PURE__*/
|
|
14195
|
+
return internalVisible ? /*#__PURE__*/React__default.createElement(Modal, _extends$1({
|
|
14174
14196
|
ref: modalRef
|
|
14175
14197
|
}, props)) : null;
|
|
14176
14198
|
};
|
|
@@ -14261,11 +14283,11 @@ var _excluded$g = ["variant", "title", "description", "image", "testID", "ctaTex
|
|
|
14261
14283
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
14262
14284
|
var renderImage$1 = function renderImage(image) {
|
|
14263
14285
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
14264
|
-
return /*#__PURE__*/
|
|
14286
|
+
return /*#__PURE__*/React__default.cloneElement(image, {
|
|
14265
14287
|
testID: 'error-image'
|
|
14266
14288
|
});
|
|
14267
14289
|
}
|
|
14268
|
-
return /*#__PURE__*/
|
|
14290
|
+
return /*#__PURE__*/React__default.createElement(StyledErrorImage, {
|
|
14269
14291
|
source: typeof image === 'string' ? {
|
|
14270
14292
|
uri: image
|
|
14271
14293
|
} : image,
|
|
@@ -14287,19 +14309,19 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
14287
14309
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
14288
14310
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
14289
14311
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
14290
|
-
return /*#__PURE__*/
|
|
14312
|
+
return /*#__PURE__*/React__default.createElement(StyledErrorContainer$1, _extends$1({
|
|
14291
14313
|
testID: testID,
|
|
14292
14314
|
themeVariant: variant
|
|
14293
|
-
}, nativeProps), /*#__PURE__*/
|
|
14315
|
+
}, nativeProps), /*#__PURE__*/React__default.createElement(StyledErrorContent, null, image && /*#__PURE__*/React__default.createElement(StyledErrorImageContainer, null, renderImage$1(image)), /*#__PURE__*/React__default.createElement(StyledErrorTitle, {
|
|
14294
14316
|
level: "h4",
|
|
14295
14317
|
typeface: "playful"
|
|
14296
|
-
}, title), description && /*#__PURE__*/
|
|
14318
|
+
}, title), description && /*#__PURE__*/React__default.createElement(StyledErrorDescription, {
|
|
14297
14319
|
typeface: "playful"
|
|
14298
|
-
}, description)), showButtonContainer && /*#__PURE__*/
|
|
14320
|
+
}, description)), showButtonContainer && /*#__PURE__*/React__default.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React__default.createElement(StyledErrorButtonPrimary, {
|
|
14299
14321
|
variant: "filled",
|
|
14300
14322
|
text: ctaText,
|
|
14301
14323
|
onPress: onCtaPress
|
|
14302
|
-
}), showSecondaryCta && /*#__PURE__*/
|
|
14324
|
+
}), showSecondaryCta && /*#__PURE__*/React__default.createElement(StyledErrorButtonSecondary, {
|
|
14303
14325
|
variant: "text",
|
|
14304
14326
|
text: secondaryCtaText,
|
|
14305
14327
|
onPress: onSecondaryCtaPress
|
|
@@ -14358,7 +14380,7 @@ var Error$1 = function Error(_ref2) {
|
|
|
14358
14380
|
}
|
|
14359
14381
|
}, [isVisible, onCloseModal]);
|
|
14360
14382
|
if (variant === 'full-screen') {
|
|
14361
|
-
return /*#__PURE__*/
|
|
14383
|
+
return /*#__PURE__*/React__default.createElement(StyledErrorModal, {
|
|
14362
14384
|
visible: isVisible,
|
|
14363
14385
|
onRequestClose: function onRequestClose() {
|
|
14364
14386
|
return setIsVisible(false);
|
|
@@ -14367,7 +14389,7 @@ var Error$1 = function Error(_ref2) {
|
|
|
14367
14389
|
return setIsVisible(false);
|
|
14368
14390
|
},
|
|
14369
14391
|
animationType: "slide"
|
|
14370
|
-
}, /*#__PURE__*/
|
|
14392
|
+
}, /*#__PURE__*/React__default.createElement(ErrorPage, _extends$1({
|
|
14371
14393
|
variant: variant,
|
|
14372
14394
|
title: title,
|
|
14373
14395
|
description: description,
|
|
@@ -14383,7 +14405,7 @@ var Error$1 = function Error(_ref2) {
|
|
|
14383
14405
|
}
|
|
14384
14406
|
}, nativeProps)));
|
|
14385
14407
|
}
|
|
14386
|
-
return /*#__PURE__*/
|
|
14408
|
+
return /*#__PURE__*/React__default.createElement(ErrorPage, _extends$1({
|
|
14387
14409
|
variant: variant,
|
|
14388
14410
|
title: title,
|
|
14389
14411
|
description: description,
|
|
@@ -14464,13 +14486,13 @@ var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
|
14464
14486
|
inputRange: [0, 1],
|
|
14465
14487
|
outputRange: ['0deg', '-45deg']
|
|
14466
14488
|
});
|
|
14467
|
-
return /*#__PURE__*/
|
|
14489
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
14468
14490
|
style: StyleSheet$1.flatten([{
|
|
14469
14491
|
transform: [{
|
|
14470
14492
|
rotate: interpolatedRotateAnimation
|
|
14471
14493
|
}]
|
|
14472
14494
|
}])
|
|
14473
|
-
}, /*#__PURE__*/
|
|
14495
|
+
}, /*#__PURE__*/React__default.createElement(AnimatedIcons, _extends$1({
|
|
14474
14496
|
size: "xsmall"
|
|
14475
14497
|
}, iconProps)));
|
|
14476
14498
|
};
|
|
@@ -14485,13 +14507,13 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
|
|
|
14485
14507
|
animated = _ref.animated,
|
|
14486
14508
|
active = _ref.active;
|
|
14487
14509
|
if (animated) {
|
|
14488
|
-
return /*#__PURE__*/
|
|
14510
|
+
return /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(AnimatedFABIcon, {
|
|
14489
14511
|
active: active,
|
|
14490
14512
|
icon: icon,
|
|
14491
14513
|
testID: "animated-fab-icon"
|
|
14492
14514
|
}));
|
|
14493
14515
|
}
|
|
14494
|
-
return /*#__PURE__*/
|
|
14516
|
+
return /*#__PURE__*/React__default.createElement(StyledFABIcon, {
|
|
14495
14517
|
icon: icon,
|
|
14496
14518
|
testID: "styled-fab-icon"
|
|
14497
14519
|
});
|
|
@@ -14499,11 +14521,11 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
|
|
|
14499
14521
|
var IconWithTextContent = function IconWithTextContent(_ref2) {
|
|
14500
14522
|
var icon = _ref2.icon,
|
|
14501
14523
|
title = _ref2.title;
|
|
14502
|
-
return /*#__PURE__*/
|
|
14524
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledFABIcon, {
|
|
14503
14525
|
size: "xsmall",
|
|
14504
14526
|
icon: icon,
|
|
14505
14527
|
testID: "styled-fab-icon"
|
|
14506
|
-
})), /*#__PURE__*/
|
|
14528
|
+
})), /*#__PURE__*/React__default.createElement(StyledFABText, null, title));
|
|
14507
14529
|
};
|
|
14508
14530
|
var animateWidth = function animateWidth() {
|
|
14509
14531
|
LayoutAnimation.configureNext({
|
|
@@ -14524,7 +14546,7 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
14524
14546
|
active = _ref3.active,
|
|
14525
14547
|
style = _ref3.style;
|
|
14526
14548
|
var theme = useTheme();
|
|
14527
|
-
var _React$useState =
|
|
14549
|
+
var _React$useState = React__default.useState({
|
|
14528
14550
|
hideTitle: false,
|
|
14529
14551
|
hideButton: false
|
|
14530
14552
|
}),
|
|
@@ -14533,17 +14555,17 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
14533
14555
|
setDisplayState = _React$useState2[1];
|
|
14534
14556
|
var isIconOnly = displayState.hideTitle || active || !title;
|
|
14535
14557
|
var animatedValues = {
|
|
14536
|
-
opacity:
|
|
14537
|
-
width:
|
|
14538
|
-
translateY:
|
|
14558
|
+
opacity: React__default.useRef(new Animated.Value(1)).current,
|
|
14559
|
+
width: React__default.useRef(new Animated.Value(1)).current,
|
|
14560
|
+
translateY: React__default.useRef(new Animated.Value(0)).current
|
|
14539
14561
|
};
|
|
14540
14562
|
var marginBottom = Number((_StyleSheet$flatten = StyleSheet$1.flatten(style)) === null || _StyleSheet$flatten === void 0 ? void 0 : _StyleSheet$flatten.marginBottom) || 0;
|
|
14541
|
-
var _React$useState3 =
|
|
14563
|
+
var _React$useState3 = React__default.useState(0),
|
|
14542
14564
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
14543
14565
|
buttonWidth = _React$useState4[0],
|
|
14544
14566
|
setButtonWidth = _React$useState4[1];
|
|
14545
14567
|
var hasSetButtonWidth = buttonWidth > 0;
|
|
14546
|
-
|
|
14568
|
+
React__default.useImperativeHandle(ref, function () {
|
|
14547
14569
|
return {
|
|
14548
14570
|
show: function show() {
|
|
14549
14571
|
Animated.spring(animatedValues.translateY, {
|
|
@@ -14592,7 +14614,7 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
14592
14614
|
}
|
|
14593
14615
|
};
|
|
14594
14616
|
}, []);
|
|
14595
|
-
return /*#__PURE__*/
|
|
14617
|
+
return /*#__PURE__*/React__default.createElement(StyledFAB$1, {
|
|
14596
14618
|
onLayout: function onLayout(event) {
|
|
14597
14619
|
return !hasSetButtonWidth && !active && setButtonWidth(event.nativeEvent.layout.width);
|
|
14598
14620
|
},
|
|
@@ -14609,7 +14631,7 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
14609
14631
|
}],
|
|
14610
14632
|
testID: testID,
|
|
14611
14633
|
themeActive: active
|
|
14612
|
-
}, /*#__PURE__*/
|
|
14634
|
+
}, /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
14613
14635
|
style: {
|
|
14614
14636
|
flexDirection: 'row',
|
|
14615
14637
|
opacity: animatedValues.opacity.interpolate({
|
|
@@ -14617,11 +14639,11 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
14617
14639
|
outputRange: [0, 1]
|
|
14618
14640
|
})
|
|
14619
14641
|
}
|
|
14620
|
-
}, isIconOnly ? /*#__PURE__*/
|
|
14642
|
+
}, isIconOnly ? /*#__PURE__*/React__default.createElement(IconOnlyContent, {
|
|
14621
14643
|
animated: animated,
|
|
14622
14644
|
active: active,
|
|
14623
14645
|
icon: active ? 'add' : icon
|
|
14624
|
-
}) : /*#__PURE__*/
|
|
14646
|
+
}) : /*#__PURE__*/React__default.createElement(IconWithTextContent, {
|
|
14625
14647
|
icon: icon,
|
|
14626
14648
|
title: title
|
|
14627
14649
|
})));
|
|
@@ -14665,12 +14687,12 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
14665
14687
|
_ref$active = _ref.active,
|
|
14666
14688
|
active = _ref$active === void 0 ? false : _ref$active;
|
|
14667
14689
|
var theme = useTheme();
|
|
14668
|
-
var animatedValue =
|
|
14690
|
+
var animatedValue = React__default.useRef(new Animated.Value(0));
|
|
14669
14691
|
var translateY = animatedValue.current.interpolate({
|
|
14670
14692
|
inputRange: [0, 1],
|
|
14671
14693
|
outputRange: [50, 0]
|
|
14672
14694
|
});
|
|
14673
|
-
|
|
14695
|
+
React__default.useEffect(function () {
|
|
14674
14696
|
Animated.spring(animatedValue.current, {
|
|
14675
14697
|
toValue: active ? 1 : 0,
|
|
14676
14698
|
useNativeDriver: Platform.OS !== 'web',
|
|
@@ -14679,21 +14701,21 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
14679
14701
|
bounciness: 10
|
|
14680
14702
|
}).start();
|
|
14681
14703
|
}, [active, index]);
|
|
14682
|
-
return /*#__PURE__*/
|
|
14704
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
14683
14705
|
style: {
|
|
14684
14706
|
transform: [{
|
|
14685
14707
|
translateY: translateY
|
|
14686
14708
|
}]
|
|
14687
14709
|
}
|
|
14688
|
-
}, /*#__PURE__*/
|
|
14710
|
+
}, /*#__PURE__*/React__default.createElement(StyledActionItem, {
|
|
14689
14711
|
underlayColor: theme.__hd__.fab.colors.actionItemPressedBackground,
|
|
14690
14712
|
style: style,
|
|
14691
14713
|
onPress: onPress,
|
|
14692
14714
|
testID: testID
|
|
14693
|
-
}, /*#__PURE__*/
|
|
14715
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledIcon, {
|
|
14694
14716
|
size: "xsmall",
|
|
14695
14717
|
icon: icon
|
|
14696
|
-
})), /*#__PURE__*/
|
|
14718
|
+
})), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
|
|
14697
14719
|
};
|
|
14698
14720
|
|
|
14699
14721
|
var StyledContainer$2 = index$9(View)({
|
|
@@ -14756,7 +14778,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14756
14778
|
var theme = useTheme();
|
|
14757
14779
|
var fabRef = useRef(null);
|
|
14758
14780
|
var animatedValue = useRef(new Animated.Value(active ? 1 : 0));
|
|
14759
|
-
|
|
14781
|
+
React__default.useImperativeHandle(ref, function () {
|
|
14760
14782
|
return {
|
|
14761
14783
|
showFAB: function showFAB() {
|
|
14762
14784
|
var _fabRef$current;
|
|
@@ -14772,7 +14794,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14772
14794
|
}
|
|
14773
14795
|
};
|
|
14774
14796
|
}, [fabRef]);
|
|
14775
|
-
|
|
14797
|
+
React__default.useEffect(function () {
|
|
14776
14798
|
Animated.spring(animatedValue.current, {
|
|
14777
14799
|
toValue: active ? 1 : 0,
|
|
14778
14800
|
delay: 100,
|
|
@@ -14790,11 +14812,11 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14790
14812
|
inputRange: [0, 1],
|
|
14791
14813
|
outputRange: [0, 1]
|
|
14792
14814
|
});
|
|
14793
|
-
return /*#__PURE__*/
|
|
14815
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$2, {
|
|
14794
14816
|
testID: testID,
|
|
14795
14817
|
pointerEvents: "box-none",
|
|
14796
14818
|
style: style
|
|
14797
|
-
}, /*#__PURE__*/
|
|
14819
|
+
}, /*#__PURE__*/React__default.createElement(Animated.View, null, /*#__PURE__*/React__default.createElement(StyledFAB, {
|
|
14798
14820
|
key: "fab",
|
|
14799
14821
|
testID: "fab",
|
|
14800
14822
|
icon: fabIcon,
|
|
@@ -14803,35 +14825,35 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14803
14825
|
active: active,
|
|
14804
14826
|
title: fabTitle,
|
|
14805
14827
|
ref: fabRef
|
|
14806
|
-
})), /*#__PURE__*/
|
|
14828
|
+
})), /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
14807
14829
|
visible: active,
|
|
14808
14830
|
animationType: "fade",
|
|
14809
14831
|
transparent: true,
|
|
14810
14832
|
statusBarTranslucent: true
|
|
14811
|
-
}, /*#__PURE__*/
|
|
14833
|
+
}, /*#__PURE__*/React__default.createElement(StyledContainerInModal, {
|
|
14812
14834
|
testID: testID,
|
|
14813
14835
|
style: [style]
|
|
14814
|
-
}, /*#__PURE__*/
|
|
14836
|
+
}, /*#__PURE__*/React__default.createElement(StyledBackdrop, {
|
|
14815
14837
|
testID: "back-drop",
|
|
14816
14838
|
onPress: onBackdropPress
|
|
14817
|
-
}), /*#__PURE__*/
|
|
14839
|
+
}), /*#__PURE__*/React__default.createElement(StyledActionGroupContainer, {
|
|
14818
14840
|
testID: "action-group",
|
|
14819
14841
|
pointerEvents: "box-none",
|
|
14820
14842
|
style: {
|
|
14821
14843
|
opacity: actionGroupOpacity
|
|
14822
14844
|
}
|
|
14823
|
-
}, /*#__PURE__*/
|
|
14845
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
14824
14846
|
style: [style, {
|
|
14825
14847
|
paddingBottom: 0
|
|
14826
14848
|
}]
|
|
14827
14849
|
}, items === null || items === void 0 ? void 0 : items.map(function (itemProp, index) {
|
|
14828
|
-
return /*#__PURE__*/
|
|
14850
|
+
return /*#__PURE__*/React__default.createElement(ActionItem, _extends$1({
|
|
14829
14851
|
key: itemProp.key || "".concat(itemProp.icon, "_").concat(itemProp.title)
|
|
14830
14852
|
}, itemProp, {
|
|
14831
14853
|
index: active ? index : items.length - index,
|
|
14832
14854
|
active: active
|
|
14833
14855
|
}));
|
|
14834
|
-
}))), active && /*#__PURE__*/
|
|
14856
|
+
}))), active && /*#__PURE__*/React__default.createElement(StyledFAB
|
|
14835
14857
|
// This FAB is moved up a bit compared to the original FAB,
|
|
14836
14858
|
// set marginBottom to negative value to compensate for it
|
|
14837
14859
|
, {
|
|
@@ -14955,9 +14977,9 @@ var getIntentIcon = function getIntentIcon(intent) {
|
|
|
14955
14977
|
var ToastIcon = function ToastIcon(_ref) {
|
|
14956
14978
|
var themeIntent = _ref.themeIntent,
|
|
14957
14979
|
icon = _ref.icon;
|
|
14958
|
-
return icon ? /*#__PURE__*/
|
|
14980
|
+
return icon ? /*#__PURE__*/React__default.createElement(IconContainer, {
|
|
14959
14981
|
testID: "toast-left-icon"
|
|
14960
|
-
}, /*#__PURE__*/
|
|
14982
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
14961
14983
|
icon: icon,
|
|
14962
14984
|
size: "small",
|
|
14963
14985
|
intent: themeIntent === 'snackbar' ? 'text-inverted' : 'text'
|
|
@@ -15009,7 +15031,7 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
15009
15031
|
inputRange: [0, 1],
|
|
15010
15032
|
outputRange: toastConfig.position === 'top' ? [-20, distance] : [20, -distance]
|
|
15011
15033
|
});
|
|
15012
|
-
return /*#__PURE__*/
|
|
15034
|
+
return /*#__PURE__*/React__default.createElement(Container, {
|
|
15013
15035
|
themeVariant: variant,
|
|
15014
15036
|
themeIntent: intent,
|
|
15015
15037
|
style: [style, {
|
|
@@ -15018,21 +15040,21 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
15018
15040
|
translateY: interpolateY
|
|
15019
15041
|
}]
|
|
15020
15042
|
}]
|
|
15021
|
-
}, /*#__PURE__*/
|
|
15043
|
+
}, /*#__PURE__*/React__default.createElement(ContentContainer, {
|
|
15022
15044
|
showDivider: !!actionLabel
|
|
15023
|
-
}, icon !== null ? /*#__PURE__*/
|
|
15045
|
+
}, icon !== null ? /*#__PURE__*/React__default.createElement(ToastIcon, {
|
|
15024
15046
|
themeIntent: intent,
|
|
15025
15047
|
icon: icon || getIntentIcon(intent)
|
|
15026
|
-
}) : null, /*#__PURE__*/
|
|
15048
|
+
}) : null, /*#__PURE__*/React__default.createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
15027
15049
|
variant: "small",
|
|
15028
15050
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
15029
|
-
}, content) : content)), actionLabel ? /*#__PURE__*/
|
|
15051
|
+
}, content) : content)), actionLabel ? /*#__PURE__*/React__default.createElement(CTAWrapper, {
|
|
15030
15052
|
testID: "toast-action-button",
|
|
15031
15053
|
onPress: function onPress() {
|
|
15032
15054
|
onAction === null || onAction === void 0 || onAction();
|
|
15033
15055
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
15034
15056
|
}
|
|
15035
|
-
}, typeof actionLabel === 'string' ? /*#__PURE__*/
|
|
15057
|
+
}, typeof actionLabel === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
15036
15058
|
variant: "small-bold",
|
|
15037
15059
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
15038
15060
|
}, actionLabel) : actionLabel) : null);
|
|
@@ -15046,7 +15068,7 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
15046
15068
|
setToastList = _ref.setToastList;
|
|
15047
15069
|
var theme = useTheme$1();
|
|
15048
15070
|
var toast = toastList[toastList.length - 1];
|
|
15049
|
-
return toast ? /*#__PURE__*/
|
|
15071
|
+
return toast ? /*#__PURE__*/React__default.createElement(Toast$1, _extends$1({}, toast.props, {
|
|
15050
15072
|
key: toast.id,
|
|
15051
15073
|
style: {
|
|
15052
15074
|
marginBottom: theme.space.small
|
|
@@ -15062,7 +15084,7 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
15062
15084
|
}
|
|
15063
15085
|
})) : null;
|
|
15064
15086
|
};
|
|
15065
|
-
var ToastContainer = /*#__PURE__*/
|
|
15087
|
+
var ToastContainer = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
|
|
15066
15088
|
var _ref2$displayType = _ref2.displayType,
|
|
15067
15089
|
displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
|
|
15068
15090
|
_ref2$position = _ref2.position,
|
|
@@ -15097,17 +15119,17 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
15097
15119
|
}
|
|
15098
15120
|
};
|
|
15099
15121
|
});
|
|
15100
|
-
return /*#__PURE__*/
|
|
15122
|
+
return /*#__PURE__*/React__default.createElement(ToastContainerWrapper, {
|
|
15101
15123
|
pointerEvents: "box-none",
|
|
15102
15124
|
position: position,
|
|
15103
15125
|
style: style
|
|
15104
|
-
}, displayType === 'single' ? /*#__PURE__*/
|
|
15126
|
+
}, displayType === 'single' ? /*#__PURE__*/React__default.createElement(SingleToastDisplay, {
|
|
15105
15127
|
toastList: toastList,
|
|
15106
15128
|
setToastList: setToastList
|
|
15107
15129
|
}) : toastList.map(function (_ref3) {
|
|
15108
15130
|
var id = _ref3.id,
|
|
15109
15131
|
props = _ref3.props;
|
|
15110
|
-
return /*#__PURE__*/
|
|
15132
|
+
return /*#__PURE__*/React__default.createElement(Toast$1, _extends$1({}, props, {
|
|
15111
15133
|
key: id,
|
|
15112
15134
|
style: {
|
|
15113
15135
|
marginBottom: theme.space.small
|
|
@@ -15149,15 +15171,15 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
15149
15171
|
position: position
|
|
15150
15172
|
};
|
|
15151
15173
|
}, [displayType, position]);
|
|
15152
|
-
return /*#__PURE__*/
|
|
15174
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
15153
15175
|
value: refState || fallbackToastControlContext
|
|
15154
|
-
}, /*#__PURE__*/
|
|
15176
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
15155
15177
|
style: {
|
|
15156
15178
|
flex: 1
|
|
15157
15179
|
}
|
|
15158
|
-
}, refState ? children : null, /*#__PURE__*/
|
|
15180
|
+
}, refState ? children : null, /*#__PURE__*/React__default.createElement(ToastConfigContext.Provider, {
|
|
15159
15181
|
value: config
|
|
15160
|
-
}, /*#__PURE__*/
|
|
15182
|
+
}, /*#__PURE__*/React__default.createElement(ToastContainer, {
|
|
15161
15183
|
ref: toastRef,
|
|
15162
15184
|
displayType: displayType,
|
|
15163
15185
|
position: position
|
|
@@ -15173,9 +15195,9 @@ var Toast = {
|
|
|
15173
15195
|
var HeroDesignProvider = function HeroDesignProvider(_ref) {
|
|
15174
15196
|
var theme = _ref.theme,
|
|
15175
15197
|
children = _ref.children;
|
|
15176
|
-
return /*#__PURE__*/
|
|
15198
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
15177
15199
|
theme: theme
|
|
15178
|
-
}, /*#__PURE__*/
|
|
15200
|
+
}, /*#__PURE__*/React__default.createElement(Toast.Provider, null, /*#__PURE__*/React__default.createElement(Portal$1.Provider, null, children)));
|
|
15179
15201
|
};
|
|
15180
15202
|
|
|
15181
15203
|
var StyledListItemContainer$1 = index$9(TouchableHighlight)(function (_ref) {
|
|
@@ -15265,7 +15287,7 @@ var ListItem = function ListItem(_ref) {
|
|
|
15265
15287
|
_ref$disabled = _ref.disabled,
|
|
15266
15288
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
15267
15289
|
var theme = useTheme();
|
|
15268
|
-
return /*#__PURE__*/
|
|
15290
|
+
return /*#__PURE__*/React__default.createElement(StyledListItemContainer$1, {
|
|
15269
15291
|
style: style,
|
|
15270
15292
|
testID: testID,
|
|
15271
15293
|
themeSelected: selected,
|
|
@@ -15273,26 +15295,26 @@ var ListItem = function ListItem(_ref) {
|
|
|
15273
15295
|
onPress: onPress,
|
|
15274
15296
|
disabled: disabled,
|
|
15275
15297
|
underlayColor: theme.__hd__.list.colors.checkedListItemContainerBackground
|
|
15276
|
-
}, /*#__PURE__*/
|
|
15298
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, leadingStatus && /*#__PURE__*/React__default.createElement(StyledLeadingStatus, {
|
|
15277
15299
|
themeLeadingStatusIntent: leadingStatus,
|
|
15278
15300
|
testID: "leadingStatus"
|
|
15279
|
-
}), /*#__PURE__*/
|
|
15301
|
+
}), /*#__PURE__*/React__default.createElement(StyledContentContainer, null, /*#__PURE__*/React__default.createElement(View, {
|
|
15280
15302
|
style: {
|
|
15281
15303
|
flexDirection: 'row',
|
|
15282
15304
|
alignItems: 'center'
|
|
15283
15305
|
}
|
|
15284
|
-
}, prefix && /*#__PURE__*/
|
|
15306
|
+
}, prefix && /*#__PURE__*/React__default.createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
15285
15307
|
icon: prefix,
|
|
15286
15308
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
15287
|
-
}) : prefix), /*#__PURE__*/
|
|
15309
|
+
}) : prefix), /*#__PURE__*/React__default.createElement(StyledTitleContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
15288
15310
|
intent: "body"
|
|
15289
|
-
}, title) : title, !!subtitle && /*#__PURE__*/
|
|
15311
|
+
}, title) : title, !!subtitle && /*#__PURE__*/React__default.createElement(Typography.Caption, {
|
|
15290
15312
|
intent: "subdued"
|
|
15291
|
-
}, subtitle)), suffix && /*#__PURE__*/
|
|
15313
|
+
}, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
15292
15314
|
icon: suffix,
|
|
15293
15315
|
intent: disabled ? 'disabled-text' : 'primary',
|
|
15294
15316
|
size: "small"
|
|
15295
|
-
}) : suffix)), children && /*#__PURE__*/
|
|
15317
|
+
}) : suffix)), children && /*#__PURE__*/React__default.createElement(StyledChildrenContainer, null, children))));
|
|
15296
15318
|
};
|
|
15297
15319
|
|
|
15298
15320
|
var StyledPrefixContainer = index$9(View)(function (_ref) {
|
|
@@ -15339,7 +15361,7 @@ var BasicListItem = function BasicListItem(_ref) {
|
|
|
15339
15361
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15340
15362
|
onPress = _ref.onPress;
|
|
15341
15363
|
var theme = useTheme();
|
|
15342
|
-
return /*#__PURE__*/
|
|
15364
|
+
return /*#__PURE__*/React__default.createElement(StyledListItemContainer, {
|
|
15343
15365
|
style: style,
|
|
15344
15366
|
testID: testID,
|
|
15345
15367
|
themeSelected: selected,
|
|
@@ -15347,14 +15369,14 @@ var BasicListItem = function BasicListItem(_ref) {
|
|
|
15347
15369
|
onPress: onPress,
|
|
15348
15370
|
disabled: disabled,
|
|
15349
15371
|
underlayColor: theme.__hd__.list.colors.checkedListItemContainerBackground
|
|
15350
|
-
}, /*#__PURE__*/
|
|
15372
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, prefix && /*#__PURE__*/React__default.createElement(StyledPrefixContainer, null, typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
15351
15373
|
icon: prefix,
|
|
15352
15374
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
15353
|
-
}) : prefix), /*#__PURE__*/
|
|
15375
|
+
}) : prefix), /*#__PURE__*/React__default.createElement(StyledTitleContainer, null, typeof title === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
15354
15376
|
intent: "body"
|
|
15355
|
-
}, title) : title, subtitle && /*#__PURE__*/
|
|
15377
|
+
}, title) : title, subtitle && /*#__PURE__*/React__default.createElement(Typography.Caption, {
|
|
15356
15378
|
intent: "subdued"
|
|
15357
|
-
}, subtitle)), suffix && /*#__PURE__*/
|
|
15379
|
+
}, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
15358
15380
|
icon: suffix,
|
|
15359
15381
|
size: "small",
|
|
15360
15382
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
@@ -15464,16 +15486,16 @@ function PinCell(_ref) {
|
|
|
15464
15486
|
focused = _ref$focused === void 0 ? false : _ref$focused,
|
|
15465
15487
|
_ref$state = _ref.state,
|
|
15466
15488
|
state = _ref$state === void 0 ? 'default' : _ref$state;
|
|
15467
|
-
return /*#__PURE__*/
|
|
15489
|
+
return /*#__PURE__*/React__default.createElement(StyledCell, {
|
|
15468
15490
|
themeFocused: focused,
|
|
15469
15491
|
themeState: state
|
|
15470
|
-
}, value === '' && /*#__PURE__*/
|
|
15492
|
+
}, value === '' && /*#__PURE__*/React__default.createElement(StyledMask, {
|
|
15471
15493
|
themeState: state,
|
|
15472
15494
|
testID: "pin-cell-mask"
|
|
15473
|
-
}), value !== '' && secure && /*#__PURE__*/
|
|
15495
|
+
}), value !== '' && secure && /*#__PURE__*/React__default.createElement(StyledFilledMask, {
|
|
15474
15496
|
themeState: state,
|
|
15475
15497
|
testID: "pin-cell-filled-mask"
|
|
15476
|
-
}), value !== '' && !secure && /*#__PURE__*/
|
|
15498
|
+
}), value !== '' && !secure && /*#__PURE__*/React__default.createElement(StyledCellText, {
|
|
15477
15499
|
themeState: state,
|
|
15478
15500
|
level: "h3"
|
|
15479
15501
|
}, value));
|
|
@@ -15546,24 +15568,24 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
15546
15568
|
blur: blur
|
|
15547
15569
|
};
|
|
15548
15570
|
});
|
|
15549
|
-
return /*#__PURE__*/
|
|
15571
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$5, {
|
|
15550
15572
|
style: style,
|
|
15551
15573
|
testID: testID
|
|
15552
|
-
}, /*#__PURE__*/
|
|
15553
|
-
return /*#__PURE__*/
|
|
15574
|
+
}, /*#__PURE__*/React__default.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
15575
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
15554
15576
|
key: index
|
|
15555
|
-
}, index !== 0 && /*#__PURE__*/
|
|
15577
|
+
}, index !== 0 && /*#__PURE__*/React__default.createElement(StyledSpacer, null), /*#__PURE__*/React__default.createElement(PinCell, {
|
|
15556
15578
|
value: value.charAt(index),
|
|
15557
15579
|
secure: secure,
|
|
15558
15580
|
focused: focused && index === value.length,
|
|
15559
15581
|
state: state
|
|
15560
15582
|
}));
|
|
15561
|
-
})), state === 'error' && /*#__PURE__*/
|
|
15583
|
+
})), state === 'error' && /*#__PURE__*/React__default.createElement(StyledErrorContainer, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
15562
15584
|
icon: "circle-info",
|
|
15563
15585
|
size: "xsmall",
|
|
15564
15586
|
intent: "danger",
|
|
15565
15587
|
testID: "pin-error-icon"
|
|
15566
|
-
}), /*#__PURE__*/
|
|
15588
|
+
}), /*#__PURE__*/React__default.createElement(StyledErrorMessage, null, error)), /*#__PURE__*/React__default.createElement(StyledHiddenInput, {
|
|
15567
15589
|
themePinLength: length,
|
|
15568
15590
|
ref: inputRef,
|
|
15569
15591
|
value: value,
|
|
@@ -15668,9 +15690,9 @@ var _excluded$e = ["value", "renderValue", "intent", "style", "testID"];
|
|
|
15668
15690
|
var HalfCircle = function HalfCircle(_ref) {
|
|
15669
15691
|
var type = _ref.type,
|
|
15670
15692
|
themeIntent = _ref.themeIntent;
|
|
15671
|
-
return /*#__PURE__*/
|
|
15693
|
+
return /*#__PURE__*/React__default.createElement(StyledHalfCircleWrapper, null, type === 'background' ? /*#__PURE__*/React__default.createElement(StyledHalfCircleInnerBG, {
|
|
15672
15694
|
themeIntent: themeIntent
|
|
15673
|
-
}) : /*#__PURE__*/
|
|
15695
|
+
}) : /*#__PURE__*/React__default.createElement(StyledHalfCircleInnerFG, {
|
|
15674
15696
|
themeIntent: themeIntent
|
|
15675
15697
|
}));
|
|
15676
15698
|
};
|
|
@@ -15722,13 +15744,13 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15722
15744
|
outputRange: ['0deg', '360deg'],
|
|
15723
15745
|
extrapolate: 'clamp'
|
|
15724
15746
|
});
|
|
15725
|
-
return /*#__PURE__*/
|
|
15747
|
+
return /*#__PURE__*/React__default.createElement(View, _extends$1({}, nativeProps, {
|
|
15726
15748
|
testID: testID,
|
|
15727
15749
|
style: style
|
|
15728
|
-
}), /*#__PURE__*/
|
|
15750
|
+
}), /*#__PURE__*/React__default.createElement(StyledContainer$1, null, /*#__PURE__*/React__default.createElement(View, null, /*#__PURE__*/React__default.createElement(HalfCircle, {
|
|
15729
15751
|
type: "foreground",
|
|
15730
15752
|
themeIntent: intent
|
|
15731
|
-
}), /*#__PURE__*/
|
|
15753
|
+
}), /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
15732
15754
|
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15733
15755
|
transform: [{
|
|
15734
15756
|
translateX: radius / 2
|
|
@@ -15738,10 +15760,10 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15738
15760
|
translateX: -radius / 2
|
|
15739
15761
|
}]
|
|
15740
15762
|
})
|
|
15741
|
-
}, /*#__PURE__*/
|
|
15763
|
+
}, /*#__PURE__*/React__default.createElement(HalfCircle, {
|
|
15742
15764
|
type: "background",
|
|
15743
15765
|
themeIntent: intent
|
|
15744
|
-
}))), /*#__PURE__*/
|
|
15766
|
+
}))), /*#__PURE__*/React__default.createElement(View, {
|
|
15745
15767
|
style: {
|
|
15746
15768
|
transform: [{
|
|
15747
15769
|
rotate: '180deg'
|
|
@@ -15749,10 +15771,10 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15749
15771
|
zIndex: 1,
|
|
15750
15772
|
marginLeft: -0.1
|
|
15751
15773
|
}
|
|
15752
|
-
}, /*#__PURE__*/
|
|
15774
|
+
}, /*#__PURE__*/React__default.createElement(HalfCircle, {
|
|
15753
15775
|
type: "foreground",
|
|
15754
15776
|
themeIntent: intent
|
|
15755
|
-
}), /*#__PURE__*/
|
|
15777
|
+
}), /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
15756
15778
|
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15757
15779
|
transform: [{
|
|
15758
15780
|
translateX: radius / 2
|
|
@@ -15763,21 +15785,21 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15763
15785
|
}],
|
|
15764
15786
|
opacity: interpolateOpacityRightHalf
|
|
15765
15787
|
})
|
|
15766
|
-
}, /*#__PURE__*/
|
|
15788
|
+
}, /*#__PURE__*/React__default.createElement(HalfCircle, {
|
|
15767
15789
|
type: "background",
|
|
15768
15790
|
themeIntent: intent
|
|
15769
|
-
}))), /*#__PURE__*/
|
|
15791
|
+
}))), /*#__PURE__*/React__default.createElement(StyledStrokeEnd, {
|
|
15770
15792
|
themeIntent: intent
|
|
15771
|
-
}), /*#__PURE__*/
|
|
15793
|
+
}), /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
15772
15794
|
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15773
15795
|
zIndex: 2,
|
|
15774
15796
|
transform: [{
|
|
15775
15797
|
rotate: interpolateDotRotate
|
|
15776
15798
|
}]
|
|
15777
15799
|
})
|
|
15778
|
-
}, /*#__PURE__*/
|
|
15800
|
+
}, /*#__PURE__*/React__default.createElement(StyledStrokeEnd, {
|
|
15779
15801
|
themeIntent: intent
|
|
15780
|
-
})), /*#__PURE__*/
|
|
15802
|
+
})), /*#__PURE__*/React__default.createElement(StyledDonutCircle, null, /*#__PURE__*/React__default.createElement(Typography.Body, null, renderValue(value)))));
|
|
15781
15803
|
};
|
|
15782
15804
|
|
|
15783
15805
|
var StyledWrapper$4 = index$9(View)(function (_ref) {
|
|
@@ -15834,11 +15856,11 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
15834
15856
|
outputRange: [999, 0],
|
|
15835
15857
|
extrapolate: 'clamp'
|
|
15836
15858
|
});
|
|
15837
|
-
return /*#__PURE__*/
|
|
15859
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$4, _extends$1({}, nativeProps, {
|
|
15838
15860
|
testID: testID,
|
|
15839
15861
|
style: style,
|
|
15840
15862
|
themeIntent: intent
|
|
15841
|
-
}), /*#__PURE__*/
|
|
15863
|
+
}), /*#__PURE__*/React__default.createElement(StyledInner, {
|
|
15842
15864
|
themeIntent: intent,
|
|
15843
15865
|
onLayout: function onLayout(_ref2) {
|
|
15844
15866
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -15876,7 +15898,7 @@ var Slider = function Slider(_ref) {
|
|
|
15876
15898
|
style = _ref.style,
|
|
15877
15899
|
testID = _ref.testID;
|
|
15878
15900
|
var theme = useTheme();
|
|
15879
|
-
return /*#__PURE__*/
|
|
15901
|
+
return /*#__PURE__*/React__default.createElement(RnSlider, {
|
|
15880
15902
|
minimumValue: minimumValue,
|
|
15881
15903
|
maximumValue: maximumValue,
|
|
15882
15904
|
step: step,
|
|
@@ -15978,23 +16000,23 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
15978
16000
|
themeSize: size,
|
|
15979
16001
|
themeIntent: intent
|
|
15980
16002
|
};
|
|
15981
|
-
return /*#__PURE__*/
|
|
16003
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
15982
16004
|
style: StyleSheet$1.flatten([{
|
|
15983
16005
|
transform: [{
|
|
15984
16006
|
rotate: interpolatedRotateAnimation
|
|
15985
16007
|
}]
|
|
15986
16008
|
}])
|
|
15987
|
-
}, /*#__PURE__*/
|
|
16009
|
+
}, /*#__PURE__*/React__default.createElement(AnimatedRow, _extends$1({
|
|
15988
16010
|
themePosition: "top"
|
|
15989
|
-
}, rowProps), /*#__PURE__*/
|
|
16011
|
+
}, rowProps), /*#__PURE__*/React__default.createElement(AnimatedDot, _extends$1({
|
|
15990
16012
|
themePosition: "topLeft"
|
|
15991
|
-
}, dotProps)), /*#__PURE__*/
|
|
16013
|
+
}, dotProps)), /*#__PURE__*/React__default.createElement(AnimatedDot, _extends$1({
|
|
15992
16014
|
themePosition: "topRight"
|
|
15993
|
-
}, dotProps))), /*#__PURE__*/
|
|
16015
|
+
}, dotProps))), /*#__PURE__*/React__default.createElement(AnimatedRow, _extends$1({
|
|
15994
16016
|
themePosition: "bottom"
|
|
15995
|
-
}, rowProps), /*#__PURE__*/
|
|
16017
|
+
}, rowProps), /*#__PURE__*/React__default.createElement(AnimatedDot, _extends$1({
|
|
15996
16018
|
themePosition: "bottomLeft"
|
|
15997
|
-
}, dotProps)), /*#__PURE__*/
|
|
16019
|
+
}, dotProps)), /*#__PURE__*/React__default.createElement(AnimatedDot, _extends$1({
|
|
15998
16020
|
themePosition: "bottomRight"
|
|
15999
16021
|
}, dotProps))));
|
|
16000
16022
|
};
|
|
@@ -16007,9 +16029,9 @@ var Spinner = function Spinner(_ref) {
|
|
|
16007
16029
|
_ref$intent = _ref.intent,
|
|
16008
16030
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16009
16031
|
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
16010
|
-
return /*#__PURE__*/
|
|
16032
|
+
return /*#__PURE__*/React__default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default.createElement(StyledSpinnerContainer, {
|
|
16011
16033
|
testID: testID
|
|
16012
|
-
}, /*#__PURE__*/
|
|
16034
|
+
}, /*#__PURE__*/React__default.createElement(AnimatedSpinner, {
|
|
16013
16035
|
size: size,
|
|
16014
16036
|
intent: intent
|
|
16015
16037
|
})));
|
|
@@ -16031,7 +16053,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
16031
16053
|
style = _ref.style,
|
|
16032
16054
|
children = _ref.children,
|
|
16033
16055
|
testID = _ref.testID;
|
|
16034
|
-
return /*#__PURE__*/
|
|
16056
|
+
return /*#__PURE__*/React__default.createElement(StyledRectButton, {
|
|
16035
16057
|
onPress: onPress,
|
|
16036
16058
|
themeIntent: intent,
|
|
16037
16059
|
style: style,
|
|
@@ -16046,7 +16068,7 @@ var renderActions = function renderActions(actions, width, progress, direction)
|
|
|
16046
16068
|
outputRange: direction === 'left' ? [-width, 0] : [width, 0],
|
|
16047
16069
|
extrapolate: 'clamp'
|
|
16048
16070
|
});
|
|
16049
|
-
return /*#__PURE__*/
|
|
16071
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
16050
16072
|
style: {
|
|
16051
16073
|
width: width,
|
|
16052
16074
|
flexDirection: 'row',
|
|
@@ -16073,7 +16095,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16073
16095
|
var _useWindowDimensions = useWindowDimensions(),
|
|
16074
16096
|
width = _useWindowDimensions.width;
|
|
16075
16097
|
var swipeableRef = useRef(null);
|
|
16076
|
-
var _React$useState =
|
|
16098
|
+
var _React$useState = React__default.useState(0),
|
|
16077
16099
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
16078
16100
|
containerWidth = _React$useState2[0],
|
|
16079
16101
|
setContainerWidth = _React$useState2[1];
|
|
@@ -16097,11 +16119,11 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16097
16119
|
break;
|
|
16098
16120
|
}
|
|
16099
16121
|
}, [state]);
|
|
16100
|
-
return /*#__PURE__*/
|
|
16122
|
+
return /*#__PURE__*/React__default.createElement(GestureHandlerRootView, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
16101
16123
|
onLayout: function onLayout(e) {
|
|
16102
16124
|
return setContainerWidth(e.nativeEvent.layout.width);
|
|
16103
16125
|
}
|
|
16104
|
-
}, /*#__PURE__*/
|
|
16126
|
+
}, /*#__PURE__*/React__default.createElement(Swipeable$1, _extends$1({}, swipeableProps, {
|
|
16105
16127
|
ref: swipeableRef
|
|
16106
16128
|
}, leftActions !== undefined && {
|
|
16107
16129
|
renderLeftActions: renderLeftActions
|
|
@@ -16173,7 +16195,7 @@ var StyledRadio = index$9(List.Item)(function (_ref4) {
|
|
|
16173
16195
|
var RadioCircle = function RadioCircle(_ref) {
|
|
16174
16196
|
var checked = _ref.checked,
|
|
16175
16197
|
text = _ref.text;
|
|
16176
|
-
return /*#__PURE__*/
|
|
16198
|
+
return /*#__PURE__*/React__default.createElement(Circle, null, checked && /*#__PURE__*/React__default.createElement(InnerCircle, {
|
|
16177
16199
|
testID: "".concat(text, "-selected-circle")
|
|
16178
16200
|
}));
|
|
16179
16201
|
};
|
|
@@ -16187,12 +16209,12 @@ var Radio = function Radio(_ref2) {
|
|
|
16187
16209
|
testID = _ref2.testID,
|
|
16188
16210
|
_ref2$inactiveIntent = _ref2.inactiveIntent,
|
|
16189
16211
|
inactiveIntent = _ref2$inactiveIntent === void 0 ? 'light' : _ref2$inactiveIntent;
|
|
16190
|
-
return /*#__PURE__*/
|
|
16212
|
+
return /*#__PURE__*/React__default.createElement(StyledRadio, {
|
|
16191
16213
|
onPress: onPress,
|
|
16192
16214
|
selected: checked,
|
|
16193
16215
|
title: text,
|
|
16194
16216
|
subtitle: subText,
|
|
16195
|
-
suffix: /*#__PURE__*/
|
|
16217
|
+
suffix: /*#__PURE__*/React__default.createElement(RadioCircle, {
|
|
16196
16218
|
checked: checked,
|
|
16197
16219
|
text: text
|
|
16198
16220
|
}),
|
|
@@ -16223,15 +16245,15 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
16223
16245
|
testID = _ref.testID,
|
|
16224
16246
|
_ref$inactiveIntent = _ref.inactiveIntent,
|
|
16225
16247
|
inactiveIntent = _ref$inactiveIntent === void 0 ? 'light' : _ref$inactiveIntent;
|
|
16226
|
-
return /*#__PURE__*/
|
|
16248
|
+
return /*#__PURE__*/React__default.createElement(View, {
|
|
16227
16249
|
style: style,
|
|
16228
16250
|
testID: testID
|
|
16229
16251
|
}, options.map(function (option, index) {
|
|
16230
|
-
return /*#__PURE__*/
|
|
16252
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
16231
16253
|
key: getKey(option, index, keyExtractor)
|
|
16232
|
-
}, index !== 0 && /*#__PURE__*/
|
|
16254
|
+
}, index !== 0 && /*#__PURE__*/React__default.createElement(Spacer, {
|
|
16233
16255
|
themeIntent: inactiveIntent
|
|
16234
|
-
}), /*#__PURE__*/
|
|
16256
|
+
}), /*#__PURE__*/React__default.createElement(Radio, {
|
|
16235
16257
|
text: option.text,
|
|
16236
16258
|
subText: option.subText,
|
|
16237
16259
|
checked: option.value === value,
|
|
@@ -16300,20 +16322,20 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
16300
16322
|
testID = _ref.testID;
|
|
16301
16323
|
useDeprecation("SectionHeading's fontSize prop is deprecated and will be removed in the next major release, please remove it.", fontSize !== undefined);
|
|
16302
16324
|
useDeprecation("SectionHeading's fontWeight prop is deprecated and will be removed in the next major release, please remove it.", fontWeight !== undefined);
|
|
16303
|
-
return /*#__PURE__*/
|
|
16325
|
+
return /*#__PURE__*/React__default.createElement(StyledHeading, {
|
|
16304
16326
|
themeSize: size,
|
|
16305
16327
|
style: style,
|
|
16306
16328
|
testID: testID
|
|
16307
|
-
}, /*#__PURE__*/
|
|
16329
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$3, null, /*#__PURE__*/React__default.createElement(StyledIconWrapper$2, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
16308
16330
|
icon: icon,
|
|
16309
16331
|
size: ICON_SIZE_MAP[size],
|
|
16310
16332
|
intent: ICON_INTENT_MAP[intent]
|
|
16311
|
-
}) : /*#__PURE__*/
|
|
16333
|
+
}) : /*#__PURE__*/React__default.cloneElement(icon, _objectSpread2({
|
|
16312
16334
|
size: ICON_SIZE_MAP[size],
|
|
16313
16335
|
intent: ICON_INTENT_MAP[intent]
|
|
16314
|
-
}, icon.props)))), size === 'small' ? /*#__PURE__*/
|
|
16336
|
+
}, icon.props)))), size === 'small' ? /*#__PURE__*/React__default.createElement(Typography.Caption, {
|
|
16315
16337
|
intent: intent
|
|
16316
|
-
}, text) : /*#__PURE__*/
|
|
16338
|
+
}, text) : /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
16317
16339
|
variant: "small",
|
|
16318
16340
|
intent: intent
|
|
16319
16341
|
}, text)), rightChildren);
|
|
@@ -16322,7 +16344,7 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
16322
16344
|
var Footer = function Footer(_ref) {
|
|
16323
16345
|
var label = _ref.label,
|
|
16324
16346
|
onPress = _ref.onPress;
|
|
16325
|
-
return /*#__PURE__*/
|
|
16347
|
+
return /*#__PURE__*/React__default.createElement(CompoundButton, {
|
|
16326
16348
|
variant: "text",
|
|
16327
16349
|
text: label,
|
|
16328
16350
|
onPress: onPress
|
|
@@ -16433,7 +16455,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
16433
16455
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16434
16456
|
onEndReachedCalled = _useState2[0],
|
|
16435
16457
|
setOnEndReachedCalled = _useState2[1];
|
|
16436
|
-
return /*#__PURE__*/
|
|
16458
|
+
return /*#__PURE__*/React__default.createElement(StyledSectionList, _extends$1({
|
|
16437
16459
|
ref: sectionListRef,
|
|
16438
16460
|
style: _objectSpread2({}, onQueryChange ? {
|
|
16439
16461
|
height: Dimensions.get('screen').height
|
|
@@ -16448,16 +16470,16 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
16448
16470
|
if (onEndReached && onEndReachedCalled && !loading) onEndReached();
|
|
16449
16471
|
setOnEndReachedCalled(false);
|
|
16450
16472
|
},
|
|
16451
|
-
ListFooterComponent: loading ? /*#__PURE__*/
|
|
16473
|
+
ListFooterComponent: loading ? /*#__PURE__*/React__default.createElement(View, {
|
|
16452
16474
|
style: {
|
|
16453
16475
|
display: 'flex',
|
|
16454
16476
|
alignItems: 'center',
|
|
16455
16477
|
height: theme.space.xxxxlarge
|
|
16456
16478
|
}
|
|
16457
|
-
}, /*#__PURE__*/
|
|
16479
|
+
}, /*#__PURE__*/React__default.createElement(Spinner, null)) : null,
|
|
16458
16480
|
renderSectionHeader: function renderSectionHeader(_ref2) {
|
|
16459
16481
|
var category = _ref2.section.category;
|
|
16460
|
-
return category !== '' ? /*#__PURE__*/
|
|
16482
|
+
return category !== '' ? /*#__PURE__*/React__default.createElement(SectionHeading, {
|
|
16461
16483
|
text: category,
|
|
16462
16484
|
style: {
|
|
16463
16485
|
marginBottom: 0
|
|
@@ -16484,7 +16506,7 @@ var Option$2 = function Option(_ref) {
|
|
|
16484
16506
|
disabled: disabled,
|
|
16485
16507
|
onPress: onPress,
|
|
16486
16508
|
title: text,
|
|
16487
|
-
suffix: selected === true ? /*#__PURE__*/
|
|
16509
|
+
suffix: selected === true ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
16488
16510
|
testID: typeof text === 'string' ? "selected-icon-".concat(text) : undefined,
|
|
16489
16511
|
icon: "checkmark",
|
|
16490
16512
|
intent: disabled ? 'disabled-text' : 'primary',
|
|
@@ -16494,7 +16516,7 @@ var Option$2 = function Option(_ref) {
|
|
|
16494
16516
|
}
|
|
16495
16517
|
}) : undefined
|
|
16496
16518
|
};
|
|
16497
|
-
return highlighted === true ? /*#__PURE__*/
|
|
16519
|
+
return highlighted === true ? /*#__PURE__*/React__default.createElement(List.Item, props) : /*#__PURE__*/React__default.createElement(List.BasicItem, props);
|
|
16498
16520
|
};
|
|
16499
16521
|
|
|
16500
16522
|
var _excluded$9 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
@@ -16524,7 +16546,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
16524
16546
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
16525
16547
|
selected: selected,
|
|
16526
16548
|
onPress: onItemPress
|
|
16527
|
-
})) : /*#__PURE__*/
|
|
16549
|
+
})) : /*#__PURE__*/React__default.createElement(Option$2, {
|
|
16528
16550
|
selected: selected,
|
|
16529
16551
|
text: item.text,
|
|
16530
16552
|
disabled: item.disabled,
|
|
@@ -16532,7 +16554,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
16532
16554
|
highlighted: item.highlighted
|
|
16533
16555
|
});
|
|
16534
16556
|
};
|
|
16535
|
-
return /*#__PURE__*/
|
|
16557
|
+
return /*#__PURE__*/React__default.createElement(BaseOptionList, _extends$1({
|
|
16536
16558
|
keyExtractor: keyExtractor,
|
|
16537
16559
|
loading: loading,
|
|
16538
16560
|
onEndReached: onEndReached,
|
|
@@ -16589,15 +16611,15 @@ function MultiSelect(_ref) {
|
|
|
16589
16611
|
useEffect(function () {
|
|
16590
16612
|
setSelectingValue(value);
|
|
16591
16613
|
}, [open, value]);
|
|
16592
|
-
return /*#__PURE__*/
|
|
16614
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(View, {
|
|
16593
16615
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
16594
|
-
}, /*#__PURE__*/
|
|
16616
|
+
}, /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
16595
16617
|
onPress: function onPress() {
|
|
16596
16618
|
return setOpen(true);
|
|
16597
16619
|
}
|
|
16598
|
-
}, /*#__PURE__*/
|
|
16620
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
16599
16621
|
pointerEvents: "none"
|
|
16600
|
-
}, /*#__PURE__*/
|
|
16622
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
16601
16623
|
label: label,
|
|
16602
16624
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
16603
16625
|
suffix: "arrow-down",
|
|
@@ -16612,7 +16634,7 @@ function MultiSelect(_ref) {
|
|
|
16612
16634
|
renderInputValue: renderSelectedValue !== undefined && (rawValue === null || rawValue === void 0 ? void 0 : rawValue.length) > 0 ? function (props) {
|
|
16613
16635
|
return renderSelectedValue(value, props);
|
|
16614
16636
|
} : undefined
|
|
16615
|
-
}))))), /*#__PURE__*/
|
|
16637
|
+
}))))), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
|
|
16616
16638
|
open: open,
|
|
16617
16639
|
onRequestClose: function onRequestClose() {
|
|
16618
16640
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
@@ -16622,13 +16644,13 @@ function MultiSelect(_ref) {
|
|
|
16622
16644
|
style: {
|
|
16623
16645
|
paddingBottom: isKeyboardVisible ? keyboardHeight : 0
|
|
16624
16646
|
},
|
|
16625
|
-
footer: typeof footerLabel === 'string' ? /*#__PURE__*/
|
|
16647
|
+
footer: typeof footerLabel === 'string' ? /*#__PURE__*/React__default.createElement(Footer, {
|
|
16626
16648
|
label: footerLabel,
|
|
16627
16649
|
onPress: function onPress() {
|
|
16628
16650
|
setOpen(false);
|
|
16629
16651
|
onConfirm(selectingValue);
|
|
16630
16652
|
}
|
|
16631
|
-
}) : /*#__PURE__*/
|
|
16653
|
+
}) : /*#__PURE__*/React__default.createElement(Box, {
|
|
16632
16654
|
flex: 1,
|
|
16633
16655
|
flexDirection: "row",
|
|
16634
16656
|
justifyContent: "flex-end"
|
|
@@ -16645,13 +16667,13 @@ function MultiSelect(_ref) {
|
|
|
16645
16667
|
(_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 || _sectionListRef$curre.scrollToLocation(scrollParams);
|
|
16646
16668
|
}
|
|
16647
16669
|
}
|
|
16648
|
-
}, onQueryChange && /*#__PURE__*/
|
|
16670
|
+
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
16649
16671
|
editable: true,
|
|
16650
16672
|
placeholder: "Search",
|
|
16651
16673
|
suffix: "search-outlined",
|
|
16652
16674
|
onChangeText: onQueryChange,
|
|
16653
16675
|
value: query
|
|
16654
|
-
})), /*#__PURE__*/
|
|
16676
|
+
})), /*#__PURE__*/React__default.createElement(OptionList$1, {
|
|
16655
16677
|
onQueryChange: onQueryChange,
|
|
16656
16678
|
onEndReached: onEndReached,
|
|
16657
16679
|
loading: loading,
|
|
@@ -16686,7 +16708,7 @@ var Option$1 = function Option(_ref) {
|
|
|
16686
16708
|
onPress: onPress,
|
|
16687
16709
|
title: text
|
|
16688
16710
|
};
|
|
16689
|
-
return highlighted === true ? /*#__PURE__*/
|
|
16711
|
+
return highlighted === true ? /*#__PURE__*/React__default.createElement(List.Item, props) : /*#__PURE__*/React__default.createElement(List.BasicItem, props);
|
|
16690
16712
|
};
|
|
16691
16713
|
|
|
16692
16714
|
var StyledOptionList = index$9(BaseOptionList)(function (_ref) {
|
|
@@ -16721,7 +16743,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
16721
16743
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
16722
16744
|
selected: selected,
|
|
16723
16745
|
onPress: onItemPress
|
|
16724
|
-
})) : /*#__PURE__*/
|
|
16746
|
+
})) : /*#__PURE__*/React__default.createElement(Option$1, {
|
|
16725
16747
|
selected: selected,
|
|
16726
16748
|
text: item.text,
|
|
16727
16749
|
disabled: item.disabled,
|
|
@@ -16729,7 +16751,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
16729
16751
|
highlighted: item.highlighted
|
|
16730
16752
|
});
|
|
16731
16753
|
};
|
|
16732
|
-
return /*#__PURE__*/
|
|
16754
|
+
return /*#__PURE__*/React__default.createElement(StyledOptionList, _extends$1({
|
|
16733
16755
|
keyExtractor: keyExtractor,
|
|
16734
16756
|
loading: loading,
|
|
16735
16757
|
onEndReached: onEndReached,
|
|
@@ -16780,15 +16802,15 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16780
16802
|
return value === opt.value;
|
|
16781
16803
|
})) === null || _flatOptions$find === void 0 ? void 0 : _flatOptions$find.text;
|
|
16782
16804
|
var rawValue = value ? String(value) : undefined;
|
|
16783
|
-
return /*#__PURE__*/
|
|
16805
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(View, {
|
|
16784
16806
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
16785
|
-
}, /*#__PURE__*/
|
|
16807
|
+
}, /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
16786
16808
|
onPress: function onPress() {
|
|
16787
16809
|
return setOpen(true);
|
|
16788
16810
|
}
|
|
16789
|
-
}, /*#__PURE__*/
|
|
16811
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
16790
16812
|
pointerEvents: "none"
|
|
16791
|
-
}, /*#__PURE__*/
|
|
16813
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
16792
16814
|
label: label,
|
|
16793
16815
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
16794
16816
|
suffix: "arrow-down",
|
|
@@ -16803,7 +16825,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16803
16825
|
renderInputValue: renderSelectedValue !== undefined && !!rawValue ? function (props) {
|
|
16804
16826
|
return renderSelectedValue(value, props);
|
|
16805
16827
|
} : undefined
|
|
16806
|
-
}))))), /*#__PURE__*/
|
|
16828
|
+
}))))), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
|
|
16807
16829
|
open: open,
|
|
16808
16830
|
onRequestClose: function onRequestClose() {
|
|
16809
16831
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
@@ -16820,13 +16842,13 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16820
16842
|
(_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 || _sectionListRef$curre.scrollToLocation(scrollParams);
|
|
16821
16843
|
}
|
|
16822
16844
|
}
|
|
16823
|
-
}, onQueryChange && /*#__PURE__*/
|
|
16845
|
+
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
16824
16846
|
editable: true,
|
|
16825
16847
|
placeholder: "Search",
|
|
16826
16848
|
suffix: "search-outlined",
|
|
16827
16849
|
onChangeText: onQueryChange,
|
|
16828
16850
|
value: query
|
|
16829
|
-
})), /*#__PURE__*/
|
|
16851
|
+
})), /*#__PURE__*/React__default.createElement(OptionList, {
|
|
16830
16852
|
onQueryChange: onQueryChange,
|
|
16831
16853
|
onEndReached: onEndReached,
|
|
16832
16854
|
loading: loading,
|
|
@@ -16940,14 +16962,14 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
16940
16962
|
}
|
|
16941
16963
|
onLayout === null || onLayout === void 0 || onLayout(e);
|
|
16942
16964
|
}, []);
|
|
16943
|
-
return /*#__PURE__*/
|
|
16965
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer, _extends$1({
|
|
16944
16966
|
style: style,
|
|
16945
16967
|
themeVariant: variant,
|
|
16946
16968
|
themeIntent: intent,
|
|
16947
16969
|
onLayout: onContainerLayout
|
|
16948
|
-
}, props), /*#__PURE__*/
|
|
16970
|
+
}, props), /*#__PURE__*/React__default.createElement(StyledGradientContainer, {
|
|
16949
16971
|
themeVariant: variant
|
|
16950
|
-
}, /*#__PURE__*/
|
|
16972
|
+
}, /*#__PURE__*/React__default.createElement(AnimatedLinearGradient, {
|
|
16951
16973
|
start: gradientPositions.start,
|
|
16952
16974
|
end: gradientPositions.end,
|
|
16953
16975
|
style: {
|
|
@@ -17039,11 +17061,11 @@ var StyledSuccessModal = index$9(ModalWrapper)({
|
|
|
17039
17061
|
var _excluded$6 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
17040
17062
|
var renderImage = function renderImage(image) {
|
|
17041
17063
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
17042
|
-
return /*#__PURE__*/
|
|
17064
|
+
return /*#__PURE__*/React__default.cloneElement(image, {
|
|
17043
17065
|
testID: 'success-image'
|
|
17044
17066
|
});
|
|
17045
17067
|
}
|
|
17046
|
-
return /*#__PURE__*/
|
|
17068
|
+
return /*#__PURE__*/React__default.createElement(StyledSuccessImage, {
|
|
17047
17069
|
source: typeof image === 'string' ? {
|
|
17048
17070
|
uri: image
|
|
17049
17071
|
} : image,
|
|
@@ -17064,16 +17086,16 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17064
17086
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
17065
17087
|
nativeProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
17066
17088
|
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
17067
|
-
return /*#__PURE__*/
|
|
17089
|
+
return /*#__PURE__*/React__default.createElement(StyledSuccessContainer, _extends$1({
|
|
17068
17090
|
testID: testID,
|
|
17069
17091
|
themeVariant: variant
|
|
17070
|
-
}, nativeProps), /*#__PURE__*/
|
|
17092
|
+
}, nativeProps), /*#__PURE__*/React__default.createElement(StyledSuccessContent, null, !!image && /*#__PURE__*/React__default.createElement(StyledSuccessImageContainer, null, renderImage(image)), /*#__PURE__*/React__default.createElement(StyledSuccessTitle, {
|
|
17071
17093
|
level: "h4",
|
|
17072
17094
|
typeface: "playful"
|
|
17073
|
-
}, title),
|
|
17095
|
+
}, title), typeof description === 'string' ? /*#__PURE__*/React__default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__default.createElement(StyledSuccessButtonPrimary, {
|
|
17074
17096
|
text: ctaText,
|
|
17075
17097
|
onPress: onCtaPress
|
|
17076
|
-
}), !!showSecondaryButton && /*#__PURE__*/
|
|
17098
|
+
}), !!showSecondaryButton && /*#__PURE__*/React__default.createElement(StyledSuccessButtonPrimary, {
|
|
17077
17099
|
variant: "text",
|
|
17078
17100
|
text: secondaryCtaText,
|
|
17079
17101
|
onPress: onSecondaryCtaPress
|
|
@@ -17088,11 +17110,11 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17088
17110
|
var Success = function Success(props) {
|
|
17089
17111
|
var variant = props.variant;
|
|
17090
17112
|
if (variant === 'full-screen') {
|
|
17091
|
-
return /*#__PURE__*/
|
|
17113
|
+
return /*#__PURE__*/React__default.createElement(StyledSuccessModal, {
|
|
17092
17114
|
animationType: "slide"
|
|
17093
|
-
}, /*#__PURE__*/
|
|
17115
|
+
}, /*#__PURE__*/React__default.createElement(SuccessPage, props));
|
|
17094
17116
|
}
|
|
17095
|
-
return /*#__PURE__*/
|
|
17117
|
+
return /*#__PURE__*/React__default.createElement(SuccessPage, props);
|
|
17096
17118
|
};
|
|
17097
17119
|
|
|
17098
17120
|
var AnimatedView = Animated.createAnimatedComponent(View);
|
|
@@ -17143,7 +17165,7 @@ var OptionContent = function OptionContent(_ref) {
|
|
|
17143
17165
|
return content;
|
|
17144
17166
|
}
|
|
17145
17167
|
if (badge.type === 'status') {
|
|
17146
|
-
return /*#__PURE__*/
|
|
17168
|
+
return /*#__PURE__*/React__default.createElement(Badge$1.Status, {
|
|
17147
17169
|
visible: true,
|
|
17148
17170
|
style: {
|
|
17149
17171
|
paddingHorizontal: theme.space.small
|
|
@@ -17175,27 +17197,27 @@ var Option = function Option(_ref2) {
|
|
|
17175
17197
|
}).start();
|
|
17176
17198
|
}, [selected]);
|
|
17177
17199
|
if (selected) {
|
|
17178
|
-
return /*#__PURE__*/
|
|
17200
|
+
return /*#__PURE__*/React__default.createElement(StyledTextWrapper, {
|
|
17179
17201
|
style: {
|
|
17180
17202
|
transform: [{
|
|
17181
17203
|
translateX: translateX
|
|
17182
17204
|
}]
|
|
17183
17205
|
},
|
|
17184
17206
|
onLayout: onLayout
|
|
17185
|
-
}, /*#__PURE__*/
|
|
17186
|
-
content: /*#__PURE__*/
|
|
17207
|
+
}, /*#__PURE__*/React__default.createElement(OptionContent, {
|
|
17208
|
+
content: /*#__PURE__*/React__default.createElement(Typography.Body, null, text),
|
|
17187
17209
|
badge: badge
|
|
17188
17210
|
}));
|
|
17189
17211
|
}
|
|
17190
|
-
return /*#__PURE__*/
|
|
17212
|
+
return /*#__PURE__*/React__default.createElement(StyledIconWrapper$1, {
|
|
17191
17213
|
style: {
|
|
17192
17214
|
transform: [{
|
|
17193
17215
|
translateX: translateX
|
|
17194
17216
|
}]
|
|
17195
17217
|
},
|
|
17196
17218
|
onLayout: onLayout
|
|
17197
|
-
}, /*#__PURE__*/
|
|
17198
|
-
content: /*#__PURE__*/
|
|
17219
|
+
}, /*#__PURE__*/React__default.createElement(OptionContent, {
|
|
17220
|
+
content: /*#__PURE__*/React__default.createElement(Icon, {
|
|
17199
17221
|
icon: icon
|
|
17200
17222
|
}),
|
|
17201
17223
|
badge: badge
|
|
@@ -17237,16 +17259,16 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
17237
17259
|
setKnotWidth(e.nativeEvent.layout.width);
|
|
17238
17260
|
}
|
|
17239
17261
|
}, [value]);
|
|
17240
|
-
return /*#__PURE__*/
|
|
17262
|
+
return /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
17241
17263
|
onPress: function onPress() {
|
|
17242
17264
|
return _onPress === null || _onPress === void 0 ? void 0 : _onPress(value);
|
|
17243
17265
|
},
|
|
17244
17266
|
testID: testID
|
|
17245
|
-
}, /*#__PURE__*/
|
|
17267
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$2, {
|
|
17246
17268
|
onLayout: onContainerLayout,
|
|
17247
17269
|
style: style
|
|
17248
17270
|
}, options.map(function (opt, index) {
|
|
17249
|
-
return /*#__PURE__*/
|
|
17271
|
+
return /*#__PURE__*/React__default.createElement(Option, _extends$1({}, opt, {
|
|
17250
17272
|
selected: opt.value === value
|
|
17251
17273
|
// eslint-disable-next-line react/no-array-index-key
|
|
17252
17274
|
,
|
|
@@ -17256,7 +17278,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
17256
17278
|
},
|
|
17257
17279
|
index: index
|
|
17258
17280
|
}));
|
|
17259
|
-
}), /*#__PURE__*/
|
|
17281
|
+
}), /*#__PURE__*/React__default.createElement(StyledKnot$1, {
|
|
17260
17282
|
style: {
|
|
17261
17283
|
width: knotWidth,
|
|
17262
17284
|
transform: [{
|
|
@@ -17324,14 +17346,14 @@ var Switch = function Switch(_ref2) {
|
|
|
17324
17346
|
useNativeDriver: false
|
|
17325
17347
|
}).start();
|
|
17326
17348
|
}, [checked]);
|
|
17327
|
-
return /*#__PURE__*/
|
|
17349
|
+
return /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
17328
17350
|
testID: testID,
|
|
17329
17351
|
onPress: onPress,
|
|
17330
17352
|
disabled: disabled
|
|
17331
|
-
}, /*#__PURE__*/
|
|
17353
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$1, {
|
|
17332
17354
|
themeVariant: variant,
|
|
17333
17355
|
style: style
|
|
17334
|
-
}, /*#__PURE__*/
|
|
17356
|
+
}, /*#__PURE__*/React__default.createElement(StyledKnot, {
|
|
17335
17357
|
style: {
|
|
17336
17358
|
left: animatedOffset
|
|
17337
17359
|
}
|
|
@@ -17399,7 +17421,7 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
17399
17421
|
inputRange: inputRange,
|
|
17400
17422
|
outputRange: [0, tabsLength * indicatorWidth]
|
|
17401
17423
|
});
|
|
17402
|
-
return /*#__PURE__*/
|
|
17424
|
+
return /*#__PURE__*/React__default.createElement(StyledIndicator, {
|
|
17403
17425
|
themeWidth: indicatorWidth,
|
|
17404
17426
|
style: {
|
|
17405
17427
|
transform: [{
|
|
@@ -17478,18 +17500,18 @@ var SceneView = function SceneView(_ref) {
|
|
|
17478
17500
|
index = _ref.index,
|
|
17479
17501
|
selectedIndex = _ref.selectedIndex,
|
|
17480
17502
|
testID = _ref.testID;
|
|
17481
|
-
var _React$useState =
|
|
17503
|
+
var _React$useState = React__default.useState(Math.abs(selectedIndex - index) > lazyPreloadDistance),
|
|
17482
17504
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17483
17505
|
isLoading = _React$useState2[0],
|
|
17484
17506
|
setIsLoading = _React$useState2[1];
|
|
17485
17507
|
var focused = index === selectedIndex;
|
|
17486
|
-
|
|
17508
|
+
React__default.useEffect(function () {
|
|
17487
17509
|
if (isLoading && Math.abs(selectedIndex - index) <= lazyPreloadDistance) {
|
|
17488
17510
|
// Always render the route when it becomes focused
|
|
17489
17511
|
setIsLoading(false);
|
|
17490
17512
|
}
|
|
17491
17513
|
}, [isLoading, index, selectedIndex, lazyPreloadDistance]);
|
|
17492
|
-
|
|
17514
|
+
React__default.useEffect(function () {
|
|
17493
17515
|
var timer;
|
|
17494
17516
|
if (!lazy && isLoading) {
|
|
17495
17517
|
// If lazy mode is not enabled, render the scene with a delay if not loaded already
|
|
@@ -17504,7 +17526,7 @@ var SceneView = function SceneView(_ref) {
|
|
|
17504
17526
|
}
|
|
17505
17527
|
};
|
|
17506
17528
|
}, [index, isLoading, lazy, focused]);
|
|
17507
|
-
return /*#__PURE__*/
|
|
17529
|
+
return /*#__PURE__*/React__default.createElement(TabScreen, {
|
|
17508
17530
|
accessibilityElementsHidden: !focused,
|
|
17509
17531
|
importantForAccessibility: focused ? 'auto' : 'no-hide-descendants',
|
|
17510
17532
|
style: [{
|
|
@@ -17519,9 +17541,9 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17519
17541
|
var config = _ref.config,
|
|
17520
17542
|
tabItem = _ref.tabItem;
|
|
17521
17543
|
var theme = useTheme$1();
|
|
17522
|
-
if (!config) return /*#__PURE__*/
|
|
17544
|
+
if (!config) return /*#__PURE__*/React__default.createElement(View, null, tabItem);
|
|
17523
17545
|
if (config.type === 'status') {
|
|
17524
|
-
return /*#__PURE__*/
|
|
17546
|
+
return /*#__PURE__*/React__default.createElement(Badge$1.Status, {
|
|
17525
17547
|
visible: true,
|
|
17526
17548
|
style: {
|
|
17527
17549
|
paddingHorizontal: theme.space.xsmall
|
|
@@ -17529,7 +17551,7 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17529
17551
|
}, tabItem);
|
|
17530
17552
|
}
|
|
17531
17553
|
if (config.type === 'counter') {
|
|
17532
|
-
return /*#__PURE__*/
|
|
17554
|
+
return /*#__PURE__*/React__default.createElement(StyledBadgeWrapper, null, tabItem, /*#__PURE__*/React__default.createElement(Badge$1, {
|
|
17533
17555
|
content: config.value,
|
|
17534
17556
|
max: config.max,
|
|
17535
17557
|
intent: "info",
|
|
@@ -17538,11 +17560,11 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17538
17560
|
}
|
|
17539
17561
|
}));
|
|
17540
17562
|
}
|
|
17541
|
-
return /*#__PURE__*/
|
|
17563
|
+
return /*#__PURE__*/React__default.createElement(View, null, tabItem);
|
|
17542
17564
|
};
|
|
17543
17565
|
|
|
17544
17566
|
var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
|
|
17545
|
-
var refs =
|
|
17567
|
+
var refs = React__default.useRef([]);
|
|
17546
17568
|
refs.current.length = initialValues.length;
|
|
17547
17569
|
initialValues.forEach(function (initialValue, i) {
|
|
17548
17570
|
var _refs$current$i;
|
|
@@ -17561,7 +17583,7 @@ var useInitHighlightedAnimation = function useInitHighlightedAnimation(_ref) {
|
|
|
17561
17583
|
}).map(function (_, i) {
|
|
17562
17584
|
return i === selectedIndex ? 1 : 0;
|
|
17563
17585
|
}));
|
|
17564
|
-
|
|
17586
|
+
React__default.useEffect(function () {
|
|
17565
17587
|
if (variant !== 'highlighted') {
|
|
17566
17588
|
return;
|
|
17567
17589
|
}
|
|
@@ -17604,7 +17626,7 @@ var useInitUnderlinedAnimation = function useInitUnderlinedAnimation(_ref) {
|
|
|
17604
17626
|
_ref$selectedIndex = _ref.selectedIndex,
|
|
17605
17627
|
selectedIndex = _ref$selectedIndex === void 0 ? 0 : _ref$selectedIndex,
|
|
17606
17628
|
variant = _ref.variant;
|
|
17607
|
-
var previousIndex =
|
|
17629
|
+
var previousIndex = React__default.useRef(0);
|
|
17608
17630
|
var translateXAnims = useAnimatedValueArray(Array.from({
|
|
17609
17631
|
length: tabsLength
|
|
17610
17632
|
}).map(function () {
|
|
@@ -17627,7 +17649,7 @@ var useInitUnderlinedAnimation = function useInitUnderlinedAnimation(_ref) {
|
|
|
17627
17649
|
outputRange: [0, 1]
|
|
17628
17650
|
});
|
|
17629
17651
|
});
|
|
17630
|
-
|
|
17652
|
+
React__default.useEffect(function () {
|
|
17631
17653
|
if (variant === 'underlined' && selectedIndex !== undefined && previousIndex.current !== selectedIndex) {
|
|
17632
17654
|
// Prepare for translateX into the right position.
|
|
17633
17655
|
if (selectedIndex > previousIndex.current) {
|
|
@@ -17652,7 +17674,7 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
17652
17674
|
color = _ref.color,
|
|
17653
17675
|
active = _ref.active;
|
|
17654
17676
|
if (isHeroIcon(item)) {
|
|
17655
|
-
return /*#__PURE__*/
|
|
17677
|
+
return /*#__PURE__*/React__default.createElement(Icon, {
|
|
17656
17678
|
icon: item,
|
|
17657
17679
|
testID: "hero-icon-".concat(item),
|
|
17658
17680
|
size: "small",
|
|
@@ -17662,7 +17684,7 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
17662
17684
|
});
|
|
17663
17685
|
}
|
|
17664
17686
|
if (typeof item === 'string') {
|
|
17665
|
-
return /*#__PURE__*/
|
|
17687
|
+
return /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
17666
17688
|
variant: active ? 'regular-bold' : 'regular',
|
|
17667
17689
|
numberOfLines: 1,
|
|
17668
17690
|
style: {
|
|
@@ -17690,7 +17712,7 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17690
17712
|
_ref2$variant = _ref2.variant,
|
|
17691
17713
|
variant = _ref2$variant === void 0 ? 'highlighted' : _ref2$variant;
|
|
17692
17714
|
var theme = useTheme$1();
|
|
17693
|
-
var flatListRef =
|
|
17715
|
+
var flatListRef = React__default.useRef(null);
|
|
17694
17716
|
// Init underlined animation data
|
|
17695
17717
|
var _useInitUnderlinedAni = useInitUnderlinedAnimation({
|
|
17696
17718
|
tabsLength: tabs.length,
|
|
@@ -17706,7 +17728,7 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17706
17728
|
variant: variant
|
|
17707
17729
|
}),
|
|
17708
17730
|
tabsAnims = _useInitHighlightedAn.tabsAnims;
|
|
17709
|
-
|
|
17731
|
+
React__default.useEffect(function () {
|
|
17710
17732
|
if (selectedIndex !== undefined && selectedIndex !== -1) {
|
|
17711
17733
|
var _flatListRef$current;
|
|
17712
17734
|
(_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 || _flatListRef$current.scrollToIndex({
|
|
@@ -17717,10 +17739,10 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17717
17739
|
return function () {
|
|
17718
17740
|
};
|
|
17719
17741
|
}, [selectedIndex]);
|
|
17720
|
-
return /*#__PURE__*/
|
|
17742
|
+
return /*#__PURE__*/React__default.createElement(HeaderTabWrapper, {
|
|
17721
17743
|
themeInsets: insets,
|
|
17722
17744
|
style: barStyle
|
|
17723
|
-
}, /*#__PURE__*/
|
|
17745
|
+
}, /*#__PURE__*/React__default.createElement(FlatList, {
|
|
17724
17746
|
testID: testID,
|
|
17725
17747
|
ref: flatListRef,
|
|
17726
17748
|
horizontal: true,
|
|
@@ -17769,15 +17791,15 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17769
17791
|
color: active ? theme.__hd__.tabs.colors.active : theme.__hd__.tabs.colors.inactive,
|
|
17770
17792
|
active: active
|
|
17771
17793
|
});
|
|
17772
|
-
return /*#__PURE__*/
|
|
17794
|
+
return /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
17773
17795
|
key: key,
|
|
17774
17796
|
onPress: function onPress() {
|
|
17775
17797
|
onTabPress(key);
|
|
17776
17798
|
},
|
|
17777
17799
|
testID: tabItemTestID
|
|
17778
|
-
}, /*#__PURE__*/
|
|
17800
|
+
}, /*#__PURE__*/React__default.createElement(HeaderTabItem, {
|
|
17779
17801
|
isFirstItem: index === 0
|
|
17780
|
-
}, variant === 'highlighted' && /*#__PURE__*/
|
|
17802
|
+
}, variant === 'highlighted' && /*#__PURE__*/React__default.createElement(HeaderTabItemOutlineWrapper, null, /*#__PURE__*/React__default.createElement(HeaderTabItemOutline, {
|
|
17781
17803
|
themeActive: active,
|
|
17782
17804
|
style: {
|
|
17783
17805
|
flex: 1,
|
|
@@ -17785,10 +17807,10 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17785
17807
|
scaleX: outlineScale
|
|
17786
17808
|
}]
|
|
17787
17809
|
}
|
|
17788
|
-
})), /*#__PURE__*/
|
|
17810
|
+
})), /*#__PURE__*/React__default.createElement(HeaderTabItemWrapper, null, /*#__PURE__*/React__default.createElement(TabWithBadge, {
|
|
17789
17811
|
config: badge,
|
|
17790
17812
|
tabItem: tabItem
|
|
17791
|
-
})), variant === 'underlined' && /*#__PURE__*/
|
|
17813
|
+
})), variant === 'underlined' && /*#__PURE__*/React__default.createElement(HeaderTabItemIndicator, {
|
|
17792
17814
|
style: {
|
|
17793
17815
|
opacity: underlinedOpacity[index],
|
|
17794
17816
|
transform: [{
|
|
@@ -17800,11 +17822,11 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17800
17822
|
}));
|
|
17801
17823
|
};
|
|
17802
17824
|
|
|
17803
|
-
var TabContext = /*#__PURE__*/
|
|
17804
|
-
var ScreenContext = /*#__PURE__*/
|
|
17825
|
+
var TabContext = /*#__PURE__*/React__default.createContext(null);
|
|
17826
|
+
var ScreenContext = /*#__PURE__*/React__default.createContext(null);
|
|
17805
17827
|
var useIsFocused = function useIsFocused() {
|
|
17806
|
-
var context =
|
|
17807
|
-
var key =
|
|
17828
|
+
var context = React__default.useContext(TabContext);
|
|
17829
|
+
var key = React__default.useContext(ScreenContext);
|
|
17808
17830
|
if (!context || !key) {
|
|
17809
17831
|
return;
|
|
17810
17832
|
}
|
|
@@ -17827,14 +17849,14 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17827
17849
|
componentTestID = _ref.testID,
|
|
17828
17850
|
_ref$variant = _ref.variant,
|
|
17829
17851
|
variant = _ref$variant === void 0 ? 'highlighted' : _ref$variant;
|
|
17830
|
-
var pagerViewRef =
|
|
17852
|
+
var pagerViewRef = React__default.useRef(null);
|
|
17831
17853
|
var insets = useSafeAreaInsets();
|
|
17832
17854
|
var selectedTabIndex = tabs.findIndex(function (item) {
|
|
17833
17855
|
return item.key === selectedTabKey;
|
|
17834
17856
|
});
|
|
17835
17857
|
// Used as a flag to prevent calling onTabPress on initial render
|
|
17836
17858
|
var hasScrolled = useRef(false);
|
|
17837
|
-
|
|
17859
|
+
React__default.useEffect(function () {
|
|
17838
17860
|
var timeoutHandle;
|
|
17839
17861
|
if (selectedTabIndex !== -1) {
|
|
17840
17862
|
// If the selected tab is changed too quickly, the setPage is crashed and not work anymore
|
|
@@ -17851,17 +17873,17 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17851
17873
|
}
|
|
17852
17874
|
};
|
|
17853
17875
|
}, [selectedTabIndex, pagerViewRef]);
|
|
17854
|
-
var tabContextProviderValue =
|
|
17876
|
+
var tabContextProviderValue = React__default.useMemo(function () {
|
|
17855
17877
|
return {
|
|
17856
17878
|
selectedTabKey: selectedTabKey
|
|
17857
17879
|
};
|
|
17858
17880
|
}, [selectedTabKey]);
|
|
17859
|
-
return /*#__PURE__*/
|
|
17881
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
17860
17882
|
value: tabContextProviderValue
|
|
17861
|
-
}, /*#__PURE__*/
|
|
17883
|
+
}, /*#__PURE__*/React__default.createElement(TabContainer, {
|
|
17862
17884
|
style: containerStyle,
|
|
17863
17885
|
testID: componentTestID
|
|
17864
|
-
}, /*#__PURE__*/
|
|
17886
|
+
}, /*#__PURE__*/React__default.createElement(ScrollableTabHeader, {
|
|
17865
17887
|
tabs: tabs,
|
|
17866
17888
|
selectedIndex: selectedTabIndex,
|
|
17867
17889
|
onTabPress: onTabPress,
|
|
@@ -17869,7 +17891,7 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17869
17891
|
insets: insets,
|
|
17870
17892
|
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
|
|
17871
17893
|
variant: variant
|
|
17872
|
-
}), /*#__PURE__*/
|
|
17894
|
+
}), /*#__PURE__*/React__default.createElement(ContentWrapper, {
|
|
17873
17895
|
initialPage: selectedTabIndex,
|
|
17874
17896
|
ref: pagerViewRef,
|
|
17875
17897
|
onPageScrollStateChanged: function onPageScrollStateChanged(e) {
|
|
@@ -17891,10 +17913,10 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17891
17913
|
var key = tab.key,
|
|
17892
17914
|
component = tab.component,
|
|
17893
17915
|
testID = tab.testID;
|
|
17894
|
-
return /*#__PURE__*/
|
|
17916
|
+
return /*#__PURE__*/React__default.createElement(ScreenContext.Provider, {
|
|
17895
17917
|
value: key,
|
|
17896
17918
|
key: key
|
|
17897
|
-
}, /*#__PURE__*/
|
|
17919
|
+
}, /*#__PURE__*/React__default.createElement(SceneView, {
|
|
17898
17920
|
testID: testID,
|
|
17899
17921
|
index: index,
|
|
17900
17922
|
selectedIndex: selectedTabIndex,
|
|
@@ -17909,7 +17931,7 @@ var getTabItem = function getTabItem(_ref) {
|
|
|
17909
17931
|
color = _ref.color,
|
|
17910
17932
|
active = _ref.active;
|
|
17911
17933
|
if (typeof item === 'string') {
|
|
17912
|
-
return /*#__PURE__*/
|
|
17934
|
+
return /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
17913
17935
|
variant: active ? 'small-bold' : 'small',
|
|
17914
17936
|
numberOfLines: 1,
|
|
17915
17937
|
style: {
|
|
@@ -17936,13 +17958,13 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17936
17958
|
componentTestID = _ref2.testID;
|
|
17937
17959
|
var theme = useTheme$1();
|
|
17938
17960
|
var insets = useSafeAreaInsets();
|
|
17939
|
-
var pagerViewRef =
|
|
17961
|
+
var pagerViewRef = React__default.useRef(null);
|
|
17940
17962
|
var selectedTabIndex = tabs.findIndex(function (item) {
|
|
17941
17963
|
return item.key === selectedTabKey;
|
|
17942
17964
|
});
|
|
17943
|
-
var scrollOffsetAnimatedValue =
|
|
17944
|
-
var positionAnimatedValue =
|
|
17945
|
-
var _React$useState =
|
|
17965
|
+
var scrollOffsetAnimatedValue = React__default.useRef(new Animated.Value(0)).current;
|
|
17966
|
+
var positionAnimatedValue = React__default.useRef(new Animated.Value(0)).current;
|
|
17967
|
+
var _React$useState = React__default.useState(0),
|
|
17946
17968
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17947
17969
|
tabsWidth = _React$useState2[0],
|
|
17948
17970
|
setTabsWidth = _React$useState2[1];
|
|
@@ -17952,21 +17974,21 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17952
17974
|
(_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 || _pagerViewRef$current.setPage(selectedTabIndex);
|
|
17953
17975
|
}
|
|
17954
17976
|
}, [selectedTabIndex]);
|
|
17955
|
-
var tabContextProviderValue =
|
|
17977
|
+
var tabContextProviderValue = React__default.useMemo(function () {
|
|
17956
17978
|
return {
|
|
17957
17979
|
selectedTabKey: selectedTabKey
|
|
17958
17980
|
};
|
|
17959
17981
|
}, [selectedTabKey]);
|
|
17960
|
-
return /*#__PURE__*/
|
|
17982
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
17961
17983
|
value: tabContextProviderValue
|
|
17962
|
-
}, /*#__PURE__*/
|
|
17984
|
+
}, /*#__PURE__*/React__default.createElement(TabContainer$1, {
|
|
17963
17985
|
style: containerStyle,
|
|
17964
17986
|
testID: componentTestID
|
|
17965
|
-
}, /*#__PURE__*/
|
|
17987
|
+
}, /*#__PURE__*/React__default.createElement(HeaderTabWrapper$1, {
|
|
17966
17988
|
themeInsets: insets,
|
|
17967
17989
|
style: barStyle,
|
|
17968
17990
|
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
17969
|
-
}, /*#__PURE__*/
|
|
17991
|
+
}, /*#__PURE__*/React__default.createElement(View, null, /*#__PURE__*/React__default.createElement(HeaderTab, {
|
|
17970
17992
|
onLayout: function onLayout(e) {
|
|
17971
17993
|
var width = e.nativeEvent.layout.width;
|
|
17972
17994
|
if (tabsWidth !== width) {
|
|
@@ -17986,22 +18008,22 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17986
18008
|
color: theme.__hd__.tabs.colors.text,
|
|
17987
18009
|
active: active
|
|
17988
18010
|
});
|
|
17989
|
-
return /*#__PURE__*/
|
|
18011
|
+
return /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
17990
18012
|
key: key,
|
|
17991
18013
|
onPress: function onPress() {
|
|
17992
18014
|
onTabPress(key);
|
|
17993
18015
|
},
|
|
17994
18016
|
testID: testID
|
|
17995
|
-
}, /*#__PURE__*/
|
|
18017
|
+
}, /*#__PURE__*/React__default.createElement(HeaderTabItem$1, null, /*#__PURE__*/React__default.createElement(TabWithBadge, {
|
|
17996
18018
|
config: badge,
|
|
17997
18019
|
tabItem: tabItem
|
|
17998
18020
|
})));
|
|
17999
|
-
})), /*#__PURE__*/
|
|
18021
|
+
})), /*#__PURE__*/React__default.createElement(ActiveTabIndicator, {
|
|
18000
18022
|
positionAnimatedValue: positionAnimatedValue,
|
|
18001
18023
|
scrollOffsetAnimatedValue: scrollOffsetAnimatedValue,
|
|
18002
18024
|
tabsLength: tabs.length,
|
|
18003
18025
|
tabsWidth: tabsWidth
|
|
18004
|
-
}))), /*#__PURE__*/
|
|
18026
|
+
}))), /*#__PURE__*/React__default.createElement(ContentWrapper$1, {
|
|
18005
18027
|
initialPage: selectedTabIndex,
|
|
18006
18028
|
ref: pagerViewRef,
|
|
18007
18029
|
onPageSelected: function onPageSelected(e) {
|
|
@@ -18024,10 +18046,10 @@ var Tabs = function Tabs(_ref2) {
|
|
|
18024
18046
|
var key = tab.key,
|
|
18025
18047
|
component = tab.component,
|
|
18026
18048
|
testID = tab.testID;
|
|
18027
|
-
return /*#__PURE__*/
|
|
18049
|
+
return /*#__PURE__*/React__default.createElement(ScreenContext.Provider, {
|
|
18028
18050
|
value: key,
|
|
18029
18051
|
key: key
|
|
18030
|
-
}, /*#__PURE__*/
|
|
18052
|
+
}, /*#__PURE__*/React__default.createElement(SceneView, {
|
|
18031
18053
|
testID: testID,
|
|
18032
18054
|
key: key,
|
|
18033
18055
|
index: index,
|
|
@@ -18074,11 +18096,11 @@ var Tag = function Tag(_ref) {
|
|
|
18074
18096
|
testID = _ref.testID,
|
|
18075
18097
|
nativeProps = _objectWithoutProperties(_ref, _excluded$5);
|
|
18076
18098
|
useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
|
|
18077
|
-
return /*#__PURE__*/
|
|
18099
|
+
return /*#__PURE__*/React__default.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
18078
18100
|
themeIntent: intent,
|
|
18079
18101
|
style: style,
|
|
18080
18102
|
testID: testID
|
|
18081
|
-
}), typeof content === 'string' ? /*#__PURE__*/
|
|
18103
|
+
}), typeof content === 'string' ? /*#__PURE__*/React__default.createElement(StyledText, {
|
|
18082
18104
|
themeIntent: intent,
|
|
18083
18105
|
fontWeight: "semi-bold"
|
|
18084
18106
|
}, content) : content);
|
|
@@ -18107,15 +18129,15 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
18107
18129
|
var is12Hour = displayFormat.includes('hh');
|
|
18108
18130
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
18109
18131
|
var pickerInitValue = value || new Date();
|
|
18110
|
-
return /*#__PURE__*/
|
|
18132
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
18111
18133
|
onPress: function onPress() {
|
|
18112
18134
|
return setOpen(true);
|
|
18113
18135
|
},
|
|
18114
18136
|
disabled: disabled
|
|
18115
|
-
}, /*#__PURE__*/
|
|
18137
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
18116
18138
|
pointerEvents: "none",
|
|
18117
18139
|
testID: "timePickerInputAndroid"
|
|
18118
|
-
}, /*#__PURE__*/
|
|
18140
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
18119
18141
|
label: label,
|
|
18120
18142
|
value: displayValue,
|
|
18121
18143
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -18126,7 +18148,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
18126
18148
|
helpText: helpText,
|
|
18127
18149
|
style: style,
|
|
18128
18150
|
testID: testID
|
|
18129
|
-
})), open ? /*#__PURE__*/
|
|
18151
|
+
})), open ? /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
18130
18152
|
testID: "timePickerAndroid",
|
|
18131
18153
|
mode: "time",
|
|
18132
18154
|
value: pickerInitValue,
|
|
@@ -18176,15 +18198,15 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18176
18198
|
var is12Hour = displayFormat.includes('hh');
|
|
18177
18199
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
18178
18200
|
var theme = useTheme();
|
|
18179
|
-
return /*#__PURE__*/
|
|
18201
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
18180
18202
|
onPress: function onPress() {
|
|
18181
18203
|
return setOpen(true);
|
|
18182
18204
|
},
|
|
18183
18205
|
disabled: disabled
|
|
18184
|
-
}, /*#__PURE__*/
|
|
18206
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
18185
18207
|
pointerEvents: "none",
|
|
18186
18208
|
testID: "timePickerInputIOS"
|
|
18187
|
-
}, /*#__PURE__*/
|
|
18209
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
18188
18210
|
label: label,
|
|
18189
18211
|
value: displayValue,
|
|
18190
18212
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -18195,13 +18217,13 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18195
18217
|
helpText: helpText,
|
|
18196
18218
|
testID: testID,
|
|
18197
18219
|
style: style
|
|
18198
|
-
})), /*#__PURE__*/
|
|
18220
|
+
})), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
|
|
18199
18221
|
open: open,
|
|
18200
18222
|
onRequestClose: function onRequestClose() {
|
|
18201
18223
|
return setOpen(false);
|
|
18202
18224
|
},
|
|
18203
18225
|
header: label,
|
|
18204
|
-
footer: /*#__PURE__*/
|
|
18226
|
+
footer: /*#__PURE__*/React__default.createElement(CompoundButton, {
|
|
18205
18227
|
variant: "text",
|
|
18206
18228
|
text: confirmLabel,
|
|
18207
18229
|
onPress: function onPress() {
|
|
@@ -18211,7 +18233,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18211
18233
|
setOpen(false);
|
|
18212
18234
|
}
|
|
18213
18235
|
})
|
|
18214
|
-
}, /*#__PURE__*/
|
|
18236
|
+
}, /*#__PURE__*/React__default.createElement(StyledPickerWrapper, null, /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
18215
18237
|
testID: "timePickerIOS",
|
|
18216
18238
|
value: selectingDate,
|
|
18217
18239
|
mode: "time"
|
|
@@ -18234,9 +18256,9 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18234
18256
|
|
|
18235
18257
|
var TimePicker = function TimePicker(props) {
|
|
18236
18258
|
if (Platform.OS === 'ios') {
|
|
18237
|
-
return /*#__PURE__*/
|
|
18259
|
+
return /*#__PURE__*/React__default.createElement(TimePickerIOS, props);
|
|
18238
18260
|
}
|
|
18239
|
-
return /*#__PURE__*/
|
|
18261
|
+
return /*#__PURE__*/React__default.createElement(TimePickerAndroid, props);
|
|
18240
18262
|
};
|
|
18241
18263
|
|
|
18242
18264
|
var ToolbarWrapper = index$9(View)(function (_ref) {
|
|
@@ -18304,12 +18326,12 @@ var IconItem = function IconItem(_ref) {
|
|
|
18304
18326
|
intent = _ref.intent,
|
|
18305
18327
|
disabled = _ref.disabled,
|
|
18306
18328
|
label = _ref.label;
|
|
18307
|
-
return /*#__PURE__*/
|
|
18329
|
+
return /*#__PURE__*/React__default.createElement(IconButtonWrapper, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
18308
18330
|
icon: icon,
|
|
18309
18331
|
size: "medium",
|
|
18310
18332
|
intent: disabled ? 'disabled-text' : intent,
|
|
18311
18333
|
testID: "toolbar-item-icon-".concat(icon)
|
|
18312
|
-
}), label ? /*#__PURE__*/
|
|
18334
|
+
}), label ? /*#__PURE__*/React__default.createElement(IconButtonLabel, {
|
|
18313
18335
|
variant: "regular-bold",
|
|
18314
18336
|
intent: disabled ? 'subdued' : intent,
|
|
18315
18337
|
allowFontScaling: false,
|
|
@@ -18324,7 +18346,7 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
|
|
|
18324
18346
|
_ref2$disabled = _ref2.disabled,
|
|
18325
18347
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled;
|
|
18326
18348
|
if (icon) {
|
|
18327
|
-
return /*#__PURE__*/
|
|
18349
|
+
return /*#__PURE__*/React__default.createElement(IconItem, {
|
|
18328
18350
|
icon: icon,
|
|
18329
18351
|
intent: intent,
|
|
18330
18352
|
disabled: disabled,
|
|
@@ -18332,7 +18354,7 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
|
|
|
18332
18354
|
});
|
|
18333
18355
|
}
|
|
18334
18356
|
if (label) {
|
|
18335
|
-
return /*#__PURE__*/
|
|
18357
|
+
return /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
18336
18358
|
variant: "regular-bold",
|
|
18337
18359
|
intent: disabled ? 'disabled' : intent,
|
|
18338
18360
|
allowFontScaling: false,
|
|
@@ -18350,11 +18372,11 @@ var ToolbarItem = function ToolbarItem(_ref3) {
|
|
|
18350
18372
|
_ref3$disabled = _ref3.disabled,
|
|
18351
18373
|
disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
|
|
18352
18374
|
style = _ref3.style;
|
|
18353
|
-
return /*#__PURE__*/
|
|
18375
|
+
return /*#__PURE__*/React__default.createElement(ToolbarItemWrapper, {
|
|
18354
18376
|
onPress: onPress,
|
|
18355
18377
|
disabled: disabled,
|
|
18356
18378
|
style: style
|
|
18357
|
-
}, /*#__PURE__*/
|
|
18379
|
+
}, /*#__PURE__*/React__default.createElement(ToolbarItemContent, {
|
|
18358
18380
|
icon: icon,
|
|
18359
18381
|
label: label,
|
|
18360
18382
|
intent: intent,
|
|
@@ -18368,7 +18390,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
18368
18390
|
_ref$items = _ref.items,
|
|
18369
18391
|
items = _ref$items === void 0 ? [] : _ref$items;
|
|
18370
18392
|
useDeprecation("Toolbar's align prop is deprecated", align !== 'right');
|
|
18371
|
-
return /*#__PURE__*/
|
|
18393
|
+
return /*#__PURE__*/React__default.createElement(ToolbarGroupWrapper, {
|
|
18372
18394
|
align: align
|
|
18373
18395
|
}, items.map(function (_ref2) {
|
|
18374
18396
|
var label = _ref2.label,
|
|
@@ -18376,7 +18398,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
18376
18398
|
onPress = _ref2.onPress,
|
|
18377
18399
|
disabled = _ref2.disabled,
|
|
18378
18400
|
intent = _ref2.intent;
|
|
18379
|
-
return /*#__PURE__*/
|
|
18401
|
+
return /*#__PURE__*/React__default.createElement(ToolbarItem, {
|
|
18380
18402
|
key: "".concat(label, "-").concat(icon),
|
|
18381
18403
|
label: label,
|
|
18382
18404
|
icon: icon,
|
|
@@ -18391,7 +18413,7 @@ var _excluded$4 = ["children"];
|
|
|
18391
18413
|
var Toolbar = function Toolbar(_ref) {
|
|
18392
18414
|
var children = _ref.children,
|
|
18393
18415
|
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
18394
|
-
return /*#__PURE__*/
|
|
18416
|
+
return /*#__PURE__*/React__default.createElement(ToolbarWrapper, rest, children);
|
|
18395
18417
|
};
|
|
18396
18418
|
var index$1 = Object.assign(Toolbar, {
|
|
18397
18419
|
Group: ToolbarGroup
|
|
@@ -18436,21 +18458,21 @@ var Rate = function Rate(_ref) {
|
|
|
18436
18458
|
useNativeDriver: Platform.OS !== 'web'
|
|
18437
18459
|
}).start();
|
|
18438
18460
|
}, [value, animatedValue]);
|
|
18439
|
-
return /*#__PURE__*/
|
|
18440
|
-
return /*#__PURE__*/
|
|
18461
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper, otherProps, options.length > 0 && options.map(function (item, index) {
|
|
18462
|
+
return /*#__PURE__*/React__default.createElement(Pressable, {
|
|
18441
18463
|
key: item.value,
|
|
18442
18464
|
disabled: disabled || readonly,
|
|
18443
18465
|
onPress: function onPress() {
|
|
18444
18466
|
return onChange === null || onChange === void 0 ? void 0 : onChange(item.value);
|
|
18445
18467
|
},
|
|
18446
18468
|
testID: item.value.toString()
|
|
18447
|
-
}, /*#__PURE__*/
|
|
18469
|
+
}, /*#__PURE__*/React__default.createElement(StyledIconWrapper, {
|
|
18448
18470
|
style: valueIndex === index && {
|
|
18449
18471
|
transform: [{
|
|
18450
18472
|
scale: scale
|
|
18451
18473
|
}]
|
|
18452
18474
|
}
|
|
18453
|
-
}, /*#__PURE__*/
|
|
18475
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
18454
18476
|
icon: index <= valueIndex ? 'star' : 'star-outlined',
|
|
18455
18477
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
18456
18478
|
})));
|
|
@@ -18460,7 +18482,7 @@ var Rate = function Rate(_ref) {
|
|
|
18460
18482
|
var RefreshControl = function RefreshControl(_ref) {
|
|
18461
18483
|
var props = _extends$1({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
18462
18484
|
var theme = useTheme();
|
|
18463
|
-
return /*#__PURE__*/
|
|
18485
|
+
return /*#__PURE__*/React__default.createElement(RefreshControl$1, _extends$1({}, props, {
|
|
18464
18486
|
colors: [theme.__hd__.refreshControl.colors.indicator],
|
|
18465
18487
|
tintColor: theme.__hd__.refreshControl.colors.indicator
|
|
18466
18488
|
}));
|
|
@@ -18529,11 +18551,11 @@ var ToolbarButton = function ToolbarButton(_ref) {
|
|
|
18529
18551
|
onPress = _ref.onPress,
|
|
18530
18552
|
testID = _ref.testID,
|
|
18531
18553
|
selected = _ref.selected;
|
|
18532
|
-
return /*#__PURE__*/
|
|
18554
|
+
return /*#__PURE__*/React__default.createElement(StyledToolbarButton, {
|
|
18533
18555
|
selected: selected,
|
|
18534
18556
|
onPress: onPress,
|
|
18535
18557
|
testID: testID
|
|
18536
|
-
}, /*#__PURE__*/
|
|
18558
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
18537
18559
|
size: "small",
|
|
18538
18560
|
icon: icon
|
|
18539
18561
|
}));
|
|
@@ -18631,13 +18653,13 @@ var EditorToolbar = function EditorToolbar(_ref2) {
|
|
|
18631
18653
|
var toolbarButtons = useMemo(function () {
|
|
18632
18654
|
return toolbarButtonArray.map(function (button) {
|
|
18633
18655
|
if (button.buttonName === '|') {
|
|
18634
|
-
return /*#__PURE__*/
|
|
18656
|
+
return /*#__PURE__*/React__default.createElement(StyledSeparator, {
|
|
18635
18657
|
key: button.id
|
|
18636
18658
|
});
|
|
18637
18659
|
}
|
|
18638
18660
|
var config = buttonConfigs[button.buttonName];
|
|
18639
18661
|
if (config) {
|
|
18640
|
-
return /*#__PURE__*/
|
|
18662
|
+
return /*#__PURE__*/React__default.createElement(ToolbarButton, {
|
|
18641
18663
|
key: button.id,
|
|
18642
18664
|
testID: config.icon,
|
|
18643
18665
|
icon: config.icon,
|
|
@@ -18652,7 +18674,7 @@ var EditorToolbar = function EditorToolbar(_ref2) {
|
|
|
18652
18674
|
});
|
|
18653
18675
|
}, [toolbarButtonArray]);
|
|
18654
18676
|
if (show) {
|
|
18655
|
-
return /*#__PURE__*/
|
|
18677
|
+
return /*#__PURE__*/React__default.createElement(StyledToolbar, {
|
|
18656
18678
|
testID: testID
|
|
18657
18679
|
}, toolbarButtons);
|
|
18658
18680
|
}
|
|
@@ -18691,7 +18713,7 @@ var MentionList = function MentionList(_ref) {
|
|
|
18691
18713
|
if (isEmptyString(search)) {
|
|
18692
18714
|
return null;
|
|
18693
18715
|
}
|
|
18694
|
-
return /*#__PURE__*/
|
|
18716
|
+
return /*#__PURE__*/React__default.createElement(View, null, render(search, function (id, name) {
|
|
18695
18717
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
18696
18718
|
highlighted: false
|
|
18697
18719
|
};
|
|
@@ -18980,7 +19002,7 @@ var scheduler_production_min = {};
|
|
|
18980
19002
|
scheduler.exports = scheduler_production_min;
|
|
18981
19003
|
}
|
|
18982
19004
|
|
|
18983
|
-
var aa =
|
|
19005
|
+
var aa = React__default,
|
|
18984
19006
|
ca = scheduler.exports;
|
|
18985
19007
|
function p(a) {
|
|
18986
19008
|
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
@@ -26123,7 +26145,7 @@ function checkDCE() {
|
|
|
26123
26145
|
|
|
26124
26146
|
(function (module, exports) {
|
|
26125
26147
|
!function (e, t) {
|
|
26126
|
-
module.exports = t(
|
|
26148
|
+
module.exports = t(React__default, reactDom.exports);
|
|
26127
26149
|
}(window, function (e, t) {
|
|
26128
26150
|
return function (e) {
|
|
26129
26151
|
var t = {};
|
|
@@ -35429,14 +35451,14 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35429
35451
|
postMessage(webview.current, message);
|
|
35430
35452
|
}
|
|
35431
35453
|
};
|
|
35432
|
-
var _React$useState =
|
|
35454
|
+
var _React$useState = React__default.useState({
|
|
35433
35455
|
height: 0,
|
|
35434
35456
|
width: 0
|
|
35435
35457
|
}),
|
|
35436
35458
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
35437
35459
|
inputSize = _React$useState2[0],
|
|
35438
35460
|
setInputSize = _React$useState2[1];
|
|
35439
|
-
var _React$useState3 =
|
|
35461
|
+
var _React$useState3 = React__default.useState(0),
|
|
35440
35462
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
35441
35463
|
labelWidth = _React$useState4[0],
|
|
35442
35464
|
setLabelWidth = _React$useState4[1];
|
|
@@ -35551,9 +35573,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35551
35573
|
break;
|
|
35552
35574
|
}
|
|
35553
35575
|
}, []);
|
|
35554
|
-
return /*#__PURE__*/
|
|
35576
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$4, {
|
|
35555
35577
|
testID: testID
|
|
35556
|
-
}, /*#__PURE__*/
|
|
35578
|
+
}, /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
|
|
35557
35579
|
themeVariant: "text",
|
|
35558
35580
|
pointerEvents: "none",
|
|
35559
35581
|
testID: "input-label-container",
|
|
@@ -35577,28 +35599,28 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35577
35599
|
})
|
|
35578
35600
|
}]
|
|
35579
35601
|
}]
|
|
35580
|
-
}, required && /*#__PURE__*/
|
|
35602
|
+
}, required && /*#__PURE__*/React__default.createElement(StyledAsteriskLabelInsideTextInput, {
|
|
35581
35603
|
style: {
|
|
35582
35604
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
35583
35605
|
},
|
|
35584
35606
|
themeState: state
|
|
35585
|
-
}, "*"), !!label && /*#__PURE__*/
|
|
35607
|
+
}, "*"), !!label && /*#__PURE__*/React__default.createElement(StyledLabelInsideTextInput, {
|
|
35586
35608
|
style: {
|
|
35587
35609
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
35588
35610
|
},
|
|
35589
35611
|
testID: "input-label",
|
|
35590
35612
|
themeState: state,
|
|
35591
35613
|
onLayout: onLabelLayout
|
|
35592
|
-
}, label)), /*#__PURE__*/
|
|
35614
|
+
}, label)), /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
|
|
35593
35615
|
onLayout: onLayout
|
|
35594
|
-
}, /*#__PURE__*/
|
|
35616
|
+
}, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
|
|
35595
35617
|
themeState: state,
|
|
35596
35618
|
themeFocused: isFocused
|
|
35597
|
-
}), /*#__PURE__*/
|
|
35619
|
+
}), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
35598
35620
|
onPress: function onPress(e) {
|
|
35599
35621
|
return e.stopPropagation();
|
|
35600
35622
|
}
|
|
35601
|
-
}, /*#__PURE__*/
|
|
35623
|
+
}, /*#__PURE__*/React__default.createElement(StyledWebView, {
|
|
35602
35624
|
ref: webview,
|
|
35603
35625
|
testID: "webview",
|
|
35604
35626
|
style: style,
|
|
@@ -35611,17 +35633,17 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35611
35633
|
hideKeyboardAccessoryView: true,
|
|
35612
35634
|
keyboardDisplayRequiresUserAction: false,
|
|
35613
35635
|
height: webviewHeight
|
|
35614
|
-
})))), /*#__PURE__*/
|
|
35636
|
+
})))), /*#__PURE__*/React__default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__default.createElement(StyledErrorAndMaxLengthContainer, null, error ? /*#__PURE__*/React__default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
35615
35637
|
testID: "input-error-icon",
|
|
35616
35638
|
icon: "circle-info",
|
|
35617
35639
|
size: "xsmall",
|
|
35618
35640
|
intent: "danger"
|
|
35619
|
-
}), /*#__PURE__*/
|
|
35641
|
+
}), /*#__PURE__*/React__default.createElement(StyledError, {
|
|
35620
35642
|
testID: "input-error-message"
|
|
35621
|
-
}, error)) : !!helpText && /*#__PURE__*/
|
|
35643
|
+
}, error)) : !!helpText && /*#__PURE__*/React__default.createElement(StyledHelperText, null, helpText))));
|
|
35622
35644
|
};
|
|
35623
35645
|
var RichTextEditorWithRef = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
35624
|
-
return /*#__PURE__*/
|
|
35646
|
+
return /*#__PURE__*/React__default.createElement(RichTextEditor, _extends$1({}, props, {
|
|
35625
35647
|
forwardedRef: ref
|
|
35626
35648
|
}));
|
|
35627
35649
|
});
|
|
@@ -35653,18 +35675,18 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35653
35675
|
contentHeight = _ref.contentHeight,
|
|
35654
35676
|
layoutHeight = _ref.layoutHeight;
|
|
35655
35677
|
var component = 'items' in fabProps ? 'ActionGroup' : 'FAB';
|
|
35656
|
-
var ref =
|
|
35657
|
-
var currentContentHeight =
|
|
35658
|
-
var currentLayoutHeight =
|
|
35678
|
+
var ref = React__default.useRef(null);
|
|
35679
|
+
var currentContentHeight = React__default.useRef(0);
|
|
35680
|
+
var currentLayoutHeight = React__default.useRef(0);
|
|
35659
35681
|
/** fabState is used to avoid calling duplicated animations. */
|
|
35660
|
-
var fabState =
|
|
35682
|
+
var fabState = React__default.useRef('show');
|
|
35661
35683
|
/** remainingScrollOffset determines whether to animate the FAB. */
|
|
35662
|
-
var remainingScrollOffset =
|
|
35684
|
+
var remainingScrollOffset = React__default.useRef(MAX_ANIMATABLE_SCROLL_DISTANCE);
|
|
35663
35685
|
/** currentScrollDirection is used to determine the scroll direction. */
|
|
35664
|
-
var currentScrollDirection =
|
|
35686
|
+
var currentScrollDirection = React__default.useRef('down');
|
|
35665
35687
|
/** lastScrollY is the scrollY from the preview scroll event. */
|
|
35666
|
-
var lastScrollY =
|
|
35667
|
-
var animateFab =
|
|
35688
|
+
var lastScrollY = React__default.useRef(0);
|
|
35689
|
+
var animateFab = React__default.useCallback(function (newState) {
|
|
35668
35690
|
if (fabState.current !== newState) {
|
|
35669
35691
|
if (newState === 'show') {
|
|
35670
35692
|
var _ref$current;
|
|
@@ -35679,7 +35701,7 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35679
35701
|
fabState.current = newState;
|
|
35680
35702
|
}
|
|
35681
35703
|
}, [component]);
|
|
35682
|
-
|
|
35704
|
+
React__default.useEffect(function () {
|
|
35683
35705
|
contentHeight.addListener(function (_ref2) {
|
|
35684
35706
|
var value = _ref2.value;
|
|
35685
35707
|
if (value > 0 && value !== currentContentHeight.current) {
|
|
@@ -35734,9 +35756,9 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35734
35756
|
layoutHeight.removeAllListeners();
|
|
35735
35757
|
};
|
|
35736
35758
|
}, [contentHeight, contentOffsetY, layoutHeight]);
|
|
35737
|
-
return component === 'FAB' ? /*#__PURE__*/
|
|
35759
|
+
return component === 'FAB' ? /*#__PURE__*/React__default.createElement(FAB, _extends$1({
|
|
35738
35760
|
ref: ref
|
|
35739
|
-
}, fabProps)) : /*#__PURE__*/
|
|
35761
|
+
}, fabProps)) : /*#__PURE__*/React__default.createElement(ActionGroup, _extends$1({
|
|
35740
35762
|
ref: ref
|
|
35741
35763
|
}, fabProps));
|
|
35742
35764
|
};
|
|
@@ -35744,14 +35766,14 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35744
35766
|
function AnimatedScroller(_ref) {
|
|
35745
35767
|
var ScrollComponent = _ref.ScrollComponent,
|
|
35746
35768
|
fabProps = _ref.fabProps;
|
|
35747
|
-
var contentOffsetY =
|
|
35748
|
-
var contentHeight =
|
|
35749
|
-
var layoutHeight =
|
|
35769
|
+
var contentOffsetY = React__default.useRef(new Animated.Value(0)).current;
|
|
35770
|
+
var contentHeight = React__default.useRef(new Animated.Value(0)).current;
|
|
35771
|
+
var layoutHeight = React__default.useRef(new Animated.Value(0)).current;
|
|
35750
35772
|
// Common props for all ScrollView, FlatList and SectionList.
|
|
35751
35773
|
var _ScrollComponent$prop = ScrollComponent.props,
|
|
35752
35774
|
onScroll = _ScrollComponent$prop.onScroll,
|
|
35753
35775
|
scrollEventThrottle = _ScrollComponent$prop.scrollEventThrottle;
|
|
35754
|
-
return /*#__PURE__*/
|
|
35776
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.cloneElement(ScrollComponent, _objectSpread2(_objectSpread2({}, ScrollComponent.props), {}, {
|
|
35755
35777
|
scrollEventThrottle: scrollEventThrottle || 100,
|
|
35756
35778
|
onScroll: Animated.event([{
|
|
35757
35779
|
nativeEvent: {
|
|
@@ -35769,7 +35791,7 @@ function AnimatedScroller(_ref) {
|
|
|
35769
35791
|
useNativeDriver: false,
|
|
35770
35792
|
listener: onScroll
|
|
35771
35793
|
})
|
|
35772
|
-
})), !!fabProps && /*#__PURE__*/
|
|
35794
|
+
})), !!fabProps && /*#__PURE__*/React__default.createElement(AnimatedFAB, {
|
|
35773
35795
|
fabProps: fabProps,
|
|
35774
35796
|
contentOffsetY: contentOffsetY,
|
|
35775
35797
|
contentHeight: contentHeight,
|
|
@@ -35781,8 +35803,8 @@ var _excluded$2 = ["fabProps"];
|
|
|
35781
35803
|
var ScrollViewWithFAB = function ScrollViewWithFAB(_ref) {
|
|
35782
35804
|
var fabProps = _ref.fabProps,
|
|
35783
35805
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
35784
|
-
return /*#__PURE__*/
|
|
35785
|
-
ScrollComponent: /*#__PURE__*/
|
|
35806
|
+
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
35807
|
+
ScrollComponent: /*#__PURE__*/React__default.createElement(ScrollView, props),
|
|
35786
35808
|
fabProps: fabProps
|
|
35787
35809
|
});
|
|
35788
35810
|
};
|
|
@@ -35791,8 +35813,8 @@ var _excluded$1 = ["fabProps"];
|
|
|
35791
35813
|
function FlatListWithFAB(_ref) {
|
|
35792
35814
|
var fabProps = _ref.fabProps,
|
|
35793
35815
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
35794
|
-
return /*#__PURE__*/
|
|
35795
|
-
ScrollComponent: /*#__PURE__*/
|
|
35816
|
+
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
35817
|
+
ScrollComponent: /*#__PURE__*/React__default.createElement(FlatList, props),
|
|
35796
35818
|
fabProps: fabProps
|
|
35797
35819
|
});
|
|
35798
35820
|
}
|
|
@@ -35801,8 +35823,8 @@ var _excluded = ["fabProps"];
|
|
|
35801
35823
|
function SectionListWithFAB(_ref) {
|
|
35802
35824
|
var fabProps = _ref.fabProps,
|
|
35803
35825
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
35804
|
-
return /*#__PURE__*/
|
|
35805
|
-
ScrollComponent: /*#__PURE__*/
|
|
35826
|
+
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
35827
|
+
ScrollComponent: /*#__PURE__*/React__default.createElement(SectionList, props),
|
|
35806
35828
|
fabProps: fabProps
|
|
35807
35829
|
});
|
|
35808
35830
|
}
|