@hero-design/rn 7.20.1 → 7.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +11 -0
- package/.turbo/turbo-build.log +9 -9
- package/babel.config.js +1 -1
- package/es/index.js +714 -471
- package/lib/index.js +720 -474
- package/package.json +9 -15
- package/rollup.config.js +1 -0
- package/src/components/BottomNavigation/__tests__/index.spec.tsx +1 -1
- package/src/components/BottomNavigation/index.tsx +3 -3
- package/src/components/BottomSheet/index.tsx +6 -1
- package/src/components/Box/helpers.ts +1 -1
- package/src/components/Calendar/index.tsx +9 -9
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +4 -4
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +13 -13
- package/src/components/Collapse/index.tsx +1 -1
- package/src/components/Drawer/DragableDrawer/helpers.ts +7 -3
- package/src/components/Empty/StyledEmpty.tsx +1 -9
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +58 -5
- package/src/components/Empty/__tests__/index.spec.tsx +13 -0
- package/src/components/Empty/index.tsx +38 -18
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/Icon/HeroIcon/selection.json +7029 -1
- package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +81 -0
- package/src/components/Image/__tests__/index.spec.tsx +29 -0
- package/src/components/Image/index.tsx +46 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +5 -5
- package/src/components/PinInput/index.tsx +1 -1
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +60 -60
- package/src/components/RichTextEditor/EditorToolbar.tsx +3 -3
- package/src/components/RichTextEditor/RichTextEditor.tsx +5 -5
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +2 -2
- package/src/components/RichTextEditor/__tests__/MentionList.spec.tsx +1 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +2 -2
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -2
- package/src/components/Select/MultiSelect/OptionList.tsx +5 -7
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +21 -0
- package/src/components/Select/MultiSelect/index.tsx +35 -5
- package/src/components/Select/SingleSelect/OptionList.tsx +4 -5
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +16 -0
- package/src/components/Select/SingleSelect/index.tsx +36 -6
- package/src/components/Select/StyledOptionList.tsx +3 -9
- package/src/components/Select/helpers.tsx +4 -4
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +43 -0
- package/src/components/Slider/__tests__/index.spec.tsx +33 -0
- package/src/components/Slider/index.tsx +89 -0
- package/src/components/Switch/SelectorSwitch/Option.tsx +67 -0
- package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +25 -0
- package/src/components/Switch/SelectorSwitch/__tests__/Option.spec.tsx +61 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +195 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +121 -0
- package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +62 -0
- package/src/components/Switch/SelectorSwitch/index.tsx +60 -0
- package/src/components/Switch/StyledSwitch.tsx +4 -4
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +10 -10
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/Switch/index.tsx +9 -5
- package/src/components/Tabs/ScrollableTabs.tsx +12 -5
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +1 -1
- package/src/components/Tabs/__tests__/index.spec.tsx +1 -1
- package/src/components/Tabs/index.tsx +13 -6
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3 -1
- package/src/components/TextInput/__tests__/index.spec.tsx +114 -112
- package/src/components/TextInput/index.tsx +64 -59
- package/src/components/Toast/ToastContainer.tsx +6 -6
- package/src/index.ts +4 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +70 -23
- package/src/theme/components/alert.ts +1 -2
- package/src/theme/components/avatar.ts +8 -8
- package/src/theme/components/badge.ts +4 -4
- package/src/theme/components/bottomNavigation.ts +1 -1
- package/src/theme/components/bottomSheet.ts +2 -3
- package/src/theme/components/calendar.ts +9 -7
- package/src/theme/components/card.ts +1 -1
- package/src/theme/components/checkbox.ts +2 -5
- package/src/theme/components/datePicker.ts +3 -3
- package/src/theme/components/drawer.ts +2 -3
- package/src/theme/components/empty.ts +3 -8
- package/src/theme/components/fab.ts +2 -2
- package/src/theme/components/image.ts +12 -0
- package/src/theme/components/pinInput.ts +3 -3
- package/src/theme/components/progress.ts +2 -3
- package/src/theme/components/radio.ts +7 -3
- package/src/theme/components/richTextEditor.ts +4 -4
- package/src/theme/components/slider.ts +13 -0
- package/src/theme/components/switch.ts +28 -17
- package/src/theme/components/tabs.ts +1 -1
- package/src/theme/components/timePicker.ts +3 -3
- package/src/theme/components/toast.ts +1 -2
- package/src/theme/getTheme.ts +9 -2
- package/src/theme/global/colors/swag.ts +2 -0
- package/src/theme/global/colors/types.ts +2 -0
- package/src/theme/global/index.ts +3 -0
- package/src/theme/global/scale.ts +3 -0
- package/src/theme/global/sizes.ts +29 -0
- package/testUtils/setup.tsx +15 -1
- package/tsconfig.json +1 -1
- package/types/components/BottomSheet/index.d.ts +5 -1
- package/types/components/Empty/StyledEmpty.d.ts +1 -7
- package/types/components/Empty/index.d.ts +8 -2
- package/types/components/Image/__tests__/index.spec.d.ts +1 -0
- package/types/components/Image/index.d.ts +17 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +5 -2
- package/types/components/Select/MultiSelect/index.d.ts +7 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +5 -2
- package/types/components/Select/SingleSelect/index.d.ts +8 -2
- package/types/components/Select/StyledOptionList.d.ts +4 -3
- package/types/components/Select/index.d.ts +1 -1
- package/types/components/Slider/__tests__/index.spec.d.ts +1 -0
- package/types/components/Slider/index.d.ts +52 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +10 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +19 -0
- package/types/components/Switch/SelectorSwitch/__tests__/Option.spec.d.ts +1 -0
- package/types/components/Switch/SelectorSwitch/__tests__/index.spec.d.ts +1 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +37 -0
- package/types/components/Switch/index.d.ts +5 -3
- package/types/components/Tabs/ScrollableTabs.d.ts +1 -1
- package/types/components/Tabs/index.d.ts +2 -2
- package/types/components/TextInput/index.d.ts +6 -5
- package/types/index.d.ts +3 -1
- package/types/theme/components/datePicker.d.ts +2 -1
- package/types/theme/components/empty.d.ts +2 -5
- package/types/theme/components/image.d.ts +8 -0
- package/types/theme/components/slider.d.ts +9 -0
- package/types/theme/components/switch.d.ts +27 -12
- package/types/theme/components/timePicker.d.ts +2 -1
- package/types/theme/getTheme.d.ts +4 -0
- package/types/theme/global/colors/types.d.ts +2 -0
- package/types/theme/global/index.d.ts +3 -0
- package/types/theme/global/scale.d.ts +1 -0
- package/types/theme/global/sizes.d.ts +14 -0
- package/.eslintrc.json +0 -61
- package/.prettierrc.json +0 -8
package/lib/index.js
CHANGED
|
@@ -7,6 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var reactNativeVectorIcons = require('react-native-vector-icons');
|
|
8
8
|
var reactNativeSafeAreaContext = require('react-native-safe-area-context');
|
|
9
9
|
var DateTimePicker = require('@react-native-community/datetimepicker');
|
|
10
|
+
var RnSlider = require('@react-native-community/slider');
|
|
10
11
|
var PagerView = require('react-native-pager-view');
|
|
11
12
|
var events = require('events');
|
|
12
13
|
var reactNativeWebview = require('react-native-webview');
|
|
@@ -34,6 +35,7 @@ function _interopNamespace(e) {
|
|
|
34
35
|
var reactNative__namespace = /*#__PURE__*/_interopNamespace(reactNative);
|
|
35
36
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
36
37
|
var DateTimePicker__default = /*#__PURE__*/_interopDefaultLegacy(DateTimePicker);
|
|
38
|
+
var RnSlider__default = /*#__PURE__*/_interopDefaultLegacy(RnSlider);
|
|
37
39
|
var PagerView__default = /*#__PURE__*/_interopDefaultLegacy(PagerView);
|
|
38
40
|
|
|
39
41
|
function ownKeys(object, enumerableOnly) {
|
|
@@ -300,12 +302,14 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
300
302
|
|
|
301
303
|
var BASE_BORDER_WIDTH = 1;
|
|
302
304
|
var BASE_SPACE = 8;
|
|
305
|
+
var BASE_SIZE = 8;
|
|
303
306
|
var BASE_FONT = 'BeVietnamPro';
|
|
304
307
|
var BASE_FONT_SIZE = 10;
|
|
305
308
|
var BASE_RADIUS = 4;
|
|
306
309
|
var scale$1 = {
|
|
307
310
|
borderWidth: BASE_BORDER_WIDTH,
|
|
308
311
|
space: BASE_SPACE,
|
|
312
|
+
size: BASE_SIZE,
|
|
309
313
|
font: BASE_FONT,
|
|
310
314
|
fontSize: BASE_FONT_SIZE,
|
|
311
315
|
radius: BASE_RADIUS
|
|
@@ -1337,6 +1341,7 @@ var swagSystemPalette = {
|
|
|
1337
1341
|
shadow: palette$5.greyLight45,
|
|
1338
1342
|
__alpha__globalPrimary: palette$5.maasstrichtBlue,
|
|
1339
1343
|
__alpha__globalSecondary1: palette$5.maasstrichtBlueLight30,
|
|
1344
|
+
__alpha__globalSecondary4: palette$5.maasstrichtBlueLight90,
|
|
1340
1345
|
__alpha__globalNeutral3: palette$5.greyLight90,
|
|
1341
1346
|
__alpha__globalLabel1: palette$5.vermilion,
|
|
1342
1347
|
__alpha__globalLabel2: palette$5.deepSaffron,
|
|
@@ -1347,6 +1352,7 @@ var swagSystemPalette = {
|
|
|
1347
1352
|
__alpha__globalLabel7: palette$5.seashell,
|
|
1348
1353
|
__alpha__globalLabel8: palette$5.honeydew,
|
|
1349
1354
|
__alpha__globalLabel9: palette$5.aliceBlue,
|
|
1355
|
+
__alpha__primary1: palette$2.scarletGum,
|
|
1350
1356
|
__alpha__primary2: palette$2.mauve,
|
|
1351
1357
|
__alpha__secondary1: palette$2.scarletGumLight30,
|
|
1352
1358
|
__alpha__secondary2: palette$2.scarletGumLight50,
|
|
@@ -1454,6 +1460,20 @@ var getSpace = function getSpace(baseSpace) {
|
|
|
1454
1460
|
};
|
|
1455
1461
|
};
|
|
1456
1462
|
|
|
1463
|
+
var getSizes = function getSizes(baseSize) {
|
|
1464
|
+
return _objectSpread2(_objectSpread2({}, getSpace(baseSize)), {}, {
|
|
1465
|
+
xxxxxlarge: scale(baseSize * 8),
|
|
1466
|
+
'6xlarge': scale(baseSize * 9),
|
|
1467
|
+
'7xlarge': scale(baseSize * 10),
|
|
1468
|
+
'9xlarge': scale(baseSize * 12),
|
|
1469
|
+
'14xlarge': scale(baseSize * 17),
|
|
1470
|
+
'15xlarge': scale(baseSize * 18),
|
|
1471
|
+
'18xlarge': scale(baseSize * 21),
|
|
1472
|
+
'19xlarge': scale(baseSize * 22) // 176
|
|
1473
|
+
|
|
1474
|
+
});
|
|
1475
|
+
};
|
|
1476
|
+
|
|
1457
1477
|
var getBorderWidths = function getBorderWidths(baseBorderWidth) {
|
|
1458
1478
|
return {
|
|
1459
1479
|
base: baseBorderWidth,
|
|
@@ -1479,6 +1499,7 @@ var getGlobalTheme = function getGlobalTheme(scale, systemPalette) {
|
|
|
1479
1499
|
var lineHeights = getLineHeights(fontSizes);
|
|
1480
1500
|
var borderWidths = getBorderWidths(scale.borderWidth);
|
|
1481
1501
|
var space = getSpace(scale.space);
|
|
1502
|
+
var sizes = getSizes(scale.size);
|
|
1482
1503
|
var radii = getRadii(scale.radius);
|
|
1483
1504
|
return {
|
|
1484
1505
|
colors: _objectSpread2({}, systemPalette),
|
|
@@ -1487,6 +1508,7 @@ var getGlobalTheme = function getGlobalTheme(scale, systemPalette) {
|
|
|
1487
1508
|
lineHeights: lineHeights,
|
|
1488
1509
|
borderWidths: borderWidths,
|
|
1489
1510
|
space: space,
|
|
1511
|
+
sizes: sizes,
|
|
1490
1512
|
radii: radii
|
|
1491
1513
|
};
|
|
1492
1514
|
};
|
|
@@ -1518,7 +1540,7 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
1518
1540
|
divider: theme.colors.outline
|
|
1519
1541
|
};
|
|
1520
1542
|
var sizes = {
|
|
1521
|
-
height:
|
|
1543
|
+
height: theme.sizes.xxxlarge
|
|
1522
1544
|
};
|
|
1523
1545
|
var space = {
|
|
1524
1546
|
contentPaddingHorizontal: theme.space.smallMedium,
|
|
@@ -1550,14 +1572,14 @@ var getAvatarTheme = function getAvatarTheme(theme) {
|
|
|
1550
1572
|
warning: theme.colors.warning
|
|
1551
1573
|
};
|
|
1552
1574
|
var sizes = {
|
|
1553
|
-
small: theme.
|
|
1554
|
-
medium: theme.
|
|
1555
|
-
large: theme.
|
|
1556
|
-
xlarge: theme.
|
|
1557
|
-
xxlarge: theme.
|
|
1558
|
-
xxxlarge: theme.
|
|
1559
|
-
xxxxlarge: theme.
|
|
1560
|
-
xxxxxlarge: theme.
|
|
1575
|
+
small: theme.sizes.xlarge,
|
|
1576
|
+
medium: theme.sizes.xxlarge,
|
|
1577
|
+
large: theme.sizes.xxxlarge,
|
|
1578
|
+
xlarge: theme.sizes.xxxxlarge,
|
|
1579
|
+
xxlarge: theme.sizes.xxxxxlarge,
|
|
1580
|
+
xxxlarge: theme.sizes['7xlarge'],
|
|
1581
|
+
xxxxlarge: theme.sizes['9xlarge'],
|
|
1582
|
+
xxxxxlarge: theme.sizes['14xlarge']
|
|
1561
1583
|
};
|
|
1562
1584
|
var fontSizes = {
|
|
1563
1585
|
small: theme.fontSizes.large,
|
|
@@ -1600,10 +1622,10 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
1600
1622
|
"default": theme.fontSizes.small
|
|
1601
1623
|
};
|
|
1602
1624
|
var sizes = {
|
|
1603
|
-
height: theme.fontSizes.small + theme.
|
|
1604
|
-
minWidth: theme.fontSizes.small + theme.
|
|
1605
|
-
statusHeight: theme.
|
|
1606
|
-
statusWidth: theme.
|
|
1625
|
+
height: theme.fontSizes.small + theme.sizes.small,
|
|
1626
|
+
minWidth: theme.fontSizes.small + theme.sizes.small,
|
|
1627
|
+
statusHeight: theme.sizes.small,
|
|
1628
|
+
statusWidth: theme.sizes.small
|
|
1607
1629
|
};
|
|
1608
1630
|
var space = {
|
|
1609
1631
|
horizontalPadding: theme.space.small,
|
|
@@ -1625,7 +1647,7 @@ var getBottomNavigationTheme = function getBottomNavigationTheme(theme) {
|
|
|
1625
1647
|
background: theme.colors.platformBackground
|
|
1626
1648
|
};
|
|
1627
1649
|
var sizes = {
|
|
1628
|
-
height:
|
|
1650
|
+
height: theme.sizes['6xlarge']
|
|
1629
1651
|
};
|
|
1630
1652
|
var shadows = {
|
|
1631
1653
|
offset: {
|
|
@@ -1654,8 +1676,8 @@ var getBottomSheetTheme = function getBottomSheetTheme(theme) {
|
|
|
1654
1676
|
backdrop: theme.colors.backgroundDark
|
|
1655
1677
|
};
|
|
1656
1678
|
var sizes = {
|
|
1657
|
-
sectionHeight:
|
|
1658
|
-
closeIcon:
|
|
1679
|
+
sectionHeight: theme.sizes.xxxxxlarge,
|
|
1680
|
+
closeIcon: theme.sizes.xxxlarge
|
|
1659
1681
|
};
|
|
1660
1682
|
var space = {
|
|
1661
1683
|
headerWrapperVerticalPadding: theme.space.small,
|
|
@@ -1758,13 +1780,15 @@ var getCalendarTheme = function getCalendarTheme(theme) {
|
|
|
1758
1780
|
primary: theme.colors.primary,
|
|
1759
1781
|
inverted: theme.colors.invertedText
|
|
1760
1782
|
};
|
|
1783
|
+
var cellSize = theme.sizes.xxxlarge;
|
|
1784
|
+
var markSize = theme.sizes.xsmall;
|
|
1761
1785
|
var sizes = {
|
|
1762
|
-
cellWidth:
|
|
1763
|
-
cellHeight:
|
|
1764
|
-
cellCircleWidth:
|
|
1765
|
-
cellCircleHeight:
|
|
1766
|
-
markWidth:
|
|
1767
|
-
markHeight:
|
|
1786
|
+
cellWidth: cellSize,
|
|
1787
|
+
cellHeight: cellSize,
|
|
1788
|
+
cellCircleWidth: cellSize - markSize,
|
|
1789
|
+
cellCircleHeight: cellSize - markSize,
|
|
1790
|
+
markWidth: markSize,
|
|
1791
|
+
markHeight: markSize
|
|
1768
1792
|
};
|
|
1769
1793
|
var space = {
|
|
1770
1794
|
rowVerticalPadding: theme.space.medium,
|
|
@@ -1793,7 +1817,7 @@ var getCardTheme = function getCardTheme(theme) {
|
|
|
1793
1817
|
archived: theme.colors.archivedLight
|
|
1794
1818
|
};
|
|
1795
1819
|
var sizes = {
|
|
1796
|
-
indicatorWidth: theme.
|
|
1820
|
+
indicatorWidth: theme.sizes.medium
|
|
1797
1821
|
};
|
|
1798
1822
|
var radii = {
|
|
1799
1823
|
"default": theme.radii.large
|
|
@@ -1811,14 +1835,12 @@ var getCheckboxTheme = function getCheckboxTheme(theme) {
|
|
|
1811
1835
|
disabledBorder: theme.colors.globalPrimaryLight
|
|
1812
1836
|
};
|
|
1813
1837
|
var space = {
|
|
1814
|
-
|
|
1815
|
-
// and also to center the check mark
|
|
1816
|
-
iconTop: -scale(3),
|
|
1838
|
+
iconTop: 0,
|
|
1817
1839
|
wrapperPadding: theme.space.medium,
|
|
1818
1840
|
iconDescriptionPadding: theme.space.smallMedium
|
|
1819
1841
|
};
|
|
1820
1842
|
var sizes = {
|
|
1821
|
-
icon:
|
|
1843
|
+
icon: theme.sizes.large
|
|
1822
1844
|
};
|
|
1823
1845
|
var radii = {
|
|
1824
1846
|
wrapper: theme.radii.medium,
|
|
@@ -1846,9 +1868,9 @@ var getContentNavigatorTheme = function getContentNavigatorTheme(theme) {
|
|
|
1846
1868
|
};
|
|
1847
1869
|
};
|
|
1848
1870
|
|
|
1849
|
-
var getDatePickerTheme = function getDatePickerTheme() {
|
|
1871
|
+
var getDatePickerTheme = function getDatePickerTheme(theme) {
|
|
1850
1872
|
var sizes = {
|
|
1851
|
-
height:
|
|
1873
|
+
height: theme.sizes['19xlarge']
|
|
1852
1874
|
};
|
|
1853
1875
|
return {
|
|
1854
1876
|
sizes: sizes
|
|
@@ -1891,8 +1913,8 @@ var getDrawerTheme = function getDrawerTheme(theme) {
|
|
|
1891
1913
|
handlerPaddingVertical: theme.space.small
|
|
1892
1914
|
};
|
|
1893
1915
|
var sizes = {
|
|
1894
|
-
handlerWidth:
|
|
1895
|
-
handlerHeight:
|
|
1916
|
+
handlerWidth: theme.sizes.xxxxlarge,
|
|
1917
|
+
handlerHeight: theme.sizes.xsmall
|
|
1896
1918
|
};
|
|
1897
1919
|
var shadows = {
|
|
1898
1920
|
offset: {
|
|
@@ -1915,14 +1937,11 @@ var getDrawerTheme = function getDrawerTheme(theme) {
|
|
|
1915
1937
|
var getEmptyTheme = function getEmptyTheme(theme) {
|
|
1916
1938
|
var space = {
|
|
1917
1939
|
titleMargin: theme.space.medium,
|
|
1918
|
-
|
|
1940
|
+
imageMargin: theme.space.large,
|
|
1919
1941
|
wrapperPadding: theme.space.medium
|
|
1920
1942
|
};
|
|
1921
1943
|
var sizes = {
|
|
1922
|
-
|
|
1923
|
-
};
|
|
1924
|
-
var radii = {
|
|
1925
|
-
illustration: theme.radii.rounded
|
|
1944
|
+
image: theme.sizes['18xlarge']
|
|
1926
1945
|
};
|
|
1927
1946
|
var colors = {
|
|
1928
1947
|
text: theme.colors.text,
|
|
@@ -1943,8 +1962,7 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
1943
1962
|
colors: colors,
|
|
1944
1963
|
sizes: sizes,
|
|
1945
1964
|
space: space,
|
|
1946
|
-
fonts: fonts
|
|
1947
|
-
radii: radii
|
|
1965
|
+
fonts: fonts
|
|
1948
1966
|
};
|
|
1949
1967
|
};
|
|
1950
1968
|
|
|
@@ -1959,8 +1977,8 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
1959
1977
|
actionItemText: theme.colors.invertedText
|
|
1960
1978
|
};
|
|
1961
1979
|
var sizes = {
|
|
1962
|
-
width:
|
|
1963
|
-
height:
|
|
1980
|
+
width: theme.sizes.xxxxxlarge,
|
|
1981
|
+
height: theme.sizes.xxxxxlarge
|
|
1964
1982
|
};
|
|
1965
1983
|
var fonts = {
|
|
1966
1984
|
header: theme.fonts.semiBold,
|
|
@@ -2032,6 +2050,16 @@ var getIconTheme = function getIconTheme(theme) {
|
|
|
2032
2050
|
};
|
|
2033
2051
|
};
|
|
2034
2052
|
|
|
2053
|
+
var getImageTheme = function getImageTheme(theme) {
|
|
2054
|
+
var sizes = {
|
|
2055
|
+
'6xlarge': theme.sizes['6xlarge'],
|
|
2056
|
+
'15xlarge': theme.sizes['15xlarge']
|
|
2057
|
+
};
|
|
2058
|
+
return {
|
|
2059
|
+
sizes: sizes
|
|
2060
|
+
};
|
|
2061
|
+
};
|
|
2062
|
+
|
|
2035
2063
|
var getListTheme = function getListTheme(theme) {
|
|
2036
2064
|
var colors = {
|
|
2037
2065
|
checkedListItemContainerBackground: theme.colors.primaryBackground,
|
|
@@ -2101,9 +2129,9 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2101
2129
|
errorMessage: theme.fontSizes.small
|
|
2102
2130
|
};
|
|
2103
2131
|
var sizes = {
|
|
2104
|
-
cellWidth: theme.
|
|
2105
|
-
cellHeight: theme.
|
|
2106
|
-
mask: theme.
|
|
2132
|
+
cellWidth: theme.sizes.xxlarge,
|
|
2133
|
+
cellHeight: theme.sizes.xxxlarge,
|
|
2134
|
+
mask: theme.sizes.medium
|
|
2107
2135
|
};
|
|
2108
2136
|
var space = {
|
|
2109
2137
|
spacer: theme.space.medium,
|
|
@@ -2135,8 +2163,8 @@ var getProgressTheme = function getProgressTheme(theme) {
|
|
|
2135
2163
|
innerBackground: theme.colors.platformBackground
|
|
2136
2164
|
};
|
|
2137
2165
|
var sizes = {
|
|
2138
|
-
circleWidth:
|
|
2139
|
-
barHeight:
|
|
2166
|
+
circleWidth: theme.sizes['6xlarge'],
|
|
2167
|
+
barHeight: theme.sizes.xsmall
|
|
2140
2168
|
};
|
|
2141
2169
|
var radii = {
|
|
2142
2170
|
"default": theme.radii.rounded
|
|
@@ -2156,9 +2184,13 @@ var getRadioTheme = function getRadioTheme(theme) {
|
|
|
2156
2184
|
circleLeftMargin: theme.space.small,
|
|
2157
2185
|
groupTopMargin: theme.space.xsmall
|
|
2158
2186
|
};
|
|
2187
|
+
var boundingBoxSize = theme.sizes.large;
|
|
2188
|
+
var innerPadding = theme.space.xsmall;
|
|
2189
|
+
var circle = boundingBoxSize - innerPadding;
|
|
2190
|
+
var innerCircle = circle / 2;
|
|
2159
2191
|
var sizes = {
|
|
2160
|
-
circle:
|
|
2161
|
-
innerCircle:
|
|
2192
|
+
circle: circle,
|
|
2193
|
+
innerCircle: innerCircle
|
|
2162
2194
|
};
|
|
2163
2195
|
var borderWidths = {
|
|
2164
2196
|
circle: theme.borderWidths.medium
|
|
@@ -2181,10 +2213,10 @@ var getRichTextEditorTheme = function getRichTextEditorTheme(theme) {
|
|
|
2181
2213
|
webViewBorderBottomWidth: 0.8
|
|
2182
2214
|
};
|
|
2183
2215
|
var sizes = {
|
|
2184
|
-
editorMinHeight:
|
|
2185
|
-
toolbarButtonSize: theme.
|
|
2186
|
-
toolbarSeparatorWidth:
|
|
2187
|
-
toolbarSeparatorHeight: theme.
|
|
2216
|
+
editorMinHeight: theme.sizes.large,
|
|
2217
|
+
toolbarButtonSize: theme.sizes.xxxlarge,
|
|
2218
|
+
toolbarSeparatorWidth: theme.sizes.xxsmall,
|
|
2219
|
+
toolbarSeparatorHeight: theme.sizes.medium
|
|
2188
2220
|
};
|
|
2189
2221
|
var fontSizes = {
|
|
2190
2222
|
editor: theme.fontSizes.medium
|
|
@@ -2242,6 +2274,17 @@ var getSelectTheme = function getSelectTheme(theme) {
|
|
|
2242
2274
|
};
|
|
2243
2275
|
};
|
|
2244
2276
|
|
|
2277
|
+
var getSliderTheme = function getSliderTheme(theme) {
|
|
2278
|
+
var colors = {
|
|
2279
|
+
minimumTrackTint: theme.colors.__alpha__primary1,
|
|
2280
|
+
thumbTint: theme.colors.__alpha__globalSecondary4,
|
|
2281
|
+
maximumTrackTint: theme.colors.__alpha__secondary4
|
|
2282
|
+
};
|
|
2283
|
+
return {
|
|
2284
|
+
colors: colors
|
|
2285
|
+
};
|
|
2286
|
+
};
|
|
2287
|
+
|
|
2245
2288
|
var getSpinnerTheme = function getSpinnerTheme(theme) {
|
|
2246
2289
|
var colors = {
|
|
2247
2290
|
dot1: theme.colors.__alpha__secondary1,
|
|
@@ -2281,33 +2324,46 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2281
2324
|
'disabled-checked': theme.colors.primaryLight,
|
|
2282
2325
|
'disabled-unchecked': theme.colors.archived
|
|
2283
2326
|
},
|
|
2284
|
-
thumb: theme.colors.platformBackground
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
};
|
|
2290
|
-
var widths = {
|
|
2291
|
-
small: theme.space.xxxlarge,
|
|
2292
|
-
medium: theme.space.xxxxlarge
|
|
2327
|
+
thumb: theme.colors.platformBackground,
|
|
2328
|
+
selector: {
|
|
2329
|
+
background: theme.colors.__alpha__globalNeutral3,
|
|
2330
|
+
textBackground: theme.colors.__alpha__primary1
|
|
2331
|
+
}
|
|
2293
2332
|
};
|
|
2294
|
-
var
|
|
2295
|
-
|
|
2296
|
-
|
|
2333
|
+
var sizes = {
|
|
2334
|
+
thumbs: {
|
|
2335
|
+
small: theme.sizes.medium,
|
|
2336
|
+
medium: theme.sizes.large
|
|
2337
|
+
},
|
|
2338
|
+
widths: {
|
|
2339
|
+
small: theme.sizes.xxxlarge,
|
|
2340
|
+
medium: theme.sizes.xxxxxlarge
|
|
2341
|
+
},
|
|
2342
|
+
heights: {
|
|
2343
|
+
small: theme.sizes.large,
|
|
2344
|
+
medium: theme.sizes.xlarge
|
|
2345
|
+
},
|
|
2346
|
+
selector: {
|
|
2347
|
+
height: theme.sizes.xxxxlarge
|
|
2348
|
+
}
|
|
2297
2349
|
};
|
|
2298
2350
|
var spaces = {
|
|
2299
2351
|
small: theme.space.xsmall,
|
|
2300
2352
|
medium: theme.space.xsmall,
|
|
2301
|
-
|
|
2353
|
+
selector: {
|
|
2354
|
+
iconPadding: theme.space.medium,
|
|
2355
|
+
wrapperPadding: theme.space.xsmall
|
|
2356
|
+
}
|
|
2302
2357
|
};
|
|
2303
2358
|
var radii = {
|
|
2304
|
-
rounded: theme.radii.rounded
|
|
2359
|
+
rounded: theme.radii.rounded,
|
|
2360
|
+
selector: {
|
|
2361
|
+
"default": theme.radii.rounded
|
|
2362
|
+
}
|
|
2305
2363
|
};
|
|
2306
2364
|
return {
|
|
2307
2365
|
colors: colors,
|
|
2308
|
-
|
|
2309
|
-
widths: widths,
|
|
2310
|
-
heights: heights,
|
|
2366
|
+
sizes: sizes,
|
|
2311
2367
|
spaces: spaces,
|
|
2312
2368
|
radii: radii
|
|
2313
2369
|
};
|
|
@@ -2336,7 +2392,7 @@ var getTabsTheme = function getTabsTheme(theme) {
|
|
|
2336
2392
|
headerBottom: theme.borderWidths.base
|
|
2337
2393
|
};
|
|
2338
2394
|
var sizes = {
|
|
2339
|
-
indicator: theme.
|
|
2395
|
+
indicator: theme.sizes.xxsmall
|
|
2340
2396
|
};
|
|
2341
2397
|
return {
|
|
2342
2398
|
borderWidths: borderWidths,
|
|
@@ -2479,9 +2535,9 @@ var getTextInputTheme = function getTextInputTheme(theme) {
|
|
|
2479
2535
|
};
|
|
2480
2536
|
};
|
|
2481
2537
|
|
|
2482
|
-
var getTimePickerTheme = function getTimePickerTheme() {
|
|
2538
|
+
var getTimePickerTheme = function getTimePickerTheme(theme) {
|
|
2483
2539
|
var sizes = {
|
|
2484
|
-
height:
|
|
2540
|
+
height: theme.sizes['19xlarge']
|
|
2485
2541
|
};
|
|
2486
2542
|
return {
|
|
2487
2543
|
sizes: sizes
|
|
@@ -2500,7 +2556,7 @@ var getToastTheme = function getToastTheme(theme) {
|
|
|
2500
2556
|
shadow: theme.colors.backgroundDark
|
|
2501
2557
|
};
|
|
2502
2558
|
var sizes = {
|
|
2503
|
-
height:
|
|
2559
|
+
height: theme.sizes.xxxlarge
|
|
2504
2560
|
};
|
|
2505
2561
|
var space = {
|
|
2506
2562
|
wrapperVerticalPadding: theme.space.large,
|
|
@@ -2617,12 +2673,13 @@ var getTheme$1 = function getTheme() {
|
|
|
2617
2673
|
card: getCardTheme(globalTheme),
|
|
2618
2674
|
checkbox: getCheckboxTheme(globalTheme),
|
|
2619
2675
|
contentNavigator: getContentNavigatorTheme(globalTheme),
|
|
2620
|
-
datePicker: getDatePickerTheme(),
|
|
2676
|
+
datePicker: getDatePickerTheme(globalTheme),
|
|
2621
2677
|
divider: getDividerTheme(globalTheme),
|
|
2622
2678
|
drawer: getDrawerTheme(globalTheme),
|
|
2623
2679
|
empty: getEmptyTheme(globalTheme),
|
|
2624
2680
|
fab: getFABTheme(globalTheme),
|
|
2625
2681
|
icon: getIconTheme(globalTheme),
|
|
2682
|
+
image: getImageTheme(globalTheme),
|
|
2626
2683
|
list: getListTheme(globalTheme),
|
|
2627
2684
|
pinInput: getPinInputTheme(globalTheme),
|
|
2628
2685
|
progress: getProgressTheme(globalTheme),
|
|
@@ -2630,12 +2687,13 @@ var getTheme$1 = function getTheme() {
|
|
|
2630
2687
|
richTextEditor: getRichTextEditorTheme(globalTheme),
|
|
2631
2688
|
sectionHeading: getSectionHeadingTheme(globalTheme),
|
|
2632
2689
|
select: getSelectTheme(globalTheme),
|
|
2690
|
+
slider: getSliderTheme(globalTheme),
|
|
2633
2691
|
spinner: getSpinnerTheme(globalTheme),
|
|
2634
2692
|
"switch": getSwitchTheme(globalTheme),
|
|
2635
2693
|
tabs: getTabsTheme(globalTheme),
|
|
2636
2694
|
tag: getTagTheme(globalTheme),
|
|
2637
2695
|
textInput: getTextInputTheme(globalTheme),
|
|
2638
|
-
timePicker: getTimePickerTheme(),
|
|
2696
|
+
timePicker: getTimePickerTheme(globalTheme),
|
|
2639
2697
|
toast: getToastTheme(globalTheme),
|
|
2640
2698
|
toolbar: getToolbarTheme(globalTheme),
|
|
2641
2699
|
typography: getTypographyTheme(globalTheme)
|
|
@@ -5870,7 +5928,7 @@ var getDisplayName = function getDisplayName(primitive) {
|
|
|
5870
5928
|
|
|
5871
5929
|
var styled = createStyled(reactNative.StyleSheet);
|
|
5872
5930
|
var components = ['ActivityIndicator', 'Button', 'DatePickerIOS', 'DrawerLayoutAndroid', 'FlatList', 'Image', 'ImageBackground', 'KeyboardAvoidingView', 'ListView', 'Modal', 'NavigatorIOS', 'Picker', 'PickerIOS', 'Pressable', 'ProgressBarAndroid', 'ProgressViewIOS', 'RecyclerViewBackedScrollView', 'RefreshControl', 'SafeAreaView', 'ScrollView', 'SectionList', 'SegmentedControlIOS', 'Slider', 'SnapshotViewIOS', 'StatusBar', 'SwipeableListView', 'Switch', 'SwitchIOS', 'TabBarIOS', 'Text', 'TextInput', 'ToolbarAndroid', 'TouchableHighlight', 'TouchableNativeFeedback', 'TouchableOpacity', 'TouchableWithoutFeedback', 'View', 'ViewPagerAndroid'];
|
|
5873
|
-
var index$
|
|
5931
|
+
var index$8 = components.reduce(function (acc, comp) {
|
|
5874
5932
|
return Object.defineProperty(acc, comp, {
|
|
5875
5933
|
enumerable: true,
|
|
5876
5934
|
configurable: false,
|
|
@@ -5880,7 +5938,7 @@ var index$7 = components.reduce(function (acc, comp) {
|
|
|
5880
5938
|
});
|
|
5881
5939
|
}, styled);
|
|
5882
5940
|
|
|
5883
|
-
var StyledWrapper$
|
|
5941
|
+
var StyledWrapper$9 = index$8(reactNative.Animated.View)(function () {
|
|
5884
5942
|
return {
|
|
5885
5943
|
margin: 0,
|
|
5886
5944
|
padding: 0,
|
|
@@ -5893,12 +5951,12 @@ var StyledWrapper$8 = index$7(reactNative.Animated.View)(function () {
|
|
|
5893
5951
|
* to use with Animated.timing
|
|
5894
5952
|
*/
|
|
5895
5953
|
|
|
5896
|
-
var StyledHiddenWrapper = index$
|
|
5954
|
+
var StyledHiddenWrapper = index$8(reactNative.View)(function () {
|
|
5897
5955
|
return {
|
|
5898
5956
|
height: reactNative.Dimensions.get('window').height
|
|
5899
5957
|
};
|
|
5900
5958
|
});
|
|
5901
|
-
var StyledChildWrapper = index$
|
|
5959
|
+
var StyledChildWrapper = index$8(reactNative.View)(function () {
|
|
5902
5960
|
return {
|
|
5903
5961
|
margin: 0,
|
|
5904
5962
|
padding: 0
|
|
@@ -5940,7 +5998,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
5940
5998
|
var height = _ref2.height;
|
|
5941
5999
|
setContentHeight(height);
|
|
5942
6000
|
}, []);
|
|
5943
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
6001
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$9, {
|
|
5944
6002
|
style: {
|
|
5945
6003
|
height: collapseAnim
|
|
5946
6004
|
},
|
|
@@ -5953,10 +6011,10 @@ var Collapse = function Collapse(_ref) {
|
|
|
5953
6011
|
}, children)));
|
|
5954
6012
|
};
|
|
5955
6013
|
|
|
5956
|
-
var StyledWrapper$
|
|
6014
|
+
var StyledWrapper$8 = index$8(reactNative.View)(function () {
|
|
5957
6015
|
return {};
|
|
5958
6016
|
});
|
|
5959
|
-
var StyledItemWrapper = index$
|
|
6017
|
+
var StyledItemWrapper = index$8(reactNative.View)(function (_ref) {
|
|
5960
6018
|
var theme = _ref.theme,
|
|
5961
6019
|
themeVariant = _ref.themeVariant;
|
|
5962
6020
|
return {
|
|
@@ -5965,19 +6023,19 @@ var StyledItemWrapper = index$7(reactNative.View)(function (_ref) {
|
|
|
5965
6023
|
borderRadius: themeVariant === 'card' ? theme.__hd__.accordion.radii.card : 0
|
|
5966
6024
|
};
|
|
5967
6025
|
});
|
|
5968
|
-
var StyledHeaderWrapper$1 = index$
|
|
6026
|
+
var StyledHeaderWrapper$1 = index$8(reactNative.TouchableOpacity)(function () {
|
|
5969
6027
|
return {
|
|
5970
6028
|
flexDirection: 'row',
|
|
5971
6029
|
justifyContent: 'space-between'
|
|
5972
6030
|
};
|
|
5973
6031
|
});
|
|
5974
|
-
var StyledCollapse = index$
|
|
6032
|
+
var StyledCollapse = index$8(Collapse)(function (_ref2) {
|
|
5975
6033
|
var theme = _ref2.theme;
|
|
5976
6034
|
return {
|
|
5977
6035
|
paddingTop: theme.__hd__.accordion.space.padding
|
|
5978
6036
|
};
|
|
5979
6037
|
});
|
|
5980
|
-
var Spacer$1 = index$
|
|
6038
|
+
var Spacer$1 = index$8(reactNative.View)(function (_ref3) {
|
|
5981
6039
|
var theme = _ref3.theme;
|
|
5982
6040
|
return {
|
|
5983
6041
|
paddingTop: theme.__hd__.accordion.space.padding
|
|
@@ -5989,7 +6047,7 @@ var FONTWEIGHT_MAP = {
|
|
|
5989
6047
|
regular: 'regular',
|
|
5990
6048
|
'semi-bold': 'semiBold'
|
|
5991
6049
|
};
|
|
5992
|
-
var StyledText$3 = index$
|
|
6050
|
+
var StyledText$3 = index$8(reactNative.Text)(function (_ref) {
|
|
5993
6051
|
var themeFontSize = _ref.themeFontSize,
|
|
5994
6052
|
themeFontWeight = _ref.themeFontWeight,
|
|
5995
6053
|
themeIntent = _ref.themeIntent,
|
|
@@ -6005,7 +6063,7 @@ var StyledText$3 = index$7(reactNative.Text)(function (_ref) {
|
|
|
6005
6063
|
});
|
|
6006
6064
|
});
|
|
6007
6065
|
|
|
6008
|
-
var _excluded$
|
|
6066
|
+
var _excluded$i = ["children", "fontSize", "fontWeight", "intent"];
|
|
6009
6067
|
|
|
6010
6068
|
var Text = function Text(_ref) {
|
|
6011
6069
|
var children = _ref.children,
|
|
@@ -6015,7 +6073,7 @@ var Text = function Text(_ref) {
|
|
|
6015
6073
|
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
6016
6074
|
_ref$intent = _ref.intent,
|
|
6017
6075
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
6018
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6076
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
6019
6077
|
|
|
6020
6078
|
return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6021
6079
|
themeFontSize: fontSize,
|
|
@@ -14550,7 +14608,7 @@ var COLOR_INTENTS = {
|
|
|
14550
14608
|
'disabled-text': 'disabledText',
|
|
14551
14609
|
'text-inverted': 'invertedText'
|
|
14552
14610
|
};
|
|
14553
|
-
var StyledHeroIcon = index$
|
|
14611
|
+
var StyledHeroIcon = index$8(HeroIcon)(function (_ref) {
|
|
14554
14612
|
var themeIntent = _ref.themeIntent,
|
|
14555
14613
|
themeSize = _ref.themeSize,
|
|
14556
14614
|
theme = _ref.theme;
|
|
@@ -14560,11 +14618,11 @@ var StyledHeroIcon = index$7(HeroIcon)(function (_ref) {
|
|
|
14560
14618
|
};
|
|
14561
14619
|
});
|
|
14562
14620
|
|
|
14563
|
-
var _excluded$
|
|
14621
|
+
var _excluded$h = ["style"];
|
|
14564
14622
|
|
|
14565
14623
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
14566
14624
|
var style = _ref.style,
|
|
14567
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
14625
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
14568
14626
|
|
|
14569
14627
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
14570
14628
|
React.useEffect(function () {
|
|
@@ -14654,7 +14712,7 @@ function usePropsOrInternalState(initialState, state, setState) {
|
|
|
14654
14712
|
return [state || internalState, setState || setInternalState];
|
|
14655
14713
|
}
|
|
14656
14714
|
|
|
14657
|
-
var _excluded$
|
|
14715
|
+
var _excluded$g = ["key"];
|
|
14658
14716
|
|
|
14659
14717
|
var Accordion = function Accordion(_ref) {
|
|
14660
14718
|
var items = _ref.items,
|
|
@@ -14673,12 +14731,12 @@ var Accordion = function Accordion(_ref) {
|
|
|
14673
14731
|
_activeItemKey = _usePropsOrInternalSt2[0],
|
|
14674
14732
|
_onItemPress = _usePropsOrInternalSt2[1];
|
|
14675
14733
|
|
|
14676
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
14734
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$8, {
|
|
14677
14735
|
style: style,
|
|
14678
14736
|
testID: testID
|
|
14679
14737
|
}, items.map(function (_ref2, index) {
|
|
14680
14738
|
var key = _ref2.key,
|
|
14681
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
14739
|
+
props = _objectWithoutProperties(_ref2, _excluded$g);
|
|
14682
14740
|
|
|
14683
14741
|
var open = _activeItemKey === key;
|
|
14684
14742
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
@@ -14695,7 +14753,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
14695
14753
|
}));
|
|
14696
14754
|
};
|
|
14697
14755
|
|
|
14698
|
-
var Container$1 = index$
|
|
14756
|
+
var Container$1 = index$8(reactNative.View)(function (_ref) {
|
|
14699
14757
|
var theme = _ref.theme,
|
|
14700
14758
|
_ref$themeVariant = _ref.themeVariant,
|
|
14701
14759
|
themeVariant = _ref$themeVariant === void 0 ? 'default' : _ref$themeVariant,
|
|
@@ -14707,21 +14765,21 @@ var Container$1 = index$7(reactNative.View)(function (_ref) {
|
|
|
14707
14765
|
flexDirection: 'row'
|
|
14708
14766
|
};
|
|
14709
14767
|
});
|
|
14710
|
-
var IconContainer$1 = index$
|
|
14768
|
+
var IconContainer$1 = index$8(reactNative.View)(function (_ref2) {
|
|
14711
14769
|
var theme = _ref2.theme;
|
|
14712
14770
|
return {
|
|
14713
14771
|
alignItems: 'center',
|
|
14714
14772
|
paddingLeft: theme.__hd__.alert.space.iconLeftPadding
|
|
14715
14773
|
};
|
|
14716
14774
|
});
|
|
14717
|
-
var TextContainer$1 = index$
|
|
14775
|
+
var TextContainer$1 = index$8(reactNative.View)(function (_ref3) {
|
|
14718
14776
|
var theme = _ref3.theme;
|
|
14719
14777
|
return {
|
|
14720
14778
|
paddingHorizontal: theme.__hd__.alert.space.textPaddingHorizontal,
|
|
14721
14779
|
flex: 1
|
|
14722
14780
|
};
|
|
14723
14781
|
});
|
|
14724
|
-
var ContentContainer$1 = index$
|
|
14782
|
+
var ContentContainer$1 = index$8(reactNative.View)(function (_ref4) {
|
|
14725
14783
|
var theme = _ref4.theme,
|
|
14726
14784
|
showDivider = _ref4.showDivider;
|
|
14727
14785
|
return {
|
|
@@ -14732,7 +14790,7 @@ var ContentContainer$1 = index$7(reactNative.View)(function (_ref4) {
|
|
|
14732
14790
|
flexDirection: 'row'
|
|
14733
14791
|
};
|
|
14734
14792
|
});
|
|
14735
|
-
var CTAWrapper$1 = index$
|
|
14793
|
+
var CTAWrapper$1 = index$8(reactNative.TouchableOpacity)(function (_ref5) {
|
|
14736
14794
|
var theme = _ref5.theme;
|
|
14737
14795
|
return {
|
|
14738
14796
|
paddingHorizontal: theme.__hd__.alert.space.ctaPadding,
|
|
@@ -14800,7 +14858,7 @@ var Alert = function Alert(_ref2) {
|
|
|
14800
14858
|
})) : null);
|
|
14801
14859
|
};
|
|
14802
14860
|
|
|
14803
|
-
var StyledPressable = index$
|
|
14861
|
+
var StyledPressable = index$8(reactNative.TouchableOpacity)(function (_ref) {
|
|
14804
14862
|
var themeSize = _ref.themeSize,
|
|
14805
14863
|
themeIntent = _ref.themeIntent,
|
|
14806
14864
|
theme = _ref.theme;
|
|
@@ -14813,7 +14871,7 @@ var StyledPressable = index$7(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
14813
14871
|
overflow: 'hidden'
|
|
14814
14872
|
};
|
|
14815
14873
|
});
|
|
14816
|
-
var StyledView$3 = index$
|
|
14874
|
+
var StyledView$3 = index$8(reactNative.View)(function (_ref2) {
|
|
14817
14875
|
var themeSize = _ref2.themeSize,
|
|
14818
14876
|
themeIntent = _ref2.themeIntent,
|
|
14819
14877
|
theme = _ref2.theme;
|
|
@@ -14826,7 +14884,7 @@ var StyledView$3 = index$7(reactNative.View)(function (_ref2) {
|
|
|
14826
14884
|
overflow: 'hidden'
|
|
14827
14885
|
};
|
|
14828
14886
|
});
|
|
14829
|
-
var StyledTextWrapper = index$
|
|
14887
|
+
var StyledTextWrapper$1 = index$8(reactNative.View)(function () {
|
|
14830
14888
|
return {
|
|
14831
14889
|
alignItems: 'center',
|
|
14832
14890
|
justifyContent: 'center',
|
|
@@ -14835,7 +14893,7 @@ var StyledTextWrapper = index$7(reactNative.View)(function () {
|
|
|
14835
14893
|
height: '100%'
|
|
14836
14894
|
};
|
|
14837
14895
|
});
|
|
14838
|
-
var StyledText$2 = index$
|
|
14896
|
+
var StyledText$2 = index$8(reactNative.Text)(function (_ref3) {
|
|
14839
14897
|
var themeSize = _ref3.themeSize,
|
|
14840
14898
|
themeIntent = _ref3.themeIntent,
|
|
14841
14899
|
theme = _ref3.theme;
|
|
@@ -14845,7 +14903,7 @@ var StyledText$2 = index$7(reactNative.Text)(function (_ref3) {
|
|
|
14845
14903
|
overflow: 'hidden'
|
|
14846
14904
|
};
|
|
14847
14905
|
});
|
|
14848
|
-
var StyledImage = index$
|
|
14906
|
+
var StyledImage = index$8(reactNative.Image)(function (_ref4) {
|
|
14849
14907
|
var themeSize = _ref4.themeSize,
|
|
14850
14908
|
theme = _ref4.theme;
|
|
14851
14909
|
return {
|
|
@@ -14871,7 +14929,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
14871
14929
|
themeIntent: intent,
|
|
14872
14930
|
themeSize: size,
|
|
14873
14931
|
style: style
|
|
14874
|
-
}, title !== undefined && source === undefined && /*#__PURE__*/React__default["default"].createElement(StyledTextWrapper, null, /*#__PURE__*/React__default["default"].createElement(StyledText$2, {
|
|
14932
|
+
}, title !== undefined && source === undefined && /*#__PURE__*/React__default["default"].createElement(StyledTextWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(StyledText$2, {
|
|
14875
14933
|
themeIntent: intent,
|
|
14876
14934
|
themeSize: size
|
|
14877
14935
|
}, title)), source !== undefined && /*#__PURE__*/React__default["default"].createElement(StyledImage, {
|
|
@@ -14881,7 +14939,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
14881
14939
|
})) : null;
|
|
14882
14940
|
};
|
|
14883
14941
|
|
|
14884
|
-
var StyledView$2 = index$
|
|
14942
|
+
var StyledView$2 = index$8(reactNative.Animated.View)(function (_ref) {
|
|
14885
14943
|
var themeIntent = _ref.themeIntent,
|
|
14886
14944
|
themePadding = _ref.themePadding,
|
|
14887
14945
|
theme = _ref.theme;
|
|
@@ -14895,7 +14953,7 @@ var StyledView$2 = index$7(reactNative.Animated.View)(function (_ref) {
|
|
|
14895
14953
|
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
|
|
14896
14954
|
};
|
|
14897
14955
|
});
|
|
14898
|
-
var StyledText$1 = index$
|
|
14956
|
+
var StyledText$1 = index$8(reactNative.Text)(function (_ref2) {
|
|
14899
14957
|
var theme = _ref2.theme;
|
|
14900
14958
|
return {
|
|
14901
14959
|
fontFamily: theme.__hd__.badge.fonts["default"],
|
|
@@ -14906,7 +14964,7 @@ var StyledText$1 = index$7(reactNative.Text)(function (_ref2) {
|
|
|
14906
14964
|
textAlign: 'center'
|
|
14907
14965
|
};
|
|
14908
14966
|
});
|
|
14909
|
-
var StyledStatus = index$
|
|
14967
|
+
var StyledStatus = index$8(reactNative.Animated.View)(function (_ref3) {
|
|
14910
14968
|
var themeIntent = _ref3.themeIntent,
|
|
14911
14969
|
theme = _ref3.theme;
|
|
14912
14970
|
return {
|
|
@@ -14920,7 +14978,7 @@ var StyledStatus = index$7(reactNative.Animated.View)(function (_ref3) {
|
|
|
14920
14978
|
};
|
|
14921
14979
|
});
|
|
14922
14980
|
|
|
14923
|
-
var _excluded$
|
|
14981
|
+
var _excluded$f = ["children", "visible", "intent", "style", "testID"];
|
|
14924
14982
|
|
|
14925
14983
|
var Status = function Status(_ref) {
|
|
14926
14984
|
var children = _ref.children,
|
|
@@ -14930,7 +14988,7 @@ var Status = function Status(_ref) {
|
|
|
14930
14988
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
14931
14989
|
style = _ref.style,
|
|
14932
14990
|
testID = _ref.testID,
|
|
14933
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14991
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
14934
14992
|
|
|
14935
14993
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
14936
14994
|
opacity = _React$useRef.current;
|
|
@@ -14966,7 +15024,7 @@ var Status = function Status(_ref) {
|
|
|
14966
15024
|
}));
|
|
14967
15025
|
};
|
|
14968
15026
|
|
|
14969
|
-
var _excluded$
|
|
15027
|
+
var _excluded$e = ["content", "visible", "max", "intent", "style", "testID"];
|
|
14970
15028
|
var DEFAULT_MAX_NUMBER = 99;
|
|
14971
15029
|
|
|
14972
15030
|
var getPaddingState = function getPaddingState(content) {
|
|
@@ -14983,7 +15041,7 @@ var Badge = function Badge(_ref) {
|
|
|
14983
15041
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
14984
15042
|
style = _ref.style,
|
|
14985
15043
|
testID = _ref.testID,
|
|
14986
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15044
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
14987
15045
|
|
|
14988
15046
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
14989
15047
|
opacity = _React$useRef.current;
|
|
@@ -15029,21 +15087,21 @@ var isHeroIcon = function isHeroIcon(x) {
|
|
|
15029
15087
|
return IconList.includes(x);
|
|
15030
15088
|
};
|
|
15031
15089
|
|
|
15032
|
-
var BottomNavigationTab = index$
|
|
15090
|
+
var BottomNavigationTab = index$8(reactNative.View)(function (_ref) {
|
|
15033
15091
|
var themeVisibility = _ref.themeVisibility;
|
|
15034
15092
|
return {
|
|
15035
15093
|
flex: 1,
|
|
15036
15094
|
display: themeVisibility === false ? 'none' : 'flex'
|
|
15037
15095
|
};
|
|
15038
15096
|
});
|
|
15039
|
-
var BottomNavigationContainer = index$
|
|
15097
|
+
var BottomNavigationContainer = index$8(reactNative.View)({
|
|
15040
15098
|
flex: 1,
|
|
15041
15099
|
overflow: 'hidden'
|
|
15042
15100
|
});
|
|
15043
|
-
var ContentWrapper$2 = index$
|
|
15101
|
+
var ContentWrapper$2 = index$8(reactNative.View)({
|
|
15044
15102
|
flex: 1
|
|
15045
15103
|
});
|
|
15046
|
-
var BottomBarWrapper = index$
|
|
15104
|
+
var BottomBarWrapper = index$8(reactNative.View)(function (_ref2) {
|
|
15047
15105
|
var themeInsets = _ref2.themeInsets,
|
|
15048
15106
|
theme = _ref2.theme;
|
|
15049
15107
|
return {
|
|
@@ -15059,17 +15117,17 @@ var BottomBarWrapper = index$7(reactNative.View)(function (_ref2) {
|
|
|
15059
15117
|
elevation: theme.__hd__.bottomNavigation.shadows.elevation
|
|
15060
15118
|
};
|
|
15061
15119
|
});
|
|
15062
|
-
var BottomBar = index$
|
|
15120
|
+
var BottomBar = index$8(reactNative.View)({
|
|
15063
15121
|
flex: 1,
|
|
15064
15122
|
flexDirection: 'row',
|
|
15065
15123
|
overflow: 'hidden',
|
|
15066
15124
|
alignItems: 'center'
|
|
15067
15125
|
});
|
|
15068
|
-
var BottomBarItem = index$
|
|
15126
|
+
var BottomBarItem = index$8(reactNative.View)({
|
|
15069
15127
|
flex: 1,
|
|
15070
15128
|
alignItems: 'center'
|
|
15071
15129
|
});
|
|
15072
|
-
var StyledBottomBarText = index$
|
|
15130
|
+
var StyledBottomBarText = index$8(Typography.Text)(function (_ref3) {
|
|
15073
15131
|
var theme = _ref3.theme;
|
|
15074
15132
|
return {
|
|
15075
15133
|
marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
|
|
@@ -15079,7 +15137,7 @@ var StyledBottomBarText = index$7(Typography.Text)(function (_ref3) {
|
|
|
15079
15137
|
var isIOS = reactNative.Platform.OS === 'ios';
|
|
15080
15138
|
var isAndroid = reactNative.Platform.OS === 'android';
|
|
15081
15139
|
|
|
15082
|
-
var _excluded$
|
|
15140
|
+
var _excluded$d = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
15083
15141
|
|
|
15084
15142
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
15085
15143
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
@@ -15092,7 +15150,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
15092
15150
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
15093
15151
|
selectedTabKey = _ref.selectedTabKey,
|
|
15094
15152
|
tabs = _ref.tabs,
|
|
15095
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15153
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$d);
|
|
15096
15154
|
|
|
15097
15155
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
15098
15156
|
/**
|
|
@@ -15166,7 +15224,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
15166
15224
|
}))));
|
|
15167
15225
|
};
|
|
15168
15226
|
|
|
15169
|
-
var StyledDivider = index$
|
|
15227
|
+
var StyledDivider = index$8(reactNative.View)(function (_ref) {
|
|
15170
15228
|
var themeMarginHorizontal = _ref.themeMarginHorizontal,
|
|
15171
15229
|
themeMarginVertical = _ref.themeMarginVertical,
|
|
15172
15230
|
theme = _ref.theme;
|
|
@@ -15183,14 +15241,14 @@ var StyledDivider = index$7(reactNative.View)(function (_ref) {
|
|
|
15183
15241
|
}, horizontalMargin), verticalMargin);
|
|
15184
15242
|
});
|
|
15185
15243
|
|
|
15186
|
-
var _excluded$
|
|
15244
|
+
var _excluded$c = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
15187
15245
|
|
|
15188
15246
|
var Divider = function Divider(_ref) {
|
|
15189
15247
|
var marginHorizontal = _ref.marginHorizontal,
|
|
15190
15248
|
marginVertical = _ref.marginVertical,
|
|
15191
15249
|
style = _ref.style,
|
|
15192
15250
|
testID = _ref.testID,
|
|
15193
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15251
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
15194
15252
|
|
|
15195
15253
|
return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
15196
15254
|
themeMarginHorizontal: marginHorizontal,
|
|
@@ -15202,10 +15260,10 @@ var Divider = function Divider(_ref) {
|
|
|
15202
15260
|
|
|
15203
15261
|
var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
15204
15262
|
var AnimatedSafeAreaView = reactNative.Animated.createAnimatedComponent(reactNative.SafeAreaView);
|
|
15205
|
-
var StyledWrapper$
|
|
15263
|
+
var StyledWrapper$7 = index$8(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15206
15264
|
flexDirection: 'column-reverse'
|
|
15207
15265
|
}));
|
|
15208
|
-
var StyledBottomSheet = index$
|
|
15266
|
+
var StyledBottomSheet = index$8(AnimatedSafeAreaView)(function (_ref) {
|
|
15209
15267
|
var theme = _ref.theme;
|
|
15210
15268
|
return {
|
|
15211
15269
|
borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
|
|
@@ -15220,14 +15278,14 @@ var StyledBottomSheet = index$7(AnimatedSafeAreaView)(function (_ref) {
|
|
|
15220
15278
|
maxHeight: '94%'
|
|
15221
15279
|
};
|
|
15222
15280
|
});
|
|
15223
|
-
var StyledBackdrop$2 = index$
|
|
15281
|
+
var StyledBackdrop$2 = index$8(AnimatedPressable$1)(function (_ref2) {
|
|
15224
15282
|
var theme = _ref2.theme;
|
|
15225
15283
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15226
15284
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
15227
15285
|
opacity: 0.48
|
|
15228
15286
|
});
|
|
15229
15287
|
});
|
|
15230
|
-
var StyledHeaderWrapper = index$
|
|
15288
|
+
var StyledHeaderWrapper = index$8(reactNative.View)(function (_ref3) {
|
|
15231
15289
|
var theme = _ref3.theme;
|
|
15232
15290
|
return {
|
|
15233
15291
|
flexDirection: 'row',
|
|
@@ -15235,11 +15293,11 @@ var StyledHeaderWrapper = index$7(reactNative.View)(function (_ref3) {
|
|
|
15235
15293
|
paddingHorizontal: theme.__hd__.bottomSheet.space.headerWrapperHorizontalPadding
|
|
15236
15294
|
};
|
|
15237
15295
|
});
|
|
15238
|
-
var StyledHeader = index$
|
|
15296
|
+
var StyledHeader = index$8(reactNative.View)({
|
|
15239
15297
|
flex: 1,
|
|
15240
15298
|
justifyContent: 'center'
|
|
15241
15299
|
});
|
|
15242
|
-
var StyledFooter = index$
|
|
15300
|
+
var StyledFooter = index$8(reactNative.View)(function (_ref4) {
|
|
15243
15301
|
var theme = _ref4.theme;
|
|
15244
15302
|
return {
|
|
15245
15303
|
paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
|
|
@@ -15250,7 +15308,7 @@ var StyledFooter = index$7(reactNative.View)(function (_ref4) {
|
|
|
15250
15308
|
flexDirection: 'row'
|
|
15251
15309
|
};
|
|
15252
15310
|
});
|
|
15253
|
-
var StyledIconWrapper$
|
|
15311
|
+
var StyledIconWrapper$2 = index$8(reactNative.View)(function (_ref5) {
|
|
15254
15312
|
var theme = _ref5.theme;
|
|
15255
15313
|
return {
|
|
15256
15314
|
alignItems: 'center',
|
|
@@ -15273,7 +15331,7 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
|
|
|
15273
15331
|
};
|
|
15274
15332
|
};
|
|
15275
15333
|
|
|
15276
|
-
var StyledLoadingIndicatorWrapper = index$
|
|
15334
|
+
var StyledLoadingIndicatorWrapper = index$8(reactNative.View)(function (_ref) {
|
|
15277
15335
|
var theme = _ref.theme;
|
|
15278
15336
|
return {
|
|
15279
15337
|
flexDirection: 'row',
|
|
@@ -15282,7 +15340,7 @@ var StyledLoadingIndicatorWrapper = index$7(reactNative.View)(function (_ref) {
|
|
|
15282
15340
|
paddingVertical: theme.space.xxsmall
|
|
15283
15341
|
};
|
|
15284
15342
|
});
|
|
15285
|
-
var StyledLoadingDot = index$
|
|
15343
|
+
var StyledLoadingDot = index$8(reactNative.View)(function (_ref2) {
|
|
15286
15344
|
var _ref2$size = _ref2.size,
|
|
15287
15345
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
15288
15346
|
themeVariant = _ref2.themeVariant,
|
|
@@ -15322,7 +15380,7 @@ var StyledLoadingDot = index$7(reactNative.View)(function (_ref2) {
|
|
|
15322
15380
|
}, themeStyling());
|
|
15323
15381
|
});
|
|
15324
15382
|
|
|
15325
|
-
var _excluded$
|
|
15383
|
+
var _excluded$b = ["count", "size", "testID", "themeVariant"];
|
|
15326
15384
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
15327
15385
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
15328
15386
|
|
|
@@ -15356,7 +15414,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
15356
15414
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
15357
15415
|
testID = _ref2.testID,
|
|
15358
15416
|
themeVariant = _ref2.themeVariant,
|
|
15359
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
15417
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$b);
|
|
15360
15418
|
|
|
15361
15419
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
15362
15420
|
React.useEffect(function () {
|
|
@@ -15533,7 +15591,7 @@ var genTextVariantTextStyles = function genTextVariantTextStyles(theme, intent,
|
|
|
15533
15591
|
}, textColorStyling());
|
|
15534
15592
|
};
|
|
15535
15593
|
|
|
15536
|
-
var StyledButtonContainer = index$
|
|
15594
|
+
var StyledButtonContainer = index$8(reactNative.TouchableHighlight)(function (_ref) {
|
|
15537
15595
|
var _ref$disabled = _ref.disabled,
|
|
15538
15596
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15539
15597
|
_ref$pressed = _ref.pressed,
|
|
@@ -15575,7 +15633,7 @@ var StyledButtonContainer = index$7(reactNative.TouchableHighlight)(function (_r
|
|
|
15575
15633
|
};
|
|
15576
15634
|
}
|
|
15577
15635
|
});
|
|
15578
|
-
var StyledButtonText = index$
|
|
15636
|
+
var StyledButtonText = index$8(Typography.Text)(function (_ref2) {
|
|
15579
15637
|
var disabled = _ref2.disabled,
|
|
15580
15638
|
pressed = _ref2.pressed,
|
|
15581
15639
|
themeVariant = _ref2.themeVariant,
|
|
@@ -15625,7 +15683,7 @@ var StyledButtonText = index$7(Typography.Text)(function (_ref2) {
|
|
|
15625
15683
|
fontFamily: theme.__hd__.button.fonts["default"]
|
|
15626
15684
|
}, themeStyling());
|
|
15627
15685
|
});
|
|
15628
|
-
var StyledButtonIconWrapper = index$
|
|
15686
|
+
var StyledButtonIconWrapper = index$8(reactNative.View)(function (_ref3) {
|
|
15629
15687
|
var themePosition = _ref3.themePosition,
|
|
15630
15688
|
theme = _ref3.theme;
|
|
15631
15689
|
|
|
@@ -15641,7 +15699,7 @@ var StyledButtonIconWrapper = index$7(reactNative.View)(function (_ref3) {
|
|
|
15641
15699
|
};
|
|
15642
15700
|
}
|
|
15643
15701
|
});
|
|
15644
|
-
var StyledButtonIcon = index$
|
|
15702
|
+
var StyledButtonIcon = index$8(Icon)(function (_ref4) {
|
|
15645
15703
|
var disabled = _ref4.disabled,
|
|
15646
15704
|
pressed = _ref4.pressed,
|
|
15647
15705
|
themeVariant = _ref4.themeVariant,
|
|
@@ -15809,7 +15867,7 @@ var IconButton = function IconButton(_ref) {
|
|
|
15809
15867
|
}));
|
|
15810
15868
|
};
|
|
15811
15869
|
|
|
15812
|
-
var ButtonContainer = index$
|
|
15870
|
+
var ButtonContainer = index$8(reactNative.TouchableOpacity)(function (_ref) {
|
|
15813
15871
|
var theme = _ref.theme;
|
|
15814
15872
|
return {
|
|
15815
15873
|
width: '100%',
|
|
@@ -15821,13 +15879,13 @@ var ButtonContainer = index$7(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
15821
15879
|
backgroundColor: theme.__hd__.button.colors.utilityBackground
|
|
15822
15880
|
};
|
|
15823
15881
|
});
|
|
15824
|
-
var IconWrapper = index$
|
|
15882
|
+
var IconWrapper = index$8(reactNative.View)(function (_ref2) {
|
|
15825
15883
|
var theme = _ref2.theme;
|
|
15826
15884
|
return {
|
|
15827
15885
|
paddingRight: theme.__hd__.button.space.iconPadding
|
|
15828
15886
|
};
|
|
15829
15887
|
});
|
|
15830
|
-
var ButtonText = index$
|
|
15888
|
+
var ButtonText = index$8(Typography.Text)(function (_ref3) {
|
|
15831
15889
|
var theme = _ref3.theme;
|
|
15832
15890
|
return {
|
|
15833
15891
|
flexShrink: 1,
|
|
@@ -15882,7 +15940,7 @@ var Header = function Header(_ref) {
|
|
|
15882
15940
|
style: {
|
|
15883
15941
|
flex: 1
|
|
15884
15942
|
}
|
|
15885
|
-
}, content), showCloseButton ? /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$
|
|
15943
|
+
}, content), showCloseButton ? /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$2, null, /*#__PURE__*/React__default["default"].createElement(CompoundButton.Icon, {
|
|
15886
15944
|
icon: "cancel",
|
|
15887
15945
|
onPress: onRequestClose,
|
|
15888
15946
|
intent: "text",
|
|
@@ -15896,6 +15954,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15896
15954
|
header = _ref.header,
|
|
15897
15955
|
footer = _ref.footer,
|
|
15898
15956
|
children = _ref.children,
|
|
15957
|
+
onAnimationEnd = _ref.onAnimationEnd,
|
|
15899
15958
|
onOpen = _ref.onOpen,
|
|
15900
15959
|
onRequestClose = _ref.onRequestClose,
|
|
15901
15960
|
onDismiss = _ref.onDismiss,
|
|
@@ -15948,7 +16007,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15948
16007
|
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
15949
16008
|
useNativeDriver: true
|
|
15950
16009
|
});
|
|
15951
|
-
animation.start();
|
|
16010
|
+
animation.start(onAnimationEnd);
|
|
15952
16011
|
return function () {
|
|
15953
16012
|
return animation.stop();
|
|
15954
16013
|
};
|
|
@@ -15968,7 +16027,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15968
16027
|
transparent: true,
|
|
15969
16028
|
testID: testID,
|
|
15970
16029
|
onShow: onOpen
|
|
15971
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
16030
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$7, {
|
|
15972
16031
|
pointerEvents: "box-none"
|
|
15973
16032
|
}, /*#__PURE__*/React__default["default"].createElement(StyledBackdrop$2, {
|
|
15974
16033
|
style: {
|
|
@@ -16182,7 +16241,7 @@ var pick = function pick(keys, props) {
|
|
|
16182
16241
|
}, {});
|
|
16183
16242
|
};
|
|
16184
16243
|
|
|
16185
|
-
var _excluded$
|
|
16244
|
+
var _excluded$a = ["theme"];
|
|
16186
16245
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
16187
16246
|
var propConfig = config[key];
|
|
16188
16247
|
var propValue = props[key];
|
|
@@ -16213,22 +16272,22 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
16213
16272
|
};
|
|
16214
16273
|
|
|
16215
16274
|
var configKeys = Object.keys(config);
|
|
16216
|
-
var StyledBox = index$
|
|
16275
|
+
var StyledBox = index$8(reactNative.View)(function (_ref5) {
|
|
16217
16276
|
var theme = _ref5.theme,
|
|
16218
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
16277
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$a);
|
|
16219
16278
|
|
|
16220
16279
|
var styleProps = pick(configKeys, otherProps);
|
|
16221
16280
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
16222
16281
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
16223
16282
|
});
|
|
16224
16283
|
|
|
16225
|
-
var _excluded$
|
|
16284
|
+
var _excluded$9 = ["children", "style", "testID"];
|
|
16226
16285
|
|
|
16227
16286
|
var Box = function Box(_ref) {
|
|
16228
16287
|
var children = _ref.children,
|
|
16229
16288
|
style = _ref.style,
|
|
16230
16289
|
testID = _ref.testID,
|
|
16231
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
16290
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
16232
16291
|
|
|
16233
16292
|
return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
|
|
16234
16293
|
style: style,
|
|
@@ -18632,14 +18691,14 @@ function convertToFP(fn, arity, a) {
|
|
|
18632
18691
|
var format = convertToFP(format$1, 2);
|
|
18633
18692
|
var formatTime = format;
|
|
18634
18693
|
|
|
18635
|
-
var Wrapper = index$
|
|
18694
|
+
var Wrapper = index$8(reactNative.View)(function () {
|
|
18636
18695
|
return {
|
|
18637
18696
|
flex: 1,
|
|
18638
18697
|
flexDirection: 'row',
|
|
18639
18698
|
justifyContent: 'space-between'
|
|
18640
18699
|
};
|
|
18641
18700
|
});
|
|
18642
|
-
var Value = index$
|
|
18701
|
+
var Value = index$8(Typography.Text)(function (_ref) {
|
|
18643
18702
|
var theme = _ref.theme;
|
|
18644
18703
|
return {
|
|
18645
18704
|
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
@@ -18680,13 +18739,13 @@ function ContentNavigator(_ref) {
|
|
|
18680
18739
|
}));
|
|
18681
18740
|
}
|
|
18682
18741
|
|
|
18683
|
-
var StyledContainer$4 = index$
|
|
18742
|
+
var StyledContainer$4 = index$8(reactNative.View)(function (_ref) {
|
|
18684
18743
|
var theme = _ref.theme;
|
|
18685
18744
|
return {
|
|
18686
18745
|
backgroundColor: theme.__hd__.calendar.colors.background
|
|
18687
18746
|
};
|
|
18688
18747
|
});
|
|
18689
|
-
var StyledCalendarHeader = index$
|
|
18748
|
+
var StyledCalendarHeader = index$8(reactNative.View)(function (_ref2) {
|
|
18690
18749
|
var theme = _ref2.theme;
|
|
18691
18750
|
return {
|
|
18692
18751
|
flexDirection: 'row',
|
|
@@ -18694,7 +18753,7 @@ var StyledCalendarHeader = index$7(reactNative.View)(function (_ref2) {
|
|
|
18694
18753
|
paddingVertical: theme.__hd__.calendar.space.headerVerticalPadding
|
|
18695
18754
|
};
|
|
18696
18755
|
});
|
|
18697
|
-
var StyledCalendarDayNameCell = index$
|
|
18756
|
+
var StyledCalendarDayNameCell = index$8(reactNative.View)(function (_ref3) {
|
|
18698
18757
|
var theme = _ref3.theme;
|
|
18699
18758
|
return {
|
|
18700
18759
|
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
@@ -18703,7 +18762,7 @@ var StyledCalendarDayNameCell = index$7(reactNative.View)(function (_ref3) {
|
|
|
18703
18762
|
justifyContent: 'center'
|
|
18704
18763
|
};
|
|
18705
18764
|
});
|
|
18706
|
-
var StyledCalendarCell = index$
|
|
18765
|
+
var StyledCalendarCell = index$8(reactNative.TouchableOpacity)(function (_ref4) {
|
|
18707
18766
|
var theme = _ref4.theme,
|
|
18708
18767
|
_ref4$variant = _ref4.variant,
|
|
18709
18768
|
variant = _ref4$variant === void 0 ? 'default' : _ref4$variant;
|
|
@@ -18718,7 +18777,7 @@ var StyledCalendarCell = index$7(reactNative.TouchableOpacity)(function (_ref4)
|
|
|
18718
18777
|
height: theme.__hd__.calendar.sizes.cellCircleHeight
|
|
18719
18778
|
};
|
|
18720
18779
|
});
|
|
18721
|
-
var StyledCalendarRow = index$
|
|
18780
|
+
var StyledCalendarRow = index$8(reactNative.View)(function (_ref5) {
|
|
18722
18781
|
var theme = _ref5.theme;
|
|
18723
18782
|
return {
|
|
18724
18783
|
flexDirection: 'row',
|
|
@@ -18726,7 +18785,7 @@ var StyledCalendarRow = index$7(reactNative.View)(function (_ref5) {
|
|
|
18726
18785
|
flexWrap: 'wrap'
|
|
18727
18786
|
};
|
|
18728
18787
|
});
|
|
18729
|
-
var StyledCalendarRowItem = index$
|
|
18788
|
+
var StyledCalendarRowItem = index$8(reactNative.View)(function (_ref6) {
|
|
18730
18789
|
var theme = _ref6.theme;
|
|
18731
18790
|
return {
|
|
18732
18791
|
flexBasis: "".concat(Math.floor(100.0 / 7.0).toString(), "%"),
|
|
@@ -18736,7 +18795,7 @@ var StyledCalendarRowItem = index$7(reactNative.View)(function (_ref6) {
|
|
|
18736
18795
|
justifyContent: 'center'
|
|
18737
18796
|
};
|
|
18738
18797
|
});
|
|
18739
|
-
var StyledDisabledCalendarRowItem = index$
|
|
18798
|
+
var StyledDisabledCalendarRowItem = index$8(reactNative.View)(function (_ref7) {
|
|
18740
18799
|
var theme = _ref7.theme;
|
|
18741
18800
|
return {
|
|
18742
18801
|
flexBasis: "".concat(Math.floor(100.0 / 7.0).toString(), "%"),
|
|
@@ -18745,7 +18804,7 @@ var StyledDisabledCalendarRowItem = index$7(reactNative.View)(function (_ref7) {
|
|
|
18745
18804
|
height: theme.__hd__.calendar.sizes.cellHeight
|
|
18746
18805
|
};
|
|
18747
18806
|
});
|
|
18748
|
-
var StyledMark = index$
|
|
18807
|
+
var StyledMark = index$8(reactNative.View)(function (_ref8) {
|
|
18749
18808
|
var theme = _ref8.theme,
|
|
18750
18809
|
_ref8$variant = _ref8.variant,
|
|
18751
18810
|
variant = _ref8$variant === void 0 ? 'primary' : _ref8$variant;
|
|
@@ -18925,7 +18984,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
18925
18984
|
})));
|
|
18926
18985
|
};
|
|
18927
18986
|
|
|
18928
|
-
var StyledDataCard = index$
|
|
18987
|
+
var StyledDataCard = index$8(reactNative.View)(function (_ref) {
|
|
18929
18988
|
var theme = _ref.theme;
|
|
18930
18989
|
return {
|
|
18931
18990
|
borderRadius: theme.__hd__.card.radii["default"],
|
|
@@ -18933,7 +18992,7 @@ var StyledDataCard = index$7(reactNative.View)(function (_ref) {
|
|
|
18933
18992
|
flexDirection: 'row'
|
|
18934
18993
|
};
|
|
18935
18994
|
});
|
|
18936
|
-
var Indicator = index$
|
|
18995
|
+
var Indicator = index$8(reactNative.View)(function (_ref2) {
|
|
18937
18996
|
var theme = _ref2.theme,
|
|
18938
18997
|
themeIntent = _ref2.themeIntent;
|
|
18939
18998
|
return {
|
|
@@ -18943,13 +19002,13 @@ var Indicator = index$7(reactNative.View)(function (_ref2) {
|
|
|
18943
19002
|
};
|
|
18944
19003
|
});
|
|
18945
19004
|
|
|
18946
|
-
var _excluded$
|
|
19005
|
+
var _excluded$8 = ["intent", "children"];
|
|
18947
19006
|
|
|
18948
19007
|
var DataCard = function DataCard(_ref) {
|
|
18949
19008
|
var _ref$intent = _ref.intent,
|
|
18950
19009
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
18951
19010
|
children = _ref.children,
|
|
18952
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
19011
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
18953
19012
|
|
|
18954
19013
|
return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
|
|
18955
19014
|
themeIntent: intent,
|
|
@@ -18957,7 +19016,7 @@ var DataCard = function DataCard(_ref) {
|
|
|
18957
19016
|
}), children);
|
|
18958
19017
|
};
|
|
18959
19018
|
|
|
18960
|
-
var StyledCard = index$
|
|
19019
|
+
var StyledCard = index$8(reactNative.View)(function (_ref) {
|
|
18961
19020
|
var themeVariant = _ref.themeVariant,
|
|
18962
19021
|
theme = _ref.theme,
|
|
18963
19022
|
themeIntent = _ref.themeIntent;
|
|
@@ -18971,7 +19030,7 @@ var StyledCard = index$7(reactNative.View)(function (_ref) {
|
|
|
18971
19030
|
});
|
|
18972
19031
|
}); // DEPRECATED
|
|
18973
19032
|
|
|
18974
|
-
var LeftDataCard = index$
|
|
19033
|
+
var LeftDataCard = index$8(reactNative.View)(function (_ref2) {
|
|
18975
19034
|
var theme = _ref2.theme;
|
|
18976
19035
|
return {
|
|
18977
19036
|
backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
|
|
@@ -18980,14 +19039,14 @@ var LeftDataCard = index$7(reactNative.View)(function (_ref2) {
|
|
|
18980
19039
|
};
|
|
18981
19040
|
});
|
|
18982
19041
|
|
|
18983
|
-
var _excluded$
|
|
19042
|
+
var _excluded$7 = ["variant", "intent", "children"];
|
|
18984
19043
|
|
|
18985
19044
|
var Card = function Card(_ref) {
|
|
18986
19045
|
var _ref$variant = _ref.variant,
|
|
18987
19046
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
18988
19047
|
intent = _ref.intent,
|
|
18989
19048
|
children = _ref.children,
|
|
18990
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
19049
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
18991
19050
|
|
|
18992
19051
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$1({}, nativeProps, {
|
|
18993
19052
|
themeVariant: variant,
|
|
@@ -18997,11 +19056,11 @@ var Card = function Card(_ref) {
|
|
|
18997
19056
|
}), children);
|
|
18998
19057
|
};
|
|
18999
19058
|
|
|
19000
|
-
var index$
|
|
19059
|
+
var index$7 = Object.assign(Card, {
|
|
19001
19060
|
Data: DataCard
|
|
19002
19061
|
});
|
|
19003
19062
|
|
|
19004
|
-
var StyledWrapper$
|
|
19063
|
+
var StyledWrapper$6 = index$8(reactNative.TouchableOpacity)(function (_ref) {
|
|
19005
19064
|
var theme = _ref.theme,
|
|
19006
19065
|
themeWithBorder = _ref.themeWithBorder,
|
|
19007
19066
|
themeDisabled = _ref.themeDisabled;
|
|
@@ -19015,14 +19074,14 @@ var StyledWrapper$5 = index$7(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
19015
19074
|
flexDirection: 'row'
|
|
19016
19075
|
}, themeWithBorder && borderStyle);
|
|
19017
19076
|
});
|
|
19018
|
-
var StyledDescription$1 = index$
|
|
19077
|
+
var StyledDescription$1 = index$8(Typography.Text)(function (_ref2) {
|
|
19019
19078
|
var theme = _ref2.theme;
|
|
19020
19079
|
return {
|
|
19021
19080
|
paddingRight: theme.__hd__.checkbox.space.iconDescriptionPadding,
|
|
19022
19081
|
flex: 1
|
|
19023
19082
|
};
|
|
19024
19083
|
});
|
|
19025
|
-
var StyledCheckbox = index$
|
|
19084
|
+
var StyledCheckbox = index$8(reactNative.View)(function (_ref3) {
|
|
19026
19085
|
var theme = _ref3.theme,
|
|
19027
19086
|
themeDisabled = _ref3.themeDisabled;
|
|
19028
19087
|
return {
|
|
@@ -19036,7 +19095,7 @@ var StyledCheckbox = index$7(reactNative.View)(function (_ref3) {
|
|
|
19036
19095
|
overflow: 'hidden'
|
|
19037
19096
|
};
|
|
19038
19097
|
});
|
|
19039
|
-
var StyledCheckMark = index$
|
|
19098
|
+
var StyledCheckMark = index$8(Icon)(function (_ref4) {
|
|
19040
19099
|
var theme = _ref4.theme;
|
|
19041
19100
|
return {
|
|
19042
19101
|
position: 'absolute',
|
|
@@ -19054,7 +19113,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
19054
19113
|
onPress = _ref.onPress,
|
|
19055
19114
|
style = _ref.style,
|
|
19056
19115
|
testID = _ref.testID;
|
|
19057
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
19116
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$6, {
|
|
19058
19117
|
onPress: onPress,
|
|
19059
19118
|
disabled: disabled,
|
|
19060
19119
|
themeDisabled: disabled,
|
|
@@ -19072,14 +19131,14 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
19072
19131
|
})));
|
|
19073
19132
|
};
|
|
19074
19133
|
|
|
19075
|
-
var StyledContainer$3 = index$
|
|
19134
|
+
var StyledContainer$3 = index$8(reactNative.View)(function (_ref) {
|
|
19076
19135
|
var theme = _ref.theme;
|
|
19077
19136
|
return {
|
|
19078
19137
|
width: '100%',
|
|
19079
19138
|
marginVertical: theme.__hd__.textInput.space.containerMarginVertical
|
|
19080
19139
|
};
|
|
19081
19140
|
});
|
|
19082
|
-
var StyledLabelContainer = index$
|
|
19141
|
+
var StyledLabelContainer = index$8(reactNative.View)(function (_ref2) {
|
|
19083
19142
|
var theme = _ref2.theme;
|
|
19084
19143
|
return {
|
|
19085
19144
|
position: 'absolute',
|
|
@@ -19091,28 +19150,28 @@ var StyledLabelContainer = index$7(reactNative.View)(function (_ref2) {
|
|
|
19091
19150
|
paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
|
|
19092
19151
|
};
|
|
19093
19152
|
});
|
|
19094
|
-
var StyledLabel = index$
|
|
19153
|
+
var StyledLabel = index$8(Typography.Text)(function (_ref3) {
|
|
19095
19154
|
var theme = _ref3.theme,
|
|
19096
19155
|
themeVariant = _ref3.themeVariant;
|
|
19097
19156
|
return {
|
|
19098
19157
|
color: theme.__hd__.textInput.colors.labels[themeVariant]
|
|
19099
19158
|
};
|
|
19100
19159
|
});
|
|
19101
|
-
var StyledAsteriskLabel = index$
|
|
19160
|
+
var StyledAsteriskLabel = index$8(Typography.Text)(function (_ref4) {
|
|
19102
19161
|
var theme = _ref4.theme,
|
|
19103
19162
|
themeVariant = _ref4.themeVariant;
|
|
19104
19163
|
return {
|
|
19105
19164
|
color: theme.__hd__.textInput.colors.asterisks[themeVariant]
|
|
19106
19165
|
};
|
|
19107
19166
|
});
|
|
19108
|
-
var StyledLabelContainerInsideTextInput = index$
|
|
19167
|
+
var StyledLabelContainerInsideTextInput = index$8(reactNative.View)(function () {
|
|
19109
19168
|
return _objectSpread2({
|
|
19110
19169
|
flexDirection: 'row',
|
|
19111
19170
|
zIndex: 9999,
|
|
19112
19171
|
alignItems: 'center'
|
|
19113
19172
|
}, reactNative.StyleSheet.absoluteFillObject);
|
|
19114
19173
|
});
|
|
19115
|
-
var StyledLabelInsideTextInput = index$
|
|
19174
|
+
var StyledLabelInsideTextInput = index$8(Typography.Text)(function (_ref5) {
|
|
19116
19175
|
var theme = _ref5.theme,
|
|
19117
19176
|
themeVariant = _ref5.themeVariant;
|
|
19118
19177
|
return {
|
|
@@ -19123,7 +19182,7 @@ var StyledLabelInsideTextInput = index$7(Typography.Text)(function (_ref5) {
|
|
|
19123
19182
|
color: theme.__hd__.textInput.colors.labelsInsideTextInput[themeVariant]
|
|
19124
19183
|
};
|
|
19125
19184
|
});
|
|
19126
|
-
var StyledAsteriskLabelInsideTextInput = index$
|
|
19185
|
+
var StyledAsteriskLabelInsideTextInput = index$8(Typography.Text)(function (_ref6) {
|
|
19127
19186
|
var theme = _ref6.theme,
|
|
19128
19187
|
themeVariant = _ref6.themeVariant;
|
|
19129
19188
|
return {
|
|
@@ -19131,7 +19190,7 @@ var StyledAsteriskLabelInsideTextInput = index$7(Typography.Text)(function (_ref
|
|
|
19131
19190
|
fontSize: theme.__hd__.textInput.fontSizes.asteriskLabel
|
|
19132
19191
|
};
|
|
19133
19192
|
});
|
|
19134
|
-
var StyledErrorContainer$1 = index$
|
|
19193
|
+
var StyledErrorContainer$1 = index$8(reactNative.View)(function (_ref7) {
|
|
19135
19194
|
var theme = _ref7.theme;
|
|
19136
19195
|
return {
|
|
19137
19196
|
marginRight: theme.__hd__.textInput.space.errorContainerMarginRight,
|
|
@@ -19141,7 +19200,7 @@ var StyledErrorContainer$1 = index$7(reactNative.View)(function (_ref7) {
|
|
|
19141
19200
|
flexGrow: 4
|
|
19142
19201
|
};
|
|
19143
19202
|
});
|
|
19144
|
-
var StyledError = index$
|
|
19203
|
+
var StyledError = index$8(Typography.Text)(function (_ref8) {
|
|
19145
19204
|
var theme = _ref8.theme;
|
|
19146
19205
|
return {
|
|
19147
19206
|
color: theme.__hd__.textInput.colors.error,
|
|
@@ -19149,7 +19208,7 @@ var StyledError = index$7(Typography.Text)(function (_ref8) {
|
|
|
19149
19208
|
marginLeft: theme.__hd__.textInput.space.errorMarginLeft
|
|
19150
19209
|
};
|
|
19151
19210
|
});
|
|
19152
|
-
var StyledMaxLengthMessage = index$
|
|
19211
|
+
var StyledMaxLengthMessage = index$8(Typography.Text)(function (_ref9) {
|
|
19153
19212
|
var theme = _ref9.theme,
|
|
19154
19213
|
themeVariant = _ref9.themeVariant;
|
|
19155
19214
|
return {
|
|
@@ -19162,13 +19221,13 @@ var StyledMaxLengthMessage = index$7(Typography.Text)(function (_ref9) {
|
|
|
19162
19221
|
textAlign: 'right'
|
|
19163
19222
|
};
|
|
19164
19223
|
});
|
|
19165
|
-
var StyledHelperText = index$
|
|
19224
|
+
var StyledHelperText = index$8(Typography.Text)(function (_ref10) {
|
|
19166
19225
|
var theme = _ref10.theme;
|
|
19167
19226
|
return {
|
|
19168
19227
|
fontSize: theme.__hd__.textInput.fontSizes.error
|
|
19169
19228
|
};
|
|
19170
19229
|
});
|
|
19171
|
-
var StyledTextInput = index$
|
|
19230
|
+
var StyledTextInput = index$8(reactNative.TextInput)(function (_ref11) {
|
|
19172
19231
|
var theme = _ref11.theme;
|
|
19173
19232
|
return {
|
|
19174
19233
|
textAlignVertical: 'center',
|
|
@@ -19178,7 +19237,7 @@ var StyledTextInput = index$7(reactNative.TextInput)(function (_ref11) {
|
|
|
19178
19237
|
marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin
|
|
19179
19238
|
};
|
|
19180
19239
|
});
|
|
19181
|
-
var StyledBorderBackDrop = index$
|
|
19240
|
+
var StyledBorderBackDrop = index$8(reactNative.View)(function (_ref12) {
|
|
19182
19241
|
var _theme$__hd__$textInp;
|
|
19183
19242
|
|
|
19184
19243
|
var theme = _ref12.theme,
|
|
@@ -19189,7 +19248,7 @@ var StyledBorderBackDrop = index$7(reactNative.View)(function (_ref12) {
|
|
|
19189
19248
|
borderColor: (_theme$__hd__$textInp = theme.__hd__.textInput.colors.borders[themeVariant]) !== null && _theme$__hd__$textInp !== void 0 ? _theme$__hd__$textInp : theme.__hd__.textInput.colors.borders["default"]
|
|
19190
19249
|
});
|
|
19191
19250
|
});
|
|
19192
|
-
var StyledTextInputContainer = index$
|
|
19251
|
+
var StyledTextInputContainer = index$8(reactNative.View)(function (_ref13) {
|
|
19193
19252
|
var theme = _ref13.theme;
|
|
19194
19253
|
return {
|
|
19195
19254
|
flexDirection: 'row',
|
|
@@ -19197,7 +19256,7 @@ var StyledTextInputContainer = index$7(reactNative.View)(function (_ref13) {
|
|
|
19197
19256
|
padding: theme.__hd__.textInput.space.containerPadding
|
|
19198
19257
|
};
|
|
19199
19258
|
});
|
|
19200
|
-
var StyledTextInputAndLabelContainer = index$
|
|
19259
|
+
var StyledTextInputAndLabelContainer = index$8(reactNative.View)(function () {
|
|
19201
19260
|
return {
|
|
19202
19261
|
flexDirection: 'row',
|
|
19203
19262
|
alignItems: 'center',
|
|
@@ -19206,20 +19265,20 @@ var StyledTextInputAndLabelContainer = index$7(reactNative.View)(function () {
|
|
|
19206
19265
|
flexShrink: 1
|
|
19207
19266
|
};
|
|
19208
19267
|
});
|
|
19209
|
-
var StyledErrorAndHelpTextContainer = index$
|
|
19268
|
+
var StyledErrorAndHelpTextContainer = index$8(reactNative.View)(function (_ref14) {
|
|
19210
19269
|
var theme = _ref14.theme;
|
|
19211
19270
|
return {
|
|
19212
19271
|
paddingLeft: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft
|
|
19213
19272
|
};
|
|
19214
19273
|
});
|
|
19215
|
-
var StyledErrorAndMaxLengthContainer = index$
|
|
19274
|
+
var StyledErrorAndMaxLengthContainer = index$8(reactNative.View)(function () {
|
|
19216
19275
|
return {
|
|
19217
19276
|
flexDirection: 'row',
|
|
19218
19277
|
justifyContent: 'space-between'
|
|
19219
19278
|
};
|
|
19220
19279
|
});
|
|
19221
19280
|
|
|
19222
|
-
var _excluded$
|
|
19281
|
+
var _excluded$6 = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
|
|
19223
19282
|
var getVariant$1 = function getVariant(_ref) {
|
|
19224
19283
|
var disabled = _ref.disabled,
|
|
19225
19284
|
error = _ref.error,
|
|
@@ -19229,26 +19288,26 @@ var getVariant$1 = function getVariant(_ref) {
|
|
|
19229
19288
|
isEmptyValue = _ref.isEmptyValue;
|
|
19230
19289
|
|
|
19231
19290
|
if (disabled) {
|
|
19232
|
-
return
|
|
19291
|
+
return "disabled";
|
|
19233
19292
|
}
|
|
19234
19293
|
|
|
19235
19294
|
if (error) {
|
|
19236
|
-
return
|
|
19295
|
+
return "error";
|
|
19237
19296
|
}
|
|
19238
19297
|
|
|
19239
19298
|
if (!editable || loading) {
|
|
19240
|
-
return
|
|
19299
|
+
return "readonly";
|
|
19241
19300
|
}
|
|
19242
19301
|
|
|
19243
19302
|
if (isFocused) {
|
|
19244
|
-
return
|
|
19303
|
+
return "focused";
|
|
19245
19304
|
}
|
|
19246
19305
|
|
|
19247
19306
|
if (!isEmptyValue) {
|
|
19248
|
-
return
|
|
19307
|
+
return "filled";
|
|
19249
19308
|
}
|
|
19250
19309
|
|
|
19251
|
-
return
|
|
19310
|
+
return "default";
|
|
19252
19311
|
};
|
|
19253
19312
|
|
|
19254
19313
|
var TextInput = function TextInput(_ref2) {
|
|
@@ -19273,12 +19332,12 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19273
19332
|
helpText = _ref2.helpText,
|
|
19274
19333
|
value = _ref2.value,
|
|
19275
19334
|
defaultValue = _ref2.defaultValue,
|
|
19276
|
-
|
|
19335
|
+
renderInputValue = _ref2.renderInputValue,
|
|
19336
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$6);
|
|
19277
19337
|
|
|
19278
|
-
var
|
|
19279
|
-
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
19338
|
+
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : "";
|
|
19280
19339
|
var isEmptyValue = displayText.length === 0;
|
|
19281
|
-
var actualSuffix = loading ?
|
|
19340
|
+
var actualSuffix = loading ? "loading" : suffix;
|
|
19282
19341
|
|
|
19283
19342
|
var _React$useState = React__default["default"].useState(false),
|
|
19284
19343
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -19295,49 +19354,18 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19295
19354
|
});
|
|
19296
19355
|
var shouldShowMaxLength = maxLength !== undefined;
|
|
19297
19356
|
var theme = useTheme();
|
|
19298
|
-
|
|
19299
|
-
|
|
19300
|
-
pointerEvents: variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto',
|
|
19301
|
-
testID: testID
|
|
19302
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledTextInputContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledBorderBackDrop, {
|
|
19303
|
-
themeVariant: variant
|
|
19304
|
-
}), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainer, {
|
|
19305
|
-
pointerEvents: "none"
|
|
19306
|
-
}, required && /*#__PURE__*/React__default["default"].createElement(StyledAsteriskLabel, {
|
|
19307
|
-
themeVariant: variant,
|
|
19308
|
-
fontSize: "small"
|
|
19309
|
-
}, "*"), !!label && /*#__PURE__*/React__default["default"].createElement(StyledLabel, {
|
|
19310
|
-
nativeID: accessibilityLabelledBy,
|
|
19311
|
-
testID: "input-label",
|
|
19312
|
-
fontSize: "small",
|
|
19313
|
-
themeVariant: variant
|
|
19314
|
-
}, label)), typeof prefix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
19315
|
-
intent: variant === 'disabled' ? 'disabled-text' : 'text',
|
|
19316
|
-
testID: "input-prefix",
|
|
19317
|
-
icon: prefix,
|
|
19318
|
-
size: "xsmall"
|
|
19319
|
-
}) : prefix, /*#__PURE__*/React__default["default"].createElement(StyledTextInputAndLabelContainer, null, !isFocused && isEmptyValue && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainerInsideTextInput, {
|
|
19320
|
-
pointerEvents: "none"
|
|
19321
|
-
}, required && /*#__PURE__*/React__default["default"].createElement(StyledAsteriskLabelInsideTextInput, {
|
|
19322
|
-
themeVariant: variant
|
|
19323
|
-
}, "*"), !!label && /*#__PURE__*/React__default["default"].createElement(StyledLabelInsideTextInput, {
|
|
19324
|
-
nativeID: accessibilityLabelledBy,
|
|
19325
|
-
testID: "input-label",
|
|
19326
|
-
fontSize: "medium",
|
|
19327
|
-
themeVariant: variant
|
|
19328
|
-
}, label)), /*#__PURE__*/React__default["default"].createElement(StyledTextInput // when input is not editable on Android, the text color is gray
|
|
19329
|
-
// hence, adding this to make the text color the same as iOS
|
|
19330
|
-
, _extends$1({
|
|
19357
|
+
|
|
19358
|
+
var nativeInputProps = _objectSpread2(_objectSpread2({
|
|
19331
19359
|
style: reactNative.StyleSheet.flatten([{
|
|
19332
19360
|
color: theme.__hd__.textInput.colors.text
|
|
19333
19361
|
}, textStyle]),
|
|
19334
19362
|
testID: "text-input",
|
|
19335
19363
|
accessibilityState: {
|
|
19336
|
-
disabled: variant ===
|
|
19337
|
-
}
|
|
19338
|
-
|
|
19364
|
+
disabled: variant === "disabled" || variant === "readonly"
|
|
19365
|
+
},
|
|
19366
|
+
// @ts-ignore
|
|
19339
19367
|
accessibilityLabelledBy: accessibilityLabelledBy
|
|
19340
|
-
}, nativeProps, {
|
|
19368
|
+
}, nativeProps), {}, {
|
|
19341
19369
|
onFocus: function onFocus(event) {
|
|
19342
19370
|
var _nativeProps$onFocus;
|
|
19343
19371
|
|
|
@@ -19350,7 +19378,6 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19350
19378
|
setIsFocused(false);
|
|
19351
19379
|
(_nativeProps$onBlur = nativeProps.onBlur) === null || _nativeProps$onBlur === void 0 ? void 0 : _nativeProps$onBlur.call(nativeProps, event);
|
|
19352
19380
|
},
|
|
19353
|
-
ref: textInputReference,
|
|
19354
19381
|
editable: editable,
|
|
19355
19382
|
maxLength: maxLength,
|
|
19356
19383
|
value: value,
|
|
@@ -19360,12 +19387,44 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19360
19387
|
(_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
|
|
19361
19388
|
},
|
|
19362
19389
|
defaultValue: defaultValue,
|
|
19363
|
-
placeholder: variant ===
|
|
19364
|
-
})
|
|
19365
|
-
|
|
19390
|
+
placeholder: variant === "focused" ? nativeProps.placeholder : undefined
|
|
19391
|
+
});
|
|
19392
|
+
|
|
19393
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledContainer$3, {
|
|
19394
|
+
pointerEvents: variant === "disabled" || variant === "readonly" ? "none" : "auto",
|
|
19395
|
+
testID: testID
|
|
19396
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledTextInputContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledBorderBackDrop, {
|
|
19397
|
+
themeVariant: variant,
|
|
19398
|
+
style: style
|
|
19399
|
+
}), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainer, {
|
|
19400
|
+
pointerEvents: "none"
|
|
19401
|
+
}, required && /*#__PURE__*/React__default["default"].createElement(StyledAsteriskLabel, {
|
|
19402
|
+
themeVariant: variant,
|
|
19403
|
+
fontSize: "small"
|
|
19404
|
+
}, "*"), !!label && /*#__PURE__*/React__default["default"].createElement(StyledLabel, {
|
|
19405
|
+
nativeID: accessibilityLabelledBy,
|
|
19406
|
+
testID: "input-label",
|
|
19407
|
+
fontSize: "small",
|
|
19408
|
+
themeVariant: variant
|
|
19409
|
+
}, label)), typeof prefix === "string" ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
19410
|
+
intent: variant === "disabled" ? "disabled-text" : "text",
|
|
19411
|
+
testID: "input-prefix",
|
|
19412
|
+
icon: prefix,
|
|
19413
|
+
size: "xsmall"
|
|
19414
|
+
}) : prefix, /*#__PURE__*/React__default["default"].createElement(StyledTextInputAndLabelContainer, null, !isFocused && isEmptyValue && /*#__PURE__*/React__default["default"].createElement(StyledLabelContainerInsideTextInput, {
|
|
19415
|
+
pointerEvents: "none"
|
|
19416
|
+
}, required && /*#__PURE__*/React__default["default"].createElement(StyledAsteriskLabelInsideTextInput, {
|
|
19417
|
+
themeVariant: variant
|
|
19418
|
+
}, "*"), !!label && /*#__PURE__*/React__default["default"].createElement(StyledLabelInsideTextInput, {
|
|
19419
|
+
nativeID: accessibilityLabelledBy,
|
|
19420
|
+
testID: "input-label",
|
|
19421
|
+
fontSize: "medium",
|
|
19422
|
+
themeVariant: variant
|
|
19423
|
+
}, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__default["default"].createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix === "string" ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
19424
|
+
intent: variant === "disabled" ? "disabled-text" : "text",
|
|
19366
19425
|
testID: "input-suffix",
|
|
19367
19426
|
icon: actualSuffix,
|
|
19368
|
-
spin: actualSuffix ===
|
|
19427
|
+
spin: actualSuffix === "loading",
|
|
19369
19428
|
size: "xsmall"
|
|
19370
19429
|
}) : suffix), /*#__PURE__*/React__default["default"].createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__default["default"].createElement(StyledErrorAndMaxLengthContainer, null, !!error && /*#__PURE__*/React__default["default"].createElement(StyledErrorContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
19371
19430
|
testID: "input-error-icon",
|
|
@@ -19436,7 +19495,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
19436
19495
|
}) : null);
|
|
19437
19496
|
};
|
|
19438
19497
|
|
|
19439
|
-
var StyledPickerWrapper$1 = index$
|
|
19498
|
+
var StyledPickerWrapper$1 = index$8(reactNative.View)(function (_ref) {
|
|
19440
19499
|
var theme = _ref.theme;
|
|
19441
19500
|
return {
|
|
19442
19501
|
height: theme.__hd__.datePicker.sizes.height
|
|
@@ -19533,7 +19592,7 @@ var DatePicker = function DatePicker(props) {
|
|
|
19533
19592
|
};
|
|
19534
19593
|
|
|
19535
19594
|
var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
19536
|
-
var StyledContainer$2 = index$
|
|
19595
|
+
var StyledContainer$2 = index$8(reactNative.View)(function (_ref) {
|
|
19537
19596
|
var theme = _ref.theme,
|
|
19538
19597
|
enableShadow = _ref.enableShadow;
|
|
19539
19598
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
@@ -19546,7 +19605,7 @@ var StyledContainer$2 = index$7(reactNative.View)(function (_ref) {
|
|
|
19546
19605
|
elevation: 9999
|
|
19547
19606
|
});
|
|
19548
19607
|
});
|
|
19549
|
-
var StyledDragableContainer = index$
|
|
19608
|
+
var StyledDragableContainer = index$8(reactNative.View)(function (_ref2) {
|
|
19550
19609
|
var theme = _ref2.theme,
|
|
19551
19610
|
enableShadow = _ref2.enableShadow;
|
|
19552
19611
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
@@ -19560,13 +19619,13 @@ var StyledDragableContainer = index$7(reactNative.View)(function (_ref2) {
|
|
|
19560
19619
|
flexDirection: 'column-reverse'
|
|
19561
19620
|
});
|
|
19562
19621
|
});
|
|
19563
|
-
var StyledBackdrop$1 = index$
|
|
19622
|
+
var StyledBackdrop$1 = index$8(AnimatedPressable)(function (_ref3) {
|
|
19564
19623
|
var theme = _ref3.theme;
|
|
19565
19624
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
19566
19625
|
backgroundColor: theme.__hd__.drawer.colors.backdrop
|
|
19567
19626
|
});
|
|
19568
19627
|
});
|
|
19569
|
-
var StyledDrawerContainer = index$
|
|
19628
|
+
var StyledDrawerContainer = index$8(reactNative.Animated.View)(function (_ref4) {
|
|
19570
19629
|
var theme = _ref4.theme,
|
|
19571
19630
|
enableShadow = _ref4.enableShadow;
|
|
19572
19631
|
return {
|
|
@@ -19577,7 +19636,7 @@ var StyledDrawerContainer = index$7(reactNative.Animated.View)(function (_ref4)
|
|
|
19577
19636
|
overflow: 'hidden'
|
|
19578
19637
|
};
|
|
19579
19638
|
});
|
|
19580
|
-
var StyledDragableDrawerContainer = index$
|
|
19639
|
+
var StyledDragableDrawerContainer = index$8(reactNative.Animated.View)(function (_ref5) {
|
|
19581
19640
|
var theme = _ref5.theme,
|
|
19582
19641
|
enableShadow = _ref5.enableShadow;
|
|
19583
19642
|
return {
|
|
@@ -19589,7 +19648,7 @@ var StyledDragableDrawerContainer = index$7(reactNative.Animated.View)(function
|
|
|
19589
19648
|
maxHeight: '100%'
|
|
19590
19649
|
};
|
|
19591
19650
|
});
|
|
19592
|
-
var StyledHandlerContainer = index$
|
|
19651
|
+
var StyledHandlerContainer = index$8(reactNative.View)(function (_ref6) {
|
|
19593
19652
|
var theme = _ref6.theme;
|
|
19594
19653
|
return {
|
|
19595
19654
|
backgroundColor: theme.__hd__.drawer.colors.background,
|
|
@@ -19597,7 +19656,7 @@ var StyledHandlerContainer = index$7(reactNative.View)(function (_ref6) {
|
|
|
19597
19656
|
alignItems: 'center'
|
|
19598
19657
|
};
|
|
19599
19658
|
});
|
|
19600
|
-
var StyledHandler = index$
|
|
19659
|
+
var StyledHandler = index$8(reactNative.View)(function (_ref7) {
|
|
19601
19660
|
var theme = _ref7.theme;
|
|
19602
19661
|
return {
|
|
19603
19662
|
width: theme.__hd__.drawer.sizes.handlerWidth,
|
|
@@ -19828,11 +19887,11 @@ var Drawer = function Drawer(_ref) {
|
|
|
19828
19887
|
}, children));
|
|
19829
19888
|
};
|
|
19830
19889
|
|
|
19831
|
-
var index$
|
|
19890
|
+
var index$6 = Object.assign(Drawer, {
|
|
19832
19891
|
Dragable: DragableDrawer
|
|
19833
19892
|
});
|
|
19834
19893
|
|
|
19835
|
-
var StyledWrapper$
|
|
19894
|
+
var StyledWrapper$5 = index$8(reactNative.View)(function (_ref) {
|
|
19836
19895
|
var theme = _ref.theme;
|
|
19837
19896
|
return {
|
|
19838
19897
|
display: 'flex',
|
|
@@ -19843,19 +19902,9 @@ var StyledWrapper$4 = index$7(reactNative.View)(function (_ref) {
|
|
|
19843
19902
|
padding: theme.__hd__.empty.space.wrapperPadding
|
|
19844
19903
|
};
|
|
19845
19904
|
});
|
|
19846
|
-
var
|
|
19847
|
-
var theme = _ref2.theme
|
|
19848
|
-
|
|
19849
|
-
height: theme.__hd__.empty.sizes.illustration,
|
|
19850
|
-
width: theme.__hd__.empty.sizes.illustration,
|
|
19851
|
-
borderRadius: theme.__hd__.empty.radii.illustration,
|
|
19852
|
-
backgroundColor: theme.__hd__.empty.colors.illustrationBackground,
|
|
19853
|
-
marginBottom: theme.__hd__.empty.space.illustrationMargin
|
|
19854
|
-
};
|
|
19855
|
-
});
|
|
19856
|
-
var StyledTitle = index$7(reactNative.Text)(function (_ref3) {
|
|
19857
|
-
var theme = _ref3.theme,
|
|
19858
|
-
themeVariant = _ref3.themeVariant;
|
|
19905
|
+
var StyledTitle = index$8(reactNative.Text)(function (_ref2) {
|
|
19906
|
+
var theme = _ref2.theme,
|
|
19907
|
+
themeVariant = _ref2.themeVariant;
|
|
19859
19908
|
return {
|
|
19860
19909
|
fontFamily: theme.__hd__.empty.fonts.title,
|
|
19861
19910
|
fontSize: theme.__hd__.empty.fontSizes.title,
|
|
@@ -19864,9 +19913,9 @@ var StyledTitle = index$7(reactNative.Text)(function (_ref3) {
|
|
|
19864
19913
|
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
|
|
19865
19914
|
};
|
|
19866
19915
|
});
|
|
19867
|
-
var StyledDescription = index$
|
|
19868
|
-
var theme =
|
|
19869
|
-
themeVariant =
|
|
19916
|
+
var StyledDescription = index$8(reactNative.Text)(function (_ref3) {
|
|
19917
|
+
var theme = _ref3.theme,
|
|
19918
|
+
themeVariant = _ref3.themeVariant;
|
|
19870
19919
|
return {
|
|
19871
19920
|
fontFamily: theme.__hd__.empty.fonts.description,
|
|
19872
19921
|
fontSize: theme.__hd__.empty.fontSizes.description,
|
|
@@ -19876,23 +19925,29 @@ var StyledDescription = index$7(reactNative.Text)(function (_ref4) {
|
|
|
19876
19925
|
});
|
|
19877
19926
|
|
|
19878
19927
|
var Empty = function Empty(_ref) {
|
|
19879
|
-
var
|
|
19928
|
+
var image = _ref.image,
|
|
19929
|
+
title = _ref.title,
|
|
19880
19930
|
description = _ref.description,
|
|
19881
19931
|
style = _ref.style,
|
|
19882
19932
|
testID = _ref.testID,
|
|
19883
19933
|
_ref$variant = _ref.variant,
|
|
19884
19934
|
variant = _ref$variant === void 0 ? 'light' : _ref$variant;
|
|
19885
|
-
|
|
19935
|
+
var theme = useTheme();
|
|
19936
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$5, {
|
|
19886
19937
|
style: style,
|
|
19887
19938
|
testID: testID
|
|
19888
|
-
}, /*#__PURE__*/React__default["default"].
|
|
19939
|
+
}, image !== undefined && /*#__PURE__*/React__default["default"].cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
|
|
19940
|
+
style: [{
|
|
19941
|
+
marginBottom: theme.__hd__.empty.space.imageMargin
|
|
19942
|
+
}, image.props.style]
|
|
19943
|
+
})), /*#__PURE__*/React__default["default"].createElement(StyledTitle, {
|
|
19889
19944
|
themeVariant: variant
|
|
19890
19945
|
}, title), !!description && /*#__PURE__*/React__default["default"].createElement(StyledDescription, {
|
|
19891
19946
|
themeVariant: variant
|
|
19892
19947
|
}, description));
|
|
19893
19948
|
};
|
|
19894
19949
|
|
|
19895
|
-
var StyledFABContainer = index$
|
|
19950
|
+
var StyledFABContainer = index$8(reactNative.TouchableHighlight)(function (_ref) {
|
|
19896
19951
|
var theme = _ref.theme;
|
|
19897
19952
|
return {
|
|
19898
19953
|
backgroundColor: theme.__hd__.fab.colors.buttonBackground,
|
|
@@ -19906,7 +19961,7 @@ var StyledFABContainer = index$7(reactNative.TouchableHighlight)(function (_ref)
|
|
|
19906
19961
|
flexDirection: 'row'
|
|
19907
19962
|
};
|
|
19908
19963
|
});
|
|
19909
|
-
var StyledFABIcon = index$
|
|
19964
|
+
var StyledFABIcon = index$8(Icon)(function (_ref2) {
|
|
19910
19965
|
var theme = _ref2.theme;
|
|
19911
19966
|
return {
|
|
19912
19967
|
color: theme.__hd__.fab.colors.icon,
|
|
@@ -19915,7 +19970,7 @@ var StyledFABIcon = index$7(Icon)(function (_ref2) {
|
|
|
19915
19970
|
textAlign: 'center'
|
|
19916
19971
|
};
|
|
19917
19972
|
});
|
|
19918
|
-
var StyledFABText = index$
|
|
19973
|
+
var StyledFABText = index$8(reactNative.Text)(function (_ref3) {
|
|
19919
19974
|
var theme = _ref3.theme;
|
|
19920
19975
|
return {
|
|
19921
19976
|
fontFamily: theme.__hd__.fab.fonts.title,
|
|
@@ -19928,12 +19983,12 @@ var StyledFABText = index$7(reactNative.Text)(function (_ref3) {
|
|
|
19928
19983
|
};
|
|
19929
19984
|
});
|
|
19930
19985
|
|
|
19931
|
-
var _excluded$
|
|
19986
|
+
var _excluded$5 = ["active"];
|
|
19932
19987
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
|
|
19933
19988
|
|
|
19934
19989
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
19935
19990
|
var active = _ref.active,
|
|
19936
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
19991
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$5);
|
|
19937
19992
|
|
|
19938
19993
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
19939
19994
|
React.useEffect(function () {
|
|
@@ -20012,7 +20067,7 @@ var FAB = function FAB(_ref3) {
|
|
|
20012
20067
|
}));
|
|
20013
20068
|
};
|
|
20014
20069
|
|
|
20015
|
-
var StyledActionItem = index$
|
|
20070
|
+
var StyledActionItem = index$8(reactNative.TouchableOpacity)(function (_ref) {
|
|
20016
20071
|
var theme = _ref.theme;
|
|
20017
20072
|
return {
|
|
20018
20073
|
paddingLeft: theme.__hd__.fab.space.actionItemPaddingLeft,
|
|
@@ -20029,7 +20084,7 @@ var StyledActionItem = index$7(reactNative.TouchableOpacity)(function (_ref) {
|
|
|
20029
20084
|
overflow: 'hidden'
|
|
20030
20085
|
};
|
|
20031
20086
|
});
|
|
20032
|
-
var StyledActionItemText = index$
|
|
20087
|
+
var StyledActionItemText = index$8(Typography.Text)(function (_ref2) {
|
|
20033
20088
|
var theme = _ref2.theme;
|
|
20034
20089
|
return {
|
|
20035
20090
|
paddingLeft: theme.__hd__.fab.space.actionItemTextPaddingLeft,
|
|
@@ -20039,7 +20094,7 @@ var StyledActionItemText = index$7(Typography.Text)(function (_ref2) {
|
|
|
20039
20094
|
color: theme.__hd__.fab.colors.actionItemText
|
|
20040
20095
|
};
|
|
20041
20096
|
});
|
|
20042
|
-
var StyledIcon = index$
|
|
20097
|
+
var StyledIcon = index$8(Icon)(function (_ref3) {
|
|
20043
20098
|
var theme = _ref3.theme;
|
|
20044
20099
|
return {
|
|
20045
20100
|
color: theme.__hd__.fab.colors.actionItemText
|
|
@@ -20061,7 +20116,7 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
20061
20116
|
}), /*#__PURE__*/React__default["default"].createElement(StyledActionItemText, null, title));
|
|
20062
20117
|
};
|
|
20063
20118
|
|
|
20064
|
-
var StyledContainer$1 = index$
|
|
20119
|
+
var StyledContainer$1 = index$8(reactNative.View)({
|
|
20065
20120
|
position: 'absolute',
|
|
20066
20121
|
left: 0,
|
|
20067
20122
|
right: 0,
|
|
@@ -20070,12 +20125,12 @@ var StyledContainer$1 = index$7(reactNative.View)({
|
|
|
20070
20125
|
alignItems: 'flex-end',
|
|
20071
20126
|
justifyContent: 'flex-end'
|
|
20072
20127
|
});
|
|
20073
|
-
var StyledActionGroupContainer = index$
|
|
20128
|
+
var StyledActionGroupContainer = index$8(reactNative.Animated.View)({
|
|
20074
20129
|
alignItems: 'flex-end',
|
|
20075
20130
|
justifyContent: 'flex-end',
|
|
20076
20131
|
width: '70%'
|
|
20077
20132
|
});
|
|
20078
|
-
var StyledFAB = index$
|
|
20133
|
+
var StyledFAB = index$8(FAB)(function (_ref) {
|
|
20079
20134
|
var theme = _ref.theme;
|
|
20080
20135
|
return {
|
|
20081
20136
|
marginRight: theme.__hd__.fab.space.buttonMarginRight,
|
|
@@ -20083,7 +20138,7 @@ var StyledFAB = index$7(FAB)(function (_ref) {
|
|
|
20083
20138
|
alignSelf: 'flex-end'
|
|
20084
20139
|
};
|
|
20085
20140
|
});
|
|
20086
|
-
var StyledBackdrop = index$
|
|
20141
|
+
var StyledBackdrop = index$8(reactNative.Animated.View)(function (_ref2) {
|
|
20087
20142
|
var theme = _ref2.theme;
|
|
20088
20143
|
return {
|
|
20089
20144
|
position: 'absolute',
|
|
@@ -20094,7 +20149,7 @@ var StyledBackdrop = index$7(reactNative.Animated.View)(function (_ref2) {
|
|
|
20094
20149
|
backgroundColor: theme.__hd__.fab.colors.backdropBackground
|
|
20095
20150
|
};
|
|
20096
20151
|
});
|
|
20097
|
-
var StyledHeaderText = index$
|
|
20152
|
+
var StyledHeaderText = index$8(Typography.Text)(function (_ref3) {
|
|
20098
20153
|
var theme = _ref3.theme;
|
|
20099
20154
|
return {
|
|
20100
20155
|
fontSize: theme.__hd__.fab.fontSizes.header,
|
|
@@ -20182,11 +20237,34 @@ var ActionGroup = function ActionGroup(_ref2) {
|
|
|
20182
20237
|
}));
|
|
20183
20238
|
};
|
|
20184
20239
|
|
|
20185
|
-
var index$
|
|
20240
|
+
var index$5 = Object.assign(FAB, {
|
|
20186
20241
|
ActionGroup: ActionGroup
|
|
20187
20242
|
});
|
|
20188
20243
|
|
|
20189
|
-
var
|
|
20244
|
+
var _excluded$4 = ["rounded", "size", "testID", "style"];
|
|
20245
|
+
|
|
20246
|
+
var Image = function Image(_ref) {
|
|
20247
|
+
var _ref$rounded = _ref.rounded,
|
|
20248
|
+
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
20249
|
+
_ref$size = _ref.size,
|
|
20250
|
+
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
20251
|
+
testID = _ref.testID,
|
|
20252
|
+
style = _ref.style,
|
|
20253
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
20254
|
+
|
|
20255
|
+
var theme = useTheme();
|
|
20256
|
+
var imageSize = theme.__hd__.image.sizes[size];
|
|
20257
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Image, _extends$1({
|
|
20258
|
+
testID: testID,
|
|
20259
|
+
style: [{
|
|
20260
|
+
width: imageSize,
|
|
20261
|
+
height: imageSize,
|
|
20262
|
+
borderRadius: rounded ? imageSize / 2 : 0
|
|
20263
|
+
}, style]
|
|
20264
|
+
}, imageNativeProps));
|
|
20265
|
+
};
|
|
20266
|
+
|
|
20267
|
+
var StyledListItemContainer$1 = index$8(reactNative.TouchableHighlight)(function (_ref) {
|
|
20190
20268
|
var theme = _ref.theme,
|
|
20191
20269
|
_ref$themeSelected = _ref.themeSelected,
|
|
20192
20270
|
themeSelected = _ref$themeSelected === void 0 ? false : _ref$themeSelected,
|
|
@@ -20217,21 +20295,21 @@ var StyledListItemContainer$1 = index$7(reactNative.TouchableHighlight)(function
|
|
|
20217
20295
|
return sharedStyles;
|
|
20218
20296
|
}
|
|
20219
20297
|
});
|
|
20220
|
-
var StyledContentContainer = index$
|
|
20298
|
+
var StyledContentContainer = index$8(reactNative.View)(function () {
|
|
20221
20299
|
return {
|
|
20222
20300
|
flexDirection: 'column',
|
|
20223
20301
|
flex: 1,
|
|
20224
20302
|
flexGrow: 2
|
|
20225
20303
|
};
|
|
20226
20304
|
});
|
|
20227
|
-
var StyledChildrenContainer = index$
|
|
20305
|
+
var StyledChildrenContainer = index$8(reactNative.View)(function () {
|
|
20228
20306
|
return {
|
|
20229
20307
|
flexDirection: 'column',
|
|
20230
20308
|
justifyContent: 'flex-start',
|
|
20231
20309
|
alignItems: 'flex-start'
|
|
20232
20310
|
};
|
|
20233
20311
|
});
|
|
20234
|
-
var StyledLeadingStatus = index$
|
|
20312
|
+
var StyledLeadingStatus = index$8(reactNative.View)(function (_ref2) {
|
|
20235
20313
|
var theme = _ref2.theme,
|
|
20236
20314
|
themeLeadingStatusIntent = _ref2.themeLeadingStatusIntent;
|
|
20237
20315
|
return {
|
|
@@ -20241,19 +20319,19 @@ var StyledLeadingStatus = index$7(reactNative.View)(function (_ref2) {
|
|
|
20241
20319
|
backgroundColor: theme.__hd__.list.colors.leadingStatus[themeLeadingStatusIntent]
|
|
20242
20320
|
};
|
|
20243
20321
|
});
|
|
20244
|
-
var StyledPrefixContainer$1 = index$
|
|
20322
|
+
var StyledPrefixContainer$1 = index$8(reactNative.View)(function (_ref3) {
|
|
20245
20323
|
var theme = _ref3.theme;
|
|
20246
20324
|
return {
|
|
20247
20325
|
marginRight: theme.__hd__.list.space.prefixContainerMarginRight
|
|
20248
20326
|
};
|
|
20249
20327
|
});
|
|
20250
|
-
var StyledSuffixContainer$1 = index$
|
|
20328
|
+
var StyledSuffixContainer$1 = index$8(reactNative.View)(function (_ref4) {
|
|
20251
20329
|
var theme = _ref4.theme;
|
|
20252
20330
|
return {
|
|
20253
20331
|
marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
|
|
20254
20332
|
};
|
|
20255
20333
|
});
|
|
20256
|
-
var StyledTitleContainer$1 = index$
|
|
20334
|
+
var StyledTitleContainer$1 = index$8(reactNative.View)(function () {
|
|
20257
20335
|
return {
|
|
20258
20336
|
flex: 1
|
|
20259
20337
|
};
|
|
@@ -20308,24 +20386,24 @@ var ListItem = function ListItem(_ref) {
|
|
|
20308
20386
|
}) : suffix)), children && /*#__PURE__*/React__default["default"].createElement(StyledChildrenContainer, null, children))));
|
|
20309
20387
|
};
|
|
20310
20388
|
|
|
20311
|
-
var StyledPrefixContainer = index$
|
|
20389
|
+
var StyledPrefixContainer = index$8(reactNative.View)(function (_ref) {
|
|
20312
20390
|
var theme = _ref.theme;
|
|
20313
20391
|
return {
|
|
20314
20392
|
marginRight: theme.__hd__.list.space.prefixContainerMarginRight
|
|
20315
20393
|
};
|
|
20316
20394
|
});
|
|
20317
|
-
var StyledSuffixContainer = index$
|
|
20395
|
+
var StyledSuffixContainer = index$8(reactNative.View)(function (_ref2) {
|
|
20318
20396
|
var theme = _ref2.theme;
|
|
20319
20397
|
return {
|
|
20320
20398
|
marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
|
|
20321
20399
|
};
|
|
20322
20400
|
});
|
|
20323
|
-
var StyledTitleContainer = index$
|
|
20401
|
+
var StyledTitleContainer = index$8(reactNative.View)(function () {
|
|
20324
20402
|
return {
|
|
20325
20403
|
flex: 1
|
|
20326
20404
|
};
|
|
20327
20405
|
});
|
|
20328
|
-
var StyledListItemContainer = index$
|
|
20406
|
+
var StyledListItemContainer = index$8(reactNative.TouchableHighlight)(function (_ref3) {
|
|
20329
20407
|
var theme = _ref3.theme,
|
|
20330
20408
|
themeSelected = _ref3.themeSelected,
|
|
20331
20409
|
themeDisabled = _ref3.themeDisabled;
|
|
@@ -20379,17 +20457,17 @@ var List = {
|
|
|
20379
20457
|
BasicItem: BasicListItem
|
|
20380
20458
|
};
|
|
20381
20459
|
|
|
20382
|
-
var StyledWrapper$
|
|
20460
|
+
var StyledWrapper$4 = index$8(reactNative.View)(function () {
|
|
20383
20461
|
return {
|
|
20384
20462
|
alignContent: 'flex-start'
|
|
20385
20463
|
};
|
|
20386
20464
|
});
|
|
20387
|
-
var StyledPinWrapper = index$
|
|
20465
|
+
var StyledPinWrapper = index$8(reactNative.View)(function () {
|
|
20388
20466
|
return {
|
|
20389
20467
|
flexDirection: 'row'
|
|
20390
20468
|
};
|
|
20391
20469
|
});
|
|
20392
|
-
var StyledCell = index$
|
|
20470
|
+
var StyledCell = index$8(reactNative.View)(function (_ref) {
|
|
20393
20471
|
var theme = _ref.theme,
|
|
20394
20472
|
themeFocused = _ref.themeFocused,
|
|
20395
20473
|
themeState = _ref.themeState;
|
|
@@ -20403,7 +20481,7 @@ var StyledCell = index$7(reactNative.View)(function (_ref) {
|
|
|
20403
20481
|
borderColor: theme.__hd__.pinInput.colors[themeState]
|
|
20404
20482
|
};
|
|
20405
20483
|
});
|
|
20406
|
-
var StyledCellText = index$
|
|
20484
|
+
var StyledCellText = index$8(reactNative.Text)(function (_ref2) {
|
|
20407
20485
|
var theme = _ref2.theme,
|
|
20408
20486
|
themeState = _ref2.themeState;
|
|
20409
20487
|
return {
|
|
@@ -20412,13 +20490,13 @@ var StyledCellText = index$7(reactNative.Text)(function (_ref2) {
|
|
|
20412
20490
|
color: theme.__hd__.pinInput.colors[themeState]
|
|
20413
20491
|
};
|
|
20414
20492
|
});
|
|
20415
|
-
var StyledSpacer = index$
|
|
20493
|
+
var StyledSpacer = index$8(reactNative.View)(function (_ref3) {
|
|
20416
20494
|
var theme = _ref3.theme;
|
|
20417
20495
|
return {
|
|
20418
20496
|
marginLeft: theme.__hd__.pinInput.space.spacer
|
|
20419
20497
|
};
|
|
20420
20498
|
});
|
|
20421
|
-
var StyledMask = index$
|
|
20499
|
+
var StyledMask = index$8(reactNative.View)(function (_ref4) {
|
|
20422
20500
|
var theme = _ref4.theme,
|
|
20423
20501
|
themeState = _ref4.themeState;
|
|
20424
20502
|
return {
|
|
@@ -20429,7 +20507,7 @@ var StyledMask = index$7(reactNative.View)(function (_ref4) {
|
|
|
20429
20507
|
borderColor: theme.__hd__.pinInput.colors[themeState]
|
|
20430
20508
|
};
|
|
20431
20509
|
});
|
|
20432
|
-
var StyledFilledMask = index$
|
|
20510
|
+
var StyledFilledMask = index$8(reactNative.View)(function (_ref5) {
|
|
20433
20511
|
var theme = _ref5.theme,
|
|
20434
20512
|
themeState = _ref5.themeState;
|
|
20435
20513
|
return {
|
|
@@ -20441,7 +20519,7 @@ var StyledFilledMask = index$7(reactNative.View)(function (_ref5) {
|
|
|
20441
20519
|
backgroundColor: theme.__hd__.pinInput.colors[themeState]
|
|
20442
20520
|
};
|
|
20443
20521
|
});
|
|
20444
|
-
var StyledHiddenInput = index$
|
|
20522
|
+
var StyledHiddenInput = index$8(reactNative.TextInput)(function (_ref6) {
|
|
20445
20523
|
var themePinLength = _ref6.themePinLength,
|
|
20446
20524
|
theme = _ref6.theme;
|
|
20447
20525
|
var cellWidth = theme.__hd__.pinInput.sizes.cellWidth;
|
|
@@ -20455,14 +20533,14 @@ var StyledHiddenInput = index$7(reactNative.TextInput)(function (_ref6) {
|
|
|
20455
20533
|
height: '100%'
|
|
20456
20534
|
};
|
|
20457
20535
|
});
|
|
20458
|
-
var StyledErrorContainer = index$
|
|
20536
|
+
var StyledErrorContainer = index$8(reactNative.View)(function (_ref7) {
|
|
20459
20537
|
var theme = _ref7.theme;
|
|
20460
20538
|
return {
|
|
20461
20539
|
flexDirection: 'row',
|
|
20462
20540
|
paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
|
|
20463
20541
|
};
|
|
20464
20542
|
});
|
|
20465
|
-
var StyledErrorMessage = index$
|
|
20543
|
+
var StyledErrorMessage = index$8(reactNative.Text)(function (_ref8) {
|
|
20466
20544
|
var theme = _ref8.theme;
|
|
20467
20545
|
return {
|
|
20468
20546
|
fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
|
|
@@ -20565,7 +20643,7 @@ function PinInput(_ref2) {
|
|
|
20565
20643
|
reactNative.InteractionManager.runAfterInteractions(focus);
|
|
20566
20644
|
}
|
|
20567
20645
|
}, [inputRef]);
|
|
20568
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
20646
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, {
|
|
20569
20647
|
style: style,
|
|
20570
20648
|
testID: testID
|
|
20571
20649
|
}, /*#__PURE__*/React__default["default"].createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
@@ -20604,14 +20682,14 @@ var INNER_CIRCLE_PERCENTAGE = 0.85; // 85% width according to design
|
|
|
20604
20682
|
|
|
20605
20683
|
var STROKE_WIDTH_PERCENTAGE = 0.075; // 7.5% width according to design
|
|
20606
20684
|
|
|
20607
|
-
var StyledContainer = index$
|
|
20685
|
+
var StyledContainer = index$8(reactNative.View)(function (_ref) {
|
|
20608
20686
|
var theme = _ref.theme;
|
|
20609
20687
|
return {
|
|
20610
20688
|
flexDirection: 'row',
|
|
20611
20689
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
20612
20690
|
};
|
|
20613
20691
|
});
|
|
20614
|
-
var StyledHalfCircleWrapper = index$
|
|
20692
|
+
var StyledHalfCircleWrapper = index$8(reactNative.View)(function (_ref2) {
|
|
20615
20693
|
var theme = _ref2.theme;
|
|
20616
20694
|
return {
|
|
20617
20695
|
width: theme.__hd__.progress.sizes.circleWidth / 2,
|
|
@@ -20619,7 +20697,7 @@ var StyledHalfCircleWrapper = index$7(reactNative.View)(function (_ref2) {
|
|
|
20619
20697
|
overflow: 'hidden'
|
|
20620
20698
|
};
|
|
20621
20699
|
});
|
|
20622
|
-
var StyledHalfCircleInnerFG = index$
|
|
20700
|
+
var StyledHalfCircleInnerFG = index$8(reactNative.View)(function (_ref3) {
|
|
20623
20701
|
var theme = _ref3.theme,
|
|
20624
20702
|
themeIntent = _ref3.themeIntent;
|
|
20625
20703
|
return {
|
|
@@ -20629,7 +20707,7 @@ var StyledHalfCircleInnerFG = index$7(reactNative.View)(function (_ref3) {
|
|
|
20629
20707
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
20630
20708
|
};
|
|
20631
20709
|
});
|
|
20632
|
-
var StyledHalfCircleInnerBG = index$
|
|
20710
|
+
var StyledHalfCircleInnerBG = index$8(reactNative.View)(function (_ref4) {
|
|
20633
20711
|
var theme = _ref4.theme;
|
|
20634
20712
|
return {
|
|
20635
20713
|
width: theme.__hd__.progress.sizes.circleWidth,
|
|
@@ -20638,7 +20716,7 @@ var StyledHalfCircleInnerBG = index$7(reactNative.View)(function (_ref4) {
|
|
|
20638
20716
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
20639
20717
|
};
|
|
20640
20718
|
});
|
|
20641
|
-
var StyledDonutCircle = index$
|
|
20719
|
+
var StyledDonutCircle = index$8(reactNative.View)(function (_ref5) {
|
|
20642
20720
|
var theme = _ref5.theme;
|
|
20643
20721
|
return {
|
|
20644
20722
|
position: 'absolute',
|
|
@@ -20653,7 +20731,7 @@ var StyledDonutCircle = index$7(reactNative.View)(function (_ref5) {
|
|
|
20653
20731
|
justifyContent: 'center'
|
|
20654
20732
|
};
|
|
20655
20733
|
});
|
|
20656
|
-
var StyledStrokeEnd = index$
|
|
20734
|
+
var StyledStrokeEnd = index$8(reactNative.View)(function (_ref6) {
|
|
20657
20735
|
var theme = _ref6.theme,
|
|
20658
20736
|
themeIntent = _ref6.themeIntent;
|
|
20659
20737
|
return {
|
|
@@ -20781,7 +20859,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
20781
20859
|
}, "".concat(value, "%")))));
|
|
20782
20860
|
};
|
|
20783
20861
|
|
|
20784
|
-
var StyledWrapper$
|
|
20862
|
+
var StyledWrapper$3 = index$8(reactNative.View)(function (_ref) {
|
|
20785
20863
|
var theme = _ref.theme;
|
|
20786
20864
|
return {
|
|
20787
20865
|
height: theme.__hd__.progress.sizes.barHeight,
|
|
@@ -20790,7 +20868,7 @@ var StyledWrapper$2 = index$7(reactNative.View)(function (_ref) {
|
|
|
20790
20868
|
overflow: 'hidden'
|
|
20791
20869
|
};
|
|
20792
20870
|
});
|
|
20793
|
-
var StyledInner = index$
|
|
20871
|
+
var StyledInner = index$8(reactNative.Animated.View)(function (_ref2) {
|
|
20794
20872
|
var theme = _ref2.theme,
|
|
20795
20873
|
themeIntent = _ref2.themeIntent;
|
|
20796
20874
|
return {
|
|
@@ -20836,7 +20914,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
20836
20914
|
outputRange: [999, 0],
|
|
20837
20915
|
extrapolate: 'clamp'
|
|
20838
20916
|
});
|
|
20839
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
20917
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$3, _extends$1({}, nativeProps, {
|
|
20840
20918
|
testID: testID,
|
|
20841
20919
|
style: style
|
|
20842
20920
|
}), /*#__PURE__*/React__default["default"].createElement(StyledInner, {
|
|
@@ -20860,13 +20938,47 @@ var Progress = {
|
|
|
20860
20938
|
Bar: ProgressBar
|
|
20861
20939
|
};
|
|
20862
20940
|
|
|
20863
|
-
var
|
|
20864
|
-
var
|
|
20941
|
+
var Slider = function Slider(_ref) {
|
|
20942
|
+
var _ref$minimumValue = _ref.minimumValue,
|
|
20943
|
+
minimumValue = _ref$minimumValue === void 0 ? 0 : _ref$minimumValue,
|
|
20944
|
+
_ref$maximumValue = _ref.maximumValue,
|
|
20945
|
+
maximumValue = _ref$maximumValue === void 0 ? 1 : _ref$maximumValue,
|
|
20946
|
+
_ref$step = _ref.step,
|
|
20947
|
+
step = _ref$step === void 0 ? 0 : _ref$step,
|
|
20948
|
+
_ref$value = _ref.value,
|
|
20949
|
+
value = _ref$value === void 0 ? 0 : _ref$value,
|
|
20950
|
+
onValueChange = _ref.onValueChange,
|
|
20951
|
+
onSlidingStart = _ref.onSlidingStart,
|
|
20952
|
+
onSlidingComplete = _ref.onSlidingComplete,
|
|
20953
|
+
_ref$disabled = _ref.disabled,
|
|
20954
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
20955
|
+
style = _ref.style,
|
|
20956
|
+
testID = _ref.testID;
|
|
20957
|
+
var theme = useTheme();
|
|
20958
|
+
return /*#__PURE__*/React__default["default"].createElement(RnSlider__default["default"], {
|
|
20959
|
+
minimumValue: minimumValue,
|
|
20960
|
+
maximumValue: maximumValue,
|
|
20961
|
+
step: step,
|
|
20962
|
+
value: value,
|
|
20963
|
+
onValueChange: onValueChange,
|
|
20964
|
+
onSlidingStart: onSlidingStart,
|
|
20965
|
+
onSlidingComplete: onSlidingComplete,
|
|
20966
|
+
disabled: disabled,
|
|
20967
|
+
minimumTrackTintColor: theme.__hd__.slider.colors.minimumTrackTint,
|
|
20968
|
+
thumbTintColor: theme.__hd__.slider.colors.thumbTint,
|
|
20969
|
+
maximumTrackTintColor: theme.__hd__.slider.colors.maximumTrackTint,
|
|
20970
|
+
style: style,
|
|
20971
|
+
testID: testID
|
|
20972
|
+
});
|
|
20973
|
+
};
|
|
20974
|
+
|
|
20975
|
+
var StyledView$1 = index$8(reactNative.View)();
|
|
20976
|
+
var StyledSpinnerContainer = index$8(reactNative.View)({
|
|
20865
20977
|
height: '100%',
|
|
20866
20978
|
justifyContent: 'center',
|
|
20867
20979
|
alignItems: 'center'
|
|
20868
20980
|
});
|
|
20869
|
-
var StyledSpinnerRow = index$
|
|
20981
|
+
var StyledSpinnerRow = index$8(reactNative.View)(function (_ref) {
|
|
20870
20982
|
var themePosition = _ref.themePosition,
|
|
20871
20983
|
_ref$themeSize = _ref.themeSize,
|
|
20872
20984
|
themeSize = _ref$themeSize === void 0 ? 'medium' : _ref$themeSize,
|
|
@@ -20876,7 +20988,7 @@ var StyledSpinnerRow = index$7(reactNative.View)(function (_ref) {
|
|
|
20876
20988
|
marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding[themeSize] : 0
|
|
20877
20989
|
};
|
|
20878
20990
|
});
|
|
20879
|
-
var StyledSpinnerDot = index$
|
|
20991
|
+
var StyledSpinnerDot = index$8(reactNative.View)(function (_ref2) {
|
|
20880
20992
|
var themePosition = _ref2.themePosition,
|
|
20881
20993
|
_ref2$themeSize = _ref2.themeSize,
|
|
20882
20994
|
themeSize = _ref2$themeSize === void 0 ? 'medium' : _ref2$themeSize,
|
|
@@ -20980,7 +21092,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
20980
21092
|
})));
|
|
20981
21093
|
};
|
|
20982
21094
|
|
|
20983
|
-
var Circle = index$
|
|
21095
|
+
var Circle = index$8(reactNative.View)(function (_ref) {
|
|
20984
21096
|
var theme = _ref.theme;
|
|
20985
21097
|
return {
|
|
20986
21098
|
height: theme.__hd__.radio.sizes.circle,
|
|
@@ -20992,7 +21104,7 @@ var Circle = index$7(reactNative.View)(function (_ref) {
|
|
|
20992
21104
|
justifyContent: 'center'
|
|
20993
21105
|
};
|
|
20994
21106
|
});
|
|
20995
|
-
var InnerCircle = index$
|
|
21107
|
+
var InnerCircle = index$8(reactNative.View)(function (_ref2) {
|
|
20996
21108
|
var theme = _ref2.theme;
|
|
20997
21109
|
return {
|
|
20998
21110
|
height: theme.__hd__.radio.sizes.innerCircle,
|
|
@@ -21001,7 +21113,7 @@ var InnerCircle = index$7(reactNative.View)(function (_ref2) {
|
|
|
21001
21113
|
backgroundColor: theme.__hd__.radio.colors.circle
|
|
21002
21114
|
};
|
|
21003
21115
|
});
|
|
21004
|
-
var Spacer = index$
|
|
21116
|
+
var Spacer = index$8(reactNative.View)(function (_ref3) {
|
|
21005
21117
|
var theme = _ref3.theme;
|
|
21006
21118
|
return {
|
|
21007
21119
|
marginTop: theme.__hd__.radio.space.groupTopMargin
|
|
@@ -21077,7 +21189,7 @@ var CompoundRadio = {
|
|
|
21077
21189
|
Group: RadioGroup
|
|
21078
21190
|
};
|
|
21079
21191
|
|
|
21080
|
-
var StyledHeading = index$
|
|
21192
|
+
var StyledHeading = index$8(reactNative.View)(function (_ref) {
|
|
21081
21193
|
var theme = _ref.theme;
|
|
21082
21194
|
return {
|
|
21083
21195
|
paddingVertical: theme.__hd__.sectionHeading.space.headingVerticalPadding,
|
|
@@ -21090,13 +21202,13 @@ var StyledHeading = index$7(reactNative.View)(function (_ref) {
|
|
|
21090
21202
|
justifyContent: 'space-between'
|
|
21091
21203
|
};
|
|
21092
21204
|
});
|
|
21093
|
-
var StyledIconWrapper = index$
|
|
21205
|
+
var StyledIconWrapper$1 = index$8(reactNative.View)(function (_ref2) {
|
|
21094
21206
|
var theme = _ref2.theme;
|
|
21095
21207
|
return {
|
|
21096
21208
|
marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
|
|
21097
21209
|
};
|
|
21098
21210
|
});
|
|
21099
|
-
var StyledWrapper$
|
|
21211
|
+
var StyledWrapper$2 = index$8(reactNative.View)(function () {
|
|
21100
21212
|
return {
|
|
21101
21213
|
display: 'flex',
|
|
21102
21214
|
flexDirection: 'row'
|
|
@@ -21130,7 +21242,7 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
21130
21242
|
return /*#__PURE__*/React__default["default"].createElement(StyledHeading, {
|
|
21131
21243
|
style: style,
|
|
21132
21244
|
testID: testID
|
|
21133
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
21245
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$2, null, /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper$1, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
21134
21246
|
icon: icon,
|
|
21135
21247
|
size: ICON_SIZE_MAP[fontSize],
|
|
21136
21248
|
intent: ICON_INTENT_MAP[intent]
|
|
@@ -21144,25 +21256,25 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
21144
21256
|
}, text)), rightChildren);
|
|
21145
21257
|
};
|
|
21146
21258
|
|
|
21147
|
-
var SectionSpacer = index$
|
|
21259
|
+
var SectionSpacer = index$8(reactNative.View)(function (_ref) {
|
|
21148
21260
|
var theme = _ref.theme;
|
|
21149
21261
|
return {
|
|
21150
21262
|
marginTop: theme.__hd__.select.space.sectionSpacing
|
|
21151
21263
|
};
|
|
21152
21264
|
});
|
|
21153
|
-
var OptionSpacer = index$
|
|
21265
|
+
var OptionSpacer = index$8(reactNative.View)(function (_ref2) {
|
|
21154
21266
|
var theme = _ref2.theme;
|
|
21155
21267
|
return {
|
|
21156
21268
|
marginTop: theme.__hd__.select.space.optionSpacing
|
|
21157
21269
|
};
|
|
21158
21270
|
});
|
|
21159
|
-
var FooterText = index$
|
|
21271
|
+
var FooterText = index$8(Typography.Text)(function (_ref3) {
|
|
21160
21272
|
var theme = _ref3.theme;
|
|
21161
21273
|
return {
|
|
21162
21274
|
color: theme.__hd__.select.colors.footerText
|
|
21163
21275
|
};
|
|
21164
21276
|
});
|
|
21165
|
-
var StyledSearchBar = index$
|
|
21277
|
+
var StyledSearchBar = index$8(reactNative.View)(function (_ref4) {
|
|
21166
21278
|
var theme = _ref4.theme;
|
|
21167
21279
|
return {
|
|
21168
21280
|
marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
|
|
@@ -21182,72 +21294,6 @@ var Footer = function Footer(_ref) {
|
|
|
21182
21294
|
}, label));
|
|
21183
21295
|
};
|
|
21184
21296
|
|
|
21185
|
-
var isSections = function isSections(options) {
|
|
21186
|
-
var firstOption = options[0];
|
|
21187
|
-
return firstOption !== undefined && firstOption.category !== undefined;
|
|
21188
|
-
};
|
|
21189
|
-
var toSections = function toSections(options) {
|
|
21190
|
-
if (isSections(options)) {
|
|
21191
|
-
return options;
|
|
21192
|
-
}
|
|
21193
|
-
|
|
21194
|
-
return [{
|
|
21195
|
-
category: '',
|
|
21196
|
-
data: options
|
|
21197
|
-
}];
|
|
21198
|
-
};
|
|
21199
|
-
var toFlatOptions = function toFlatOptions(options) {
|
|
21200
|
-
if (isSections(options)) {
|
|
21201
|
-
return options.flatMap(function (opt) {
|
|
21202
|
-
return opt.data;
|
|
21203
|
-
});
|
|
21204
|
-
}
|
|
21205
|
-
|
|
21206
|
-
return options;
|
|
21207
|
-
};
|
|
21208
|
-
var getScrollParams = function getScrollParams(value, sections) {
|
|
21209
|
-
var itemIndex = -1;
|
|
21210
|
-
var sectionIndex = sections.findIndex(function (section) {
|
|
21211
|
-
itemIndex = section.data.findIndex(function (opt) {
|
|
21212
|
-
return opt.value === value;
|
|
21213
|
-
});
|
|
21214
|
-
return itemIndex !== -1;
|
|
21215
|
-
});
|
|
21216
|
-
return {
|
|
21217
|
-
sectionIndex: sectionIndex < 0 ? 0 : sectionIndex,
|
|
21218
|
-
itemIndex: itemIndex < 0 ? 0 : itemIndex
|
|
21219
|
-
};
|
|
21220
|
-
};
|
|
21221
|
-
var useKeyboard = function useKeyboard() {
|
|
21222
|
-
var _useState = React.useState(false),
|
|
21223
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
21224
|
-
isKeyboardVisible = _useState2[0],
|
|
21225
|
-
setKeyboardVisible = _useState2[1];
|
|
21226
|
-
|
|
21227
|
-
var _useState3 = React.useState(0),
|
|
21228
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
21229
|
-
keyboardHeight = _useState4[0],
|
|
21230
|
-
setKeyboardHeight = _useState4[1];
|
|
21231
|
-
|
|
21232
|
-
React.useEffect(function () {
|
|
21233
|
-
var keyboardWillShowListener = reactNative.Keyboard.addListener('keyboardWillShow', function (e) {
|
|
21234
|
-
setKeyboardVisible(true);
|
|
21235
|
-
setKeyboardHeight(e.endCoordinates.height);
|
|
21236
|
-
});
|
|
21237
|
-
var keyboardWillHideListener = reactNative.Keyboard.addListener('keyboardWillHide', function () {
|
|
21238
|
-
setKeyboardVisible(false);
|
|
21239
|
-
});
|
|
21240
|
-
return function () {
|
|
21241
|
-
keyboardWillShowListener.remove();
|
|
21242
|
-
keyboardWillHideListener.remove();
|
|
21243
|
-
};
|
|
21244
|
-
}, []);
|
|
21245
|
-
return {
|
|
21246
|
-
isKeyboardVisible: isKeyboardVisible,
|
|
21247
|
-
keyboardHeight: keyboardHeight
|
|
21248
|
-
};
|
|
21249
|
-
};
|
|
21250
|
-
|
|
21251
21297
|
var StyledOptionList = function StyledOptionList(_ref) {
|
|
21252
21298
|
var keyExtractor = _ref.keyExtractor,
|
|
21253
21299
|
loading = _ref.loading,
|
|
@@ -21255,9 +21301,8 @@ var StyledOptionList = function StyledOptionList(_ref) {
|
|
|
21255
21301
|
onQueryChange = _ref.onQueryChange,
|
|
21256
21302
|
sections = _ref.sections,
|
|
21257
21303
|
renderItem = _ref.renderItem,
|
|
21258
|
-
|
|
21304
|
+
sectionListRef = _ref.sectionListRef;
|
|
21259
21305
|
var theme = useTheme$1();
|
|
21260
|
-
var sectionListRef = React.useRef(null);
|
|
21261
21306
|
|
|
21262
21307
|
var _useState = React.useState(false),
|
|
21263
21308
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -21276,11 +21321,6 @@ var StyledOptionList = function StyledOptionList(_ref) {
|
|
|
21276
21321
|
return setOnEndReachedCalled(true);
|
|
21277
21322
|
},
|
|
21278
21323
|
onScrollToIndexFailed: function onScrollToIndexFailed() {},
|
|
21279
|
-
onContentSizeChange: function onContentSizeChange() {
|
|
21280
|
-
var _sectionListRef$curre;
|
|
21281
|
-
|
|
21282
|
-
return sections.length && ((_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 ? void 0 : _sectionListRef$curre.scrollToLocation(scrollParams));
|
|
21283
|
-
},
|
|
21284
21324
|
onMomentumScrollBegin: function onMomentumScrollBegin() {
|
|
21285
21325
|
if (onEndReached && onEndReachedCalled && !loading) onEndReached();
|
|
21286
21326
|
setOnEndReachedCalled(false);
|
|
@@ -21307,7 +21347,7 @@ var StyledOptionList = function StyledOptionList(_ref) {
|
|
|
21307
21347
|
});
|
|
21308
21348
|
};
|
|
21309
21349
|
|
|
21310
|
-
var Option$
|
|
21350
|
+
var Option$2 = function Option(_ref) {
|
|
21311
21351
|
var text = _ref.text,
|
|
21312
21352
|
_ref$disabled = _ref.disabled,
|
|
21313
21353
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
@@ -21334,9 +21374,8 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
21334
21374
|
onQueryChange = _ref.onQueryChange,
|
|
21335
21375
|
sections = _ref.sections,
|
|
21336
21376
|
renderOption = _ref.renderOption,
|
|
21337
|
-
value = _ref.value
|
|
21338
|
-
|
|
21339
|
-
var scrollParams = getScrollParams(firstValue, sections);
|
|
21377
|
+
value = _ref.value,
|
|
21378
|
+
sectionListRef = _ref.sectionListRef;
|
|
21340
21379
|
|
|
21341
21380
|
var renderItem = function renderItem(info) {
|
|
21342
21381
|
var item = info.item;
|
|
@@ -21355,7 +21394,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
21355
21394
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
21356
21395
|
selected: selected,
|
|
21357
21396
|
onPress: onItemPress
|
|
21358
|
-
})) : /*#__PURE__*/React__default["default"].createElement(Option$
|
|
21397
|
+
})) : /*#__PURE__*/React__default["default"].createElement(Option$2, {
|
|
21359
21398
|
selected: selected,
|
|
21360
21399
|
text: item.text,
|
|
21361
21400
|
disabled: item.disabled,
|
|
@@ -21370,10 +21409,76 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
21370
21409
|
onQueryChange: onQueryChange,
|
|
21371
21410
|
sections: sections,
|
|
21372
21411
|
renderItem: renderItem,
|
|
21373
|
-
|
|
21412
|
+
sectionListRef: sectionListRef
|
|
21374
21413
|
});
|
|
21375
21414
|
};
|
|
21376
21415
|
|
|
21416
|
+
var isSections = function isSections(options) {
|
|
21417
|
+
var firstOption = options[0];
|
|
21418
|
+
return firstOption !== undefined && firstOption.category !== undefined;
|
|
21419
|
+
};
|
|
21420
|
+
var toSections = function toSections(options) {
|
|
21421
|
+
if (isSections(options)) {
|
|
21422
|
+
return options;
|
|
21423
|
+
}
|
|
21424
|
+
|
|
21425
|
+
return [{
|
|
21426
|
+
category: '',
|
|
21427
|
+
data: options
|
|
21428
|
+
}];
|
|
21429
|
+
};
|
|
21430
|
+
var toFlatOptions = function toFlatOptions(options) {
|
|
21431
|
+
if (isSections(options)) {
|
|
21432
|
+
return options.flatMap(function (opt) {
|
|
21433
|
+
return opt.data;
|
|
21434
|
+
});
|
|
21435
|
+
}
|
|
21436
|
+
|
|
21437
|
+
return options;
|
|
21438
|
+
};
|
|
21439
|
+
var getScrollParams = function getScrollParams(value, sections) {
|
|
21440
|
+
var itemIndex = -1;
|
|
21441
|
+
var sectionIndex = sections.findIndex(function (section) {
|
|
21442
|
+
itemIndex = section.data.findIndex(function (opt) {
|
|
21443
|
+
return opt.value === value;
|
|
21444
|
+
});
|
|
21445
|
+
return itemIndex !== -1;
|
|
21446
|
+
});
|
|
21447
|
+
return {
|
|
21448
|
+
sectionIndex: sectionIndex < 0 ? 0 : sectionIndex,
|
|
21449
|
+
itemIndex: itemIndex < 0 ? 0 : itemIndex
|
|
21450
|
+
};
|
|
21451
|
+
};
|
|
21452
|
+
var useKeyboard = function useKeyboard() {
|
|
21453
|
+
var _useState = React.useState(false),
|
|
21454
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
21455
|
+
isKeyboardVisible = _useState2[0],
|
|
21456
|
+
setKeyboardVisible = _useState2[1];
|
|
21457
|
+
|
|
21458
|
+
var _useState3 = React.useState(0),
|
|
21459
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
21460
|
+
keyboardHeight = _useState4[0],
|
|
21461
|
+
setKeyboardHeight = _useState4[1];
|
|
21462
|
+
|
|
21463
|
+
React.useEffect(function () {
|
|
21464
|
+
var keyboardWillShowListener = reactNative.Keyboard.addListener('keyboardWillShow', function (e) {
|
|
21465
|
+
setKeyboardVisible(true);
|
|
21466
|
+
setKeyboardHeight(e.endCoordinates.height);
|
|
21467
|
+
});
|
|
21468
|
+
var keyboardWillHideListener = reactNative.Keyboard.addListener('keyboardWillHide', function () {
|
|
21469
|
+
setKeyboardVisible(false);
|
|
21470
|
+
});
|
|
21471
|
+
return function () {
|
|
21472
|
+
keyboardWillShowListener.remove();
|
|
21473
|
+
keyboardWillHideListener.remove();
|
|
21474
|
+
};
|
|
21475
|
+
}, []);
|
|
21476
|
+
return {
|
|
21477
|
+
isKeyboardVisible: isKeyboardVisible,
|
|
21478
|
+
keyboardHeight: keyboardHeight
|
|
21479
|
+
};
|
|
21480
|
+
};
|
|
21481
|
+
|
|
21377
21482
|
function MultiSelect(_ref) {
|
|
21378
21483
|
var footerLabel = _ref.footerLabel,
|
|
21379
21484
|
label = _ref.label,
|
|
@@ -21386,6 +21491,7 @@ function MultiSelect(_ref) {
|
|
|
21386
21491
|
onQueryChange = _ref.onQueryChange,
|
|
21387
21492
|
options = _ref.options,
|
|
21388
21493
|
renderOption = _ref.renderOption,
|
|
21494
|
+
renderSelectedValue = _ref.renderSelectedValue,
|
|
21389
21495
|
query = _ref.query,
|
|
21390
21496
|
error = _ref.error,
|
|
21391
21497
|
_ref$editable = _ref.editable,
|
|
@@ -21411,6 +21517,7 @@ function MultiSelect(_ref) {
|
|
|
21411
21517
|
selectingValue = _useState4[0],
|
|
21412
21518
|
setSelectingValue = _useState4[1];
|
|
21413
21519
|
|
|
21520
|
+
var sectionListRef = React.useRef(null);
|
|
21414
21521
|
var sections = toSections(options);
|
|
21415
21522
|
var flatOptions = toFlatOptions(options);
|
|
21416
21523
|
var displayedValue = flatOptions.filter(function (opt) {
|
|
@@ -21438,7 +21545,10 @@ function MultiSelect(_ref) {
|
|
|
21438
21545
|
numberOfLines: numberOfLines,
|
|
21439
21546
|
pointerEvents: "none",
|
|
21440
21547
|
style: style,
|
|
21441
|
-
testID: testID
|
|
21548
|
+
testID: testID,
|
|
21549
|
+
renderInputValue: renderSelectedValue !== undefined ? function (props) {
|
|
21550
|
+
return renderSelectedValue(value, props);
|
|
21551
|
+
} : undefined
|
|
21442
21552
|
})))), /*#__PURE__*/React__default["default"].createElement(BottomSheet, {
|
|
21443
21553
|
open: open,
|
|
21444
21554
|
onRequestClose: function onRequestClose() {
|
|
@@ -21455,7 +21565,15 @@ function MultiSelect(_ref) {
|
|
|
21455
21565
|
setOpen(false);
|
|
21456
21566
|
onConfirm(selectingValue);
|
|
21457
21567
|
}
|
|
21458
|
-
})
|
|
21568
|
+
}),
|
|
21569
|
+
onAnimationEnd: function onAnimationEnd() {
|
|
21570
|
+
if (open === true) {
|
|
21571
|
+
var _sectionListRef$curre;
|
|
21572
|
+
|
|
21573
|
+
var scrollParams = getScrollParams(value === null || value === void 0 ? void 0 : value[0], sections);
|
|
21574
|
+
(_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 ? void 0 : _sectionListRef$curre.scrollToLocation(scrollParams);
|
|
21575
|
+
}
|
|
21576
|
+
}
|
|
21459
21577
|
}, onQueryChange && /*#__PURE__*/React__default["default"].createElement(StyledSearchBar, null, /*#__PURE__*/React__default["default"].createElement(TextInput, {
|
|
21460
21578
|
editable: true,
|
|
21461
21579
|
placeholder: "Search",
|
|
@@ -21469,11 +21587,12 @@ function MultiSelect(_ref) {
|
|
|
21469
21587
|
sections: sections,
|
|
21470
21588
|
renderOption: renderOption,
|
|
21471
21589
|
value: selectingValue,
|
|
21472
|
-
onPress: setSelectingValue
|
|
21590
|
+
onPress: setSelectingValue,
|
|
21591
|
+
sectionListRef: sectionListRef
|
|
21473
21592
|
})));
|
|
21474
21593
|
}
|
|
21475
21594
|
|
|
21476
|
-
var Option = function Option(_ref) {
|
|
21595
|
+
var Option$1 = function Option(_ref) {
|
|
21477
21596
|
var text = _ref.text,
|
|
21478
21597
|
_ref$disabled = _ref.disabled,
|
|
21479
21598
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
@@ -21499,8 +21618,8 @@ var OptionList = function OptionList(_ref) {
|
|
|
21499
21618
|
onQueryChange = _ref.onQueryChange,
|
|
21500
21619
|
sections = _ref.sections,
|
|
21501
21620
|
renderOption = _ref.renderOption,
|
|
21502
|
-
value = _ref.value
|
|
21503
|
-
|
|
21621
|
+
value = _ref.value,
|
|
21622
|
+
sectionListRef = _ref.sectionListRef;
|
|
21504
21623
|
|
|
21505
21624
|
var renderItem = function renderItem(info) {
|
|
21506
21625
|
var item = info.item;
|
|
@@ -21517,7 +21636,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
21517
21636
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
21518
21637
|
selected: selected,
|
|
21519
21638
|
onPress: onItemPress
|
|
21520
|
-
})) : /*#__PURE__*/React__default["default"].createElement(Option, {
|
|
21639
|
+
})) : /*#__PURE__*/React__default["default"].createElement(Option$1, {
|
|
21521
21640
|
selected: selected,
|
|
21522
21641
|
text: item.text,
|
|
21523
21642
|
disabled: item.disabled,
|
|
@@ -21532,7 +21651,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
21532
21651
|
onQueryChange: onQueryChange,
|
|
21533
21652
|
sections: sections,
|
|
21534
21653
|
renderItem: renderItem,
|
|
21535
|
-
|
|
21654
|
+
sectionListRef: sectionListRef
|
|
21536
21655
|
});
|
|
21537
21656
|
};
|
|
21538
21657
|
|
|
@@ -21549,6 +21668,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
21549
21668
|
onQueryChange = _ref.onQueryChange,
|
|
21550
21669
|
options = _ref.options,
|
|
21551
21670
|
renderOption = _ref.renderOption,
|
|
21671
|
+
renderSelectedValue = _ref.renderSelectedValue,
|
|
21552
21672
|
query = _ref.query,
|
|
21553
21673
|
error = _ref.error,
|
|
21554
21674
|
_ref$editable = _ref.editable,
|
|
@@ -21569,6 +21689,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
21569
21689
|
open = _useState2[0],
|
|
21570
21690
|
setOpen = _useState2[1];
|
|
21571
21691
|
|
|
21692
|
+
var sectionListRef = React.useRef(null);
|
|
21572
21693
|
var sections = toSections(options);
|
|
21573
21694
|
var flatOptions = toFlatOptions(options);
|
|
21574
21695
|
var displayedValue = (_flatOptions$find = flatOptions.find(function (opt) {
|
|
@@ -21594,7 +21715,10 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
21594
21715
|
numberOfLines: numberOfLines,
|
|
21595
21716
|
pointerEvents: "none",
|
|
21596
21717
|
style: style,
|
|
21597
|
-
testID: testID
|
|
21718
|
+
testID: testID,
|
|
21719
|
+
renderInputValue: renderSelectedValue !== undefined ? function (props) {
|
|
21720
|
+
return renderSelectedValue(value, props);
|
|
21721
|
+
} : undefined
|
|
21598
21722
|
})))), /*#__PURE__*/React__default["default"].createElement(BottomSheet, {
|
|
21599
21723
|
open: open,
|
|
21600
21724
|
onRequestClose: function onRequestClose() {
|
|
@@ -21604,6 +21728,14 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
21604
21728
|
header: label,
|
|
21605
21729
|
style: {
|
|
21606
21730
|
paddingBottom: isKeyboardVisible ? keyboardHeight : 0
|
|
21731
|
+
},
|
|
21732
|
+
onAnimationEnd: function onAnimationEnd() {
|
|
21733
|
+
if (open === true) {
|
|
21734
|
+
var _sectionListRef$curre;
|
|
21735
|
+
|
|
21736
|
+
var scrollParams = getScrollParams(value, sections);
|
|
21737
|
+
(_sectionListRef$curre = sectionListRef.current) === null || _sectionListRef$curre === void 0 ? void 0 : _sectionListRef$curre.scrollToLocation(scrollParams);
|
|
21738
|
+
}
|
|
21607
21739
|
}
|
|
21608
21740
|
}, onQueryChange && /*#__PURE__*/React__default["default"].createElement(StyledSearchBar, null, /*#__PURE__*/React__default["default"].createElement(TextInput, {
|
|
21609
21741
|
editable: true,
|
|
@@ -21621,21 +21753,22 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
21621
21753
|
onPress: function onPress(selectedValue) {
|
|
21622
21754
|
setOpen(false);
|
|
21623
21755
|
onConfirm(selectedValue);
|
|
21624
|
-
}
|
|
21756
|
+
},
|
|
21757
|
+
sectionListRef: sectionListRef
|
|
21625
21758
|
})));
|
|
21626
21759
|
};
|
|
21627
21760
|
|
|
21628
|
-
var index$
|
|
21761
|
+
var index$4 = Object.assign(SingleSelect, {
|
|
21629
21762
|
Multi: MultiSelect
|
|
21630
21763
|
});
|
|
21631
21764
|
|
|
21632
|
-
var StyledWrapper = index$
|
|
21765
|
+
var StyledWrapper$1 = index$8(reactNative.View)(function (_ref) {
|
|
21633
21766
|
var theme = _ref.theme,
|
|
21634
21767
|
themeVariant = _ref.themeVariant,
|
|
21635
21768
|
themeSize = _ref.themeSize;
|
|
21636
21769
|
return {
|
|
21637
|
-
height: theme.__hd__["switch"].heights[themeSize],
|
|
21638
|
-
width: theme.__hd__["switch"].widths[themeSize],
|
|
21770
|
+
height: theme.__hd__["switch"].sizes.heights[themeSize],
|
|
21771
|
+
width: theme.__hd__["switch"].sizes.widths[themeSize],
|
|
21639
21772
|
paddingHorizontal: theme.__hd__["switch"].spaces[themeSize],
|
|
21640
21773
|
borderRadius: theme.__hd__["switch"].radii.rounded,
|
|
21641
21774
|
backgroundColor: theme.__hd__["switch"].colors.backgroundColors[themeVariant],
|
|
@@ -21643,17 +21776,118 @@ var StyledWrapper = index$7(reactNative.View)(function (_ref) {
|
|
|
21643
21776
|
justifyContent: 'center'
|
|
21644
21777
|
};
|
|
21645
21778
|
});
|
|
21646
|
-
var StyledKnot = index$
|
|
21779
|
+
var StyledKnot = index$8(reactNative.Animated.View)(function (_ref2) {
|
|
21647
21780
|
var theme = _ref2.theme,
|
|
21648
21781
|
themeSize = _ref2.themeSize;
|
|
21649
21782
|
return {
|
|
21650
|
-
width: theme.__hd__["switch"].
|
|
21651
|
-
height: theme.__hd__["switch"].
|
|
21783
|
+
width: theme.__hd__["switch"].sizes.thumbs[themeSize],
|
|
21784
|
+
height: theme.__hd__["switch"].sizes.thumbs[themeSize],
|
|
21652
21785
|
backgroundColor: theme.__hd__["switch"].colors.thumb,
|
|
21653
21786
|
borderRadius: theme.__hd__["switch"].radii.rounded
|
|
21654
21787
|
};
|
|
21655
21788
|
});
|
|
21656
21789
|
|
|
21790
|
+
var StyledWrapper = index$8(reactNative.View)(function (_ref) {
|
|
21791
|
+
var theme = _ref.theme;
|
|
21792
|
+
return {
|
|
21793
|
+
flexDirection: 'row',
|
|
21794
|
+
width: '100%',
|
|
21795
|
+
height: theme.__hd__["switch"].sizes.selector.height,
|
|
21796
|
+
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
21797
|
+
backgroundColor: theme.__hd__["switch"].colors.selector.background,
|
|
21798
|
+
padding: theme.__hd__["switch"].spaces.selector.wrapperPadding
|
|
21799
|
+
};
|
|
21800
|
+
});
|
|
21801
|
+
var StyledTextWrapper = index$8(reactNative.View)(function (_ref2) {
|
|
21802
|
+
var theme = _ref2.theme;
|
|
21803
|
+
return {
|
|
21804
|
+
flex: 1,
|
|
21805
|
+
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
21806
|
+
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground,
|
|
21807
|
+
justifyContent: 'center',
|
|
21808
|
+
alignItems: 'center'
|
|
21809
|
+
};
|
|
21810
|
+
});
|
|
21811
|
+
var StyledIconWrapper = index$8(reactNative.View)(function (_ref3) {
|
|
21812
|
+
var theme = _ref3.theme;
|
|
21813
|
+
return {
|
|
21814
|
+
paddingHorizontal: theme.__hd__["switch"].spaces.selector.iconPadding,
|
|
21815
|
+
justifyContent: 'center',
|
|
21816
|
+
alignItems: 'center'
|
|
21817
|
+
};
|
|
21818
|
+
});
|
|
21819
|
+
|
|
21820
|
+
var OptionContent = function OptionContent(_ref) {
|
|
21821
|
+
var content = _ref.content,
|
|
21822
|
+
badge = _ref.badge;
|
|
21823
|
+
var theme = useTheme();
|
|
21824
|
+
|
|
21825
|
+
if (!badge) {
|
|
21826
|
+
return content;
|
|
21827
|
+
}
|
|
21828
|
+
|
|
21829
|
+
if (badge.type === 'status') {
|
|
21830
|
+
return /*#__PURE__*/React__default["default"].createElement(Badge$1.Status, {
|
|
21831
|
+
visible: true,
|
|
21832
|
+
style: {
|
|
21833
|
+
paddingHorizontal: theme.space.small
|
|
21834
|
+
},
|
|
21835
|
+
testID: "selector-switch-status-badge"
|
|
21836
|
+
}, content);
|
|
21837
|
+
}
|
|
21838
|
+
|
|
21839
|
+
return content;
|
|
21840
|
+
};
|
|
21841
|
+
|
|
21842
|
+
var Option = function Option(_ref2) {
|
|
21843
|
+
var text = _ref2.text,
|
|
21844
|
+
icon = _ref2.icon,
|
|
21845
|
+
badge = _ref2.badge,
|
|
21846
|
+
selected = _ref2.selected;
|
|
21847
|
+
|
|
21848
|
+
if (selected) {
|
|
21849
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledTextWrapper, null, /*#__PURE__*/React__default["default"].createElement(OptionContent, {
|
|
21850
|
+
content: /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
|
|
21851
|
+
fontSize: "large",
|
|
21852
|
+
intent: "inverted"
|
|
21853
|
+
}, text),
|
|
21854
|
+
badge: badge
|
|
21855
|
+
}));
|
|
21856
|
+
}
|
|
21857
|
+
|
|
21858
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper, null, /*#__PURE__*/React__default["default"].createElement(OptionContent, {
|
|
21859
|
+
content: /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
21860
|
+
icon: icon
|
|
21861
|
+
}),
|
|
21862
|
+
badge: badge
|
|
21863
|
+
}));
|
|
21864
|
+
};
|
|
21865
|
+
|
|
21866
|
+
var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
21867
|
+
var options = _ref.options,
|
|
21868
|
+
value = _ref.value,
|
|
21869
|
+
_onPress = _ref.onPress,
|
|
21870
|
+
style = _ref.style,
|
|
21871
|
+
testID = _ref.testID;
|
|
21872
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
|
|
21873
|
+
onPress: function onPress() {
|
|
21874
|
+
return _onPress(value);
|
|
21875
|
+
},
|
|
21876
|
+
testID: testID
|
|
21877
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
21878
|
+
style: style
|
|
21879
|
+
}, options.map(function (opt, index) {
|
|
21880
|
+
return (
|
|
21881
|
+
/*#__PURE__*/
|
|
21882
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
21883
|
+
React__default["default"].createElement(Option, _extends$1({}, opt, {
|
|
21884
|
+
selected: opt.value === value,
|
|
21885
|
+
key: index
|
|
21886
|
+
}))
|
|
21887
|
+
);
|
|
21888
|
+
})));
|
|
21889
|
+
};
|
|
21890
|
+
|
|
21657
21891
|
var getVariant = function getVariant(_ref) {
|
|
21658
21892
|
var disabled = _ref.disabled,
|
|
21659
21893
|
checked = _ref.checked;
|
|
@@ -21680,7 +21914,7 @@ var Switch = function Switch(_ref2) {
|
|
|
21680
21914
|
disabled: disabled,
|
|
21681
21915
|
checked: checked
|
|
21682
21916
|
});
|
|
21683
|
-
var offset = checked ? theme.__hd__["switch"].widths[size] - theme.__hd__["switch"].
|
|
21917
|
+
var offset = checked ? (theme.__hd__["switch"].sizes.widths[size] - theme.__hd__["switch"].sizes.thumbs[size]) / 2 + theme.__hd__["switch"].sizes.thumbs[size] / 2 : 0;
|
|
21684
21918
|
|
|
21685
21919
|
var _useState = React.useState(function () {
|
|
21686
21920
|
return new reactNative.Animated.Value(offset);
|
|
@@ -21699,7 +21933,7 @@ var Switch = function Switch(_ref2) {
|
|
|
21699
21933
|
testID: testID,
|
|
21700
21934
|
onPress: onPress,
|
|
21701
21935
|
disabled: disabled
|
|
21702
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
21936
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$1, {
|
|
21703
21937
|
themeVariant: variant,
|
|
21704
21938
|
themeSize: size,
|
|
21705
21939
|
style: style
|
|
@@ -21711,12 +21945,16 @@ var Switch = function Switch(_ref2) {
|
|
|
21711
21945
|
})));
|
|
21712
21946
|
};
|
|
21713
21947
|
|
|
21948
|
+
var index$3 = Object.assign(Switch, {
|
|
21949
|
+
Selector: SelectorSwitch
|
|
21950
|
+
});
|
|
21951
|
+
|
|
21714
21952
|
var AnimatedPagerView = reactNative.Animated.createAnimatedComponent(PagerView__default["default"]);
|
|
21715
|
-
var TabContainer$1 = index$
|
|
21953
|
+
var TabContainer$1 = index$8(reactNative.View)({
|
|
21716
21954
|
flex: 1,
|
|
21717
21955
|
overflow: 'hidden'
|
|
21718
21956
|
});
|
|
21719
|
-
var HeaderTabWrapper$1 = index$
|
|
21957
|
+
var HeaderTabWrapper$1 = index$8(reactNative.View)(function (_ref) {
|
|
21720
21958
|
var theme = _ref.theme,
|
|
21721
21959
|
themeInsets = _ref.themeInsets;
|
|
21722
21960
|
return {
|
|
@@ -21725,10 +21963,10 @@ var HeaderTabWrapper$1 = index$7(reactNative.View)(function (_ref) {
|
|
|
21725
21963
|
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
|
|
21726
21964
|
};
|
|
21727
21965
|
});
|
|
21728
|
-
var HeaderTab = index$
|
|
21966
|
+
var HeaderTab = index$8(reactNative.View)({
|
|
21729
21967
|
flexDirection: 'row'
|
|
21730
21968
|
});
|
|
21731
|
-
var HeaderTabItem$1 = index$
|
|
21969
|
+
var HeaderTabItem$1 = index$8(reactNative.View)(function (_ref2) {
|
|
21732
21970
|
var theme = _ref2.theme;
|
|
21733
21971
|
return {
|
|
21734
21972
|
flex: 1,
|
|
@@ -21736,13 +21974,13 @@ var HeaderTabItem$1 = index$7(reactNative.View)(function (_ref2) {
|
|
|
21736
21974
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
21737
21975
|
};
|
|
21738
21976
|
});
|
|
21739
|
-
var ContentWrapper$1 = index$
|
|
21977
|
+
var ContentWrapper$1 = index$8(AnimatedPagerView)({
|
|
21740
21978
|
flex: 1
|
|
21741
21979
|
});
|
|
21742
|
-
var TabScreen$1 = index$
|
|
21980
|
+
var TabScreen$1 = index$8(reactNative.View)({
|
|
21743
21981
|
flex: 1
|
|
21744
21982
|
});
|
|
21745
|
-
var StyledIndicator = index$
|
|
21983
|
+
var StyledIndicator = index$8(reactNative.Animated.View)(function (_ref3) {
|
|
21746
21984
|
var theme = _ref3.theme,
|
|
21747
21985
|
themeWidth = _ref3.themeWidth;
|
|
21748
21986
|
return {
|
|
@@ -21753,7 +21991,7 @@ var StyledIndicator = index$7(reactNative.Animated.View)(function (_ref3) {
|
|
|
21753
21991
|
bottom: 0
|
|
21754
21992
|
};
|
|
21755
21993
|
});
|
|
21756
|
-
var StyledBadgeWrapper = index$
|
|
21994
|
+
var StyledBadgeWrapper = index$8(reactNative.View)({
|
|
21757
21995
|
flexDirection: 'row',
|
|
21758
21996
|
alignItems: 'center'
|
|
21759
21997
|
});
|
|
@@ -21779,17 +22017,17 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
21779
22017
|
});
|
|
21780
22018
|
};
|
|
21781
22019
|
|
|
21782
|
-
var TabScreen = index$
|
|
22020
|
+
var TabScreen = index$8(reactNative.View)({
|
|
21783
22021
|
flex: 1
|
|
21784
22022
|
});
|
|
21785
|
-
var TabContainer = index$
|
|
22023
|
+
var TabContainer = index$8(reactNative.View)({
|
|
21786
22024
|
flex: 1,
|
|
21787
22025
|
overflow: 'hidden'
|
|
21788
22026
|
});
|
|
21789
|
-
var ContentWrapper = index$
|
|
22027
|
+
var ContentWrapper = index$8(PagerView__default["default"])({
|
|
21790
22028
|
flex: 1
|
|
21791
22029
|
});
|
|
21792
|
-
var HeaderTabWrapper = index$
|
|
22030
|
+
var HeaderTabWrapper = index$8(reactNative.View)(function (_ref) {
|
|
21793
22031
|
var theme = _ref.theme,
|
|
21794
22032
|
themeInsets = _ref.themeInsets;
|
|
21795
22033
|
return {
|
|
@@ -21798,7 +22036,7 @@ var HeaderTabWrapper = index$7(reactNative.View)(function (_ref) {
|
|
|
21798
22036
|
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
|
|
21799
22037
|
};
|
|
21800
22038
|
});
|
|
21801
|
-
var HeaderTabItem = index$
|
|
22039
|
+
var HeaderTabItem = index$8(reactNative.Animated.View)(function (_ref2) {
|
|
21802
22040
|
var theme = _ref2.theme,
|
|
21803
22041
|
isFirstItem = _ref2.isFirstItem;
|
|
21804
22042
|
return {
|
|
@@ -21806,13 +22044,13 @@ var HeaderTabItem = index$7(reactNative.Animated.View)(function (_ref2) {
|
|
|
21806
22044
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
21807
22045
|
};
|
|
21808
22046
|
});
|
|
21809
|
-
var HeaderTabItemOutlineWrapper = index$
|
|
22047
|
+
var HeaderTabItemOutlineWrapper = index$8(reactNative.View)(function (_ref3) {
|
|
21810
22048
|
var theme = _ref3.theme;
|
|
21811
22049
|
return _objectSpread2({
|
|
21812
22050
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
21813
22051
|
}, reactNative.StyleSheet.absoluteFillObject);
|
|
21814
22052
|
});
|
|
21815
|
-
var HeaderTabItemOutline = index$
|
|
22053
|
+
var HeaderTabItemOutline = index$8(reactNative.Animated.View)(function (_ref4) {
|
|
21816
22054
|
var theme = _ref4.theme,
|
|
21817
22055
|
themeActive = _ref4.themeActive;
|
|
21818
22056
|
return {
|
|
@@ -21820,7 +22058,7 @@ var HeaderTabItemOutline = index$7(reactNative.Animated.View)(function (_ref4) {
|
|
|
21820
22058
|
backgroundColor: themeActive ? theme.__hd__.tabs.colors.activeBackground : undefined
|
|
21821
22059
|
};
|
|
21822
22060
|
});
|
|
21823
|
-
var HeaderTabItemWrapper = index$
|
|
22061
|
+
var HeaderTabItemWrapper = index$8(reactNative.View)(function (_ref5) {
|
|
21824
22062
|
var theme = _ref5.theme;
|
|
21825
22063
|
return {
|
|
21826
22064
|
paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
|
|
@@ -21918,7 +22156,8 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
21918
22156
|
_ref2$lazy = _ref2.lazy,
|
|
21919
22157
|
lazy = _ref2$lazy === void 0 ? false : _ref2$lazy,
|
|
21920
22158
|
_ref2$lazyPreloadDist = _ref2.lazyPreloadDistance,
|
|
21921
|
-
lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist
|
|
22159
|
+
lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist,
|
|
22160
|
+
componentTestID = _ref2.testID;
|
|
21922
22161
|
var flatListRef = React__default["default"].useRef(null);
|
|
21923
22162
|
var pagerViewRef = React__default["default"].useRef(null);
|
|
21924
22163
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
@@ -21953,10 +22192,12 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
21953
22192
|
};
|
|
21954
22193
|
}, [selectedTabIndex]);
|
|
21955
22194
|
return /*#__PURE__*/React__default["default"].createElement(TabContainer, {
|
|
21956
|
-
style: containerStyle
|
|
22195
|
+
style: containerStyle,
|
|
22196
|
+
testID: componentTestID
|
|
21957
22197
|
}, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper, {
|
|
21958
22198
|
themeInsets: insets,
|
|
21959
|
-
style: barStyle
|
|
22199
|
+
style: barStyle,
|
|
22200
|
+
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
21960
22201
|
}, /*#__PURE__*/React__default["default"].createElement(reactNative.FlatList, {
|
|
21961
22202
|
ref: flatListRef,
|
|
21962
22203
|
horizontal: true,
|
|
@@ -22079,7 +22320,8 @@ var Tabs = function Tabs(_ref2) {
|
|
|
22079
22320
|
_ref2$lazy = _ref2.lazy,
|
|
22080
22321
|
lazy = _ref2$lazy === void 0 ? false : _ref2$lazy,
|
|
22081
22322
|
_ref2$lazyPreloadDist = _ref2.lazyPreloadDistance,
|
|
22082
|
-
lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist
|
|
22323
|
+
lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist,
|
|
22324
|
+
componentTestID = _ref2.testID;
|
|
22083
22325
|
var theme = useTheme$1();
|
|
22084
22326
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
22085
22327
|
var pagerViewRef = React__default["default"].useRef(null);
|
|
@@ -22102,10 +22344,12 @@ var Tabs = function Tabs(_ref2) {
|
|
|
22102
22344
|
}
|
|
22103
22345
|
}, [selectedTabIndex]);
|
|
22104
22346
|
return /*#__PURE__*/React__default["default"].createElement(TabContainer$1, {
|
|
22105
|
-
style: containerStyle
|
|
22347
|
+
style: containerStyle,
|
|
22348
|
+
testID: componentTestID
|
|
22106
22349
|
}, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper$1, {
|
|
22107
22350
|
themeInsets: insets,
|
|
22108
|
-
style: barStyle
|
|
22351
|
+
style: barStyle,
|
|
22352
|
+
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
22109
22353
|
}, /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HeaderTab, {
|
|
22110
22354
|
onLayout: function onLayout(e) {
|
|
22111
22355
|
var width = e.nativeEvent.layout.width;
|
|
@@ -22184,7 +22428,7 @@ var index$2 = Object.assign(Tabs, {
|
|
|
22184
22428
|
Scroll: ScrollableTab
|
|
22185
22429
|
});
|
|
22186
22430
|
|
|
22187
|
-
var StyledView = index$
|
|
22431
|
+
var StyledView = index$8(reactNative.View)(function (_ref) {
|
|
22188
22432
|
var themeIntent = _ref.themeIntent,
|
|
22189
22433
|
theme = _ref.theme;
|
|
22190
22434
|
return {
|
|
@@ -22196,7 +22440,7 @@ var StyledView = index$7(reactNative.View)(function (_ref) {
|
|
|
22196
22440
|
backgroundColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")]
|
|
22197
22441
|
};
|
|
22198
22442
|
});
|
|
22199
|
-
var StyledText = index$
|
|
22443
|
+
var StyledText = index$8(reactNative.Text)(function (_ref2) {
|
|
22200
22444
|
var themeIntent = _ref2.themeIntent,
|
|
22201
22445
|
theme = _ref2.theme;
|
|
22202
22446
|
return {
|
|
@@ -22286,7 +22530,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
22286
22530
|
}) : null);
|
|
22287
22531
|
};
|
|
22288
22532
|
|
|
22289
|
-
var StyledPickerWrapper = index$
|
|
22533
|
+
var StyledPickerWrapper = index$8(reactNative.View)(function (_ref) {
|
|
22290
22534
|
var theme = _ref.theme;
|
|
22291
22535
|
return {
|
|
22292
22536
|
height: theme.__hd__.timePicker.sizes.height
|
|
@@ -22386,7 +22630,7 @@ var TimePicker = function TimePicker(props) {
|
|
|
22386
22630
|
return /*#__PURE__*/React__default["default"].createElement(TimePickerAndroid, props);
|
|
22387
22631
|
};
|
|
22388
22632
|
|
|
22389
|
-
var ToastContainerWrapper = index$
|
|
22633
|
+
var ToastContainerWrapper = index$8(reactNative.View)(function (_ref) {
|
|
22390
22634
|
var theme = _ref.theme,
|
|
22391
22635
|
position = _ref.position;
|
|
22392
22636
|
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
@@ -22396,7 +22640,7 @@ var ToastContainerWrapper = index$7(reactNative.View)(function (_ref) {
|
|
|
22396
22640
|
elevation: 9999
|
|
22397
22641
|
});
|
|
22398
22642
|
});
|
|
22399
|
-
var Container = index$
|
|
22643
|
+
var Container = index$8(reactNative.Animated.View)(function (_ref2) {
|
|
22400
22644
|
var theme = _ref2.theme,
|
|
22401
22645
|
themeVariant = _ref2.themeVariant,
|
|
22402
22646
|
themeIntent = _ref2.themeIntent;
|
|
@@ -22412,21 +22656,21 @@ var Container = index$7(reactNative.Animated.View)(function (_ref2) {
|
|
|
22412
22656
|
elevation: theme.__hd__.toast.shadows.elevation
|
|
22413
22657
|
};
|
|
22414
22658
|
});
|
|
22415
|
-
var IconContainer = index$
|
|
22659
|
+
var IconContainer = index$8(reactNative.View)(function (_ref3) {
|
|
22416
22660
|
var theme = _ref3.theme;
|
|
22417
22661
|
return {
|
|
22418
22662
|
alignItems: 'center',
|
|
22419
22663
|
paddingLeft: theme.__hd__.toast.space.iconLeftPadding
|
|
22420
22664
|
};
|
|
22421
22665
|
});
|
|
22422
|
-
var TextContainer = index$
|
|
22666
|
+
var TextContainer = index$8(reactNative.View)(function (_ref4) {
|
|
22423
22667
|
var theme = _ref4.theme;
|
|
22424
22668
|
return {
|
|
22425
22669
|
paddingHorizontal: theme.__hd__.toast.space.textHorizontalPadding,
|
|
22426
22670
|
flex: 1
|
|
22427
22671
|
};
|
|
22428
22672
|
});
|
|
22429
|
-
var ContentContainer = index$
|
|
22673
|
+
var ContentContainer = index$8(reactNative.View)(function (_ref5) {
|
|
22430
22674
|
var theme = _ref5.theme,
|
|
22431
22675
|
showDivider = _ref5.showDivider;
|
|
22432
22676
|
return {
|
|
@@ -22437,7 +22681,7 @@ var ContentContainer = index$7(reactNative.View)(function (_ref5) {
|
|
|
22437
22681
|
flexDirection: 'row'
|
|
22438
22682
|
};
|
|
22439
22683
|
});
|
|
22440
|
-
var CTAWrapper = index$
|
|
22684
|
+
var CTAWrapper = index$8(reactNative.TouchableOpacity)(function (_ref6) {
|
|
22441
22685
|
var theme = _ref6.theme;
|
|
22442
22686
|
return {
|
|
22443
22687
|
paddingHorizontal: theme.__hd__.toast.space.ctaPadding,
|
|
@@ -22698,7 +22942,7 @@ var Toast = {
|
|
|
22698
22942
|
useToast: useToast
|
|
22699
22943
|
};
|
|
22700
22944
|
|
|
22701
|
-
var ToolbarWrapper = index$
|
|
22945
|
+
var ToolbarWrapper = index$8(reactNative.View)(function (_ref) {
|
|
22702
22946
|
var theme = _ref.theme;
|
|
22703
22947
|
return {
|
|
22704
22948
|
position: 'absolute',
|
|
@@ -22722,7 +22966,7 @@ var alignment = {
|
|
|
22722
22966
|
center: 'center',
|
|
22723
22967
|
right: 'flex-end'
|
|
22724
22968
|
};
|
|
22725
|
-
var ToolbarGroupWrapper = index$
|
|
22969
|
+
var ToolbarGroupWrapper = index$8(reactNative.View)(function (_ref2) {
|
|
22726
22970
|
var align = _ref2.align;
|
|
22727
22971
|
return {
|
|
22728
22972
|
flex: 1,
|
|
@@ -22731,7 +22975,7 @@ var ToolbarGroupWrapper = index$7(reactNative.View)(function (_ref2) {
|
|
|
22731
22975
|
alignItems: 'center'
|
|
22732
22976
|
};
|
|
22733
22977
|
});
|
|
22734
|
-
var ToolbarItemWrapper = index$
|
|
22978
|
+
var ToolbarItemWrapper = index$8(reactNative.TouchableOpacity)(function (_ref3) {
|
|
22735
22979
|
var theme = _ref3.theme;
|
|
22736
22980
|
return {
|
|
22737
22981
|
paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
|
|
@@ -22811,7 +23055,7 @@ var ToolbarEvents;
|
|
|
22811
23055
|
var emitter = new events.EventEmitter();
|
|
22812
23056
|
emitter.setMaxListeners(20);
|
|
22813
23057
|
|
|
22814
|
-
var StyledToolbarButton = index$
|
|
23058
|
+
var StyledToolbarButton = index$8(reactNative.TouchableOpacity)(function (_ref) {
|
|
22815
23059
|
var theme = _ref.theme,
|
|
22816
23060
|
selected = _ref.selected;
|
|
22817
23061
|
return {
|
|
@@ -22822,7 +23066,7 @@ var StyledToolbarButton = index$7(reactNative.TouchableOpacity)(function (_ref)
|
|
|
22822
23066
|
backgroundColor: selected ? theme.__hd__.richTextEditor.colors.toolbarButtonSelectedBackground : undefined
|
|
22823
23067
|
};
|
|
22824
23068
|
});
|
|
22825
|
-
var StyledToolbar = index$
|
|
23069
|
+
var StyledToolbar = index$8(reactNative.View)(function (_ref2) {
|
|
22826
23070
|
var theme = _ref2.theme;
|
|
22827
23071
|
return {
|
|
22828
23072
|
flexDirection: 'row',
|
|
@@ -22833,7 +23077,7 @@ var StyledToolbar = index$7(reactNative.View)(function (_ref2) {
|
|
|
22833
23077
|
paddingHorizontal: theme.__hd__.richTextEditor.space.toolbarHorizontalPadding
|
|
22834
23078
|
};
|
|
22835
23079
|
});
|
|
22836
|
-
var StyledSeparator = index$
|
|
23080
|
+
var StyledSeparator = index$8(reactNative.View)(function (_ref3) {
|
|
22837
23081
|
var theme = _ref3.theme;
|
|
22838
23082
|
return {
|
|
22839
23083
|
width: theme.__hd__.richTextEditor.sizes.toolbarSeparatorWidth,
|
|
@@ -40804,13 +41048,13 @@ function checkDCE() {
|
|
|
40804
41048
|
});
|
|
40805
41049
|
})(lib);
|
|
40806
41050
|
|
|
40807
|
-
index$
|
|
41051
|
+
index$8(reactNative.View)(function (_ref) {
|
|
40808
41052
|
var theme = _ref.theme;
|
|
40809
41053
|
return {
|
|
40810
41054
|
marginBottom: theme.__hd__.richTextEditor.space.wrapperMarginBottom
|
|
40811
41055
|
};
|
|
40812
41056
|
});
|
|
40813
|
-
var StyledWebView = index$
|
|
41057
|
+
var StyledWebView = index$8(reactNativeWebview.WebView)(function (_ref2) {
|
|
40814
41058
|
var height = _ref2.height,
|
|
40815
41059
|
theme = _ref2.theme;
|
|
40816
41060
|
return {
|
|
@@ -41073,25 +41317,27 @@ exports.BottomSheet = BottomSheet;
|
|
|
41073
41317
|
exports.Box = Box;
|
|
41074
41318
|
exports.Button = CompoundButton;
|
|
41075
41319
|
exports.Calendar = Calendar;
|
|
41076
|
-
exports.Card = index$
|
|
41320
|
+
exports.Card = index$7;
|
|
41077
41321
|
exports.Checkbox = Checkbox;
|
|
41078
41322
|
exports.Collapse = Collapse;
|
|
41079
41323
|
exports.ContentNavigator = ContentNavigator;
|
|
41080
41324
|
exports.DatePicker = DatePicker;
|
|
41081
41325
|
exports.Divider = Divider;
|
|
41082
|
-
exports.Drawer = index$
|
|
41326
|
+
exports.Drawer = index$6;
|
|
41083
41327
|
exports.Empty = Empty;
|
|
41084
|
-
exports.FAB = index$
|
|
41328
|
+
exports.FAB = index$5;
|
|
41085
41329
|
exports.Icon = Icon;
|
|
41330
|
+
exports.Image = Image;
|
|
41086
41331
|
exports.List = List;
|
|
41087
41332
|
exports.PinInput = PinInput;
|
|
41088
41333
|
exports.Progress = Progress;
|
|
41089
41334
|
exports.Radio = CompoundRadio;
|
|
41090
41335
|
exports.RichTextEditor = index;
|
|
41091
41336
|
exports.SectionHeading = SectionHeading;
|
|
41092
|
-
exports.Select = index$
|
|
41337
|
+
exports.Select = index$4;
|
|
41338
|
+
exports.Slider = Slider;
|
|
41093
41339
|
exports.Spinner = Spinner;
|
|
41094
|
-
exports.Switch =
|
|
41340
|
+
exports.Switch = index$3;
|
|
41095
41341
|
exports.Tabs = index$2;
|
|
41096
41342
|
exports.Tag = Tag;
|
|
41097
41343
|
exports.TextInput = TextInput;
|