@tecsinapse/react-native-kit 3.5.13 → 3.5.14

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,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var reactCore = require('@tecsinapse/react-core');
4
- var React = require('react');
5
5
  var Text = require('../Text/Text.js');
6
6
 
7
7
  const Avatar = (props) => {
8
- return /* @__PURE__ */ React.createElement(reactCore.Avatar, { ...props, TextComponent: Text });
8
+ return /* @__PURE__ */ jsxRuntime.jsx(reactCore.Avatar, { ...props, TextComponent: Text });
9
9
  };
10
10
 
11
11
  module.exports = Avatar;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var jsxRuntime = require('react/jsx-runtime');
4
4
  var reactCore = require('@tecsinapse/react-core');
5
5
  var Text = require('../Text/Text.js');
6
6
 
@@ -10,13 +10,13 @@ const Badge = ({
10
10
  value,
11
11
  ...props
12
12
  }) => {
13
- return /* @__PURE__ */ React.createElement(
13
+ return /* @__PURE__ */ jsxRuntime.jsx(
14
14
  reactCore.Badge,
15
15
  {
16
16
  ...props,
17
- value: /* @__PURE__ */ React.createElement(Text, { fontColor, fontWeight: "bold", typography: "label" }, value)
18
- },
19
- children
17
+ value: /* @__PURE__ */ jsxRuntime.jsx(Text, { fontColor, fontWeight: "bold", typography: "label", children: value }),
18
+ children
19
+ }
20
20
  );
21
21
  };
22
22
 
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var React = require('react');
4
5
  var styled = require('./styled.js');
5
6
  var Item = require('./Item.js');
@@ -30,21 +31,25 @@ function BottomNavigator({
30
31
  children,
31
32
  ...rest
32
33
  }) {
33
- return /* @__PURE__ */ React__namespace.createElement(styled.StyledView, { ...rest }, React__namespace.Children.map(children, (child) => {
34
+ return /* @__PURE__ */ jsxRuntime.jsx(styled.StyledView, { ...rest, children: React__namespace.Children.map(children, (child) => {
34
35
  const { value, label, labelProps, labelElement } = child.props;
35
36
  const isSelected = value == selected;
36
- return /* @__PURE__ */ React__namespace.createElement(styled.TabContainer, { selected: isSelected, onPress: () => onSelect(value) }, React__namespace.cloneElement(child, {
37
- _selected: isSelected
38
- }), label && !labelElement && /* @__PURE__ */ React__namespace.createElement(
39
- Text,
40
- {
41
- colorVariant: labelProps?.colorVariant || isSelected ? "primary" : "secondary",
42
- typography: labelProps?.typography || "sub",
43
- ...labelProps
44
- },
45
- label
46
- ), labelElement && labelElement);
47
- }));
37
+ return /* @__PURE__ */ jsxRuntime.jsxs(styled.TabContainer, { selected: isSelected, onPress: () => onSelect(value), children: [
38
+ React__namespace.cloneElement(child, {
39
+ _selected: isSelected
40
+ }),
41
+ label && !labelElement && /* @__PURE__ */ jsxRuntime.jsx(
42
+ Text,
43
+ {
44
+ colorVariant: labelProps?.colorVariant || isSelected ? "primary" : "secondary",
45
+ typography: labelProps?.typography || "sub",
46
+ ...labelProps,
47
+ children: label
48
+ }
49
+ ),
50
+ labelElement && labelElement
51
+ ] });
52
+ }) });
48
53
  }
49
54
  BottomNavigator.Item = Item;
50
55
 
@@ -1,28 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var jsxRuntime = require('react/jsx-runtime');
4
4
  var reactCore = require('@tecsinapse/react-core');
5
5
  var styled = require('./styled.js');
6
6
 
