@tecsinapse/react-native-kit 3.5.13 → 3.5.14-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/cjs/components/atoms/Avatar/Avatar.js +2 -2
  2. package/dist/cjs/components/atoms/Badge/Badge.js +5 -5
  3. package/dist/cjs/components/atoms/BottomNavigator/BottomNavigator.js +18 -13
  4. package/dist/cjs/components/atoms/BottomNavigator/Item.js +3 -22
  5. package/dist/cjs/components/atoms/Button/Button.js +2 -1
  6. package/dist/cjs/components/atoms/Button/States/Error.js +2 -2
  7. package/dist/cjs/components/atoms/Button/States/Loading.js +2 -2
  8. package/dist/cjs/components/atoms/Button/States/Success.js +2 -2
  9. package/dist/cjs/components/atoms/GroupButton/GroupButtonOption.js +2 -2
  10. package/dist/cjs/components/atoms/Header/Header.js +10 -25
  11. package/dist/cjs/components/atoms/Input/Input.js +37 -33
  12. package/dist/cjs/components/atoms/InputMask/InputMask.js +37 -33
  13. package/dist/cjs/components/atoms/Modal/ModalGroupManager.js +16 -12
  14. package/dist/cjs/components/atoms/Modal/ui/BaseModalView.js +16 -13
  15. package/dist/cjs/components/atoms/Skeleton/Pulse.js +2 -1
  16. package/dist/cjs/components/atoms/Skeleton/Skeleton.js +30 -25
  17. package/dist/cjs/components/atoms/Skeleton/Wave.js +2 -1
  18. package/dist/cjs/components/atoms/SnappingSlider/SnappingSlider.js +19 -18
  19. package/dist/cjs/components/atoms/Tag/Tag.js +6 -6
  20. package/dist/cjs/components/atoms/Text/Text.js +2 -2
  21. package/dist/cjs/components/atoms/TextArea/TextArea.js +19 -19
  22. package/dist/cjs/components/molecules/Calendar/Calendar.js +2 -2
  23. package/dist/cjs/components/molecules/DatePicker/DatePicker.js +4 -3
  24. package/dist/cjs/components/molecules/DateTimePicker/DateTimePicker.js +6 -5
  25. package/dist/cjs/components/molecules/DateTimePickerSelector/DateTimePickerSelector.js +46 -58
  26. package/dist/cjs/components/molecules/Grid/Grid.js +25 -24
  27. package/dist/cjs/components/molecules/Grid/Item/Item.js +2 -1
  28. package/dist/cjs/components/molecules/IconTextButton/IconTextButton.js +30 -26
  29. package/dist/cjs/components/molecules/IconTextButton/TextComponent.js +6 -5
  30. package/dist/cjs/components/molecules/IconTextButton/styled.js +1 -1
  31. package/dist/cjs/components/molecules/InputPassword/InputPassword.js +13 -9
  32. package/dist/cjs/components/molecules/LabeledSwitch/LabelComponent.js +6 -5
  33. package/dist/cjs/components/molecules/LabeledSwitch/LabeledSwitch.js +36 -32
  34. package/dist/cjs/components/molecules/ScrollableSelector/ScrollableSelector.js +36 -26
  35. package/dist/cjs/components/molecules/ScrollableSelector/components/DateBlock.js +52 -48
  36. package/dist/cjs/components/molecules/Select/Select.js +18 -15
  37. package/dist/cjs/components/molecules/Select/components/Flat.js +2 -1
  38. package/dist/cjs/components/molecules/Select/components/Modal.js +59 -52
  39. package/dist/cjs/components/molecules/Select/components/Option.js +26 -26
  40. package/dist/cjs/components/molecules/Select/components/Section.js +4 -3
  41. package/dist/cjs/components/molecules/Select/hooks/useModal.js +2 -1
  42. package/dist/cjs/components/molecules/Select/hooks/useSelect.js +1 -0
  43. package/dist/cjs/components/molecules/Snackbar/Snackbar.js +2 -2
  44. package/dist/cjs/utils/date.js +2 -7
  45. package/dist/esm/components/atoms/Avatar/Avatar.js +2 -2
  46. package/dist/esm/components/atoms/Badge/Badge.js +5 -5
  47. package/dist/esm/components/atoms/BottomNavigator/BottomNavigator.js +18 -13
  48. package/dist/esm/components/atoms/BottomNavigator/Item.js +3 -3
  49. package/dist/esm/components/atoms/Button/Button.js +3 -2
  50. package/dist/esm/components/atoms/Button/States/Error.js +2 -2
  51. package/dist/esm/components/atoms/Button/States/Loading.js +2 -2
  52. package/dist/esm/components/atoms/Button/States/Success.js +2 -2
  53. package/dist/esm/components/atoms/GroupButton/GroupButtonOption.js +2 -2
  54. package/dist/esm/components/atoms/Header/Header.js +10 -6
  55. package/dist/esm/components/atoms/Input/Input.js +37 -33
  56. package/dist/esm/components/atoms/InputMask/InputMask.js +37 -33
  57. package/dist/esm/components/atoms/Modal/ModalGroupManager.js +17 -13
  58. package/dist/esm/components/atoms/Modal/ui/BaseModalView.js +17 -14
  59. package/dist/esm/components/atoms/Skeleton/Pulse.js +3 -2
  60. package/dist/esm/components/atoms/Skeleton/Skeleton.js +31 -26
  61. package/dist/esm/components/atoms/Skeleton/Wave.js +3 -2
  62. package/dist/esm/components/atoms/SnappingSlider/SnappingSlider.js +19 -18
  63. package/dist/esm/components/atoms/Tag/Tag.js +6 -6
  64. package/dist/esm/components/atoms/Text/Text.js +2 -2
  65. package/dist/esm/components/atoms/TextArea/TextArea.js +19 -19
  66. package/dist/esm/components/molecules/Calendar/Calendar.js +2 -2
  67. package/dist/esm/components/molecules/DatePicker/DatePicker.js +5 -4
  68. package/dist/esm/components/molecules/DateTimePicker/DateTimePicker.js +6 -5
  69. package/dist/esm/components/molecules/DateTimePickerSelector/DateTimePickerSelector.js +46 -39
  70. package/dist/esm/components/molecules/Grid/Grid.js +25 -24
  71. package/dist/esm/components/molecules/Grid/Item/Item.js +2 -1
  72. package/dist/esm/components/molecules/IconTextButton/IconTextButton.js +30 -26
  73. package/dist/esm/components/molecules/IconTextButton/TextComponent.js +6 -5
  74. package/dist/esm/components/molecules/IconTextButton/styled.js +1 -1
  75. package/dist/esm/components/molecules/InputPassword/InputPassword.js +13 -9
  76. package/dist/esm/components/molecules/LabeledSwitch/LabelComponent.js +6 -5
  77. package/dist/esm/components/molecules/LabeledSwitch/LabeledSwitch.js +36 -32
  78. package/dist/esm/components/molecules/ScrollableSelector/ScrollableSelector.js +37 -27
  79. package/dist/esm/components/molecules/ScrollableSelector/components/DateBlock.js +53 -49
  80. package/dist/esm/components/molecules/Select/Select.js +18 -15
  81. package/dist/esm/components/molecules/Select/components/Flat.js +2 -1
  82. package/dist/esm/components/molecules/Select/components/Modal.js +59 -52
  83. package/dist/esm/components/molecules/Select/components/Option.js +26 -26
  84. package/dist/esm/components/molecules/Select/components/Section.js +5 -4
  85. package/dist/esm/components/molecules/Select/hooks/useModal.js +2 -1
  86. package/dist/esm/components/molecules/Select/hooks/useSelect.js +1 -0
  87. package/dist/esm/components/molecules/Snackbar/Snackbar.js +2 -2
  88. package/dist/esm/utils/date.js +2 -7
  89. package/dist/types/components/atoms/Skeleton/Pulse.d.ts +1 -2
  90. package/dist/types/components/atoms/Skeleton/Wave.d.ts +1 -2
  91. package/dist/types/components/molecules/Select/hooks/useModal.d.ts +1 -1
  92. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var reactNative = require('react-native');
