@draftbit/core 46.6.6 → 46.6.7
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/lib/commonjs/components/CardBlock.js +4 -13
- package/lib/commonjs/components/CardContainerRating.js +4 -13
- package/lib/commonjs/components/Checkbox/Checkbox.js +4 -22
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +5 -23
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +6 -23
- package/lib/commonjs/components/Container.js +4 -15
- package/lib/commonjs/components/DatePicker/DatePicker.js +13 -26
- package/lib/commonjs/components/DeprecatedFAB.js +3 -21
- package/lib/commonjs/components/Divider.js +1 -14
- package/lib/commonjs/components/FAB.js +4 -18
- package/lib/commonjs/components/FormRow.js +2 -16
- package/lib/commonjs/components/IconButton.js +4 -19
- package/lib/commonjs/components/Image.js +2 -17
- package/lib/commonjs/components/Justification.js +1 -5
- package/lib/commonjs/components/Layout.js +19 -40
- package/lib/commonjs/components/Picker/Picker.js +1 -1
- package/lib/commonjs/components/Picker/PickerComponent.web.js +4 -19
- package/lib/commonjs/components/Portal/PortalHost.js +15 -44
- package/lib/commonjs/components/Portal/PortalManager.js +8 -34
- package/lib/commonjs/components/Pressable.js +2 -15
- package/lib/commonjs/components/ProgressBar.js +7 -37
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +1 -9
- package/lib/commonjs/components/ResizeMode.js +1 -5
- package/lib/commonjs/components/ScreenContainer.js +4 -20
- package/lib/commonjs/components/StepIndicator.js +18 -57
- package/lib/commonjs/components/Stepper.js +0 -1
- package/lib/commonjs/components/Surface.js +2 -14
- package/lib/commonjs/components/Switch.js +10 -19
- package/lib/commonjs/components/TextField.js +28 -76
- package/lib/commonjs/components/ToggleButton.js +2 -15
- package/lib/commonjs/components/Touchable.js +2 -15
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/mappings/FieldSearchBarFull.js +1 -3
- package/lib/commonjs/utilities.js +2 -1
- package/lib/module/components/Accordion/AccordionItem.js +4 -25
- package/lib/module/components/AnimatedCircularProgress.js +1 -13
- package/lib/module/components/AspectRatio.js +1 -18
- package/lib/module/components/AvatarEdit.js +4 -15
- package/lib/module/components/CardContainerRating.js +4 -14
- package/lib/module/components/CardContainerShortImage.js +4 -18
- package/lib/module/components/Checkbox/Checkbox.js +4 -25
- package/lib/module/components/Checkbox/CheckboxGroup.js +2 -16
- package/lib/module/components/CircleImage.js +1 -16
- package/lib/module/components/CircularProgress.js +8 -28
- package/lib/module/components/Container.js +4 -17
- package/lib/module/components/DatePicker/DatePicker.js +13 -27
- package/lib/module/components/DeprecatedCardWrapper.js +1 -18
- package/lib/module/components/DeprecatedFAB.js +3 -23
- package/lib/module/components/Elevation.js +2 -14
- package/lib/module/components/FAB.js +4 -22
- package/lib/module/components/FieldSearchBarFull.js +2 -1
- package/lib/module/components/IconButton.js +4 -21
- package/lib/module/components/Justification.js +0 -1
- package/lib/module/components/Picker/Picker.js +1 -1
- package/lib/module/components/Picker/PickerComponent.web.js +4 -19
- package/lib/module/components/Portal/Portal.js +3 -28
- package/lib/module/components/Portal/PortalHost.js +15 -45
- package/lib/module/components/Portal/PortalManager.js +7 -33
- package/lib/module/components/ProgressBar.js +7 -39
- package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +1 -10
- package/lib/module/components/RadioButton/context.js +1 -1
- package/lib/module/components/ResizeMode.js +0 -1
- package/lib/module/components/StarRating.js +4 -24
- package/lib/module/components/Stepper.js +1 -1
- package/lib/module/components/Surface.js +1 -15
- package/lib/module/components/TextField.js +28 -78
- package/lib/module/components/ToggleButton.js +2 -16
- package/lib/module/components/Touchable.js +2 -15
- package/lib/module/constants.js +0 -1
- package/lib/module/mappings/StarRating.js +2 -7
- package/lib/module/utilities.js +2 -1
- package/package.json +3 -3
- package/src/Provider.js +0 -9
- package/src/components/Accordion/AccordionGroup.js +0 -44
- package/src/components/Accordion/AccordionItem.js +0 -32
- package/src/components/Accordion/index.js +0 -2
- package/src/components/ActionSheet/ActionSheet.js +0 -45
- package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
- package/src/components/ActionSheet/ActionSheetItem.js +0 -30
- package/src/components/ActionSheet/index.js +0 -3
- package/src/components/AnimatedCircularProgress.js +0 -43
- package/src/components/AspectRatio.js +0 -18
- package/src/components/AvatarEdit.js +0 -30
- package/src/components/Banner.js +0 -109
- package/src/components/Button.js +0 -114
- package/src/components/Card.js +0 -57
- package/src/components/CardBlock.js +0 -54
- package/src/components/CardContainer.js +0 -69
- package/src/components/CardContainerRating.js +0 -79
- package/src/components/CardContainerShortImage.js +0 -33
- package/src/components/CardInline.js +0 -36
- package/src/components/Carousel.js +0 -68
- package/src/components/Checkbox/Checkbox.js +0 -62
- package/src/components/Checkbox/CheckboxGroup.js +0 -21
- package/src/components/Checkbox/CheckboxGroupRow.js +0 -76
- package/src/components/Checkbox/CheckboxRow.js +0 -77
- package/src/components/Checkbox/context.js +0 -14
- package/src/components/Checkbox/index.js +0 -3
- package/src/components/CircleImage.js +0 -8
- package/src/components/CircularProgress.js +0 -81
- package/src/components/Config.js +0 -64
- package/src/components/Container.js +0 -43
- package/src/components/DatePicker/DatePicker.js +0 -377
- package/src/components/DatePicker/DatePickerComponent.js +0 -13
- package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
- package/src/components/DatePicker/DatePickerComponentType.js +0 -1
- package/src/components/DeprecatedButton.js +0 -83
- package/src/components/DeprecatedCardWrapper.js +0 -18
- package/src/components/DeprecatedFAB.js +0 -114
- package/src/components/Divider.js +0 -13
- package/src/components/Elevation.js +0 -20
- package/src/components/FAB.js +0 -46
- package/src/components/FieldSearchBarFull.js +0 -53
- package/src/components/FormRow.js +0 -19
- package/src/components/Header.js +0 -44
- package/src/components/HeaderLarge.js +0 -7
- package/src/components/HeaderMedium.js +0 -7
- package/src/components/HeaderOverline.js +0 -7
- package/src/components/IconButton.js +0 -35
- package/src/components/Image.js +0 -47
- package/src/components/Justification.js +0 -1
- package/src/components/Layout.js +0 -50
- package/src/components/NumberInput.js +0 -49
- package/src/components/Picker/Picker.js +0 -267
- package/src/components/Picker/PickerComponent.android.js +0 -69
- package/src/components/Picker/PickerComponent.ios.js +0 -79
- package/src/components/Picker/PickerComponent.web.js +0 -70
- package/src/components/Picker/PickerTypes.js +0 -1
- package/src/components/Portal/Portal.js +0 -35
- package/src/components/Portal/PortalConsumer.js +0 -27
- package/src/components/Portal/PortalHost.js +0 -107
- package/src/components/Portal/PortalManager.js +0 -32
- package/src/components/Pressable.js +0 -12
- package/src/components/ProgressBar.js +0 -118
- package/src/components/ProgressCircle.js +0 -13
- package/src/components/ProgressIndicator.js +0 -27
- package/src/components/RadioButton/RadioButton.js +0 -17
- package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
- package/src/components/RadioButton/RadioButtonGroup.js +0 -43
- package/src/components/RadioButton/RadioButtonRow.js +0 -76
- package/src/components/RadioButton/context.js +0 -14
- package/src/components/RadioButton/index.js +0 -4
- package/src/components/ResizeMode.js +0 -1
- package/src/components/Row.js +0 -48
- package/src/components/RowBodyIcon.js +0 -8
- package/src/components/RowHeadlineImageCaption.js +0 -12
- package/src/components/RowHeadlineImageIcon.js +0 -14
- package/src/components/SVG.js +0 -13
- package/src/components/ScreenContainer.js +0 -34
- package/src/components/Slider.js +0 -63
- package/src/components/StarRating.js +0 -50
- package/src/components/StepIndicator.js +0 -346
- package/src/components/Stepper.js +0 -41
- package/src/components/Surface.js +0 -32
- package/src/components/Swiper/Swiper.js +0 -29
- package/src/components/Swiper/SwiperItem.js +0 -9
- package/src/components/Swiper/index.js +0 -2
- package/src/components/Switch.js +0 -56
- package/src/components/Text.js +0 -33
- package/src/components/TextField.js +0 -428
- package/src/components/ToggleButton.js +0 -39
- package/src/components/Touchable.js +0 -12
- package/src/components/Touchable.web.js +0 -2
- package/src/components/Typography.js +0 -36
- package/src/components/useAuthState.js +0 -31
- package/src/constants.js +0 -10
- package/src/hooks.js +0 -12
- package/src/index.js +0 -53
- package/src/interfaces/Icon.js +0 -8
- package/src/mappings/Accordion.js +0 -41
- package/src/mappings/AccordionItem.js +0 -16
- package/src/mappings/ActionSheet.js +0 -13
- package/src/mappings/ActionSheetCancel.js +0 -19
- package/src/mappings/ActionSheetItem.js +0 -23
- package/src/mappings/ActivityIndicator.js +0 -58
- package/src/mappings/AudioPlayer.js +0 -57
- package/src/mappings/AvatarEdit.js +0 -38
- package/src/mappings/Banner.js +0 -32
- package/src/mappings/BlurView.js +0 -42
- package/src/mappings/Button.js +0 -116
- package/src/mappings/Card.js +0 -52
- package/src/mappings/CardBlock.js +0 -123
- package/src/mappings/CardContainer.js +0 -104
- package/src/mappings/CardContainerRating.js +0 -126
- package/src/mappings/CardContainerShortImage.js +0 -120
- package/src/mappings/CardInline.js +0 -52
- package/src/mappings/Carousel.js +0 -19
- package/src/mappings/Checkbox.js +0 -46
- package/src/mappings/CheckboxGroup.js +0 -26
- package/src/mappings/CheckboxRow.js +0 -61
- package/src/mappings/CircleImage.js +0 -25
- package/src/mappings/Container.js +0 -30
- package/src/mappings/CustomCode.js +0 -8
- package/src/mappings/DatePicker.js +0 -176
- package/src/mappings/Divider.js +0 -27
- package/src/mappings/FAB.js +0 -37
- package/src/mappings/Fetch.js +0 -13
- package/src/mappings/FieldSearchBarFull.js +0 -50
- package/src/mappings/FlashList.js +0 -79
- package/src/mappings/FlatList.js +0 -36
- package/src/mappings/HeaderLarge.js +0 -29
- package/src/mappings/HeaderMedium.js +0 -55
- package/src/mappings/HeaderOverline.js +0 -55
- package/src/mappings/Icon.js +0 -32
- package/src/mappings/IconButton.js +0 -35
- package/src/mappings/Image.js +0 -35
- package/src/mappings/ImageBackground.js +0 -29
- package/src/mappings/KeyboardAvoidingView.js +0 -41
- package/src/mappings/KeyboardAwareScrollView.js +0 -50
- package/src/mappings/Layout.js +0 -200
- package/src/mappings/LinearGradient.js +0 -77
- package/src/mappings/MapCallout.js +0 -21
- package/src/mappings/MapMarker.js +0 -47
- package/src/mappings/MapView.js +0 -139
- package/src/mappings/Modal.js +0 -42
- package/src/mappings/NumberInput.js +0 -254
- package/src/mappings/Picker.js +0 -148
- package/src/mappings/ProgressBar.js +0 -101
- package/src/mappings/ProgressCircle.js +0 -109
- package/src/mappings/ProgressIndicator.js +0 -181
- package/src/mappings/RadioButton.js +0 -51
- package/src/mappings/RadioButtonGroup.js +0 -17
- package/src/mappings/RadioButtonRow.js +0 -42
- package/src/mappings/RowBodyIcon.js +0 -75
- package/src/mappings/RowHeadlineImageCaption.js +0 -167
- package/src/mappings/RowHeadlineImageIcon.js +0 -99
- package/src/mappings/SVG.js +0 -20
- package/src/mappings/SafeAreaView.js +0 -33
- package/src/mappings/ScrollView.js +0 -31
- package/src/mappings/Slider.js +0 -60
- package/src/mappings/StarRating.js +0 -43
- package/src/mappings/Stepper.js +0 -32
- package/src/mappings/Surface.js +0 -14
- package/src/mappings/Swiper.js +0 -62
- package/src/mappings/SwiperItem.js +0 -8
- package/src/mappings/Switch.js +0 -81
- package/src/mappings/Text.js +0 -251
- package/src/mappings/TextArea.js +0 -274
- package/src/mappings/TextField.js +0 -391
- package/src/mappings/TextInput.js +0 -402
- package/src/mappings/ToggleButton.js +0 -50
- package/src/mappings/Touchable.js +0 -60
- package/src/mappings/Video.js +0 -81
- package/src/mappings/View.js +0 -207
- package/src/mappings/WebView.js +0 -88
- package/src/styles/DarkTheme.js +0 -26
- package/src/styles/DefaultTheme.js +0 -111
- package/src/styles/fonts.js +0 -62
- package/src/styles/overlay.js +0 -60
- package/src/styles/shadow.js +0 -51
- package/src/theming.js +0 -3
- package/src/utilities.js +0 -102
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View } from "react-native";
|
|
3
4
|
import Touchable from "./Touchable";
|
|
@@ -22,10 +23,9 @@ const AvatarEdit = _ref => {
|
|
|
22
23
|
width: size,
|
|
23
24
|
height: size
|
|
24
25
|
};
|
|
25
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
26
|
-
style: [style, dimensions]
|
|
27
|
-
|
|
28
|
-
}, /*#__PURE__*/React.createElement(Touchable, {
|
|
26
|
+
return /*#__PURE__*/React.createElement(View, _extends({
|
|
27
|
+
style: [style, dimensions]
|
|
28
|
+
}, rest), /*#__PURE__*/React.createElement(Touchable, {
|
|
29
29
|
onPress: onPress
|
|
30
30
|
}, /*#__PURE__*/React.createElement(CircleImage, {
|
|
31
31
|
source: image,
|
|
@@ -46,15 +46,4 @@ const AvatarEdit = _ref => {
|
|
|
46
46
|
size: size * (3 / 16)
|
|
47
47
|
}))));
|
|
48
48
|
};
|
|
49
|
-
export default withTheme(AvatarEdit);yles.editBorderColor,
|
|
50
|
-
backgroundColor: colorStyles.editBackgroundColor,
|
|
51
|
-
borderRadius: size * (3 / 16),
|
|
52
|
-
padding: size * (3 / 32)
|
|
53
|
-
}
|
|
54
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
55
|
-
name: "MaterialIcons/edit",
|
|
56
|
-
color: colorStyles.editIconColor,
|
|
57
|
-
size: size * (3 / 16)
|
|
58
|
-
}))));
|
|
59
|
-
};
|
|
60
49
|
export default withTheme(AvatarEdit);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { View, Text } from "react-native";
|
|
3
4
|
import color from "color";
|
|
@@ -41,12 +42,11 @@ const CardContainerRating = _ref => {
|
|
|
41
42
|
rightDescriptionStyle = typography.caption;
|
|
42
43
|
break;
|
|
43
44
|
}
|
|
44
|
-
return /*#__PURE__*/React.createElement(Card, {
|
|
45
|
+
return /*#__PURE__*/React.createElement(Card, _extends({
|
|
45
46
|
style: style,
|
|
46
47
|
onPress: onPress,
|
|
47
|
-
numColumns: numColumns
|
|
48
|
-
|
|
49
|
-
}, /*#__PURE__*/React.createElement(Elevation, {
|
|
48
|
+
numColumns: numColumns
|
|
49
|
+
}, rest), /*#__PURE__*/React.createElement(Elevation, {
|
|
50
50
|
style: {
|
|
51
51
|
elevation,
|
|
52
52
|
borderRadius: roundness
|
|
@@ -122,14 +122,4 @@ const CardContainerRating = _ref => {
|
|
|
122
122
|
color: colors.surface
|
|
123
123
|
})) : null)));
|
|
124
124
|
};
|
|
125
|
-
export default withTheme(CardContainerRating);ER_PADDING,
|
|
126
|
-
borderRadius: ICON_CONTAINER_SIZE,
|
|
127
|
-
backgroundColor: color(colors.strong).alpha(Config.cardIconBackgroundOpacity).rgb().string()
|
|
128
|
-
}
|
|
129
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
130
|
-
name: icon,
|
|
131
|
-
size: Config.cardIconSize,
|
|
132
|
-
color: colors.surface
|
|
133
|
-
})) : null)));
|
|
134
|
-
};
|
|
135
125
|
export default withTheme(CardContainerRating);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { View, Text } from "react-native";
|
|
3
4
|
import Image from "./Image";
|
|
@@ -22,11 +23,10 @@ const CardContainerShortImage = _ref => {
|
|
|
22
23
|
onPress,
|
|
23
24
|
...rest
|
|
24
25
|
} = _ref;
|
|
25
|
-
return /*#__PURE__*/React.createElement(Card, {
|
|
26
|
+
return /*#__PURE__*/React.createElement(Card, _extends({
|
|
26
27
|
style: style,
|
|
27
|
-
onPress: onPress
|
|
28
|
-
|
|
29
|
-
}, /*#__PURE__*/React.createElement(Elevation, {
|
|
28
|
+
onPress: onPress
|
|
29
|
+
}, rest), /*#__PURE__*/React.createElement(Elevation, {
|
|
30
30
|
style: {
|
|
31
31
|
elevation,
|
|
32
32
|
borderRadius: roundness
|
|
@@ -73,18 +73,4 @@ const CardContainerShortImage = _ref => {
|
|
|
73
73
|
resizeMode: "cover"
|
|
74
74
|
}))));
|
|
75
75
|
};
|
|
76
|
-
export default withTheme(CardContainerShortImage);2, {
|
|
77
|
-
color: colors.medium,
|
|
78
|
-
marginTop: 4
|
|
79
|
-
}]
|
|
80
|
-
}, subtitle) : null), mode === "right" && /*#__PURE__*/React.createElement(Image, {
|
|
81
|
-
style: {
|
|
82
|
-
aspectRatio
|
|
83
|
-
},
|
|
84
|
-
source: typeof image === "string" ? {
|
|
85
|
-
uri: image
|
|
86
|
-
} : image,
|
|
87
|
-
resizeMode: "cover"
|
|
88
|
-
}))));
|
|
89
|
-
};
|
|
90
76
|
export default withTheme(CardContainerShortImage);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View, StyleSheet, Pressable } from "react-native";
|
|
3
4
|
import { useTheme } from "../../theming";
|
|
@@ -25,6 +26,7 @@ const Checkbox = _ref => {
|
|
|
25
26
|
setInternalValue(status);
|
|
26
27
|
}
|
|
27
28
|
}, [status]);
|
|
29
|
+
|
|
28
30
|
// This special logic is to handle weird APIs like Airtable that return
|
|
29
31
|
// true or undefined for a boolean
|
|
30
32
|
const previousDefaultValue = usePrevious(defaultValue);
|
|
@@ -48,8 +50,7 @@ const Checkbox = _ref => {
|
|
|
48
50
|
onUncheck === null || onUncheck === void 0 ? void 0 : onUncheck();
|
|
49
51
|
}
|
|
50
52
|
};
|
|
51
|
-
return /*#__PURE__*/React.createElement(Pressable, {
|
|
52
|
-
...rest,
|
|
53
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({}, rest, {
|
|
53
54
|
onPress: handlePress,
|
|
54
55
|
disabled: disabled,
|
|
55
56
|
accessibilityState: {
|
|
@@ -61,7 +62,7 @@ const Checkbox = _ref => {
|
|
|
61
62
|
width: size,
|
|
62
63
|
height: size
|
|
63
64
|
}]
|
|
64
|
-
}, /*#__PURE__*/React.createElement(Icon, {
|
|
65
|
+
}), /*#__PURE__*/React.createElement(Icon, {
|
|
65
66
|
style: styles.icon,
|
|
66
67
|
name: internalValue ? checkedIcon : uncheckedIcon,
|
|
67
68
|
size: size,
|
|
@@ -94,26 +95,4 @@ const styles = StyleSheet.create({
|
|
|
94
95
|
alignSelf: "center"
|
|
95
96
|
}
|
|
96
97
|
});
|
|
97
|
-
export default Checkbox;or: checkboxColor
|
|
98
|
-
}]
|
|
99
|
-
})));
|
|
100
|
-
};
|
|
101
|
-
const styles = StyleSheet.create({
|
|
102
|
-
container: {
|
|
103
|
-
borderRadius: 18
|
|
104
|
-
},
|
|
105
|
-
fillContainer: {
|
|
106
|
-
alignItems: "center",
|
|
107
|
-
justifyContent: "center"
|
|
108
|
-
},
|
|
109
|
-
icon: {
|
|
110
|
-
alignSelf: "center"
|
|
111
|
-
},
|
|
112
|
-
fill: {
|
|
113
|
-
borderRadius: 5,
|
|
114
|
-
width: 30,
|
|
115
|
-
height: 30,
|
|
116
|
-
alignSelf: "center"
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
98
|
export default Checkbox;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View } from "react-native";
|
|
3
4
|
import { checkboxGroupContext, Direction } from "./context";
|
|
@@ -22,22 +23,7 @@ const CheckboxGroup = _ref => {
|
|
|
22
23
|
alignItems: "center"
|
|
23
24
|
});
|
|
24
25
|
}
|
|
25
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
26
|
-
style: [{
|
|
27
|
-
minHeight: 40
|
|
28
|
-
}, style],
|
|
29
|
-
...rest
|
|
30
|
-
}, /*#__PURE__*/React.createElement(Provider, {
|
|
31
|
-
value: {
|
|
32
|
-
values,
|
|
33
|
-
onValueChange,
|
|
34
|
-
direction
|
|
35
|
-
}
|
|
36
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
37
|
-
style: _containerStyle
|
|
38
|
-
}, children)));
|
|
39
|
-
};
|
|
40
|
-
export default CheckboxGroup;PURE__*/React.createElement(View, _extends({
|
|
26
|
+
return /*#__PURE__*/React.createElement(View, _extends({
|
|
41
27
|
style: [{
|
|
42
28
|
minHeight: 40
|
|
43
29
|
}, style]
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { Image } from "react-native";
|
|
3
4
|
import Config from "./Config";
|
|
@@ -9,22 +10,6 @@ const CircleImage = _ref => {
|
|
|
9
10
|
...props
|
|
10
11
|
} = _ref;
|
|
11
12
|
const borderRadius = size / 2;
|
|
12
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
13
|
-
style: [{
|
|
14
|
-
width: size,
|
|
15
|
-
height: size,
|
|
16
|
-
borderRadius
|
|
17
|
-
}, style],
|
|
18
|
-
source: typeof source === "string" ? {
|
|
19
|
-
uri: source
|
|
20
|
-
} : source,
|
|
21
|
-
resizeMode: "cover",
|
|
22
|
-
...props
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
export default CircleImage;props
|
|
26
|
-
} = _ref;
|
|
27
|
-
const borderRadius = size / 2;
|
|
28
13
|
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
29
14
|
style: [{
|
|
30
15
|
width: size,
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1
4
|
import React from "react";
|
|
2
5
|
import { View } from "react-native";
|
|
3
6
|
import { Svg, Path, G } from "react-native-svg";
|
|
4
7
|
class CircularProgress extends React.Component {
|
|
5
8
|
constructor() {
|
|
6
9
|
super(...arguments);
|
|
7
|
-
this
|
|
10
|
+
_defineProperty(this, "polarToCartesian", (centerX, centerY, radius, angleInDegrees) => {
|
|
8
11
|
var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;
|
|
9
12
|
return {
|
|
10
13
|
x: centerX + radius * Math.cos(angleInRadians),
|
|
11
14
|
y: centerY + radius * Math.sin(angleInRadians)
|
|
12
15
|
};
|
|
13
|
-
};
|
|
14
|
-
this
|
|
16
|
+
});
|
|
17
|
+
_defineProperty(this, "circlePath", (x, y, radius, startAngle, endAngle) => {
|
|
15
18
|
var start = this.polarToCartesian(x, y, radius, endAngle * 0.9999);
|
|
16
19
|
var end = this.polarToCartesian(x, y, radius, startAngle);
|
|
17
20
|
var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1";
|
|
18
21
|
var d = ["M", start.x, start.y, "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y];
|
|
19
22
|
return d.join(" ");
|
|
20
|
-
};
|
|
21
|
-
this
|
|
23
|
+
});
|
|
24
|
+
_defineProperty(this, "clampFill", fill => Math.min(100, Math.max(0, fill)));
|
|
22
25
|
}
|
|
23
26
|
render() {
|
|
24
27
|
const {
|
|
@@ -98,27 +101,4 @@ class CircularProgress extends React.Component {
|
|
|
98
101
|
}, children(fill)));
|
|
99
102
|
}
|
|
100
103
|
}
|
|
101
|
-
export default CircularProgress;eElement(G, {
|
|
102
|
-
rotation: rotation,
|
|
103
|
-
originX: (size + padding) / 2,
|
|
104
|
-
originY: (size + padding) / 2
|
|
105
|
-
}, backgroundColor && /*#__PURE__*/React.createElement(Path, {
|
|
106
|
-
d: backgroundPath,
|
|
107
|
-
stroke: backgroundColor,
|
|
108
|
-
strokeWidth: backgroundWidth || width,
|
|
109
|
-
strokeLinecap: lineCap,
|
|
110
|
-
strokeDasharray: strokeDasharrayBackground,
|
|
111
|
-
fill: "transparent"
|
|
112
|
-
}), fill > 0 && /*#__PURE__*/React.createElement(Path, {
|
|
113
|
-
d: circlePathItem,
|
|
114
|
-
stroke: tintColor,
|
|
115
|
-
strokeWidth: width,
|
|
116
|
-
strokeLinecap: lineCap,
|
|
117
|
-
strokeDasharray: strokeDasharrayTint,
|
|
118
|
-
fill: "transparent"
|
|
119
|
-
}), cap)), children && /*#__PURE__*/React.createElement(View, {
|
|
120
|
-
style: localChildrenContainerStyle
|
|
121
|
-
}, children(fill)));
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
104
|
export default CircularProgress;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View, ImageBackground, StyleSheet } from "react-native";
|
|
3
4
|
import { withTheme } from "../theming";
|
|
@@ -63,10 +64,9 @@ const Container = _ref => {
|
|
|
63
64
|
};
|
|
64
65
|
const Wrap = elevation ? Elevation : View;
|
|
65
66
|
if (elevation) containerStyle.elevation = elevation;
|
|
66
|
-
return /*#__PURE__*/React.createElement(Wrap, {
|
|
67
|
-
style: [containerStyle, style]
|
|
68
|
-
|
|
69
|
-
}, backgroundImage ? /*#__PURE__*/React.createElement(ImageBackground, {
|
|
67
|
+
return /*#__PURE__*/React.createElement(Wrap, _extends({
|
|
68
|
+
style: [containerStyle, style]
|
|
69
|
+
}, rest), backgroundImage ? /*#__PURE__*/React.createElement(ImageBackground, {
|
|
70
70
|
source: typeof backgroundImage === "string" ? {
|
|
71
71
|
uri: backgroundImage
|
|
72
72
|
} : backgroundImage,
|
|
@@ -80,17 +80,4 @@ const Container = _ref => {
|
|
|
80
80
|
style: innerStyle
|
|
81
81
|
}, children));
|
|
82
82
|
};
|
|
83
|
-
export default withTheme(Container);ring" ? {
|
|
84
|
-
uri: backgroundImage
|
|
85
|
-
} : backgroundImage,
|
|
86
|
-
resizeMode: backgroundImageResizeMode,
|
|
87
|
-
style: {
|
|
88
|
-
flex: 1
|
|
89
|
-
}
|
|
90
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
91
|
-
style: innerStyle
|
|
92
|
-
}, children)) : /*#__PURE__*/React.createElement(View, {
|
|
93
|
-
style: innerStyle
|
|
94
|
-
}, children));
|
|
95
|
-
};
|
|
96
83
|
export default withTheme(Container);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View, Animated, Text, StyleSheet, I18nManager, TextInput as NativeTextInput } from "react-native";
|
|
3
4
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
@@ -81,20 +82,24 @@ const DatePicker = _ref => {
|
|
|
81
82
|
focused ? _handleBlur() : _handleFocus();
|
|
82
83
|
};
|
|
83
84
|
const insets = useSafeAreaInsets();
|
|
85
|
+
|
|
84
86
|
// const _restoreLabel = () =>
|
|
85
87
|
// Animated.timing(labeled, {
|
|
86
88
|
// toValue: 1,
|
|
87
89
|
// duration: FOCUS_ANIMATION_DURATION,
|
|
88
90
|
// useNativeDriver: true,
|
|
89
91
|
// }).start();
|
|
92
|
+
|
|
90
93
|
// const _minmizeLabel = () =>
|
|
91
94
|
// Animated.timing(labeled, {
|
|
92
95
|
// toValue: 0,
|
|
93
96
|
// duration: BLUR_ANIMATION_DURATION,
|
|
94
97
|
// useNativeDriver: true,
|
|
95
98
|
// }).start();
|
|
99
|
+
|
|
96
100
|
// const _showPlaceholder = () =>
|
|
97
101
|
// setTimeout(() => setPlaceholder1(placeholder || ""), 50);
|
|
102
|
+
|
|
98
103
|
const _hidePlaceholder = () => {
|
|
99
104
|
setPlaceholder1("");
|
|
100
105
|
};
|
|
@@ -237,7 +242,9 @@ const DatePicker = _ref => {
|
|
|
237
242
|
const inputStyles = [styles.input, inputStyle, type === "solid" ? {
|
|
238
243
|
marginHorizontal: 12
|
|
239
244
|
} : {}];
|
|
245
|
+
|
|
240
246
|
// const render = (props) => <NativeTextInput {...props} />;
|
|
247
|
+
|
|
241
248
|
return /*#__PURE__*/React.createElement(View, {
|
|
242
249
|
style: [styles.container, style]
|
|
243
250
|
}, /*#__PURE__*/React.createElement(Touchable, {
|
|
@@ -247,10 +254,9 @@ const DatePicker = _ref => {
|
|
|
247
254
|
pointerEvents: "none"
|
|
248
255
|
}, /*#__PURE__*/React.createElement(View, {
|
|
249
256
|
style: [styles.container, style]
|
|
250
|
-
}, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, {
|
|
251
|
-
...leftIconProps,
|
|
257
|
+
}, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
|
|
252
258
|
style: leftIconStyle
|
|
253
|
-
}) : null, /*#__PURE__*/React.createElement(View, {
|
|
259
|
+
})) : null, /*#__PURE__*/React.createElement(View, {
|
|
254
260
|
style: [containerStyle, style ? {
|
|
255
261
|
height: style.height
|
|
256
262
|
} : {}, viewStyles]
|
|
@@ -299,13 +305,12 @@ const DatePicker = _ref => {
|
|
|
299
305
|
opacity: hasActiveOutline ? labeled : 1
|
|
300
306
|
}],
|
|
301
307
|
numberOfLines: 1
|
|
302
|
-
}, label)) : null, leftIconName && leftIconMode === "inset" ? /*#__PURE__*/React.createElement(Icon, {
|
|
303
|
-
...leftIconProps,
|
|
308
|
+
}, label)) : null, leftIconName && leftIconMode === "inset" ? /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
|
|
304
309
|
style: {
|
|
305
310
|
...leftIconStyle,
|
|
306
311
|
marginLeft: type === "solid" ? 16 : 0
|
|
307
312
|
}
|
|
308
|
-
}) : null, /*#__PURE__*/React.createElement(NativeTextInput, {
|
|
313
|
+
})) : null, /*#__PURE__*/React.createElement(NativeTextInput, _extends({
|
|
309
314
|
value: formatDate(),
|
|
310
315
|
placeholder: label ? placeholder1 : placeholder,
|
|
311
316
|
editable: !disabled,
|
|
@@ -314,9 +319,8 @@ const DatePicker = _ref => {
|
|
|
314
319
|
onFocus: _handleFocus,
|
|
315
320
|
onBlur: _handleBlur,
|
|
316
321
|
underlineColorAndroid: "transparent",
|
|
317
|
-
style: [inputStyles, textStyles]
|
|
318
|
-
|
|
319
|
-
})), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
322
|
+
style: [inputStyles, textStyles]
|
|
323
|
+
}, props))), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
320
324
|
name: rightIconName,
|
|
321
325
|
size: ICON_SIZE,
|
|
322
326
|
color: colors.light,
|
|
@@ -387,22 +391,4 @@ const styles = StyleSheet.create({
|
|
|
387
391
|
alignSelf: "flex-end"
|
|
388
392
|
}
|
|
389
393
|
});
|
|
390
|
-
export default withTheme(DatePicker);yContent: "center",
|
|
391
|
-
textAlignVertical: "center",
|
|
392
|
-
margin: 0,
|
|
393
|
-
textAlign: I18nManager.isRTL ? "right" : "left"
|
|
394
|
-
},
|
|
395
|
-
placeholder: {
|
|
396
|
-
position: "absolute",
|
|
397
|
-
left: 0
|
|
398
|
-
},
|
|
399
|
-
pickerContainer: {
|
|
400
|
-
flexDirection: "column",
|
|
401
|
-
width: "100%",
|
|
402
|
-
zIndex: 100
|
|
403
|
-
},
|
|
404
|
-
closeButton: {
|
|
405
|
-
alignSelf: "flex-end"
|
|
406
|
-
}
|
|
407
|
-
});
|
|
408
394
|
export default withTheme(DatePicker);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { withTheme } from "../theming";
|
|
3
4
|
import Touchable from "./Touchable";
|
|
@@ -12,24 +13,6 @@ const getWidth = numColumns => {
|
|
|
12
13
|
}
|
|
13
14
|
};
|
|
14
15
|
const Card = _ref => {
|
|
15
|
-
let {
|
|
16
|
-
numColumns = 3,
|
|
17
|
-
children,
|
|
18
|
-
onPress,
|
|
19
|
-
style,
|
|
20
|
-
...rest
|
|
21
|
-
} = _ref;
|
|
22
|
-
const width = getWidth(numColumns);
|
|
23
|
-
return /*#__PURE__*/React.createElement(Touchable, {
|
|
24
|
-
disabled: !onPress,
|
|
25
|
-
onPress: onPress,
|
|
26
|
-
style: [style, {
|
|
27
|
-
width
|
|
28
|
-
}],
|
|
29
|
-
...rest
|
|
30
|
-
}, children);
|
|
31
|
-
};
|
|
32
|
-
export default withTheme(Card);ef => {
|
|
33
16
|
let {
|
|
34
17
|
numColumns = 3,
|
|
35
18
|
children,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { ActivityIndicator, View, StyleSheet, Pressable } from "react-native";
|
|
3
4
|
import color from "color";
|
|
@@ -96,8 +97,7 @@ const FAB = _ref => {
|
|
|
96
97
|
style: [{
|
|
97
98
|
elevation
|
|
98
99
|
}, style]
|
|
99
|
-
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
100
|
-
...rest,
|
|
100
|
+
}, /*#__PURE__*/React.createElement(Pressable, _extends({}, rest, {
|
|
101
101
|
onPress: onPress,
|
|
102
102
|
accessibilityState: {
|
|
103
103
|
disabled
|
|
@@ -105,7 +105,7 @@ const FAB = _ref => {
|
|
|
105
105
|
accessibilityRole: "button",
|
|
106
106
|
disabled: disabled || loading,
|
|
107
107
|
style: buttonStyles
|
|
108
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
108
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
109
109
|
style: styles.content
|
|
110
110
|
}, icon && loading !== true ? /*#__PURE__*/React.createElement(View, {
|
|
111
111
|
style: iconStyle
|
|
@@ -144,24 +144,4 @@ const styles = StyleSheet.create({
|
|
|
144
144
|
borderRadius: 0
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
|
-
export default withTheme(FAB);le: "solid"
|
|
148
|
-
},
|
|
149
|
-
content: {
|
|
150
|
-
flexDirection: "row",
|
|
151
|
-
alignItems: "center",
|
|
152
|
-
justifyContent: "center"
|
|
153
|
-
},
|
|
154
|
-
icon: {
|
|
155
|
-
alignItems: "center",
|
|
156
|
-
justifyContent: "center",
|
|
157
|
-
width: Config.buttonIconSize
|
|
158
|
-
},
|
|
159
|
-
fixed: {
|
|
160
|
-
left: 0,
|
|
161
|
-
right: 0,
|
|
162
|
-
bottom: 0,
|
|
163
|
-
height: 64,
|
|
164
|
-
borderRadius: 0
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
147
|
export default withTheme(FAB);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { Animated, StyleSheet, View } from "react-native";
|
|
3
4
|
import shadow from "../styles/shadow";
|
|
@@ -18,20 +19,7 @@ const Elevation = _ref => {
|
|
|
18
19
|
colors
|
|
19
20
|
} = theme;
|
|
20
21
|
const borderRadius = radius;
|
|
21
|
-
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
22
|
-
...rest,
|
|
23
|
-
style: [{
|
|
24
|
-
borderRadius,
|
|
25
|
-
backgroundColor: colors.surface
|
|
26
|
-
}, elevation ? shadow(elevation) : null, style]
|
|
27
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
28
|
-
style: {
|
|
29
|
-
overflow: "hidden",
|
|
30
|
-
borderRadius
|
|
31
|
-
}
|
|
32
|
-
}, children));
|
|
33
|
-
};
|
|
34
|
-
export default withTheme(Elevation);React.createElement(Animated.View, _extends({}, rest, {
|
|
22
|
+
return /*#__PURE__*/React.createElement(Animated.View, _extends({}, rest, {
|
|
35
23
|
style: [{
|
|
36
24
|
borderRadius,
|
|
37
25
|
backgroundColor: colors.surface
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View, StyleSheet, Pressable, ActivityIndicator, Platform } from "react-native";
|
|
3
4
|
import { withTheme } from "../theming";
|
|
@@ -24,7 +25,7 @@ const FAB = _ref => {
|
|
|
24
25
|
borderRadius: size / 2,
|
|
25
26
|
overflow: "hidden"
|
|
26
27
|
}, style]
|
|
27
|
-
}, /*#__PURE__*/React.createElement(Pressable, {
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
28
29
|
onPress: onPress,
|
|
29
30
|
disabled: loading || disabled,
|
|
30
31
|
android_ripple: {
|
|
@@ -42,9 +43,8 @@ const FAB = _ref => {
|
|
|
42
43
|
borderRadius: size / 2,
|
|
43
44
|
backgroundColor
|
|
44
45
|
}];
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
}, /*#__PURE__*/React.createElement(View, null, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
46
|
+
}
|
|
47
|
+
}, props), /*#__PURE__*/React.createElement(View, null, loading ? /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
48
48
|
style: size > 50 ? {
|
|
49
49
|
marginTop: 2,
|
|
50
50
|
marginLeft: 2
|
|
@@ -70,22 +70,4 @@ const styles = StyleSheet.create({
|
|
|
70
70
|
})
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
-
export default withTheme(FAB); name: iconName,
|
|
74
|
-
size: size,
|
|
75
|
-
color: color
|
|
76
|
-
}))));
|
|
77
|
-
};
|
|
78
|
-
const styles = StyleSheet.create({
|
|
79
|
-
button: {
|
|
80
|
-
backgroundColor: "#5a45ff",
|
|
81
|
-
justifyContent: "center",
|
|
82
|
-
alignItems: "center",
|
|
83
|
-
...Platform.select({
|
|
84
|
-
web: {
|
|
85
|
-
cursor: "pointer",
|
|
86
|
-
userSelect: "none"
|
|
87
|
-
}
|
|
88
|
-
})
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
73
|
export default withTheme(FAB);
|
|
@@ -46,6 +46,7 @@ const FieldSearchBarFull = _ref => {
|
|
|
46
46
|
lineHeight,
|
|
47
47
|
...typeStyles
|
|
48
48
|
} = typography.body2; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
49
|
+
|
|
49
50
|
const handleChangeText = newValue => {
|
|
50
51
|
setInternalValue(newValue);
|
|
51
52
|
if (onChange) {
|
|
@@ -83,4 +84,4 @@ const styles = StyleSheet.create({
|
|
|
83
84
|
alignItems: "center"
|
|
84
85
|
}
|
|
85
86
|
});
|
|
86
|
-
export default withTheme(FieldSearchBarFull)
|
|
87
|
+
export default withTheme(FieldSearchBarFull);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { View, StyleSheet, ActivityIndicator, Pressable, Platform } from "react-native";
|
|
3
4
|
import { withTheme } from "../theming";
|
|
@@ -15,7 +16,7 @@ const IconButton = _ref => {
|
|
|
15
16
|
...props
|
|
16
17
|
} = _ref;
|
|
17
18
|
const iconColor = customColor || theme.colors.primary;
|
|
18
|
-
return /*#__PURE__*/React.createElement(Pressable, {
|
|
19
|
+
return /*#__PURE__*/React.createElement(Pressable, _extends({
|
|
19
20
|
onPress: onPress,
|
|
20
21
|
disabled: disabled || loading,
|
|
21
22
|
style: _ref2 => {
|
|
@@ -29,9 +30,8 @@ const IconButton = _ref => {
|
|
|
29
30
|
alignItems: "center",
|
|
30
31
|
justifyContent: "center"
|
|
31
32
|
}, style];
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}, /*#__PURE__*/React.createElement(View, null, icon && !loading ? /*#__PURE__*/React.createElement(Icon, {
|
|
33
|
+
}
|
|
34
|
+
}, props), /*#__PURE__*/React.createElement(View, null, icon && !loading ? /*#__PURE__*/React.createElement(Icon, {
|
|
35
35
|
name: icon,
|
|
36
36
|
size: size - 2,
|
|
37
37
|
color: iconColor
|
|
@@ -52,21 +52,4 @@ const styles = StyleSheet.create({
|
|
|
52
52
|
})
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
export default withTheme(IconButton);ement(ActivityIndicator, {
|
|
56
|
-
size: "small",
|
|
57
|
-
color: iconColor
|
|
58
|
-
}) : null));
|
|
59
|
-
};
|
|
60
|
-
const styles = StyleSheet.create({
|
|
61
|
-
container: {
|
|
62
|
-
alignItems: "center",
|
|
63
|
-
justifyContent: "center",
|
|
64
|
-
...Platform.select({
|
|
65
|
-
web: {
|
|
66
|
-
cursor: "pointer",
|
|
67
|
-
userSelect: "none"
|
|
68
|
-
}
|
|
69
|
-
})
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
55
|
export default withTheme(IconButton);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|