7
- function _interopNamespaceDefault(e) {
8
- var n = Object.create(null);
9
- if (e) {
10
- Object.keys(e).forEach(function (k) {
11
- if (k !== 'default') {
12
- var d = Object.getOwnPropertyDescriptor(e, k);
13
- Object.defineProperty(n, k, d.get ? d : {
14
- enumerable: true,
15
- get: function () { return e[k]; }
16
- });
17
- }
18
- });
19
- }
20
- n.default = e;
21
- return Object.freeze(n);
22
- }
23
-
24
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
25
-
26
7
  function Item({
27
8
  _selected,
28
9
  icon,
@@ -32,9 +13,9 @@ function Item({
32
13
  const styledButtonStyle = _selected ? void 0 : { backgroundColor: "transparent" };
33
14
  const iconColorVariant = _selected ? "primary" : "secondary";
34
15
  if (icon) {
35
- return /* @__PURE__ */ React__namespace.createElement(styled.TabContent, { style: styledButtonStyle, ...rest }, /* @__PURE__ */ React__namespace.createElement(reactCore.Icon, { colorVariant: iconColorVariant, size: "centi", ...icon }));
16
+ return /* @__PURE__ */ jsxRuntime.jsx(styled.TabContent, { style: styledButtonStyle, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(reactCore.Icon, { colorVariant: iconColorVariant, size: "centi", ...icon }) });
36
17
  } else {
37
- return /* @__PURE__ */ React__namespace.createElement(styled.CustomTabContent, null, children);
18
+ return /* @__PURE__ */ jsxRuntime.jsx(styled.CustomTabContent, { children });
38
19
  }
39
20
  }
40
21
 
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var reactCore = require('@tecsinapse/react-core');
4
5
  var React = require('react');
5
6
  var reactNative = require('react-native');
@@ -16,7 +17,7 @@ const Button = ({
16
17
  },
17
18
  [onPress]
18
19
  );
19
- return /* @__PURE__ */ React.createElement(reactCore.Button, { ...others, onPress: handleOnPress });
20
+ return /* @__PURE__ */ jsxRuntime.jsx(reactCore.Button, { ...others, onPress: handleOnPress });
20
21
  };
21
22
 
22
23
  exports.Button = Button;
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var reactCore = require('@tecsinapse/react-core');
4
- var React = require('react');
5
5
  var Text = require('../../Text/Text.js');
6
6
 
7
7
  const Error = (props) => {
8
- return /* @__PURE__ */ React.createElement(reactCore.Error, { ...props, textComponent: Text });
8
+ return /* @__PURE__ */ jsxRuntime.jsx(reactCore.Error, { ...props, textComponent: Text });
9
9
  };
10
10
 
11
11
  module.exports = Error;
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var reactCore = require('@tecsinapse/react-core');
4
- var React = require('react');
5
5
  var Text = require('../../Text/Text.js');
6
6
 
7
7
  const Loading = (props) => {
8
- return /* @__PURE__ */ React.createElement(reactCore.Loading, { ...props, textComponent: Text });
8
+ return /* @__PURE__ */ jsxRuntime.jsx(reactCore.Loading, { ...props, textComponent: Text });
9
9
  };
10
10
 
11
11
  module.exports = Loading;
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var reactCore = require('@tecsinapse/react-core');
4
- var React = require('react');
5
5
  var Text = require('../../Text/Text.js');
6
6
 
7
7
  const Success = (props) => {
8
- return /* @__PURE__ */ React.createElement(reactCore.Success, { ...props, textComponent: Text });
8
+ return /* @__PURE__ */ jsxRuntime.jsx(reactCore.Success, { ...props, textComponent: Text });
9
9
  };
10
10
 
11
11
  module.exports = Success;
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var reactCore = require('@tecsinapse/react-core');
4
- var React = require('react');
5
5
  var Text = require('../Text/Text.js');
6
6
 
7
7
  const GroupButtonOption = (props) => {
8
- return /* @__PURE__ */ React.createElement(reactCore.GroupButtonOption, { ...props, TextComponent: Text });
8
+ return /* @__PURE__ */ jsxRuntime.jsx(reactCore.GroupButtonOption, { ...props, TextComponent: Text });
9
9
  };
10
10
 
11
11
  module.exports = GroupButtonOption;
@@ -1,46 +1,31 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var styled = require('./styled.js');
4
5
  var reactCore = require('@tecsinapse/react-core');
5
- var React = require('react');
6
6
  var Badge = require('../Badge/Badge.js');
7
7
 
8
- function _interopNamespaceDefault(e) {
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n.default = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
26
-
27
8
  const Header = ({
28
9
  rightButton,
29
10
  leftButton,
30
11
  children,
31
12
  ...rest
32
13
  }) => {
33
- const ButtonBase = ({ button }) => /* @__PURE__ */ React__namespace.createElement(
14
+ const ButtonBase = ({ button }) => /* @__PURE__ */ jsxRuntime.jsx(
34
15
  styled.FloatingButton,
35
16
  {
36
17
  ...button,
37
18
  variant: button?.variant || "filled",
38
19
  color: button?.color || "primary",
39
- size: button?.size || "small"
40
- },
41
- button?.icon && /* @__PURE__ */ React__namespace.createElement(reactCore.Icon, { ...button?.icon })
20
+ size: button?.size || "small",
21
+ children: button?.icon && /* @__PURE__ */ jsxRuntime.jsx(reactCore.Icon, { ...button?.icon })
22
+ }
42
23
  );
43
- return /* @__PURE__ */ React__namespace.createElement(styled.StyledView, { ...rest }, leftButton ? /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, leftButton?.valueBadge ? /* @__PURE__ */ React__namespace.createElement(Badge, { value: leftButton.valueBadge, color: "error" }, /* @__PURE__ */ React__namespace.createElement(ButtonBase, { button: leftButton })) : /* @__PURE__ */ React__namespace.createElement(ButtonBase, { button: leftButton })) : /* @__PURE__ */ React__namespace.createElement(styled.Dummy, { disabled: true }), children, rightButton ? /* @__PURE__ */ React__namespace.createElement(React__namespace.Fragment, null, rightButton?.valueBadge ? /* @__PURE__ */ React__namespace.createElement(Badge, { value: rightButton.valueBadge, color: "error" }, /* @__PURE__ */ React__namespace.createElement(ButtonBase, { button: rightButton })) : /* @__PURE__ */ React__namespace.createElement(ButtonBase, { button: rightButton })) : /* @__PURE__ */ React__namespace.createElement(styled.Dummy, { disabled: true }));
24
+ return /* @__PURE__ */ jsxRuntime.jsxs(styled.StyledView, { ...rest, children: [
25
+ leftButton ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: leftButton?.valueBadge ? /* @__PURE__ */ jsxRuntime.jsx(Badge, { value: leftButton.valueBadge, color: "error", children: /* @__PURE__ */ jsxRuntime.jsx(ButtonBase, { button: leftButton }) }) : /* @__PURE__ */ jsxRuntime.jsx(ButtonBase, { button: leftButton }) }) : /* @__PURE__ */ jsxRuntime.jsx(styled.Dummy, { disabled: true }),
26
+ children,
27
+ rightButton ? /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: rightButton?.valueBadge ? /* @__PURE__ */ jsxRuntime.jsx(Badge, { value: rightButton.valueBadge, color: "error", children: /* @__PURE__ */ jsxRuntime.jsx(ButtonBase, { button: rightButton }) }) : /* @__PURE__ */ jsxRuntime.jsx(ButtonBase, { button: rightButton }) }) : /* @__PURE__ */ jsxRuntime.jsx(styled.Dummy, { disabled: true })
28
+ ] });
44
29
  };