4
3
  var dateFnsLocales = require('date-fns/locale');
4
+ var reactNative = require('react-native');
5
5
 
6
6
  function _interopNamespaceDefault(e) {
7
7
  var n = Object.create(null);
@@ -23,12 +23,7 @@ function _interopNamespaceDefault(e) {
23
23
  var dateFnsLocales__namespace = /*#__PURE__*/_interopNamespaceDefault(dateFnsLocales);
24
24
 
25
25
  const getLocale = () => {
26
- let locale;
27
- if (reactNative.Platform.OS === "ios") {
28
- locale = reactNative.NativeModules.SettingsManager.settings.AppleLocale || reactNative.NativeModules.SettingsManager.settings.AppleLanguages[0];
29
- } else {
30
- locale = reactNative.NativeModules.I18nManager.localeIdentifier;
31
- }
26
+ const locale = reactNative.I18nManager.getConstants().localeIdentifier ?? "pt_BR";
32
27
  const code = locale.replace("_", "");
33
28
  return dateFnsLocales__namespace[code];
34
29
  };
@@ -1,9 +1,9 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { Avatar as Avatar$1 } from '@tecsinapse/react-core';
2
- import React__default from 'react';
3
3
  import Text from '../Text/Text.js';
4
4
 
5
5
  const Avatar = (props) => {
6
- return /* @__PURE__ */ React__default.createElement(Avatar$1, { ...props, TextComponent: Text });
6
+ return /* @__PURE__ */ jsx(Avatar$1, { ...props, TextComponent: Text });
7
7
  };
8
8
 
9
9
  export { Avatar as default };
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { Badge as Badge$1 } from '@tecsinapse/react-core';
3
3
  import Text from '../Text/Text.js';
4
4
 
@@ -8,13 +8,13 @@ const Badge = ({
8
8
  value,
9
9
  ...props
10
10
  }) => {
11
- return /* @__PURE__ */ React__default.createElement(
11
+ return /* @__PURE__ */ jsx(
12
12
  Badge$1,
13
13
  {
14
14
  ...props,
15
- value: /* @__PURE__ */ React__default.createElement(Text, { fontColor, fontWeight: "bold", typography: "label" }, value)
16
- },
17
- children
15
+ value: /* @__PURE__ */ jsx(Text, { fontColor, fontWeight: "bold", typography: "label", children: value }),
16
+ children
17
+ }
18
18
  );
19
19
  };
20
20
 
@@ -1,3 +1,4 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
1
2
  import * as React from 'react';
2
3
  import { StyledView, TabContainer } from './styled.js';
3
4
  import Item from './Item.js';
@@ -9,21 +10,25 @@ function BottomNavigator({
9
10
  children,
10
11
  ...rest
11
12
  }) {
12
- return /* @__PURE__ */ React.createElement(StyledView, { ...rest }, React.Children.map(children, (child) => {
13
+ return /* @__PURE__ */ jsx(StyledView, { ...rest, children: React.Children.map(children, (child) => {
13
14
  const { value, label, labelProps, labelElement } = child.props;
14
15
  const isSelected = value == selected;
15
- return /* @__PURE__ */ React.createElement(TabContainer, { selected: isSelected, onPress: () => onSelect(value) }, React.cloneElement(child, {
16
- _selected: isSelected
17
- }), label && !labelElement && /* @__PURE__ */ React.createElement(
18
- Text,
19
- {
20
- colorVariant: labelProps?.colorVariant || isSelected ? "primary" : "secondary",
21
- typography: labelProps?.typography || "sub",
22
- ...labelProps
23
- },
24
- label
25
- ), labelElement && labelElement);
26
- }));
16
+ return /* @__PURE__ */ jsxs(TabContainer, { selected: isSelected, onPress: () => onSelect(value), children: [
17
+ React.cloneElement(child, {
18
+ _selected: isSelected
19
+ }),
20
+ label && !labelElement && /* @__PURE__ */ jsx(
21
+ Text,
22
+ {
23
+ colorVariant: labelProps?.colorVariant || isSelected ? "primary" : "secondary",
24
+ typography: labelProps?.typography || "sub",
25
+ ...labelProps,
26
+ children: label
27
+ }
28
+ ),
29
+ labelElement && labelElement
30
+ ] });
31
+ }) });
27
32
  }
28
33
  BottomNavigator.Item = Item;
29
34
 
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { Icon } from '@tecsinapse/react-core';
3
3
  import { TabContent, CustomTabContent } from './styled.js';
4
4
 
@@ -11,9 +11,9 @@ function Item({
11
11
  const styledButtonStyle = _selected ? void 0 : { backgroundColor: "transparent" };
12
12
  const iconColorVariant = _selected ? "primary" : "secondary";
13
13
  if (icon) {
14
- return /* @__PURE__ */ React.createElement(TabContent, { style: styledButtonStyle, ...rest }, /* @__PURE__ */ React.createElement(Icon, { colorVariant: iconColorVariant, size: "centi", ...icon }));
14
+ return /* @__PURE__ */ jsx(TabContent, { style: styledButtonStyle, ...rest, children: /* @__PURE__ */ jsx(Icon, { colorVariant: iconColorVariant, size: "centi", ...icon }) });
15
15
  } else {
16
- return /* @__PURE__ */ React.createElement(CustomTabContent, null, children);
16
+ return /* @__PURE__ */ jsx(CustomTabContent, { children });
17
17
  }
18
18
  }
19
19
 
@@ -1,5 +1,6 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { Button as Button$1 } from '@tecsinapse/react-core';
2
- import React__default, { useCallback } from 'react';
3
+ import { useCallback } from 'react';
3
4
  import { Keyboard } from 'react-native';
4
5
 
5
6
  const Button = ({
@@ -14,7 +15,7 @@ const Button = ({
14
15
  },
15
16
  [onPress]
16
17
  );
17
- return /* @__PURE__ */ React__default.createElement(Button$1, { ...others, onPress: handleOnPress });
18
+ return /* @__PURE__ */ jsx(Button$1, { ...others, onPress: handleOnPress });
18
19
  };
19
20
 
20
21
  export { Button };
@@ -1,9 +1,9 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { Error as Error$1 } from '@tecsinapse/react-core';
2
- import React__default from 'react';
3
3
  import Text from '../../Text/Text.js';
4
4
 
5
5
  const Error = (props) => {
6
- return /* @__PURE__ */ React__default.createElement(Error$1, { ...props, textComponent: Text });
6
+ return /* @__PURE__ */ jsx(Error$1, { ...props, textComponent: Text });
7
7
  };
8
8
 
9
9
  export { Error as default };
@@ -1,9 +1,9 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { Loading as Loading$1 } from '@tecsinapse/react-core';
2
- import React__default from 'react';
3
3
  import Text from '../../Text/Text.js';
4
4
 
5
5
  const Loading = (props) => {
6
- return /* @__PURE__ */ React__default.createElement(Loading$1, { ...props, textComponent: Text });
6
+ return /* @__PURE__ */ jsx(Loading$1, { ...props, textComponent: Text });
7
7
  };
8
8
 
9
9
  export { Loading as default };
@@ -1,9 +1,9 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { Success as Success$1 } from '@tecsinapse/react-core';
2
- import React__default from 'react';
3
3
  import Text from '../../Text/Text.js';
4
4
 
5
5
  const Success = (props) => {
6
- return /* @__PURE__ */ React__default.createElement(Success$1, { ...props, textComponent: Text });
6
+ return /* @__PURE__ */ jsx(Success$1, { ...props, textComponent: Text });
7
7
  };
8
8
 
9
9
  export { Success as default };
@@ -1,9 +1,9 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { GroupButtonOption as GroupButtonOption$1 } from '@tecsinapse/react-core';
2
- import React__default from 'react';
3
3
  import Text from '../Text/Text.js';
4
4
 
5
5
  const GroupButtonOption = (props) => {
6
- return /* @__PURE__ */ React__default.createElement(GroupButtonOption$1, { ...props, TextComponent: Text });
6
+ return /* @__PURE__ */ jsx(GroupButtonOption$1, { ...props, TextComponent: Text });
7
7
  };
8
8
 
9
9
  export { GroupButtonOption as default };
@@ -1,6 +1,6 @@
1
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
1
2
  import { StyledView, Dummy, FloatingButton } from './styled.js';
2
3
  import { Icon } from '@tecsinapse/react-core';
3
- import * as React from 'react';
4
4
  import Badge from '../Badge/Badge.js';
5
5
 
6
6
  const Header = ({
@@ -9,17 +9,21 @@ const Header = ({
9
9
  children,
10
10
  ...rest
11
11
  }) => {
12
- const ButtonBase = ({ button }) => /* @__PURE__ */ React.createElement(
12
+ const ButtonBase = ({ button }) => /* @__PURE__ */ jsx(
13
13
  FloatingButton,
14
14
  {
15
15
  ...button,
16
16
  variant: button?.variant || "filled",
17
17
  color: button?.color || "primary",
18
- size: button?.size || "small"
19
- },
20
- button?.icon && /* @__PURE__ */ React.createElement(Icon, { ...button?.icon })
18
+ size: button?.size || "small",
19
+ children: button?.icon && /* @__PURE__ */ jsx(Icon, { ...button?.icon })
20
+ }
21
21
  );
22
- return /* @__PURE__ */ React.createElement(StyledView, { ...rest }, leftButton ? /* @__PURE__ */ React.createElement(React.Fragment, null, leftButton?.valueBadge ? /* @__PURE__ */ React.createElement(Badge, { value: leftButton.valueBadge, color: "error" }, /* @__PURE__ */ React.createElement(ButtonBase, { button: leftButton })) : /* @__PURE__ */ React.createElement(ButtonBase, { button: leftButton })) : /* @__PURE__ */ React.createElement(Dummy, { disabled: true }), children, rightButton ? /* @__PURE__ */ React.createElement(React.Fragment, null, rightButton?.valueBadge ? /* @__PURE__ */ React.createElement(Badge, { value: rightButton.valueBadge, color: "error" }, /* @__PURE__ */ React.createElement(ButtonBase, { button: rightButton })) : /* @__PURE__ */ React.createElement(ButtonBase, { button: rightButton })) : /* @__PURE__ */ React.createElement(Dummy, { disabled: true }));
22
+ return /* @__PURE__ */ jsxs(StyledView, { ...rest, children: [
23
+ leftButton ? /* @__PURE__ */ jsx(Fragment, { children: leftButton?.valueBadge ? /* @__PURE__ */ jsx(Badge, { value: leftButton.valueBadge, color: "error", children: /* @__PURE__ */ jsx(ButtonBase, { button: leftButton }) }) : /* @__PURE__ */ jsx(ButtonBase, { button: leftButton }) }) : /* @__PURE__ */ jsx(Dummy, { disabled: true }),
24
+ children,
25
+ rightButton ? /* @__PURE__ */ jsx(Fragment, { children: rightButton?.valueBadge ? /* @__PURE__ */ jsx(Badge, { value: rightButton.valueBadge, color: "error", children: /* @__PURE__ */ jsx(ButtonBase, { button: rightButton }) }) : /* @__PURE__ */ jsx(ButtonBase, { button: rightButton }) }) : /* @__PURE__ */ jsx(Dummy, { disabled: true })
26
+ ] });
23
27
  };
24
28
 
25
29
  export { Header as default };
@@ -1,3 +1,4 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
1
2
  import { useInputFocus, RFValue, InputContainer, Hint } from '@tecsinapse/react-core';
2
3
  import React__default from 'react';
3
4
  import { View } from 'react-native';
@@ -30,7 +31,7 @@ const Input = React__default.forwardRef(
30
31
  placeholder,
31
32
  ...rest
32
33
  }, ref) => {
33
- const _hint = hintComponent || /* @__PURE__ */ React__default.createElement(Hint, { TextComponent: Text, text: hint, variant });
34
+ const _hint = hintComponent || /* @__PURE__ */ jsx(Hint, { TextComponent: Text, text: hint, variant });
34
35
  const { focused, handleBlur, handleFocus } = useInputFocus(
35
36
  onFocus,
36
37
  onBlur,
@@ -41,41 +42,44 @@ const Input = React__default.forwardRef(
41
42
  ...{ inputContainerStyle }
42
43
  };
43
44
  const onlyLabel = label && !placeholder;
44
- return /* @__PURE__ */ React__default.createElement(View, null, /* @__PURE__ */ React__default.createElement(
45
- InputContainer,
46
- {
47
- label: value ? label : void 0,
48
- labelColor,
49
- labelColorVariant,
50
- labelColorTone,
51
- labelTypography,
52
- labelStack,
53
- labelWeight,
54
- LabelComponent: Text,
55
- leftComponent,
56
- rightComponent,
57
- borderColor,
58
- borderColorGradation,
59
- inputContainerStyle: internalStyle,
60
- focused,
61
- disabled,
62
- variant
63
- },
64
- /* @__PURE__ */ React__default.createElement(
65
- StyledNativeInput,
45
+ return /* @__PURE__ */ jsxs(View, { children: [
46
+ /* @__PURE__ */ jsx(
47
+ InputContainer,
66
48
  {
67
- ...rest,
68
- placeholder: onlyLabel ? label : placeholder,
69
- value,
70
- ref,
71
- fontStack: inputFontStack,
72
- fontWeight: inputFontWeight,
49
+ label: value ? label : void 0,
50
+ labelColor,
51
+ labelColorVariant,
52
+ labelColorTone,
53
+ labelTypography,
54
+ labelStack,
55
+ labelWeight,
56
+ LabelComponent: Text,
57
+ leftComponent,
58
+ rightComponent,
59
+ borderColor,
60
+ borderColorGradation,
61
+ inputContainerStyle: internalStyle,
62
+ focused,
73
63
  disabled,
74
- onFocus: handleFocus,
75
- onBlur: handleBlur
64
+ variant,
65
+ children: /* @__PURE__ */ jsx(
66
+ StyledNativeInput,
67
+ {
68
+ ...rest,
69
+ placeholder: onlyLabel ? label : placeholder,
70
+ value,
71
+ ref,
72
+ fontStack: inputFontStack,
73
+ fontWeight: inputFontWeight,
74
+ disabled,
75
+ onFocus: handleFocus,
76
+ onBlur: handleBlur
77
+ }
78
+ )
76
79
  }
77
- )
78
- ), hint && _hint);
80
+ ),
81
+ hint && _hint
82
+ ] });
79
83
  }
80
84
  );
81
85
  Input.displayName = "Input";
@@ -1,3 +1,4 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
1
2
  import { useInputFocus, Hint } from '@tecsinapse/react-core';
2
3
  import React__default from 'react';
3
4
  import { View } from 'react-native';
@@ -31,48 +32,51 @@ const InputMask = React__default.forwardRef(
31
32
  placeholder,
32
33
  ...rest
33
34
  }, ref) => {
34
- const _hint = hintComponent || /* @__PURE__ */ React__default.createElement(Hint, { TextComponent: Text, text: hint, variant });
35
+ const _hint = hintComponent || /* @__PURE__ */ jsx(Hint, { TextComponent: Text, text: hint, variant });
35
36
  const { focused, handleBlur, handleFocus } = useInputFocus(
36
37
  onFocus,
37
38
  onBlur,
38
39
  !disabled
39
40
  );
40
41
  const onlyLabel = label && !placeholder;
41
- return /* @__PURE__ */ React__default.createElement(View, { style }, /* @__PURE__ */ React__default.createElement(
42
- StyledInputContainer,
43
- {
44
- label: String(value) ? label : void 0,
45
- labelColor,
46
- labelColorVariant,
47
- labelColorTone,
48
- labelTypography,
49
- labelStack,
50
- labelWeight,
51
- LabelComponent: Text,
52
- leftComponent,
53
- rightComponent,
54
- borderColor,
55
- borderColorGradation,
56
- inputContainerStyle,
57
- focused,
58
- disabled,
59
- variant
60
- },
61
- /* @__PURE__ */ React__default.createElement(
62
- StyledNativeInputMask,
42
+ return /* @__PURE__ */ jsxs(View, { style, children: [
43
+ /* @__PURE__ */ jsx(
44
+ StyledInputContainer,
63
45
  {
64
- ...rest,
65
- placeholder: onlyLabel ? label : placeholder,
66
- value,
67
- ref,
68
- fontStack: inputFontStack,
69
- fontWeight: inputFontWeight,
46
+ label: String(value) ? label : void 0,
47
+ labelColor,
48
+ labelColorVariant,
49
+ labelColorTone,
50
+ labelTypography,
51
+ labelStack,
52
+ labelWeight,
53
+ LabelComponent: Text,
54
+ leftComponent,
55
+ rightComponent,
56
+ borderColor,
57
+ borderColorGradation,
58
+ inputContainerStyle,
59
+ focused,
70
60
  disabled,
71
- onFocus: handleFocus,
72
- onBlur: handleBlur
61
+ variant,
62
+ children: /* @__PURE__ */ jsx(
63
+ StyledNativeInputMask,
64
+ {
65
+ ...rest,
66
+ placeholder: onlyLabel ? label : placeholder,
67
+ value,
68
+ ref,
69
+ fontStack: inputFontStack,
70
+ fontWeight: inputFontWeight,
71
+ disabled,
72
+ onFocus: handleFocus,
73
+ onBlur: handleBlur
74
+ }
75
+ )
73
76
  }
74
- )
75
- ), hint && _hint);
77
+ ),
78
+ hint && _hint
79
+ ] });
76
80
  }
77
81
  );
78
82
  InputMask.displayName = "InputMask";
@@ -1,4 +1,5 @@
1
- import React__default, { useState } from 'react';
1
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
+ import { useState } from 'react';
2
3
  import { Modal } from 'react-native';
3
4
  import { createModalLifecycleHandler } from './ModalLifecycleHandler.js';
4
5
 
@@ -7,18 +8,21 @@ const ModalGroupManager = ({ children, ...others }) => {
7
8
  modalLifecycle.attach(useState([]));
8
9
  const _render = modalLifecycle.render();
9
10
  const hasModals = _render.length > 0;
10
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children, /* @__PURE__ */ React__default.createElement(
11
- Modal,
12
- {
13
- transparent: true,
14
- statusBarTranslucent: true,
15
- animationType: "none",
16
- visible: hasModals,
17
- onRequestClose: modalLifecycle.closeLastOpenedModal,
18
- ...others
19
- },
20
- _render
21
- ));
11
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
12
+ children,
13
+ /* @__PURE__ */ jsx(
14
+ Modal,
15
+ {
16
+ transparent: true,
17
+ statusBarTranslucent: true,
18
+ animationType: "none",
19
+ visible: hasModals,
20
+ onRequestClose: modalLifecycle.closeLastOpenedModal,
21
+ ...others,
22
+ children: _render
23
+ }
24
+ )
25
+ ] });
22
26
  };
