@hero-design/rn 8.61.0 → 8.61.2
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 +825 -800
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +290 -265
- package/package.json +6 -5
- package/src/components/Button/Button.tsx +28 -16
- package/src/components/Button/__tests__/Button.spec.tsx +18 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +156 -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/TextInput/__tests__/index.spec.tsx +1 -6
- package/tsconfig.json +12 -4
- package/types/components/Button/Button.d.ts +3 -3
- 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/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', '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'];
|
|
6894
6915
|
|
|
6895
6916
|
var activate = 59000;
|
|
6896
6917
|
var adjustment = 59003;
|
|
@@ -6976,12 +6997,12 @@ var redeem = 59364;
|
|
|
6976
6997
|
var refresh = 59365;
|
|
6977
6998
|
var remove = 59366;
|
|
6978
6999
|
var restart = 59368;
|
|
6979
|
-
var shopping_basket_outlined =
|
|
6980
|
-
var strikethrough =
|
|
6981
|
-
var sync =
|
|
6982
|
-
var transfer =
|
|
6983
|
-
var unavailable =
|
|
6984
|
-
var underline =
|
|
7000
|
+
var shopping_basket_outlined = 59382;
|
|
7001
|
+
var strikethrough = 59396;
|
|
7002
|
+
var sync = 59402;
|
|
7003
|
+
var transfer = 59410;
|
|
7004
|
+
var unavailable = 59414;
|
|
7005
|
+
var underline = 59415;
|
|
6985
7006
|
var glyphMap = {
|
|
6986
7007
|
activate: activate,
|
|
6987
7008
|
"add-emoji": 59001,
|
|
@@ -7363,52 +7384,53 @@ var glyphMap = {
|
|
|
7363
7384
|
"send-outlined": 59377,
|
|
7364
7385
|
"share-1": 59378,
|
|
7365
7386
|
"share-2": 59379,
|
|
7366
|
-
"share-outlined": 59380,
|
|
7387
|
+
"share-outlined-2": 59380,
|
|
7388
|
+
"share-outlined": 59381,
|
|
7367
7389
|
shopping_basket_outlined: shopping_basket_outlined,
|
|
7368
|
-
"show-chart-outlined":
|
|
7369
|
-
"single-down-arrow":
|
|
7370
|
-
"single-left-arrow":
|
|
7371
|
-
"single-right-arrow":
|
|
7372
|
-
"single-up-arrow":
|
|
7373
|
-
"smart-match-outlined":
|
|
7374
|
-
"sparkle-outlined":
|
|
7375
|
-
"speaker-active-outlined":
|
|
7376
|
-
"speaker-outlined":
|
|
7377
|
-
"star-circle-outlined":
|
|
7378
|
-
"star-outlined":
|
|
7379
|
-
"stash-outlined":
|
|
7380
|
-
"stopwatch-outlined":
|
|
7390
|
+
"show-chart-outlined": 59383,
|
|
7391
|
+
"single-down-arrow": 59384,
|
|
7392
|
+
"single-left-arrow": 59385,
|
|
7393
|
+
"single-right-arrow": 59386,
|
|
7394
|
+
"single-up-arrow": 59387,
|
|
7395
|
+
"smart-match-outlined": 59388,
|
|
7396
|
+
"sparkle-outlined": 59389,
|
|
7397
|
+
"speaker-active-outlined": 59390,
|
|
7398
|
+
"speaker-outlined": 59391,
|
|
7399
|
+
"star-circle-outlined": 59392,
|
|
7400
|
+
"star-outlined": 59393,
|
|
7401
|
+
"stash-outlined": 59394,
|
|
7402
|
+
"stopwatch-outlined": 59395,
|
|
7381
7403
|
strikethrough: strikethrough,
|
|
7382
|
-
"styler-outlined":
|
|
7383
|
-
"suitcase-clock-outlined":
|
|
7384
|
-
"suitcase-outlined":
|
|
7385
|
-
"survey-outlined":
|
|
7386
|
-
"switch-outlined":
|
|
7404
|
+
"styler-outlined": 59397,
|
|
7405
|
+
"suitcase-clock-outlined": 59398,
|
|
7406
|
+
"suitcase-outlined": 59399,
|
|
7407
|
+
"survey-outlined": 59400,
|
|
7408
|
+
"switch-outlined": 59401,
|
|
7387
7409
|
sync: sync,
|
|
7388
|
-
"tag-outlined":
|
|
7389
|
-
"target-outlined":
|
|
7390
|
-
"tennis-outlined":
|
|
7391
|
-
"ticket-outlined":
|
|
7392
|
-
"timesheet-outlined":
|
|
7393
|
-
"timesheets-outlined":
|
|
7394
|
-
"today-outlined":
|
|
7410
|
+
"tag-outlined": 59403,
|
|
7411
|
+
"target-outlined": 59404,
|
|
7412
|
+
"tennis-outlined": 59405,
|
|
7413
|
+
"ticket-outlined": 59406,
|
|
7414
|
+
"timesheet-outlined": 59407,
|
|
7415
|
+
"timesheets-outlined": 59408,
|
|
7416
|
+
"today-outlined": 59409,
|
|
7395
7417
|
transfer: transfer,
|
|
7396
|
-
"trash-bin-outlined":
|
|
7397
|
-
"umbrela-outlined":
|
|
7398
|
-
"unavailability-outlined":
|
|
7418
|
+
"trash-bin-outlined": 59411,
|
|
7419
|
+
"umbrela-outlined": 59412,
|
|
7420
|
+
"unavailability-outlined": 59413,
|
|
7399
7421
|
unavailable: unavailable,
|
|
7400
7422
|
underline: underline,
|
|
7401
|
-
"union-outlined":
|
|
7402
|
-
"unlock-outlined":
|
|
7403
|
-
"upload-outlined":
|
|
7404
|
-
"user-circle-outlined":
|
|
7405
|
-
"user-gear-outlined":
|
|
7406
|
-
"user-outlined":
|
|
7407
|
-
"user-rectangle-outlined":
|
|
7408
|
-
"video-1-outlined":
|
|
7409
|
-
"video-2-outlined":
|
|
7410
|
-
"volunteer-outlined":
|
|
7411
|
-
"wallet-outlined":
|
|
7423
|
+
"union-outlined": 59416,
|
|
7424
|
+
"unlock-outlined": 59417,
|
|
7425
|
+
"upload-outlined": 59418,
|
|
7426
|
+
"user-circle-outlined": 59419,
|
|
7427
|
+
"user-gear-outlined": 59420,
|
|
7428
|
+
"user-outlined": 59421,
|
|
7429
|
+
"user-rectangle-outlined": 59422,
|
|
7430
|
+
"video-1-outlined": 59423,
|
|
7431
|
+
"video-2-outlined": 59424,
|
|
7432
|
+
"volunteer-outlined": 59425,
|
|
7433
|
+
"wallet-outlined": 59426
|
|
7412
7434
|
};
|
|
7413
7435
|
|
|
7414
7436
|
var HeroIcon = createIconSet(glyphMap, 'hero-icons-mobile', 'hero-icons-mobile.ttf');
|
|
@@ -7454,13 +7476,13 @@ var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
|
7454
7476
|
inputRange: [0, 1],
|
|
7455
7477
|
outputRange: ['0deg', '360deg']
|
|
7456
7478
|
});
|
|
7457
|
-
return /*#__PURE__*/
|
|
7479
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
7458
7480
|
style: [{
|
|
7459
7481
|
transform: [{
|
|
7460
7482
|
rotate: interpolatedRotateAnimation
|
|
7461
7483
|
}]
|
|
7462
7484
|
}, style]
|
|
7463
|
-
}, /*#__PURE__*/
|
|
7485
|
+
}, /*#__PURE__*/React__default.createElement(StyledHeroIcon, otherProps));
|
|
7464
7486
|
};
|
|
7465
7487
|
|
|
7466
7488
|
var Icon = function Icon(_ref) {
|
|
@@ -7498,13 +7520,13 @@ var Icon = function Icon(_ref) {
|
|
|
7498
7520
|
accessibilityViewIsModal: accessibilityViewIsModal,
|
|
7499
7521
|
accessibilityActions: accessibilityActions
|
|
7500
7522
|
};
|
|
7501
|
-
return spin ? /*#__PURE__*/
|
|
7523
|
+
return spin ? /*#__PURE__*/React__default.createElement(AnimatedIcon, _extends$1({
|
|
7502
7524
|
name: icon,
|
|
7503
7525
|
themeIntent: intent,
|
|
7504
7526
|
themeSize: size,
|
|
7505
7527
|
style: style,
|
|
7506
7528
|
testID: testID
|
|
7507
|
-
}, accessibilityProps)) : /*#__PURE__*/
|
|
7529
|
+
}, accessibilityProps)) : /*#__PURE__*/React__default.createElement(StyledHeroIcon, _extends$1({
|
|
7508
7530
|
name: icon,
|
|
7509
7531
|
themeIntent: intent,
|
|
7510
7532
|
themeSize: size,
|
|
@@ -7524,19 +7546,19 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7524
7546
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
7525
7547
|
style = _ref.style,
|
|
7526
7548
|
testID = _ref.testID;
|
|
7527
|
-
return /*#__PURE__*/
|
|
7549
|
+
return /*#__PURE__*/React__default.createElement(StyledItemWrapper$1, {
|
|
7528
7550
|
themeVariant: variant,
|
|
7529
7551
|
style: style,
|
|
7530
7552
|
testID: testID
|
|
7531
|
-
}, /*#__PURE__*/
|
|
7553
|
+
}, /*#__PURE__*/React__default.createElement(StyledHeaderWrapper$1, {
|
|
7532
7554
|
onPress: onPress
|
|
7533
|
-
}, typeof header === 'string' ? /*#__PURE__*/
|
|
7555
|
+
}, typeof header === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
7534
7556
|
variant: "regular-bold"
|
|
7535
|
-
}, header) : header, /*#__PURE__*/
|
|
7557
|
+
}, header) : header, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7536
7558
|
icon: open ? 'arrow-up' : 'arrow-down',
|
|
7537
7559
|
intent: "secondary",
|
|
7538
7560
|
size: "small"
|
|
7539
|
-
})), /*#__PURE__*/
|
|
7561
|
+
})), /*#__PURE__*/React__default.createElement(StyledCollapse, {
|
|
7540
7562
|
open: open
|
|
7541
7563
|
}, content));
|
|
7542
7564
|
};
|
|
@@ -7557,18 +7579,18 @@ var Accordion = function Accordion(_ref) {
|
|
|
7557
7579
|
_usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
|
|
7558
7580
|
_activeItemKey = _usePropsOrInternalSt2[0],
|
|
7559
7581
|
_onItemPress = _usePropsOrInternalSt2[1];
|
|
7560
|
-
return /*#__PURE__*/
|
|
7582
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$c, {
|
|
7561
7583
|
style: style,
|
|
7562
7584
|
testID: testID
|
|
7563
7585
|
}, items.map(function (_ref2, index) {
|
|
7564
7586
|
var key = _ref2.key,
|
|
7565
7587
|
props = _objectWithoutProperties(_ref2, _excluded$x);
|
|
7566
7588
|
var open = _activeItemKey === key;
|
|
7567
|
-
return /*#__PURE__*/
|
|
7589
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
7568
7590
|
key: key
|
|
7569
|
-
}, variant === 'card' && index !== 0 && /*#__PURE__*/
|
|
7591
|
+
}, variant === 'card' && index !== 0 && /*#__PURE__*/React__default.createElement(Spacer$1, {
|
|
7570
7592
|
testID: "accordion-spacer"
|
|
7571
|
-
}), /*#__PURE__*/
|
|
7593
|
+
}), /*#__PURE__*/React__default.createElement(AccordionItem, _extends$1({}, props, {
|
|
7572
7594
|
open: open,
|
|
7573
7595
|
onPress: function onPress() {
|
|
7574
7596
|
return _onItemPress(open ? defaultValue : key);
|
|
@@ -7639,9 +7661,9 @@ var getIntentIcon$1 = function getIntentIcon(intent) {
|
|
|
7639
7661
|
};
|
|
7640
7662
|
var AlertIcon = function AlertIcon(_ref) {
|
|
7641
7663
|
var icon = _ref.icon;
|
|
7642
|
-
return icon ? /*#__PURE__*/
|
|
7664
|
+
return icon ? /*#__PURE__*/React__default.createElement(IconContainer$1, {
|
|
7643
7665
|
testID: "alert-left-icon"
|
|
7644
|
-
}, /*#__PURE__*/
|
|
7666
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7645
7667
|
icon: icon,
|
|
7646
7668
|
size: "small"
|
|
7647
7669
|
})) : null;
|
|
@@ -7658,23 +7680,23 @@ var Alert = function Alert(_ref2) {
|
|
|
7658
7680
|
style = _ref2.style,
|
|
7659
7681
|
testID = _ref2.testID;
|
|
7660
7682
|
useDeprecation("Alert's notification intent is deprecated and will be removed in the next major release. Please use other intents instead.", intent === 'notification');
|
|
7661
|
-
return /*#__PURE__*/
|
|
7683
|
+
return /*#__PURE__*/React__default.createElement(Container$1, {
|
|
7662
7684
|
themeVariant: variant,
|
|
7663
7685
|
themeIntent: intent,
|
|
7664
7686
|
style: style,
|
|
7665
7687
|
testID: testID
|
|
7666
|
-
}, /*#__PURE__*/
|
|
7688
|
+
}, /*#__PURE__*/React__default.createElement(ContentContainer$1, {
|
|
7667
7689
|
showDivider: !!onClose
|
|
7668
|
-
}, icon !== null ? /*#__PURE__*/
|
|
7690
|
+
}, icon !== null ? /*#__PURE__*/React__default.createElement(AlertIcon, {
|
|
7669
7691
|
icon: icon || getIntentIcon$1(intent)
|
|
7670
|
-
}) : null, /*#__PURE__*/
|
|
7692
|
+
}) : null, /*#__PURE__*/React__default.createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
7671
7693
|
variant: "small-bold"
|
|
7672
|
-
}, title) : title, typeof content === 'string' ? /*#__PURE__*/
|
|
7694
|
+
}, title) : title, typeof content === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
7673
7695
|
variant: "small"
|
|
7674
|
-
}, content) : content)), onClose ? /*#__PURE__*/
|
|
7696
|
+
}, content) : content)), onClose ? /*#__PURE__*/React__default.createElement(CTAWrapper$1, {
|
|
7675
7697
|
onPress: onClose,
|
|
7676
7698
|
testID: "alert-close-icon"
|
|
7677
|
-
}, /*#__PURE__*/
|
|
7699
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7678
7700
|
icon: "cancel",
|
|
7679
7701
|
size: "small"
|
|
7680
7702
|
})) : null);
|
|
@@ -7722,26 +7744,26 @@ var Attachment = function Attachment(_ref) {
|
|
|
7722
7744
|
backgroundHighlighted = _ref$backgroundHighli === void 0 ? false : _ref$backgroundHighli,
|
|
7723
7745
|
style = _ref.style,
|
|
7724
7746
|
testID = _ref.testID;
|
|
7725
|
-
return /*#__PURE__*/
|
|
7747
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$6, {
|
|
7726
7748
|
testID: testID,
|
|
7727
7749
|
style: style
|
|
7728
|
-
}, /*#__PURE__*/
|
|
7750
|
+
}, /*#__PURE__*/React__default.createElement(StyledContentContainer$1, {
|
|
7729
7751
|
themeHighlighted: backgroundHighlighted
|
|
7730
|
-
}, previewElement, filename ? /*#__PURE__*/
|
|
7752
|
+
}, previewElement, filename ? /*#__PURE__*/React__default.createElement(StyledTextContainer, {
|
|
7731
7753
|
testID: "attachment-content"
|
|
7732
|
-
}, /*#__PURE__*/
|
|
7754
|
+
}, /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
7733
7755
|
variant: "small",
|
|
7734
7756
|
numberOfLines: 1
|
|
7735
|
-
}, filename)) : null), onDownload ? /*#__PURE__*/
|
|
7757
|
+
}, filename)) : null), onDownload ? /*#__PURE__*/React__default.createElement(StyledCTAWrapper, {
|
|
7736
7758
|
onPress: onDownload,
|
|
7737
7759
|
testID: "attachment-download-icon"
|
|
7738
|
-
}, /*#__PURE__*/
|
|
7760
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7739
7761
|
icon: "download-outlined",
|
|
7740
7762
|
size: "small"
|
|
7741
|
-
})) : null, onRemove ? /*#__PURE__*/
|
|
7763
|
+
})) : null, onRemove ? /*#__PURE__*/React__default.createElement(StyledCTAWrapper, {
|
|
7742
7764
|
onPress: onRemove,
|
|
7743
7765
|
testID: "attachment-remove-icon"
|
|
7744
|
-
}, /*#__PURE__*/
|
|
7766
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
7745
7767
|
icon: "trash-bin-outlined",
|
|
7746
7768
|
size: "small",
|
|
7747
7769
|
intent: "danger"
|
|
@@ -7817,16 +7839,16 @@ var Avatar = function Avatar(_ref) {
|
|
|
7817
7839
|
hasImageError = _useState2[0],
|
|
7818
7840
|
setHasImageError = _useState2[1];
|
|
7819
7841
|
if (title === undefined && source === undefined) return null;
|
|
7820
|
-
return /*#__PURE__*/
|
|
7842
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$b, {
|
|
7821
7843
|
testID: testID,
|
|
7822
7844
|
onPress: onPress,
|
|
7823
7845
|
disabled: onPress === undefined,
|
|
7824
7846
|
themeIntent: intent,
|
|
7825
7847
|
themeSize: size,
|
|
7826
7848
|
style: style
|
|
7827
|
-
}, (source === undefined || hasImageError) && /*#__PURE__*/
|
|
7849
|
+
}, (source === undefined || hasImageError) && /*#__PURE__*/React__default.createElement(StyledTextWrapper$1, null, /*#__PURE__*/React__default.createElement(StyledText$2, {
|
|
7828
7850
|
themeSize: size
|
|
7829
|
-
}, title)), source !== undefined && /*#__PURE__*/
|
|
7851
|
+
}, title)), source !== undefined && /*#__PURE__*/React__default.createElement(StyledImage, {
|
|
7830
7852
|
resizeMode: "cover",
|
|
7831
7853
|
source: source,
|
|
7832
7854
|
themeSize: size,
|
|
@@ -8071,7 +8093,7 @@ var Box = function Box(_ref) {
|
|
|
8071
8093
|
style = _ref.style,
|
|
8072
8094
|
testID = _ref.testID,
|
|
8073
8095
|
otherProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
8074
|
-
return /*#__PURE__*/
|
|
8096
|
+
return /*#__PURE__*/React__default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8075
8097
|
style: style,
|
|
8076
8098
|
testID: testID
|
|
8077
8099
|
}), children);
|
|
@@ -8170,7 +8192,7 @@ var Surplus = function Surplus(_ref) {
|
|
|
8170
8192
|
backgroundColor = _ref.backgroundColor;
|
|
8171
8193
|
if (value > 0) {
|
|
8172
8194
|
if (renderSurplus) {
|
|
8173
|
-
return /*#__PURE__*/
|
|
8195
|
+
return /*#__PURE__*/React__default.createElement(StyledSurplusContainer, {
|
|
8174
8196
|
testID: "surplus-container",
|
|
8175
8197
|
themeSize: size,
|
|
8176
8198
|
themeVariant: variant,
|
|
@@ -8180,7 +8202,7 @@ var Surplus = function Surplus(_ref) {
|
|
|
8180
8202
|
}
|
|
8181
8203
|
}, renderSurplus(value));
|
|
8182
8204
|
}
|
|
8183
|
-
return /*#__PURE__*/
|
|
8205
|
+
return /*#__PURE__*/React__default.createElement(StyledAvatar, {
|
|
8184
8206
|
testID: "surplus-container",
|
|
8185
8207
|
themeVariant: variant,
|
|
8186
8208
|
title: "+".concat(value),
|
|
@@ -8216,7 +8238,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8216
8238
|
}
|
|
8217
8239
|
return remain;
|
|
8218
8240
|
}();
|
|
8219
|
-
return /*#__PURE__*/
|
|
8241
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$a, {
|
|
8220
8242
|
themeSize: size,
|
|
8221
8243
|
themeAvatarCount: avatars.length,
|
|
8222
8244
|
themeHasSurplus: remainingAvatar > 0,
|
|
@@ -8224,7 +8246,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8224
8246
|
testID: testID,
|
|
8225
8247
|
themeVariant: variant
|
|
8226
8248
|
}, avatars.map(function (avt, index) {
|
|
8227
|
-
return /*#__PURE__*/
|
|
8249
|
+
return /*#__PURE__*/React__default.createElement(StyledAvatar, _extends$1({
|
|
8228
8250
|
themeVariant: variant
|
|
8229
8251
|
}, avt.props, {
|
|
8230
8252
|
size: size,
|
|
@@ -8233,7 +8255,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8233
8255
|
backgroundColor: colors[index % colors.length]
|
|
8234
8256
|
}
|
|
8235
8257
|
}));
|
|
8236
|
-
}), /*#__PURE__*/
|
|
8258
|
+
}), /*#__PURE__*/React__default.createElement(Surplus, {
|
|
8237
8259
|
value: remainingAvatar,
|
|
8238
8260
|
index: avatars.length,
|
|
8239
8261
|
size: size,
|
|
@@ -8294,10 +8316,10 @@ var Status = function Status(_ref) {
|
|
|
8294
8316
|
style = _ref.style,
|
|
8295
8317
|
testID = _ref.testID,
|
|
8296
8318
|
nativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
8297
|
-
var _React$useRef =
|
|
8319
|
+
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8298
8320
|
opacity = _React$useRef.current;
|
|
8299
|
-
var isFirstRendering =
|
|
8300
|
-
|
|
8321
|
+
var isFirstRendering = React__default.useRef(true);
|
|
8322
|
+
React__default.useEffect(function () {
|
|
8301
8323
|
// Do not run animation on very first rendering
|
|
8302
8324
|
if (isFirstRendering.current) {
|
|
8303
8325
|
isFirstRendering.current = false;
|
|
@@ -8309,10 +8331,10 @@ var Status = function Status(_ref) {
|
|
|
8309
8331
|
useNativeDriver: true
|
|
8310
8332
|
}).start();
|
|
8311
8333
|
}, [visible, opacity]);
|
|
8312
|
-
return /*#__PURE__*/
|
|
8334
|
+
return /*#__PURE__*/React__default.createElement(View, _extends$1({}, nativeProps, {
|
|
8313
8335
|
style: style,
|
|
8314
8336
|
testID: testID
|
|
8315
|
-
}), children, /*#__PURE__*/
|
|
8337
|
+
}), children, /*#__PURE__*/React__default.createElement(StyledStatus, {
|
|
8316
8338
|
style: {
|
|
8317
8339
|
opacity: opacity,
|
|
8318
8340
|
transform: [{
|
|
@@ -8342,10 +8364,10 @@ var Badge = function Badge(_ref) {
|
|
|
8342
8364
|
style = _ref.style,
|
|
8343
8365
|
testID = _ref.testID,
|
|
8344
8366
|
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
8345
|
-
var _React$useRef =
|
|
8367
|
+
var _React$useRef = React__default.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
8346
8368
|
opacity = _React$useRef.current;
|
|
8347
|
-
var isFirstRendering =
|
|
8348
|
-
|
|
8369
|
+
var isFirstRendering = React__default.useRef(true);
|
|
8370
|
+
React__default.useEffect(function () {
|
|
8349
8371
|
// Do not run animation on very first rendering
|
|
8350
8372
|
if (isFirstRendering.current) {
|
|
8351
8373
|
isFirstRendering.current = false;
|
|
@@ -8358,7 +8380,7 @@ var Badge = function Badge(_ref) {
|
|
|
8358
8380
|
}).start();
|
|
8359
8381
|
}, [visible, opacity]);
|
|
8360
8382
|
var content = typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
8361
|
-
return /*#__PURE__*/
|
|
8383
|
+
return /*#__PURE__*/React__default.createElement(StyledView$2, _extends$1({}, nativeProps, {
|
|
8362
8384
|
themeIntent: intent,
|
|
8363
8385
|
themePadding: getPaddingState(content),
|
|
8364
8386
|
style: [{
|
|
@@ -8371,7 +8393,7 @@ var Badge = function Badge(_ref) {
|
|
|
8371
8393
|
}]
|
|
8372
8394
|
}, style],
|
|
8373
8395
|
testID: testID
|
|
8374
|
-
}), /*#__PURE__*/
|
|
8396
|
+
}), /*#__PURE__*/React__default.createElement(StyledText$1, null, content));
|
|
8375
8397
|
};
|
|
8376
8398
|
var Badge$1 = Object.assign(Badge, {
|
|
8377
8399
|
Status: Status
|
|
@@ -8445,7 +8467,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8445
8467
|
/**
|
|
8446
8468
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
8447
8469
|
*/
|
|
8448
|
-
var _React$useState =
|
|
8470
|
+
var _React$useState = React__default.useState([selectedTabKey]),
|
|
8449
8471
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
8450
8472
|
loaded = _React$useState2[0],
|
|
8451
8473
|
setLoaded = _React$useState2[1];
|
|
@@ -8455,7 +8477,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8455
8477
|
return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
|
|
8456
8478
|
});
|
|
8457
8479
|
}
|
|
8458
|
-
return /*#__PURE__*/
|
|
8480
|
+
return /*#__PURE__*/React__default.createElement(BottomNavigationContainer, nativeProps, /*#__PURE__*/React__default.createElement(ContentWrapper$2, null, tabs.map(function (tab) {
|
|
8459
8481
|
var key = tab.key,
|
|
8460
8482
|
component = tab.component,
|
|
8461
8483
|
testID = tab.testID;
|
|
@@ -8467,7 +8489,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8467
8489
|
// Don't render a screen if we've never navigated to it
|
|
8468
8490
|
return null;
|
|
8469
8491
|
}
|
|
8470
|
-
return /*#__PURE__*/
|
|
8492
|
+
return /*#__PURE__*/React__default.createElement(BottomNavigationTab, {
|
|
8471
8493
|
key: key,
|
|
8472
8494
|
testID: testID ? "route-screen-".concat(testID) : undefined,
|
|
8473
8495
|
pointerEvents: active ? 'auto' : 'none',
|
|
@@ -8480,26 +8502,26 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8480
8502
|
isIOS ? selectedTabKey !== key : true,
|
|
8481
8503
|
themeVisibility: active
|
|
8482
8504
|
}, component);
|
|
8483
|
-
})), /*#__PURE__*/
|
|
8505
|
+
})), /*#__PURE__*/React__default.createElement(BottomBarWrapper, {
|
|
8484
8506
|
themeInsets: insets
|
|
8485
|
-
}, /*#__PURE__*/
|
|
8507
|
+
}, /*#__PURE__*/React__default.createElement(BottomBar, null, tabs.map(function (tab) {
|
|
8486
8508
|
var key = tab.key,
|
|
8487
8509
|
icon = tab.icon,
|
|
8488
8510
|
title = tab.title,
|
|
8489
8511
|
testID = tab.testID;
|
|
8490
8512
|
var active = selectedTabKey === key;
|
|
8491
8513
|
var inactiveIcon = getInactiveIcon(icon);
|
|
8492
|
-
return /*#__PURE__*/
|
|
8514
|
+
return /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
8493
8515
|
key: key,
|
|
8494
8516
|
onPress: function onPress() {
|
|
8495
8517
|
return onTabPress(key);
|
|
8496
8518
|
},
|
|
8497
8519
|
testID: testID
|
|
8498
|
-
}, /*#__PURE__*/
|
|
8520
|
+
}, /*#__PURE__*/React__default.createElement(BottomBarItem, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
8499
8521
|
icon: active ? icon : inactiveIcon,
|
|
8500
8522
|
intent: active ? 'primary' : 'text',
|
|
8501
8523
|
testID: "hero-icon-".concat(icon)
|
|
8502
|
-
}), !!title && /*#__PURE__*/
|
|
8524
|
+
}), !!title && /*#__PURE__*/React__default.createElement(StyledBottomBarText, {
|
|
8503
8525
|
fontWeight: "semi-bold",
|
|
8504
8526
|
intent: active ? 'primary' : 'body',
|
|
8505
8527
|
numberOfLines: 1
|
|
@@ -8533,7 +8555,7 @@ var Divider = function Divider(_ref) {
|
|
|
8533
8555
|
style = _ref.style,
|
|
8534
8556
|
testID = _ref.testID,
|
|
8535
8557
|
nativeProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
8536
|
-
return /*#__PURE__*/
|
|
8558
|
+
return /*#__PURE__*/React__default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
8537
8559
|
themeMarginHorizontal: marginHorizontal,
|
|
8538
8560
|
themeMarginVertical: marginVertical,
|
|
8539
8561
|
style: style,
|
|
@@ -8610,7 +8632,7 @@ var StyledIconWrapper$4 = index$9(View)(function (_ref5) {
|
|
|
8610
8632
|
var Footer$1 = function Footer(_ref) {
|
|
8611
8633
|
var children = _ref.children,
|
|
8612
8634
|
showDivider = _ref.showDivider;
|
|
8613
|
-
return /*#__PURE__*/
|
|
8635
|
+
return /*#__PURE__*/React__default.createElement(View, null, showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null, /*#__PURE__*/React__default.createElement(StyledFooter, null, children));
|
|
8614
8636
|
};
|
|
8615
8637
|
|
|
8616
8638
|
var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent) {
|
|
@@ -8669,14 +8691,14 @@ var renderDotComponent = function renderDotComponent(_ref) {
|
|
|
8669
8691
|
inputRange: [0.0, (index + 0.5) / (count + 1), (index + 1.0) / (count + 1), (index + 1.5) / (count + 1), 1.0],
|
|
8670
8692
|
outputRange: [1.0, 1.36, 1.56, 1.06, 1.0]
|
|
8671
8693
|
});
|
|
8672
|
-
return /*#__PURE__*/
|
|
8694
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
8673
8695
|
style: StyleSheet$1.flatten([{
|
|
8674
8696
|
transform: [{
|
|
8675
8697
|
scale: interpolatedProgressAnimation
|
|
8676
8698
|
}]
|
|
8677
8699
|
}]),
|
|
8678
8700
|
key: index
|
|
8679
|
-
}, /*#__PURE__*/
|
|
8701
|
+
}, /*#__PURE__*/React__default.createElement(AnimatedLoadingDot, {
|
|
8680
8702
|
size: size,
|
|
8681
8703
|
themeVariant: themeVariant
|
|
8682
8704
|
}));
|
|
@@ -8714,7 +8736,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
8714
8736
|
}
|
|
8715
8737
|
return null;
|
|
8716
8738
|
};
|
|
8717
|
-
return /*#__PURE__*/
|
|
8739
|
+
return /*#__PURE__*/React__default.createElement(AnimatedLoadingIndicatorWrapper, _extends$1({
|
|
8718
8740
|
testID: testID
|
|
8719
8741
|
}, nativeProps), Array.from(new Array(count), renderLoadingDot, themeVariant));
|
|
8720
8742
|
};
|
|
@@ -8904,6 +8926,9 @@ var StyledButtonIcon = index$9(Icon)(function (_ref5) {
|
|
|
8904
8926
|
}, themeStyling());
|
|
8905
8927
|
});
|
|
8906
8928
|
|
|
8929
|
+
var isIconName = function isIconName(icon) {
|
|
8930
|
+
return typeof icon === 'string';
|
|
8931
|
+
};
|
|
8907
8932
|
var FILLED_VARIANTS = {
|
|
8908
8933
|
primary: 'filled-primary',
|
|
8909
8934
|
secondary: 'filled-secondary',
|
|
@@ -8978,7 +9003,7 @@ var Button = function Button(_ref) {
|
|
|
8978
9003
|
return getUnderlayColor(theme, themeVariant);
|
|
8979
9004
|
}, [theme, themeVariant]);
|
|
8980
9005
|
useDeprecation("Button variant ".concat(deprecatedVariants.join(', '), " are deprecated."), deprecatedVariants.includes(themeVariant));
|
|
8981
|
-
return /*#__PURE__*/
|
|
9006
|
+
return /*#__PURE__*/React__default.createElement(StyledButtonContainer, {
|
|
8982
9007
|
accessibilityHint: accessibilityHint,
|
|
8983
9008
|
accessibilityLabel: accessibilityLabel,
|
|
8984
9009
|
disabled: disabled || loading,
|
|
@@ -8988,36 +9013,36 @@ var Button = function Button(_ref) {
|
|
|
8988
9013
|
themeButtonVariant: themeVariant,
|
|
8989
9014
|
style: style,
|
|
8990
9015
|
underlayColor: underlayColor
|
|
8991
|
-
}, loading === true ? /*#__PURE__*/
|
|
9016
|
+
}, loading === true ? /*#__PURE__*/React__default.createElement(LoadingIndicator, {
|
|
8992
9017
|
testID: "".concat(testID, "-loading-indicator"),
|
|
8993
9018
|
themeVariant: themeVariant
|
|
8994
|
-
}) : /*#__PURE__*/
|
|
9019
|
+
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, icon !== undefined && /*#__PURE__*/React__default.createElement(StyledButtonIconWrapper, {
|
|
8995
9020
|
themePosition: "left"
|
|
8996
|
-
}, /*#__PURE__*/
|
|
9021
|
+
}, isIconName(icon) ? /*#__PURE__*/React__default.createElement(StyledButtonIcon, {
|
|
8997
9022
|
disabled: disabled,
|
|
8998
9023
|
icon: icon,
|
|
8999
9024
|
testID: "".concat(testID, "-left-icon"),
|
|
9000
9025
|
themeButtonVariant: themeVariant
|
|
9001
|
-
})), isTextVariant(themeVariant) ? /*#__PURE__*/
|
|
9026
|
+
}) : icon), isTextVariant(themeVariant) ? /*#__PURE__*/React__default.createElement(StyledButtonTitleOfVariantText, {
|
|
9002
9027
|
variant: "regular-bold",
|
|
9003
9028
|
ellipsizeMode: "tail",
|
|
9004
9029
|
numberOfLines: 1,
|
|
9005
9030
|
disabled: disabled,
|
|
9006
9031
|
themeButtonVariant: themeVariant
|
|
9007
|
-
}, text) : /*#__PURE__*/
|
|
9032
|
+
}, text) : /*#__PURE__*/React__default.createElement(StyledButtonText, {
|
|
9008
9033
|
level: "h5",
|
|
9009
9034
|
ellipsizeMode: "tail",
|
|
9010
9035
|
numberOfLines: 1,
|
|
9011
9036
|
disabled: disabled,
|
|
9012
9037
|
themeButtonVariant: themeVariant
|
|
9013
|
-
}, text), rightIcon !== undefined && /*#__PURE__*/
|
|
9038
|
+
}, text), rightIcon !== undefined && /*#__PURE__*/React__default.createElement(StyledButtonIconWrapper, {
|
|
9014
9039
|
themePosition: "right"
|
|
9015
|
-
}, /*#__PURE__*/
|
|
9040
|
+
}, isIconName(rightIcon) ? /*#__PURE__*/React__default.createElement(StyledButtonIcon, {
|
|
9016
9041
|
disabled: disabled,
|
|
9017
9042
|
icon: rightIcon,
|
|
9018
9043
|
testID: "".concat(testID, "-right-icon"),
|
|
9019
9044
|
themeButtonVariant: themeVariant
|
|
9020
|
-
}))));
|
|
9045
|
+
}) : rightIcon)));
|
|
9021
9046
|
};
|
|
9022
9047
|
|
|
9023
9048
|
var IconButton = function IconButton(_ref) {
|
|
@@ -9029,13 +9054,13 @@ var IconButton = function IconButton(_ref) {
|
|
|
9029
9054
|
style = _ref.style,
|
|
9030
9055
|
size = _ref.size,
|
|
9031
9056
|
intent = _ref.intent;
|
|
9032
|
-
return /*#__PURE__*/
|
|
9057
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
9033
9058
|
style: style,
|
|
9034
9059
|
onPress: onPress,
|
|
9035
9060
|
testID: testID,
|
|
9036
9061
|
hitSlop: hitSlop,
|
|
9037
9062
|
disabled: disabled
|
|
9038
|
-
}, /*#__PURE__*/
|
|
9063
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
9039
9064
|
icon: icon,
|
|
9040
9065
|
size: size,
|
|
9041
9066
|
intent: disabled ? 'disabled-text' : intent
|
|
@@ -9078,16 +9103,16 @@ var UtilityButton = function UtilityButton(_ref) {
|
|
|
9078
9103
|
intent = _ref$intent === void 0 ? 'text' : _ref$intent,
|
|
9079
9104
|
style = _ref.style,
|
|
9080
9105
|
hitSlop = _ref.hitSlop;
|
|
9081
|
-
return /*#__PURE__*/
|
|
9106
|
+
return /*#__PURE__*/React__default.createElement(ButtonContainer, {
|
|
9082
9107
|
style: style,
|
|
9083
9108
|
onPress: onPress,
|
|
9084
9109
|
testID: testID,
|
|
9085
9110
|
hitSlop: hitSlop
|
|
9086
|
-
}, /*#__PURE__*/
|
|
9111
|
+
}, /*#__PURE__*/React__default.createElement(IconWrapper, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
9087
9112
|
icon: icon,
|
|
9088
9113
|
intent: intent,
|
|
9089
9114
|
testID: "".concat(testID, "-icon")
|
|
9090
|
-
})), /*#__PURE__*/
|
|
9115
|
+
})), /*#__PURE__*/React__default.createElement(ButtonText, {
|
|
9091
9116
|
intent: TEXT_INTENTS[intent]
|
|
9092
9117
|
}, text));
|
|
9093
9118
|
};
|
|
@@ -9105,19 +9130,19 @@ var Header = function Header(_ref) {
|
|
|
9105
9130
|
_ref$onRequestClose = _ref.onRequestClose,
|
|
9106
9131
|
onRequestClose = _ref$onRequestClose === void 0 ? noop$1 : _ref$onRequestClose,
|
|
9107
9132
|
showCloseButton = _ref.showCloseButton;
|
|
9108
|
-
return /*#__PURE__*/
|
|
9133
|
+
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, {
|
|
9109
9134
|
variant: "regular-bold"
|
|
9110
|
-
}, content)) : /*#__PURE__*/
|
|
9135
|
+
}, content)) : /*#__PURE__*/React__default.createElement(View, {
|
|
9111
9136
|
style: {
|
|
9112
9137
|
flex: 1
|
|
9113
9138
|
}
|
|
9114
|
-
}, content), showCloseButton ? /*#__PURE__*/
|
|
9139
|
+
}, content), showCloseButton ? /*#__PURE__*/React__default.createElement(StyledIconWrapper$4, null, /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
|
|
9115
9140
|
icon: "cancel",
|
|
9116
9141
|
onPress: onRequestClose,
|
|
9117
9142
|
intent: "text",
|
|
9118
9143
|
testID: "bottom-sheet-close-icon",
|
|
9119
9144
|
size: "xsmall"
|
|
9120
|
-
})) : null), showDivider ? /*#__PURE__*/
|
|
9145
|
+
})) : null), showDivider ? /*#__PURE__*/React__default.createElement(Divider, null) : null);
|
|
9121
9146
|
};
|
|
9122
9147
|
|
|
9123
9148
|
var _excluded$p = ["scrollEventThrottle"];
|
|
@@ -9142,7 +9167,7 @@ var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
|
9142
9167
|
setInternalShowDivider(false);
|
|
9143
9168
|
props === null || props === void 0 || (_props$onMomentumScro2 = props.onMomentumScrollEnd) === null || _props$onMomentumScro2 === void 0 || _props$onMomentumScro2.call(props, e);
|
|
9144
9169
|
}, []);
|
|
9145
|
-
return /*#__PURE__*/
|
|
9170
|
+
return /*#__PURE__*/React__default.createElement(ScrollView, _extends$1({}, props, {
|
|
9146
9171
|
onScrollBeginDrag: onScrollBeginDrag,
|
|
9147
9172
|
onMomentumScrollBegin: onMomentumScrollBegin,
|
|
9148
9173
|
onMomentumScrollEnd: onMomentumScrollEnd,
|
|
@@ -9226,22 +9251,22 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9226
9251
|
setInternalShowDivider: setInternalShowDivider
|
|
9227
9252
|
};
|
|
9228
9253
|
}, [setInternalShowDivider]);
|
|
9229
|
-
return /*#__PURE__*/
|
|
9254
|
+
return /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
9230
9255
|
visible: visible,
|
|
9231
9256
|
onRequestClose: onRequestClose,
|
|
9232
9257
|
transparent: true,
|
|
9233
9258
|
testID: testID,
|
|
9234
9259
|
onShow: onOpen
|
|
9235
|
-
}, /*#__PURE__*/
|
|
9260
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$9, {
|
|
9236
9261
|
pointerEvents: "box-none"
|
|
9237
|
-
}, /*#__PURE__*/
|
|
9262
|
+
}, /*#__PURE__*/React__default.createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
9238
9263
|
behavior: Platform.OS === 'ios' ? 'padding' : 'height'
|
|
9239
|
-
}, keyboardAvoidingViewProps), /*#__PURE__*/
|
|
9264
|
+
}, keyboardAvoidingViewProps), /*#__PURE__*/React__default.createElement(StyledBackdrop$2, {
|
|
9240
9265
|
style: {
|
|
9241
9266
|
opacity: interpolateOpacity
|
|
9242
9267
|
},
|
|
9243
9268
|
onPress: onRequestClose
|
|
9244
|
-
}), /*#__PURE__*/
|
|
9269
|
+
}), /*#__PURE__*/React__default.createElement(StyledBottomSheet, {
|
|
9245
9270
|
style: [style, {
|
|
9246
9271
|
transform: [{
|
|
9247
9272
|
scaleY: height > 0 ? 1 : 0
|
|
@@ -9249,14 +9274,14 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9249
9274
|
translateY: interpolateY
|
|
9250
9275
|
}]
|
|
9251
9276
|
}]
|
|
9252
|
-
}, header !== undefined ? /*#__PURE__*/
|
|
9277
|
+
}, header !== undefined ? /*#__PURE__*/React__default.createElement(Header, {
|
|
9253
9278
|
content: header,
|
|
9254
9279
|
showDivider: internalShowDivider,
|
|
9255
9280
|
onRequestClose: onRequestClose,
|
|
9256
9281
|
showCloseButton: showCloseButton
|
|
9257
|
-
}) : null, /*#__PURE__*/
|
|
9282
|
+
}) : null, /*#__PURE__*/React__default.createElement(BottomSheetContext.Provider, {
|
|
9258
9283
|
value: BottomSheetContextValue
|
|
9259
|
-
}, children), footer ? /*#__PURE__*/
|
|
9284
|
+
}, children), footer ? /*#__PURE__*/React__default.createElement(Footer$1, {
|
|
9260
9285
|
showDivider: showDivider
|
|
9261
9286
|
}, footer) : null))));
|
|
9262
9287
|
};
|
|
@@ -11557,29 +11582,29 @@ function ContentNavigator(_ref) {
|
|
|
11557
11582
|
testID = _ref.testID,
|
|
11558
11583
|
style = _ref.style;
|
|
11559
11584
|
var theme = useTheme();
|
|
11560
|
-
return /*#__PURE__*/
|
|
11585
|
+
return /*#__PURE__*/React__default.createElement(Wrapper, {
|
|
11561
11586
|
testID: testID,
|
|
11562
11587
|
style: style
|
|
11563
|
-
}, /*#__PURE__*/
|
|
11588
|
+
}, /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
|
|
11564
11589
|
icon: "arrow-left",
|
|
11565
11590
|
onPress: onPreviousPress,
|
|
11566
11591
|
disabled: previousDisabled,
|
|
11567
11592
|
testID: "previous-icon-button"
|
|
11568
|
-
}), fontSize === 'medium' ? /*#__PURE__*/
|
|
11593
|
+
}), fontSize === 'medium' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
11569
11594
|
style: {
|
|
11570
11595
|
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11571
11596
|
},
|
|
11572
11597
|
variant: "small-bold",
|
|
11573
11598
|
onPress: onPress,
|
|
11574
11599
|
testID: "content-navigator-value"
|
|
11575
|
-
}, value) : /*#__PURE__*/
|
|
11600
|
+
}, value) : /*#__PURE__*/React__default.createElement(Typography.Title, {
|
|
11576
11601
|
style: {
|
|
11577
11602
|
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11578
11603
|
},
|
|
11579
11604
|
level: "h5",
|
|
11580
11605
|
onPress: onPress,
|
|
11581
11606
|
testID: "content-navigator-value"
|
|
11582
|
-
}, value), /*#__PURE__*/
|
|
11607
|
+
}, value), /*#__PURE__*/React__default.createElement(CompoundButton.Icon, {
|
|
11583
11608
|
icon: "arrow-right",
|
|
11584
11609
|
onPress: onNextPress,
|
|
11585
11610
|
disabled: nextDisabled,
|
|
@@ -11636,7 +11661,7 @@ var StyledCalendarRow = index$9(View)(function (_ref5) {
|
|
|
11636
11661
|
var StyledCalendarRowItem = index$9(View)(function (_ref6) {
|
|
11637
11662
|
var theme = _ref6.theme;
|
|
11638
11663
|
return {
|
|
11639
|
-
flexBasis: "".concat(Math.floor(100.0 / 7.0)
|
|
11664
|
+
flexBasis: "".concat(Math.floor(100.0 / 7.0), "%"),
|
|
11640
11665
|
alignItems: 'center',
|
|
11641
11666
|
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
11642
11667
|
height: theme.__hd__.calendar.sizes.cellHeight,
|
|
@@ -11646,7 +11671,7 @@ var StyledCalendarRowItem = index$9(View)(function (_ref6) {
|
|
|
11646
11671
|
var StyledDisabledCalendarRowItem = index$9(View)(function (_ref7) {
|
|
11647
11672
|
var theme = _ref7.theme;
|
|
11648
11673
|
return {
|
|
11649
|
-
flexBasis: "".concat(Math.floor(100.0 / 7.0)
|
|
11674
|
+
flexBasis: "".concat(Math.floor(100.0 / 7.0), "%"),
|
|
11650
11675
|
alignItems: 'center',
|
|
11651
11676
|
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
11652
11677
|
height: theme.__hd__.calendar.sizes.cellHeight
|
|
@@ -11682,15 +11707,15 @@ var CalendarRowItem = function CalendarRowItem(_ref) {
|
|
|
11682
11707
|
textIntent = _ref$textIntent === void 0 ? 'body' : _ref$textIntent,
|
|
11683
11708
|
_ref$marked = _ref.marked,
|
|
11684
11709
|
marked = _ref$marked === void 0 ? false : _ref$marked;
|
|
11685
|
-
return /*#__PURE__*/
|
|
11710
|
+
return /*#__PURE__*/React__default.createElement(StyledCalendarRowItem, {
|
|
11686
11711
|
testID: "calendar-date-cell"
|
|
11687
|
-
}, /*#__PURE__*/
|
|
11712
|
+
}, /*#__PURE__*/React__default.createElement(StyledCalendarCell, {
|
|
11688
11713
|
variant: getCellVariant(isSelected, isCurrent),
|
|
11689
11714
|
onPress: onPress
|
|
11690
|
-
}, /*#__PURE__*/
|
|
11715
|
+
}, /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
11691
11716
|
variant: "small",
|
|
11692
11717
|
intent: isSelected ? 'inverted' : textIntent
|
|
11693
|
-
}, date ? date.getDate() : ''), marked ? /*#__PURE__*/
|
|
11718
|
+
}, date ? date.getDate() : ''), marked ? /*#__PURE__*/React__default.createElement(StyledMark, {
|
|
11694
11719
|
testID: "calendar-date-mark",
|
|
11695
11720
|
variant: isSelected ? 'inverted' : 'primary'
|
|
11696
11721
|
}) : null));
|
|
@@ -11755,11 +11780,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11755
11780
|
var parsedMaskedDate = markedDates.reduce(function (current, markedDate) {
|
|
11756
11781
|
return _objectSpread2(_objectSpread2({}, current), {}, _defineProperty({}, markedDate.toDateString(), true));
|
|
11757
11782
|
}, {});
|
|
11758
|
-
var _React$useState =
|
|
11783
|
+
var _React$useState = React__default.useState(false),
|
|
11759
11784
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
11760
11785
|
monthPickerVisible = _React$useState2[0],
|
|
11761
11786
|
setMonthPickerVisible = _React$useState2[1];
|
|
11762
|
-
var _React$useState3 =
|
|
11787
|
+
var _React$useState3 = React__default.useState(0),
|
|
11763
11788
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
11764
11789
|
contentHeight = _React$useState4[0],
|
|
11765
11790
|
setContentHeight = _React$useState4[1];
|
|
@@ -11788,26 +11813,26 @@ var Calendar = function Calendar(_ref) {
|
|
|
11788
11813
|
var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
|
|
11789
11814
|
return date !== undefined;
|
|
11790
11815
|
}) || maxDate <= lastDateOfMonth;
|
|
11791
|
-
return /*#__PURE__*/
|
|
11816
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$5, {
|
|
11792
11817
|
testID: testID
|
|
11793
|
-
}, /*#__PURE__*/
|
|
11794
|
-
value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/
|
|
11818
|
+
}, /*#__PURE__*/React__default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default.createElement(ContentNavigator, {
|
|
11819
|
+
value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
11795
11820
|
testID: "calendar-month-picker",
|
|
11796
11821
|
onPress: function onPress() {
|
|
11797
11822
|
onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
|
|
11798
11823
|
setMonthPickerVisible(!monthPickerVisible);
|
|
11799
11824
|
}
|
|
11800
|
-
}, /*#__PURE__*/
|
|
11825
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
11801
11826
|
flexDirection: "row",
|
|
11802
11827
|
justifyContent: "center",
|
|
11803
11828
|
alignItems: "center"
|
|
11804
|
-
}, /*#__PURE__*/
|
|
11829
|
+
}, /*#__PURE__*/React__default.createElement(Typography.Title, {
|
|
11805
11830
|
level: "h5",
|
|
11806
11831
|
style: {
|
|
11807
11832
|
textAlign: 'center',
|
|
11808
11833
|
marginRight: theme.__hd__.calendar.space.headerMarginRight
|
|
11809
11834
|
}
|
|
11810
|
-
}, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/
|
|
11835
|
+
}, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/React__default.createElement(Icon, {
|
|
11811
11836
|
icon: monthPickerVisible ? 'arrow-up' : 'arrow-down',
|
|
11812
11837
|
size: "small"
|
|
11813
11838
|
}))),
|
|
@@ -11817,11 +11842,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11817
11842
|
previousDisabled: disablePrevButton,
|
|
11818
11843
|
nextDisabled: disableNextButton,
|
|
11819
11844
|
fontSize: "large"
|
|
11820
|
-
})), Platform.OS === 'ios' && monthPickerVisible ? /*#__PURE__*/
|
|
11845
|
+
})), Platform.OS === 'ios' && monthPickerVisible ? /*#__PURE__*/React__default.createElement(Box, {
|
|
11821
11846
|
style: {
|
|
11822
11847
|
overflow: 'hidden'
|
|
11823
11848
|
}
|
|
11824
|
-
}, /*#__PURE__*/
|
|
11849
|
+
}, /*#__PURE__*/React__default.createElement(MonthYearPickerViewIOS, {
|
|
11825
11850
|
value: value,
|
|
11826
11851
|
minimumDate: minDate,
|
|
11827
11852
|
maximumDate: maxDate,
|
|
@@ -11830,18 +11855,18 @@ var Calendar = function Calendar(_ref) {
|
|
|
11830
11855
|
height: contentHeight + theme.__hd__.calendar.space.iosPickerMarginVertical * 2,
|
|
11831
11856
|
marginVertical: -theme.__hd__.calendar.space.iosPickerMarginVertical
|
|
11832
11857
|
}
|
|
11833
|
-
})) : /*#__PURE__*/
|
|
11858
|
+
})) : /*#__PURE__*/React__default.createElement(Box, {
|
|
11834
11859
|
onLayout: Platform.OS === 'ios' ? function (e) {
|
|
11835
11860
|
return setContentHeight(e.nativeEvent.layout.height);
|
|
11836
11861
|
} : undefined
|
|
11837
|
-
}, /*#__PURE__*/
|
|
11838
|
-
return /*#__PURE__*/
|
|
11862
|
+
}, /*#__PURE__*/React__default.createElement(StyledCalendarRow, null, DAYS_OF_WEEK.map(function (day) {
|
|
11863
|
+
return /*#__PURE__*/React__default.createElement(StyledCalendarRowItem, {
|
|
11839
11864
|
key: day
|
|
11840
|
-
}, /*#__PURE__*/
|
|
11865
|
+
}, /*#__PURE__*/React__default.createElement(StyledCalendarDayNameCell, null, /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
11841
11866
|
variant: "small"
|
|
11842
11867
|
}, day)));
|
|
11843
|
-
})), /*#__PURE__*/
|
|
11844
|
-
return date ? /*#__PURE__*/
|
|
11868
|
+
})), /*#__PURE__*/React__default.createElement(StyledCalendarRow, null, daysOfPreviousMonth.map(function (date) {
|
|
11869
|
+
return date ? /*#__PURE__*/React__default.createElement(CalendarRowItem, {
|
|
11845
11870
|
key: date.toDateString(),
|
|
11846
11871
|
date: date,
|
|
11847
11872
|
isCurrent: isEqDate(now, date),
|
|
@@ -11851,11 +11876,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11851
11876
|
},
|
|
11852
11877
|
textIntent: "subdued",
|
|
11853
11878
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11854
|
-
}) : /*#__PURE__*/
|
|
11879
|
+
}) : /*#__PURE__*/React__default.createElement(StyledDisabledCalendarRowItem, {
|
|
11855
11880
|
testID: "calendar-disabled-cell"
|
|
11856
11881
|
});
|
|
11857
11882
|
}), daysOfCurrentMonth.map(function (date) {
|
|
11858
|
-
return date ? /*#__PURE__*/
|
|
11883
|
+
return date ? /*#__PURE__*/React__default.createElement(CalendarRowItem, {
|
|
11859
11884
|
key: date.toDateString(),
|
|
11860
11885
|
date: date,
|
|
11861
11886
|
isCurrent: isEqDate(now, date),
|
|
@@ -11864,11 +11889,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11864
11889
|
return onChange === null || onChange === void 0 ? void 0 : onChange(date);
|
|
11865
11890
|
},
|
|
11866
11891
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11867
|
-
}) : /*#__PURE__*/
|
|
11892
|
+
}) : /*#__PURE__*/React__default.createElement(StyledDisabledCalendarRowItem, {
|
|
11868
11893
|
testID: "calendar-disabled-cell"
|
|
11869
11894
|
});
|
|
11870
11895
|
}), daysOfNextMonth.map(function (date) {
|
|
11871
|
-
return date ? /*#__PURE__*/
|
|
11896
|
+
return date ? /*#__PURE__*/React__default.createElement(CalendarRowItem, {
|
|
11872
11897
|
key: date.toDateString(),
|
|
11873
11898
|
date: date,
|
|
11874
11899
|
isCurrent: isEqDate(now, date),
|
|
@@ -11878,10 +11903,10 @@ var Calendar = function Calendar(_ref) {
|
|
|
11878
11903
|
},
|
|
11879
11904
|
textIntent: "subdued",
|
|
11880
11905
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11881
|
-
}) : /*#__PURE__*/
|
|
11906
|
+
}) : /*#__PURE__*/React__default.createElement(StyledDisabledCalendarRowItem, {
|
|
11882
11907
|
testID: "calendar-disabled-cell"
|
|
11883
11908
|
});
|
|
11884
|
-
})), Platform.OS === 'android' && monthPickerVisible && /*#__PURE__*/
|
|
11909
|
+
})), Platform.OS === 'android' && monthPickerVisible && /*#__PURE__*/React__default.createElement(MonthYearPickerDialogueAndroid, {
|
|
11885
11910
|
doneButtonLabel: monthPickerConfirmLabel,
|
|
11886
11911
|
cancelButtonLabel: monthPickerCancelLabel,
|
|
11887
11912
|
value: value,
|
|
@@ -11921,7 +11946,7 @@ var DataCard = function DataCard(_ref) {
|
|
|
11921
11946
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
11922
11947
|
children = _ref.children,
|
|
11923
11948
|
nativeProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
11924
|
-
return /*#__PURE__*/
|
|
11949
|
+
return /*#__PURE__*/React__default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default.createElement(Indicator, {
|
|
11925
11950
|
themeIntent: intent,
|
|
11926
11951
|
testID: "data-card-indicator"
|
|
11927
11952
|
}), children);
|
|
@@ -11943,7 +11968,7 @@ var Card = function Card(_ref) {
|
|
|
11943
11968
|
var intent = _ref.intent,
|
|
11944
11969
|
children = _ref.children,
|
|
11945
11970
|
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
11946
|
-
return /*#__PURE__*/
|
|
11971
|
+
return /*#__PURE__*/React__default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
11947
11972
|
themeIntent: intent
|
|
11948
11973
|
}), children);
|
|
11949
11974
|
};
|
|
@@ -11975,14 +12000,14 @@ var PageControl = function PageControl(_ref) {
|
|
|
11975
12000
|
testID = _ref.testID,
|
|
11976
12001
|
style = _ref.style;
|
|
11977
12002
|
var theme = useTheme();
|
|
11978
|
-
var animatedValue =
|
|
11979
|
-
|
|
12003
|
+
var animatedValue = React__default.useRef(new Animated.Value(currentPage)).current;
|
|
12004
|
+
React__default.useEffect(function () {
|
|
11980
12005
|
Animated.spring(animatedValue, {
|
|
11981
12006
|
toValue: currentPage,
|
|
11982
12007
|
useNativeDriver: false // Native driver does not support animating width, it will cause the app to crash if set to true
|
|
11983
12008
|
}).start();
|
|
11984
12009
|
}, [currentPage]);
|
|
11985
|
-
return /*#__PURE__*/
|
|
12010
|
+
return /*#__PURE__*/React__default.createElement(StyledPageControl$2, {
|
|
11986
12011
|
testID: testID,
|
|
11987
12012
|
style: style
|
|
11988
12013
|
}, new Array(numberOfPages).fill('').map(function (_, index) {
|
|
@@ -11997,7 +12022,7 @@ var PageControl = function PageControl(_ref) {
|
|
|
11997
12022
|
outputRange: [0.5, 1, 0.5],
|
|
11998
12023
|
extrapolate: 'clamp'
|
|
11999
12024
|
});
|
|
12000
|
-
return /*#__PURE__*/
|
|
12025
|
+
return /*#__PURE__*/React__default.createElement(StyledPageControlAnimatedView, {
|
|
12001
12026
|
accessibilityState: {
|
|
12002
12027
|
selected: index === currentPage
|
|
12003
12028
|
},
|
|
@@ -12095,7 +12120,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12095
12120
|
viewPosition: viewPosition
|
|
12096
12121
|
});
|
|
12097
12122
|
}, [currentIndex, items.length, viewPosition]);
|
|
12098
|
-
|
|
12123
|
+
React__default.useImperativeHandle(ref, function () {
|
|
12099
12124
|
return {
|
|
12100
12125
|
snapToIndex: function snapToIndex(index) {
|
|
12101
12126
|
_snapToIndex(index);
|
|
@@ -12141,17 +12166,17 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12141
12166
|
}, [setFlatListWidth, onLayout]);
|
|
12142
12167
|
var renderItem = useCallback(function (_ref3) {
|
|
12143
12168
|
var item = _ref3.item;
|
|
12144
|
-
return /*#__PURE__*/
|
|
12169
|
+
return /*#__PURE__*/React__default.createElement(StyledItemWrapper, {
|
|
12145
12170
|
style: {
|
|
12146
12171
|
width: itemWidth
|
|
12147
12172
|
}
|
|
12148
|
-
}, /*#__PURE__*/
|
|
12173
|
+
}, /*#__PURE__*/React__default.createElement(StyledCard, null, item));
|
|
12149
12174
|
}, [itemWidth]);
|
|
12150
12175
|
var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
|
|
12151
|
-
return /*#__PURE__*/
|
|
12176
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$8, {
|
|
12152
12177
|
style: style,
|
|
12153
12178
|
testID: testID
|
|
12154
|
-
}, /*#__PURE__*/
|
|
12179
|
+
}, /*#__PURE__*/React__default.createElement(FlatList, {
|
|
12155
12180
|
contentInset: {
|
|
12156
12181
|
top: 0,
|
|
12157
12182
|
left: contentContainerPaddingHorizontal,
|
|
@@ -12159,14 +12184,14 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12159
12184
|
right: contentContainerPaddingHorizontal
|
|
12160
12185
|
},
|
|
12161
12186
|
ListHeaderComponent: Platform.select({
|
|
12162
|
-
android: /*#__PURE__*/
|
|
12187
|
+
android: /*#__PURE__*/React__default.createElement(View, {
|
|
12163
12188
|
style: {
|
|
12164
12189
|
width: contentContainerPaddingHorizontal
|
|
12165
12190
|
}
|
|
12166
12191
|
})
|
|
12167
12192
|
}),
|
|
12168
12193
|
ListFooterComponent: Platform.select({
|
|
12169
|
-
android: /*#__PURE__*/
|
|
12194
|
+
android: /*#__PURE__*/React__default.createElement(View, {
|
|
12170
12195
|
style: {
|
|
12171
12196
|
width: contentContainerPaddingHorizontal
|
|
12172
12197
|
}
|
|
@@ -12195,7 +12220,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
12195
12220
|
viewabilityConfig: {
|
|
12196
12221
|
itemVisiblePercentThreshold: 80
|
|
12197
12222
|
}
|
|
12198
|
-
}), !hidePageControl && /*#__PURE__*/
|
|
12223
|
+
}), !hidePageControl && /*#__PURE__*/React__default.createElement(StyledPageControl$1, {
|
|
12199
12224
|
testID: "pageControl",
|
|
12200
12225
|
currentPage: currentIndex,
|
|
12201
12226
|
numberOfPages: items.length
|
|
@@ -12214,7 +12239,7 @@ var Image = function Image(_ref) {
|
|
|
12214
12239
|
imageNativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
12215
12240
|
var theme = useTheme();
|
|
12216
12241
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
12217
|
-
return /*#__PURE__*/
|
|
12242
|
+
return /*#__PURE__*/React__default.createElement(Image$1, _extends$1({
|
|
12218
12243
|
testID: testID,
|
|
12219
12244
|
style: [{
|
|
12220
12245
|
width: imageSize,
|
|
@@ -12256,15 +12281,15 @@ var StyledCarouselImage = index$9(Image)(function () {
|
|
|
12256
12281
|
};
|
|
12257
12282
|
});
|
|
12258
12283
|
var StyledCustomSizeCarouselImage = index$9(Image)(function (_ref3) {
|
|
12259
|
-
var
|
|
12260
|
-
_ref3$
|
|
12261
|
-
|
|
12262
|
-
|
|
12284
|
+
var themeHeight = _ref3.themeHeight,
|
|
12285
|
+
_ref3$themeResizeMode = _ref3.themeResizeMode,
|
|
12286
|
+
themeResizeMode = _ref3$themeResizeMode === void 0 ? 'contain' : _ref3$themeResizeMode,
|
|
12287
|
+
themeWidth = _ref3.themeWidth;
|
|
12263
12288
|
return {
|
|
12264
12289
|
alignSelf: 'center',
|
|
12265
|
-
width:
|
|
12266
|
-
height:
|
|
12267
|
-
resizeMode:
|
|
12290
|
+
width: themeWidth,
|
|
12291
|
+
height: themeHeight,
|
|
12292
|
+
resizeMode: themeResizeMode
|
|
12268
12293
|
};
|
|
12269
12294
|
});
|
|
12270
12295
|
var StyledCarouselContentWrapper = index$9(Box)(function (_ref4) {
|
|
@@ -12308,20 +12333,20 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12308
12333
|
heading = _ref.heading,
|
|
12309
12334
|
body = _ref.body;
|
|
12310
12335
|
var theme = useTheme$1();
|
|
12311
|
-
var ImageComponent =
|
|
12336
|
+
var ImageComponent = React__default.useMemo(function () {
|
|
12312
12337
|
if (image) {
|
|
12313
12338
|
if (isCarouselImageProps(image)) {
|
|
12314
|
-
return /*#__PURE__*/
|
|
12339
|
+
return /*#__PURE__*/React__default.createElement(StyledCustomSizeCarouselImage, {
|
|
12315
12340
|
source: image,
|
|
12316
|
-
|
|
12317
|
-
|
|
12318
|
-
|
|
12341
|
+
themeHeight: image.height,
|
|
12342
|
+
themeWidth: image.width,
|
|
12343
|
+
themeResizeMode: image.resizeMode,
|
|
12319
12344
|
style: {
|
|
12320
12345
|
marginBottom: theme.space.medium
|
|
12321
12346
|
}
|
|
12322
12347
|
});
|
|
12323
12348
|
}
|
|
12324
|
-
return /*#__PURE__*/
|
|
12349
|
+
return /*#__PURE__*/React__default.createElement(StyledCarouselImage, {
|
|
12325
12350
|
source: typeof image === 'string' ? {
|
|
12326
12351
|
uri: image
|
|
12327
12352
|
} : image,
|
|
@@ -12332,17 +12357,17 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12332
12357
|
}
|
|
12333
12358
|
return null;
|
|
12334
12359
|
}, [image]);
|
|
12335
|
-
return /*#__PURE__*/
|
|
12360
|
+
return /*#__PURE__*/React__default.createElement(Box, {
|
|
12336
12361
|
style: {
|
|
12337
12362
|
width: width
|
|
12338
12363
|
}
|
|
12339
|
-
}, ImageComponent, /*#__PURE__*/
|
|
12364
|
+
}, ImageComponent, /*#__PURE__*/React__default.createElement(StyledCarouselContentWrapper, {
|
|
12340
12365
|
paddingHorizontal: "medium",
|
|
12341
12366
|
width: width
|
|
12342
|
-
}, content, !!heading && /*#__PURE__*/
|
|
12367
|
+
}, content, !!heading && /*#__PURE__*/React__default.createElement(StyledCarouselHeading, {
|
|
12343
12368
|
level: "h1",
|
|
12344
12369
|
typeface: "playful"
|
|
12345
|
-
}, heading), !!body && /*#__PURE__*/
|
|
12370
|
+
}, heading), !!body && /*#__PURE__*/React__default.createElement(Typography.Body, null, body)));
|
|
12346
12371
|
};
|
|
12347
12372
|
|
|
12348
12373
|
var _excluded$l = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
@@ -12423,15 +12448,15 @@ var Carousel = function Carousel(_ref) {
|
|
|
12423
12448
|
internalOnItemIndexChange(firstVisibleItem.index || 0);
|
|
12424
12449
|
}
|
|
12425
12450
|
});
|
|
12426
|
-
return /*#__PURE__*/
|
|
12451
|
+
return /*#__PURE__*/React__default.createElement(View, _extends$1({
|
|
12427
12452
|
style: style,
|
|
12428
12453
|
testID: testID
|
|
12429
|
-
}, nativeProps), /*#__PURE__*/
|
|
12454
|
+
}, nativeProps), /*#__PURE__*/React__default.createElement(StyledBackDrop, {
|
|
12430
12455
|
themeSlideBackground: ((_items$currentSlideIn = items[currentSlideIndex]) === null || _items$currentSlideIn === void 0 ? void 0 : _items$currentSlideIn.background) || theme.colors.defaultGlobalSurface
|
|
12431
|
-
}), /*#__PURE__*/
|
|
12456
|
+
}), /*#__PURE__*/React__default.createElement(StyledPageControlWrapper, null, pageControlPosition === 'top' && shouldRenderPagination && /*#__PURE__*/React__default.createElement(StyledPageControl, {
|
|
12432
12457
|
numberOfPages: items.length,
|
|
12433
12458
|
currentPage: currentSlideIndex
|
|
12434
|
-
})), /*#__PURE__*/
|
|
12459
|
+
})), /*#__PURE__*/React__default.createElement(StyledCarouselView, null, /*#__PURE__*/React__default.createElement(FlatList, {
|
|
12435
12460
|
onLayout: flatListOnLayout,
|
|
12436
12461
|
testID: testID ? "".concat(testID, "_flatlist") : undefined,
|
|
12437
12462
|
horizontal: true,
|
|
@@ -12459,7 +12484,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12459
12484
|
heading = item.heading,
|
|
12460
12485
|
body = item.body,
|
|
12461
12486
|
content = item.content;
|
|
12462
|
-
return /*#__PURE__*/
|
|
12487
|
+
return /*#__PURE__*/React__default.createElement(CarouselItem, {
|
|
12463
12488
|
image: image,
|
|
12464
12489
|
heading: heading,
|
|
12465
12490
|
body: body,
|
|
@@ -12474,7 +12499,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12474
12499
|
index: index
|
|
12475
12500
|
};
|
|
12476
12501
|
}
|
|
12477
|
-
}), /*#__PURE__*/
|
|
12502
|
+
}), /*#__PURE__*/React__default.createElement(StyledCarouselFooterWrapper, null, renderActions && renderActions(currentSlideIndex), pageControlPosition === 'bottom' && shouldRenderPagination && /*#__PURE__*/React__default.createElement(StyledPageControl, {
|
|
12478
12503
|
numberOfPages: items.length,
|
|
12479
12504
|
currentPage: currentSlideIndex
|
|
12480
12505
|
}))));
|
|
@@ -12592,7 +12617,7 @@ var Chip = function Chip(_ref) {
|
|
|
12592
12617
|
icon = _ref.icon,
|
|
12593
12618
|
onPress = _ref.onPress,
|
|
12594
12619
|
otherProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
12595
|
-
var internalIcon =
|
|
12620
|
+
var internalIcon = React__default.useMemo(function () {
|
|
12596
12621
|
if (icon && variant === 'filled') {
|
|
12597
12622
|
return icon;
|
|
12598
12623
|
}
|
|
@@ -12601,17 +12626,17 @@ var Chip = function Chip(_ref) {
|
|
|
12601
12626
|
}
|
|
12602
12627
|
return undefined;
|
|
12603
12628
|
}, [icon, selected, variant]);
|
|
12604
|
-
return /*#__PURE__*/
|
|
12629
|
+
return /*#__PURE__*/React__default.createElement(StyledChipWrapper, _extends$1({
|
|
12605
12630
|
onPress: onPress,
|
|
12606
12631
|
themeVariant: variant,
|
|
12607
12632
|
themeSelected: selected
|
|
12608
|
-
}, otherProps), internalIcon && /*#__PURE__*/
|
|
12633
|
+
}, otherProps), internalIcon && /*#__PURE__*/React__default.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React__default.createElement(StyledIcon$1, {
|
|
12609
12634
|
size: "xsmall",
|
|
12610
12635
|
icon: internalIcon,
|
|
12611
12636
|
themeSelected: selected,
|
|
12612
12637
|
themeVariant: variant,
|
|
12613
12638
|
testID: "chip-icon-".concat(internalIcon)
|
|
12614
|
-
})), /*#__PURE__*/
|
|
12639
|
+
})), /*#__PURE__*/React__default.createElement(StyledLabel, {
|
|
12615
12640
|
variant: "small",
|
|
12616
12641
|
themeVariant: variant,
|
|
12617
12642
|
themeSelected: selected
|
|
@@ -12692,20 +12717,20 @@ var Checkbox = function Checkbox(_ref2) {
|
|
|
12692
12717
|
disabled: disabled,
|
|
12693
12718
|
readonly: readonly
|
|
12694
12719
|
});
|
|
12695
|
-
return /*#__PURE__*/
|
|
12720
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$7, {
|
|
12696
12721
|
onPress: onPress,
|
|
12697
12722
|
disabled: disabled || readonly,
|
|
12698
12723
|
themeState: themeState,
|
|
12699
12724
|
style: style,
|
|
12700
12725
|
testID: testID
|
|
12701
|
-
}, !!description && /*#__PURE__*/
|
|
12726
|
+
}, !!description && /*#__PURE__*/React__default.createElement(StyledDescription$1, {
|
|
12702
12727
|
intent: disabled ? 'subdued' : 'body',
|
|
12703
12728
|
variant: "small"
|
|
12704
|
-
}, description), /*#__PURE__*/
|
|
12729
|
+
}, description), /*#__PURE__*/React__default.createElement(StyledCheckboxContainer, null, checked && /*#__PURE__*/React__default.createElement(StyledCheckMark, {
|
|
12705
12730
|
icon: "box-check",
|
|
12706
12731
|
testID: "check-mark",
|
|
12707
12732
|
themeState: themeState
|
|
12708
|
-
}), /*#__PURE__*/
|
|
12733
|
+
}), /*#__PURE__*/React__default.createElement(StyledCheckbox, {
|
|
12709
12734
|
themeState: themeState
|
|
12710
12735
|
})));
|
|
12711
12736
|
};
|
|
@@ -12866,21 +12891,21 @@ var LABEL_ANIMATION_DURATION = 150;
|
|
|
12866
12891
|
var renderErrorOrHelpText = function renderErrorOrHelpText(_ref2) {
|
|
12867
12892
|
var error = _ref2.error,
|
|
12868
12893
|
helpText = _ref2.helpText;
|
|
12869
|
-
return error ? /*#__PURE__*/
|
|
12894
|
+
return error ? /*#__PURE__*/React__default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
12870
12895
|
testID: "input-error-icon",
|
|
12871
12896
|
icon: "circle-info",
|
|
12872
12897
|
size: "xsmall",
|
|
12873
12898
|
intent: "danger"
|
|
12874
|
-
}), /*#__PURE__*/
|
|
12899
|
+
}), /*#__PURE__*/React__default.createElement(StyledError, {
|
|
12875
12900
|
testID: "input-error-message"
|
|
12876
|
-
}, error)) : !!helpText && /*#__PURE__*/
|
|
12901
|
+
}, error)) : !!helpText && /*#__PURE__*/React__default.createElement(StyledHelperText, null, helpText);
|
|
12877
12902
|
};
|
|
12878
12903
|
var renderInput = function renderInput(_ref3) {
|
|
12879
12904
|
var variant = _ref3.variant,
|
|
12880
12905
|
nativeInputProps = _ref3.nativeInputProps,
|
|
12881
12906
|
renderInputValue = _ref3.renderInputValue,
|
|
12882
12907
|
ref = _ref3.ref;
|
|
12883
|
-
return renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/
|
|
12908
|
+
return renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__default.createElement(StyledTextInput, _extends$1({}, nativeInputProps, {
|
|
12884
12909
|
themeVariant: variant,
|
|
12885
12910
|
multiline: variant === 'textarea' || nativeInputProps.multiline,
|
|
12886
12911
|
ref: ref
|
|
@@ -12891,7 +12916,7 @@ var renderSuffix = function renderSuffix(_ref4) {
|
|
|
12891
12916
|
loading = _ref4.loading,
|
|
12892
12917
|
suffix = _ref4.suffix;
|
|
12893
12918
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
12894
|
-
return typeof actualSuffix === 'string' ? /*#__PURE__*/
|
|
12919
|
+
return typeof actualSuffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
12895
12920
|
intent: state === 'disabled' ? 'disabled-text' : 'text',
|
|
12896
12921
|
testID: "input-suffix",
|
|
12897
12922
|
icon: actualSuffix,
|
|
@@ -12902,7 +12927,7 @@ var renderSuffix = function renderSuffix(_ref4) {
|
|
|
12902
12927
|
var renderPrefix = function renderPrefix(_ref5) {
|
|
12903
12928
|
var state = _ref5.state,
|
|
12904
12929
|
prefix = _ref5.prefix;
|
|
12905
|
-
return typeof prefix === 'string' ? /*#__PURE__*/
|
|
12930
|
+
return typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
12906
12931
|
intent: state === 'disabled' ? 'disabled-text' : 'text',
|
|
12907
12932
|
testID: "input-prefix",
|
|
12908
12933
|
icon: prefix,
|
|
@@ -12915,7 +12940,7 @@ var renderMaxLengthMessage = function renderMaxLengthMessage(_ref6) {
|
|
|
12915
12940
|
currentLength = _ref6.currentLength,
|
|
12916
12941
|
hideCharacterCount = _ref6.hideCharacterCount;
|
|
12917
12942
|
var shouldShowMaxLength = maxLength !== undefined && !hideCharacterCount;
|
|
12918
|
-
return shouldShowMaxLength && /*#__PURE__*/
|
|
12943
|
+
return shouldShowMaxLength && /*#__PURE__*/React__default.createElement(StyledMaxLengthMessage, {
|
|
12919
12944
|
themeState: state
|
|
12920
12945
|
}, currentLength, "/", maxLength);
|
|
12921
12946
|
};
|
|
@@ -12953,22 +12978,22 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
12953
12978
|
nativeProps = _objectWithoutProperties(_ref8, _excluded$j);
|
|
12954
12979
|
var displayText = getDisplayText(value, defaultValue);
|
|
12955
12980
|
var isEmptyValue = displayText.length === 0;
|
|
12956
|
-
var _React$useState =
|
|
12981
|
+
var _React$useState = React__default.useState({
|
|
12957
12982
|
height: 0,
|
|
12958
12983
|
width: 0
|
|
12959
12984
|
}),
|
|
12960
12985
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
12961
12986
|
inputSize = _React$useState2[0],
|
|
12962
12987
|
setInputSize = _React$useState2[1];
|
|
12963
|
-
var _React$useState3 =
|
|
12988
|
+
var _React$useState3 = React__default.useState(0),
|
|
12964
12989
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
12965
12990
|
labelWidth = _React$useState4[0],
|
|
12966
12991
|
setLabelWidth = _React$useState4[1];
|
|
12967
|
-
var _React$useState5 =
|
|
12992
|
+
var _React$useState5 = React__default.useState(0),
|
|
12968
12993
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
12969
12994
|
prefixWidth = _React$useState6[0],
|
|
12970
12995
|
setPrefixWidth = _React$useState6[1];
|
|
12971
|
-
var _React$useState7 =
|
|
12996
|
+
var _React$useState7 = React__default.useState(false),
|
|
12972
12997
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
12973
12998
|
isFocused = _React$useState8[0],
|
|
12974
12999
|
setIsFocused = _React$useState8[1];
|
|
@@ -13009,8 +13034,8 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13009
13034
|
var width = event.nativeEvent.layout.width;
|
|
13010
13035
|
setLabelWidth(width);
|
|
13011
13036
|
}, []);
|
|
13012
|
-
var innerTextInput =
|
|
13013
|
-
|
|
13037
|
+
var innerTextInput = React__default.useRef();
|
|
13038
|
+
React__default.useImperativeHandle(ref, function () {
|
|
13014
13039
|
return {
|
|
13015
13040
|
// we don't expose this method, it's for testing https://medium.com/developer-rants/how-to-test-useref-without-mocking-useref-699165f4994e
|
|
13016
13041
|
getNativeTextInputRef: function getNativeTextInputRef() {
|
|
@@ -13102,25 +13127,25 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13102
13127
|
defaultValue: defaultValue,
|
|
13103
13128
|
placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
|
|
13104
13129
|
});
|
|
13105
|
-
return /*#__PURE__*/
|
|
13130
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$4, {
|
|
13106
13131
|
style: styleWithoutBackgroundColor,
|
|
13107
13132
|
pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
|
|
13108
13133
|
testID: testID
|
|
13109
|
-
}, /*#__PURE__*/
|
|
13134
|
+
}, /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
|
|
13110
13135
|
onLayout: onLayout
|
|
13111
|
-
}, /*#__PURE__*/
|
|
13136
|
+
}, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
|
|
13112
13137
|
themeFocused: isFocused,
|
|
13113
13138
|
themeState: state,
|
|
13114
13139
|
testID: "text-input-border",
|
|
13115
13140
|
style: [{
|
|
13116
13141
|
backgroundColor: backgroundColor
|
|
13117
13142
|
}, borderStyle]
|
|
13118
|
-
}), /*#__PURE__*/
|
|
13143
|
+
}), /*#__PURE__*/React__default.createElement(View, {
|
|
13119
13144
|
onLayout: onPrefixLayout
|
|
13120
13145
|
}, renderPrefix({
|
|
13121
13146
|
state: state,
|
|
13122
13147
|
prefix: prefix
|
|
13123
|
-
})), /*#__PURE__*/
|
|
13148
|
+
})), /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
|
|
13124
13149
|
themeVariant: variant,
|
|
13125
13150
|
pointerEvents: "none",
|
|
13126
13151
|
style: [{
|
|
@@ -13143,13 +13168,13 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13143
13168
|
})
|
|
13144
13169
|
}]
|
|
13145
13170
|
}]
|
|
13146
|
-
}, required && /*#__PURE__*/
|
|
13171
|
+
}, required && /*#__PURE__*/React__default.createElement(StyledAsteriskLabelInsideTextInput, {
|
|
13147
13172
|
style: {
|
|
13148
13173
|
backgroundColor: backgroundColor
|
|
13149
13174
|
},
|
|
13150
13175
|
themeState: state,
|
|
13151
13176
|
testID: "input-label-asterisk"
|
|
13152
|
-
}, "*"), !!label && /*#__PURE__*/
|
|
13177
|
+
}, "*"), !!label && /*#__PURE__*/React__default.createElement(StyledLabelInsideTextInput, {
|
|
13153
13178
|
style: {
|
|
13154
13179
|
backgroundColor: backgroundColor
|
|
13155
13180
|
},
|
|
@@ -13157,7 +13182,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13157
13182
|
testID: "input-label",
|
|
13158
13183
|
themeState: state,
|
|
13159
13184
|
onLayout: onLabelLayout
|
|
13160
|
-
}, label)), /*#__PURE__*/
|
|
13185
|
+
}, label)), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput({
|
|
13161
13186
|
variant: variant,
|
|
13162
13187
|
nativeInputProps: nativeInputProps,
|
|
13163
13188
|
renderInputValue: renderInputValue,
|
|
@@ -13168,7 +13193,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
13168
13193
|
state: state,
|
|
13169
13194
|
loading: loading,
|
|
13170
13195
|
suffix: suffix
|
|
13171
|
-
})), /*#__PURE__*/
|
|
13196
|
+
})), /*#__PURE__*/React__default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__default.createElement(StyledErrorAndMaxLengthContainer, null, renderErrorOrHelpText({
|
|
13172
13197
|
error: error,
|
|
13173
13198
|
helpText: helpText
|
|
13174
13199
|
}), renderMaxLengthMessage({
|
|
@@ -13229,15 +13254,15 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
13229
13254
|
onChange: _onChange,
|
|
13230
13255
|
value: value
|
|
13231
13256
|
});
|
|
13232
|
-
return /*#__PURE__*/
|
|
13257
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
13233
13258
|
onPress: function onPress() {
|
|
13234
13259
|
return setOpen(true);
|
|
13235
13260
|
},
|
|
13236
13261
|
disabled: disabled
|
|
13237
|
-
}, /*#__PURE__*/
|
|
13262
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
13238
13263
|
pointerEvents: "none",
|
|
13239
13264
|
testID: "datePickerInputAndroid"
|
|
13240
|
-
}, /*#__PURE__*/
|
|
13265
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
13241
13266
|
label: label,
|
|
13242
13267
|
value: displayValue,
|
|
13243
13268
|
suffix: "calendar-dates-outlined",
|
|
@@ -13248,7 +13273,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
13248
13273
|
helpText: helpText,
|
|
13249
13274
|
style: style,
|
|
13250
13275
|
testID: testID
|
|
13251
|
-
})), open ? /*#__PURE__*/
|
|
13276
|
+
})), open ? /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
13252
13277
|
testID: "datePickerAndroid",
|
|
13253
13278
|
mode: "date",
|
|
13254
13279
|
value: pickerInitValue,
|
|
@@ -13280,7 +13305,7 @@ var InternalCalendar = function InternalCalendar(_ref) {
|
|
|
13280
13305
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13281
13306
|
selectingDate = _useState4[0],
|
|
13282
13307
|
setSelectingDate = _useState4[1];
|
|
13283
|
-
return /*#__PURE__*/
|
|
13308
|
+
return /*#__PURE__*/React__default.createElement(Calendar, {
|
|
13284
13309
|
testID: "calendar",
|
|
13285
13310
|
value: selectingDate,
|
|
13286
13311
|
visibleDate: visibleDate,
|
|
@@ -13347,15 +13372,15 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13347
13372
|
onChange: onChange,
|
|
13348
13373
|
value: value
|
|
13349
13374
|
});
|
|
13350
|
-
return /*#__PURE__*/
|
|
13375
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
13351
13376
|
onPress: function onPress() {
|
|
13352
13377
|
return setOpen(true);
|
|
13353
13378
|
},
|
|
13354
13379
|
disabled: disabled
|
|
13355
|
-
}, /*#__PURE__*/
|
|
13380
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
13356
13381
|
pointerEvents: "none",
|
|
13357
13382
|
testID: "datePickerCalendar"
|
|
13358
|
-
}, /*#__PURE__*/
|
|
13383
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
13359
13384
|
label: label,
|
|
13360
13385
|
value: displayValue,
|
|
13361
13386
|
suffix: "calendar-dates-outlined",
|
|
@@ -13366,13 +13391,13 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13366
13391
|
helpText: helpText,
|
|
13367
13392
|
testID: testID,
|
|
13368
13393
|
style: style
|
|
13369
|
-
})), /*#__PURE__*/
|
|
13394
|
+
})), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
|
|
13370
13395
|
open: open,
|
|
13371
13396
|
onRequestClose: function onRequestClose() {
|
|
13372
13397
|
return setOpen(false);
|
|
13373
13398
|
},
|
|
13374
13399
|
header: label,
|
|
13375
|
-
footer: shouldHideToolbar ? undefined : /*#__PURE__*/
|
|
13400
|
+
footer: shouldHideToolbar ? undefined : /*#__PURE__*/React__default.createElement(CompoundButton, {
|
|
13376
13401
|
variant: "text",
|
|
13377
13402
|
text: confirmLabel,
|
|
13378
13403
|
onPress: function onPress() {
|
|
@@ -13382,7 +13407,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13382
13407
|
setOpen(false);
|
|
13383
13408
|
}
|
|
13384
13409
|
})
|
|
13385
|
-
}, /*#__PURE__*/
|
|
13410
|
+
}, /*#__PURE__*/React__default.createElement(InternalCalendar, {
|
|
13386
13411
|
minDate: minDate,
|
|
13387
13412
|
maxDate: maxDate,
|
|
13388
13413
|
value: value,
|
|
@@ -13435,15 +13460,15 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13435
13460
|
onChange: onChange,
|
|
13436
13461
|
value: value
|
|
13437
13462
|
});
|
|
13438
|
-
return /*#__PURE__*/
|
|
13463
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
13439
13464
|
onPress: function onPress() {
|
|
13440
13465
|
return setOpen(true);
|
|
13441
13466
|
},
|
|
13442
13467
|
disabled: disabled
|
|
13443
|
-
}, /*#__PURE__*/
|
|
13468
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
13444
13469
|
pointerEvents: "none",
|
|
13445
13470
|
testID: "datePickerInputIOS"
|
|
13446
|
-
}, /*#__PURE__*/
|
|
13471
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
13447
13472
|
label: label,
|
|
13448
13473
|
value: displayValue,
|
|
13449
13474
|
suffix: "calendar-dates-outlined",
|
|
@@ -13454,13 +13479,13 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13454
13479
|
helpText: helpText,
|
|
13455
13480
|
testID: testID,
|
|
13456
13481
|
style: style
|
|
13457
|
-
})), /*#__PURE__*/
|
|
13482
|
+
})), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
|
|
13458
13483
|
open: open,
|
|
13459
13484
|
onRequestClose: function onRequestClose() {
|
|
13460
13485
|
return setOpen(false);
|
|
13461
13486
|
},
|
|
13462
13487
|
header: label,
|
|
13463
|
-
footer: /*#__PURE__*/
|
|
13488
|
+
footer: /*#__PURE__*/React__default.createElement(CompoundButton, {
|
|
13464
13489
|
variant: "text",
|
|
13465
13490
|
text: confirmLabel,
|
|
13466
13491
|
onPress: function onPress() {
|
|
@@ -13470,7 +13495,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13470
13495
|
setOpen(false);
|
|
13471
13496
|
}
|
|
13472
13497
|
})
|
|
13473
|
-
}, /*#__PURE__*/
|
|
13498
|
+
}, /*#__PURE__*/React__default.createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
13474
13499
|
testID: "datePickerIOS",
|
|
13475
13500
|
value: selectingDate,
|
|
13476
13501
|
minimumDate: minDate,
|
|
@@ -13495,12 +13520,12 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
13495
13520
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
13496
13521
|
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
13497
13522
|
if (variant === 'calendar') {
|
|
13498
|
-
return /*#__PURE__*/
|
|
13523
|
+
return /*#__PURE__*/React__default.createElement(DatePickerCalendar, props);
|
|
13499
13524
|
}
|
|
13500
13525
|
if (Platform.OS === 'ios') {
|
|
13501
|
-
return /*#__PURE__*/
|
|
13526
|
+
return /*#__PURE__*/React__default.createElement(DatePickerIOS, props);
|
|
13502
13527
|
}
|
|
13503
|
-
return /*#__PURE__*/
|
|
13528
|
+
return /*#__PURE__*/React__default.createElement(DatePickerAndroid, props);
|
|
13504
13529
|
};
|
|
13505
13530
|
|
|
13506
13531
|
var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
|
|
@@ -13711,11 +13736,11 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
13711
13736
|
setAnimatedToValue(animatedValue);
|
|
13712
13737
|
}
|
|
13713
13738
|
})).current;
|
|
13714
|
-
return /*#__PURE__*/
|
|
13739
|
+
return /*#__PURE__*/React__default.createElement(StyledDragableContainer, {
|
|
13715
13740
|
testID: testID,
|
|
13716
13741
|
enableShadow: true,
|
|
13717
13742
|
pointerEvents: "box-none"
|
|
13718
|
-
}, /*#__PURE__*/
|
|
13743
|
+
}, /*#__PURE__*/React__default.createElement(StyledDragableDrawerContainer, {
|
|
13719
13744
|
enableShadow: true,
|
|
13720
13745
|
style: {
|
|
13721
13746
|
transform: [{
|
|
@@ -13728,7 +13753,7 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
13728
13753
|
var nativeEvent = _ref3.nativeEvent;
|
|
13729
13754
|
setHeight(nativeEvent.layout.height);
|
|
13730
13755
|
}
|
|
13731
|
-
}, /*#__PURE__*/
|
|
13756
|
+
}, /*#__PURE__*/React__default.createElement(StyledHandlerContainer, panResponder.panHandlers, /*#__PURE__*/React__default.createElement(StyledHandler, null)), children));
|
|
13732
13757
|
};
|
|
13733
13758
|
|
|
13734
13759
|
var Drawer = function Drawer(_ref) {
|
|
@@ -13763,17 +13788,17 @@ var Drawer = function Drawer(_ref) {
|
|
|
13763
13788
|
return animation.stop();
|
|
13764
13789
|
};
|
|
13765
13790
|
}, [visible]);
|
|
13766
|
-
return /*#__PURE__*/
|
|
13791
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$3, {
|
|
13767
13792
|
testID: testID,
|
|
13768
13793
|
enableShadow: enableShadow,
|
|
13769
13794
|
pointerEvents: "box-none"
|
|
13770
|
-
}, /*#__PURE__*/
|
|
13795
|
+
}, /*#__PURE__*/React__default.createElement(StyledBackdrop$1, {
|
|
13771
13796
|
pointerEvents: visible ? 'auto' : 'box-none',
|
|
13772
13797
|
onPress: onDismiss,
|
|
13773
13798
|
style: {
|
|
13774
13799
|
opacity: interpolateBackdropOpacity
|
|
13775
13800
|
}
|
|
13776
|
-
}), /*#__PURE__*/
|
|
13801
|
+
}), /*#__PURE__*/React__default.createElement(StyledDrawerContainer, {
|
|
13777
13802
|
enableShadow: enableShadow,
|
|
13778
13803
|
onLayout: function onLayout(_ref2) {
|
|
13779
13804
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -13828,18 +13853,18 @@ var Empty = function Empty(_ref) {
|
|
|
13828
13853
|
_ref$variant = _ref.variant,
|
|
13829
13854
|
variant = _ref$variant === void 0 ? 'light' : _ref$variant;
|
|
13830
13855
|
var theme = useTheme();
|
|
13831
|
-
return /*#__PURE__*/
|
|
13856
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$6, {
|
|
13832
13857
|
style: style,
|
|
13833
13858
|
testID: testID
|
|
13834
|
-
}, image !== undefined && /*#__PURE__*/
|
|
13859
|
+
}, image !== undefined && /*#__PURE__*/React__default.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
|
|
13835
13860
|
style: [{
|
|
13836
13861
|
marginBottom: theme.__hd__.empty.space.imageMargin
|
|
13837
13862
|
}, image.props.style]
|
|
13838
|
-
})), /*#__PURE__*/
|
|
13863
|
+
})), /*#__PURE__*/React__default.createElement(StyledTitle, {
|
|
13839
13864
|
themeVariant: variant,
|
|
13840
13865
|
level: "h4",
|
|
13841
13866
|
typeface: "playful"
|
|
13842
|
-
}, title), !!description && /*#__PURE__*/
|
|
13867
|
+
}, title), !!description && /*#__PURE__*/React__default.createElement(StyledDescription, {
|
|
13843
13868
|
themeVariant: variant,
|
|
13844
13869
|
typeface: "playful"
|
|
13845
13870
|
}, description));
|
|
@@ -13932,7 +13957,7 @@ var PortalHostComponent = function PortalHostComponent(_ref) {
|
|
|
13932
13957
|
deregisterHost();
|
|
13933
13958
|
};
|
|
13934
13959
|
}, []);
|
|
13935
|
-
return /*#__PURE__*/
|
|
13960
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, state.map(function (item) {
|
|
13936
13961
|
return item.node;
|
|
13937
13962
|
}));
|
|
13938
13963
|
};
|
|
@@ -14000,11 +14025,11 @@ var PortalProviderComponent = function PortalProviderComponent(_ref) {
|
|
|
14000
14025
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
14001
14026
|
state = _useReducer2[0],
|
|
14002
14027
|
dispatch = _useReducer2[1];
|
|
14003
|
-
return /*#__PURE__*/
|
|
14028
|
+
return /*#__PURE__*/React__default.createElement(PortalDispatchContext.Provider, {
|
|
14004
14029
|
value: dispatch
|
|
14005
|
-
}, /*#__PURE__*/
|
|
14030
|
+
}, /*#__PURE__*/React__default.createElement(PortalStateContext.Provider, {
|
|
14006
14031
|
value: state
|
|
14007
|
-
}, children, /*#__PURE__*/
|
|
14032
|
+
}, children, /*#__PURE__*/React__default.createElement(PortalHost, {
|
|
14008
14033
|
name: rootHostName
|
|
14009
14034
|
})));
|
|
14010
14035
|
};
|
|
@@ -14025,7 +14050,7 @@ var PortalComponent = function PortalComponent(_ref) {
|
|
|
14025
14050
|
return name || nanoid();
|
|
14026
14051
|
}, [name]);
|
|
14027
14052
|
var ChildrenComponent = useMemo(function () {
|
|
14028
|
-
return /*#__PURE__*/
|
|
14053
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
14029
14054
|
theme: theme || defaultTheme
|
|
14030
14055
|
}, children);
|
|
14031
14056
|
}, [theme, children, defaultTheme]);
|
|
@@ -14125,12 +14150,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14125
14150
|
return backHandler.remove();
|
|
14126
14151
|
};
|
|
14127
14152
|
}, [onRequestClose]);
|
|
14128
|
-
return /*#__PURE__*/
|
|
14153
|
+
return /*#__PURE__*/React__default.createElement(Portal$1, null, /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
14129
14154
|
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
14130
14155
|
backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
|
|
14131
14156
|
opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
|
|
14132
14157
|
})
|
|
14133
|
-
}), /*#__PURE__*/
|
|
14158
|
+
}), /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
14134
14159
|
testID: testID,
|
|
14135
14160
|
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
14136
14161
|
opacity: animationType === 'fade' ? modalAnimation : 1,
|
|
@@ -14166,7 +14191,7 @@ var ModalWrapper = function ModalWrapper(_ref3) {
|
|
|
14166
14191
|
(_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
|
|
14167
14192
|
}
|
|
14168
14193
|
}, [internalVisible]);
|
|
14169
|
-
return internalVisible ? /*#__PURE__*/
|
|
14194
|
+
return internalVisible ? /*#__PURE__*/React__default.createElement(Modal, _extends$1({
|
|
14170
14195
|
ref: modalRef
|
|
14171
14196
|
}, props)) : null;
|
|
14172
14197
|
};
|
|
@@ -14257,11 +14282,11 @@ var _excluded$g = ["variant", "title", "description", "image", "testID", "ctaTex
|
|
|
14257
14282
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
14258
14283
|
var renderImage$1 = function renderImage(image) {
|
|
14259
14284
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
14260
|
-
return /*#__PURE__*/
|
|
14285
|
+
return /*#__PURE__*/React__default.cloneElement(image, {
|
|
14261
14286
|
testID: 'error-image'
|
|
14262
14287
|
});
|
|
14263
14288
|
}
|
|
14264
|
-
return /*#__PURE__*/
|
|
14289
|
+
return /*#__PURE__*/React__default.createElement(StyledErrorImage, {
|
|
14265
14290
|
source: typeof image === 'string' ? {
|
|
14266
14291
|
uri: image
|
|
14267
14292
|
} : image,
|
|
@@ -14283,19 +14308,19 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
14283
14308
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
14284
14309
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
14285
14310
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
14286
|
-
return /*#__PURE__*/
|
|
14311
|
+
return /*#__PURE__*/React__default.createElement(StyledErrorContainer$1, _extends$1({
|
|
14287
14312
|
testID: testID,
|
|
14288
14313
|
themeVariant: variant
|
|
14289
|
-
}, nativeProps), /*#__PURE__*/
|
|
14314
|
+
}, nativeProps), /*#__PURE__*/React__default.createElement(StyledErrorContent, null, image && /*#__PURE__*/React__default.createElement(StyledErrorImageContainer, null, renderImage$1(image)), /*#__PURE__*/React__default.createElement(StyledErrorTitle, {
|
|
14290
14315
|
level: "h4",
|
|
14291
14316
|
typeface: "playful"
|
|
14292
|
-
}, title), description && /*#__PURE__*/
|
|
14317
|
+
}, title), description && /*#__PURE__*/React__default.createElement(StyledErrorDescription, {
|
|
14293
14318
|
typeface: "playful"
|
|
14294
|
-
}, description)), showButtonContainer && /*#__PURE__*/
|
|
14319
|
+
}, description)), showButtonContainer && /*#__PURE__*/React__default.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React__default.createElement(StyledErrorButtonPrimary, {
|
|
14295
14320
|
variant: "filled",
|
|
14296
14321
|
text: ctaText,
|
|
14297
14322
|
onPress: onCtaPress
|
|
14298
|
-
}), showSecondaryCta && /*#__PURE__*/
|
|
14323
|
+
}), showSecondaryCta && /*#__PURE__*/React__default.createElement(StyledErrorButtonSecondary, {
|
|
14299
14324
|
variant: "text",
|
|
14300
14325
|
text: secondaryCtaText,
|
|
14301
14326
|
onPress: onSecondaryCtaPress
|
|
@@ -14354,7 +14379,7 @@ var Error$1 = function Error(_ref2) {
|
|
|
14354
14379
|
}
|
|
14355
14380
|
}, [isVisible, onCloseModal]);
|
|
14356
14381
|
if (variant === 'full-screen') {
|
|
14357
|
-
return /*#__PURE__*/
|
|
14382
|
+
return /*#__PURE__*/React__default.createElement(StyledErrorModal, {
|
|
14358
14383
|
visible: isVisible,
|
|
14359
14384
|
onRequestClose: function onRequestClose() {
|
|
14360
14385
|
return setIsVisible(false);
|
|
@@ -14363,7 +14388,7 @@ var Error$1 = function Error(_ref2) {
|
|
|
14363
14388
|
return setIsVisible(false);
|
|
14364
14389
|
},
|
|
14365
14390
|
animationType: "slide"
|
|
14366
|
-
}, /*#__PURE__*/
|
|
14391
|
+
}, /*#__PURE__*/React__default.createElement(ErrorPage, _extends$1({
|
|
14367
14392
|
variant: variant,
|
|
14368
14393
|
title: title,
|
|
14369
14394
|
description: description,
|
|
@@ -14379,7 +14404,7 @@ var Error$1 = function Error(_ref2) {
|
|
|
14379
14404
|
}
|
|
14380
14405
|
}, nativeProps)));
|
|
14381
14406
|
}
|
|
14382
|
-
return /*#__PURE__*/
|
|
14407
|
+
return /*#__PURE__*/React__default.createElement(ErrorPage, _extends$1({
|
|
14383
14408
|
variant: variant,
|
|
14384
14409
|
title: title,
|
|
14385
14410
|
description: description,
|
|
@@ -14460,13 +14485,13 @@ var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
|
14460
14485
|
inputRange: [0, 1],
|
|
14461
14486
|
outputRange: ['0deg', '-45deg']
|
|
14462
14487
|
});
|
|
14463
|
-
return /*#__PURE__*/
|
|
14488
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
14464
14489
|
style: StyleSheet$1.flatten([{
|
|
14465
14490
|
transform: [{
|
|
14466
14491
|
rotate: interpolatedRotateAnimation
|
|
14467
14492
|
}]
|
|
14468
14493
|
}])
|
|
14469
|
-
}, /*#__PURE__*/
|
|
14494
|
+
}, /*#__PURE__*/React__default.createElement(AnimatedIcons, _extends$1({
|
|
14470
14495
|
size: "xsmall"
|
|
14471
14496
|
}, iconProps)));
|
|
14472
14497
|
};
|
|
@@ -14481,13 +14506,13 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
|
|
|
14481
14506
|
animated = _ref.animated,
|
|
14482
14507
|
active = _ref.active;
|
|
14483
14508
|
if (animated) {
|
|
14484
|
-
return /*#__PURE__*/
|
|
14509
|
+
return /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(AnimatedFABIcon, {
|
|
14485
14510
|
active: active,
|
|
14486
14511
|
icon: icon,
|
|
14487
14512
|
testID: "animated-fab-icon"
|
|
14488
14513
|
}));
|
|
14489
14514
|
}
|
|
14490
|
-
return /*#__PURE__*/
|
|
14515
|
+
return /*#__PURE__*/React__default.createElement(StyledFABIcon, {
|
|
14491
14516
|
icon: icon,
|
|
14492
14517
|
testID: "styled-fab-icon"
|
|
14493
14518
|
});
|
|
@@ -14495,11 +14520,11 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
|
|
|
14495
14520
|
var IconWithTextContent = function IconWithTextContent(_ref2) {
|
|
14496
14521
|
var icon = _ref2.icon,
|
|
14497
14522
|
title = _ref2.title;
|
|
14498
|
-
return /*#__PURE__*/
|
|
14523
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledFABIcon, {
|
|
14499
14524
|
size: "xsmall",
|
|
14500
14525
|
icon: icon,
|
|
14501
14526
|
testID: "styled-fab-icon"
|
|
14502
|
-
})), /*#__PURE__*/
|
|
14527
|
+
})), /*#__PURE__*/React__default.createElement(StyledFABText, null, title));
|
|
14503
14528
|
};
|
|
14504
14529
|
var animateWidth = function animateWidth() {
|
|
14505
14530
|
LayoutAnimation.configureNext({
|
|
@@ -14520,7 +14545,7 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
14520
14545
|
active = _ref3.active,
|
|
14521
14546
|
style = _ref3.style;
|
|
14522
14547
|
var theme = useTheme();
|
|
14523
|
-
var _React$useState =
|
|
14548
|
+
var _React$useState = React__default.useState({
|
|
14524
14549
|
hideTitle: false,
|
|
14525
14550
|
hideButton: false
|
|
14526
14551
|
}),
|
|
@@ -14529,17 +14554,17 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
14529
14554
|
setDisplayState = _React$useState2[1];
|
|
14530
14555
|
var isIconOnly = displayState.hideTitle || active || !title;
|
|
14531
14556
|
var animatedValues = {
|
|
14532
|
-
opacity:
|
|
14533
|
-
width:
|
|
14534
|
-
translateY:
|
|
14557
|
+
opacity: React__default.useRef(new Animated.Value(1)).current,
|
|
14558
|
+
width: React__default.useRef(new Animated.Value(1)).current,
|
|
14559
|
+
translateY: React__default.useRef(new Animated.Value(0)).current
|
|
14535
14560
|
};
|
|
14536
14561
|
var marginBottom = Number((_StyleSheet$flatten = StyleSheet$1.flatten(style)) === null || _StyleSheet$flatten === void 0 ? void 0 : _StyleSheet$flatten.marginBottom) || 0;
|
|
14537
|
-
var _React$useState3 =
|
|
14562
|
+
var _React$useState3 = React__default.useState(0),
|
|
14538
14563
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
14539
14564
|
buttonWidth = _React$useState4[0],
|
|
14540
14565
|
setButtonWidth = _React$useState4[1];
|
|
14541
14566
|
var hasSetButtonWidth = buttonWidth > 0;
|
|
14542
|
-
|
|
14567
|
+
React__default.useImperativeHandle(ref, function () {
|
|
14543
14568
|
return {
|
|
14544
14569
|
show: function show() {
|
|
14545
14570
|
Animated.spring(animatedValues.translateY, {
|
|
@@ -14588,7 +14613,7 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
14588
14613
|
}
|
|
14589
14614
|
};
|
|
14590
14615
|
}, []);
|
|
14591
|
-
return /*#__PURE__*/
|
|
14616
|
+
return /*#__PURE__*/React__default.createElement(StyledFAB$1, {
|
|
14592
14617
|
onLayout: function onLayout(event) {
|
|
14593
14618
|
return !hasSetButtonWidth && !active && setButtonWidth(event.nativeEvent.layout.width);
|
|
14594
14619
|
},
|
|
@@ -14605,7 +14630,7 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
14605
14630
|
}],
|
|
14606
14631
|
testID: testID,
|
|
14607
14632
|
themeActive: active
|
|
14608
|
-
}, /*#__PURE__*/
|
|
14633
|
+
}, /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
14609
14634
|
style: {
|
|
14610
14635
|
flexDirection: 'row',
|
|
14611
14636
|
opacity: animatedValues.opacity.interpolate({
|
|
@@ -14613,11 +14638,11 @@ var FAB$1 = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
14613
14638
|
outputRange: [0, 1]
|
|
14614
14639
|
})
|
|
14615
14640
|
}
|
|
14616
|
-
}, isIconOnly ? /*#__PURE__*/
|
|
14641
|
+
}, isIconOnly ? /*#__PURE__*/React__default.createElement(IconOnlyContent, {
|
|
14617
14642
|
animated: animated,
|
|
14618
14643
|
active: active,
|
|
14619
14644
|
icon: active ? 'add' : icon
|
|
14620
|
-
}) : /*#__PURE__*/
|
|
14645
|
+
}) : /*#__PURE__*/React__default.createElement(IconWithTextContent, {
|
|
14621
14646
|
icon: icon,
|
|
14622
14647
|
title: title
|
|
14623
14648
|
})));
|
|
@@ -14661,12 +14686,12 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
14661
14686
|
_ref$active = _ref.active,
|
|
14662
14687
|
active = _ref$active === void 0 ? false : _ref$active;
|
|
14663
14688
|
var theme = useTheme();
|
|
14664
|
-
var animatedValue =
|
|
14689
|
+
var animatedValue = React__default.useRef(new Animated.Value(0));
|
|
14665
14690
|
var translateY = animatedValue.current.interpolate({
|
|
14666
14691
|
inputRange: [0, 1],
|
|
14667
14692
|
outputRange: [50, 0]
|
|
14668
14693
|
});
|
|
14669
|
-
|
|
14694
|
+
React__default.useEffect(function () {
|
|
14670
14695
|
Animated.spring(animatedValue.current, {
|
|
14671
14696
|
toValue: active ? 1 : 0,
|
|
14672
14697
|
useNativeDriver: Platform.OS !== 'web',
|
|
@@ -14675,21 +14700,21 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
14675
14700
|
bounciness: 10
|
|
14676
14701
|
}).start();
|
|
14677
14702
|
}, [active, index]);
|
|
14678
|
-
return /*#__PURE__*/
|
|
14703
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
14679
14704
|
style: {
|
|
14680
14705
|
transform: [{
|
|
14681
14706
|
translateY: translateY
|
|
14682
14707
|
}]
|
|
14683
14708
|
}
|
|
14684
|
-
}, /*#__PURE__*/
|
|
14709
|
+
}, /*#__PURE__*/React__default.createElement(StyledActionItem, {
|
|
14685
14710
|
underlayColor: theme.__hd__.fab.colors.actionItemPressedBackground,
|
|
14686
14711
|
style: style,
|
|
14687
14712
|
onPress: onPress,
|
|
14688
14713
|
testID: testID
|
|
14689
|
-
}, /*#__PURE__*/
|
|
14714
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StyledIconContainer, null, /*#__PURE__*/React__default.createElement(StyledIcon, {
|
|
14690
14715
|
size: "xsmall",
|
|
14691
14716
|
icon: icon
|
|
14692
|
-
})), /*#__PURE__*/
|
|
14717
|
+
})), /*#__PURE__*/React__default.createElement(StyledActionItemText, null, title))));
|
|
14693
14718
|
};
|
|
14694
14719
|
|
|
14695
14720
|
var StyledContainer$2 = index$9(View)({
|
|
@@ -14752,7 +14777,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14752
14777
|
var theme = useTheme();
|
|
14753
14778
|
var fabRef = useRef(null);
|
|
14754
14779
|
var animatedValue = useRef(new Animated.Value(active ? 1 : 0));
|
|
14755
|
-
|
|
14780
|
+
React__default.useImperativeHandle(ref, function () {
|
|
14756
14781
|
return {
|
|
14757
14782
|
showFAB: function showFAB() {
|
|
14758
14783
|
var _fabRef$current;
|
|
@@ -14768,7 +14793,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14768
14793
|
}
|
|
14769
14794
|
};
|
|
14770
14795
|
}, [fabRef]);
|
|
14771
|
-
|
|
14796
|
+
React__default.useEffect(function () {
|
|
14772
14797
|
Animated.spring(animatedValue.current, {
|
|
14773
14798
|
toValue: active ? 1 : 0,
|
|
14774
14799
|
delay: 100,
|
|
@@ -14786,11 +14811,11 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14786
14811
|
inputRange: [0, 1],
|
|
14787
14812
|
outputRange: [0, 1]
|
|
14788
14813
|
});
|
|
14789
|
-
return /*#__PURE__*/
|
|
14814
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$2, {
|
|
14790
14815
|
testID: testID,
|
|
14791
14816
|
pointerEvents: "box-none",
|
|
14792
14817
|
style: style
|
|
14793
|
-
}, /*#__PURE__*/
|
|
14818
|
+
}, /*#__PURE__*/React__default.createElement(Animated.View, null, /*#__PURE__*/React__default.createElement(StyledFAB, {
|
|
14794
14819
|
key: "fab",
|
|
14795
14820
|
testID: "fab",
|
|
14796
14821
|
icon: fabIcon,
|
|
@@ -14799,35 +14824,35 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
14799
14824
|
active: active,
|
|
14800
14825
|
title: fabTitle,
|
|
14801
14826
|
ref: fabRef
|
|
14802
|
-
})), /*#__PURE__*/
|
|
14827
|
+
})), /*#__PURE__*/React__default.createElement(Modal$1, {
|
|
14803
14828
|
visible: active,
|
|
14804
14829
|
animationType: "fade",
|
|
14805
14830
|
transparent: true,
|
|
14806
14831
|
statusBarTranslucent: true
|
|
14807
|
-
}, /*#__PURE__*/
|
|
14832
|
+
}, /*#__PURE__*/React__default.createElement(StyledContainerInModal, {
|
|
14808
14833
|
testID: testID,
|
|
14809
14834
|
style: [style]
|
|
14810
|
-
}, /*#__PURE__*/
|
|
14835
|
+
}, /*#__PURE__*/React__default.createElement(StyledBackdrop, {
|
|
14811
14836
|
testID: "back-drop",
|
|
14812
14837
|
onPress: onBackdropPress
|
|
14813
|
-
}), /*#__PURE__*/
|
|
14838
|
+
}), /*#__PURE__*/React__default.createElement(StyledActionGroupContainer, {
|
|
14814
14839
|
testID: "action-group",
|
|
14815
14840
|
pointerEvents: "box-none",
|
|
14816
14841
|
style: {
|
|
14817
14842
|
opacity: actionGroupOpacity
|
|
14818
14843
|
}
|
|
14819
|
-
}, /*#__PURE__*/
|
|
14844
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
14820
14845
|
style: [style, {
|
|
14821
14846
|
paddingBottom: 0
|
|
14822
14847
|
}]
|
|
14823
14848
|
}, items === null || items === void 0 ? void 0 : items.map(function (itemProp, index) {
|
|
14824
|
-
return /*#__PURE__*/
|
|
14849
|
+
return /*#__PURE__*/React__default.createElement(ActionItem, _extends$1({
|
|
14825
14850
|
key: itemProp.key || "".concat(itemProp.icon, "_").concat(itemProp.title)
|
|
14826
14851
|
}, itemProp, {
|
|
14827
14852
|
index: active ? index : items.length - index,
|
|
14828
14853
|
active: active
|
|
14829
14854
|
}));
|
|
14830
|
-
}))), active && /*#__PURE__*/
|
|
14855
|
+
}))), active && /*#__PURE__*/React__default.createElement(StyledFAB
|
|
14831
14856
|
// This FAB is moved up a bit compared to the original FAB,
|
|
14832
14857
|
// set marginBottom to negative value to compensate for it
|
|
14833
14858
|
, {
|
|
@@ -14951,9 +14976,9 @@ var getIntentIcon = function getIntentIcon(intent) {
|
|
|
14951
14976
|
var ToastIcon = function ToastIcon(_ref) {
|
|
14952
14977
|
var themeIntent = _ref.themeIntent,
|
|
14953
14978
|
icon = _ref.icon;
|
|
14954
|
-
return icon ? /*#__PURE__*/
|
|
14979
|
+
return icon ? /*#__PURE__*/React__default.createElement(IconContainer, {
|
|
14955
14980
|
testID: "toast-left-icon"
|
|
14956
|
-
}, /*#__PURE__*/
|
|
14981
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
14957
14982
|
icon: icon,
|
|
14958
14983
|
size: "small",
|
|
14959
14984
|
intent: themeIntent === 'snackbar' ? 'text-inverted' : 'text'
|
|
@@ -15005,7 +15030,7 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
15005
15030
|
inputRange: [0, 1],
|
|
15006
15031
|
outputRange: toastConfig.position === 'top' ? [-20, distance] : [20, -distance]
|
|
15007
15032
|
});
|
|
15008
|
-
return /*#__PURE__*/
|
|
15033
|
+
return /*#__PURE__*/React__default.createElement(Container, {
|
|
15009
15034
|
themeVariant: variant,
|
|
15010
15035
|
themeIntent: intent,
|
|
15011
15036
|
style: [style, {
|
|
@@ -15014,21 +15039,21 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
15014
15039
|
translateY: interpolateY
|
|
15015
15040
|
}]
|
|
15016
15041
|
}]
|
|
15017
|
-
}, /*#__PURE__*/
|
|
15042
|
+
}, /*#__PURE__*/React__default.createElement(ContentContainer, {
|
|
15018
15043
|
showDivider: !!actionLabel
|
|
15019
|
-
}, icon !== null ? /*#__PURE__*/
|
|
15044
|
+
}, icon !== null ? /*#__PURE__*/React__default.createElement(ToastIcon, {
|
|
15020
15045
|
themeIntent: intent,
|
|
15021
15046
|
icon: icon || getIntentIcon(intent)
|
|
15022
|
-
}) : null, /*#__PURE__*/
|
|
15047
|
+
}) : null, /*#__PURE__*/React__default.createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
15023
15048
|
variant: "small",
|
|
15024
15049
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
15025
|
-
}, content) : content)), actionLabel ? /*#__PURE__*/
|
|
15050
|
+
}, content) : content)), actionLabel ? /*#__PURE__*/React__default.createElement(CTAWrapper, {
|
|
15026
15051
|
testID: "toast-action-button",
|
|
15027
15052
|
onPress: function onPress() {
|
|
15028
15053
|
onAction === null || onAction === void 0 || onAction();
|
|
15029
15054
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
15030
15055
|
}
|
|
15031
|
-
}, typeof actionLabel === 'string' ? /*#__PURE__*/
|
|
15056
|
+
}, typeof actionLabel === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
15032
15057
|
variant: "small-bold",
|
|
15033
15058
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
15034
15059
|
}, actionLabel) : actionLabel) : null);
|
|
@@ -15042,7 +15067,7 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
15042
15067
|
setToastList = _ref.setToastList;
|
|
15043
15068
|
var theme = useTheme$1();
|
|
15044
15069
|
var toast = toastList[toastList.length - 1];
|
|
15045
|
-
return toast ? /*#__PURE__*/
|
|
15070
|
+
return toast ? /*#__PURE__*/React__default.createElement(Toast$1, _extends$1({}, toast.props, {
|
|
15046
15071
|
key: toast.id,
|
|
15047
15072
|
style: {
|
|
15048
15073
|
marginBottom: theme.space.small
|
|
@@ -15058,7 +15083,7 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
15058
15083
|
}
|
|
15059
15084
|
})) : null;
|
|
15060
15085
|
};
|
|
15061
|
-
var ToastContainer = /*#__PURE__*/
|
|
15086
|
+
var ToastContainer = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
|
|
15062
15087
|
var _ref2$displayType = _ref2.displayType,
|
|
15063
15088
|
displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
|
|
15064
15089
|
_ref2$position = _ref2.position,
|
|
@@ -15093,17 +15118,17 @@ var ToastContainer = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
15093
15118
|
}
|
|
15094
15119
|
};
|
|
15095
15120
|
});
|
|
15096
|
-
return /*#__PURE__*/
|
|
15121
|
+
return /*#__PURE__*/React__default.createElement(ToastContainerWrapper, {
|
|
15097
15122
|
pointerEvents: "box-none",
|
|
15098
15123
|
position: position,
|
|
15099
15124
|
style: style
|
|
15100
|
-
}, displayType === 'single' ? /*#__PURE__*/
|
|
15125
|
+
}, displayType === 'single' ? /*#__PURE__*/React__default.createElement(SingleToastDisplay, {
|
|
15101
15126
|
toastList: toastList,
|
|
15102
15127
|
setToastList: setToastList
|
|
15103
15128
|
}) : toastList.map(function (_ref3) {
|
|
15104
15129
|
var id = _ref3.id,
|
|
15105
15130
|
props = _ref3.props;
|
|
15106
|
-
return /*#__PURE__*/
|
|
15131
|
+
return /*#__PURE__*/React__default.createElement(Toast$1, _extends$1({}, props, {
|
|
15107
15132
|
key: id,
|
|
15108
15133
|
style: {
|
|
15109
15134
|
marginBottom: theme.space.small
|
|
@@ -15145,15 +15170,15 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
15145
15170
|
position: position
|
|
15146
15171
|
};
|
|
15147
15172
|
}, [displayType, position]);
|
|
15148
|
-
return /*#__PURE__*/
|
|
15173
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
15149
15174
|
value: refState || fallbackToastControlContext
|
|
15150
|
-
}, /*#__PURE__*/
|
|
15175
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
15151
15176
|
style: {
|
|
15152
15177
|
flex: 1
|
|
15153
15178
|
}
|
|
15154
|
-
}, refState ? children : null, /*#__PURE__*/
|
|
15179
|
+
}, refState ? children : null, /*#__PURE__*/React__default.createElement(ToastConfigContext.Provider, {
|
|
15155
15180
|
value: config
|
|
15156
|
-
}, /*#__PURE__*/
|
|
15181
|
+
}, /*#__PURE__*/React__default.createElement(ToastContainer, {
|
|
15157
15182
|
ref: toastRef,
|
|
15158
15183
|
displayType: displayType,
|
|
15159
15184
|
position: position
|
|
@@ -15169,9 +15194,9 @@ var Toast = {
|
|
|
15169
15194
|
var HeroDesignProvider = function HeroDesignProvider(_ref) {
|
|
15170
15195
|
var theme = _ref.theme,
|
|
15171
15196
|
children = _ref.children;
|
|
15172
|
-
return /*#__PURE__*/
|
|
15197
|
+
return /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
15173
15198
|
theme: theme
|
|
15174
|
-
}, /*#__PURE__*/
|
|
15199
|
+
}, /*#__PURE__*/React__default.createElement(Toast.Provider, null, /*#__PURE__*/React__default.createElement(Portal$1.Provider, null, children)));
|
|
15175
15200
|
};
|
|
15176
15201
|
|
|
15177
15202
|
var StyledListItemContainer$1 = index$9(TouchableHighlight)(function (_ref) {
|
|
@@ -15261,7 +15286,7 @@ var ListItem = function ListItem(_ref) {
|
|
|
15261
15286
|
_ref$disabled = _ref.disabled,
|
|
15262
15287
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
15263
15288
|
var theme = useTheme();
|
|
15264
|
-
return /*#__PURE__*/
|
|
15289
|
+
return /*#__PURE__*/React__default.createElement(StyledListItemContainer$1, {
|
|
15265
15290
|
style: style,
|
|
15266
15291
|
testID: testID,
|
|
15267
15292
|
themeSelected: selected,
|
|
@@ -15269,26 +15294,26 @@ var ListItem = function ListItem(_ref) {
|
|
|
15269
15294
|
onPress: onPress,
|
|
15270
15295
|
disabled: disabled,
|
|
15271
15296
|
underlayColor: theme.__hd__.list.colors.checkedListItemContainerBackground
|
|
15272
|
-
}, /*#__PURE__*/
|
|
15297
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, leadingStatus && /*#__PURE__*/React__default.createElement(StyledLeadingStatus, {
|
|
15273
15298
|
themeLeadingStatusIntent: leadingStatus,
|
|
15274
15299
|
testID: "leadingStatus"
|
|
15275
|
-
}), /*#__PURE__*/
|
|
15300
|
+
}), /*#__PURE__*/React__default.createElement(StyledContentContainer, null, /*#__PURE__*/React__default.createElement(View, {
|
|
15276
15301
|
style: {
|
|
15277
15302
|
flexDirection: 'row',
|
|
15278
15303
|
alignItems: 'center'
|
|
15279
15304
|
}
|
|
15280
|
-
}, prefix && /*#__PURE__*/
|
|
15305
|
+
}, prefix && /*#__PURE__*/React__default.createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
15281
15306
|
icon: prefix,
|
|
15282
15307
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
15283
|
-
}) : prefix), /*#__PURE__*/
|
|
15308
|
+
}) : prefix), /*#__PURE__*/React__default.createElement(StyledTitleContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
15284
15309
|
intent: "body"
|
|
15285
|
-
}, title) : title, !!subtitle && /*#__PURE__*/
|
|
15310
|
+
}, title) : title, !!subtitle && /*#__PURE__*/React__default.createElement(Typography.Caption, {
|
|
15286
15311
|
intent: "subdued"
|
|
15287
|
-
}, subtitle)), suffix && /*#__PURE__*/
|
|
15312
|
+
}, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
15288
15313
|
icon: suffix,
|
|
15289
15314
|
intent: disabled ? 'disabled-text' : 'primary',
|
|
15290
15315
|
size: "small"
|
|
15291
|
-
}) : suffix)), children && /*#__PURE__*/
|
|
15316
|
+
}) : suffix)), children && /*#__PURE__*/React__default.createElement(StyledChildrenContainer, null, children))));
|
|
15292
15317
|
};
|
|
15293
15318
|
|
|
15294
15319
|
var StyledPrefixContainer = index$9(View)(function (_ref) {
|
|
@@ -15335,7 +15360,7 @@ var BasicListItem = function BasicListItem(_ref) {
|
|
|
15335
15360
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15336
15361
|
onPress = _ref.onPress;
|
|
15337
15362
|
var theme = useTheme();
|
|
15338
|
-
return /*#__PURE__*/
|
|
15363
|
+
return /*#__PURE__*/React__default.createElement(StyledListItemContainer, {
|
|
15339
15364
|
style: style,
|
|
15340
15365
|
testID: testID,
|
|
15341
15366
|
themeSelected: selected,
|
|
@@ -15343,14 +15368,14 @@ var BasicListItem = function BasicListItem(_ref) {
|
|
|
15343
15368
|
onPress: onPress,
|
|
15344
15369
|
disabled: disabled,
|
|
15345
15370
|
underlayColor: theme.__hd__.list.colors.checkedListItemContainerBackground
|
|
15346
|
-
}, /*#__PURE__*/
|
|
15371
|
+
}, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, prefix && /*#__PURE__*/React__default.createElement(StyledPrefixContainer, null, typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
15347
15372
|
icon: prefix,
|
|
15348
15373
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
15349
|
-
}) : prefix), /*#__PURE__*/
|
|
15374
|
+
}) : prefix), /*#__PURE__*/React__default.createElement(StyledTitleContainer, null, typeof title === 'string' ? /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
15350
15375
|
intent: "body"
|
|
15351
|
-
}, title) : title, subtitle && /*#__PURE__*/
|
|
15376
|
+
}, title) : title, subtitle && /*#__PURE__*/React__default.createElement(Typography.Caption, {
|
|
15352
15377
|
intent: "subdued"
|
|
15353
|
-
}, subtitle)), suffix && /*#__PURE__*/
|
|
15378
|
+
}, subtitle)), suffix && /*#__PURE__*/React__default.createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
15354
15379
|
icon: suffix,
|
|
15355
15380
|
size: "small",
|
|
15356
15381
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
@@ -15460,16 +15485,16 @@ function PinCell(_ref) {
|
|
|
15460
15485
|
focused = _ref$focused === void 0 ? false : _ref$focused,
|
|
15461
15486
|
_ref$state = _ref.state,
|
|
15462
15487
|
state = _ref$state === void 0 ? 'default' : _ref$state;
|
|
15463
|
-
return /*#__PURE__*/
|
|
15488
|
+
return /*#__PURE__*/React__default.createElement(StyledCell, {
|
|
15464
15489
|
themeFocused: focused,
|
|
15465
15490
|
themeState: state
|
|
15466
|
-
}, value === '' && /*#__PURE__*/
|
|
15491
|
+
}, value === '' && /*#__PURE__*/React__default.createElement(StyledMask, {
|
|
15467
15492
|
themeState: state,
|
|
15468
15493
|
testID: "pin-cell-mask"
|
|
15469
|
-
}), value !== '' && secure && /*#__PURE__*/
|
|
15494
|
+
}), value !== '' && secure && /*#__PURE__*/React__default.createElement(StyledFilledMask, {
|
|
15470
15495
|
themeState: state,
|
|
15471
15496
|
testID: "pin-cell-filled-mask"
|
|
15472
|
-
}), value !== '' && !secure && /*#__PURE__*/
|
|
15497
|
+
}), value !== '' && !secure && /*#__PURE__*/React__default.createElement(StyledCellText, {
|
|
15473
15498
|
themeState: state,
|
|
15474
15499
|
level: "h3"
|
|
15475
15500
|
}, value));
|
|
@@ -15542,24 +15567,24 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
15542
15567
|
blur: blur
|
|
15543
15568
|
};
|
|
15544
15569
|
});
|
|
15545
|
-
return /*#__PURE__*/
|
|
15570
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$5, {
|
|
15546
15571
|
style: style,
|
|
15547
15572
|
testID: testID
|
|
15548
|
-
}, /*#__PURE__*/
|
|
15549
|
-
return /*#__PURE__*/
|
|
15573
|
+
}, /*#__PURE__*/React__default.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
15574
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
15550
15575
|
key: index
|
|
15551
|
-
}, index !== 0 && /*#__PURE__*/
|
|
15576
|
+
}, index !== 0 && /*#__PURE__*/React__default.createElement(StyledSpacer, null), /*#__PURE__*/React__default.createElement(PinCell, {
|
|
15552
15577
|
value: value.charAt(index),
|
|
15553
15578
|
secure: secure,
|
|
15554
15579
|
focused: focused && index === value.length,
|
|
15555
15580
|
state: state
|
|
15556
15581
|
}));
|
|
15557
|
-
})), state === 'error' && /*#__PURE__*/
|
|
15582
|
+
})), state === 'error' && /*#__PURE__*/React__default.createElement(StyledErrorContainer, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
15558
15583
|
icon: "circle-info",
|
|
15559
15584
|
size: "xsmall",
|
|
15560
15585
|
intent: "danger",
|
|
15561
15586
|
testID: "pin-error-icon"
|
|
15562
|
-
}), /*#__PURE__*/
|
|
15587
|
+
}), /*#__PURE__*/React__default.createElement(StyledErrorMessage, null, error)), /*#__PURE__*/React__default.createElement(StyledHiddenInput, {
|
|
15563
15588
|
themePinLength: length,
|
|
15564
15589
|
ref: inputRef,
|
|
15565
15590
|
value: value,
|
|
@@ -15664,9 +15689,9 @@ var _excluded$e = ["value", "renderValue", "intent", "style", "testID"];
|
|
|
15664
15689
|
var HalfCircle = function HalfCircle(_ref) {
|
|
15665
15690
|
var type = _ref.type,
|
|
15666
15691
|
themeIntent = _ref.themeIntent;
|
|
15667
|
-
return /*#__PURE__*/
|
|
15692
|
+
return /*#__PURE__*/React__default.createElement(StyledHalfCircleWrapper, null, type === 'background' ? /*#__PURE__*/React__default.createElement(StyledHalfCircleInnerBG, {
|
|
15668
15693
|
themeIntent: themeIntent
|
|
15669
|
-
}) : /*#__PURE__*/
|
|
15694
|
+
}) : /*#__PURE__*/React__default.createElement(StyledHalfCircleInnerFG, {
|
|
15670
15695
|
themeIntent: themeIntent
|
|
15671
15696
|
}));
|
|
15672
15697
|
};
|
|
@@ -15718,13 +15743,13 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15718
15743
|
outputRange: ['0deg', '360deg'],
|
|
15719
15744
|
extrapolate: 'clamp'
|
|
15720
15745
|
});
|
|
15721
|
-
return /*#__PURE__*/
|
|
15746
|
+
return /*#__PURE__*/React__default.createElement(View, _extends$1({}, nativeProps, {
|
|
15722
15747
|
testID: testID,
|
|
15723
15748
|
style: style
|
|
15724
|
-
}), /*#__PURE__*/
|
|
15749
|
+
}), /*#__PURE__*/React__default.createElement(StyledContainer$1, null, /*#__PURE__*/React__default.createElement(View, null, /*#__PURE__*/React__default.createElement(HalfCircle, {
|
|
15725
15750
|
type: "foreground",
|
|
15726
15751
|
themeIntent: intent
|
|
15727
|
-
}), /*#__PURE__*/
|
|
15752
|
+
}), /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
15728
15753
|
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15729
15754
|
transform: [{
|
|
15730
15755
|
translateX: radius / 2
|
|
@@ -15734,10 +15759,10 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15734
15759
|
translateX: -radius / 2
|
|
15735
15760
|
}]
|
|
15736
15761
|
})
|
|
15737
|
-
}, /*#__PURE__*/
|
|
15762
|
+
}, /*#__PURE__*/React__default.createElement(HalfCircle, {
|
|
15738
15763
|
type: "background",
|
|
15739
15764
|
themeIntent: intent
|
|
15740
|
-
}))), /*#__PURE__*/
|
|
15765
|
+
}))), /*#__PURE__*/React__default.createElement(View, {
|
|
15741
15766
|
style: {
|
|
15742
15767
|
transform: [{
|
|
15743
15768
|
rotate: '180deg'
|
|
@@ -15745,10 +15770,10 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15745
15770
|
zIndex: 1,
|
|
15746
15771
|
marginLeft: -0.1
|
|
15747
15772
|
}
|
|
15748
|
-
}, /*#__PURE__*/
|
|
15773
|
+
}, /*#__PURE__*/React__default.createElement(HalfCircle, {
|
|
15749
15774
|
type: "foreground",
|
|
15750
15775
|
themeIntent: intent
|
|
15751
|
-
}), /*#__PURE__*/
|
|
15776
|
+
}), /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
15752
15777
|
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15753
15778
|
transform: [{
|
|
15754
15779
|
translateX: radius / 2
|
|
@@ -15759,21 +15784,21 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15759
15784
|
}],
|
|
15760
15785
|
opacity: interpolateOpacityRightHalf
|
|
15761
15786
|
})
|
|
15762
|
-
}, /*#__PURE__*/
|
|
15787
|
+
}, /*#__PURE__*/React__default.createElement(HalfCircle, {
|
|
15763
15788
|
type: "background",
|
|
15764
15789
|
themeIntent: intent
|
|
15765
|
-
}))), /*#__PURE__*/
|
|
15790
|
+
}))), /*#__PURE__*/React__default.createElement(StyledStrokeEnd, {
|
|
15766
15791
|
themeIntent: intent
|
|
15767
|
-
}), /*#__PURE__*/
|
|
15792
|
+
}), /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
15768
15793
|
style: _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15769
15794
|
zIndex: 2,
|
|
15770
15795
|
transform: [{
|
|
15771
15796
|
rotate: interpolateDotRotate
|
|
15772
15797
|
}]
|
|
15773
15798
|
})
|
|
15774
|
-
}, /*#__PURE__*/
|
|
15799
|
+
}, /*#__PURE__*/React__default.createElement(StyledStrokeEnd, {
|
|
15775
15800
|
themeIntent: intent
|
|
15776
|
-
})), /*#__PURE__*/
|
|
15801
|
+
})), /*#__PURE__*/React__default.createElement(StyledDonutCircle, null, /*#__PURE__*/React__default.createElement(Typography.Body, null, renderValue(value)))));
|
|
15777
15802
|
};
|
|
15778
15803
|
|
|
15779
15804
|
var StyledWrapper$4 = index$9(View)(function (_ref) {
|
|
@@ -15830,11 +15855,11 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
15830
15855
|
outputRange: [999, 0],
|
|
15831
15856
|
extrapolate: 'clamp'
|
|
15832
15857
|
});
|
|
15833
|
-
return /*#__PURE__*/
|
|
15858
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper$4, _extends$1({}, nativeProps, {
|
|
15834
15859
|
testID: testID,
|
|
15835
15860
|
style: style,
|
|
15836
15861
|
themeIntent: intent
|
|
15837
|
-
}), /*#__PURE__*/
|
|
15862
|
+
}), /*#__PURE__*/React__default.createElement(StyledInner, {
|
|
15838
15863
|
themeIntent: intent,
|
|
15839
15864
|
onLayout: function onLayout(_ref2) {
|
|
15840
15865
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -15872,7 +15897,7 @@ var Slider = function Slider(_ref) {
|
|
|
15872
15897
|
style = _ref.style,
|
|
15873
15898
|
testID = _ref.testID;
|
|
15874
15899
|
var theme = useTheme();
|
|
15875
|
-
return /*#__PURE__*/
|
|
15900
|
+
return /*#__PURE__*/React__default.createElement(RnSlider, {
|
|
15876
15901
|
minimumValue: minimumValue,
|
|
15877
15902
|
maximumValue: maximumValue,
|
|
15878
15903
|
step: step,
|
|
@@ -15974,23 +15999,23 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
15974
15999
|
themeSize: size,
|
|
15975
16000
|
themeIntent: intent
|
|
15976
16001
|
};
|
|
15977
|
-
return /*#__PURE__*/
|
|
16002
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
15978
16003
|
style: StyleSheet$1.flatten([{
|
|
15979
16004
|
transform: [{
|
|
15980
16005
|
rotate: interpolatedRotateAnimation
|
|
15981
16006
|
}]
|
|
15982
16007
|
}])
|
|
15983
|
-
}, /*#__PURE__*/
|
|
16008
|
+
}, /*#__PURE__*/React__default.createElement(AnimatedRow, _extends$1({
|
|
15984
16009
|
themePosition: "top"
|
|
15985
|
-
}, rowProps), /*#__PURE__*/
|
|
16010
|
+
}, rowProps), /*#__PURE__*/React__default.createElement(AnimatedDot, _extends$1({
|
|
15986
16011
|
themePosition: "topLeft"
|
|
15987
|
-
}, dotProps)), /*#__PURE__*/
|
|
16012
|
+
}, dotProps)), /*#__PURE__*/React__default.createElement(AnimatedDot, _extends$1({
|
|
15988
16013
|
themePosition: "topRight"
|
|
15989
|
-
}, dotProps))), /*#__PURE__*/
|
|
16014
|
+
}, dotProps))), /*#__PURE__*/React__default.createElement(AnimatedRow, _extends$1({
|
|
15990
16015
|
themePosition: "bottom"
|
|
15991
|
-
}, rowProps), /*#__PURE__*/
|
|
16016
|
+
}, rowProps), /*#__PURE__*/React__default.createElement(AnimatedDot, _extends$1({
|
|
15992
16017
|
themePosition: "bottomLeft"
|
|
15993
|
-
}, dotProps)), /*#__PURE__*/
|
|
16018
|
+
}, dotProps)), /*#__PURE__*/React__default.createElement(AnimatedDot, _extends$1({
|
|
15994
16019
|
themePosition: "bottomRight"
|
|
15995
16020
|
}, dotProps))));
|
|
15996
16021
|
};
|
|
@@ -16003,9 +16028,9 @@ var Spinner = function Spinner(_ref) {
|
|
|
16003
16028
|
_ref$intent = _ref.intent,
|
|
16004
16029
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16005
16030
|
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
16006
|
-
return /*#__PURE__*/
|
|
16031
|
+
return /*#__PURE__*/React__default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default.createElement(StyledSpinnerContainer, {
|
|
16007
16032
|
testID: testID
|
|
16008
|
-
}, /*#__PURE__*/
|
|
16033
|
+
}, /*#__PURE__*/React__default.createElement(AnimatedSpinner, {
|
|
16009
16034
|
size: size,
|
|
16010
16035
|
intent: intent
|
|
16011
16036
|
})));
|
|
@@ -16027,7 +16052,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
16027
16052
|
style = _ref.style,
|
|
16028
16053
|
children = _ref.children,
|
|
16029
16054
|
testID = _ref.testID;
|
|
16030
|
-
return /*#__PURE__*/
|
|
16055
|
+
return /*#__PURE__*/React__default.createElement(StyledRectButton, {
|
|
16031
16056
|
onPress: onPress,
|
|
16032
16057
|
themeIntent: intent,
|
|
16033
16058
|
style: style,
|
|
@@ -16042,7 +16067,7 @@ var renderActions = function renderActions(actions, width, progress, direction)
|
|
|
16042
16067
|
outputRange: direction === 'left' ? [-width, 0] : [width, 0],
|
|
16043
16068
|
extrapolate: 'clamp'
|
|
16044
16069
|
});
|
|
16045
|
-
return /*#__PURE__*/
|
|
16070
|
+
return /*#__PURE__*/React__default.createElement(Animated.View, {
|
|
16046
16071
|
style: {
|
|
16047
16072
|
width: width,
|
|
16048
16073
|
flexDirection: 'row',
|
|
@@ -16069,7 +16094,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16069
16094
|
var _useWindowDimensions = useWindowDimensions(),
|
|
16070
16095
|
width = _useWindowDimensions.width;
|
|
16071
16096
|
var swipeableRef = useRef(null);
|
|
16072
|
-
var _React$useState =
|
|
16097
|
+
var _React$useState = React__default.useState(0),
|
|
16073
16098
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
16074
16099
|
containerWidth = _React$useState2[0],
|
|
16075
16100
|
setContainerWidth = _React$useState2[1];
|
|
@@ -16093,11 +16118,11 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16093
16118
|
break;
|
|
16094
16119
|
}
|
|
16095
16120
|
}, [state]);
|
|
16096
|
-
return /*#__PURE__*/
|
|
16121
|
+
return /*#__PURE__*/React__default.createElement(GestureHandlerRootView, null, /*#__PURE__*/React__default.createElement(Box, {
|
|
16097
16122
|
onLayout: function onLayout(e) {
|
|
16098
16123
|
return setContainerWidth(e.nativeEvent.layout.width);
|
|
16099
16124
|
}
|
|
16100
|
-
}, /*#__PURE__*/
|
|
16125
|
+
}, /*#__PURE__*/React__default.createElement(Swipeable$1, _extends$1({}, swipeableProps, {
|
|
16101
16126
|
ref: swipeableRef
|
|
16102
16127
|
}, leftActions !== undefined && {
|
|
16103
16128
|
renderLeftActions: renderLeftActions
|
|
@@ -16169,7 +16194,7 @@ var StyledRadio = index$9(List.Item)(function (_ref4) {
|
|
|
16169
16194
|
var RadioCircle = function RadioCircle(_ref) {
|
|
16170
16195
|
var checked = _ref.checked,
|
|
16171
16196
|
text = _ref.text;
|
|
16172
|
-
return /*#__PURE__*/
|
|
16197
|
+
return /*#__PURE__*/React__default.createElement(Circle, null, checked && /*#__PURE__*/React__default.createElement(InnerCircle, {
|
|
16173
16198
|
testID: "".concat(text, "-selected-circle")
|
|
16174
16199
|
}));
|
|
16175
16200
|
};
|
|
@@ -16183,12 +16208,12 @@ var Radio = function Radio(_ref2) {
|
|
|
16183
16208
|
testID = _ref2.testID,
|
|
16184
16209
|
_ref2$inactiveIntent = _ref2.inactiveIntent,
|
|
16185
16210
|
inactiveIntent = _ref2$inactiveIntent === void 0 ? 'light' : _ref2$inactiveIntent;
|
|
16186
|
-
return /*#__PURE__*/
|
|
16211
|
+
return /*#__PURE__*/React__default.createElement(StyledRadio, {
|
|
16187
16212
|
onPress: onPress,
|
|
16188
16213
|
selected: checked,
|
|
16189
16214
|
title: text,
|
|
16190
16215
|
subtitle: subText,
|
|
16191
|
-
suffix: /*#__PURE__*/
|
|
16216
|
+
suffix: /*#__PURE__*/React__default.createElement(RadioCircle, {
|
|
16192
16217
|
checked: checked,
|
|
16193
16218
|
text: text
|
|
16194
16219
|
}),
|
|
@@ -16219,15 +16244,15 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
16219
16244
|
testID = _ref.testID,
|
|
16220
16245
|
_ref$inactiveIntent = _ref.inactiveIntent,
|
|
16221
16246
|
inactiveIntent = _ref$inactiveIntent === void 0 ? 'light' : _ref$inactiveIntent;
|
|
16222
|
-
return /*#__PURE__*/
|
|
16247
|
+
return /*#__PURE__*/React__default.createElement(View, {
|
|
16223
16248
|
style: style,
|
|
16224
16249
|
testID: testID
|
|
16225
16250
|
}, options.map(function (option, index) {
|
|
16226
|
-
return /*#__PURE__*/
|
|
16251
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
16227
16252
|
key: getKey(option, index, keyExtractor)
|
|
16228
|
-
}, index !== 0 && /*#__PURE__*/
|
|
16253
|
+
}, index !== 0 && /*#__PURE__*/React__default.createElement(Spacer, {
|
|
16229
16254
|
themeIntent: inactiveIntent
|
|
16230
|
-
}), /*#__PURE__*/
|
|
16255
|
+
}), /*#__PURE__*/React__default.createElement(Radio, {
|
|
16231
16256
|
text: option.text,
|
|
16232
16257
|
subText: option.subText,
|
|
16233
16258
|
checked: option.value === value,
|
|
@@ -16296,20 +16321,20 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
16296
16321
|
testID = _ref.testID;
|
|
16297
16322
|
useDeprecation("SectionHeading's fontSize prop is deprecated and will be removed in the next major release, please remove it.", fontSize !== undefined);
|
|
16298
16323
|
useDeprecation("SectionHeading's fontWeight prop is deprecated and will be removed in the next major release, please remove it.", fontWeight !== undefined);
|
|
16299
|
-
return /*#__PURE__*/
|
|
16324
|
+
return /*#__PURE__*/React__default.createElement(StyledHeading, {
|
|
16300
16325
|
themeSize: size,
|
|
16301
16326
|
style: style,
|
|
16302
16327
|
testID: testID
|
|
16303
|
-
}, /*#__PURE__*/
|
|
16328
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$3, null, /*#__PURE__*/React__default.createElement(StyledIconWrapper$2, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
16304
16329
|
icon: icon,
|
|
16305
16330
|
size: ICON_SIZE_MAP[size],
|
|
16306
16331
|
intent: ICON_INTENT_MAP[intent]
|
|
16307
|
-
}) : /*#__PURE__*/
|
|
16332
|
+
}) : /*#__PURE__*/React__default.cloneElement(icon, _objectSpread2({
|
|
16308
16333
|
size: ICON_SIZE_MAP[size],
|
|
16309
16334
|
intent: ICON_INTENT_MAP[intent]
|
|
16310
|
-
}, icon.props)))), size === 'small' ? /*#__PURE__*/
|
|
16335
|
+
}, icon.props)))), size === 'small' ? /*#__PURE__*/React__default.createElement(Typography.Caption, {
|
|
16311
16336
|
intent: intent
|
|
16312
|
-
}, text) : /*#__PURE__*/
|
|
16337
|
+
}, text) : /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
16313
16338
|
variant: "small",
|
|
16314
16339
|
intent: intent
|
|
16315
16340
|
}, text)), rightChildren);
|
|
@@ -16318,7 +16343,7 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
16318
16343
|
var Footer = function Footer(_ref) {
|
|
16319
16344
|
var label = _ref.label,
|
|
16320
16345
|
onPress = _ref.onPress;
|
|
16321
|
-
return /*#__PURE__*/
|
|
16346
|
+
return /*#__PURE__*/React__default.createElement(CompoundButton, {
|
|
16322
16347
|
variant: "text",
|
|
16323
16348
|
text: label,
|
|
16324
16349
|
onPress: onPress
|
|
@@ -16429,7 +16454,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
16429
16454
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16430
16455
|
onEndReachedCalled = _useState2[0],
|
|
16431
16456
|
setOnEndReachedCalled = _useState2[1];
|
|
16432
|
-
return /*#__PURE__*/
|
|
16457
|
+
return /*#__PURE__*/React__default.createElement(StyledSectionList, _extends$1({
|
|
16433
16458
|
ref: sectionListRef,
|
|
16434
16459
|
style: _objectSpread2({}, onQueryChange ? {
|
|
16435
16460
|
height: Dimensions.get('screen').height
|
|
@@ -16444,16 +16469,16 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
16444
16469
|
if (onEndReached && onEndReachedCalled && !loading) onEndReached();
|
|
16445
16470
|
setOnEndReachedCalled(false);
|
|
16446
16471
|
},
|
|
16447
|
-
ListFooterComponent: loading ? /*#__PURE__*/
|
|
16472
|
+
ListFooterComponent: loading ? /*#__PURE__*/React__default.createElement(View, {
|
|
16448
16473
|
style: {
|
|
16449
16474
|
display: 'flex',
|
|
16450
16475
|
alignItems: 'center',
|
|
16451
16476
|
height: theme.space.xxxxlarge
|
|
16452
16477
|
}
|
|
16453
|
-
}, /*#__PURE__*/
|
|
16478
|
+
}, /*#__PURE__*/React__default.createElement(Spinner, null)) : null,
|
|
16454
16479
|
renderSectionHeader: function renderSectionHeader(_ref2) {
|
|
16455
16480
|
var category = _ref2.section.category;
|
|
16456
|
-
return category !== '' ? /*#__PURE__*/
|
|
16481
|
+
return category !== '' ? /*#__PURE__*/React__default.createElement(SectionHeading, {
|
|
16457
16482
|
text: category,
|
|
16458
16483
|
style: {
|
|
16459
16484
|
marginBottom: 0
|
|
@@ -16480,7 +16505,7 @@ var Option$2 = function Option(_ref) {
|
|
|
16480
16505
|
disabled: disabled,
|
|
16481
16506
|
onPress: onPress,
|
|
16482
16507
|
title: text,
|
|
16483
|
-
suffix: selected === true ? /*#__PURE__*/
|
|
16508
|
+
suffix: selected === true ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
16484
16509
|
testID: typeof text === 'string' ? "selected-icon-".concat(text) : undefined,
|
|
16485
16510
|
icon: "checkmark",
|
|
16486
16511
|
intent: disabled ? 'disabled-text' : 'primary',
|
|
@@ -16490,7 +16515,7 @@ var Option$2 = function Option(_ref) {
|
|
|
16490
16515
|
}
|
|
16491
16516
|
}) : undefined
|
|
16492
16517
|
};
|
|
16493
|
-
return highlighted === true ? /*#__PURE__*/
|
|
16518
|
+
return highlighted === true ? /*#__PURE__*/React__default.createElement(List.Item, props) : /*#__PURE__*/React__default.createElement(List.BasicItem, props);
|
|
16494
16519
|
};
|
|
16495
16520
|
|
|
16496
16521
|
var _excluded$9 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
@@ -16520,7 +16545,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
16520
16545
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
16521
16546
|
selected: selected,
|
|
16522
16547
|
onPress: onItemPress
|
|
16523
|
-
})) : /*#__PURE__*/
|
|
16548
|
+
})) : /*#__PURE__*/React__default.createElement(Option$2, {
|
|
16524
16549
|
selected: selected,
|
|
16525
16550
|
text: item.text,
|
|
16526
16551
|
disabled: item.disabled,
|
|
@@ -16528,7 +16553,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
16528
16553
|
highlighted: item.highlighted
|
|
16529
16554
|
});
|
|
16530
16555
|
};
|
|
16531
|
-
return /*#__PURE__*/
|
|
16556
|
+
return /*#__PURE__*/React__default.createElement(BaseOptionList, _extends$1({
|
|
16532
16557
|
keyExtractor: keyExtractor,
|
|
16533
16558
|
loading: loading,
|
|
16534
16559
|
onEndReached: onEndReached,
|
|
@@ -16585,15 +16610,15 @@ function MultiSelect(_ref) {
|
|
|
16585
16610
|
useEffect(function () {
|
|
16586
16611
|
setSelectingValue(value);
|
|
16587
16612
|
}, [open, value]);
|
|
16588
|
-
return /*#__PURE__*/
|
|
16613
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(View, {
|
|
16589
16614
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
16590
|
-
}, /*#__PURE__*/
|
|
16615
|
+
}, /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
16591
16616
|
onPress: function onPress() {
|
|
16592
16617
|
return setOpen(true);
|
|
16593
16618
|
}
|
|
16594
|
-
}, /*#__PURE__*/
|
|
16619
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
16595
16620
|
pointerEvents: "none"
|
|
16596
|
-
}, /*#__PURE__*/
|
|
16621
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
16597
16622
|
label: label,
|
|
16598
16623
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
16599
16624
|
suffix: "arrow-down",
|
|
@@ -16608,7 +16633,7 @@ function MultiSelect(_ref) {
|
|
|
16608
16633
|
renderInputValue: renderSelectedValue !== undefined && (rawValue === null || rawValue === void 0 ? void 0 : rawValue.length) > 0 ? function (props) {
|
|
16609
16634
|
return renderSelectedValue(value, props);
|
|
16610
16635
|
} : undefined
|
|
16611
|
-
}))))), /*#__PURE__*/
|
|
16636
|
+
}))))), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
|
|
16612
16637
|
open: open,
|
|
16613
16638
|
onRequestClose: function onRequestClose() {
|
|
16614
16639
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
@@ -16618,13 +16643,13 @@ function MultiSelect(_ref) {
|
|
|
16618
16643
|
style: {
|
|
16619
16644
|
paddingBottom: isKeyboardVisible ? keyboardHeight : 0
|
|
16620
16645
|
},
|
|
16621
|
-
footer: typeof footerLabel === 'string' ? /*#__PURE__*/
|
|
16646
|
+
footer: typeof footerLabel === 'string' ? /*#__PURE__*/React__default.createElement(Footer, {
|
|
16622
16647
|
label: footerLabel,
|
|
16623
16648
|
onPress: function onPress() {
|
|
16624
16649
|
setOpen(false);
|
|
16625
16650
|
onConfirm(selectingValue);
|
|
16626
16651
|
}
|
|
16627
|
-
}) : /*#__PURE__*/
|
|
16652
|
+
}) : /*#__PURE__*/React__default.createElement(Box, {
|
|
16628
16653
|
flex: 1,
|
|
16629
16654
|
flexDirection: "row",
|
|
16630
16655
|
justifyContent: "flex-end"
|
|
@@ -16641,13 +16666,13 @@ function MultiSelect(_ref) {
|
|
|
16641
16666
|
(_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 || _sectionListRef$curre.scrollToLocation(scrollParams);
|
|
16642
16667
|
}
|
|
16643
16668
|
}
|
|
16644
|
-
}, onQueryChange && /*#__PURE__*/
|
|
16669
|
+
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
16645
16670
|
editable: true,
|
|
16646
16671
|
placeholder: "Search",
|
|
16647
16672
|
suffix: "search-outlined",
|
|
16648
16673
|
onChangeText: onQueryChange,
|
|
16649
16674
|
value: query
|
|
16650
|
-
})), /*#__PURE__*/
|
|
16675
|
+
})), /*#__PURE__*/React__default.createElement(OptionList$1, {
|
|
16651
16676
|
onQueryChange: onQueryChange,
|
|
16652
16677
|
onEndReached: onEndReached,
|
|
16653
16678
|
loading: loading,
|
|
@@ -16682,7 +16707,7 @@ var Option$1 = function Option(_ref) {
|
|
|
16682
16707
|
onPress: onPress,
|
|
16683
16708
|
title: text
|
|
16684
16709
|
};
|
|
16685
|
-
return highlighted === true ? /*#__PURE__*/
|
|
16710
|
+
return highlighted === true ? /*#__PURE__*/React__default.createElement(List.Item, props) : /*#__PURE__*/React__default.createElement(List.BasicItem, props);
|
|
16686
16711
|
};
|
|
16687
16712
|
|
|
16688
16713
|
var StyledOptionList = index$9(BaseOptionList)(function (_ref) {
|
|
@@ -16717,7 +16742,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
16717
16742
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
16718
16743
|
selected: selected,
|
|
16719
16744
|
onPress: onItemPress
|
|
16720
|
-
})) : /*#__PURE__*/
|
|
16745
|
+
})) : /*#__PURE__*/React__default.createElement(Option$1, {
|
|
16721
16746
|
selected: selected,
|
|
16722
16747
|
text: item.text,
|
|
16723
16748
|
disabled: item.disabled,
|
|
@@ -16725,7 +16750,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
16725
16750
|
highlighted: item.highlighted
|
|
16726
16751
|
});
|
|
16727
16752
|
};
|
|
16728
|
-
return /*#__PURE__*/
|
|
16753
|
+
return /*#__PURE__*/React__default.createElement(StyledOptionList, _extends$1({
|
|
16729
16754
|
keyExtractor: keyExtractor,
|
|
16730
16755
|
loading: loading,
|
|
16731
16756
|
onEndReached: onEndReached,
|
|
@@ -16776,15 +16801,15 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16776
16801
|
return value === opt.value;
|
|
16777
16802
|
})) === null || _flatOptions$find === void 0 ? void 0 : _flatOptions$find.text;
|
|
16778
16803
|
var rawValue = value ? String(value) : undefined;
|
|
16779
|
-
return /*#__PURE__*/
|
|
16804
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(View, {
|
|
16780
16805
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
16781
|
-
}, /*#__PURE__*/
|
|
16806
|
+
}, /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
16782
16807
|
onPress: function onPress() {
|
|
16783
16808
|
return setOpen(true);
|
|
16784
16809
|
}
|
|
16785
|
-
}, /*#__PURE__*/
|
|
16810
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
16786
16811
|
pointerEvents: "none"
|
|
16787
|
-
}, /*#__PURE__*/
|
|
16812
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
16788
16813
|
label: label,
|
|
16789
16814
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
16790
16815
|
suffix: "arrow-down",
|
|
@@ -16799,7 +16824,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16799
16824
|
renderInputValue: renderSelectedValue !== undefined && !!rawValue ? function (props) {
|
|
16800
16825
|
return renderSelectedValue(value, props);
|
|
16801
16826
|
} : undefined
|
|
16802
|
-
}))))), /*#__PURE__*/
|
|
16827
|
+
}))))), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
|
|
16803
16828
|
open: open,
|
|
16804
16829
|
onRequestClose: function onRequestClose() {
|
|
16805
16830
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
@@ -16816,13 +16841,13 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16816
16841
|
(_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 || _sectionListRef$curre.scrollToLocation(scrollParams);
|
|
16817
16842
|
}
|
|
16818
16843
|
}
|
|
16819
|
-
}, onQueryChange && /*#__PURE__*/
|
|
16844
|
+
}, onQueryChange && /*#__PURE__*/React__default.createElement(StyledSearchBar, null, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
16820
16845
|
editable: true,
|
|
16821
16846
|
placeholder: "Search",
|
|
16822
16847
|
suffix: "search-outlined",
|
|
16823
16848
|
onChangeText: onQueryChange,
|
|
16824
16849
|
value: query
|
|
16825
|
-
})), /*#__PURE__*/
|
|
16850
|
+
})), /*#__PURE__*/React__default.createElement(OptionList, {
|
|
16826
16851
|
onQueryChange: onQueryChange,
|
|
16827
16852
|
onEndReached: onEndReached,
|
|
16828
16853
|
loading: loading,
|
|
@@ -16936,14 +16961,14 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
16936
16961
|
}
|
|
16937
16962
|
onLayout === null || onLayout === void 0 || onLayout(e);
|
|
16938
16963
|
}, []);
|
|
16939
|
-
return /*#__PURE__*/
|
|
16964
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer, _extends$1({
|
|
16940
16965
|
style: style,
|
|
16941
16966
|
themeVariant: variant,
|
|
16942
16967
|
themeIntent: intent,
|
|
16943
16968
|
onLayout: onContainerLayout
|
|
16944
|
-
}, props), /*#__PURE__*/
|
|
16969
|
+
}, props), /*#__PURE__*/React__default.createElement(StyledGradientContainer, {
|
|
16945
16970
|
themeVariant: variant
|
|
16946
|
-
}, /*#__PURE__*/
|
|
16971
|
+
}, /*#__PURE__*/React__default.createElement(AnimatedLinearGradient, {
|
|
16947
16972
|
start: gradientPositions.start,
|
|
16948
16973
|
end: gradientPositions.end,
|
|
16949
16974
|
style: {
|
|
@@ -17035,11 +17060,11 @@ var StyledSuccessModal = index$9(ModalWrapper)({
|
|
|
17035
17060
|
var _excluded$6 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
17036
17061
|
var renderImage = function renderImage(image) {
|
|
17037
17062
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
17038
|
-
return /*#__PURE__*/
|
|
17063
|
+
return /*#__PURE__*/React__default.cloneElement(image, {
|
|
17039
17064
|
testID: 'success-image'
|
|
17040
17065
|
});
|
|
17041
17066
|
}
|
|
17042
|
-
return /*#__PURE__*/
|
|
17067
|
+
return /*#__PURE__*/React__default.createElement(StyledSuccessImage, {
|
|
17043
17068
|
source: typeof image === 'string' ? {
|
|
17044
17069
|
uri: image
|
|
17045
17070
|
} : image,
|
|
@@ -17060,16 +17085,16 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17060
17085
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
17061
17086
|
nativeProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
17062
17087
|
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
17063
|
-
return /*#__PURE__*/
|
|
17088
|
+
return /*#__PURE__*/React__default.createElement(StyledSuccessContainer, _extends$1({
|
|
17064
17089
|
testID: testID,
|
|
17065
17090
|
themeVariant: variant
|
|
17066
|
-
}, nativeProps), /*#__PURE__*/
|
|
17091
|
+
}, nativeProps), /*#__PURE__*/React__default.createElement(StyledSuccessContent, null, !!image && /*#__PURE__*/React__default.createElement(StyledSuccessImageContainer, null, renderImage(image)), /*#__PURE__*/React__default.createElement(StyledSuccessTitle, {
|
|
17067
17092
|
level: "h4",
|
|
17068
17093
|
typeface: "playful"
|
|
17069
|
-
}, title), !!description && /*#__PURE__*/
|
|
17094
|
+
}, title), !!description && /*#__PURE__*/React__default.createElement(StyledSuccessDescription, null, description)), !!ctaText && /*#__PURE__*/React__default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__default.createElement(StyledSuccessButtonPrimary, {
|
|
17070
17095
|
text: ctaText,
|
|
17071
17096
|
onPress: onCtaPress
|
|
17072
|
-
}), !!showSecondaryButton && /*#__PURE__*/
|
|
17097
|
+
}), !!showSecondaryButton && /*#__PURE__*/React__default.createElement(StyledSuccessButtonPrimary, {
|
|
17073
17098
|
variant: "text",
|
|
17074
17099
|
text: secondaryCtaText,
|
|
17075
17100
|
onPress: onSecondaryCtaPress
|
|
@@ -17084,11 +17109,11 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17084
17109
|
var Success = function Success(props) {
|
|
17085
17110
|
var variant = props.variant;
|
|
17086
17111
|
if (variant === 'full-screen') {
|
|
17087
|
-
return /*#__PURE__*/
|
|
17112
|
+
return /*#__PURE__*/React__default.createElement(StyledSuccessModal, {
|
|
17088
17113
|
animationType: "slide"
|
|
17089
|
-
}, /*#__PURE__*/
|
|
17114
|
+
}, /*#__PURE__*/React__default.createElement(SuccessPage, props));
|
|
17090
17115
|
}
|
|
17091
|
-
return /*#__PURE__*/
|
|
17116
|
+
return /*#__PURE__*/React__default.createElement(SuccessPage, props);
|
|
17092
17117
|
};
|
|
17093
17118
|
|
|
17094
17119
|
var AnimatedView = Animated.createAnimatedComponent(View);
|
|
@@ -17139,7 +17164,7 @@ var OptionContent = function OptionContent(_ref) {
|
|
|
17139
17164
|
return content;
|
|
17140
17165
|
}
|
|
17141
17166
|
if (badge.type === 'status') {
|
|
17142
|
-
return /*#__PURE__*/
|
|
17167
|
+
return /*#__PURE__*/React__default.createElement(Badge$1.Status, {
|
|
17143
17168
|
visible: true,
|
|
17144
17169
|
style: {
|
|
17145
17170
|
paddingHorizontal: theme.space.small
|
|
@@ -17171,27 +17196,27 @@ var Option = function Option(_ref2) {
|
|
|
17171
17196
|
}).start();
|
|
17172
17197
|
}, [selected]);
|
|
17173
17198
|
if (selected) {
|
|
17174
|
-
return /*#__PURE__*/
|
|
17199
|
+
return /*#__PURE__*/React__default.createElement(StyledTextWrapper, {
|
|
17175
17200
|
style: {
|
|
17176
17201
|
transform: [{
|
|
17177
17202
|
translateX: translateX
|
|
17178
17203
|
}]
|
|
17179
17204
|
},
|
|
17180
17205
|
onLayout: onLayout
|
|
17181
|
-
}, /*#__PURE__*/
|
|
17182
|
-
content: /*#__PURE__*/
|
|
17206
|
+
}, /*#__PURE__*/React__default.createElement(OptionContent, {
|
|
17207
|
+
content: /*#__PURE__*/React__default.createElement(Typography.Body, null, text),
|
|
17183
17208
|
badge: badge
|
|
17184
17209
|
}));
|
|
17185
17210
|
}
|
|
17186
|
-
return /*#__PURE__*/
|
|
17211
|
+
return /*#__PURE__*/React__default.createElement(StyledIconWrapper$1, {
|
|
17187
17212
|
style: {
|
|
17188
17213
|
transform: [{
|
|
17189
17214
|
translateX: translateX
|
|
17190
17215
|
}]
|
|
17191
17216
|
},
|
|
17192
17217
|
onLayout: onLayout
|
|
17193
|
-
}, /*#__PURE__*/
|
|
17194
|
-
content: /*#__PURE__*/
|
|
17218
|
+
}, /*#__PURE__*/React__default.createElement(OptionContent, {
|
|
17219
|
+
content: /*#__PURE__*/React__default.createElement(Icon, {
|
|
17195
17220
|
icon: icon
|
|
17196
17221
|
}),
|
|
17197
17222
|
badge: badge
|
|
@@ -17233,16 +17258,16 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
17233
17258
|
setKnotWidth(e.nativeEvent.layout.width);
|
|
17234
17259
|
}
|
|
17235
17260
|
}, [value]);
|
|
17236
|
-
return /*#__PURE__*/
|
|
17261
|
+
return /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
17237
17262
|
onPress: function onPress() {
|
|
17238
17263
|
return _onPress === null || _onPress === void 0 ? void 0 : _onPress(value);
|
|
17239
17264
|
},
|
|
17240
17265
|
testID: testID
|
|
17241
|
-
}, /*#__PURE__*/
|
|
17266
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$2, {
|
|
17242
17267
|
onLayout: onContainerLayout,
|
|
17243
17268
|
style: style
|
|
17244
17269
|
}, options.map(function (opt, index) {
|
|
17245
|
-
return /*#__PURE__*/
|
|
17270
|
+
return /*#__PURE__*/React__default.createElement(Option, _extends$1({}, opt, {
|
|
17246
17271
|
selected: opt.value === value
|
|
17247
17272
|
// eslint-disable-next-line react/no-array-index-key
|
|
17248
17273
|
,
|
|
@@ -17252,7 +17277,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
17252
17277
|
},
|
|
17253
17278
|
index: index
|
|
17254
17279
|
}));
|
|
17255
|
-
}), /*#__PURE__*/
|
|
17280
|
+
}), /*#__PURE__*/React__default.createElement(StyledKnot$1, {
|
|
17256
17281
|
style: {
|
|
17257
17282
|
width: knotWidth,
|
|
17258
17283
|
transform: [{
|
|
@@ -17320,14 +17345,14 @@ var Switch = function Switch(_ref2) {
|
|
|
17320
17345
|
useNativeDriver: false
|
|
17321
17346
|
}).start();
|
|
17322
17347
|
}, [checked]);
|
|
17323
|
-
return /*#__PURE__*/
|
|
17348
|
+
return /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
17324
17349
|
testID: testID,
|
|
17325
17350
|
onPress: onPress,
|
|
17326
17351
|
disabled: disabled
|
|
17327
|
-
}, /*#__PURE__*/
|
|
17352
|
+
}, /*#__PURE__*/React__default.createElement(StyledWrapper$1, {
|
|
17328
17353
|
themeVariant: variant,
|
|
17329
17354
|
style: style
|
|
17330
|
-
}, /*#__PURE__*/
|
|
17355
|
+
}, /*#__PURE__*/React__default.createElement(StyledKnot, {
|
|
17331
17356
|
style: {
|
|
17332
17357
|
left: animatedOffset
|
|
17333
17358
|
}
|
|
@@ -17395,7 +17420,7 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
17395
17420
|
inputRange: inputRange,
|
|
17396
17421
|
outputRange: [0, tabsLength * indicatorWidth]
|
|
17397
17422
|
});
|
|
17398
|
-
return /*#__PURE__*/
|
|
17423
|
+
return /*#__PURE__*/React__default.createElement(StyledIndicator, {
|
|
17399
17424
|
themeWidth: indicatorWidth,
|
|
17400
17425
|
style: {
|
|
17401
17426
|
transform: [{
|
|
@@ -17474,18 +17499,18 @@ var SceneView = function SceneView(_ref) {
|
|
|
17474
17499
|
index = _ref.index,
|
|
17475
17500
|
selectedIndex = _ref.selectedIndex,
|
|
17476
17501
|
testID = _ref.testID;
|
|
17477
|
-
var _React$useState =
|
|
17502
|
+
var _React$useState = React__default.useState(Math.abs(selectedIndex - index) > lazyPreloadDistance),
|
|
17478
17503
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17479
17504
|
isLoading = _React$useState2[0],
|
|
17480
17505
|
setIsLoading = _React$useState2[1];
|
|
17481
17506
|
var focused = index === selectedIndex;
|
|
17482
|
-
|
|
17507
|
+
React__default.useEffect(function () {
|
|
17483
17508
|
if (isLoading && Math.abs(selectedIndex - index) <= lazyPreloadDistance) {
|
|
17484
17509
|
// Always render the route when it becomes focused
|
|
17485
17510
|
setIsLoading(false);
|
|
17486
17511
|
}
|
|
17487
17512
|
}, [isLoading, index, selectedIndex, lazyPreloadDistance]);
|
|
17488
|
-
|
|
17513
|
+
React__default.useEffect(function () {
|
|
17489
17514
|
var timer;
|
|
17490
17515
|
if (!lazy && isLoading) {
|
|
17491
17516
|
// If lazy mode is not enabled, render the scene with a delay if not loaded already
|
|
@@ -17500,7 +17525,7 @@ var SceneView = function SceneView(_ref) {
|
|
|
17500
17525
|
}
|
|
17501
17526
|
};
|
|
17502
17527
|
}, [index, isLoading, lazy, focused]);
|
|
17503
|
-
return /*#__PURE__*/
|
|
17528
|
+
return /*#__PURE__*/React__default.createElement(TabScreen, {
|
|
17504
17529
|
accessibilityElementsHidden: !focused,
|
|
17505
17530
|
importantForAccessibility: focused ? 'auto' : 'no-hide-descendants',
|
|
17506
17531
|
style: [{
|
|
@@ -17515,9 +17540,9 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17515
17540
|
var config = _ref.config,
|
|
17516
17541
|
tabItem = _ref.tabItem;
|
|
17517
17542
|
var theme = useTheme$1();
|
|
17518
|
-
if (!config) return /*#__PURE__*/
|
|
17543
|
+
if (!config) return /*#__PURE__*/React__default.createElement(View, null, tabItem);
|
|
17519
17544
|
if (config.type === 'status') {
|
|
17520
|
-
return /*#__PURE__*/
|
|
17545
|
+
return /*#__PURE__*/React__default.createElement(Badge$1.Status, {
|
|
17521
17546
|
visible: true,
|
|
17522
17547
|
style: {
|
|
17523
17548
|
paddingHorizontal: theme.space.xsmall
|
|
@@ -17525,7 +17550,7 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17525
17550
|
}, tabItem);
|
|
17526
17551
|
}
|
|
17527
17552
|
if (config.type === 'counter') {
|
|
17528
|
-
return /*#__PURE__*/
|
|
17553
|
+
return /*#__PURE__*/React__default.createElement(StyledBadgeWrapper, null, tabItem, /*#__PURE__*/React__default.createElement(Badge$1, {
|
|
17529
17554
|
content: config.value,
|
|
17530
17555
|
max: config.max,
|
|
17531
17556
|
intent: "info",
|
|
@@ -17534,11 +17559,11 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17534
17559
|
}
|
|
17535
17560
|
}));
|
|
17536
17561
|
}
|
|
17537
|
-
return /*#__PURE__*/
|
|
17562
|
+
return /*#__PURE__*/React__default.createElement(View, null, tabItem);
|
|
17538
17563
|
};
|
|
17539
17564
|
|
|
17540
17565
|
var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
|
|
17541
|
-
var refs =
|
|
17566
|
+
var refs = React__default.useRef([]);
|
|
17542
17567
|
refs.current.length = initialValues.length;
|
|
17543
17568
|
initialValues.forEach(function (initialValue, i) {
|
|
17544
17569
|
var _refs$current$i;
|
|
@@ -17557,7 +17582,7 @@ var useInitHighlightedAnimation = function useInitHighlightedAnimation(_ref) {
|
|
|
17557
17582
|
}).map(function (_, i) {
|
|
17558
17583
|
return i === selectedIndex ? 1 : 0;
|
|
17559
17584
|
}));
|
|
17560
|
-
|
|
17585
|
+
React__default.useEffect(function () {
|
|
17561
17586
|
if (variant !== 'highlighted') {
|
|
17562
17587
|
return;
|
|
17563
17588
|
}
|
|
@@ -17600,7 +17625,7 @@ var useInitUnderlinedAnimation = function useInitUnderlinedAnimation(_ref) {
|
|
|
17600
17625
|
_ref$selectedIndex = _ref.selectedIndex,
|
|
17601
17626
|
selectedIndex = _ref$selectedIndex === void 0 ? 0 : _ref$selectedIndex,
|
|
17602
17627
|
variant = _ref.variant;
|
|
17603
|
-
var previousIndex =
|
|
17628
|
+
var previousIndex = React__default.useRef(0);
|
|
17604
17629
|
var translateXAnims = useAnimatedValueArray(Array.from({
|
|
17605
17630
|
length: tabsLength
|
|
17606
17631
|
}).map(function () {
|
|
@@ -17623,7 +17648,7 @@ var useInitUnderlinedAnimation = function useInitUnderlinedAnimation(_ref) {
|
|
|
17623
17648
|
outputRange: [0, 1]
|
|
17624
17649
|
});
|
|
17625
17650
|
});
|
|
17626
|
-
|
|
17651
|
+
React__default.useEffect(function () {
|
|
17627
17652
|
if (variant === 'underlined' && selectedIndex !== undefined && previousIndex.current !== selectedIndex) {
|
|
17628
17653
|
// Prepare for translateX into the right position.
|
|
17629
17654
|
if (selectedIndex > previousIndex.current) {
|
|
@@ -17648,7 +17673,7 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
17648
17673
|
color = _ref.color,
|
|
17649
17674
|
active = _ref.active;
|
|
17650
17675
|
if (isHeroIcon(item)) {
|
|
17651
|
-
return /*#__PURE__*/
|
|
17676
|
+
return /*#__PURE__*/React__default.createElement(Icon, {
|
|
17652
17677
|
icon: item,
|
|
17653
17678
|
testID: "hero-icon-".concat(item),
|
|
17654
17679
|
size: "small",
|
|
@@ -17658,7 +17683,7 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
17658
17683
|
});
|
|
17659
17684
|
}
|
|
17660
17685
|
if (typeof item === 'string') {
|
|
17661
|
-
return /*#__PURE__*/
|
|
17686
|
+
return /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
17662
17687
|
variant: active ? 'regular-bold' : 'regular',
|
|
17663
17688
|
numberOfLines: 1,
|
|
17664
17689
|
style: {
|
|
@@ -17686,7 +17711,7 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17686
17711
|
_ref2$variant = _ref2.variant,
|
|
17687
17712
|
variant = _ref2$variant === void 0 ? 'highlighted' : _ref2$variant;
|
|
17688
17713
|
var theme = useTheme$1();
|
|
17689
|
-
var flatListRef =
|
|
17714
|
+
var flatListRef = React__default.useRef(null);
|
|
17690
17715
|
// Init underlined animation data
|
|
17691
17716
|
var _useInitUnderlinedAni = useInitUnderlinedAnimation({
|
|
17692
17717
|
tabsLength: tabs.length,
|
|
@@ -17702,7 +17727,7 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17702
17727
|
variant: variant
|
|
17703
17728
|
}),
|
|
17704
17729
|
tabsAnims = _useInitHighlightedAn.tabsAnims;
|
|
17705
|
-
|
|
17730
|
+
React__default.useEffect(function () {
|
|
17706
17731
|
if (selectedIndex !== undefined && selectedIndex !== -1) {
|
|
17707
17732
|
var _flatListRef$current;
|
|
17708
17733
|
(_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 || _flatListRef$current.scrollToIndex({
|
|
@@ -17713,10 +17738,10 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17713
17738
|
return function () {
|
|
17714
17739
|
};
|
|
17715
17740
|
}, [selectedIndex]);
|
|
17716
|
-
return /*#__PURE__*/
|
|
17741
|
+
return /*#__PURE__*/React__default.createElement(HeaderTabWrapper, {
|
|
17717
17742
|
themeInsets: insets,
|
|
17718
17743
|
style: barStyle
|
|
17719
|
-
}, /*#__PURE__*/
|
|
17744
|
+
}, /*#__PURE__*/React__default.createElement(FlatList, {
|
|
17720
17745
|
testID: testID,
|
|
17721
17746
|
ref: flatListRef,
|
|
17722
17747
|
horizontal: true,
|
|
@@ -17765,15 +17790,15 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17765
17790
|
color: active ? theme.__hd__.tabs.colors.active : theme.__hd__.tabs.colors.inactive,
|
|
17766
17791
|
active: active
|
|
17767
17792
|
});
|
|
17768
|
-
return /*#__PURE__*/
|
|
17793
|
+
return /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
17769
17794
|
key: key,
|
|
17770
17795
|
onPress: function onPress() {
|
|
17771
17796
|
onTabPress(key);
|
|
17772
17797
|
},
|
|
17773
17798
|
testID: tabItemTestID
|
|
17774
|
-
}, /*#__PURE__*/
|
|
17799
|
+
}, /*#__PURE__*/React__default.createElement(HeaderTabItem, {
|
|
17775
17800
|
isFirstItem: index === 0
|
|
17776
|
-
}, variant === 'highlighted' && /*#__PURE__*/
|
|
17801
|
+
}, variant === 'highlighted' && /*#__PURE__*/React__default.createElement(HeaderTabItemOutlineWrapper, null, /*#__PURE__*/React__default.createElement(HeaderTabItemOutline, {
|
|
17777
17802
|
themeActive: active,
|
|
17778
17803
|
style: {
|
|
17779
17804
|
flex: 1,
|
|
@@ -17781,10 +17806,10 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17781
17806
|
scaleX: outlineScale
|
|
17782
17807
|
}]
|
|
17783
17808
|
}
|
|
17784
|
-
})), /*#__PURE__*/
|
|
17809
|
+
})), /*#__PURE__*/React__default.createElement(HeaderTabItemWrapper, null, /*#__PURE__*/React__default.createElement(TabWithBadge, {
|
|
17785
17810
|
config: badge,
|
|
17786
17811
|
tabItem: tabItem
|
|
17787
|
-
})), variant === 'underlined' && /*#__PURE__*/
|
|
17812
|
+
})), variant === 'underlined' && /*#__PURE__*/React__default.createElement(HeaderTabItemIndicator, {
|
|
17788
17813
|
style: {
|
|
17789
17814
|
opacity: underlinedOpacity[index],
|
|
17790
17815
|
transform: [{
|
|
@@ -17796,11 +17821,11 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17796
17821
|
}));
|
|
17797
17822
|
};
|
|
17798
17823
|
|
|
17799
|
-
var TabContext = /*#__PURE__*/
|
|
17800
|
-
var ScreenContext = /*#__PURE__*/
|
|
17824
|
+
var TabContext = /*#__PURE__*/React__default.createContext(null);
|
|
17825
|
+
var ScreenContext = /*#__PURE__*/React__default.createContext(null);
|
|
17801
17826
|
var useIsFocused = function useIsFocused() {
|
|
17802
|
-
var context =
|
|
17803
|
-
var key =
|
|
17827
|
+
var context = React__default.useContext(TabContext);
|
|
17828
|
+
var key = React__default.useContext(ScreenContext);
|
|
17804
17829
|
if (!context || !key) {
|
|
17805
17830
|
return;
|
|
17806
17831
|
}
|
|
@@ -17823,14 +17848,14 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17823
17848
|
componentTestID = _ref.testID,
|
|
17824
17849
|
_ref$variant = _ref.variant,
|
|
17825
17850
|
variant = _ref$variant === void 0 ? 'highlighted' : _ref$variant;
|
|
17826
|
-
var pagerViewRef =
|
|
17851
|
+
var pagerViewRef = React__default.useRef(null);
|
|
17827
17852
|
var insets = useSafeAreaInsets();
|
|
17828
17853
|
var selectedTabIndex = tabs.findIndex(function (item) {
|
|
17829
17854
|
return item.key === selectedTabKey;
|
|
17830
17855
|
});
|
|
17831
17856
|
// Used as a flag to prevent calling onTabPress on initial render
|
|
17832
17857
|
var hasScrolled = useRef(false);
|
|
17833
|
-
|
|
17858
|
+
React__default.useEffect(function () {
|
|
17834
17859
|
var timeoutHandle;
|
|
17835
17860
|
if (selectedTabIndex !== -1) {
|
|
17836
17861
|
// If the selected tab is changed too quickly, the setPage is crashed and not work anymore
|
|
@@ -17847,17 +17872,17 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17847
17872
|
}
|
|
17848
17873
|
};
|
|
17849
17874
|
}, [selectedTabIndex, pagerViewRef]);
|
|
17850
|
-
var tabContextProviderValue =
|
|
17875
|
+
var tabContextProviderValue = React__default.useMemo(function () {
|
|
17851
17876
|
return {
|
|
17852
17877
|
selectedTabKey: selectedTabKey
|
|
17853
17878
|
};
|
|
17854
17879
|
}, [selectedTabKey]);
|
|
17855
|
-
return /*#__PURE__*/
|
|
17880
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
17856
17881
|
value: tabContextProviderValue
|
|
17857
|
-
}, /*#__PURE__*/
|
|
17882
|
+
}, /*#__PURE__*/React__default.createElement(TabContainer, {
|
|
17858
17883
|
style: containerStyle,
|
|
17859
17884
|
testID: componentTestID
|
|
17860
|
-
}, /*#__PURE__*/
|
|
17885
|
+
}, /*#__PURE__*/React__default.createElement(ScrollableTabHeader, {
|
|
17861
17886
|
tabs: tabs,
|
|
17862
17887
|
selectedIndex: selectedTabIndex,
|
|
17863
17888
|
onTabPress: onTabPress,
|
|
@@ -17865,7 +17890,7 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17865
17890
|
insets: insets,
|
|
17866
17891
|
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
|
|
17867
17892
|
variant: variant
|
|
17868
|
-
}), /*#__PURE__*/
|
|
17893
|
+
}), /*#__PURE__*/React__default.createElement(ContentWrapper, {
|
|
17869
17894
|
initialPage: selectedTabIndex,
|
|
17870
17895
|
ref: pagerViewRef,
|
|
17871
17896
|
onPageScrollStateChanged: function onPageScrollStateChanged(e) {
|
|
@@ -17887,10 +17912,10 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17887
17912
|
var key = tab.key,
|
|
17888
17913
|
component = tab.component,
|
|
17889
17914
|
testID = tab.testID;
|
|
17890
|
-
return /*#__PURE__*/
|
|
17915
|
+
return /*#__PURE__*/React__default.createElement(ScreenContext.Provider, {
|
|
17891
17916
|
value: key,
|
|
17892
17917
|
key: key
|
|
17893
|
-
}, /*#__PURE__*/
|
|
17918
|
+
}, /*#__PURE__*/React__default.createElement(SceneView, {
|
|
17894
17919
|
testID: testID,
|
|
17895
17920
|
index: index,
|
|
17896
17921
|
selectedIndex: selectedTabIndex,
|
|
@@ -17905,7 +17930,7 @@ var getTabItem = function getTabItem(_ref) {
|
|
|
17905
17930
|
color = _ref.color,
|
|
17906
17931
|
active = _ref.active;
|
|
17907
17932
|
if (typeof item === 'string') {
|
|
17908
|
-
return /*#__PURE__*/
|
|
17933
|
+
return /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
17909
17934
|
variant: active ? 'small-bold' : 'small',
|
|
17910
17935
|
numberOfLines: 1,
|
|
17911
17936
|
style: {
|
|
@@ -17932,13 +17957,13 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17932
17957
|
componentTestID = _ref2.testID;
|
|
17933
17958
|
var theme = useTheme$1();
|
|
17934
17959
|
var insets = useSafeAreaInsets();
|
|
17935
|
-
var pagerViewRef =
|
|
17960
|
+
var pagerViewRef = React__default.useRef(null);
|
|
17936
17961
|
var selectedTabIndex = tabs.findIndex(function (item) {
|
|
17937
17962
|
return item.key === selectedTabKey;
|
|
17938
17963
|
});
|
|
17939
|
-
var scrollOffsetAnimatedValue =
|
|
17940
|
-
var positionAnimatedValue =
|
|
17941
|
-
var _React$useState =
|
|
17964
|
+
var scrollOffsetAnimatedValue = React__default.useRef(new Animated.Value(0)).current;
|
|
17965
|
+
var positionAnimatedValue = React__default.useRef(new Animated.Value(0)).current;
|
|
17966
|
+
var _React$useState = React__default.useState(0),
|
|
17942
17967
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17943
17968
|
tabsWidth = _React$useState2[0],
|
|
17944
17969
|
setTabsWidth = _React$useState2[1];
|
|
@@ -17948,21 +17973,21 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17948
17973
|
(_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 || _pagerViewRef$current.setPage(selectedTabIndex);
|
|
17949
17974
|
}
|
|
17950
17975
|
}, [selectedTabIndex]);
|
|
17951
|
-
var tabContextProviderValue =
|
|
17976
|
+
var tabContextProviderValue = React__default.useMemo(function () {
|
|
17952
17977
|
return {
|
|
17953
17978
|
selectedTabKey: selectedTabKey
|
|
17954
17979
|
};
|
|
17955
17980
|
}, [selectedTabKey]);
|
|
17956
|
-
return /*#__PURE__*/
|
|
17981
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
17957
17982
|
value: tabContextProviderValue
|
|
17958
|
-
}, /*#__PURE__*/
|
|
17983
|
+
}, /*#__PURE__*/React__default.createElement(TabContainer$1, {
|
|
17959
17984
|
style: containerStyle,
|
|
17960
17985
|
testID: componentTestID
|
|
17961
|
-
}, /*#__PURE__*/
|
|
17986
|
+
}, /*#__PURE__*/React__default.createElement(HeaderTabWrapper$1, {
|
|
17962
17987
|
themeInsets: insets,
|
|
17963
17988
|
style: barStyle,
|
|
17964
17989
|
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
17965
|
-
}, /*#__PURE__*/
|
|
17990
|
+
}, /*#__PURE__*/React__default.createElement(View, null, /*#__PURE__*/React__default.createElement(HeaderTab, {
|
|
17966
17991
|
onLayout: function onLayout(e) {
|
|
17967
17992
|
var width = e.nativeEvent.layout.width;
|
|
17968
17993
|
if (tabsWidth !== width) {
|
|
@@ -17982,22 +18007,22 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17982
18007
|
color: theme.__hd__.tabs.colors.text,
|
|
17983
18008
|
active: active
|
|
17984
18009
|
});
|
|
17985
|
-
return /*#__PURE__*/
|
|
18010
|
+
return /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
17986
18011
|
key: key,
|
|
17987
18012
|
onPress: function onPress() {
|
|
17988
18013
|
onTabPress(key);
|
|
17989
18014
|
},
|
|
17990
18015
|
testID: testID
|
|
17991
|
-
}, /*#__PURE__*/
|
|
18016
|
+
}, /*#__PURE__*/React__default.createElement(HeaderTabItem$1, null, /*#__PURE__*/React__default.createElement(TabWithBadge, {
|
|
17992
18017
|
config: badge,
|
|
17993
18018
|
tabItem: tabItem
|
|
17994
18019
|
})));
|
|
17995
|
-
})), /*#__PURE__*/
|
|
18020
|
+
})), /*#__PURE__*/React__default.createElement(ActiveTabIndicator, {
|
|
17996
18021
|
positionAnimatedValue: positionAnimatedValue,
|
|
17997
18022
|
scrollOffsetAnimatedValue: scrollOffsetAnimatedValue,
|
|
17998
18023
|
tabsLength: tabs.length,
|
|
17999
18024
|
tabsWidth: tabsWidth
|
|
18000
|
-
}))), /*#__PURE__*/
|
|
18025
|
+
}))), /*#__PURE__*/React__default.createElement(ContentWrapper$1, {
|
|
18001
18026
|
initialPage: selectedTabIndex,
|
|
18002
18027
|
ref: pagerViewRef,
|
|
18003
18028
|
onPageSelected: function onPageSelected(e) {
|
|
@@ -18020,10 +18045,10 @@ var Tabs = function Tabs(_ref2) {
|
|
|
18020
18045
|
var key = tab.key,
|
|
18021
18046
|
component = tab.component,
|
|
18022
18047
|
testID = tab.testID;
|
|
18023
|
-
return /*#__PURE__*/
|
|
18048
|
+
return /*#__PURE__*/React__default.createElement(ScreenContext.Provider, {
|
|
18024
18049
|
value: key,
|
|
18025
18050
|
key: key
|
|
18026
|
-
}, /*#__PURE__*/
|
|
18051
|
+
}, /*#__PURE__*/React__default.createElement(SceneView, {
|
|
18027
18052
|
testID: testID,
|
|
18028
18053
|
key: key,
|
|
18029
18054
|
index: index,
|
|
@@ -18070,11 +18095,11 @@ var Tag = function Tag(_ref) {
|
|
|
18070
18095
|
testID = _ref.testID,
|
|
18071
18096
|
nativeProps = _objectWithoutProperties(_ref, _excluded$5);
|
|
18072
18097
|
useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
|
|
18073
|
-
return /*#__PURE__*/
|
|
18098
|
+
return /*#__PURE__*/React__default.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
18074
18099
|
themeIntent: intent,
|
|
18075
18100
|
style: style,
|
|
18076
18101
|
testID: testID
|
|
18077
|
-
}), typeof content === 'string' ? /*#__PURE__*/
|
|
18102
|
+
}), typeof content === 'string' ? /*#__PURE__*/React__default.createElement(StyledText, {
|
|
18078
18103
|
themeIntent: intent,
|
|
18079
18104
|
fontWeight: "semi-bold"
|
|
18080
18105
|
}, content) : content);
|
|
@@ -18103,15 +18128,15 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
18103
18128
|
var is12Hour = displayFormat.includes('hh');
|
|
18104
18129
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
18105
18130
|
var pickerInitValue = value || new Date();
|
|
18106
|
-
return /*#__PURE__*/
|
|
18131
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
18107
18132
|
onPress: function onPress() {
|
|
18108
18133
|
return setOpen(true);
|
|
18109
18134
|
},
|
|
18110
18135
|
disabled: disabled
|
|
18111
|
-
}, /*#__PURE__*/
|
|
18136
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
18112
18137
|
pointerEvents: "none",
|
|
18113
18138
|
testID: "timePickerInputAndroid"
|
|
18114
|
-
}, /*#__PURE__*/
|
|
18139
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
18115
18140
|
label: label,
|
|
18116
18141
|
value: displayValue,
|
|
18117
18142
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -18122,7 +18147,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
18122
18147
|
helpText: helpText,
|
|
18123
18148
|
style: style,
|
|
18124
18149
|
testID: testID
|
|
18125
|
-
})), open ? /*#__PURE__*/
|
|
18150
|
+
})), open ? /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
18126
18151
|
testID: "timePickerAndroid",
|
|
18127
18152
|
mode: "time",
|
|
18128
18153
|
value: pickerInitValue,
|
|
@@ -18172,15 +18197,15 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18172
18197
|
var is12Hour = displayFormat.includes('hh');
|
|
18173
18198
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
18174
18199
|
var theme = useTheme();
|
|
18175
|
-
return /*#__PURE__*/
|
|
18200
|
+
return /*#__PURE__*/React__default.createElement(TouchableOpacity, {
|
|
18176
18201
|
onPress: function onPress() {
|
|
18177
18202
|
return setOpen(true);
|
|
18178
18203
|
},
|
|
18179
18204
|
disabled: disabled
|
|
18180
|
-
}, /*#__PURE__*/
|
|
18205
|
+
}, /*#__PURE__*/React__default.createElement(View, {
|
|
18181
18206
|
pointerEvents: "none",
|
|
18182
18207
|
testID: "timePickerInputIOS"
|
|
18183
|
-
}, /*#__PURE__*/
|
|
18208
|
+
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
18184
18209
|
label: label,
|
|
18185
18210
|
value: displayValue,
|
|
18186
18211
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -18191,13 +18216,13 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18191
18216
|
helpText: helpText,
|
|
18192
18217
|
testID: testID,
|
|
18193
18218
|
style: style
|
|
18194
|
-
})), /*#__PURE__*/
|
|
18219
|
+
})), /*#__PURE__*/React__default.createElement(BottomSheet$1, {
|
|
18195
18220
|
open: open,
|
|
18196
18221
|
onRequestClose: function onRequestClose() {
|
|
18197
18222
|
return setOpen(false);
|
|
18198
18223
|
},
|
|
18199
18224
|
header: label,
|
|
18200
|
-
footer: /*#__PURE__*/
|
|
18225
|
+
footer: /*#__PURE__*/React__default.createElement(CompoundButton, {
|
|
18201
18226
|
variant: "text",
|
|
18202
18227
|
text: confirmLabel,
|
|
18203
18228
|
onPress: function onPress() {
|
|
@@ -18207,7 +18232,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18207
18232
|
setOpen(false);
|
|
18208
18233
|
}
|
|
18209
18234
|
})
|
|
18210
|
-
}, /*#__PURE__*/
|
|
18235
|
+
}, /*#__PURE__*/React__default.createElement(StyledPickerWrapper, null, /*#__PURE__*/React__default.createElement(DateTimePicker, {
|
|
18211
18236
|
testID: "timePickerIOS",
|
|
18212
18237
|
value: selectingDate,
|
|
18213
18238
|
mode: "time"
|
|
@@ -18230,9 +18255,9 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18230
18255
|
|
|
18231
18256
|
var TimePicker = function TimePicker(props) {
|
|
18232
18257
|
if (Platform.OS === 'ios') {
|
|
18233
|
-
return /*#__PURE__*/
|
|
18258
|
+
return /*#__PURE__*/React__default.createElement(TimePickerIOS, props);
|
|
18234
18259
|
}
|
|
18235
|
-
return /*#__PURE__*/
|
|
18260
|
+
return /*#__PURE__*/React__default.createElement(TimePickerAndroid, props);
|
|
18236
18261
|
};
|
|
18237
18262
|
|
|
18238
18263
|
var ToolbarWrapper = index$9(View)(function (_ref) {
|
|
@@ -18300,12 +18325,12 @@ var IconItem = function IconItem(_ref) {
|
|
|
18300
18325
|
intent = _ref.intent,
|
|
18301
18326
|
disabled = _ref.disabled,
|
|
18302
18327
|
label = _ref.label;
|
|
18303
|
-
return /*#__PURE__*/
|
|
18328
|
+
return /*#__PURE__*/React__default.createElement(IconButtonWrapper, null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
18304
18329
|
icon: icon,
|
|
18305
18330
|
size: "medium",
|
|
18306
18331
|
intent: disabled ? 'disabled-text' : intent,
|
|
18307
18332
|
testID: "toolbar-item-icon-".concat(icon)
|
|
18308
|
-
}), label ? /*#__PURE__*/
|
|
18333
|
+
}), label ? /*#__PURE__*/React__default.createElement(IconButtonLabel, {
|
|
18309
18334
|
variant: "regular-bold",
|
|
18310
18335
|
intent: disabled ? 'subdued' : intent,
|
|
18311
18336
|
allowFontScaling: false,
|
|
@@ -18320,7 +18345,7 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
|
|
|
18320
18345
|
_ref2$disabled = _ref2.disabled,
|
|
18321
18346
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled;
|
|
18322
18347
|
if (icon) {
|
|
18323
|
-
return /*#__PURE__*/
|
|
18348
|
+
return /*#__PURE__*/React__default.createElement(IconItem, {
|
|
18324
18349
|
icon: icon,
|
|
18325
18350
|
intent: intent,
|
|
18326
18351
|
disabled: disabled,
|
|
@@ -18328,7 +18353,7 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
|
|
|
18328
18353
|
});
|
|
18329
18354
|
}
|
|
18330
18355
|
if (label) {
|
|
18331
|
-
return /*#__PURE__*/
|
|
18356
|
+
return /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
18332
18357
|
variant: "regular-bold",
|
|
18333
18358
|
intent: disabled ? 'disabled' : intent,
|
|
18334
18359
|
allowFontScaling: false,
|
|
@@ -18346,11 +18371,11 @@ var ToolbarItem = function ToolbarItem(_ref3) {
|
|
|
18346
18371
|
_ref3$disabled = _ref3.disabled,
|
|
18347
18372
|
disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
|
|
18348
18373
|
style = _ref3.style;
|
|
18349
|
-
return /*#__PURE__*/
|
|
18374
|
+
return /*#__PURE__*/React__default.createElement(ToolbarItemWrapper, {
|
|
18350
18375
|
onPress: onPress,
|
|
18351
18376
|
disabled: disabled,
|
|
18352
18377
|
style: style
|
|
18353
|
-
}, /*#__PURE__*/
|
|
18378
|
+
}, /*#__PURE__*/React__default.createElement(ToolbarItemContent, {
|
|
18354
18379
|
icon: icon,
|
|
18355
18380
|
label: label,
|
|
18356
18381
|
intent: intent,
|
|
@@ -18364,7 +18389,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
18364
18389
|
_ref$items = _ref.items,
|
|
18365
18390
|
items = _ref$items === void 0 ? [] : _ref$items;
|
|
18366
18391
|
useDeprecation("Toolbar's align prop is deprecated", align !== 'right');
|
|
18367
|
-
return /*#__PURE__*/
|
|
18392
|
+
return /*#__PURE__*/React__default.createElement(ToolbarGroupWrapper, {
|
|
18368
18393
|
align: align
|
|
18369
18394
|
}, items.map(function (_ref2) {
|
|
18370
18395
|
var label = _ref2.label,
|
|
@@ -18372,7 +18397,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
18372
18397
|
onPress = _ref2.onPress,
|
|
18373
18398
|
disabled = _ref2.disabled,
|
|
18374
18399
|
intent = _ref2.intent;
|
|
18375
|
-
return /*#__PURE__*/
|
|
18400
|
+
return /*#__PURE__*/React__default.createElement(ToolbarItem, {
|
|
18376
18401
|
key: "".concat(label, "-").concat(icon),
|
|
18377
18402
|
label: label,
|
|
18378
18403
|
icon: icon,
|
|
@@ -18387,7 +18412,7 @@ var _excluded$4 = ["children"];
|
|
|
18387
18412
|
var Toolbar = function Toolbar(_ref) {
|
|
18388
18413
|
var children = _ref.children,
|
|
18389
18414
|
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
18390
|
-
return /*#__PURE__*/
|
|
18415
|
+
return /*#__PURE__*/React__default.createElement(ToolbarWrapper, rest, children);
|
|
18391
18416
|
};
|
|
18392
18417
|
var index$1 = Object.assign(Toolbar, {
|
|
18393
18418
|
Group: ToolbarGroup
|
|
@@ -18432,21 +18457,21 @@ var Rate = function Rate(_ref) {
|
|
|
18432
18457
|
useNativeDriver: Platform.OS !== 'web'
|
|
18433
18458
|
}).start();
|
|
18434
18459
|
}, [value, animatedValue]);
|
|
18435
|
-
return /*#__PURE__*/
|
|
18436
|
-
return /*#__PURE__*/
|
|
18460
|
+
return /*#__PURE__*/React__default.createElement(StyledWrapper, otherProps, options.length > 0 && options.map(function (item, index) {
|
|
18461
|
+
return /*#__PURE__*/React__default.createElement(Pressable, {
|
|
18437
18462
|
key: item.value,
|
|
18438
18463
|
disabled: disabled || readonly,
|
|
18439
18464
|
onPress: function onPress() {
|
|
18440
18465
|
return onChange === null || onChange === void 0 ? void 0 : onChange(item.value);
|
|
18441
18466
|
},
|
|
18442
18467
|
testID: item.value.toString()
|
|
18443
|
-
}, /*#__PURE__*/
|
|
18468
|
+
}, /*#__PURE__*/React__default.createElement(StyledIconWrapper, {
|
|
18444
18469
|
style: valueIndex === index && {
|
|
18445
18470
|
transform: [{
|
|
18446
18471
|
scale: scale
|
|
18447
18472
|
}]
|
|
18448
18473
|
}
|
|
18449
|
-
}, /*#__PURE__*/
|
|
18474
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
18450
18475
|
icon: index <= valueIndex ? 'star' : 'star-outlined',
|
|
18451
18476
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
18452
18477
|
})));
|
|
@@ -18456,7 +18481,7 @@ var Rate = function Rate(_ref) {
|
|
|
18456
18481
|
var RefreshControl = function RefreshControl(_ref) {
|
|
18457
18482
|
var props = _extends$1({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
18458
18483
|
var theme = useTheme();
|
|
18459
|
-
return /*#__PURE__*/
|
|
18484
|
+
return /*#__PURE__*/React__default.createElement(RefreshControl$1, _extends$1({}, props, {
|
|
18460
18485
|
colors: [theme.__hd__.refreshControl.colors.indicator],
|
|
18461
18486
|
tintColor: theme.__hd__.refreshControl.colors.indicator
|
|
18462
18487
|
}));
|
|
@@ -18525,11 +18550,11 @@ var ToolbarButton = function ToolbarButton(_ref) {
|
|
|
18525
18550
|
onPress = _ref.onPress,
|
|
18526
18551
|
testID = _ref.testID,
|
|
18527
18552
|
selected = _ref.selected;
|
|
18528
|
-
return /*#__PURE__*/
|
|
18553
|
+
return /*#__PURE__*/React__default.createElement(StyledToolbarButton, {
|
|
18529
18554
|
selected: selected,
|
|
18530
18555
|
onPress: onPress,
|
|
18531
18556
|
testID: testID
|
|
18532
|
-
}, /*#__PURE__*/
|
|
18557
|
+
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
18533
18558
|
size: "small",
|
|
18534
18559
|
icon: icon
|
|
18535
18560
|
}));
|
|
@@ -18627,13 +18652,13 @@ var EditorToolbar = function EditorToolbar(_ref2) {
|
|
|
18627
18652
|
var toolbarButtons = useMemo(function () {
|
|
18628
18653
|
return toolbarButtonArray.map(function (button) {
|
|
18629
18654
|
if (button.buttonName === '|') {
|
|
18630
|
-
return /*#__PURE__*/
|
|
18655
|
+
return /*#__PURE__*/React__default.createElement(StyledSeparator, {
|
|
18631
18656
|
key: button.id
|
|
18632
18657
|
});
|
|
18633
18658
|
}
|
|
18634
18659
|
var config = buttonConfigs[button.buttonName];
|
|
18635
18660
|
if (config) {
|
|
18636
|
-
return /*#__PURE__*/
|
|
18661
|
+
return /*#__PURE__*/React__default.createElement(ToolbarButton, {
|
|
18637
18662
|
key: button.id,
|
|
18638
18663
|
testID: config.icon,
|
|
18639
18664
|
icon: config.icon,
|
|
@@ -18648,7 +18673,7 @@ var EditorToolbar = function EditorToolbar(_ref2) {
|
|
|
18648
18673
|
});
|
|
18649
18674
|
}, [toolbarButtonArray]);
|
|
18650
18675
|
if (show) {
|
|
18651
|
-
return /*#__PURE__*/
|
|
18676
|
+
return /*#__PURE__*/React__default.createElement(StyledToolbar, {
|
|
18652
18677
|
testID: testID
|
|
18653
18678
|
}, toolbarButtons);
|
|
18654
18679
|
}
|
|
@@ -18687,7 +18712,7 @@ var MentionList = function MentionList(_ref) {
|
|
|
18687
18712
|
if (isEmptyString(search)) {
|
|
18688
18713
|
return null;
|
|
18689
18714
|
}
|
|
18690
|
-
return /*#__PURE__*/
|
|
18715
|
+
return /*#__PURE__*/React__default.createElement(View, null, render(search, function (id, name) {
|
|
18691
18716
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
18692
18717
|
highlighted: false
|
|
18693
18718
|
};
|
|
@@ -18976,7 +19001,7 @@ var scheduler_production_min = {};
|
|
|
18976
19001
|
scheduler.exports = scheduler_production_min;
|
|
18977
19002
|
}
|
|
18978
19003
|
|
|
18979
|
-
var aa =
|
|
19004
|
+
var aa = React__default,
|
|
18980
19005
|
ca = scheduler.exports;
|
|
18981
19006
|
function p(a) {
|
|
18982
19007
|
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
@@ -26119,7 +26144,7 @@ function checkDCE() {
|
|
|
26119
26144
|
|
|
26120
26145
|
(function (module, exports) {
|
|
26121
26146
|
!function (e, t) {
|
|
26122
|
-
module.exports = t(
|
|
26147
|
+
module.exports = t(React__default, reactDom.exports);
|
|
26123
26148
|
}(window, function (e, t) {
|
|
26124
26149
|
return function (e) {
|
|
26125
26150
|
var t = {};
|
|
@@ -35425,14 +35450,14 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35425
35450
|
postMessage(webview.current, message);
|
|
35426
35451
|
}
|
|
35427
35452
|
};
|
|
35428
|
-
var _React$useState =
|
|
35453
|
+
var _React$useState = React__default.useState({
|
|
35429
35454
|
height: 0,
|
|
35430
35455
|
width: 0
|
|
35431
35456
|
}),
|
|
35432
35457
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
35433
35458
|
inputSize = _React$useState2[0],
|
|
35434
35459
|
setInputSize = _React$useState2[1];
|
|
35435
|
-
var _React$useState3 =
|
|
35460
|
+
var _React$useState3 = React__default.useState(0),
|
|
35436
35461
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
35437
35462
|
labelWidth = _React$useState4[0],
|
|
35438
35463
|
setLabelWidth = _React$useState4[1];
|
|
@@ -35547,9 +35572,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35547
35572
|
break;
|
|
35548
35573
|
}
|
|
35549
35574
|
}, []);
|
|
35550
|
-
return /*#__PURE__*/
|
|
35575
|
+
return /*#__PURE__*/React__default.createElement(StyledContainer$4, {
|
|
35551
35576
|
testID: testID
|
|
35552
|
-
}, /*#__PURE__*/
|
|
35577
|
+
}, /*#__PURE__*/React__default.createElement(StyledLabelContainerInsideTextInput, {
|
|
35553
35578
|
themeVariant: "text",
|
|
35554
35579
|
pointerEvents: "none",
|
|
35555
35580
|
testID: "input-label-container",
|
|
@@ -35573,28 +35598,28 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35573
35598
|
})
|
|
35574
35599
|
}]
|
|
35575
35600
|
}]
|
|
35576
|
-
}, required && /*#__PURE__*/
|
|
35601
|
+
}, required && /*#__PURE__*/React__default.createElement(StyledAsteriskLabelInsideTextInput, {
|
|
35577
35602
|
style: {
|
|
35578
35603
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
35579
35604
|
},
|
|
35580
35605
|
themeState: state
|
|
35581
|
-
}, "*"), !!label && /*#__PURE__*/
|
|
35606
|
+
}, "*"), !!label && /*#__PURE__*/React__default.createElement(StyledLabelInsideTextInput, {
|
|
35582
35607
|
style: {
|
|
35583
35608
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
35584
35609
|
},
|
|
35585
35610
|
testID: "input-label",
|
|
35586
35611
|
themeState: state,
|
|
35587
35612
|
onLayout: onLabelLayout
|
|
35588
|
-
}, label)), /*#__PURE__*/
|
|
35613
|
+
}, label)), /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
|
|
35589
35614
|
onLayout: onLayout
|
|
35590
|
-
}, /*#__PURE__*/
|
|
35615
|
+
}, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
|
|
35591
35616
|
themeState: state,
|
|
35592
35617
|
themeFocused: isFocused
|
|
35593
|
-
}), /*#__PURE__*/
|
|
35618
|
+
}), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, /*#__PURE__*/React__default.createElement(TouchableWithoutFeedback, {
|
|
35594
35619
|
onPress: function onPress(e) {
|
|
35595
35620
|
return e.stopPropagation();
|
|
35596
35621
|
}
|
|
35597
|
-
}, /*#__PURE__*/
|
|
35622
|
+
}, /*#__PURE__*/React__default.createElement(StyledWebView, {
|
|
35598
35623
|
ref: webview,
|
|
35599
35624
|
testID: "webview",
|
|
35600
35625
|
style: style,
|
|
@@ -35607,17 +35632,17 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35607
35632
|
hideKeyboardAccessoryView: true,
|
|
35608
35633
|
keyboardDisplayRequiresUserAction: false,
|
|
35609
35634
|
height: webviewHeight
|
|
35610
|
-
})))), /*#__PURE__*/
|
|
35635
|
+
})))), /*#__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, {
|
|
35611
35636
|
testID: "input-error-icon",
|
|
35612
35637
|
icon: "circle-info",
|
|
35613
35638
|
size: "xsmall",
|
|
35614
35639
|
intent: "danger"
|
|
35615
|
-
}), /*#__PURE__*/
|
|
35640
|
+
}), /*#__PURE__*/React__default.createElement(StyledError, {
|
|
35616
35641
|
testID: "input-error-message"
|
|
35617
|
-
}, error)) : !!helpText && /*#__PURE__*/
|
|
35642
|
+
}, error)) : !!helpText && /*#__PURE__*/React__default.createElement(StyledHelperText, null, helpText))));
|
|
35618
35643
|
};
|
|
35619
35644
|
var RichTextEditorWithRef = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
35620
|
-
return /*#__PURE__*/
|
|
35645
|
+
return /*#__PURE__*/React__default.createElement(RichTextEditor, _extends$1({}, props, {
|
|
35621
35646
|
forwardedRef: ref
|
|
35622
35647
|
}));
|
|
35623
35648
|
});
|
|
@@ -35649,18 +35674,18 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35649
35674
|
contentHeight = _ref.contentHeight,
|
|
35650
35675
|
layoutHeight = _ref.layoutHeight;
|
|
35651
35676
|
var component = 'items' in fabProps ? 'ActionGroup' : 'FAB';
|
|
35652
|
-
var ref =
|
|
35653
|
-
var currentContentHeight =
|
|
35654
|
-
var currentLayoutHeight =
|
|
35677
|
+
var ref = React__default.useRef(null);
|
|
35678
|
+
var currentContentHeight = React__default.useRef(0);
|
|
35679
|
+
var currentLayoutHeight = React__default.useRef(0);
|
|
35655
35680
|
/** fabState is used to avoid calling duplicated animations. */
|
|
35656
|
-
var fabState =
|
|
35681
|
+
var fabState = React__default.useRef('show');
|
|
35657
35682
|
/** remainingScrollOffset determines whether to animate the FAB. */
|
|
35658
|
-
var remainingScrollOffset =
|
|
35683
|
+
var remainingScrollOffset = React__default.useRef(MAX_ANIMATABLE_SCROLL_DISTANCE);
|
|
35659
35684
|
/** currentScrollDirection is used to determine the scroll direction. */
|
|
35660
|
-
var currentScrollDirection =
|
|
35685
|
+
var currentScrollDirection = React__default.useRef('down');
|
|
35661
35686
|
/** lastScrollY is the scrollY from the preview scroll event. */
|
|
35662
|
-
var lastScrollY =
|
|
35663
|
-
var animateFab =
|
|
35687
|
+
var lastScrollY = React__default.useRef(0);
|
|
35688
|
+
var animateFab = React__default.useCallback(function (newState) {
|
|
35664
35689
|
if (fabState.current !== newState) {
|
|
35665
35690
|
if (newState === 'show') {
|
|
35666
35691
|
var _ref$current;
|
|
@@ -35675,7 +35700,7 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35675
35700
|
fabState.current = newState;
|
|
35676
35701
|
}
|
|
35677
35702
|
}, [component]);
|
|
35678
|
-
|
|
35703
|
+
React__default.useEffect(function () {
|
|
35679
35704
|
contentHeight.addListener(function (_ref2) {
|
|
35680
35705
|
var value = _ref2.value;
|
|
35681
35706
|
if (value > 0 && value !== currentContentHeight.current) {
|
|
@@ -35730,9 +35755,9 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35730
35755
|
layoutHeight.removeAllListeners();
|
|
35731
35756
|
};
|
|
35732
35757
|
}, [contentHeight, contentOffsetY, layoutHeight]);
|
|
35733
|
-
return component === 'FAB' ? /*#__PURE__*/
|
|
35758
|
+
return component === 'FAB' ? /*#__PURE__*/React__default.createElement(FAB, _extends$1({
|
|
35734
35759
|
ref: ref
|
|
35735
|
-
}, fabProps)) : /*#__PURE__*/
|
|
35760
|
+
}, fabProps)) : /*#__PURE__*/React__default.createElement(ActionGroup, _extends$1({
|
|
35736
35761
|
ref: ref
|
|
35737
35762
|
}, fabProps));
|
|
35738
35763
|
};
|
|
@@ -35740,14 +35765,14 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35740
35765
|
function AnimatedScroller(_ref) {
|
|
35741
35766
|
var ScrollComponent = _ref.ScrollComponent,
|
|
35742
35767
|
fabProps = _ref.fabProps;
|
|
35743
|
-
var contentOffsetY =
|
|
35744
|
-
var contentHeight =
|
|
35745
|
-
var layoutHeight =
|
|
35768
|
+
var contentOffsetY = React__default.useRef(new Animated.Value(0)).current;
|
|
35769
|
+
var contentHeight = React__default.useRef(new Animated.Value(0)).current;
|
|
35770
|
+
var layoutHeight = React__default.useRef(new Animated.Value(0)).current;
|
|
35746
35771
|
// Common props for all ScrollView, FlatList and SectionList.
|
|
35747
35772
|
var _ScrollComponent$prop = ScrollComponent.props,
|
|
35748
35773
|
onScroll = _ScrollComponent$prop.onScroll,
|
|
35749
35774
|
scrollEventThrottle = _ScrollComponent$prop.scrollEventThrottle;
|
|
35750
|
-
return /*#__PURE__*/
|
|
35775
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.cloneElement(ScrollComponent, _objectSpread2(_objectSpread2({}, ScrollComponent.props), {}, {
|
|
35751
35776
|
scrollEventThrottle: scrollEventThrottle || 100,
|
|
35752
35777
|
onScroll: Animated.event([{
|
|
35753
35778
|
nativeEvent: {
|
|
@@ -35765,7 +35790,7 @@ function AnimatedScroller(_ref) {
|
|
|
35765
35790
|
useNativeDriver: false,
|
|
35766
35791
|
listener: onScroll
|
|
35767
35792
|
})
|
|
35768
|
-
})), !!fabProps && /*#__PURE__*/
|
|
35793
|
+
})), !!fabProps && /*#__PURE__*/React__default.createElement(AnimatedFAB, {
|
|
35769
35794
|
fabProps: fabProps,
|
|
35770
35795
|
contentOffsetY: contentOffsetY,
|
|
35771
35796
|
contentHeight: contentHeight,
|
|
@@ -35777,8 +35802,8 @@ var _excluded$2 = ["fabProps"];
|
|
|
35777
35802
|
var ScrollViewWithFAB = function ScrollViewWithFAB(_ref) {
|
|
35778
35803
|
var fabProps = _ref.fabProps,
|
|
35779
35804
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
35780
|
-
return /*#__PURE__*/
|
|
35781
|
-
ScrollComponent: /*#__PURE__*/
|
|
35805
|
+
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
35806
|
+
ScrollComponent: /*#__PURE__*/React__default.createElement(ScrollView, props),
|
|
35782
35807
|
fabProps: fabProps
|
|
35783
35808
|
});
|
|
35784
35809
|
};
|
|
@@ -35787,8 +35812,8 @@ var _excluded$1 = ["fabProps"];
|
|
|
35787
35812
|
function FlatListWithFAB(_ref) {
|
|
35788
35813
|
var fabProps = _ref.fabProps,
|
|
35789
35814
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
35790
|
-
return /*#__PURE__*/
|
|
35791
|
-
ScrollComponent: /*#__PURE__*/
|
|
35815
|
+
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
35816
|
+
ScrollComponent: /*#__PURE__*/React__default.createElement(FlatList, props),
|
|
35792
35817
|
fabProps: fabProps
|
|
35793
35818
|
});
|
|
35794
35819
|
}
|
|
@@ -35797,8 +35822,8 @@ var _excluded = ["fabProps"];
|
|
|
35797
35822
|
function SectionListWithFAB(_ref) {
|
|
35798
35823
|
var fabProps = _ref.fabProps,
|
|
35799
35824
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
35800
|
-
return /*#__PURE__*/
|
|
35801
|
-
ScrollComponent: /*#__PURE__*/
|
|
35825
|
+
return /*#__PURE__*/React__default.createElement(AnimatedScroller, {
|
|
35826
|
+
ScrollComponent: /*#__PURE__*/React__default.createElement(SectionList, props),
|
|
35802
35827
|
fabProps: fabProps
|
|
35803
35828
|
});
|
|
35804
35829
|
}
|