45
30
 
46
31
  module.exports = Header;
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var reactCore = require('@tecsinapse/react-core');
4
5
  var React = require('react');
5
6
  var reactNative = require('react-native');
@@ -32,7 +33,7 @@ const Input = React.forwardRef(
32
33
  placeholder,
33
34
  ...rest
34
35
  }, ref) => {
35
- const _hint = hintComponent || /* @__PURE__ */ React.createElement(reactCore.Hint, { TextComponent: Text, text: hint, variant });
36
+ const _hint = hintComponent || /* @__PURE__ */ jsxRuntime.jsx(reactCore.Hint, { TextComponent: Text, text: hint, variant });
36
37
  const { focused, handleBlur, handleFocus } = reactCore.useInputFocus(
37
38
  onFocus,
38
39
  onBlur,
@@ -43,41 +44,44 @@ const Input = React.forwardRef(
43
44
  ...{ inputContainerStyle }
44
45
  };
45
46
  const onlyLabel = label && !placeholder;
46
- return /* @__PURE__ */ React.createElement(reactNative.View, null, /* @__PURE__ */ React.createElement(
47
- reactCore.InputContainer,
48
- {
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,
63
- disabled,
64
- variant
65
- },
66
- /* @__PURE__ */ React.createElement(
67
- styled.StyledNativeInput,
47
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { children: [
48
+ /* @__PURE__ */ jsxRuntime.jsx(
49
+ reactCore.InputContainer,
68
50
  {
69
- ...rest,
70
- placeholder: onlyLabel ? label : placeholder,
71
- value,
72
- ref,
73
- fontStack: inputFontStack,
74
- fontWeight: inputFontWeight,
51
+ label: value ? label : void 0,
52
+ labelColor,
53
+ labelColorVariant,
54
+ labelColorTone,
55
+ labelTypography,
56
+ labelStack,
57
+ labelWeight,
58
+ LabelComponent: Text,
59
+ leftComponent,
60
+ rightComponent,
61
+ borderColor,
62
+ borderColorGradation,
63
+ inputContainerStyle: internalStyle,
64
+ focused,
75
65
  disabled,
76
- onFocus: handleFocus,
77
- onBlur: handleBlur
66
+ variant,
67
+ children: /* @__PURE__ */ jsxRuntime.jsx(
68
+ styled.StyledNativeInput,
69
+ {
70
+ ...rest,
71
+ placeholder: onlyLabel ? label : placeholder,
72
+ value,
73
+ ref,
74
+ fontStack: inputFontStack,
75
+ fontWeight: inputFontWeight,
76
+ disabled,
77
+ onFocus: handleFocus,
78
+ onBlur: handleBlur
79
+ }
80
+ )
78
81
  }
79
- )
80
- ), hint && _hint);
82
+ ),
83
+ hint && _hint
84
+ ] });
81
85
  }