23
27
 
24
28
  export { ModalGroupManager, modalLifecycle };
@@ -1,5 +1,6 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
1
2
  import { BoxContent } from '@tecsinapse/react-core';
2
- import React__default, { useState, useRef, useCallback, useEffect } from 'react';
3
+ import { useState, useRef, useCallback, useEffect } from 'react';
3
4
  import { Animated, Easing, Keyboard, Pressable, Dimensions, StatusBar } from 'react-native';
4
5
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
5
6
  import { StyledPressableBackDrop, BackDropView, CloseBar } from './styled.js';
@@ -119,26 +120,28 @@ const ModalView = ({
119
120
  hideEvent.remove();
120
121
  };
121
122
  }, []);
122
- return /* @__PURE__ */ React__default.createElement(StyledPressableBackDrop, { onPress: !frozen ? close : void 0 }, /* @__PURE__ */ React__default.createElement(BackDropView, { style: { backgroundColor: backgroundInterpolation } }, /* @__PURE__ */ React__default.createElement(
123
+ return /* @__PURE__ */ jsx(StyledPressableBackDrop, { onPress: !frozen ? close : void 0, children: /* @__PURE__ */ jsx(BackDropView, { style: { backgroundColor: backgroundInterpolation }, children: /* @__PURE__ */ jsx(
123
124
  Animated.View,
124
125
  {
125
126
  style: {
126
127
  paddingBottom: isLastShown ? getKeyboardHeight(keyboardOpened) : 0,
127
128
  opacity: opacityCarrier,
128
129
  transform: [{ translateY: translationCarrier }]
129
- }
130
- },
131
- /* @__PURE__ */ React__default.createElement(Pressable, null, /* @__PURE__ */ React__default.createElement(
132
- BoxComponent,
133
- {
134
- onLayout: handleBoxLayoutChanges,
135
- style: { paddingBottom: offset },
136
- variant: "bottom"
137
130
  },
138
- showCloseBar && /* @__PURE__ */ React__default.createElement(CloseBar, null),
139
- children
140
- ))
141
- )));
131
+ children: /* @__PURE__ */ jsx(Pressable, { children: /* @__PURE__ */ jsxs(
132
+ BoxComponent,
133
+ {
134
+ onLayout: handleBoxLayoutChanges,
135
+ style: { paddingBottom: offset },
136
+ variant: "bottom",
137
+ children: [
138
+ showCloseBar && /* @__PURE__ */ jsx(CloseBar, {}),
139
+ children
140
+ ]
141
+ }
142
+ ) })
143
+ }
144
+ ) }) });
142
145
  };
