sapo-components-ui-rn 1.1.95 → 1.1.96

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/dist/index.esm.js CHANGED
@@ -5874,13 +5874,14 @@ var TextInputNumber = function (_a) {
5874
5874
  React__default.createElement(Spacer, { width: SPACE_12 }))),
5875
5875
  !disabled && textError.length > 0 && (React__default.createElement(View, { paddingHorizontal: SPACE_12, paddingVertical: SPACE_4 },
5876
5876
  React__default.createElement(Text$1, { size: 14, numberOfLines: 1, color: theme.colors.textErrorDefault, style: [textErrorStyle] }, textError))),
5877
- React__default.createElement(Modal, { visible: isShowModalKeyboard, transparent: true, animationType: "fade", onRequestClose: onCloseModalKeyboard },
5878
- React__default.createElement(TouchableOpacity, { style: styles$c.modalOverlay, activeOpacity: 1, onPress: onCloseModalKeyboard },
5879
- React__default.createElement(View, { onPress: function () { }, activeOpacity: 1, backgroundColor: colors.surfacePrimaryDefault, style: [styles$c.modalContent, keyboardStyle] },
5877
+ React__default.createElement(Modal, { visible: isShowModalKeyboard, transparent: true, animationType: "fade", statusBarTranslucent: true, onRequestClose: onCloseModalKeyboard },
5878
+ React__default.createElement(View, { style: styles$c.modalOverlay },
5879
+ React__default.createElement(TouchableOpacity, { style: styles$c.modalBackdrop, activeOpacity: 1, onPress: onCloseModalKeyboard }),
5880
+ React__default.createElement(View, { backgroundColor: colors.surfacePrimaryDefault, style: [styles$c.modalContent, keyboardStyle] },
5880
5881
  React__default.createElement(Text$1, { style: [styles$c.modalTitle, styles$c.text18] }, label),
5881
- React__default.createElement(View, { width: "100%" },
5882
- React__default.createElement(View, { paddingHorizontal: SPACE_40 },
5883
- React__default.createElement(Text$1, { numberOfLines: 1, style: [styles$c.text30, styles$c.valueText] }, formatNumberInput$1(inputValue, formatDecimal) || "")),
5882
+ React__default.createElement(View, { width: "100%", style: styles$c.valueRow },
5883
+ React__default.createElement(View, { style: styles$c.valueTextContainer },
5884
+ React__default.createElement(Text$1, { numberOfLines: 1, style: [styles$c.text30, styles$c.valueText] }, formatNumberInput$1(inputValue, formatDecimal) || "\u00A0")),
5884
5885
  React__default.createElement(TouchableOpacity, { onPress: handleClear, style: styles$c.clearButton },
5885
5886
  React__default.createElement(SvgIcon, { name: "IconClearText", width: 24, height: 24, color: colors.textSecondary }))),
5886
5887
  React__default.createElement(View, { style: styles$c.keyboardGrid }, [
@@ -5936,25 +5937,42 @@ var styles$c = StyleSheet.create(__assign(__assign({}, containerStyles), { disab
5936
5937
  height: BUTTON_HEIGHT_SMALL,
5937
5938
  }, modalOverlay: {
5938
5939
  flex: 1,
5939
- backgroundColor: "rgba(0, 0, 0, 0.5)",
5940
+ width: "100%",
5941
+ height: "100%",
5940
5942
  justifyContent: "center",
5941
5943
  alignItems: "center",
5942
- }, modalContent: {
5944
+ }, modalBackdrop: __assign(__assign({}, StyleSheet.absoluteFillObject), { backgroundColor: "rgba(0, 0, 0, 0.5)" }), modalContent: {
5943
5945
  borderRadius: 20,
5944
5946
  width: "90%",
5945
5947
  paddingBottom: 20,
5946
5948
  alignItems: "center",
5947
5949
  overflow: "hidden",
5950
+ zIndex: 1,
5948
5951
  }, modalTitle: {
5949
5952
  textAlign: "center",
5950
5953
  marginTop: 16,
5951
5954
  marginBottom: 8,
5952
- }, valueText: {
5953
- textAlign: "center",
5954
- }, clearButton: {
5955
+ }, valueRow: {
5956
+ width: "100%",
5957
+ minHeight: 48,
5958
+ justifyContent: "center",
5959
+ position: "relative",
5960
+ }, valueTextContainer: {
5961
+ width: "100%",
5962
+ paddingHorizontal: SPACE_40,
5963
+ minHeight: 40,
5964
+ justifyContent: "center",
5965
+ alignItems: "center",
5966
+ }, valueText: __assign({ textAlign: "center", width: "100%" }, (Platform.OS === "android" && {
5967
+ includeFontPadding: false,
5968
+ textAlignVertical: "center",
5969
+ })), clearButton: {
5955
5970
  padding: 8,
5956
5971
  position: "absolute",
5957
5972
  right: SPACE_12,
5973
+ top: 0,
5974
+ bottom: 0,
5975
+ justifyContent: "center",
5958
5976
  }, keyboardGrid: {
5959
5977
  marginVertical: 8,
5960
5978
  width: "90%",