82
86
  );
83
87
  Input.displayName = "Input";
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var reactCore = require('@tecsinapse/react-core');
4
5
  var React = require('react');
5
6
  var reactNative = require('react-native');
@@ -33,48 +34,51 @@ const InputMask = React.forwardRef(
33
34
  placeholder,
34
35
  ...rest
35
36
  }, ref) => {
36
- const _hint = hintComponent || /* @__PURE__ */ React.createElement(reactCore.Hint, { TextComponent: Text, text: hint, variant });
37
+ const _hint = hintComponent || /* @__PURE__ */ jsxRuntime.jsx(reactCore.Hint, { TextComponent: Text, text: hint, variant });
37
38
  const { focused, handleBlur, handleFocus } = reactCore.useInputFocus(
38
39
  onFocus,
39
40
  onBlur,
40
41
  !disabled
41
42
  );
42
43
  const onlyLabel = label && !placeholder;
43
- return /* @__PURE__ */ React.createElement(reactNative.View, { style }, /* @__PURE__ */ React.createElement(
44
- styled.StyledInputContainer,
45
- {
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,
60
- disabled,
61
- variant
62
- },
63
- /* @__PURE__ */ React.createElement(
64
- styled.StyledNativeInputMask,
44
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style, children: [
45
+ /* @__PURE__ */ jsxRuntime.jsx(
46
+ styled.StyledInputContainer,
65
47
  {
66
- ...rest,
67
- placeholder: onlyLabel ? label : placeholder,
68
- value,
69
- ref,
70
- fontStack: inputFontStack,
71
- fontWeight: inputFontWeight,
48
+ label: String(value) ? label : void 0,
49
+ labelColor,
50
+ labelColorVariant,
51
+ labelColorTone,
52
+ labelTypography,
53
+ labelStack,
54
+ labelWeight,
55
+ LabelComponent: Text,
56
+ leftComponent,
57
+ rightComponent,
58
+ borderColor,
59
+ borderColorGradation,
60
+ inputContainerStyle,
61
+ focused,
72
62
  disabled,
73
- onFocus: handleFocus,
74
- onBlur: handleBlur
63
+ variant,
64
+ children: /* @__PURE__ */ jsxRuntime.jsx(
65
+ styled.StyledNativeInputMask,
66
+ {
67
+ ...rest,
68
+ placeholder: onlyLabel ? label : placeholder,
69
+ value,
70
+ ref,
71
+ fontStack: inputFontStack,
72
+ fontWeight: inputFontWeight,
73
+ disabled,
74
+ onFocus: handleFocus,
75
+ onBlur: handleBlur
76
+ }
77
+ )
75
78
  }
76
- )
77
- ), hint && _hint);
79
+ ),
80
+ hint && _hint
81
+ ] });
78
82
  }