143
146
 
144
147
  export { ModalView };
@@ -1,5 +1,6 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { Animated } from 'react-native';
2
- import React__default, { useRef, useEffect } from 'react';
3
+ import { useRef, useEffect } from 'react';
3
4
  import { pulseAnimation } from './animation.js';
4
5
 
5
6
  const Pulse = ({
@@ -12,7 +13,7 @@ const Pulse = ({
12
13
  useEffect(() => {
13
14
  pulseAnimation(active, animatedValue);
14
15
  }, [active]);
15
- return /* @__PURE__ */ React__default.createElement(
16
+ return /* @__PURE__ */ jsx(
16
17
  Animated.View,
17
18
  {
18
19
  style: {
@@ -1,4 +1,5 @@
1
- import React__default, { useState } from 'react';
1
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
+ import { useState } from 'react';
2
3
  import { View } from 'react-native';
3
4
  import { Wrapper } from './styled.js';
4
5
  import { Wave } from './Wave.js';
@@ -27,31 +28,35 @@ const Skeleton = ({
27
28
  const getChildrenLayout = (event) => {
28
29
  setChildrenLayout(event.nativeEvent.layout);
29
30
  };
30
- return /* @__PURE__ */ React__default.createElement(Wrapper, { width, height, radius, ...rest }, active && animation === "wave" ? /* @__PURE__ */ React__default.createElement(
31
- Wave,
32
- {
33
- active,
34
- width,
35
- height,
36
- childrenLayout
37
- }
38
- ) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null), active && animation === "pulse" ? /* @__PURE__ */ React__default.createElement(
39
- Pulse,
40
- {
41
- active,
42
- width,
43
- height,
44
- childrenLayout
45
- }
46
- ) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null), /* @__PURE__ */ React__default.createElement(
47
- View,
48
- {
49
- onLayout: (event) => getChildrenLayout(event),
50
- style: { opacity: active ? 0 : 1 },
51
- pointerEvents: active ? "none" : "auto"
52
- },
53
- children
54
- ));
31
+ return /* @__PURE__ */ jsxs(Wrapper, { width, height, radius, ...rest, children: [
32
+ active && animation === "wave" ? /* @__PURE__ */ jsx(
33
+ Wave,
34
+ {
35
+ active,
36
+ width,
37
+ height,
38
+ childrenLayout
39
+ }
40
+ ) : /* @__PURE__ */ jsx(Fragment, {}),
41
+ active && animation === "pulse" ? /* @__PURE__ */ jsx(
42
+ Pulse,
43
+ {
44
+ active,
45
+ width,
46
+ height,
47
+ childrenLayout
48
+ }
49
+ ) : /* @__PURE__ */ jsx(Fragment, {}),
50
+ /* @__PURE__ */ jsx(
51
+ View,
52
+ {
53
+ onLayout: (event) => getChildrenLayout(event),
54
+ style: { opacity: active ? 0 : 1 },
55
+ pointerEvents: active ? "none" : "auto",
56
+ children
57
+ }
58
+ )
59
+ ] });
55
60
  };
56
61
 
57
62
  export { Skeleton as default };
@@ -1,4 +1,5 @@
1
- import React__default, { useRef, useEffect } from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { useRef, useEffect } from 'react';
2
3
  import { Animated } from 'react-native';
3
4
  import * as RNGradient from 'react-native-linear-gradient';
4
5
  import { waveAnimation } from './animation.js';
@@ -21,7 +22,7 @@ const Wave = ({
21
22
  useEffect(() => {
22
23
  waveAnimation(active, animatedValue);
23
24
  }, [active]);
24
- return /* @__PURE__ */ React__default.createElement(
25
+ return /* @__PURE__ */ jsx(
25
26
  AnimatedLinearGradient,
26
27
  {
27
28
  colors: [