@draftbit/core 46.5.2-b58416.2 → 46.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/Accordion/AccordionItem.js +23 -4
- package/lib/commonjs/components/AvatarEdit.js +15 -4
- package/lib/commonjs/components/Banner.js +23 -4
- package/lib/commonjs/components/Button.js +36 -13
- package/lib/commonjs/components/Carousel.js +30 -8
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -3
- package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +23 -6
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -2
- package/lib/commonjs/components/Container.js +15 -4
- package/lib/commonjs/components/DatePicker/DatePicker.js +26 -13
- package/lib/commonjs/components/DeprecatedButton.js +3 -27
- package/lib/commonjs/components/DeprecatedCardWrapper.js +15 -1
- package/lib/commonjs/components/DeprecatedFAB.js +1 -2
- package/lib/commonjs/components/Divider.js +14 -1
- package/lib/commonjs/components/FAB.js +18 -4
- package/lib/commonjs/components/IconButton.js +19 -4
- package/lib/commonjs/components/Picker/PickerComponent.ios.js +36 -11
- package/lib/commonjs/components/Portal/Portal.js +27 -3
- package/lib/commonjs/components/Portal/PortalConsumer.js +22 -7
- package/lib/commonjs/components/Portal/PortalManager.js +34 -8
- package/lib/commonjs/components/Pressable.js +37 -0
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +9 -1
- package/lib/commonjs/components/RadioButton/context.js +1 -1
- package/lib/commonjs/components/ScreenContainer.js +20 -4
- package/lib/commonjs/components/StarRating.js +23 -4
- package/lib/commonjs/components/Surface.js +14 -2
- package/lib/commonjs/components/Swiper/Swiper.js +2 -0
- package/lib/commonjs/components/TextField.js +76 -28
- package/lib/commonjs/components/ToggleButton.js +15 -2
- package/lib/commonjs/components/Touchable.js +8 -3
- package/lib/commonjs/constants.js +1 -1
- package/lib/commonjs/hooks.js +1 -2
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/mappings/Button.js +39 -10
- package/lib/commonjs/mappings/FlashList.js +45 -2
- package/lib/commonjs/mappings/FlatList.js +12 -0
- package/lib/commonjs/mappings/StarRating.js +6 -2
- package/lib/commonjs/mappings/Swiper.js +2 -0
- package/lib/commonjs/mappings/Touchable.js +47 -7
- package/lib/commonjs/styles/overlay.js +1 -3
- package/lib/commonjs/utilities.js +1 -2
- package/lib/module/components/AnimatedCircularProgress.js +13 -1
- package/lib/module/components/AspectRatio.js +18 -1
- package/lib/module/components/AvatarEdit.js +15 -4
- package/lib/module/components/Banner.js +25 -4
- package/lib/module/components/Button.js +36 -13
- package/lib/module/components/CardBlock.js +14 -4
- package/lib/module/components/CardContainerRating.js +14 -4
- package/lib/module/components/CardContainerShortImage.js +18 -4
- package/lib/module/components/Checkbox/Checkbox.js +2 -3
- package/lib/module/components/Checkbox/CheckboxGroup.js +16 -2
- package/lib/module/components/Checkbox/CheckboxGroupRow.js +2 -3
- package/lib/module/components/Checkbox/CheckboxRow.js +2 -3
- package/lib/module/components/Container.js +17 -4
- package/lib/module/components/DeprecatedButton.js +4 -28
- package/lib/module/components/DeprecatedFAB.js +24 -5
- package/lib/module/components/Elevation.js +14 -2
- package/lib/module/components/FormRow.js +17 -2
- package/lib/module/components/Layout.js +42 -21
- package/lib/module/components/NumberInput.js +12 -3
- package/lib/module/components/Portal/Portal.js +28 -3
- package/lib/module/components/Portal/PortalConsumer.js +22 -7
- package/lib/module/components/Portal/PortalHost.js +45 -15
- package/lib/module/components/Portal/PortalManager.js +33 -7
- package/lib/module/components/Pressable.js +30 -0
- package/lib/module/components/ProgressBar.js +39 -7
- package/lib/module/components/RadioButton/RadioButton.js +13 -1
- package/lib/module/components/RadioButton/RadioButtonGroup.js +16 -2
- package/lib/module/components/RadioButton/RadioButtonRow.js +24 -5
- package/lib/module/components/RadioButton/context.js +1 -1
- package/lib/module/components/Slider.js +21 -4
- package/lib/module/components/StepIndicator.js +58 -18
- package/lib/module/components/Surface.js +15 -1
- package/lib/module/components/Swiper/Swiper.js +2 -0
- package/lib/module/components/Switch.js +21 -10
- package/lib/module/components/TextField.js +78 -28
- package/lib/module/components/Touchable.js +8 -3
- package/lib/module/constants.js +1 -2
- package/lib/module/index.js +1 -0
- package/lib/module/mappings/Button.js +40 -11
- package/lib/module/mappings/FieldSearchBarFull.js +4 -1
- package/lib/module/mappings/FlashList.js +46 -3
- package/lib/module/mappings/FlatList.js +13 -1
- package/lib/module/mappings/Swiper.js +3 -1
- package/lib/module/mappings/Touchable.js +49 -9
- package/lib/typescript/src/components/Button.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +2 -2
- package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -1
- package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -1
- package/lib/typescript/src/components/DeprecatedButton.d.ts +2 -2
- package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -1
- package/lib/typescript/src/components/DeprecatedFAB.d.ts +2 -2
- package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -1
- package/lib/typescript/src/components/Pressable.d.ts +10 -0
- package/lib/typescript/src/components/Pressable.d.ts.map +1 -0
- package/lib/typescript/src/components/Swiper/Swiper.d.ts +2 -1
- package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -1
- package/lib/typescript/src/components/Touchable.d.ts +5 -6
- package/lib/typescript/src/components/Touchable.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Button.d.ts +113 -4
- package/lib/typescript/src/mappings/Button.d.ts.map +1 -1
- package/lib/typescript/src/mappings/FlashList.d.ts +112 -2
- package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/FlatList.d.ts +42 -0
- package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Swiper.d.ts +11 -0
- package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -1
- package/lib/typescript/src/mappings/Touchable.d.ts +59 -5
- package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -1
- package/lib/typescript/src/styles/overlay.d.ts +1 -1
- package/lib/typescript/src/styles/overlay.d.ts.map +1 -1
- package/lib/typescript/src/styles/shadow.d.ts +2 -2
- package/package.json +6 -6
- package/src/components/Button.tsx +14 -4
- package/src/components/Checkbox/Checkbox.tsx +5 -7
- package/src/components/Checkbox/CheckboxGroupRow.tsx +3 -3
- package/src/components/Checkbox/CheckboxRow.tsx +3 -3
- package/src/components/DeprecatedButton.tsx +7 -31
- package/src/components/DeprecatedFAB.tsx +5 -5
- package/src/components/Pressable.tsx +44 -0
- package/src/components/Swiper/Swiper.tsx +3 -0
- package/src/components/Touchable.tsx +11 -7
- package/src/index.tsx +1 -0
- package/src/mappings/Button.ts +41 -10
- package/src/mappings/FlashList.ts +82 -30
- package/src/mappings/FlatList.ts +16 -0
- package/src/mappings/Swiper.ts +4 -0
- package/src/mappings/Touchable.ts +53 -6
- package/src/styles/overlay.tsx +2 -2
- 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 -63
- package/src/components/Checkbox/CheckboxGroup.js +0 -21
- package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
- package/src/components/Checkbox/CheckboxRow.js +0 -78
- 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 -95
- package/src/components/DeprecatedCardWrapper.js +0 -18
- package/src/components/DeprecatedFAB.js +0 -115
- 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/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 -52
- 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 -87
- 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 -33
- package/src/mappings/FlatList.js +0 -24
- 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 -60
- 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 -17
- 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
|
@@ -12,7 +12,6 @@ var _theming = require("../../theming");
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
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); }
|
|
16
15
|
const AccordionItem = _ref => {
|
|
17
16
|
let {
|
|
18
17
|
Icon,
|
|
@@ -27,9 +26,10 @@ const AccordionItem = _ref => {
|
|
|
27
26
|
textStyles,
|
|
28
27
|
viewStyles
|
|
29
28
|
} = (0, _utilities.extractStyles)(style);
|
|
30
|
-
return /*#__PURE__*/React.createElement(_reactNative.Pressable,
|
|
31
|
-
style: [styles.container, viewStyles]
|
|
32
|
-
|
|
29
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
30
|
+
style: [styles.container, viewStyles],
|
|
31
|
+
...rest
|
|
32
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
33
33
|
style: styles.row
|
|
34
34
|
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
35
35
|
name: icon,
|
|
@@ -61,4 +61,23 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
var _default = (0, _theming.withTheme)(AccordionItem);
|
|
64
|
+
exports.default = _default;.StyleSheet.create({
|
|
65
|
+
container: {
|
|
66
|
+
padding: 8
|
|
67
|
+
},
|
|
68
|
+
row: {
|
|
69
|
+
flexDirection: "row",
|
|
70
|
+
alignItems: "center",
|
|
71
|
+
paddingLeft: 8
|
|
72
|
+
},
|
|
73
|
+
item: {
|
|
74
|
+
marginVertical: 6,
|
|
75
|
+
paddingLeft: 8
|
|
76
|
+
},
|
|
77
|
+
content: {
|
|
78
|
+
flex: 1,
|
|
79
|
+
justifyContent: "center"
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
var _default = (0, _theming.withTheme)(AccordionItem);
|
|
64
83
|
exports.default = _default;
|
|
@@ -12,7 +12,6 @@ var _theming = require("../theming");
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
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); }
|
|
16
15
|
const AvatarEdit = _ref => {
|
|
17
16
|
let {
|
|
18
17
|
Icon,
|
|
@@ -32,9 +31,10 @@ const AvatarEdit = _ref => {
|
|
|
32
31
|
width: size,
|
|
33
32
|
height: size
|
|
34
33
|
};
|
|
35
|
-
return /*#__PURE__*/React.createElement(_reactNative.View,
|
|
36
|
-
style: [style, dimensions]
|
|
37
|
-
|
|
34
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
35
|
+
style: [style, dimensions],
|
|
36
|
+
...rest
|
|
37
|
+
}, /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
38
38
|
onPress: onPress
|
|
39
39
|
}, /*#__PURE__*/React.createElement(_CircleImage.default, {
|
|
40
40
|
source: image,
|
|
@@ -56,4 +56,15 @@ const AvatarEdit = _ref => {
|
|
|
56
56
|
}))));
|
|
57
57
|
};
|
|
58
58
|
var _default = (0, _theming.withTheme)(AvatarEdit);
|
|
59
|
+
exports.default = _default;r: colorStyles.editBackgroundColor,
|
|
60
|
+
borderRadius: size * (3 / 16),
|
|
61
|
+
padding: size * (3 / 32)
|
|
62
|
+
}
|
|
63
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
64
|
+
name: "MaterialIcons/edit",
|
|
65
|
+
color: colorStyles.editIconColor,
|
|
66
|
+
size: size * (3 / 16)
|
|
67
|
+
}))));
|
|
68
|
+
};
|
|
69
|
+
var _default = (0, _theming.withTheme)(AvatarEdit);
|
|
59
70
|
exports.default = _default;
|
|
@@ -12,7 +12,6 @@ var _theming = require("../theming");
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
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); }
|
|
16
15
|
const ELEVATION = 1;
|
|
17
16
|
const DEFAULT_MAX_WIDTH = 960;
|
|
18
17
|
const Banner = _ref => {
|
|
@@ -70,7 +69,6 @@ const Banner = _ref => {
|
|
|
70
69
|
measured: true
|
|
71
70
|
});
|
|
72
71
|
};
|
|
73
|
-
|
|
74
72
|
// The banner animation has 2 parts:
|
|
75
73
|
// 1. Blank spacer element which animates its height to move the content
|
|
76
74
|
// 2. Actual banner which animates its translateY
|
|
@@ -80,9 +78,10 @@ const Banner = _ref => {
|
|
|
80
78
|
// However we can't animated banner's height directly as it'll also resize the content inside
|
|
81
79
|
const height = _reactNative.Animated.multiply(position, layout.height);
|
|
82
80
|
const translateY = _reactNative.Animated.multiply(_reactNative.Animated.add(position, -1), layout.height);
|
|
83
|
-
return /*#__PURE__*/React.createElement(_Surface.default,
|
|
81
|
+
return /*#__PURE__*/React.createElement(_Surface.default, {
|
|
82
|
+
...rest,
|
|
84
83
|
style: [styles.container, (0, _shadow.default)(ELEVATION), style]
|
|
85
|
-
}
|
|
84
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
86
85
|
style: [styles.wrapper, contentStyle]
|
|
87
86
|
}, /*#__PURE__*/React.createElement(_reactNative.Animated.View, {
|
|
88
87
|
style: {
|
|
@@ -164,4 +163,24 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
164
163
|
}
|
|
165
164
|
});
|
|
166
165
|
var _default = (0, _theming.withTheme)(Banner);
|
|
166
|
+
exports.default = _default;",
|
|
167
|
+
justifyContent: "flex-start",
|
|
168
|
+
marginHorizontal: 8,
|
|
169
|
+
marginTop: 16,
|
|
170
|
+
marginBottom: 0
|
|
171
|
+
},
|
|
172
|
+
icon: {
|
|
173
|
+
margin: 8
|
|
174
|
+
},
|
|
175
|
+
message: {
|
|
176
|
+
flex: 1,
|
|
177
|
+
margin: 8
|
|
178
|
+
},
|
|
179
|
+
actions: {
|
|
180
|
+
flexDirection: "row",
|
|
181
|
+
justifyContent: "flex-end",
|
|
182
|
+
margin: 8
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
var _default = (0, _theming.withTheme)(Banner);
|
|
167
186
|
exports.default = _default;
|
|
@@ -9,7 +9,6 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _theming = require("../theming");
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
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); }
|
|
13
12
|
const CONSTANTS = {
|
|
14
13
|
baseHeight: 42,
|
|
15
14
|
borderRadius: 4,
|
|
@@ -21,10 +20,11 @@ function Base(_ref) {
|
|
|
21
20
|
Icon,
|
|
22
21
|
icon,
|
|
23
22
|
title,
|
|
24
|
-
onPress,
|
|
25
23
|
loading,
|
|
26
24
|
disabled,
|
|
27
25
|
style,
|
|
26
|
+
activeOpacity,
|
|
27
|
+
disabledOpacity,
|
|
28
28
|
...props
|
|
29
29
|
} = _ref;
|
|
30
30
|
const {
|
|
@@ -60,18 +60,18 @@ function Base(_ref) {
|
|
|
60
60
|
if (textAlign === "right") {
|
|
61
61
|
buttonStyles.justifyContent = "flex-end";
|
|
62
62
|
}
|
|
63
|
-
return /*#__PURE__*/React.createElement(_reactNative.Pressable,
|
|
64
|
-
onPress: onPress,
|
|
63
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
65
64
|
disabled: disabled || loading,
|
|
66
65
|
style: _ref2 => {
|
|
67
66
|
let {
|
|
68
67
|
pressed
|
|
69
68
|
} = _ref2;
|
|
70
69
|
return [styles.base, {
|
|
71
|
-
opacity: pressed
|
|
70
|
+
opacity: pressed ? activeOpacity : disabled ? disabledOpacity : 1
|
|
72
71
|
}, buttonStyles];
|
|
73
|
-
}
|
|
74
|
-
|
|
72
|
+
},
|
|
73
|
+
...props
|
|
74
|
+
}, loading ? /*#__PURE__*/React.createElement(_reactNative.ActivityIndicator, {
|
|
75
75
|
size: "small",
|
|
76
76
|
color: color,
|
|
77
77
|
style: styles.loading
|
|
@@ -90,13 +90,14 @@ const Solid = _ref3 => {
|
|
|
90
90
|
theme,
|
|
91
91
|
...props
|
|
92
92
|
} = _ref3;
|
|
93
|
-
return /*#__PURE__*/React.createElement(Base,
|
|
93
|
+
return /*#__PURE__*/React.createElement(Base, {
|
|
94
94
|
style: [{
|
|
95
95
|
color: "#FFF",
|
|
96
96
|
borderRadius: theme.roundness,
|
|
97
97
|
backgroundColor: theme.colors.primary
|
|
98
|
-
}, style]
|
|
99
|
-
|
|
98
|
+
}, style],
|
|
99
|
+
...props
|
|
100
|
+
});
|
|
100
101
|
};
|
|
101
102
|
const ButtonSolid = (0, _theming.withTheme)(Solid);
|
|
102
103
|
exports.ButtonSolid = ButtonSolid;
|
|
@@ -108,13 +109,14 @@ const Outline = _ref4 => {
|
|
|
108
109
|
theme,
|
|
109
110
|
...props
|
|
110
111
|
} = _ref4;
|
|
111
|
-
return /*#__PURE__*/React.createElement(Base,
|
|
112
|
+
return /*#__PURE__*/React.createElement(Base, {
|
|
112
113
|
style: [styles.outline, {
|
|
113
114
|
borderRadius: theme.roundness,
|
|
114
115
|
borderColor: theme.colors.primary,
|
|
115
116
|
color: theme.colors.primary
|
|
116
|
-
}, style]
|
|
117
|
-
|
|
117
|
+
}, style],
|
|
118
|
+
...props
|
|
119
|
+
});
|
|
118
120
|
};
|
|
119
121
|
const ButtonOutline = (0, _theming.withTheme)(Outline);
|
|
120
122
|
exports.ButtonOutline = ButtonOutline;
|
|
@@ -161,4 +163,25 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
161
163
|
}
|
|
162
164
|
})
|
|
163
165
|
}
|
|
166
|
+
});ent",
|
|
167
|
+
padding: 0,
|
|
168
|
+
minHeight: undefined
|
|
169
|
+
},
|
|
170
|
+
loading: {
|
|
171
|
+
marginRight: 6
|
|
172
|
+
},
|
|
173
|
+
icon: {
|
|
174
|
+
..._reactNative.Platform.select({
|
|
175
|
+
web: {
|
|
176
|
+
marginTop: 1,
|
|
177
|
+
marginRight: 4,
|
|
178
|
+
alignSelf: "center"
|
|
179
|
+
},
|
|
180
|
+
default: {
|
|
181
|
+
marginBottom: 2,
|
|
182
|
+
marginRight: 4,
|
|
183
|
+
alignSelf: "center"
|
|
184
|
+
}
|
|
185
|
+
})
|
|
186
|
+
}
|
|
164
187
|
});
|
|
@@ -11,7 +11,6 @@ var _Image = _interopRequireDefault(require("./Image"));
|
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
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); }
|
|
15
14
|
const screenWidth = _reactNative.Dimensions.get("window").width;
|
|
16
15
|
function Pager(_ref) {
|
|
17
16
|
let {
|
|
@@ -39,7 +38,6 @@ function Pager(_ref) {
|
|
|
39
38
|
}));
|
|
40
39
|
}
|
|
41
40
|
function Carousel(_ref2) {
|
|
42
|
-
var _data$length;
|
|
43
41
|
let {
|
|
44
42
|
data,
|
|
45
43
|
children,
|
|
@@ -47,9 +45,10 @@ function Carousel(_ref2) {
|
|
|
47
45
|
style,
|
|
48
46
|
...rest
|
|
49
47
|
} = _ref2;
|
|
48
|
+
var _a;
|
|
50
49
|
const [index, setIndex] = React.useState(0);
|
|
51
50
|
const length = React.Children.count(children);
|
|
52
|
-
const itemsLength = ((
|
|
51
|
+
const itemsLength = ((_a = data === null || data === void 0 ? void 0 : data.length) !== null && _a !== void 0 ? _a : 0) + length;
|
|
53
52
|
const slides = Array.isArray(data) ? data : [];
|
|
54
53
|
const {
|
|
55
54
|
width,
|
|
@@ -57,9 +56,10 @@ function Carousel(_ref2) {
|
|
|
57
56
|
} = _reactNative.StyleSheet.flatten(style || {});
|
|
58
57
|
const slideWidth = width || screenWidth;
|
|
59
58
|
const slideHeight = height || 250;
|
|
60
|
-
return /*#__PURE__*/React.createElement(_reactNative.View,
|
|
61
|
-
style: [styles.container, style]
|
|
62
|
-
|
|
59
|
+
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
60
|
+
style: [styles.container, style],
|
|
61
|
+
...rest
|
|
62
|
+
}, /*#__PURE__*/React.createElement(_reactNative.ScrollView, {
|
|
63
63
|
pagingEnabled: true,
|
|
64
64
|
horizontal: true,
|
|
65
65
|
decelerationRate: "fast",
|
|
@@ -87,8 +87,8 @@ function Carousel(_ref2) {
|
|
|
87
87
|
}]
|
|
88
88
|
});
|
|
89
89
|
}) : null, React.Children.map(children, child => {
|
|
90
|
-
var
|
|
91
|
-
const s = (child === null || child === void 0 ? void 0 :
|
|
90
|
+
var _a;
|
|
91
|
+
const s = ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.style) || {};
|
|
92
92
|
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
93
93
|
style: {
|
|
94
94
|
width: slideWidth
|
|
@@ -127,4 +127,26 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
var _default = (0, _theming.withTheme)(Carousel);
|
|
130
|
+
exports.default = _default;ate({
|
|
131
|
+
container: {
|
|
132
|
+
backgroundColor: "#eee"
|
|
133
|
+
},
|
|
134
|
+
pager: {
|
|
135
|
+
position: "absolute",
|
|
136
|
+
bottom: 12,
|
|
137
|
+
left: 0,
|
|
138
|
+
right: 0,
|
|
139
|
+
flexDirection: "row",
|
|
140
|
+
justifyContent: "center",
|
|
141
|
+
alignItems: "center"
|
|
142
|
+
},
|
|
143
|
+
bullet: {
|
|
144
|
+
marginHorizontal: 2,
|
|
145
|
+
width: 10,
|
|
146
|
+
height: 10,
|
|
147
|
+
borderRadius: 20,
|
|
148
|
+
backgroundColor: "#000"
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
var _default = (0, _theming.withTheme)(Carousel);
|
|
130
152
|
exports.default = _default;
|
|
@@ -7,9 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _theming = require("../../theming");
|
|
10
|
-
var _Touchable = _interopRequireDefault(require("../Touchable"));
|
|
11
10
|
var _hooks = require("../../hooks");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
13
|
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); }
|
|
@@ -60,7 +58,7 @@ const Checkbox = _ref => {
|
|
|
60
58
|
onUncheck === null || onUncheck === void 0 ? void 0 : onUncheck();
|
|
61
59
|
}
|
|
62
60
|
};
|
|
63
|
-
return /*#__PURE__*/React.createElement(
|
|
61
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({}, rest, {
|
|
64
62
|
onPress: handlePress,
|
|
65
63
|
disabled: disabled,
|
|
66
64
|
accessibilityState: {
|
|
@@ -9,13 +9,11 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
var _Checkbox = _interopRequireDefault(require("./Checkbox"));
|
|
10
10
|
var _Text = _interopRequireDefault(require("../Text"));
|
|
11
11
|
var _context = require("./context");
|
|
12
|
-
var _Touchable = _interopRequireDefault(require("../Touchable"));
|
|
13
12
|
var _utilities = require("../../utilities");
|
|
14
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
15
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
18
|
-
let Direction;
|
|
16
|
+
var Direction;
|
|
19
17
|
exports.Direction = Direction;
|
|
20
18
|
(function (Direction) {
|
|
21
19
|
Direction["Row"] = "row";
|
|
@@ -73,13 +71,14 @@ const CheckboxGroupRow = _ref => {
|
|
|
73
71
|
textStyles,
|
|
74
72
|
viewStyles
|
|
75
73
|
} = (0, _utilities.extractStyles)(style);
|
|
76
|
-
return /*#__PURE__*/React.createElement(
|
|
74
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
77
75
|
onPress: handlePress,
|
|
78
76
|
style: [styles.mainParent, {
|
|
79
77
|
flexDirection: direction
|
|
80
78
|
}, viewStyles],
|
|
81
|
-
disabled: disabled
|
|
82
|
-
|
|
79
|
+
disabled: disabled,
|
|
80
|
+
...rest
|
|
81
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
83
82
|
style: [styles.label, {
|
|
84
83
|
alignItems: direction === Direction.Row ? "flex-start" : "flex-end"
|
|
85
84
|
}, labelContainerStyle]
|
|
@@ -118,4 +117,22 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
118
117
|
}
|
|
119
118
|
});
|
|
120
119
|
var _default = CheckboxGroupRow;
|
|
120
|
+
exports.default = _default;center",
|
|
121
|
+
justifyContent: "space-around",
|
|
122
|
+
paddingStart: 20,
|
|
123
|
+
minHeight: 50,
|
|
124
|
+
paddingEnd: 20,
|
|
125
|
+
display: "flex",
|
|
126
|
+
..._reactNative.Platform.select({
|
|
127
|
+
web: {
|
|
128
|
+
cursor: "pointer",
|
|
129
|
+
userSelect: "none"
|
|
130
|
+
}
|
|
131
|
+
})
|
|
132
|
+
},
|
|
133
|
+
label: {
|
|
134
|
+
flex: 3
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
var _default = CheckboxGroupRow;
|
|
121
138
|
exports.default = _default;
|
|
@@ -10,7 +10,6 @@ var _lodash = require("lodash");
|
|
|
10
10
|
var _utilities = require("../../utilities");
|
|
11
11
|
var _hooks = require("../../hooks");
|
|
12
12
|
var _Text = _interopRequireDefault(require("../Text"));
|
|
13
|
-
var _Touchable = _interopRequireDefault(require("../Touchable"));
|
|
14
13
|
var _Checkbox = _interopRequireDefault(require("./Checkbox"));
|
|
15
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -83,7 +82,7 @@ const CheckboxRow = _ref => {
|
|
|
83
82
|
textStyles,
|
|
84
83
|
viewStyles
|
|
85
84
|
} = (0, _utilities.extractStyles)(style);
|
|
86
|
-
return /*#__PURE__*/React.createElement(
|
|
85
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
|
|
87
86
|
onPress: handlePress,
|
|
88
87
|
style: [viewStyles, styles.mainParent, {
|
|
89
88
|
flexDirection: direction
|
|
@@ -11,7 +11,6 @@ var _Elevation = _interopRequireDefault(require("./Elevation"));
|
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
14
|
-
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); }
|
|
15
14
|
const Container = _ref => {
|
|
16
15
|
let {
|
|
17
16
|
useThemeGutterPadding,
|
|
@@ -73,9 +72,10 @@ const Container = _ref => {
|
|
|
73
72
|
};
|
|
74
73
|
const Wrap = elevation ? _Elevation.default : _reactNative.View;
|
|
75
74
|
if (elevation) containerStyle.elevation = elevation;
|
|
76
|
-
return /*#__PURE__*/React.createElement(Wrap,
|
|
77
|
-
style: [containerStyle, style]
|
|
78
|
-
|
|
75
|
+
return /*#__PURE__*/React.createElement(Wrap, {
|
|
76
|
+
style: [containerStyle, style],
|
|
77
|
+
...rest
|
|
78
|
+
}, backgroundImage ? /*#__PURE__*/React.createElement(_reactNative.ImageBackground, {
|
|
79
79
|
source: typeof backgroundImage === "string" ? {
|
|
80
80
|
uri: backgroundImage
|
|
81
81
|
} : backgroundImage,
|
|
@@ -90,4 +90,15 @@ const Container = _ref => {
|
|
|
90
90
|
}, children));
|
|
91
91
|
};
|
|
92
92
|
var _default = (0, _theming.withTheme)(Container);
|
|
93
|
+
exports.default = _default;sizeMode: backgroundImageResizeMode,
|
|
94
|
+
style: {
|
|
95
|
+
flex: 1
|
|
96
|
+
}
|
|
97
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
98
|
+
style: innerStyle
|
|
99
|
+
}, children)) : /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
100
|
+
style: innerStyle
|
|
101
|
+
}, children));
|
|
102
|
+
};
|
|
103
|
+
var _default = (0, _theming.withTheme)(Container);
|
|
93
104
|
exports.default = _default;
|
|
@@ -16,7 +16,6 @@ var _utilities = require("../../utilities");
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
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); }
|
|
20
19
|
const AnimatedText = _reactNative.Animated.createAnimatedComponent(_reactNative.Text);
|
|
21
20
|
const FOCUS_ANIMATION_DURATION = 150;
|
|
22
21
|
const BLUR_ANIMATION_DURATION = 180;
|
|
@@ -91,24 +90,20 @@ const DatePicker = _ref => {
|
|
|
91
90
|
focused ? _handleBlur() : _handleFocus();
|
|
92
91
|
};
|
|
93
92
|
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
94
|
-
|
|
95
93
|
// const _restoreLabel = () =>
|
|
96
94
|
// Animated.timing(labeled, {
|
|
97
95
|
// toValue: 1,
|
|
98
96
|
// duration: FOCUS_ANIMATION_DURATION,
|
|
99
97
|
// useNativeDriver: true,
|
|
100
98
|
// }).start();
|
|
101
|
-
|
|
102
99
|
// const _minmizeLabel = () =>
|
|
103
100
|
// Animated.timing(labeled, {
|
|
104
101
|
// toValue: 0,
|
|
105
102
|
// duration: BLUR_ANIMATION_DURATION,
|
|
106
103
|
// useNativeDriver: true,
|
|
107
104
|
// }).start();
|
|
108
|
-
|
|
109
105
|
// const _showPlaceholder = () =>
|
|
110
106
|
// setTimeout(() => setPlaceholder1(placeholder || ""), 50);
|
|
111
|
-
|
|
112
107
|
const _hidePlaceholder = () => {
|
|
113
108
|
setPlaceholder1("");
|
|
114
109
|
};
|
|
@@ -251,9 +246,7 @@ const DatePicker = _ref => {
|
|
|
251
246
|
const inputStyles = [styles.input, inputStyle, type === "solid" ? {
|
|
252
247
|
marginHorizontal: 12
|
|
253
248
|
} : {}];
|
|
254
|
-
|
|
255
249
|
// const render = (props) => <NativeTextInput {...props} />;
|
|
256
|
-
|
|
257
250
|
return /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
258
251
|
style: [styles.container, style]
|
|
259
252
|
}, /*#__PURE__*/React.createElement(_Touchable.default, {
|
|
@@ -263,9 +256,10 @@ const DatePicker = _ref => {
|
|
|
263
256
|
pointerEvents: "none"
|
|
264
257
|
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
265
258
|
style: [styles.container, style]
|
|
266
|
-
}, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon,
|
|
259
|
+
}, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, {
|
|
260
|
+
...leftIconProps,
|
|
267
261
|
style: leftIconStyle
|
|
268
|
-
})
|
|
262
|
+
}) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
269
263
|
style: [containerStyle, style ? {
|
|
270
264
|
height: style.height
|
|
271
265
|
} : {}, viewStyles]
|
|
@@ -314,12 +308,13 @@ const DatePicker = _ref => {
|
|
|
314
308
|
opacity: hasActiveOutline ? labeled : 1
|
|
315
309
|
}],
|
|
316
310
|
numberOfLines: 1
|
|
317
|
-
}, label)) : null, leftIconName && leftIconMode === "inset" ? /*#__PURE__*/React.createElement(Icon,
|
|
311
|
+
}, label)) : null, leftIconName && leftIconMode === "inset" ? /*#__PURE__*/React.createElement(Icon, {
|
|
312
|
+
...leftIconProps,
|
|
318
313
|
style: {
|
|
319
314
|
...leftIconStyle,
|
|
320
315
|
marginLeft: type === "solid" ? 16 : 0
|
|
321
316
|
}
|
|
322
|
-
})
|
|
317
|
+
}) : null, /*#__PURE__*/React.createElement(_reactNative.TextInput, {
|
|
323
318
|
value: formatDate(),
|
|
324
319
|
placeholder: label ? placeholder1 : placeholder,
|
|
325
320
|
editable: !disabled,
|
|
@@ -328,8 +323,9 @@ const DatePicker = _ref => {
|
|
|
328
323
|
onFocus: _handleFocus,
|
|
329
324
|
onBlur: _handleBlur,
|
|
330
325
|
underlineColorAndroid: "transparent",
|
|
331
|
-
style: [inputStyles, textStyles]
|
|
332
|
-
|
|
326
|
+
style: [inputStyles, textStyles],
|
|
327
|
+
...props
|
|
328
|
+
})), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
333
329
|
name: rightIconName,
|
|
334
330
|
size: ICON_SIZE,
|
|
335
331
|
color: colors.light,
|
|
@@ -401,4 +397,21 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
401
397
|
}
|
|
402
398
|
});
|
|
403
399
|
var _default = (0, _theming.withTheme)(DatePicker);
|
|
400
|
+
exports.default = _default; margin: 0,
|
|
401
|
+
textAlign: _reactNative.I18nManager.isRTL ? "right" : "left"
|
|
402
|
+
},
|
|
403
|
+
placeholder: {
|
|
404
|
+
position: "absolute",
|
|
405
|
+
left: 0
|
|
406
|
+
},
|
|
407
|
+
pickerContainer: {
|
|
408
|
+
flexDirection: "column",
|
|
409
|
+
width: "100%",
|
|
410
|
+
zIndex: 100
|
|
411
|
+
},
|
|
412
|
+
closeButton: {
|
|
413
|
+
alignSelf: "flex-end"
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
var _default = (0, _theming.withTheme)(DatePicker);
|
|
404
417
|
exports.default = _default;
|
|
@@ -8,7 +8,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _color = _interopRequireDefault(require("color"));
|
|
10
10
|
var _Config = _interopRequireDefault(require("./Config"));
|
|
11
|
-
var _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
12
11
|
var _Elevation = _interopRequireDefault(require("./Elevation"));
|
|
13
12
|
var _theming = require("../theming");
|
|
14
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -27,7 +26,6 @@ const Button = _ref => {
|
|
|
27
26
|
children,
|
|
28
27
|
onPress,
|
|
29
28
|
elevation = 0,
|
|
30
|
-
style,
|
|
31
29
|
theme: {
|
|
32
30
|
colors,
|
|
33
31
|
disabledOpacity,
|
|
@@ -81,41 +79,19 @@ const Button = _ref => {
|
|
|
81
79
|
marginRight: -8,
|
|
82
80
|
width: _Config.default.buttonIconSize
|
|
83
81
|
}];
|
|
84
|
-
const {
|
|
85
|
-
margin,
|
|
86
|
-
marginEnd,
|
|
87
|
-
marginTop,
|
|
88
|
-
marginLeft,
|
|
89
|
-
marginRight,
|
|
90
|
-
marginBottom,
|
|
91
|
-
marginHorizontal,
|
|
92
|
-
marginVertical,
|
|
93
|
-
...innerStyles
|
|
94
|
-
} = _reactNative.StyleSheet.flatten(style || {});
|
|
95
|
-
const margins = {
|
|
96
|
-
margin,
|
|
97
|
-
marginEnd,
|
|
98
|
-
marginTop,
|
|
99
|
-
marginLeft,
|
|
100
|
-
marginRight,
|
|
101
|
-
marginBottom,
|
|
102
|
-
marginHorizontal,
|
|
103
|
-
marginVertical
|
|
104
|
-
};
|
|
105
82
|
return /*#__PURE__*/React.createElement(_Elevation.default, {
|
|
106
83
|
style: {
|
|
107
84
|
elevation,
|
|
108
|
-
alignSelf: "stretch"
|
|
109
|
-
...margins
|
|
85
|
+
alignSelf: "stretch"
|
|
110
86
|
}
|
|
111
|
-
}, /*#__PURE__*/React.createElement(
|
|
87
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({}, rest, {
|
|
112
88
|
onPress: onPress,
|
|
113
89
|
accessibilityState: {
|
|
114
90
|
disabled
|
|
115
91
|
},
|
|
116
92
|
accessibilityRole: "button",
|
|
117
93
|
disabled: disabled || loading,
|
|
118
|
-
style: [styles.button, buttonStyle
|
|
94
|
+
style: [styles.button, buttonStyle]
|
|
119
95
|
}), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
120
96
|
style: styles.content
|
|
121
97
|
}, icon && loading !== true ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
@@ -8,7 +8,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _theming = require("../theming");
|
|
9
9
|
var _Touchable = _interopRequireDefault(require("./Touchable"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
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); }
|
|
12
11
|
const getWidth = numColumns => {
|
|
13
12
|
switch (numColumns) {
|
|
14
13
|
case 1:
|
|
@@ -28,6 +27,21 @@ const Card = _ref => {
|
|
|
28
27
|
...rest
|
|
29
28
|
} = _ref;
|
|
30
29
|
const width = getWidth(numColumns);
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement(_Touchable.default, {
|
|
31
|
+
disabled: !onPress,
|
|
32
|
+
onPress: onPress,
|
|
33
|
+
style: [style, {
|
|
34
|
+
width
|
|
35
|
+
}],
|
|
36
|
+
...rest
|
|
37
|
+
}, children);
|
|
38
|
+
};
|
|
39
|
+
var _default = (0, _theming.withTheme)(Card);
|
|
40
|
+
exports.default = _default;s,
|
|
41
|
+
style,
|
|
42
|
+
...rest
|
|
43
|
+
} = _ref;
|
|
44
|
+
const width = getWidth(numColumns);
|
|
31
45
|
return /*#__PURE__*/_react.default.createElement(_Touchable.default, _extends({
|
|
32
46
|
disabled: !onPress,
|
|
33
47
|
onPress: onPress,
|