79
83
  );
80
84
  InputMask.displayName = "InputMask";
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var React = require('react');
4
5
  var reactNative = require('react-native');
5
6
  var ModalLifecycleHandler = require('./ModalLifecycleHandler.js');
@@ -9,18 +10,21 @@ const ModalGroupManager = ({ children, ...others }) => {
9
10
  modalLifecycle.attach(React.useState([]));
10
11
  const _render = modalLifecycle.render();
11
12
  const hasModals = _render.length > 0;
12
- return /* @__PURE__ */ React.createElement(React.Fragment, null, children, /* @__PURE__ */ React.createElement(
13
- reactNative.Modal,
14
- {
15
- transparent: true,
16
- statusBarTranslucent: true,
17
- animationType: "none",
18
- visible: hasModals,
19
- onRequestClose: modalLifecycle.closeLastOpenedModal,
20
- ...others
21
- },
22
- _render
23
- ));
13
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
14
+ children,
15
+ /* @__PURE__ */ jsxRuntime.jsx(
16
+ reactNative.Modal,
17
+ {
18
+ transparent: true,
19
+ statusBarTranslucent: true,
20
+ animationType: "none",
21
+ visible: hasModals,
22
+ onRequestClose: modalLifecycle.closeLastOpenedModal,
23
+ ...others,
24
+ children: _render
25
+ }
26
+ )
27
+ ] });
24
28
  };
25
29
 
26
30
  exports.ModalGroupManager = ModalGroupManager;
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var reactCore = require('@tecsinapse/react-core');
4
5
  var React = require('react');
5
6
  var reactNative = require('react-native');
@@ -121,26 +122,28 @@ const ModalView = ({
121
122
  hideEvent.remove();
122
123
  };
123
124
  }, []);
124
- return /* @__PURE__ */ React.createElement(styled.StyledPressableBackDrop, { onPress: !frozen ? close : void 0 }, /* @__PURE__ */ React.createElement(styled.BackDropView, { style: { backgroundColor: backgroundInterpolation } }, /* @__PURE__ */ React.createElement(
125
+ return /* @__PURE__ */ jsxRuntime.jsx(styled.StyledPressableBackDrop, { onPress: !frozen ? close : void 0, children: /* @__PURE__ */ jsxRuntime.jsx(styled.BackDropView, { style: { backgroundColor: backgroundInterpolation }, children: /* @__PURE__ */ jsxRuntime.jsx(
125
126
  reactNative.Animated.View,
126
127
  {
127
128
  style: {
128
129
  paddingBottom: isLastShown ? getKeyboardHeight(keyboardOpened) : 0,
129
130
  opacity: opacityCarrier,
130
131
  transform: [{ translateY: translationCarrier }]
131
- }
132
- },
133
- /* @__PURE__ */ React.createElement(reactNative.Pressable, null, /* @__PURE__ */ React.createElement(
134
- BoxComponent,
135
- {
136
- onLayout: handleBoxLayoutChanges,
137
- style: { paddingBottom: offset },
138
- variant: "bottom"
139
132
  },
140
- showCloseBar && /* @__PURE__ */ React.createElement(styled.CloseBar, null),
141
- children
142
- ))
143
- )));
133
+ children: /* @__PURE__ */ jsxRuntime.jsx(reactNative.Pressable, { children: /* @__PURE__ */ jsxRuntime.jsxs(
134
+ BoxComponent,
135
+ {
136
+ onLayout: handleBoxLayoutChanges,
137
+ style: { paddingBottom: offset },
138
+ variant: "bottom",
139
+ children: [
140
+ showCloseBar && /* @__PURE__ */ jsxRuntime.jsx(styled.CloseBar, {}),
141
+ children
142
+ ]
143
+ }
144
+ ) })
145
+ }
146
+ ) }) });
144
147
  };
