@hero-design/rn 7.21.0 → 7.22.1
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 +377 -263
- package/lib/index.js +380 -266
- package/package.json +7 -15
- package/src/components/BottomNavigation/__tests__/index.spec.tsx +1 -1
- package/src/components/BottomNavigation/index.tsx +3 -3
- package/src/components/BottomSheet/StyledBottomSheet.tsx +10 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +326 -292
- package/src/components/BottomSheet/index.tsx +46 -26
- package/src/components/Box/helpers.ts +1 -1
- package/src/components/Calendar/index.tsx +9 -9
- package/src/components/Collapse/index.tsx +1 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +176 -159
- package/src/components/Drawer/DragableDrawer/helpers.ts +7 -3
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/Icon/HeroIcon/selection.json +7029 -1
- package/src/components/PinInput/index.tsx +1 -1
- 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/Select/MultiSelect/OptionList.tsx +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +4691 -4606
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +1 -1
- package/src/components/Select/MultiSelect/index.tsx +3 -3
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +4245 -4160
- package/src/components/Select/SingleSelect/index.tsx +3 -3
- package/src/components/Select/helpers.tsx +4 -4
- package/src/components/Slider/index.tsx +1 -1
- 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/index.tsx +4 -1
- 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 +29 -30
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +176 -159
- package/src/components/Toast/ToastContainer.tsx +6 -6
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +14 -12
- package/src/theme/components/switch.ts +14 -18
- package/testUtils/setup.tsx +1 -1
- package/tsconfig.json +1 -1
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +8 -2
- package/types/components/BottomSheet/index.d.ts +6 -1
- package/types/components/Slider/index.d.ts +1 -1
- 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 +4 -4
- package/types/theme/components/switch.d.ts +14 -12
- package/.eslintrc.json +0 -62
- package/.prettierrc.json +0 -8
package/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as reactNative from 'react-native';
|
|
2
|
-
import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, Easing, TouchableOpacity, Text as Text$1, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, TouchableHighlight, Modal, TextInput as TextInput$1, PanResponder, InteractionManager, SectionList, Keyboard, FlatList, LayoutAnimation } from 'react-native';
|
|
2
|
+
import { Platform, Dimensions, StyleSheet as StyleSheet$1, Animated, View, Easing, TouchableOpacity, Text as Text$1, Image as Image$1, TouchableWithoutFeedback, Pressable, SafeAreaView, KeyboardAvoidingView, TouchableHighlight, Modal, TextInput as TextInput$1, PanResponder, InteractionManager, SectionList, Keyboard, FlatList, LayoutAnimation } from 'react-native';
|
|
3
3
|
import React, { useContext, createContext, createElement, forwardRef, useEffect, useCallback, useRef, useMemo, useState, useLayoutEffect, useImperativeHandle } from 'react';
|
|
4
4
|
import { createIconSetFromIcoMoon } from 'react-native-vector-icons';
|
|
5
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
@@ -2295,19 +2295,11 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2295
2295
|
'disabled-checked': theme.colors.primaryLight,
|
|
2296
2296
|
'disabled-unchecked': theme.colors.archived
|
|
2297
2297
|
},
|
|
2298
|
-
thumb: theme.colors.platformBackground
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
};
|
|
2304
|
-
var widths = {
|
|
2305
|
-
small: theme.space.xxxlarge,
|
|
2306
|
-
medium: theme.space.xxxxlarge
|
|
2307
|
-
};
|
|
2308
|
-
var heights = {
|
|
2309
|
-
small: theme.space.large,
|
|
2310
|
-
medium: theme.space.large * 1.2
|
|
2298
|
+
thumb: theme.colors.platformBackground,
|
|
2299
|
+
selector: {
|
|
2300
|
+
background: theme.colors.__alpha__globalNeutral3,
|
|
2301
|
+
textBackground: theme.colors.__alpha__primary1
|
|
2302
|
+
}
|
|
2311
2303
|
};
|
|
2312
2304
|
var sizes = {
|
|
2313
2305
|
thumbs: {
|
|
@@ -2321,21 +2313,28 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2321
2313
|
heights: {
|
|
2322
2314
|
small: theme.sizes.large,
|
|
2323
2315
|
medium: theme.sizes.xlarge
|
|
2316
|
+
},
|
|
2317
|
+
selector: {
|
|
2318
|
+
height: theme.sizes.xxxxlarge
|
|
2324
2319
|
}
|
|
2325
2320
|
};
|
|
2326
2321
|
var spaces = {
|
|
2327
2322
|
small: theme.space.xsmall,
|
|
2328
|
-
medium: theme.space.xsmall
|
|
2323
|
+
medium: theme.space.xsmall,
|
|
2324
|
+
selector: {
|
|
2325
|
+
iconPadding: theme.space.medium,
|
|
2326
|
+
wrapperPadding: theme.space.xsmall
|
|
2327
|
+
}
|
|
2329
2328
|
};
|
|
2330
2329
|
var radii = {
|
|
2331
|
-
rounded: theme.radii.rounded
|
|
2330
|
+
rounded: theme.radii.rounded,
|
|
2331
|
+
selector: {
|
|
2332
|
+
"default": theme.radii.rounded
|
|
2333
|
+
}
|
|
2332
2334
|
};
|
|
2333
2335
|
return {
|
|
2334
2336
|
colors: colors,
|
|
2335
2337
|
sizes: sizes,
|
|
2336
|
-
thumbSizes: thumbSizes,
|
|
2337
|
-
widths: widths,
|
|
2338
|
-
heights: heights,
|
|
2339
2338
|
spaces: spaces,
|
|
2340
2339
|
radii: radii
|
|
2341
2340
|
};
|
|
@@ -5900,7 +5899,7 @@ var getDisplayName = function getDisplayName(primitive) {
|
|
|
5900
5899
|
|
|
5901
5900
|
var styled = createStyled(StyleSheet$1);
|
|
5902
5901
|
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'];
|
|
5903
|
-
var index$
|
|
5902
|
+
var index$8 = components.reduce(function (acc, comp) {
|
|
5904
5903
|
return Object.defineProperty(acc, comp, {
|
|
5905
5904
|
enumerable: true,
|
|
5906
5905
|
configurable: false,
|
|
@@ -5910,7 +5909,7 @@ var index$7 = components.reduce(function (acc, comp) {
|
|
|
5910
5909
|
});
|
|
5911
5910
|
}, styled);
|
|
5912
5911
|
|
|
5913
|
-
var StyledWrapper$
|
|
5912
|
+
var StyledWrapper$9 = index$8(Animated.View)(function () {
|
|
5914
5913
|
return {
|
|
5915
5914
|
margin: 0,
|
|
5916
5915
|
padding: 0,
|
|
@@ -5923,12 +5922,12 @@ var StyledWrapper$8 = index$7(Animated.View)(function () {
|
|
|
5923
5922
|
* to use with Animated.timing
|
|
5924
5923
|
*/
|
|
5925
5924
|
|
|
5926
|
-
var StyledHiddenWrapper = index$
|
|
5925
|
+
var StyledHiddenWrapper = index$8(View)(function () {
|
|
5927
5926
|
return {
|
|
5928
5927
|
height: Dimensions.get('window').height
|
|
5929
5928
|
};
|
|
5930
5929
|
});
|
|
5931
|
-
var StyledChildWrapper = index$
|
|
5930
|
+
var StyledChildWrapper = index$8(View)(function () {
|
|
5932
5931
|
return {
|
|
5933
5932
|
margin: 0,
|
|
5934
5933
|
padding: 0
|
|
@@ -5970,7 +5969,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
5970
5969
|
var height = _ref2.height;
|
|
5971
5970
|
setContentHeight(height);
|
|
5972
5971
|
}, []);
|
|
5973
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
5972
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$9, {
|
|
5974
5973
|
style: {
|
|
5975
5974
|
height: collapseAnim
|
|
5976
5975
|
},
|
|
@@ -5983,10 +5982,10 @@ var Collapse = function Collapse(_ref) {
|
|
|
5983
5982
|
}, children)));
|
|
5984
5983
|
};
|
|
5985
5984
|
|
|
5986
|
-
var StyledWrapper$
|
|
5985
|
+
var StyledWrapper$8 = index$8(View)(function () {
|
|
5987
5986
|
return {};
|
|
5988
5987
|
});
|
|
5989
|
-
var StyledItemWrapper = index$
|
|
5988
|
+
var StyledItemWrapper = index$8(View)(function (_ref) {
|
|
5990
5989
|
var theme = _ref.theme,
|
|
5991
5990
|
themeVariant = _ref.themeVariant;
|
|
5992
5991
|
return {
|
|
@@ -5995,19 +5994,19 @@ var StyledItemWrapper = index$7(View)(function (_ref) {
|
|
|
5995
5994
|
borderRadius: themeVariant === 'card' ? theme.__hd__.accordion.radii.card : 0
|
|
5996
5995
|
};
|
|
5997
5996
|
});
|
|
5998
|
-
var StyledHeaderWrapper$1 = index$
|
|
5997
|
+
var StyledHeaderWrapper$1 = index$8(TouchableOpacity)(function () {
|
|
5999
5998
|
return {
|
|
6000
5999
|
flexDirection: 'row',
|
|
6001
6000
|
justifyContent: 'space-between'
|
|
6002
6001
|
};
|
|
6003
6002
|
});
|
|
6004
|
-
var StyledCollapse = index$
|
|
6003
|
+
var StyledCollapse = index$8(Collapse)(function (_ref2) {
|
|
6005
6004
|
var theme = _ref2.theme;
|
|
6006
6005
|
return {
|
|
6007
6006
|
paddingTop: theme.__hd__.accordion.space.padding
|
|
6008
6007
|
};
|
|
6009
6008
|
});
|
|
6010
|
-
var Spacer$1 = index$
|
|
6009
|
+
var Spacer$1 = index$8(View)(function (_ref3) {
|
|
6011
6010
|
var theme = _ref3.theme;
|
|
6012
6011
|
return {
|
|
6013
6012
|
paddingTop: theme.__hd__.accordion.space.padding
|
|
@@ -6019,7 +6018,7 @@ var FONTWEIGHT_MAP = {
|
|
|
6019
6018
|
regular: 'regular',
|
|
6020
6019
|
'semi-bold': 'semiBold'
|
|
6021
6020
|
};
|
|
6022
|
-
var StyledText$3 = index$
|
|
6021
|
+
var StyledText$3 = index$8(Text$1)(function (_ref) {
|
|
6023
6022
|
var themeFontSize = _ref.themeFontSize,
|
|
6024
6023
|
themeFontWeight = _ref.themeFontWeight,
|
|
6025
6024
|
themeIntent = _ref.themeIntent,
|
|
@@ -14580,7 +14579,7 @@ var COLOR_INTENTS = {
|
|
|
14580
14579
|
'disabled-text': 'disabledText',
|
|
14581
14580
|
'text-inverted': 'invertedText'
|
|
14582
14581
|
};
|
|
14583
|
-
var StyledHeroIcon = index$
|
|
14582
|
+
var StyledHeroIcon = index$8(HeroIcon)(function (_ref) {
|
|
14584
14583
|
var themeIntent = _ref.themeIntent,
|
|
14585
14584
|
themeSize = _ref.themeSize,
|
|
14586
14585
|
theme = _ref.theme;
|
|
@@ -14703,7 +14702,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
14703
14702
|
_activeItemKey = _usePropsOrInternalSt2[0],
|
|
14704
14703
|
_onItemPress = _usePropsOrInternalSt2[1];
|
|
14705
14704
|
|
|
14706
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
14705
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$8, {
|
|
14707
14706
|
style: style,
|
|
14708
14707
|
testID: testID
|
|
14709
14708
|
}, items.map(function (_ref2, index) {
|
|
@@ -14725,7 +14724,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
14725
14724
|
}));
|
|
14726
14725
|
};
|
|
14727
14726
|
|
|
14728
|
-
var Container$1 = index$
|
|
14727
|
+
var Container$1 = index$8(View)(function (_ref) {
|
|
14729
14728
|
var theme = _ref.theme,
|
|
14730
14729
|
_ref$themeVariant = _ref.themeVariant,
|
|
14731
14730
|
themeVariant = _ref$themeVariant === void 0 ? 'default' : _ref$themeVariant,
|
|
@@ -14737,21 +14736,21 @@ var Container$1 = index$7(View)(function (_ref) {
|
|
|
14737
14736
|
flexDirection: 'row'
|
|
14738
14737
|
};
|
|
14739
14738
|
});
|
|
14740
|
-
var IconContainer$1 = index$
|
|
14739
|
+
var IconContainer$1 = index$8(View)(function (_ref2) {
|
|
14741
14740
|
var theme = _ref2.theme;
|
|
14742
14741
|
return {
|
|
14743
14742
|
alignItems: 'center',
|
|
14744
14743
|
paddingLeft: theme.__hd__.alert.space.iconLeftPadding
|
|
14745
14744
|
};
|
|
14746
14745
|
});
|
|
14747
|
-
var TextContainer$1 = index$
|
|
14746
|
+
var TextContainer$1 = index$8(View)(function (_ref3) {
|
|
14748
14747
|
var theme = _ref3.theme;
|
|
14749
14748
|
return {
|
|
14750
14749
|
paddingHorizontal: theme.__hd__.alert.space.textPaddingHorizontal,
|
|
14751
14750
|
flex: 1
|
|
14752
14751
|
};
|
|
14753
14752
|
});
|
|
14754
|
-
var ContentContainer$1 = index$
|
|
14753
|
+
var ContentContainer$1 = index$8(View)(function (_ref4) {
|
|
14755
14754
|
var theme = _ref4.theme,
|
|
14756
14755
|
showDivider = _ref4.showDivider;
|
|
14757
14756
|
return {
|
|
@@ -14762,7 +14761,7 @@ var ContentContainer$1 = index$7(View)(function (_ref4) {
|
|
|
14762
14761
|
flexDirection: 'row'
|
|
14763
14762
|
};
|
|
14764
14763
|
});
|
|
14765
|
-
var CTAWrapper$1 = index$
|
|
14764
|
+
var CTAWrapper$1 = index$8(TouchableOpacity)(function (_ref5) {
|
|
14766
14765
|
var theme = _ref5.theme;
|
|
14767
14766
|
return {
|
|
14768
14767
|
paddingHorizontal: theme.__hd__.alert.space.ctaPadding,
|
|
@@ -14830,7 +14829,7 @@ var Alert = function Alert(_ref2) {
|
|
|
14830
14829
|
})) : null);
|
|
14831
14830
|
};
|
|
14832
14831
|
|
|
14833
|
-
var StyledPressable = index$
|
|
14832
|
+
var StyledPressable = index$8(TouchableOpacity)(function (_ref) {
|
|
14834
14833
|
var themeSize = _ref.themeSize,
|
|
14835
14834
|
themeIntent = _ref.themeIntent,
|
|
14836
14835
|
theme = _ref.theme;
|
|
@@ -14843,7 +14842,7 @@ var StyledPressable = index$7(TouchableOpacity)(function (_ref) {
|
|
|
14843
14842
|
overflow: 'hidden'
|
|
14844
14843
|
};
|
|
14845
14844
|
});
|
|
14846
|
-
var StyledView$3 = index$
|
|
14845
|
+
var StyledView$3 = index$8(View)(function (_ref2) {
|
|
14847
14846
|
var themeSize = _ref2.themeSize,
|
|
14848
14847
|
themeIntent = _ref2.themeIntent,
|
|
14849
14848
|
theme = _ref2.theme;
|
|
@@ -14856,7 +14855,7 @@ var StyledView$3 = index$7(View)(function (_ref2) {
|
|
|
14856
14855
|
overflow: 'hidden'
|
|
14857
14856
|
};
|
|
14858
14857
|
});
|
|
14859
|
-
var StyledTextWrapper = index$
|
|
14858
|
+
var StyledTextWrapper$1 = index$8(View)(function () {
|
|
14860
14859
|
return {
|
|
14861
14860
|
alignItems: 'center',
|
|
14862
14861
|
justifyContent: 'center',
|
|
@@ -14865,7 +14864,7 @@ var StyledTextWrapper = index$7(View)(function () {
|
|
|
14865
14864
|
height: '100%'
|
|
14866
14865
|
};
|
|
14867
14866
|
});
|
|
14868
|
-
var StyledText$2 = index$
|
|
14867
|
+
var StyledText$2 = index$8(Text$1)(function (_ref3) {
|
|
14869
14868
|
var themeSize = _ref3.themeSize,
|
|
14870
14869
|
themeIntent = _ref3.themeIntent,
|
|
14871
14870
|
theme = _ref3.theme;
|
|
@@ -14875,7 +14874,7 @@ var StyledText$2 = index$7(Text$1)(function (_ref3) {
|
|
|
14875
14874
|
overflow: 'hidden'
|
|
14876
14875
|
};
|
|
14877
14876
|
});
|
|
14878
|
-
var StyledImage = index$
|
|
14877
|
+
var StyledImage = index$8(Image$1)(function (_ref4) {
|
|
14879
14878
|
var themeSize = _ref4.themeSize,
|
|
14880
14879
|
theme = _ref4.theme;
|
|
14881
14880
|
return {
|
|
@@ -14901,7 +14900,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
14901
14900
|
themeIntent: intent,
|
|
14902
14901
|
themeSize: size,
|
|
14903
14902
|
style: style
|
|
14904
|
-
}, title !== undefined && source === undefined && /*#__PURE__*/React.createElement(StyledTextWrapper, null, /*#__PURE__*/React.createElement(StyledText$2, {
|
|
14903
|
+
}, title !== undefined && source === undefined && /*#__PURE__*/React.createElement(StyledTextWrapper$1, null, /*#__PURE__*/React.createElement(StyledText$2, {
|
|
14905
14904
|
themeIntent: intent,
|
|
14906
14905
|
themeSize: size
|
|
14907
14906
|
}, title)), source !== undefined && /*#__PURE__*/React.createElement(StyledImage, {
|
|
@@ -14911,7 +14910,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
14911
14910
|
})) : null;
|
|
14912
14911
|
};
|
|
14913
14912
|
|
|
14914
|
-
var StyledView$2 = index$
|
|
14913
|
+
var StyledView$2 = index$8(Animated.View)(function (_ref) {
|
|
14915
14914
|
var themeIntent = _ref.themeIntent,
|
|
14916
14915
|
themePadding = _ref.themePadding,
|
|
14917
14916
|
theme = _ref.theme;
|
|
@@ -14925,7 +14924,7 @@ var StyledView$2 = index$7(Animated.View)(function (_ref) {
|
|
|
14925
14924
|
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
|
|
14926
14925
|
};
|
|
14927
14926
|
});
|
|
14928
|
-
var StyledText$1 = index$
|
|
14927
|
+
var StyledText$1 = index$8(Text$1)(function (_ref2) {
|
|
14929
14928
|
var theme = _ref2.theme;
|
|
14930
14929
|
return {
|
|
14931
14930
|
fontFamily: theme.__hd__.badge.fonts["default"],
|
|
@@ -14936,7 +14935,7 @@ var StyledText$1 = index$7(Text$1)(function (_ref2) {
|
|
|
14936
14935
|
textAlign: 'center'
|
|
14937
14936
|
};
|
|
14938
14937
|
});
|
|
14939
|
-
var StyledStatus = index$
|
|
14938
|
+
var StyledStatus = index$8(Animated.View)(function (_ref3) {
|
|
14940
14939
|
var themeIntent = _ref3.themeIntent,
|
|
14941
14940
|
theme = _ref3.theme;
|
|
14942
14941
|
return {
|
|
@@ -15059,21 +15058,21 @@ var isHeroIcon = function isHeroIcon(x) {
|
|
|
15059
15058
|
return IconList.includes(x);
|
|
15060
15059
|
};
|
|
15061
15060
|
|
|
15062
|
-
var BottomNavigationTab = index$
|
|
15061
|
+
var BottomNavigationTab = index$8(View)(function (_ref) {
|
|
15063
15062
|
var themeVisibility = _ref.themeVisibility;
|
|
15064
15063
|
return {
|
|
15065
15064
|
flex: 1,
|
|
15066
15065
|
display: themeVisibility === false ? 'none' : 'flex'
|
|
15067
15066
|
};
|
|
15068
15067
|
});
|
|
15069
|
-
var BottomNavigationContainer = index$
|
|
15068
|
+
var BottomNavigationContainer = index$8(View)({
|
|
15070
15069
|
flex: 1,
|
|
15071
15070
|
overflow: 'hidden'
|
|
15072
15071
|
});
|
|
15073
|
-
var ContentWrapper$2 = index$
|
|
15072
|
+
var ContentWrapper$2 = index$8(View)({
|
|
15074
15073
|
flex: 1
|
|
15075
15074
|
});
|
|
15076
|
-
var BottomBarWrapper = index$
|
|
15075
|
+
var BottomBarWrapper = index$8(View)(function (_ref2) {
|
|
15077
15076
|
var themeInsets = _ref2.themeInsets,
|
|
15078
15077
|
theme = _ref2.theme;
|
|
15079
15078
|
return {
|
|
@@ -15089,17 +15088,17 @@ var BottomBarWrapper = index$7(View)(function (_ref2) {
|
|
|
15089
15088
|
elevation: theme.__hd__.bottomNavigation.shadows.elevation
|
|
15090
15089
|
};
|
|
15091
15090
|
});
|
|
15092
|
-
var BottomBar = index$
|
|
15091
|
+
var BottomBar = index$8(View)({
|
|
15093
15092
|
flex: 1,
|
|
15094
15093
|
flexDirection: 'row',
|
|
15095
15094
|
overflow: 'hidden',
|
|
15096
15095
|
alignItems: 'center'
|
|
15097
15096
|
});
|
|
15098
|
-
var BottomBarItem = index$
|
|
15097
|
+
var BottomBarItem = index$8(View)({
|
|
15099
15098
|
flex: 1,
|
|
15100
15099
|
alignItems: 'center'
|
|
15101
15100
|
});
|
|
15102
|
-
var StyledBottomBarText = index$
|
|
15101
|
+
var StyledBottomBarText = index$8(Typography.Text)(function (_ref3) {
|
|
15103
15102
|
var theme = _ref3.theme;
|
|
15104
15103
|
return {
|
|
15105
15104
|
marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
|
|
@@ -15196,7 +15195,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
15196
15195
|
}))));
|
|
15197
15196
|
};
|
|
15198
15197
|
|
|
15199
|
-
var StyledDivider = index$
|
|
15198
|
+
var StyledDivider = index$8(View)(function (_ref) {
|
|
15200
15199
|
var themeMarginHorizontal = _ref.themeMarginHorizontal,
|
|
15201
15200
|
themeMarginVertical = _ref.themeMarginVertical,
|
|
15202
15201
|
theme = _ref.theme;
|
|
@@ -15232,10 +15231,16 @@ var Divider = function Divider(_ref) {
|
|
|
15232
15231
|
|
|
15233
15232
|
var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
|
|
15234
15233
|
var AnimatedSafeAreaView = Animated.createAnimatedComponent(SafeAreaView);
|
|
15235
|
-
var StyledWrapper$
|
|
15234
|
+
var StyledWrapper$7 = index$8(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15236
15235
|
flexDirection: 'column-reverse'
|
|
15237
15236
|
}));
|
|
15238
|
-
var
|
|
15237
|
+
var StyledKeyboardAvoidingView = index$8(KeyboardAvoidingView)(function () {
|
|
15238
|
+
return {
|
|
15239
|
+
flex: 1,
|
|
15240
|
+
flexDirection: 'column-reverse'
|
|
15241
|
+
};
|
|
15242
|
+
});
|
|
15243
|
+
var StyledBottomSheet = index$8(AnimatedSafeAreaView)(function (_ref) {
|
|
15239
15244
|
var theme = _ref.theme;
|
|
15240
15245
|
return {
|
|
15241
15246
|
borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
|
|
@@ -15250,14 +15255,14 @@ var StyledBottomSheet = index$7(AnimatedSafeAreaView)(function (_ref) {
|
|
|
15250
15255
|
maxHeight: '94%'
|
|
15251
15256
|
};
|
|
15252
15257
|
});
|
|
15253
|
-
var StyledBackdrop$2 = index$
|
|
15258
|
+
var StyledBackdrop$2 = index$8(AnimatedPressable$1)(function (_ref2) {
|
|
15254
15259
|
var theme = _ref2.theme;
|
|
15255
15260
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15256
15261
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
15257
15262
|
opacity: 0.48
|
|
15258
15263
|
});
|
|
15259
15264
|
});
|
|
15260
|
-
var StyledHeaderWrapper = index$
|
|
15265
|
+
var StyledHeaderWrapper = index$8(View)(function (_ref3) {
|
|
15261
15266
|
var theme = _ref3.theme;
|
|
15262
15267
|
return {
|
|
15263
15268
|
flexDirection: 'row',
|
|
@@ -15265,11 +15270,11 @@ var StyledHeaderWrapper = index$7(View)(function (_ref3) {
|
|
|
15265
15270
|
paddingHorizontal: theme.__hd__.bottomSheet.space.headerWrapperHorizontalPadding
|
|
15266
15271
|
};
|
|
15267
15272
|
});
|
|
15268
|
-
var StyledHeader = index$
|
|
15273
|
+
var StyledHeader = index$8(View)({
|
|
15269
15274
|
flex: 1,
|
|
15270
15275
|
justifyContent: 'center'
|
|
15271
15276
|
});
|
|
15272
|
-
var StyledFooter = index$
|
|
15277
|
+
var StyledFooter = index$8(View)(function (_ref4) {
|
|
15273
15278
|
var theme = _ref4.theme;
|
|
15274
15279
|
return {
|
|
15275
15280
|
paddingHorizontal: theme.__hd__.bottomSheet.space.footerHorizontalPadding,
|
|
@@ -15280,7 +15285,7 @@ var StyledFooter = index$7(View)(function (_ref4) {
|
|
|
15280
15285
|
flexDirection: 'row'
|
|
15281
15286
|
};
|
|
15282
15287
|
});
|
|
15283
|
-
var StyledIconWrapper$
|
|
15288
|
+
var StyledIconWrapper$2 = index$8(View)(function (_ref5) {
|
|
15284
15289
|
var theme = _ref5.theme;
|
|
15285
15290
|
return {
|
|
15286
15291
|
alignItems: 'center',
|
|
@@ -15303,7 +15308,7 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
|
|
|
15303
15308
|
};
|
|
15304
15309
|
};
|
|
15305
15310
|
|
|
15306
|
-
var StyledLoadingIndicatorWrapper = index$
|
|
15311
|
+
var StyledLoadingIndicatorWrapper = index$8(View)(function (_ref) {
|
|
15307
15312
|
var theme = _ref.theme;
|
|
15308
15313
|
return {
|
|
15309
15314
|
flexDirection: 'row',
|
|
@@ -15312,7 +15317,7 @@ var StyledLoadingIndicatorWrapper = index$7(View)(function (_ref) {
|
|
|
15312
15317
|
paddingVertical: theme.space.xxsmall
|
|
15313
15318
|
};
|
|
15314
15319
|
});
|
|
15315
|
-
var StyledLoadingDot = index$
|
|
15320
|
+
var StyledLoadingDot = index$8(View)(function (_ref2) {
|
|
15316
15321
|
var _ref2$size = _ref2.size,
|
|
15317
15322
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
15318
15323
|
themeVariant = _ref2.themeVariant,
|
|
@@ -15563,7 +15568,7 @@ var genTextVariantTextStyles = function genTextVariantTextStyles(theme, intent,
|
|
|
15563
15568
|
}, textColorStyling());
|
|
15564
15569
|
};
|
|
15565
15570
|
|
|
15566
|
-
var StyledButtonContainer = index$
|
|
15571
|
+
var StyledButtonContainer = index$8(TouchableHighlight)(function (_ref) {
|
|
15567
15572
|
var _ref$disabled = _ref.disabled,
|
|
15568
15573
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15569
15574
|
_ref$pressed = _ref.pressed,
|
|
@@ -15605,7 +15610,7 @@ var StyledButtonContainer = index$7(TouchableHighlight)(function (_ref) {
|
|
|
15605
15610
|
};
|
|
15606
15611
|
}
|
|
15607
15612
|
});
|
|
15608
|
-
var StyledButtonText = index$
|
|
15613
|
+
var StyledButtonText = index$8(Typography.Text)(function (_ref2) {
|
|
15609
15614
|
var disabled = _ref2.disabled,
|
|
15610
15615
|
pressed = _ref2.pressed,
|
|
15611
15616
|
themeVariant = _ref2.themeVariant,
|
|
@@ -15655,7 +15660,7 @@ var StyledButtonText = index$7(Typography.Text)(function (_ref2) {
|
|
|
15655
15660
|
fontFamily: theme.__hd__.button.fonts["default"]
|
|
15656
15661
|
}, themeStyling());
|
|
15657
15662
|
});
|
|
15658
|
-
var StyledButtonIconWrapper = index$
|
|
15663
|
+
var StyledButtonIconWrapper = index$8(View)(function (_ref3) {
|
|
15659
15664
|
var themePosition = _ref3.themePosition,
|
|
15660
15665
|
theme = _ref3.theme;
|
|
15661
15666
|
|
|
@@ -15671,7 +15676,7 @@ var StyledButtonIconWrapper = index$7(View)(function (_ref3) {
|
|
|
15671
15676
|
};
|
|
15672
15677
|
}
|
|
15673
15678
|
});
|
|
15674
|
-
var StyledButtonIcon = index$
|
|
15679
|
+
var StyledButtonIcon = index$8(Icon)(function (_ref4) {
|
|
15675
15680
|
var disabled = _ref4.disabled,
|
|
15676
15681
|
pressed = _ref4.pressed,
|
|
15677
15682
|
themeVariant = _ref4.themeVariant,
|
|
@@ -15839,7 +15844,7 @@ var IconButton = function IconButton(_ref) {
|
|
|
15839
15844
|
}));
|
|
15840
15845
|
};
|
|
15841
15846
|
|
|
15842
|
-
var ButtonContainer = index$
|
|
15847
|
+
var ButtonContainer = index$8(TouchableOpacity)(function (_ref) {
|
|
15843
15848
|
var theme = _ref.theme;
|
|
15844
15849
|
return {
|
|
15845
15850
|
width: '100%',
|
|
@@ -15851,13 +15856,13 @@ var ButtonContainer = index$7(TouchableOpacity)(function (_ref) {
|
|
|
15851
15856
|
backgroundColor: theme.__hd__.button.colors.utilityBackground
|
|
15852
15857
|
};
|
|
15853
15858
|
});
|
|
15854
|
-
var IconWrapper = index$
|
|
15859
|
+
var IconWrapper = index$8(View)(function (_ref2) {
|
|
15855
15860
|
var theme = _ref2.theme;
|
|
15856
15861
|
return {
|
|
15857
15862
|
paddingRight: theme.__hd__.button.space.iconPadding
|
|
15858
15863
|
};
|
|
15859
15864
|
});
|
|
15860
|
-
var ButtonText = index$
|
|
15865
|
+
var ButtonText = index$8(Typography.Text)(function (_ref3) {
|
|
15861
15866
|
var theme = _ref3.theme;
|
|
15862
15867
|
return {
|
|
15863
15868
|
flexShrink: 1,
|
|
@@ -15912,7 +15917,7 @@ var Header = function Header(_ref) {
|
|
|
15912
15917
|
style: {
|
|
15913
15918
|
flex: 1
|
|
15914
15919
|
}
|
|
15915
|
-
}, content), showCloseButton ? /*#__PURE__*/React.createElement(StyledIconWrapper$
|
|
15920
|
+
}, content), showCloseButton ? /*#__PURE__*/React.createElement(StyledIconWrapper$2, null, /*#__PURE__*/React.createElement(CompoundButton.Icon, {
|
|
15916
15921
|
icon: "cancel",
|
|
15917
15922
|
onPress: onRequestClose,
|
|
15918
15923
|
intent: "text",
|
|
@@ -15937,18 +15942,18 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15937
15942
|
_ref$showDivider = _ref.showDivider,
|
|
15938
15943
|
showDivider = _ref$showDivider === void 0 ? true : _ref$showDivider,
|
|
15939
15944
|
style = _ref.style,
|
|
15940
|
-
testID = _ref.testID
|
|
15945
|
+
testID = _ref.testID,
|
|
15946
|
+
_ref$keyboardAvoiding = _ref.keyboardAvoidingViewProps,
|
|
15947
|
+
keyboardAvoidingViewProps = _ref$keyboardAvoiding === void 0 ? {} : _ref$keyboardAvoiding;
|
|
15941
15948
|
|
|
15942
|
-
var
|
|
15943
|
-
|
|
15944
|
-
height = _useState2[0],
|
|
15945
|
-
setHeight = _useState2[1]; // Internal state to control modal open/close timing with animation
|
|
15949
|
+
var _Dimensions$get = Dimensions.get('window'),
|
|
15950
|
+
height = _Dimensions$get.height; // Internal state to control modal open/close timing with animation
|
|
15946
15951
|
|
|
15947
15952
|
|
|
15948
|
-
var
|
|
15949
|
-
|
|
15950
|
-
visible =
|
|
15951
|
-
setVisibility =
|
|
15953
|
+
var _useState = useState(open),
|
|
15954
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
15955
|
+
visible = _useState2[0],
|
|
15956
|
+
setVisibility = _useState2[1];
|
|
15952
15957
|
|
|
15953
15958
|
var animatedValue = useRef(new Animated.Value(open ? 0 : 1));
|
|
15954
15959
|
useEffect(function () {
|
|
@@ -15999,18 +16004,16 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15999
16004
|
transparent: true,
|
|
16000
16005
|
testID: testID,
|
|
16001
16006
|
onShow: onOpen
|
|
16002
|
-
}, /*#__PURE__*/React.createElement(StyledWrapper$
|
|
16007
|
+
}, /*#__PURE__*/React.createElement(StyledWrapper$7, {
|
|
16003
16008
|
pointerEvents: "box-none"
|
|
16004
16009
|
}, /*#__PURE__*/React.createElement(StyledBackdrop$2, {
|
|
16005
16010
|
style: {
|
|
16006
16011
|
opacity: interpolateOpacity
|
|
16007
16012
|
},
|
|
16008
16013
|
onPress: onRequestClose
|
|
16009
|
-
}), /*#__PURE__*/React.createElement(
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
return setHeight(nativeEvent.layout.height);
|
|
16013
|
-
},
|
|
16014
|
+
}), /*#__PURE__*/React.createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
16015
|
+
behavior: Platform.OS === 'ios' ? 'padding' : 'height'
|
|
16016
|
+
}, keyboardAvoidingViewProps), /*#__PURE__*/React.createElement(StyledBottomSheet, {
|
|
16014
16017
|
style: [style, {
|
|
16015
16018
|
transform: [{
|
|
16016
16019
|
scaleY: height > 0 ? 1 : 0
|
|
@@ -16025,7 +16028,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
16025
16028
|
showCloseButton: showCloseButton
|
|
16026
16029
|
}) : null, children, footer ? /*#__PURE__*/React.createElement(Footer$1, {
|
|
16027
16030
|
showDivider: showDivider
|
|
16028
|
-
}, footer) : null)));
|
|
16031
|
+
}, footer) : null))));
|
|
16029
16032
|
};
|
|
16030
16033
|
|
|
16031
16034
|
var colors = {
|
|
@@ -16244,7 +16247,7 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
16244
16247
|
};
|
|
16245
16248
|
|
|
16246
16249
|
var configKeys = Object.keys(config);
|
|
16247
|
-
var StyledBox = index$
|
|
16250
|
+
var StyledBox = index$8(View)(function (_ref5) {
|
|
16248
16251
|
var theme = _ref5.theme,
|
|
16249
16252
|
otherProps = _objectWithoutProperties(_ref5, _excluded$a);
|
|
16250
16253
|
|
|
@@ -18663,14 +18666,14 @@ function convertToFP(fn, arity, a) {
|
|
|
18663
18666
|
var format = convertToFP(format$1, 2);
|
|
18664
18667
|
var formatTime = format;
|
|
18665
18668
|
|
|
18666
|
-
var Wrapper = index$
|
|
18669
|
+
var Wrapper = index$8(View)(function () {
|
|
18667
18670
|
return {
|
|
18668
18671
|
flex: 1,
|
|
18669
18672
|
flexDirection: 'row',
|
|
18670
18673
|
justifyContent: 'space-between'
|
|
18671
18674
|
};
|
|
18672
18675
|
});
|
|
18673
|
-
var Value = index$
|
|
18676
|
+
var Value = index$8(Typography.Text)(function (_ref) {
|
|
18674
18677
|
var theme = _ref.theme;
|
|
18675
18678
|
return {
|
|
18676
18679
|
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
@@ -18711,13 +18714,13 @@ function ContentNavigator(_ref) {
|
|
|
18711
18714
|
}));
|
|
18712
18715
|
}
|
|
18713
18716
|
|
|
18714
|
-
var StyledContainer$4 = index$
|
|
18717
|
+
var StyledContainer$4 = index$8(View)(function (_ref) {
|
|
18715
18718
|
var theme = _ref.theme;
|
|
18716
18719
|
return {
|
|
18717
18720
|
backgroundColor: theme.__hd__.calendar.colors.background
|
|
18718
18721
|
};
|
|
18719
18722
|
});
|
|
18720
|
-
var StyledCalendarHeader = index$
|
|
18723
|
+
var StyledCalendarHeader = index$8(View)(function (_ref2) {
|
|
18721
18724
|
var theme = _ref2.theme;
|
|
18722
18725
|
return {
|
|
18723
18726
|
flexDirection: 'row',
|
|
@@ -18725,7 +18728,7 @@ var StyledCalendarHeader = index$7(View)(function (_ref2) {
|
|
|
18725
18728
|
paddingVertical: theme.__hd__.calendar.space.headerVerticalPadding
|
|
18726
18729
|
};
|
|
18727
18730
|
});
|
|
18728
|
-
var StyledCalendarDayNameCell = index$
|
|
18731
|
+
var StyledCalendarDayNameCell = index$8(View)(function (_ref3) {
|
|
18729
18732
|
var theme = _ref3.theme;
|
|
18730
18733
|
return {
|
|
18731
18734
|
width: theme.__hd__.calendar.sizes.cellWidth,
|
|
@@ -18734,7 +18737,7 @@ var StyledCalendarDayNameCell = index$7(View)(function (_ref3) {
|
|
|
18734
18737
|
justifyContent: 'center'
|
|
18735
18738
|
};
|
|
18736
18739
|
});
|
|
18737
|
-
var StyledCalendarCell = index$
|
|
18740
|
+
var StyledCalendarCell = index$8(TouchableOpacity)(function (_ref4) {
|
|
18738
18741
|
var theme = _ref4.theme,
|
|
18739
18742
|
_ref4$variant = _ref4.variant,
|
|
18740
18743
|
variant = _ref4$variant === void 0 ? 'default' : _ref4$variant;
|
|
@@ -18749,7 +18752,7 @@ var StyledCalendarCell = index$7(TouchableOpacity)(function (_ref4) {
|
|
|
18749
18752
|
height: theme.__hd__.calendar.sizes.cellCircleHeight
|
|
18750
18753
|
};
|
|
18751
18754
|
});
|
|
18752
|
-
var StyledCalendarRow = index$
|
|
18755
|
+
var StyledCalendarRow = index$8(View)(function (_ref5) {
|
|
18753
18756
|
var theme = _ref5.theme;
|
|
18754
18757
|
return {
|
|
18755
18758
|
flexDirection: 'row',
|
|
@@ -18757,7 +18760,7 @@ var StyledCalendarRow = index$7(View)(function (_ref5) {
|
|
|
18757
18760
|
flexWrap: 'wrap'
|
|
18758
18761
|
};
|
|
18759
18762
|
});
|
|
18760
|
-
var StyledCalendarRowItem = index$
|
|
18763
|
+
var StyledCalendarRowItem = index$8(View)(function (_ref6) {
|
|
18761
18764
|
var theme = _ref6.theme;
|
|
18762
18765
|
return {
|
|
18763
18766
|
flexBasis: "".concat(Math.floor(100.0 / 7.0).toString(), "%"),
|
|
@@ -18767,7 +18770,7 @@ var StyledCalendarRowItem = index$7(View)(function (_ref6) {
|
|
|
18767
18770
|
justifyContent: 'center'
|
|
18768
18771
|
};
|
|
18769
18772
|
});
|
|
18770
|
-
var StyledDisabledCalendarRowItem = index$
|
|
18773
|
+
var StyledDisabledCalendarRowItem = index$8(View)(function (_ref7) {
|
|
18771
18774
|
var theme = _ref7.theme;
|
|
18772
18775
|
return {
|
|
18773
18776
|
flexBasis: "".concat(Math.floor(100.0 / 7.0).toString(), "%"),
|
|
@@ -18776,7 +18779,7 @@ var StyledDisabledCalendarRowItem = index$7(View)(function (_ref7) {
|
|
|
18776
18779
|
height: theme.__hd__.calendar.sizes.cellHeight
|
|
18777
18780
|
};
|
|
18778
18781
|
});
|
|
18779
|
-
var StyledMark = index$
|
|
18782
|
+
var StyledMark = index$8(View)(function (_ref8) {
|
|
18780
18783
|
var theme = _ref8.theme,
|
|
18781
18784
|
_ref8$variant = _ref8.variant,
|
|
18782
18785
|
variant = _ref8$variant === void 0 ? 'primary' : _ref8$variant;
|
|
@@ -18956,7 +18959,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
18956
18959
|
})));
|
|
18957
18960
|
};
|
|
18958
18961
|
|
|
18959
|
-
var StyledDataCard = index$
|
|
18962
|
+
var StyledDataCard = index$8(View)(function (_ref) {
|
|
18960
18963
|
var theme = _ref.theme;
|
|
18961
18964
|
return {
|
|
18962
18965
|
borderRadius: theme.__hd__.card.radii["default"],
|
|
@@ -18964,7 +18967,7 @@ var StyledDataCard = index$7(View)(function (_ref) {
|
|
|
18964
18967
|
flexDirection: 'row'
|
|
18965
18968
|
};
|
|
18966
18969
|
});
|
|
18967
|
-
var Indicator = index$
|
|
18970
|
+
var Indicator = index$8(View)(function (_ref2) {
|
|
18968
18971
|
var theme = _ref2.theme,
|
|
18969
18972
|
themeIntent = _ref2.themeIntent;
|
|
18970
18973
|
return {
|
|
@@ -18988,7 +18991,7 @@ var DataCard = function DataCard(_ref) {
|
|
|
18988
18991
|
}), children);
|
|
18989
18992
|
};
|
|
18990
18993
|
|
|
18991
|
-
var StyledCard = index$
|
|
18994
|
+
var StyledCard = index$8(View)(function (_ref) {
|
|
18992
18995
|
var themeVariant = _ref.themeVariant,
|
|
18993
18996
|
theme = _ref.theme,
|
|
18994
18997
|
themeIntent = _ref.themeIntent;
|
|
@@ -19002,7 +19005,7 @@ var StyledCard = index$7(View)(function (_ref) {
|
|
|
19002
19005
|
});
|
|
19003
19006
|
}); // DEPRECATED
|
|
19004
19007
|
|
|
19005
|
-
var LeftDataCard = index$
|
|
19008
|
+
var LeftDataCard = index$8(View)(function (_ref2) {
|
|
19006
19009
|
var theme = _ref2.theme;
|
|
19007
19010
|
return {
|
|
19008
19011
|
backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
|
|
@@ -19028,11 +19031,11 @@ var Card = function Card(_ref) {
|
|
|
19028
19031
|
}), children);
|
|
19029
19032
|
};
|
|
19030
19033
|
|
|
19031
|
-
var index$
|
|
19034
|
+
var index$7 = Object.assign(Card, {
|
|
19032
19035
|
Data: DataCard
|
|
19033
19036
|
});
|
|
19034
19037
|
|
|
19035
|
-
var StyledWrapper$
|
|
19038
|
+
var StyledWrapper$6 = index$8(TouchableOpacity)(function (_ref) {
|
|
19036
19039
|
var theme = _ref.theme,
|
|
19037
19040
|
themeWithBorder = _ref.themeWithBorder,
|
|
19038
19041
|
themeDisabled = _ref.themeDisabled;
|
|
@@ -19046,14 +19049,14 @@ var StyledWrapper$5 = index$7(TouchableOpacity)(function (_ref) {
|
|
|
19046
19049
|
flexDirection: 'row'
|
|
19047
19050
|
}, themeWithBorder && borderStyle);
|
|
19048
19051
|
});
|
|
19049
|
-
var StyledDescription$1 = index$
|
|
19052
|
+
var StyledDescription$1 = index$8(Typography.Text)(function (_ref2) {
|
|
19050
19053
|
var theme = _ref2.theme;
|
|
19051
19054
|
return {
|
|
19052
19055
|
paddingRight: theme.__hd__.checkbox.space.iconDescriptionPadding,
|
|
19053
19056
|
flex: 1
|
|
19054
19057
|
};
|
|
19055
19058
|
});
|
|
19056
|
-
var StyledCheckbox = index$
|
|
19059
|
+
var StyledCheckbox = index$8(View)(function (_ref3) {
|
|
19057
19060
|
var theme = _ref3.theme,
|
|
19058
19061
|
themeDisabled = _ref3.themeDisabled;
|
|
19059
19062
|
return {
|
|
@@ -19067,7 +19070,7 @@ var StyledCheckbox = index$7(View)(function (_ref3) {
|
|
|
19067
19070
|
overflow: 'hidden'
|
|
19068
19071
|
};
|
|
19069
19072
|
});
|
|
19070
|
-
var StyledCheckMark = index$
|
|
19073
|
+
var StyledCheckMark = index$8(Icon)(function (_ref4) {
|
|
19071
19074
|
var theme = _ref4.theme;
|
|
19072
19075
|
return {
|
|
19073
19076
|
position: 'absolute',
|
|
@@ -19085,7 +19088,7 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
19085
19088
|
onPress = _ref.onPress,
|
|
19086
19089
|
style = _ref.style,
|
|
19087
19090
|
testID = _ref.testID;
|
|
19088
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
19091
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$6, {
|
|
19089
19092
|
onPress: onPress,
|
|
19090
19093
|
disabled: disabled,
|
|
19091
19094
|
themeDisabled: disabled,
|
|
@@ -19103,14 +19106,14 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
19103
19106
|
})));
|
|
19104
19107
|
};
|
|
19105
19108
|
|
|
19106
|
-
var StyledContainer$3 = index$
|
|
19109
|
+
var StyledContainer$3 = index$8(View)(function (_ref) {
|
|
19107
19110
|
var theme = _ref.theme;
|
|
19108
19111
|
return {
|
|
19109
19112
|
width: '100%',
|
|
19110
19113
|
marginVertical: theme.__hd__.textInput.space.containerMarginVertical
|
|
19111
19114
|
};
|
|
19112
19115
|
});
|
|
19113
|
-
var StyledLabelContainer = index$
|
|
19116
|
+
var StyledLabelContainer = index$8(View)(function (_ref2) {
|
|
19114
19117
|
var theme = _ref2.theme;
|
|
19115
19118
|
return {
|
|
19116
19119
|
position: 'absolute',
|
|
@@ -19122,28 +19125,28 @@ var StyledLabelContainer = index$7(View)(function (_ref2) {
|
|
|
19122
19125
|
paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
|
|
19123
19126
|
};
|
|
19124
19127
|
});
|
|
19125
|
-
var StyledLabel = index$
|
|
19128
|
+
var StyledLabel = index$8(Typography.Text)(function (_ref3) {
|
|
19126
19129
|
var theme = _ref3.theme,
|
|
19127
19130
|
themeVariant = _ref3.themeVariant;
|
|
19128
19131
|
return {
|
|
19129
19132
|
color: theme.__hd__.textInput.colors.labels[themeVariant]
|
|
19130
19133
|
};
|
|
19131
19134
|
});
|
|
19132
|
-
var StyledAsteriskLabel = index$
|
|
19135
|
+
var StyledAsteriskLabel = index$8(Typography.Text)(function (_ref4) {
|
|
19133
19136
|
var theme = _ref4.theme,
|
|
19134
19137
|
themeVariant = _ref4.themeVariant;
|
|
19135
19138
|
return {
|
|
19136
19139
|
color: theme.__hd__.textInput.colors.asterisks[themeVariant]
|
|
19137
19140
|
};
|
|
19138
19141
|
});
|
|
19139
|
-
var StyledLabelContainerInsideTextInput = index$
|
|
19142
|
+
var StyledLabelContainerInsideTextInput = index$8(View)(function () {
|
|
19140
19143
|
return _objectSpread2({
|
|
19141
19144
|
flexDirection: 'row',
|
|
19142
19145
|
zIndex: 9999,
|
|
19143
19146
|
alignItems: 'center'
|
|
19144
19147
|
}, StyleSheet$1.absoluteFillObject);
|
|
19145
19148
|
});
|
|
19146
|
-
var StyledLabelInsideTextInput = index$
|
|
19149
|
+
var StyledLabelInsideTextInput = index$8(Typography.Text)(function (_ref5) {
|
|
19147
19150
|
var theme = _ref5.theme,
|
|
19148
19151
|
themeVariant = _ref5.themeVariant;
|
|
19149
19152
|
return {
|
|
@@ -19154,7 +19157,7 @@ var StyledLabelInsideTextInput = index$7(Typography.Text)(function (_ref5) {
|
|
|
19154
19157
|
color: theme.__hd__.textInput.colors.labelsInsideTextInput[themeVariant]
|
|
19155
19158
|
};
|
|
19156
19159
|
});
|
|
19157
|
-
var StyledAsteriskLabelInsideTextInput = index$
|
|
19160
|
+
var StyledAsteriskLabelInsideTextInput = index$8(Typography.Text)(function (_ref6) {
|
|
19158
19161
|
var theme = _ref6.theme,
|
|
19159
19162
|
themeVariant = _ref6.themeVariant;
|
|
19160
19163
|
return {
|
|
@@ -19162,7 +19165,7 @@ var StyledAsteriskLabelInsideTextInput = index$7(Typography.Text)(function (_ref
|
|
|
19162
19165
|
fontSize: theme.__hd__.textInput.fontSizes.asteriskLabel
|
|
19163
19166
|
};
|
|
19164
19167
|
});
|
|
19165
|
-
var StyledErrorContainer$1 = index$
|
|
19168
|
+
var StyledErrorContainer$1 = index$8(View)(function (_ref7) {
|
|
19166
19169
|
var theme = _ref7.theme;
|
|
19167
19170
|
return {
|
|
19168
19171
|
marginRight: theme.__hd__.textInput.space.errorContainerMarginRight,
|
|
@@ -19172,7 +19175,7 @@ var StyledErrorContainer$1 = index$7(View)(function (_ref7) {
|
|
|
19172
19175
|
flexGrow: 4
|
|
19173
19176
|
};
|
|
19174
19177
|
});
|
|
19175
|
-
var StyledError = index$
|
|
19178
|
+
var StyledError = index$8(Typography.Text)(function (_ref8) {
|
|
19176
19179
|
var theme = _ref8.theme;
|
|
19177
19180
|
return {
|
|
19178
19181
|
color: theme.__hd__.textInput.colors.error,
|
|
@@ -19180,7 +19183,7 @@ var StyledError = index$7(Typography.Text)(function (_ref8) {
|
|
|
19180
19183
|
marginLeft: theme.__hd__.textInput.space.errorMarginLeft
|
|
19181
19184
|
};
|
|
19182
19185
|
});
|
|
19183
|
-
var StyledMaxLengthMessage = index$
|
|
19186
|
+
var StyledMaxLengthMessage = index$8(Typography.Text)(function (_ref9) {
|
|
19184
19187
|
var theme = _ref9.theme,
|
|
19185
19188
|
themeVariant = _ref9.themeVariant;
|
|
19186
19189
|
return {
|
|
@@ -19193,13 +19196,13 @@ var StyledMaxLengthMessage = index$7(Typography.Text)(function (_ref9) {
|
|
|
19193
19196
|
textAlign: 'right'
|
|
19194
19197
|
};
|
|
19195
19198
|
});
|
|
19196
|
-
var StyledHelperText = index$
|
|
19199
|
+
var StyledHelperText = index$8(Typography.Text)(function (_ref10) {
|
|
19197
19200
|
var theme = _ref10.theme;
|
|
19198
19201
|
return {
|
|
19199
19202
|
fontSize: theme.__hd__.textInput.fontSizes.error
|
|
19200
19203
|
};
|
|
19201
19204
|
});
|
|
19202
|
-
var StyledTextInput = index$
|
|
19205
|
+
var StyledTextInput = index$8(TextInput$1)(function (_ref11) {
|
|
19203
19206
|
var theme = _ref11.theme;
|
|
19204
19207
|
return {
|
|
19205
19208
|
textAlignVertical: 'center',
|
|
@@ -19209,7 +19212,7 @@ var StyledTextInput = index$7(TextInput$1)(function (_ref11) {
|
|
|
19209
19212
|
marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin
|
|
19210
19213
|
};
|
|
19211
19214
|
});
|
|
19212
|
-
var StyledBorderBackDrop = index$
|
|
19215
|
+
var StyledBorderBackDrop = index$8(View)(function (_ref12) {
|
|
19213
19216
|
var _theme$__hd__$textInp;
|
|
19214
19217
|
|
|
19215
19218
|
var theme = _ref12.theme,
|
|
@@ -19220,7 +19223,7 @@ var StyledBorderBackDrop = index$7(View)(function (_ref12) {
|
|
|
19220
19223
|
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"]
|
|
19221
19224
|
});
|
|
19222
19225
|
});
|
|
19223
|
-
var StyledTextInputContainer = index$
|
|
19226
|
+
var StyledTextInputContainer = index$8(View)(function (_ref13) {
|
|
19224
19227
|
var theme = _ref13.theme;
|
|
19225
19228
|
return {
|
|
19226
19229
|
flexDirection: 'row',
|
|
@@ -19228,7 +19231,7 @@ var StyledTextInputContainer = index$7(View)(function (_ref13) {
|
|
|
19228
19231
|
padding: theme.__hd__.textInput.space.containerPadding
|
|
19229
19232
|
};
|
|
19230
19233
|
});
|
|
19231
|
-
var StyledTextInputAndLabelContainer = index$
|
|
19234
|
+
var StyledTextInputAndLabelContainer = index$8(View)(function () {
|
|
19232
19235
|
return {
|
|
19233
19236
|
flexDirection: 'row',
|
|
19234
19237
|
alignItems: 'center',
|
|
@@ -19237,13 +19240,13 @@ var StyledTextInputAndLabelContainer = index$7(View)(function () {
|
|
|
19237
19240
|
flexShrink: 1
|
|
19238
19241
|
};
|
|
19239
19242
|
});
|
|
19240
|
-
var StyledErrorAndHelpTextContainer = index$
|
|
19243
|
+
var StyledErrorAndHelpTextContainer = index$8(View)(function (_ref14) {
|
|
19241
19244
|
var theme = _ref14.theme;
|
|
19242
19245
|
return {
|
|
19243
19246
|
paddingLeft: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingLeft
|
|
19244
19247
|
};
|
|
19245
19248
|
});
|
|
19246
|
-
var StyledErrorAndMaxLengthContainer = index$
|
|
19249
|
+
var StyledErrorAndMaxLengthContainer = index$8(View)(function () {
|
|
19247
19250
|
return {
|
|
19248
19251
|
flexDirection: 'row',
|
|
19249
19252
|
justifyContent: 'space-between'
|
|
@@ -19260,26 +19263,26 @@ var getVariant$1 = function getVariant(_ref) {
|
|
|
19260
19263
|
isEmptyValue = _ref.isEmptyValue;
|
|
19261
19264
|
|
|
19262
19265
|
if (disabled) {
|
|
19263
|
-
return
|
|
19266
|
+
return "disabled";
|
|
19264
19267
|
}
|
|
19265
19268
|
|
|
19266
19269
|
if (error) {
|
|
19267
|
-
return
|
|
19270
|
+
return "error";
|
|
19268
19271
|
}
|
|
19269
19272
|
|
|
19270
19273
|
if (!editable || loading) {
|
|
19271
|
-
return
|
|
19274
|
+
return "readonly";
|
|
19272
19275
|
}
|
|
19273
19276
|
|
|
19274
19277
|
if (isFocused) {
|
|
19275
|
-
return
|
|
19278
|
+
return "focused";
|
|
19276
19279
|
}
|
|
19277
19280
|
|
|
19278
19281
|
if (!isEmptyValue) {
|
|
19279
|
-
return
|
|
19282
|
+
return "filled";
|
|
19280
19283
|
}
|
|
19281
19284
|
|
|
19282
|
-
return
|
|
19285
|
+
return "default";
|
|
19283
19286
|
};
|
|
19284
19287
|
|
|
19285
19288
|
var TextInput = function TextInput(_ref2) {
|
|
@@ -19307,9 +19310,9 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19307
19310
|
renderInputValue = _ref2.renderInputValue,
|
|
19308
19311
|
nativeProps = _objectWithoutProperties(_ref2, _excluded$6);
|
|
19309
19312
|
|
|
19310
|
-
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 :
|
|
19313
|
+
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : "";
|
|
19311
19314
|
var isEmptyValue = displayText.length === 0;
|
|
19312
|
-
var actualSuffix = loading ?
|
|
19315
|
+
var actualSuffix = loading ? "loading" : suffix;
|
|
19313
19316
|
|
|
19314
19317
|
var _React$useState = React.useState(false),
|
|
19315
19318
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -19331,9 +19334,9 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19331
19334
|
style: StyleSheet$1.flatten([{
|
|
19332
19335
|
color: theme.__hd__.textInput.colors.text
|
|
19333
19336
|
}, textStyle]),
|
|
19334
|
-
testID:
|
|
19337
|
+
testID: "text-input",
|
|
19335
19338
|
accessibilityState: {
|
|
19336
|
-
disabled: variant ===
|
|
19339
|
+
disabled: variant === "disabled" || variant === "readonly"
|
|
19337
19340
|
},
|
|
19338
19341
|
// @ts-ignore
|
|
19339
19342
|
accessibilityLabelledBy: accessibilityLabelledBy
|
|
@@ -19359,15 +19362,15 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19359
19362
|
(_nativeProps$onChange = nativeProps.onChangeText) === null || _nativeProps$onChange === void 0 ? void 0 : _nativeProps$onChange.call(nativeProps, text);
|
|
19360
19363
|
},
|
|
19361
19364
|
defaultValue: defaultValue,
|
|
19362
|
-
placeholder: variant ===
|
|
19365
|
+
placeholder: variant === "focused" ? nativeProps.placeholder : undefined
|
|
19363
19366
|
});
|
|
19364
19367
|
|
|
19365
19368
|
return /*#__PURE__*/React.createElement(StyledContainer$3, {
|
|
19366
|
-
|
|
19367
|
-
pointerEvents: variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto',
|
|
19369
|
+
pointerEvents: variant === "disabled" || variant === "readonly" ? "none" : "auto",
|
|
19368
19370
|
testID: testID
|
|
19369
19371
|
}, /*#__PURE__*/React.createElement(StyledTextInputContainer, null, /*#__PURE__*/React.createElement(StyledBorderBackDrop, {
|
|
19370
|
-
themeVariant: variant
|
|
19372
|
+
themeVariant: variant,
|
|
19373
|
+
style: style
|
|
19371
19374
|
}), (isFocused || label && !isEmptyValue) && /*#__PURE__*/React.createElement(StyledLabelContainer, {
|
|
19372
19375
|
pointerEvents: "none"
|
|
19373
19376
|
}, required && /*#__PURE__*/React.createElement(StyledAsteriskLabel, {
|
|
@@ -19378,8 +19381,8 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19378
19381
|
testID: "input-label",
|
|
19379
19382
|
fontSize: "small",
|
|
19380
19383
|
themeVariant: variant
|
|
19381
|
-
}, label)), typeof prefix ===
|
|
19382
|
-
intent: variant ===
|
|
19384
|
+
}, label)), typeof prefix === "string" ? /*#__PURE__*/React.createElement(Icon, {
|
|
19385
|
+
intent: variant === "disabled" ? "disabled-text" : "text",
|
|
19383
19386
|
testID: "input-prefix",
|
|
19384
19387
|
icon: prefix,
|
|
19385
19388
|
size: "xsmall"
|
|
@@ -19392,11 +19395,11 @@ var TextInput = function TextInput(_ref2) {
|
|
|
19392
19395
|
testID: "input-label",
|
|
19393
19396
|
fontSize: "medium",
|
|
19394
19397
|
themeVariant: variant
|
|
19395
|
-
}, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React.createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix ===
|
|
19396
|
-
intent: variant ===
|
|
19398
|
+
}, label)), renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React.createElement(StyledTextInput, nativeInputProps)), typeof actualSuffix === "string" ? /*#__PURE__*/React.createElement(Icon, {
|
|
19399
|
+
intent: variant === "disabled" ? "disabled-text" : "text",
|
|
19397
19400
|
testID: "input-suffix",
|
|
19398
19401
|
icon: actualSuffix,
|
|
19399
|
-
spin: actualSuffix ===
|
|
19402
|
+
spin: actualSuffix === "loading",
|
|
19400
19403
|
size: "xsmall"
|
|
19401
19404
|
}) : suffix), /*#__PURE__*/React.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React.createElement(StyledErrorAndMaxLengthContainer, null, !!error && /*#__PURE__*/React.createElement(StyledErrorContainer$1, null, /*#__PURE__*/React.createElement(Icon, {
|
|
19402
19405
|
testID: "input-error-icon",
|
|
@@ -19467,7 +19470,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
19467
19470
|
}) : null);
|
|
19468
19471
|
};
|
|
19469
19472
|
|
|
19470
|
-
var StyledPickerWrapper$1 = index$
|
|
19473
|
+
var StyledPickerWrapper$1 = index$8(View)(function (_ref) {
|
|
19471
19474
|
var theme = _ref.theme;
|
|
19472
19475
|
return {
|
|
19473
19476
|
height: theme.__hd__.datePicker.sizes.height
|
|
@@ -19564,7 +19567,7 @@ var DatePicker = function DatePicker(props) {
|
|
|
19564
19567
|
};
|
|
19565
19568
|
|
|
19566
19569
|
var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
19567
|
-
var StyledContainer$2 = index$
|
|
19570
|
+
var StyledContainer$2 = index$8(View)(function (_ref) {
|
|
19568
19571
|
var theme = _ref.theme,
|
|
19569
19572
|
enableShadow = _ref.enableShadow;
|
|
19570
19573
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
@@ -19577,7 +19580,7 @@ var StyledContainer$2 = index$7(View)(function (_ref) {
|
|
|
19577
19580
|
elevation: 9999
|
|
19578
19581
|
});
|
|
19579
19582
|
});
|
|
19580
|
-
var StyledDragableContainer = index$
|
|
19583
|
+
var StyledDragableContainer = index$8(View)(function (_ref2) {
|
|
19581
19584
|
var theme = _ref2.theme,
|
|
19582
19585
|
enableShadow = _ref2.enableShadow;
|
|
19583
19586
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
@@ -19591,13 +19594,13 @@ var StyledDragableContainer = index$7(View)(function (_ref2) {
|
|
|
19591
19594
|
flexDirection: 'column-reverse'
|
|
19592
19595
|
});
|
|
19593
19596
|
});
|
|
19594
|
-
var StyledBackdrop$1 = index$
|
|
19597
|
+
var StyledBackdrop$1 = index$8(AnimatedPressable)(function (_ref3) {
|
|
19595
19598
|
var theme = _ref3.theme;
|
|
19596
19599
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
19597
19600
|
backgroundColor: theme.__hd__.drawer.colors.backdrop
|
|
19598
19601
|
});
|
|
19599
19602
|
});
|
|
19600
|
-
var StyledDrawerContainer = index$
|
|
19603
|
+
var StyledDrawerContainer = index$8(Animated.View)(function (_ref4) {
|
|
19601
19604
|
var theme = _ref4.theme,
|
|
19602
19605
|
enableShadow = _ref4.enableShadow;
|
|
19603
19606
|
return {
|
|
@@ -19608,7 +19611,7 @@ var StyledDrawerContainer = index$7(Animated.View)(function (_ref4) {
|
|
|
19608
19611
|
overflow: 'hidden'
|
|
19609
19612
|
};
|
|
19610
19613
|
});
|
|
19611
|
-
var StyledDragableDrawerContainer = index$
|
|
19614
|
+
var StyledDragableDrawerContainer = index$8(Animated.View)(function (_ref5) {
|
|
19612
19615
|
var theme = _ref5.theme,
|
|
19613
19616
|
enableShadow = _ref5.enableShadow;
|
|
19614
19617
|
return {
|
|
@@ -19620,7 +19623,7 @@ var StyledDragableDrawerContainer = index$7(Animated.View)(function (_ref5) {
|
|
|
19620
19623
|
maxHeight: '100%'
|
|
19621
19624
|
};
|
|
19622
19625
|
});
|
|
19623
|
-
var StyledHandlerContainer = index$
|
|
19626
|
+
var StyledHandlerContainer = index$8(View)(function (_ref6) {
|
|
19624
19627
|
var theme = _ref6.theme;
|
|
19625
19628
|
return {
|
|
19626
19629
|
backgroundColor: theme.__hd__.drawer.colors.background,
|
|
@@ -19628,7 +19631,7 @@ var StyledHandlerContainer = index$7(View)(function (_ref6) {
|
|
|
19628
19631
|
alignItems: 'center'
|
|
19629
19632
|
};
|
|
19630
19633
|
});
|
|
19631
|
-
var StyledHandler = index$
|
|
19634
|
+
var StyledHandler = index$8(View)(function (_ref7) {
|
|
19632
19635
|
var theme = _ref7.theme;
|
|
19633
19636
|
return {
|
|
19634
19637
|
width: theme.__hd__.drawer.sizes.handlerWidth,
|
|
@@ -19859,11 +19862,11 @@ var Drawer = function Drawer(_ref) {
|
|
|
19859
19862
|
}, children));
|
|
19860
19863
|
};
|
|
19861
19864
|
|
|
19862
|
-
var index$
|
|
19865
|
+
var index$6 = Object.assign(Drawer, {
|
|
19863
19866
|
Dragable: DragableDrawer
|
|
19864
19867
|
});
|
|
19865
19868
|
|
|
19866
|
-
var StyledWrapper$
|
|
19869
|
+
var StyledWrapper$5 = index$8(View)(function (_ref) {
|
|
19867
19870
|
var theme = _ref.theme;
|
|
19868
19871
|
return {
|
|
19869
19872
|
display: 'flex',
|
|
@@ -19874,7 +19877,7 @@ var StyledWrapper$4 = index$7(View)(function (_ref) {
|
|
|
19874
19877
|
padding: theme.__hd__.empty.space.wrapperPadding
|
|
19875
19878
|
};
|
|
19876
19879
|
});
|
|
19877
|
-
var StyledTitle = index$
|
|
19880
|
+
var StyledTitle = index$8(Text$1)(function (_ref2) {
|
|
19878
19881
|
var theme = _ref2.theme,
|
|
19879
19882
|
themeVariant = _ref2.themeVariant;
|
|
19880
19883
|
return {
|
|
@@ -19885,7 +19888,7 @@ var StyledTitle = index$7(Text$1)(function (_ref2) {
|
|
|
19885
19888
|
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
|
|
19886
19889
|
};
|
|
19887
19890
|
});
|
|
19888
|
-
var StyledDescription = index$
|
|
19891
|
+
var StyledDescription = index$8(Text$1)(function (_ref3) {
|
|
19889
19892
|
var theme = _ref3.theme,
|
|
19890
19893
|
themeVariant = _ref3.themeVariant;
|
|
19891
19894
|
return {
|
|
@@ -19905,7 +19908,7 @@ var Empty = function Empty(_ref) {
|
|
|
19905
19908
|
_ref$variant = _ref.variant,
|
|
19906
19909
|
variant = _ref$variant === void 0 ? 'light' : _ref$variant;
|
|
19907
19910
|
var theme = useTheme();
|
|
19908
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
19911
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$5, {
|
|
19909
19912
|
style: style,
|
|
19910
19913
|
testID: testID
|
|
19911
19914
|
}, image !== undefined && /*#__PURE__*/React.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
|
|
@@ -19919,7 +19922,7 @@ var Empty = function Empty(_ref) {
|
|
|
19919
19922
|
}, description));
|
|
19920
19923
|
};
|
|
19921
19924
|
|
|
19922
|
-
var StyledFABContainer = index$
|
|
19925
|
+
var StyledFABContainer = index$8(TouchableHighlight)(function (_ref) {
|
|
19923
19926
|
var theme = _ref.theme;
|
|
19924
19927
|
return {
|
|
19925
19928
|
backgroundColor: theme.__hd__.fab.colors.buttonBackground,
|
|
@@ -19933,7 +19936,7 @@ var StyledFABContainer = index$7(TouchableHighlight)(function (_ref) {
|
|
|
19933
19936
|
flexDirection: 'row'
|
|
19934
19937
|
};
|
|
19935
19938
|
});
|
|
19936
|
-
var StyledFABIcon = index$
|
|
19939
|
+
var StyledFABIcon = index$8(Icon)(function (_ref2) {
|
|
19937
19940
|
var theme = _ref2.theme;
|
|
19938
19941
|
return {
|
|
19939
19942
|
color: theme.__hd__.fab.colors.icon,
|
|
@@ -19942,7 +19945,7 @@ var StyledFABIcon = index$7(Icon)(function (_ref2) {
|
|
|
19942
19945
|
textAlign: 'center'
|
|
19943
19946
|
};
|
|
19944
19947
|
});
|
|
19945
|
-
var StyledFABText = index$
|
|
19948
|
+
var StyledFABText = index$8(Text$1)(function (_ref3) {
|
|
19946
19949
|
var theme = _ref3.theme;
|
|
19947
19950
|
return {
|
|
19948
19951
|
fontFamily: theme.__hd__.fab.fonts.title,
|
|
@@ -20039,7 +20042,7 @@ var FAB = function FAB(_ref3) {
|
|
|
20039
20042
|
}));
|
|
20040
20043
|
};
|
|
20041
20044
|
|
|
20042
|
-
var StyledActionItem = index$
|
|
20045
|
+
var StyledActionItem = index$8(TouchableOpacity)(function (_ref) {
|
|
20043
20046
|
var theme = _ref.theme;
|
|
20044
20047
|
return {
|
|
20045
20048
|
paddingLeft: theme.__hd__.fab.space.actionItemPaddingLeft,
|
|
@@ -20056,7 +20059,7 @@ var StyledActionItem = index$7(TouchableOpacity)(function (_ref) {
|
|
|
20056
20059
|
overflow: 'hidden'
|
|
20057
20060
|
};
|
|
20058
20061
|
});
|
|
20059
|
-
var StyledActionItemText = index$
|
|
20062
|
+
var StyledActionItemText = index$8(Typography.Text)(function (_ref2) {
|
|
20060
20063
|
var theme = _ref2.theme;
|
|
20061
20064
|
return {
|
|
20062
20065
|
paddingLeft: theme.__hd__.fab.space.actionItemTextPaddingLeft,
|
|
@@ -20066,7 +20069,7 @@ var StyledActionItemText = index$7(Typography.Text)(function (_ref2) {
|
|
|
20066
20069
|
color: theme.__hd__.fab.colors.actionItemText
|
|
20067
20070
|
};
|
|
20068
20071
|
});
|
|
20069
|
-
var StyledIcon = index$
|
|
20072
|
+
var StyledIcon = index$8(Icon)(function (_ref3) {
|
|
20070
20073
|
var theme = _ref3.theme;
|
|
20071
20074
|
return {
|
|
20072
20075
|
color: theme.__hd__.fab.colors.actionItemText
|
|
@@ -20088,7 +20091,7 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
20088
20091
|
}), /*#__PURE__*/React.createElement(StyledActionItemText, null, title));
|
|
20089
20092
|
};
|
|
20090
20093
|
|
|
20091
|
-
var StyledContainer$1 = index$
|
|
20094
|
+
var StyledContainer$1 = index$8(View)({
|
|
20092
20095
|
position: 'absolute',
|
|
20093
20096
|
left: 0,
|
|
20094
20097
|
right: 0,
|
|
@@ -20097,12 +20100,12 @@ var StyledContainer$1 = index$7(View)({
|
|
|
20097
20100
|
alignItems: 'flex-end',
|
|
20098
20101
|
justifyContent: 'flex-end'
|
|
20099
20102
|
});
|
|
20100
|
-
var StyledActionGroupContainer = index$
|
|
20103
|
+
var StyledActionGroupContainer = index$8(Animated.View)({
|
|
20101
20104
|
alignItems: 'flex-end',
|
|
20102
20105
|
justifyContent: 'flex-end',
|
|
20103
20106
|
width: '70%'
|
|
20104
20107
|
});
|
|
20105
|
-
var StyledFAB = index$
|
|
20108
|
+
var StyledFAB = index$8(FAB)(function (_ref) {
|
|
20106
20109
|
var theme = _ref.theme;
|
|
20107
20110
|
return {
|
|
20108
20111
|
marginRight: theme.__hd__.fab.space.buttonMarginRight,
|
|
@@ -20110,7 +20113,7 @@ var StyledFAB = index$7(FAB)(function (_ref) {
|
|
|
20110
20113
|
alignSelf: 'flex-end'
|
|
20111
20114
|
};
|
|
20112
20115
|
});
|
|
20113
|
-
var StyledBackdrop = index$
|
|
20116
|
+
var StyledBackdrop = index$8(Animated.View)(function (_ref2) {
|
|
20114
20117
|
var theme = _ref2.theme;
|
|
20115
20118
|
return {
|
|
20116
20119
|
position: 'absolute',
|
|
@@ -20121,7 +20124,7 @@ var StyledBackdrop = index$7(Animated.View)(function (_ref2) {
|
|
|
20121
20124
|
backgroundColor: theme.__hd__.fab.colors.backdropBackground
|
|
20122
20125
|
};
|
|
20123
20126
|
});
|
|
20124
|
-
var StyledHeaderText = index$
|
|
20127
|
+
var StyledHeaderText = index$8(Typography.Text)(function (_ref3) {
|
|
20125
20128
|
var theme = _ref3.theme;
|
|
20126
20129
|
return {
|
|
20127
20130
|
fontSize: theme.__hd__.fab.fontSizes.header,
|
|
@@ -20209,7 +20212,7 @@ var ActionGroup = function ActionGroup(_ref2) {
|
|
|
20209
20212
|
}));
|
|
20210
20213
|
};
|
|
20211
20214
|
|
|
20212
|
-
var index$
|
|
20215
|
+
var index$5 = Object.assign(FAB, {
|
|
20213
20216
|
ActionGroup: ActionGroup
|
|
20214
20217
|
});
|
|
20215
20218
|
|
|
@@ -20236,7 +20239,7 @@ var Image = function Image(_ref) {
|
|
|
20236
20239
|
}, imageNativeProps));
|
|
20237
20240
|
};
|
|
20238
20241
|
|
|
20239
|
-
var StyledListItemContainer$1 = index$
|
|
20242
|
+
var StyledListItemContainer$1 = index$8(TouchableHighlight)(function (_ref) {
|
|
20240
20243
|
var theme = _ref.theme,
|
|
20241
20244
|
_ref$themeSelected = _ref.themeSelected,
|
|
20242
20245
|
themeSelected = _ref$themeSelected === void 0 ? false : _ref$themeSelected,
|
|
@@ -20267,21 +20270,21 @@ var StyledListItemContainer$1 = index$7(TouchableHighlight)(function (_ref) {
|
|
|
20267
20270
|
return sharedStyles;
|
|
20268
20271
|
}
|
|
20269
20272
|
});
|
|
20270
|
-
var StyledContentContainer = index$
|
|
20273
|
+
var StyledContentContainer = index$8(View)(function () {
|
|
20271
20274
|
return {
|
|
20272
20275
|
flexDirection: 'column',
|
|
20273
20276
|
flex: 1,
|
|
20274
20277
|
flexGrow: 2
|
|
20275
20278
|
};
|
|
20276
20279
|
});
|
|
20277
|
-
var StyledChildrenContainer = index$
|
|
20280
|
+
var StyledChildrenContainer = index$8(View)(function () {
|
|
20278
20281
|
return {
|
|
20279
20282
|
flexDirection: 'column',
|
|
20280
20283
|
justifyContent: 'flex-start',
|
|
20281
20284
|
alignItems: 'flex-start'
|
|
20282
20285
|
};
|
|
20283
20286
|
});
|
|
20284
|
-
var StyledLeadingStatus = index$
|
|
20287
|
+
var StyledLeadingStatus = index$8(View)(function (_ref2) {
|
|
20285
20288
|
var theme = _ref2.theme,
|
|
20286
20289
|
themeLeadingStatusIntent = _ref2.themeLeadingStatusIntent;
|
|
20287
20290
|
return {
|
|
@@ -20291,19 +20294,19 @@ var StyledLeadingStatus = index$7(View)(function (_ref2) {
|
|
|
20291
20294
|
backgroundColor: theme.__hd__.list.colors.leadingStatus[themeLeadingStatusIntent]
|
|
20292
20295
|
};
|
|
20293
20296
|
});
|
|
20294
|
-
var StyledPrefixContainer$1 = index$
|
|
20297
|
+
var StyledPrefixContainer$1 = index$8(View)(function (_ref3) {
|
|
20295
20298
|
var theme = _ref3.theme;
|
|
20296
20299
|
return {
|
|
20297
20300
|
marginRight: theme.__hd__.list.space.prefixContainerMarginRight
|
|
20298
20301
|
};
|
|
20299
20302
|
});
|
|
20300
|
-
var StyledSuffixContainer$1 = index$
|
|
20303
|
+
var StyledSuffixContainer$1 = index$8(View)(function (_ref4) {
|
|
20301
20304
|
var theme = _ref4.theme;
|
|
20302
20305
|
return {
|
|
20303
20306
|
marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
|
|
20304
20307
|
};
|
|
20305
20308
|
});
|
|
20306
|
-
var StyledTitleContainer$1 = index$
|
|
20309
|
+
var StyledTitleContainer$1 = index$8(View)(function () {
|
|
20307
20310
|
return {
|
|
20308
20311
|
flex: 1
|
|
20309
20312
|
};
|
|
@@ -20358,24 +20361,24 @@ var ListItem = function ListItem(_ref) {
|
|
|
20358
20361
|
}) : suffix)), children && /*#__PURE__*/React.createElement(StyledChildrenContainer, null, children))));
|
|
20359
20362
|
};
|
|
20360
20363
|
|
|
20361
|
-
var StyledPrefixContainer = index$
|
|
20364
|
+
var StyledPrefixContainer = index$8(View)(function (_ref) {
|
|
20362
20365
|
var theme = _ref.theme;
|
|
20363
20366
|
return {
|
|
20364
20367
|
marginRight: theme.__hd__.list.space.prefixContainerMarginRight
|
|
20365
20368
|
};
|
|
20366
20369
|
});
|
|
20367
|
-
var StyledSuffixContainer = index$
|
|
20370
|
+
var StyledSuffixContainer = index$8(View)(function (_ref2) {
|
|
20368
20371
|
var theme = _ref2.theme;
|
|
20369
20372
|
return {
|
|
20370
20373
|
marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
|
|
20371
20374
|
};
|
|
20372
20375
|
});
|
|
20373
|
-
var StyledTitleContainer = index$
|
|
20376
|
+
var StyledTitleContainer = index$8(View)(function () {
|
|
20374
20377
|
return {
|
|
20375
20378
|
flex: 1
|
|
20376
20379
|
};
|
|
20377
20380
|
});
|
|
20378
|
-
var StyledListItemContainer = index$
|
|
20381
|
+
var StyledListItemContainer = index$8(TouchableHighlight)(function (_ref3) {
|
|
20379
20382
|
var theme = _ref3.theme,
|
|
20380
20383
|
themeSelected = _ref3.themeSelected,
|
|
20381
20384
|
themeDisabled = _ref3.themeDisabled;
|
|
@@ -20429,17 +20432,17 @@ var List = {
|
|
|
20429
20432
|
BasicItem: BasicListItem
|
|
20430
20433
|
};
|
|
20431
20434
|
|
|
20432
|
-
var StyledWrapper$
|
|
20435
|
+
var StyledWrapper$4 = index$8(View)(function () {
|
|
20433
20436
|
return {
|
|
20434
20437
|
alignContent: 'flex-start'
|
|
20435
20438
|
};
|
|
20436
20439
|
});
|
|
20437
|
-
var StyledPinWrapper = index$
|
|
20440
|
+
var StyledPinWrapper = index$8(View)(function () {
|
|
20438
20441
|
return {
|
|
20439
20442
|
flexDirection: 'row'
|
|
20440
20443
|
};
|
|
20441
20444
|
});
|
|
20442
|
-
var StyledCell = index$
|
|
20445
|
+
var StyledCell = index$8(View)(function (_ref) {
|
|
20443
20446
|
var theme = _ref.theme,
|
|
20444
20447
|
themeFocused = _ref.themeFocused,
|
|
20445
20448
|
themeState = _ref.themeState;
|
|
@@ -20453,7 +20456,7 @@ var StyledCell = index$7(View)(function (_ref) {
|
|
|
20453
20456
|
borderColor: theme.__hd__.pinInput.colors[themeState]
|
|
20454
20457
|
};
|
|
20455
20458
|
});
|
|
20456
|
-
var StyledCellText = index$
|
|
20459
|
+
var StyledCellText = index$8(Text$1)(function (_ref2) {
|
|
20457
20460
|
var theme = _ref2.theme,
|
|
20458
20461
|
themeState = _ref2.themeState;
|
|
20459
20462
|
return {
|
|
@@ -20462,13 +20465,13 @@ var StyledCellText = index$7(Text$1)(function (_ref2) {
|
|
|
20462
20465
|
color: theme.__hd__.pinInput.colors[themeState]
|
|
20463
20466
|
};
|
|
20464
20467
|
});
|
|
20465
|
-
var StyledSpacer = index$
|
|
20468
|
+
var StyledSpacer = index$8(View)(function (_ref3) {
|
|
20466
20469
|
var theme = _ref3.theme;
|
|
20467
20470
|
return {
|
|
20468
20471
|
marginLeft: theme.__hd__.pinInput.space.spacer
|
|
20469
20472
|
};
|
|
20470
20473
|
});
|
|
20471
|
-
var StyledMask = index$
|
|
20474
|
+
var StyledMask = index$8(View)(function (_ref4) {
|
|
20472
20475
|
var theme = _ref4.theme,
|
|
20473
20476
|
themeState = _ref4.themeState;
|
|
20474
20477
|
return {
|
|
@@ -20479,7 +20482,7 @@ var StyledMask = index$7(View)(function (_ref4) {
|
|
|
20479
20482
|
borderColor: theme.__hd__.pinInput.colors[themeState]
|
|
20480
20483
|
};
|
|
20481
20484
|
});
|
|
20482
|
-
var StyledFilledMask = index$
|
|
20485
|
+
var StyledFilledMask = index$8(View)(function (_ref5) {
|
|
20483
20486
|
var theme = _ref5.theme,
|
|
20484
20487
|
themeState = _ref5.themeState;
|
|
20485
20488
|
return {
|
|
@@ -20491,7 +20494,7 @@ var StyledFilledMask = index$7(View)(function (_ref5) {
|
|
|
20491
20494
|
backgroundColor: theme.__hd__.pinInput.colors[themeState]
|
|
20492
20495
|
};
|
|
20493
20496
|
});
|
|
20494
|
-
var StyledHiddenInput = index$
|
|
20497
|
+
var StyledHiddenInput = index$8(TextInput$1)(function (_ref6) {
|
|
20495
20498
|
var themePinLength = _ref6.themePinLength,
|
|
20496
20499
|
theme = _ref6.theme;
|
|
20497
20500
|
var cellWidth = theme.__hd__.pinInput.sizes.cellWidth;
|
|
@@ -20505,14 +20508,14 @@ var StyledHiddenInput = index$7(TextInput$1)(function (_ref6) {
|
|
|
20505
20508
|
height: '100%'
|
|
20506
20509
|
};
|
|
20507
20510
|
});
|
|
20508
|
-
var StyledErrorContainer = index$
|
|
20511
|
+
var StyledErrorContainer = index$8(View)(function (_ref7) {
|
|
20509
20512
|
var theme = _ref7.theme;
|
|
20510
20513
|
return {
|
|
20511
20514
|
flexDirection: 'row',
|
|
20512
20515
|
paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
|
|
20513
20516
|
};
|
|
20514
20517
|
});
|
|
20515
|
-
var StyledErrorMessage = index$
|
|
20518
|
+
var StyledErrorMessage = index$8(Text$1)(function (_ref8) {
|
|
20516
20519
|
var theme = _ref8.theme;
|
|
20517
20520
|
return {
|
|
20518
20521
|
fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
|
|
@@ -20615,7 +20618,7 @@ function PinInput(_ref2) {
|
|
|
20615
20618
|
InteractionManager.runAfterInteractions(focus);
|
|
20616
20619
|
}
|
|
20617
20620
|
}, [inputRef]);
|
|
20618
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
20621
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$4, {
|
|
20619
20622
|
style: style,
|
|
20620
20623
|
testID: testID
|
|
20621
20624
|
}, /*#__PURE__*/React.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
@@ -20654,14 +20657,14 @@ var INNER_CIRCLE_PERCENTAGE = 0.85; // 85% width according to design
|
|
|
20654
20657
|
|
|
20655
20658
|
var STROKE_WIDTH_PERCENTAGE = 0.075; // 7.5% width according to design
|
|
20656
20659
|
|
|
20657
|
-
var StyledContainer = index$
|
|
20660
|
+
var StyledContainer = index$8(View)(function (_ref) {
|
|
20658
20661
|
var theme = _ref.theme;
|
|
20659
20662
|
return {
|
|
20660
20663
|
flexDirection: 'row',
|
|
20661
20664
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
20662
20665
|
};
|
|
20663
20666
|
});
|
|
20664
|
-
var StyledHalfCircleWrapper = index$
|
|
20667
|
+
var StyledHalfCircleWrapper = index$8(View)(function (_ref2) {
|
|
20665
20668
|
var theme = _ref2.theme;
|
|
20666
20669
|
return {
|
|
20667
20670
|
width: theme.__hd__.progress.sizes.circleWidth / 2,
|
|
@@ -20669,7 +20672,7 @@ var StyledHalfCircleWrapper = index$7(View)(function (_ref2) {
|
|
|
20669
20672
|
overflow: 'hidden'
|
|
20670
20673
|
};
|
|
20671
20674
|
});
|
|
20672
|
-
var StyledHalfCircleInnerFG = index$
|
|
20675
|
+
var StyledHalfCircleInnerFG = index$8(View)(function (_ref3) {
|
|
20673
20676
|
var theme = _ref3.theme,
|
|
20674
20677
|
themeIntent = _ref3.themeIntent;
|
|
20675
20678
|
return {
|
|
@@ -20679,7 +20682,7 @@ var StyledHalfCircleInnerFG = index$7(View)(function (_ref3) {
|
|
|
20679
20682
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
20680
20683
|
};
|
|
20681
20684
|
});
|
|
20682
|
-
var StyledHalfCircleInnerBG = index$
|
|
20685
|
+
var StyledHalfCircleInnerBG = index$8(View)(function (_ref4) {
|
|
20683
20686
|
var theme = _ref4.theme;
|
|
20684
20687
|
return {
|
|
20685
20688
|
width: theme.__hd__.progress.sizes.circleWidth,
|
|
@@ -20688,7 +20691,7 @@ var StyledHalfCircleInnerBG = index$7(View)(function (_ref4) {
|
|
|
20688
20691
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
20689
20692
|
};
|
|
20690
20693
|
});
|
|
20691
|
-
var StyledDonutCircle = index$
|
|
20694
|
+
var StyledDonutCircle = index$8(View)(function (_ref5) {
|
|
20692
20695
|
var theme = _ref5.theme;
|
|
20693
20696
|
return {
|
|
20694
20697
|
position: 'absolute',
|
|
@@ -20703,7 +20706,7 @@ var StyledDonutCircle = index$7(View)(function (_ref5) {
|
|
|
20703
20706
|
justifyContent: 'center'
|
|
20704
20707
|
};
|
|
20705
20708
|
});
|
|
20706
|
-
var StyledStrokeEnd = index$
|
|
20709
|
+
var StyledStrokeEnd = index$8(View)(function (_ref6) {
|
|
20707
20710
|
var theme = _ref6.theme,
|
|
20708
20711
|
themeIntent = _ref6.themeIntent;
|
|
20709
20712
|
return {
|
|
@@ -20831,7 +20834,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
20831
20834
|
}, "".concat(value, "%")))));
|
|
20832
20835
|
};
|
|
20833
20836
|
|
|
20834
|
-
var StyledWrapper$
|
|
20837
|
+
var StyledWrapper$3 = index$8(View)(function (_ref) {
|
|
20835
20838
|
var theme = _ref.theme;
|
|
20836
20839
|
return {
|
|
20837
20840
|
height: theme.__hd__.progress.sizes.barHeight,
|
|
@@ -20840,7 +20843,7 @@ var StyledWrapper$2 = index$7(View)(function (_ref) {
|
|
|
20840
20843
|
overflow: 'hidden'
|
|
20841
20844
|
};
|
|
20842
20845
|
});
|
|
20843
|
-
var StyledInner = index$
|
|
20846
|
+
var StyledInner = index$8(Animated.View)(function (_ref2) {
|
|
20844
20847
|
var theme = _ref2.theme,
|
|
20845
20848
|
themeIntent = _ref2.themeIntent;
|
|
20846
20849
|
return {
|
|
@@ -20886,7 +20889,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
20886
20889
|
outputRange: [999, 0],
|
|
20887
20890
|
extrapolate: 'clamp'
|
|
20888
20891
|
});
|
|
20889
|
-
return /*#__PURE__*/React.createElement(StyledWrapper$
|
|
20892
|
+
return /*#__PURE__*/React.createElement(StyledWrapper$3, _extends$1({}, nativeProps, {
|
|
20890
20893
|
testID: testID,
|
|
20891
20894
|
style: style
|
|
20892
20895
|
}), /*#__PURE__*/React.createElement(StyledInner, {
|
|
@@ -20944,13 +20947,13 @@ var Slider = function Slider(_ref) {
|
|
|
20944
20947
|
});
|
|
20945
20948
|
};
|
|
20946
20949
|
|
|
20947
|
-
var StyledView$1 = index$
|
|
20948
|
-
var StyledSpinnerContainer = index$
|
|
20950
|
+
var StyledView$1 = index$8(View)();
|
|
20951
|
+
var StyledSpinnerContainer = index$8(View)({
|
|
20949
20952
|
height: '100%',
|
|
20950
20953
|
justifyContent: 'center',
|
|
20951
20954
|
alignItems: 'center'
|
|
20952
20955
|
});
|
|
20953
|
-
var StyledSpinnerRow = index$
|
|
20956
|
+
var StyledSpinnerRow = index$8(View)(function (_ref) {
|
|
20954
20957
|
var themePosition = _ref.themePosition,
|
|
20955
20958
|
_ref$themeSize = _ref.themeSize,
|
|
20956
20959
|
themeSize = _ref$themeSize === void 0 ? 'medium' : _ref$themeSize,
|
|
@@ -20960,7 +20963,7 @@ var StyledSpinnerRow = index$7(View)(function (_ref) {
|
|
|
20960
20963
|
marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding[themeSize] : 0
|
|
20961
20964
|
};
|
|
20962
20965
|
});
|
|
20963
|
-
var StyledSpinnerDot = index$
|
|
20966
|
+
var StyledSpinnerDot = index$8(View)(function (_ref2) {
|
|
20964
20967
|
var themePosition = _ref2.themePosition,
|
|
20965
20968
|
_ref2$themeSize = _ref2.themeSize,
|
|
20966
20969
|
themeSize = _ref2$themeSize === void 0 ? 'medium' : _ref2$themeSize,
|
|
@@ -21064,7 +21067,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
21064
21067
|
})));
|
|
21065
21068
|
};
|
|
21066
21069
|
|
|
21067
|
-
var Circle = index$
|
|
21070
|
+
var Circle = index$8(View)(function (_ref) {
|
|
21068
21071
|
var theme = _ref.theme;
|
|
21069
21072
|
return {
|
|
21070
21073
|
height: theme.__hd__.radio.sizes.circle,
|
|
@@ -21076,7 +21079,7 @@ var Circle = index$7(View)(function (_ref) {
|
|
|
21076
21079
|
justifyContent: 'center'
|
|
21077
21080
|
};
|
|
21078
21081
|
});
|
|
21079
|
-
var InnerCircle = index$
|
|
21082
|
+
var InnerCircle = index$8(View)(function (_ref2) {
|
|
21080
21083
|
var theme = _ref2.theme;
|
|
21081
21084
|
return {
|
|
21082
21085
|
height: theme.__hd__.radio.sizes.innerCircle,
|
|
@@ -21085,7 +21088,7 @@ var InnerCircle = index$7(View)(function (_ref2) {
|
|
|
21085
21088
|
backgroundColor: theme.__hd__.radio.colors.circle
|
|
21086
21089
|
};
|
|
21087
21090
|
});
|
|
21088
|
-
var Spacer = index$
|
|
21091
|
+
var Spacer = index$8(View)(function (_ref3) {
|
|
21089
21092
|
var theme = _ref3.theme;
|
|
21090
21093
|
return {
|
|
21091
21094
|
marginTop: theme.__hd__.radio.space.groupTopMargin
|
|
@@ -21161,7 +21164,7 @@ var CompoundRadio = {
|
|
|
21161
21164
|
Group: RadioGroup
|
|
21162
21165
|
};
|
|
21163
21166
|
|
|
21164
|
-
var StyledHeading = index$
|
|
21167
|
+
var StyledHeading = index$8(View)(function (_ref) {
|
|
21165
21168
|
var theme = _ref.theme;
|
|
21166
21169
|
return {
|
|
21167
21170
|
paddingVertical: theme.__hd__.sectionHeading.space.headingVerticalPadding,
|
|
@@ -21174,13 +21177,13 @@ var StyledHeading = index$7(View)(function (_ref) {
|
|
|
21174
21177
|
justifyContent: 'space-between'
|
|
21175
21178
|
};
|
|
21176
21179
|
});
|
|
21177
|
-
var StyledIconWrapper = index$
|
|
21180
|
+
var StyledIconWrapper$1 = index$8(View)(function (_ref2) {
|
|
21178
21181
|
var theme = _ref2.theme;
|
|
21179
21182
|
return {
|
|
21180
21183
|
marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
|
|
21181
21184
|
};
|
|
21182
21185
|
});
|
|
21183
|
-
var StyledWrapper$
|
|
21186
|
+
var StyledWrapper$2 = index$8(View)(function () {
|
|
21184
21187
|
return {
|
|
21185
21188
|
display: 'flex',
|
|
21186
21189
|
flexDirection: 'row'
|
|
@@ -21214,7 +21217,7 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
21214
21217
|
return /*#__PURE__*/React.createElement(StyledHeading, {
|
|
21215
21218
|
style: style,
|
|
21216
21219
|
testID: testID
|
|
21217
|
-
}, /*#__PURE__*/React.createElement(StyledWrapper$
|
|
21220
|
+
}, /*#__PURE__*/React.createElement(StyledWrapper$2, null, /*#__PURE__*/React.createElement(StyledIconWrapper$1, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
21218
21221
|
icon: icon,
|
|
21219
21222
|
size: ICON_SIZE_MAP[fontSize],
|
|
21220
21223
|
intent: ICON_INTENT_MAP[intent]
|
|
@@ -21228,25 +21231,25 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
21228
21231
|
}, text)), rightChildren);
|
|
21229
21232
|
};
|
|
21230
21233
|
|
|
21231
|
-
var SectionSpacer = index$
|
|
21234
|
+
var SectionSpacer = index$8(View)(function (_ref) {
|
|
21232
21235
|
var theme = _ref.theme;
|
|
21233
21236
|
return {
|
|
21234
21237
|
marginTop: theme.__hd__.select.space.sectionSpacing
|
|
21235
21238
|
};
|
|
21236
21239
|
});
|
|
21237
|
-
var OptionSpacer = index$
|
|
21240
|
+
var OptionSpacer = index$8(View)(function (_ref2) {
|
|
21238
21241
|
var theme = _ref2.theme;
|
|
21239
21242
|
return {
|
|
21240
21243
|
marginTop: theme.__hd__.select.space.optionSpacing
|
|
21241
21244
|
};
|
|
21242
21245
|
});
|
|
21243
|
-
var FooterText = index$
|
|
21246
|
+
var FooterText = index$8(Typography.Text)(function (_ref3) {
|
|
21244
21247
|
var theme = _ref3.theme;
|
|
21245
21248
|
return {
|
|
21246
21249
|
color: theme.__hd__.select.colors.footerText
|
|
21247
21250
|
};
|
|
21248
21251
|
});
|
|
21249
|
-
var StyledSearchBar = index$
|
|
21252
|
+
var StyledSearchBar = index$8(View)(function (_ref4) {
|
|
21250
21253
|
var theme = _ref4.theme;
|
|
21251
21254
|
return {
|
|
21252
21255
|
marginTop: theme.__hd__.select.space.searchBarMarginTopSpacing,
|
|
@@ -21319,7 +21322,7 @@ var StyledOptionList = function StyledOptionList(_ref) {
|
|
|
21319
21322
|
});
|
|
21320
21323
|
};
|
|
21321
21324
|
|
|
21322
|
-
var Option$
|
|
21325
|
+
var Option$2 = function Option(_ref) {
|
|
21323
21326
|
var text = _ref.text,
|
|
21324
21327
|
_ref$disabled = _ref.disabled,
|
|
21325
21328
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
@@ -21366,7 +21369,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
21366
21369
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
21367
21370
|
selected: selected,
|
|
21368
21371
|
onPress: onItemPress
|
|
21369
|
-
})) : /*#__PURE__*/React.createElement(Option$
|
|
21372
|
+
})) : /*#__PURE__*/React.createElement(Option$2, {
|
|
21370
21373
|
selected: selected,
|
|
21371
21374
|
text: item.text,
|
|
21372
21375
|
disabled: item.disabled,
|
|
@@ -21564,7 +21567,7 @@ function MultiSelect(_ref) {
|
|
|
21564
21567
|
})));
|
|
21565
21568
|
}
|
|
21566
21569
|
|
|
21567
|
-
var Option = function Option(_ref) {
|
|
21570
|
+
var Option$1 = function Option(_ref) {
|
|
21568
21571
|
var text = _ref.text,
|
|
21569
21572
|
_ref$disabled = _ref.disabled,
|
|
21570
21573
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
@@ -21608,7 +21611,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
21608
21611
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
21609
21612
|
selected: selected,
|
|
21610
21613
|
onPress: onItemPress
|
|
21611
|
-
})) : /*#__PURE__*/React.createElement(Option, {
|
|
21614
|
+
})) : /*#__PURE__*/React.createElement(Option$1, {
|
|
21612
21615
|
selected: selected,
|
|
21613
21616
|
text: item.text,
|
|
21614
21617
|
disabled: item.disabled,
|
|
@@ -21730,11 +21733,11 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
21730
21733
|
})));
|
|
21731
21734
|
};
|
|
21732
21735
|
|
|
21733
|
-
var index$
|
|
21736
|
+
var index$4 = Object.assign(SingleSelect, {
|
|
21734
21737
|
Multi: MultiSelect
|
|
21735
21738
|
});
|
|
21736
21739
|
|
|
21737
|
-
var StyledWrapper = index$
|
|
21740
|
+
var StyledWrapper$1 = index$8(View)(function (_ref) {
|
|
21738
21741
|
var theme = _ref.theme,
|
|
21739
21742
|
themeVariant = _ref.themeVariant,
|
|
21740
21743
|
themeSize = _ref.themeSize;
|
|
@@ -21748,7 +21751,7 @@ var StyledWrapper = index$7(View)(function (_ref) {
|
|
|
21748
21751
|
justifyContent: 'center'
|
|
21749
21752
|
};
|
|
21750
21753
|
});
|
|
21751
|
-
var StyledKnot = index$
|
|
21754
|
+
var StyledKnot = index$8(Animated.View)(function (_ref2) {
|
|
21752
21755
|
var theme = _ref2.theme,
|
|
21753
21756
|
themeSize = _ref2.themeSize;
|
|
21754
21757
|
return {
|
|
@@ -21759,6 +21762,107 @@ var StyledKnot = index$7(Animated.View)(function (_ref2) {
|
|
|
21759
21762
|
};
|
|
21760
21763
|
});
|
|
21761
21764
|
|
|
21765
|
+
var StyledWrapper = index$8(View)(function (_ref) {
|
|
21766
|
+
var theme = _ref.theme;
|
|
21767
|
+
return {
|
|
21768
|
+
flexDirection: 'row',
|
|
21769
|
+
width: '100%',
|
|
21770
|
+
height: theme.__hd__["switch"].sizes.selector.height,
|
|
21771
|
+
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
21772
|
+
backgroundColor: theme.__hd__["switch"].colors.selector.background,
|
|
21773
|
+
padding: theme.__hd__["switch"].spaces.selector.wrapperPadding
|
|
21774
|
+
};
|
|
21775
|
+
});
|
|
21776
|
+
var StyledTextWrapper = index$8(View)(function (_ref2) {
|
|
21777
|
+
var theme = _ref2.theme;
|
|
21778
|
+
return {
|
|
21779
|
+
flex: 1,
|
|
21780
|
+
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
21781
|
+
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground,
|
|
21782
|
+
justifyContent: 'center',
|
|
21783
|
+
alignItems: 'center'
|
|
21784
|
+
};
|
|
21785
|
+
});
|
|
21786
|
+
var StyledIconWrapper = index$8(View)(function (_ref3) {
|
|
21787
|
+
var theme = _ref3.theme;
|
|
21788
|
+
return {
|
|
21789
|
+
paddingHorizontal: theme.__hd__["switch"].spaces.selector.iconPadding,
|
|
21790
|
+
justifyContent: 'center',
|
|
21791
|
+
alignItems: 'center'
|
|
21792
|
+
};
|
|
21793
|
+
});
|
|
21794
|
+
|
|
21795
|
+
var OptionContent = function OptionContent(_ref) {
|
|
21796
|
+
var content = _ref.content,
|
|
21797
|
+
badge = _ref.badge;
|
|
21798
|
+
var theme = useTheme();
|
|
21799
|
+
|
|
21800
|
+
if (!badge) {
|
|
21801
|
+
return content;
|
|
21802
|
+
}
|
|
21803
|
+
|
|
21804
|
+
if (badge.type === 'status') {
|
|
21805
|
+
return /*#__PURE__*/React.createElement(Badge$1.Status, {
|
|
21806
|
+
visible: true,
|
|
21807
|
+
style: {
|
|
21808
|
+
paddingHorizontal: theme.space.small
|
|
21809
|
+
},
|
|
21810
|
+
testID: "selector-switch-status-badge"
|
|
21811
|
+
}, content);
|
|
21812
|
+
}
|
|
21813
|
+
|
|
21814
|
+
return content;
|
|
21815
|
+
};
|
|
21816
|
+
|
|
21817
|
+
var Option = function Option(_ref2) {
|
|
21818
|
+
var text = _ref2.text,
|
|
21819
|
+
icon = _ref2.icon,
|
|
21820
|
+
badge = _ref2.badge,
|
|
21821
|
+
selected = _ref2.selected;
|
|
21822
|
+
|
|
21823
|
+
if (selected) {
|
|
21824
|
+
return /*#__PURE__*/React.createElement(StyledTextWrapper, null, /*#__PURE__*/React.createElement(OptionContent, {
|
|
21825
|
+
content: /*#__PURE__*/React.createElement(Typography.Text, {
|
|
21826
|
+
fontSize: "large",
|
|
21827
|
+
intent: "inverted"
|
|
21828
|
+
}, text),
|
|
21829
|
+
badge: badge
|
|
21830
|
+
}));
|
|
21831
|
+
}
|
|
21832
|
+
|
|
21833
|
+
return /*#__PURE__*/React.createElement(StyledIconWrapper, null, /*#__PURE__*/React.createElement(OptionContent, {
|
|
21834
|
+
content: /*#__PURE__*/React.createElement(Icon, {
|
|
21835
|
+
icon: icon
|
|
21836
|
+
}),
|
|
21837
|
+
badge: badge
|
|
21838
|
+
}));
|
|
21839
|
+
};
|
|
21840
|
+
|
|
21841
|
+
var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
21842
|
+
var options = _ref.options,
|
|
21843
|
+
value = _ref.value,
|
|
21844
|
+
_onPress = _ref.onPress,
|
|
21845
|
+
style = _ref.style,
|
|
21846
|
+
testID = _ref.testID;
|
|
21847
|
+
return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
|
|
21848
|
+
onPress: function onPress() {
|
|
21849
|
+
return _onPress(value);
|
|
21850
|
+
},
|
|
21851
|
+
testID: testID
|
|
21852
|
+
}, /*#__PURE__*/React.createElement(StyledWrapper, {
|
|
21853
|
+
style: style
|
|
21854
|
+
}, options.map(function (opt, index) {
|
|
21855
|
+
return (
|
|
21856
|
+
/*#__PURE__*/
|
|
21857
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
21858
|
+
React.createElement(Option, _extends$1({}, opt, {
|
|
21859
|
+
selected: opt.value === value,
|
|
21860
|
+
key: index
|
|
21861
|
+
}))
|
|
21862
|
+
);
|
|
21863
|
+
})));
|
|
21864
|
+
};
|
|
21865
|
+
|
|
21762
21866
|
var getVariant = function getVariant(_ref) {
|
|
21763
21867
|
var disabled = _ref.disabled,
|
|
21764
21868
|
checked = _ref.checked;
|
|
@@ -21804,7 +21908,7 @@ var Switch = function Switch(_ref2) {
|
|
|
21804
21908
|
testID: testID,
|
|
21805
21909
|
onPress: onPress,
|
|
21806
21910
|
disabled: disabled
|
|
21807
|
-
}, /*#__PURE__*/React.createElement(StyledWrapper, {
|
|
21911
|
+
}, /*#__PURE__*/React.createElement(StyledWrapper$1, {
|
|
21808
21912
|
themeVariant: variant,
|
|
21809
21913
|
themeSize: size,
|
|
21810
21914
|
style: style
|
|
@@ -21816,12 +21920,16 @@ var Switch = function Switch(_ref2) {
|
|
|
21816
21920
|
})));
|
|
21817
21921
|
};
|
|
21818
21922
|
|
|
21923
|
+
var index$3 = Object.assign(Switch, {
|
|
21924
|
+
Selector: SelectorSwitch
|
|
21925
|
+
});
|
|
21926
|
+
|
|
21819
21927
|
var AnimatedPagerView = Animated.createAnimatedComponent(PagerView);
|
|
21820
|
-
var TabContainer$1 = index$
|
|
21928
|
+
var TabContainer$1 = index$8(View)({
|
|
21821
21929
|
flex: 1,
|
|
21822
21930
|
overflow: 'hidden'
|
|
21823
21931
|
});
|
|
21824
|
-
var HeaderTabWrapper$1 = index$
|
|
21932
|
+
var HeaderTabWrapper$1 = index$8(View)(function (_ref) {
|
|
21825
21933
|
var theme = _ref.theme,
|
|
21826
21934
|
themeInsets = _ref.themeInsets;
|
|
21827
21935
|
return {
|
|
@@ -21830,10 +21938,10 @@ var HeaderTabWrapper$1 = index$7(View)(function (_ref) {
|
|
|
21830
21938
|
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
|
|
21831
21939
|
};
|
|
21832
21940
|
});
|
|
21833
|
-
var HeaderTab = index$
|
|
21941
|
+
var HeaderTab = index$8(View)({
|
|
21834
21942
|
flexDirection: 'row'
|
|
21835
21943
|
});
|
|
21836
|
-
var HeaderTabItem$1 = index$
|
|
21944
|
+
var HeaderTabItem$1 = index$8(View)(function (_ref2) {
|
|
21837
21945
|
var theme = _ref2.theme;
|
|
21838
21946
|
return {
|
|
21839
21947
|
flex: 1,
|
|
@@ -21841,13 +21949,13 @@ var HeaderTabItem$1 = index$7(View)(function (_ref2) {
|
|
|
21841
21949
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
21842
21950
|
};
|
|
21843
21951
|
});
|
|
21844
|
-
var ContentWrapper$1 = index$
|
|
21952
|
+
var ContentWrapper$1 = index$8(AnimatedPagerView)({
|
|
21845
21953
|
flex: 1
|
|
21846
21954
|
});
|
|
21847
|
-
var TabScreen$1 = index$
|
|
21955
|
+
var TabScreen$1 = index$8(View)({
|
|
21848
21956
|
flex: 1
|
|
21849
21957
|
});
|
|
21850
|
-
var StyledIndicator = index$
|
|
21958
|
+
var StyledIndicator = index$8(Animated.View)(function (_ref3) {
|
|
21851
21959
|
var theme = _ref3.theme,
|
|
21852
21960
|
themeWidth = _ref3.themeWidth;
|
|
21853
21961
|
return {
|
|
@@ -21858,7 +21966,7 @@ var StyledIndicator = index$7(Animated.View)(function (_ref3) {
|
|
|
21858
21966
|
bottom: 0
|
|
21859
21967
|
};
|
|
21860
21968
|
});
|
|
21861
|
-
var StyledBadgeWrapper = index$
|
|
21969
|
+
var StyledBadgeWrapper = index$8(View)({
|
|
21862
21970
|
flexDirection: 'row',
|
|
21863
21971
|
alignItems: 'center'
|
|
21864
21972
|
});
|
|
@@ -21884,17 +21992,17 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
21884
21992
|
});
|
|
21885
21993
|
};
|
|
21886
21994
|
|
|
21887
|
-
var TabScreen = index$
|
|
21995
|
+
var TabScreen = index$8(View)({
|
|
21888
21996
|
flex: 1
|
|
21889
21997
|
});
|
|
21890
|
-
var TabContainer = index$
|
|
21998
|
+
var TabContainer = index$8(View)({
|
|
21891
21999
|
flex: 1,
|
|
21892
22000
|
overflow: 'hidden'
|
|
21893
22001
|
});
|
|
21894
|
-
var ContentWrapper = index$
|
|
22002
|
+
var ContentWrapper = index$8(PagerView)({
|
|
21895
22003
|
flex: 1
|
|
21896
22004
|
});
|
|
21897
|
-
var HeaderTabWrapper = index$
|
|
22005
|
+
var HeaderTabWrapper = index$8(View)(function (_ref) {
|
|
21898
22006
|
var theme = _ref.theme,
|
|
21899
22007
|
themeInsets = _ref.themeInsets;
|
|
21900
22008
|
return {
|
|
@@ -21903,7 +22011,7 @@ var HeaderTabWrapper = index$7(View)(function (_ref) {
|
|
|
21903
22011
|
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
|
|
21904
22012
|
};
|
|
21905
22013
|
});
|
|
21906
|
-
var HeaderTabItem = index$
|
|
22014
|
+
var HeaderTabItem = index$8(Animated.View)(function (_ref2) {
|
|
21907
22015
|
var theme = _ref2.theme,
|
|
21908
22016
|
isFirstItem = _ref2.isFirstItem;
|
|
21909
22017
|
return {
|
|
@@ -21911,13 +22019,13 @@ var HeaderTabItem = index$7(Animated.View)(function (_ref2) {
|
|
|
21911
22019
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
21912
22020
|
};
|
|
21913
22021
|
});
|
|
21914
|
-
var HeaderTabItemOutlineWrapper = index$
|
|
22022
|
+
var HeaderTabItemOutlineWrapper = index$8(View)(function (_ref3) {
|
|
21915
22023
|
var theme = _ref3.theme;
|
|
21916
22024
|
return _objectSpread2({
|
|
21917
22025
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
21918
22026
|
}, StyleSheet$1.absoluteFillObject);
|
|
21919
22027
|
});
|
|
21920
|
-
var HeaderTabItemOutline = index$
|
|
22028
|
+
var HeaderTabItemOutline = index$8(Animated.View)(function (_ref4) {
|
|
21921
22029
|
var theme = _ref4.theme,
|
|
21922
22030
|
themeActive = _ref4.themeActive;
|
|
21923
22031
|
return {
|
|
@@ -21925,7 +22033,7 @@ var HeaderTabItemOutline = index$7(Animated.View)(function (_ref4) {
|
|
|
21925
22033
|
backgroundColor: themeActive ? theme.__hd__.tabs.colors.activeBackground : undefined
|
|
21926
22034
|
};
|
|
21927
22035
|
});
|
|
21928
|
-
var HeaderTabItemWrapper = index$
|
|
22036
|
+
var HeaderTabItemWrapper = index$8(View)(function (_ref5) {
|
|
21929
22037
|
var theme = _ref5.theme;
|
|
21930
22038
|
return {
|
|
21931
22039
|
paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
|
|
@@ -22023,7 +22131,8 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
22023
22131
|
_ref2$lazy = _ref2.lazy,
|
|
22024
22132
|
lazy = _ref2$lazy === void 0 ? false : _ref2$lazy,
|
|
22025
22133
|
_ref2$lazyPreloadDist = _ref2.lazyPreloadDistance,
|
|
22026
|
-
lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist
|
|
22134
|
+
lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist,
|
|
22135
|
+
componentTestID = _ref2.testID;
|
|
22027
22136
|
var flatListRef = React.useRef(null);
|
|
22028
22137
|
var pagerViewRef = React.useRef(null);
|
|
22029
22138
|
var insets = useSafeAreaInsets();
|
|
@@ -22058,10 +22167,12 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
22058
22167
|
};
|
|
22059
22168
|
}, [selectedTabIndex]);
|
|
22060
22169
|
return /*#__PURE__*/React.createElement(TabContainer, {
|
|
22061
|
-
style: containerStyle
|
|
22170
|
+
style: containerStyle,
|
|
22171
|
+
testID: componentTestID
|
|
22062
22172
|
}, /*#__PURE__*/React.createElement(HeaderTabWrapper, {
|
|
22063
22173
|
themeInsets: insets,
|
|
22064
|
-
style: barStyle
|
|
22174
|
+
style: barStyle,
|
|
22175
|
+
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
22065
22176
|
}, /*#__PURE__*/React.createElement(FlatList, {
|
|
22066
22177
|
ref: flatListRef,
|
|
22067
22178
|
horizontal: true,
|
|
@@ -22184,7 +22295,8 @@ var Tabs = function Tabs(_ref2) {
|
|
|
22184
22295
|
_ref2$lazy = _ref2.lazy,
|
|
22185
22296
|
lazy = _ref2$lazy === void 0 ? false : _ref2$lazy,
|
|
22186
22297
|
_ref2$lazyPreloadDist = _ref2.lazyPreloadDistance,
|
|
22187
|
-
lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist
|
|
22298
|
+
lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist,
|
|
22299
|
+
componentTestID = _ref2.testID;
|
|
22188
22300
|
var theme = useTheme$1();
|
|
22189
22301
|
var insets = useSafeAreaInsets();
|
|
22190
22302
|
var pagerViewRef = React.useRef(null);
|
|
@@ -22207,10 +22319,12 @@ var Tabs = function Tabs(_ref2) {
|
|
|
22207
22319
|
}
|
|
22208
22320
|
}, [selectedTabIndex]);
|
|
22209
22321
|
return /*#__PURE__*/React.createElement(TabContainer$1, {
|
|
22210
|
-
style: containerStyle
|
|
22322
|
+
style: containerStyle,
|
|
22323
|
+
testID: componentTestID
|
|
22211
22324
|
}, /*#__PURE__*/React.createElement(HeaderTabWrapper$1, {
|
|
22212
22325
|
themeInsets: insets,
|
|
22213
|
-
style: barStyle
|
|
22326
|
+
style: barStyle,
|
|
22327
|
+
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
22214
22328
|
}, /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(HeaderTab, {
|
|
22215
22329
|
onLayout: function onLayout(e) {
|
|
22216
22330
|
var width = e.nativeEvent.layout.width;
|
|
@@ -22289,7 +22403,7 @@ var index$2 = Object.assign(Tabs, {
|
|
|
22289
22403
|
Scroll: ScrollableTab
|
|
22290
22404
|
});
|
|
22291
22405
|
|
|
22292
|
-
var StyledView = index$
|
|
22406
|
+
var StyledView = index$8(View)(function (_ref) {
|
|
22293
22407
|
var themeIntent = _ref.themeIntent,
|
|
22294
22408
|
theme = _ref.theme;
|
|
22295
22409
|
return {
|
|
@@ -22301,7 +22415,7 @@ var StyledView = index$7(View)(function (_ref) {
|
|
|
22301
22415
|
backgroundColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")]
|
|
22302
22416
|
};
|
|
22303
22417
|
});
|
|
22304
|
-
var StyledText = index$
|
|
22418
|
+
var StyledText = index$8(Text$1)(function (_ref2) {
|
|
22305
22419
|
var themeIntent = _ref2.themeIntent,
|
|
22306
22420
|
theme = _ref2.theme;
|
|
22307
22421
|
return {
|
|
@@ -22391,7 +22505,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
22391
22505
|
}) : null);
|
|
22392
22506
|
};
|
|
22393
22507
|
|
|
22394
|
-
var StyledPickerWrapper = index$
|
|
22508
|
+
var StyledPickerWrapper = index$8(View)(function (_ref) {
|
|
22395
22509
|
var theme = _ref.theme;
|
|
22396
22510
|
return {
|
|
22397
22511
|
height: theme.__hd__.timePicker.sizes.height
|
|
@@ -22491,7 +22605,7 @@ var TimePicker = function TimePicker(props) {
|
|
|
22491
22605
|
return /*#__PURE__*/React.createElement(TimePickerAndroid, props);
|
|
22492
22606
|
};
|
|
22493
22607
|
|
|
22494
|
-
var ToastContainerWrapper = index$
|
|
22608
|
+
var ToastContainerWrapper = index$8(View)(function (_ref) {
|
|
22495
22609
|
var theme = _ref.theme,
|
|
22496
22610
|
position = _ref.position;
|
|
22497
22611
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
@@ -22501,7 +22615,7 @@ var ToastContainerWrapper = index$7(View)(function (_ref) {
|
|
|
22501
22615
|
elevation: 9999
|
|
22502
22616
|
});
|
|
22503
22617
|
});
|
|
22504
|
-
var Container = index$
|
|
22618
|
+
var Container = index$8(Animated.View)(function (_ref2) {
|
|
22505
22619
|
var theme = _ref2.theme,
|
|
22506
22620
|
themeVariant = _ref2.themeVariant,
|
|
22507
22621
|
themeIntent = _ref2.themeIntent;
|
|
@@ -22517,21 +22631,21 @@ var Container = index$7(Animated.View)(function (_ref2) {
|
|
|
22517
22631
|
elevation: theme.__hd__.toast.shadows.elevation
|
|
22518
22632
|
};
|
|
22519
22633
|
});
|
|
22520
|
-
var IconContainer = index$
|
|
22634
|
+
var IconContainer = index$8(View)(function (_ref3) {
|
|
22521
22635
|
var theme = _ref3.theme;
|
|
22522
22636
|
return {
|
|
22523
22637
|
alignItems: 'center',
|
|
22524
22638
|
paddingLeft: theme.__hd__.toast.space.iconLeftPadding
|
|
22525
22639
|
};
|
|
22526
22640
|
});
|
|
22527
|
-
var TextContainer = index$
|
|
22641
|
+
var TextContainer = index$8(View)(function (_ref4) {
|
|
22528
22642
|
var theme = _ref4.theme;
|
|
22529
22643
|
return {
|
|
22530
22644
|
paddingHorizontal: theme.__hd__.toast.space.textHorizontalPadding,
|
|
22531
22645
|
flex: 1
|
|
22532
22646
|
};
|
|
22533
22647
|
});
|
|
22534
|
-
var ContentContainer = index$
|
|
22648
|
+
var ContentContainer = index$8(View)(function (_ref5) {
|
|
22535
22649
|
var theme = _ref5.theme,
|
|
22536
22650
|
showDivider = _ref5.showDivider;
|
|
22537
22651
|
return {
|
|
@@ -22542,7 +22656,7 @@ var ContentContainer = index$7(View)(function (_ref5) {
|
|
|
22542
22656
|
flexDirection: 'row'
|
|
22543
22657
|
};
|
|
22544
22658
|
});
|
|
22545
|
-
var CTAWrapper = index$
|
|
22659
|
+
var CTAWrapper = index$8(TouchableOpacity)(function (_ref6) {
|
|
22546
22660
|
var theme = _ref6.theme;
|
|
22547
22661
|
return {
|
|
22548
22662
|
paddingHorizontal: theme.__hd__.toast.space.ctaPadding,
|
|
@@ -22803,7 +22917,7 @@ var Toast = {
|
|
|
22803
22917
|
useToast: useToast
|
|
22804
22918
|
};
|
|
22805
22919
|
|
|
22806
|
-
var ToolbarWrapper = index$
|
|
22920
|
+
var ToolbarWrapper = index$8(View)(function (_ref) {
|
|
22807
22921
|
var theme = _ref.theme;
|
|
22808
22922
|
return {
|
|
22809
22923
|
position: 'absolute',
|
|
@@ -22827,7 +22941,7 @@ var alignment = {
|
|
|
22827
22941
|
center: 'center',
|
|
22828
22942
|
right: 'flex-end'
|
|
22829
22943
|
};
|
|
22830
|
-
var ToolbarGroupWrapper = index$
|
|
22944
|
+
var ToolbarGroupWrapper = index$8(View)(function (_ref2) {
|
|
22831
22945
|
var align = _ref2.align;
|
|
22832
22946
|
return {
|
|
22833
22947
|
flex: 1,
|
|
@@ -22836,7 +22950,7 @@ var ToolbarGroupWrapper = index$7(View)(function (_ref2) {
|
|
|
22836
22950
|
alignItems: 'center'
|
|
22837
22951
|
};
|
|
22838
22952
|
});
|
|
22839
|
-
var ToolbarItemWrapper = index$
|
|
22953
|
+
var ToolbarItemWrapper = index$8(TouchableOpacity)(function (_ref3) {
|
|
22840
22954
|
var theme = _ref3.theme;
|
|
22841
22955
|
return {
|
|
22842
22956
|
paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
|
|
@@ -22916,7 +23030,7 @@ var ToolbarEvents;
|
|
|
22916
23030
|
var emitter = new EventEmitter();
|
|
22917
23031
|
emitter.setMaxListeners(20);
|
|
22918
23032
|
|
|
22919
|
-
var StyledToolbarButton = index$
|
|
23033
|
+
var StyledToolbarButton = index$8(TouchableOpacity)(function (_ref) {
|
|
22920
23034
|
var theme = _ref.theme,
|
|
22921
23035
|
selected = _ref.selected;
|
|
22922
23036
|
return {
|
|
@@ -22927,7 +23041,7 @@ var StyledToolbarButton = index$7(TouchableOpacity)(function (_ref) {
|
|
|
22927
23041
|
backgroundColor: selected ? theme.__hd__.richTextEditor.colors.toolbarButtonSelectedBackground : undefined
|
|
22928
23042
|
};
|
|
22929
23043
|
});
|
|
22930
|
-
var StyledToolbar = index$
|
|
23044
|
+
var StyledToolbar = index$8(View)(function (_ref2) {
|
|
22931
23045
|
var theme = _ref2.theme;
|
|
22932
23046
|
return {
|
|
22933
23047
|
flexDirection: 'row',
|
|
@@ -22938,7 +23052,7 @@ var StyledToolbar = index$7(View)(function (_ref2) {
|
|
|
22938
23052
|
paddingHorizontal: theme.__hd__.richTextEditor.space.toolbarHorizontalPadding
|
|
22939
23053
|
};
|
|
22940
23054
|
});
|
|
22941
|
-
var StyledSeparator = index$
|
|
23055
|
+
var StyledSeparator = index$8(View)(function (_ref3) {
|
|
22942
23056
|
var theme = _ref3.theme;
|
|
22943
23057
|
return {
|
|
22944
23058
|
width: theme.__hd__.richTextEditor.sizes.toolbarSeparatorWidth,
|
|
@@ -40909,13 +41023,13 @@ function checkDCE() {
|
|
|
40909
41023
|
});
|
|
40910
41024
|
})(lib);
|
|
40911
41025
|
|
|
40912
|
-
index$
|
|
41026
|
+
index$8(View)(function (_ref) {
|
|
40913
41027
|
var theme = _ref.theme;
|
|
40914
41028
|
return {
|
|
40915
41029
|
marginBottom: theme.__hd__.richTextEditor.space.wrapperMarginBottom
|
|
40916
41030
|
};
|
|
40917
41031
|
});
|
|
40918
|
-
var StyledWebView = index$
|
|
41032
|
+
var StyledWebView = index$8(WebView)(function (_ref2) {
|
|
40919
41033
|
var height = _ref2.height,
|
|
40920
41034
|
theme = _ref2.theme;
|
|
40921
41035
|
return {
|
|
@@ -41169,4 +41283,4 @@ var index = Object.assign(RichTextEditor$1, {
|
|
|
41169
41283
|
Toolbar: EditorToolbar
|
|
41170
41284
|
});
|
|
41171
41285
|
|
|
41172
|
-
export { Accordion, Alert, Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet, Box, CompoundButton as Button, Calendar, index$
|
|
41286
|
+
export { Accordion, Alert, Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet, Box, CompoundButton as Button, Calendar, index$7 as Card, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty, index$5 as FAB, Icon, Image, List, PinInput, Progress, CompoundRadio as Radio, index as RichTextEditor, SectionHeading, index$4 as Select, Slider, Spinner, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, TimePicker, Toast, index$1 as Toolbar, Typography, getTheme$1 as getTheme, scale, swagSystemPalette, defaultTheme as theme, useTheme, workSystemPalette };
|