145
148
 
146
149
  exports.ModalView = ModalView;
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var reactNative = require('react-native');
4
5
  var React = require('react');
5
6
  var animation = require('./animation.js');
@@ -14,7 +15,7 @@ const Pulse = ({
14
15
  React.useEffect(() => {
15
16
  animation.pulseAnimation(active, animatedValue);
16
17
  }, [active]);
17
- return /* @__PURE__ */ React.createElement(
18
+ return /* @__PURE__ */ jsxRuntime.jsx(
18
19
  reactNative.Animated.View,
19
20
  {
20
21
  style: {
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var React = require('react');
4
5
  var reactNative = require('react-native');
5
6
  var styled = require('./styled.js');
@@ -29,31 +30,35 @@ const Skeleton = ({
29
30
  const getChildrenLayout = (event) => {
30
31
  setChildrenLayout(event.nativeEvent.layout);
31
32
  };
32
- return /* @__PURE__ */ React.createElement(styled.Wrapper, { width, height, radius, ...rest }, active && animation === "wave" ? /* @__PURE__ */ React.createElement(
33
- Wave.Wave,
34
- {
35
- active,
36
- width,
37
- height,
38
- childrenLayout
39
- }
40
- ) : /* @__PURE__ */ React.createElement(React.Fragment, null), active && animation === "pulse" ? /* @__PURE__ */ React.createElement(
41
- Pulse.Pulse,
42
- {
43
- active,
44
- width,
45
- height,
46
- childrenLayout
47
- }
48
- ) : /* @__PURE__ */ React.createElement(React.Fragment, null), /* @__PURE__ */ React.createElement(
49
- reactNative.View,
50
- {
51
- onLayout: (event) => getChildrenLayout(event),
52
- style: { opacity: active ? 0 : 1 },
53
- pointerEvents: active ? "none" : "auto"
54
- },
55
- children
56
- ));
33
+ return /* @__PURE__ */ jsxRuntime.jsxs(styled.Wrapper, { width, height, radius, ...rest, children: [
34
+ active && animation === "wave" ? /* @__PURE__ */ jsxRuntime.jsx(
35
+ Wave.Wave,
36
+ {
37
+ active,
38
+ width,
39
+ height,
40
+ childrenLayout
41
+ }
42
+ ) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}),
43
+ active && animation === "pulse" ? /* @__PURE__ */ jsxRuntime.jsx(
44
+ Pulse.Pulse,
45
+ {
46
+ active,
47
+ width,
48
+ height,
49
+ childrenLayout
50
+ }
51
+ ) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}),
52
+ /* @__PURE__ */ jsxRuntime.jsx(
53
+ reactNative.View,
54
+ {
55
+ onLayout: (event) => getChildrenLayout(event),
56
+ style: { opacity: active ? 0 : 1 },
57
+ pointerEvents: active ? "none" : "auto",
58
+ children
59
+ }
60
+ )
61
+ ] });
57
62
  };
58
63
 
59
64
  module.exports = Skeleton;
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var React = require('react');
4
5
  var reactNative = require('react-native');
5
6
  var RNGradient = require('react-native-linear-gradient');
@@ -42,7 +43,7 @@ const Wave = ({
42
43
  React.useEffect(() => {
43
44
  animation.waveAnimation(active, animatedValue);
44
45
  }, [active]);
45
- return /* @__PURE__ */ React.createElement(
46
+ return /* @__PURE__ */ jsxRuntime.jsx(
46
47
  AnimatedLinearGradient,
47
48
  {
48
49
  colors: [