@tecsinapse/react-core 3.4.14 → 3.4.15-beta.1

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 (185) hide show
  1. package/dist/cjs/components/atoms/Avatar/Avatar.js +2 -1
  2. package/dist/cjs/components/atoms/Badge/Badge.js +5 -2
  3. package/dist/cjs/components/atoms/Badge/styled.js +2 -1
  4. package/dist/cjs/components/atoms/BoxContent/BoxContent.js +2 -2
  5. package/dist/cjs/components/atoms/Button/Button.js +10 -8
  6. package/dist/cjs/components/atoms/Button/States/BaseState.js +5 -2
  7. package/dist/cjs/components/atoms/Button/States/Error.js +2 -2
  8. package/dist/cjs/components/atoms/Button/States/Loading.js +11 -8
  9. package/dist/cjs/components/atoms/Button/States/Success.js +2 -2
  10. package/dist/cjs/components/atoms/Button/styled.js +2 -1
  11. package/dist/cjs/components/atoms/Card/Card.js +3 -3
  12. package/dist/cjs/components/atoms/Card/Footer/Footer.js +2 -2
  13. package/dist/cjs/components/atoms/Card/Header/Header.js +2 -2
  14. package/dist/cjs/components/atoms/Checkbox/Checkbox.js +26 -21
  15. package/dist/cjs/components/atoms/Divider/Divider.js +2 -2
  16. package/dist/cjs/components/atoms/GroupButton/GroupButton.js +20 -17
  17. package/dist/cjs/components/atoms/GroupButton/GroupButtonOption.js +2 -2
  18. package/dist/cjs/components/atoms/GroupButton/styled.js +2 -1
  19. package/dist/cjs/components/atoms/Icon/AntDesign.js +2 -2
  20. package/dist/cjs/components/atoms/Icon/Entypo.js +2 -2
  21. package/dist/cjs/components/atoms/Icon/Evil.js +2 -2
  22. package/dist/cjs/components/atoms/Icon/Feather.js +2 -2
  23. package/dist/cjs/components/atoms/Icon/FontAwesome.js +2 -2
  24. package/dist/cjs/components/atoms/Icon/FontAwesomeFive.js +2 -2
  25. package/dist/cjs/components/atoms/Icon/Fontisto.js +2 -2
  26. package/dist/cjs/components/atoms/Icon/Foundation.js +2 -2
  27. package/dist/cjs/components/atoms/Icon/Icon.js +3 -2
  28. package/dist/cjs/components/atoms/Icon/Ionicon.js +2 -2
  29. package/dist/cjs/components/atoms/Icon/Material.js +2 -2
  30. package/dist/cjs/components/atoms/Icon/MaterialCommunity.js +2 -2
  31. package/dist/cjs/components/atoms/Icon/Octicon.js +2 -2
  32. package/dist/cjs/components/atoms/Icon/SimpleLine.js +2 -2
  33. package/dist/cjs/components/atoms/Icon/Zocial.js +2 -2
  34. package/dist/cjs/components/atoms/Input/Hint.js +13 -10
  35. package/dist/cjs/components/atoms/Input/InputContainer/InputContainer.js +38 -34
  36. package/dist/cjs/components/atoms/Input/InputElement/InputElement.js +2 -1
  37. package/dist/cjs/components/atoms/Input/InputMaskElement/InputMaskElement.js +2 -1
  38. package/dist/cjs/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +2 -21
  39. package/dist/cjs/components/atoms/Paper/Paper.js +2 -2
  40. package/dist/cjs/components/atoms/PressableSurface/PressableSurface.js +3 -2
  41. package/dist/cjs/components/atoms/ProgressBar/ProgressBar.js +16 -15
  42. package/dist/cjs/components/atoms/ProgressBar/styled.js +2 -1
  43. package/dist/cjs/components/atoms/RadioButton/RadioButton.js +27 -22
  44. package/dist/cjs/components/atoms/Switch/Switch.js +14 -13
  45. package/dist/cjs/components/atoms/Switch/styled.js +2 -1
  46. package/dist/cjs/components/atoms/Tag/Tag.js +24 -21
  47. package/dist/cjs/components/atoms/Text/Text.js +5 -5
  48. package/dist/cjs/components/molecules/Calendar/Calendar.js +83 -73
  49. package/dist/cjs/components/molecules/Calendar/components/MemoizedYearCard.js +13 -12
  50. package/dist/cjs/components/molecules/Calendar/components/MonthWeek.js +7 -6
  51. package/dist/cjs/components/molecules/Calendar/components/SelectYear.js +3 -2
  52. package/dist/cjs/components/molecules/Calendar/components/Weekdays.js +6 -5
  53. package/dist/cjs/components/molecules/ControlledDateTimeSelector/ControlledDateTimeSelector.js +2 -1
  54. package/dist/cjs/components/molecules/DatePicker/DatePicker.js +24 -17
  55. package/dist/cjs/components/molecules/DatePicker/styled.js +2 -1
  56. package/dist/cjs/components/molecules/DateTimePicker/DateTimePicker.js +25 -37
  57. package/dist/cjs/components/molecules/DateTimeSelector/DateTimeSelector.js +85 -70
  58. package/dist/cjs/components/molecules/DateTimeSelector/Selector.js +38 -30
  59. package/dist/cjs/components/molecules/DateTimeSelector/styled.js +2 -1
  60. package/dist/cjs/components/molecules/Grid/functions.js +2 -1
  61. package/dist/cjs/components/molecules/HintInputContainer/HintInputContainer.js +19 -34
  62. package/dist/cjs/components/molecules/IconTextButton/IconComponent.js +3 -2
  63. package/dist/cjs/components/molecules/InputPassword/InputPasswordIcon.js +5 -5
  64. package/dist/cjs/components/molecules/InputPassword/styled.js +1 -0
  65. package/dist/cjs/components/molecules/Snackbar/Snackbar.js +20 -13
  66. package/dist/cjs/components/molecules/Snackbar/styled.js +2 -1
  67. package/dist/cjs/components/molecules/TextArea/TextArea.js +41 -35
  68. package/dist/cjs/components/molecules/TextArea/styled.js +2 -1
  69. package/dist/cjs/hooks/useDebouncedState.js +1 -1
  70. package/dist/cjs/styles/ThemeProvider.js +2 -2
  71. package/dist/cjs/styles/definitions.js +2 -1
  72. package/dist/cjs/utils/formatWithMask.js +2 -1
  73. package/dist/cjs/utils/masks.js +4 -1
  74. package/dist/esm/components/atoms/Avatar/Avatar.js +2 -1
  75. package/dist/esm/components/atoms/Badge/Badge.js +5 -2
  76. package/dist/esm/components/atoms/Badge/styled.js +2 -1
  77. package/dist/esm/components/atoms/BoxContent/BoxContent.js +2 -2
  78. package/dist/esm/components/atoms/Button/Button.js +10 -8
  79. package/dist/esm/components/atoms/Button/States/BaseState.js +5 -2
  80. package/dist/esm/components/atoms/Button/States/Error.js +2 -2
  81. package/dist/esm/components/atoms/Button/States/Loading.js +11 -8
  82. package/dist/esm/components/atoms/Button/States/Success.js +2 -2
  83. package/dist/esm/components/atoms/Button/styled.js +2 -1
  84. package/dist/esm/components/atoms/Card/Card.js +3 -3
  85. package/dist/esm/components/atoms/Card/Footer/Footer.js +2 -2
  86. package/dist/esm/components/atoms/Card/Header/Header.js +2 -2
  87. package/dist/esm/components/atoms/Checkbox/Checkbox.js +26 -21
  88. package/dist/esm/components/atoms/Divider/Divider.js +2 -2
  89. package/dist/esm/components/atoms/GroupButton/GroupButton.js +20 -17
  90. package/dist/esm/components/atoms/GroupButton/GroupButtonOption.js +2 -2
  91. package/dist/esm/components/atoms/GroupButton/styled.js +2 -1
  92. package/dist/esm/components/atoms/Icon/AntDesign.js +2 -2
  93. package/dist/esm/components/atoms/Icon/Entypo.js +2 -2
  94. package/dist/esm/components/atoms/Icon/Evil.js +2 -2
  95. package/dist/esm/components/atoms/Icon/Feather.js +2 -2
  96. package/dist/esm/components/atoms/Icon/FontAwesome.js +2 -2
  97. package/dist/esm/components/atoms/Icon/FontAwesomeFive.js +2 -2
  98. package/dist/esm/components/atoms/Icon/Fontisto.js +2 -2
  99. package/dist/esm/components/atoms/Icon/Foundation.js +2 -2
  100. package/dist/esm/components/atoms/Icon/Icon.js +3 -2
  101. package/dist/esm/components/atoms/Icon/Ionicon.js +2 -2
  102. package/dist/esm/components/atoms/Icon/Material.js +2 -2
  103. package/dist/esm/components/atoms/Icon/MaterialCommunity.js +2 -2
  104. package/dist/esm/components/atoms/Icon/Octicon.js +2 -2
  105. package/dist/esm/components/atoms/Icon/SimpleLine.js +2 -2
  106. package/dist/esm/components/atoms/Icon/Zocial.js +2 -2
  107. package/dist/esm/components/atoms/Input/Hint.js +13 -10
  108. package/dist/esm/components/atoms/Input/InputContainer/InputContainer.js +38 -34
  109. package/dist/esm/components/atoms/Input/InputElement/InputElement.js +2 -1
  110. package/dist/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js +2 -1
  111. package/dist/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +2 -2
  112. package/dist/esm/components/atoms/Paper/Paper.js +2 -2
  113. package/dist/esm/components/atoms/PressableSurface/PressableSurface.js +3 -2
  114. package/dist/esm/components/atoms/ProgressBar/ProgressBar.js +16 -15
  115. package/dist/esm/components/atoms/ProgressBar/styled.js +2 -1
  116. package/dist/esm/components/atoms/RadioButton/RadioButton.js +27 -22
  117. package/dist/esm/components/atoms/Switch/Switch.js +14 -13
  118. package/dist/esm/components/atoms/Switch/styled.js +2 -1
  119. package/dist/esm/components/atoms/Tag/Tag.js +24 -21
  120. package/dist/esm/components/atoms/Text/Text.js +5 -5
  121. package/dist/esm/components/molecules/Calendar/Calendar.js +83 -73
  122. package/dist/esm/components/molecules/Calendar/components/MemoizedYearCard.js +13 -12
  123. package/dist/esm/components/molecules/Calendar/components/MonthWeek.js +7 -6
  124. package/dist/esm/components/molecules/Calendar/components/SelectYear.js +3 -2
  125. package/dist/esm/components/molecules/Calendar/components/Weekdays.js +6 -5
  126. package/dist/esm/components/molecules/ControlledDateTimeSelector/ControlledDateTimeSelector.js +2 -1
  127. package/dist/esm/components/molecules/DatePicker/DatePicker.js +24 -17
  128. package/dist/esm/components/molecules/DatePicker/styled.js +2 -1
  129. package/dist/esm/components/molecules/DateTimePicker/DateTimePicker.js +25 -18
  130. package/dist/esm/components/molecules/DateTimeSelector/DateTimeSelector.js +85 -70
  131. package/dist/esm/components/molecules/DateTimeSelector/Selector.js +38 -30
  132. package/dist/esm/components/molecules/DateTimeSelector/styled.js +2 -1
  133. package/dist/esm/components/molecules/Grid/functions.js +2 -1
  134. package/dist/esm/components/molecules/HintInputContainer/HintInputContainer.js +19 -15
  135. package/dist/esm/components/molecules/IconTextButton/IconComponent.js +3 -2
  136. package/dist/esm/components/molecules/InputPassword/InputPasswordIcon.js +5 -5
  137. package/dist/esm/components/molecules/InputPassword/styled.js +1 -0
  138. package/dist/esm/components/molecules/Snackbar/Snackbar.js +20 -13
  139. package/dist/esm/components/molecules/Snackbar/styled.js +2 -1
  140. package/dist/esm/components/molecules/TextArea/TextArea.js +41 -35
  141. package/dist/esm/components/molecules/TextArea/styled.js +2 -1
  142. package/dist/esm/hooks/useDebouncedState.js +1 -1
  143. package/dist/esm/styles/ThemeProvider.js +2 -2
  144. package/dist/esm/styles/definitions.js +2 -1
  145. package/dist/esm/utils/formatWithMask.js +2 -1
  146. package/dist/esm/utils/masks.js +4 -1
  147. package/dist/types/components/atoms/Badge/Badge.d.ts +1 -1
  148. package/dist/types/components/atoms/Button/Button.d.ts +3 -3
  149. package/dist/types/components/atoms/Card/Card.d.ts +2 -2
  150. package/dist/types/components/atoms/Card/Footer/Footer.d.ts +2 -2
  151. package/dist/types/components/atoms/Card/Header/Header.d.ts +2 -2
  152. package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +2 -2
  153. package/dist/types/components/atoms/GroupButton/GroupButton.d.ts +2 -2
  154. package/dist/types/components/atoms/GroupButton/GroupButtonOption.d.ts +2 -2
  155. package/dist/types/components/atoms/Icon/AntDesign.d.ts +1 -2
  156. package/dist/types/components/atoms/Icon/Entypo.d.ts +1 -2
  157. package/dist/types/components/atoms/Icon/Evil.d.ts +1 -2
  158. package/dist/types/components/atoms/Icon/Feather.d.ts +1 -2
  159. package/dist/types/components/atoms/Icon/FontAwesome.d.ts +1 -2
  160. package/dist/types/components/atoms/Icon/FontAwesomeFive.d.ts +1 -2
  161. package/dist/types/components/atoms/Icon/Fontisto.d.ts +1 -2
  162. package/dist/types/components/atoms/Icon/Foundation.d.ts +1 -2
  163. package/dist/types/components/atoms/Icon/Ionicon.d.ts +1 -2
  164. package/dist/types/components/atoms/Icon/Material.d.ts +1 -2
  165. package/dist/types/components/atoms/Icon/MaterialCommunity.d.ts +1 -2
  166. package/dist/types/components/atoms/Icon/Octicon.d.ts +1 -2
  167. package/dist/types/components/atoms/Icon/SimpleLine.d.ts +1 -2
  168. package/dist/types/components/atoms/Icon/Zocial.d.ts +1 -2
  169. package/dist/types/components/atoms/Input/InputContainer/InputContainer.d.ts +4 -4
  170. package/dist/types/components/atoms/Input/PressableInputContainer/PressableInputContainer.d.ts +2 -1
  171. package/dist/types/components/atoms/Paper/Paper.d.ts +2 -2
  172. package/dist/types/components/atoms/PressableSurface/PressableSurface.d.ts +2 -2
  173. package/dist/types/components/atoms/ProgressBar/ProgressBar.d.ts +2 -1
  174. package/dist/types/components/atoms/RadioButton/RadioButton.d.ts +2 -2
  175. package/dist/types/components/molecules/Calendar/Calendar.d.ts +1 -1
  176. package/dist/types/components/molecules/Calendar/components/MemoizedYearCard.d.ts +1 -1
  177. package/dist/types/components/molecules/Calendar/components/MonthWeek.d.ts +1 -1
  178. package/dist/types/components/molecules/Calendar/components/SelectYear.d.ts +1 -1
  179. package/dist/types/components/molecules/Calendar/components/Weekdays.d.ts +1 -1
  180. package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +3 -3
  181. package/dist/types/components/molecules/DateTimePicker/DateTimePicker.d.ts +2 -2
  182. package/dist/types/components/molecules/Grid/index.d.ts +1 -1
  183. package/dist/types/components/molecules/HintInputContainer/HintInputContainer.d.ts +2 -2
  184. package/dist/types/components/molecules/Snackbar/Snackbar.d.ts +2 -2
  185. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import Text from '../Text/Text.js';
3
3
  import { StyledHintContainer, StyledHintIcon } from './styled.js';
4
4
 
@@ -18,15 +18,18 @@ const Hint = ({ variant, text, TextComponent = Text }) => {
18
18
  icon = "checkmark-circle-outline";
19
19
  break;
20
20
  }
21
- return /* @__PURE__ */ React__default.createElement(StyledHintContainer, null, icon && /* @__PURE__ */ React__default.createElement(
22
- StyledHintIcon,
23
- {
24
- name: icon,
25
- type: "ionicon",
26
- size: "centi",
27
- colorVariant: color
28
- }
29
- ), /* @__PURE__ */ React__default.createElement(TextComponent, { typography: "label", colorVariant: color }, text));
21
+ return /* @__PURE__ */ jsxs(StyledHintContainer, { children: [
22
+ icon && /* @__PURE__ */ jsx(
23
+ StyledHintIcon,
24
+ {
25
+ name: icon,
26
+ type: "ionicon",
27
+ size: "centi",
28
+ colorVariant: color
29
+ }
30
+ ),
31
+ /* @__PURE__ */ jsx(TextComponent, { typography: "label", colorVariant: color, children: text })
32
+ ] });
30
33
  };
31
34
 
32
35
  export { Hint as default };
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import Text from '../../Text/Text.js';
3
3
  import { StyledInputContainer, StyledBorderKeeper, StyledIconContent, StyledLabelContainer } from '../styled.js';
4
4
 
@@ -25,44 +25,48 @@ const InputContainer = ({
25
25
  if (variant === "success") _defaultLabelColor = "success";
26
26
  const _labelColorVariant = disabled ? "secondary" : _defaultLabelColor;
27
27
  const _labelColorTone = disabled ? "light" : labelColorTone;
28
- return /* @__PURE__ */ React__default.createElement(
28
+ return /* @__PURE__ */ jsxs(
29
29
  StyledInputContainer,
30
30
  {
31
31
  ...rest,
32
32
  style: inputContainerStyle,
33
33
  focused,
34
- disabled
35
- },
36
- /* @__PURE__ */ React__default.createElement(
37
- StyledBorderKeeper,
38
- {
39
- focused,
40
- disabled,
41
- borderColor: _defaultLabelColor
42
- }
43
- ),
44
- leftComponent && /* @__PURE__ */ React__default.createElement(StyledIconContent, null, leftComponent),
45
- /* @__PURE__ */ React__default.createElement(
46
- StyledLabelContainer,
47
- {
48
- leftComponent,
49
- rightComponent
50
- },
51
- label && /* @__PURE__ */ React__default.createElement(
52
- LabelComponent,
53
- {
54
- fontColor: labelColor,
55
- colorTone: _labelColorTone,
56
- colorVariant: _labelColorVariant,
57
- typography: labelTypography,
58
- fontWeight: labelWeight,
59
- fontStack: labelStack
60
- },
61
- label
62
- ),
63
- children
64
- ),
65
- rightComponent && /* @__PURE__ */ React__default.createElement(StyledIconContent, null, rightComponent)
34
+ disabled,
35
+ children: [
36
+ /* @__PURE__ */ jsx(
37
+ StyledBorderKeeper,
38
+ {
39
+ focused,
40
+ disabled,
41
+ borderColor: _defaultLabelColor
42
+ }
43
+ ),
44
+ leftComponent && /* @__PURE__ */ jsx(StyledIconContent, { children: leftComponent }),
45
+ /* @__PURE__ */ jsxs(
46
+ StyledLabelContainer,
47
+ {
48
+ leftComponent,
49
+ rightComponent,
50
+ children: [
51
+ label && /* @__PURE__ */ jsx(
52
+ LabelComponent,
53
+ {
54
+ fontColor: labelColor,
55
+ colorTone: _labelColorTone,
56
+ colorVariant: _labelColorVariant,
57
+ typography: labelTypography,
58
+ fontWeight: labelWeight,
59
+ fontStack: labelStack,
60
+ children: label
61
+ }
62
+ ),
63
+ children
64
+ ]
65
+ }
66
+ ),
67
+ rightComponent && /* @__PURE__ */ jsx(StyledIconContent, { children: rightComponent })
68
+ ]
69
+ }
66
70
  );
67
71
  };
68
72
 
@@ -1,3 +1,4 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import React__default from 'react';
2
3
  import { StyledInputElement } from '../styled.js';
3
4
  import { useTheme } from '../../../../hooks/useTheme.js';
@@ -13,7 +14,7 @@ const InputElement = React__default.forwardRef(
13
14
  }, ref) => {
14
15
  const theme = useTheme();
15
16
  const _placeholderColor = placeholderTextColor || theme.font?.color?.dark;
16
- return /* @__PURE__ */ React__default.createElement(
17
+ return /* @__PURE__ */ jsx(
17
18
  StyledInputElement,
18
19
  {
19
20
  ...rest,
@@ -1,3 +1,4 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { useTheme } from '@emotion/react';
2
3
  import React__default, { useEffect, useCallback } from 'react';
3
4
  import { StyledInputElement } from '../styled.js';
@@ -51,7 +52,7 @@ const InputMaskElement = React__default.forwardRef(
51
52
  onChangeValue(value);
52
53
  }
53
54
  }, [value]);
54
- return /* @__PURE__ */ React__default.createElement(
55
+ return /* @__PURE__ */ jsx(
55
56
  StyledInputElement,
56
57
  {
57
58
  ...rest,
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import InputContainer from '../InputContainer/InputContainer.js';
3
3
  import { StyledPressableSurface } from './styled.js';
4
4
 
@@ -9,7 +9,7 @@ const PressableInputContainer = ({
9
9
  children,
10
10
  ...rest
11
11
  }) => {
12
- return /* @__PURE__ */ React.createElement(StyledPressableSurface, { onPress, disabled, style }, /* @__PURE__ */ React.createElement(InputContainer, { disabled, ...rest }, children));
12
+ return /* @__PURE__ */ jsx(StyledPressableSurface, { onPress, disabled, style, children: /* @__PURE__ */ jsx(InputContainer, { disabled, ...rest, children }) });
13
13
  };
14
14
 
15
15
  export { PressableInputContainer as default };
@@ -1,10 +1,10 @@
1
- import React__default from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { StyledPaper } from './styled.js';
3
3
 
4
4
  const Paper = ({
5
5
  children,
6
6
  elevated = false,
7
7
  ...rest
8
- }) => /* @__PURE__ */ React__default.createElement(StyledPaper, { ...rest, elevated }, children);
8
+ }) => /* @__PURE__ */ jsx(StyledPaper, { ...rest, elevated, children });
9
9
 
10
10
  export { Paper as default };
@@ -1,8 +1,9 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { useTheme } from '@emotion/react';
2
- import React__default from 'react';
3
3
  import { Pressable } from 'react-native';
4
4
  import '../Text/styled.js';
5
5
  import '../Input/styled.js';
6
+ import 'react';
6
7
  import 'currency.js';
7
8
  import '../Input/InputElement/InputElement.js';
8
9
  import '../Input/InputMaskElement/InputMaskElement.js';
@@ -31,7 +32,7 @@ const PressableSurface = ({
31
32
  effectBaseColor,
32
33
  bgColor
33
34
  );
34
- return /* @__PURE__ */ React__default.createElement(Pressable, { ...rest, style: readyStyle }, children);
35
+ return /* @__PURE__ */ jsx(Pressable, { ...rest, style: readyStyle, children });
35
36
  };
36
37
  const prepareStyle = (props, effectColor, bgColor) => {
37
38
  const {
@@ -1,8 +1,9 @@
1
- import React__default from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { useTheme } from '@emotion/react';
3
3
  import { extractNumbersFromString } from '../../../utils/extractNumbersFromString.js';
4
4
  import '../Text/styled.js';
5
5
  import '../Input/styled.js';
6
+ import 'react';
6
7
  import 'currency.js';
7
8
  import '../Input/InputElement/InputElement.js';
8
9
  import '../Input/InputMaskElement/InputMaskElement.js';
@@ -31,27 +32,27 @@ const ProgressBar = ({
31
32
  const minmax = (totalProgress - min) / (max - min);
32
33
  const width = (minmax > 1 ? 1 : minmax < 0 ? 0 : minmax) * 100;
33
34
  const progressPercent = `${width}%`;
34
- return /* @__PURE__ */ React__default.createElement(
35
+ return /* @__PURE__ */ jsx(
35
36
  Segment,
36
37
  {
37
- key: index,
38
38
  style: {
39
39
  borderRightWidth: index == segments - 1 ? 0 : 2
40
- }
41
- },
42
- /* @__PURE__ */ React__default.createElement(
43
- Progress,
44
- {
45
- style: {
46
- width: progressPercent,
47
- backgroundColor: theme.color[color][colorTone],
48
- borderRightWidth: width > 0 && width < 100 ? 2 : 0
40
+ },
41
+ children: /* @__PURE__ */ jsx(
42
+ Progress,
43
+ {
44
+ style: {
45
+ width: progressPercent,
46
+ backgroundColor: theme.color[color][colorTone],
47
+ borderRightWidth: width > 0 && width < 100 ? 2 : 0
48
+ }
49
49
  }
50
- }
51
- )
50
+ )
51
+ },
52
+ index
52
53
  );
53
54
  });
54
- return /* @__PURE__ */ React__default.createElement(Container, { ...rest }, segmentsRender);
55
+ return /* @__PURE__ */ jsx(Container, { ...rest, children: segmentsRender });
55
56
  };
56
57
 
57
58
  export { ProgressBar as default };
@@ -1,7 +1,8 @@
1
1
  import styled from '@emotion/native';
2
- import 'react';
2
+ import 'react/jsx-runtime';
3
3
  import '../Text/styled.js';
4
4
  import '../Input/styled.js';
5
+ import 'react';
5
6
  import 'currency.js';
6
7
  import '../Input/InputElement/InputElement.js';
7
8
  import '../Input/InputMaskElement/InputMaskElement.js';
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { Pressable } from 'react-native';
3
3
  import Icon from '../Icon/Icon.js';
4
4
  import { ViewStyled, IconViewStyled, IconWrapper, ScaledView } from './styled.js';
@@ -16,32 +16,37 @@ const RadioButton = ({
16
16
  const handleChange = () => {
17
17
  onChange?.(!checked);
18
18
  };
19
- return /* @__PURE__ */ React__default.createElement(
19
+ return /* @__PURE__ */ jsx(
20
20
  Pressable,
21
21
  {
22
22
  ...rest,
23
23
  disabled,
24
24
  onPress: handleChange,
25
- accessibilityRole: "radio"
26
- },
27
- /* @__PURE__ */ React__default.createElement(ViewStyled, null, labelPosition === "left" && children, checked && /* @__PURE__ */ React__default.createElement(IconViewStyled, null, /* @__PURE__ */ React__default.createElement(IconWrapper, null, /* @__PURE__ */ React__default.createElement(ScaledView, null, /* @__PURE__ */ React__default.createElement(
28
- Icon,
29
- {
30
- name: "circle",
31
- colorVariant: color,
32
- colorTone,
33
- type: "material-community",
34
- size: "centi"
35
- }
36
- )))), !checked && /* @__PURE__ */ React__default.createElement(IconViewStyled, null, /* @__PURE__ */ React__default.createElement(IconWrapper, null, /* @__PURE__ */ React__default.createElement(ScaledView, null, /* @__PURE__ */ React__default.createElement(
37
- Icon,
38
- {
39
- name: "circle",
40
- fontColor: "light",
41
- type: "material-community",
42
- size: "centi"
43
- }
44
- )))), labelPosition === "right" && children)
25
+ accessibilityRole: "radio",
26
+ children: /* @__PURE__ */ jsxs(ViewStyled, { children: [
27
+ labelPosition === "left" && children,
28
+ checked && /* @__PURE__ */ jsx(IconViewStyled, { children: /* @__PURE__ */ jsx(IconWrapper, { children: /* @__PURE__ */ jsx(ScaledView, { children: /* @__PURE__ */ jsx(
29
+ Icon,
30
+ {
31
+ name: "circle",
32
+ colorVariant: color,
33
+ colorTone,
34
+ type: "material-community",
35
+ size: "centi"
36
+ }
37
+ ) }) }) }),
38
+ !checked && /* @__PURE__ */ jsx(IconViewStyled, { children: /* @__PURE__ */ jsx(IconWrapper, { children: /* @__PURE__ */ jsx(ScaledView, { children: /* @__PURE__ */ jsx(
39
+ Icon,
40
+ {
41
+ name: "circle",
42
+ fontColor: "light",
43
+ type: "material-community",
44
+ size: "centi"
45
+ }
46
+ ) }) }) }),
47
+ labelPosition === "right" && children
48
+ ] })
49
+ }
45
50
  );
46
51
  };
47
52
 
@@ -1,3 +1,4 @@
1
+ import { jsx } from 'react/jsx-runtime';
1
2
  import { useTheme } from '@emotion/react';
2
3
  import React__default, { useEffect, useCallback } from 'react';
3
4
  import { Animated } from 'react-native';
@@ -57,27 +58,27 @@ const Switch = ({
57
58
  const translate = calculateTranslate();
58
59
  transitionSwitch(active, translate, transitionValue, animatedColor);
59
60
  };
60
- return /* @__PURE__ */ React__default.createElement(
61
+ return /* @__PURE__ */ jsx(
61
62
  PressableSurface,
62
63
  {
63
64
  ...rest,
64
65
  onPress: handleChange,
65
66
  effect: "none",
66
- disabled
67
- },
68
- /* @__PURE__ */ React__default.createElement(
69
- StyledSwitchContent,
70
- {
71
- onLayout: handleSwitchLayout,
72
- style: { backgroundColor: interpolateColor }
73
- },
74
- /* @__PURE__ */ React__default.createElement(
75
- StyledSwitch,
67
+ disabled,
68
+ children: /* @__PURE__ */ jsx(
69
+ StyledSwitchContent,
76
70
  {
77
- style: [dotStyle, { transform: [{ translateX: transitionValue }] }]
71
+ onLayout: handleSwitchLayout,
72
+ style: { backgroundColor: interpolateColor },
73
+ children: /* @__PURE__ */ jsx(
74
+ StyledSwitch,
75
+ {
76
+ style: [dotStyle, { transform: [{ translateX: transitionValue }] }]
77
+ }
78
+ )
78
79
  }
79
80
  )
80
- )
81
+ }
81
82
  );
82
83
  };
83
84
 
@@ -1,8 +1,9 @@
1
1
  import styled from '@emotion/native';
2
2
  import { Animated } from 'react-native';
3
- import 'react';
3
+ import 'react/jsx-runtime';
4
4
  import '../Text/styled.js';
5
5
  import '../Input/styled.js';
6
+ import 'react';
6
7
  import 'currency.js';
7
8
  import '../Input/InputElement/InputElement.js';
8
9
  import '../Input/InputMaskElement/InputMaskElement.js';
@@ -1,3 +1,4 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
1
2
  import React__default, { useState, useCallback } from 'react';
2
3
  import { Animated } from 'react-native';
3
4
  import PressableSurface from '../PressableSurface/PressableSurface.js';
@@ -29,7 +30,7 @@ const Tag = ({
29
30
  fadeOut();
30
31
  setTimeout(() => setDismiss(true), duration);
31
32
  }, [onDismiss]);
32
- return /* @__PURE__ */ React__default.createElement(
33
+ return /* @__PURE__ */ jsxs(
33
34
  StyledTagContainer,
34
35
  {
35
36
  backgroundColorTone,
@@ -37,26 +38,28 @@ const Tag = ({
37
38
  variant,
38
39
  style: [{ opacity: fadeAnim }, style],
39
40
  visible: !dismiss,
40
- ...rest
41
- },
42
- icon && /* @__PURE__ */ React__default.createElement(
43
- StyledLeftIcon,
44
- {
45
- size: icon.size || "micro",
46
- colorVariant: icon.colorVariant || "primary",
47
- ...icon
48
- }
49
- ),
50
- value,
51
- canDismiss && /* @__PURE__ */ React__default.createElement(PressableSurface, { onPress: handleDismiss }, /* @__PURE__ */ React__default.createElement(
52
- StyledCloseIcon,
53
- {
54
- name: "close-outline",
55
- type: "ionicon",
56
- size: "centi",
57
- fontColor: "medium"
58
- }
59
- ))
41
+ ...rest,
42
+ children: [
43
+ icon && /* @__PURE__ */ jsx(
44
+ StyledLeftIcon,
45
+ {
46
+ size: icon.size || "micro",
47
+ colorVariant: icon.colorVariant || "primary",
48
+ ...icon
49
+ }
50
+ ),
51
+ value,
52
+ canDismiss && /* @__PURE__ */ jsx(PressableSurface, { onPress: handleDismiss, children: /* @__PURE__ */ jsx(
53
+ StyledCloseIcon,
54
+ {
55
+ name: "close-outline",
56
+ type: "ionicon",
57
+ size: "centi",
58
+ fontColor: "medium"
59
+ }
60
+ ) })
61
+ ]
62
+ }
60
63
  );
61
64
  };
62
65
 
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import { jsx } from 'react/jsx-runtime';
2
2
  import { StyledColoredText } from './styled.js';
3
3
  import { getLabel } from './functions.js';
4
4
 
@@ -16,7 +16,7 @@ const Text = ({
16
16
  capitalFirst = false,
17
17
  ...rest
18
18
  }) => {
19
- return /* @__PURE__ */ React__default.createElement(
19
+ return /* @__PURE__ */ jsx(
20
20
  StyledColoredText,
21
21
  {
22
22
  ...rest,
@@ -28,9 +28,9 @@ const Text = ({
28
28
  typography,
29
29
  numberOfLines,
30
30
  ellipsizeMode,
31
- textTransform
32
- },
33
- getLabel(children, capitalFirst)
31
+ textTransform,
32
+ children: getLabel(children, capitalFirst)
33
+ }
34
34
  );
35
35
  };
36
36
 
@@ -1,3 +1,4 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
1
2
  import { set, getWeeksInMonth, add, format } from 'date-fns';
2
3
  import * as React from 'react';
3
4
  import { useRef } from 'react';
@@ -84,84 +85,93 @@ function Calendar({
84
85
  },
85
86
  [referenceDate]
86
87
  );
87
- return /* @__PURE__ */ React.createElement(View, { ...rest }, /* @__PURE__ */ React.createElement(TitleContainer, null, /* @__PURE__ */ React.createElement(
88
- Control,
89
- {
90
- onPress: handlePressPrev,
91
- align: "start",
92
- disabled: showSelectYear,
93
- isLeft: true
94
- },
95
- /* @__PURE__ */ React.createElement(
96
- Icon,
88
+ return /* @__PURE__ */ jsxs(View, { ...rest, children: [
89
+ /* @__PURE__ */ jsxs(TitleContainer, { children: [
90
+ /* @__PURE__ */ jsx(
91
+ Control,
92
+ {
93
+ onPress: handlePressPrev,
94
+ align: "start",
95
+ disabled: showSelectYear,
96
+ isLeft: true,
97
+ children: /* @__PURE__ */ jsx(
98
+ Icon,
99
+ {
100
+ name: "chevron-left",
101
+ type: "material-community",
102
+ size: "kilo",
103
+ colorVariant: "secondary",
104
+ colorTone: "medium"
105
+ }
106
+ )
107
+ }
108
+ ),
109
+ /* @__PURE__ */ jsx(TouchableOpacity, { onPress: handlePressSelectYear, children: /* @__PURE__ */ jsx(
110
+ Capitalized,
111
+ {
112
+ colorVariant: "secondary",
113
+ colorTone: "xdark",
114
+ fontWeight: "bold",
115
+ children: format(referenceDate, "MMMM yyyy", { locale })
116
+ }
117
+ ) }),
118
+ /* @__PURE__ */ jsx(
119
+ Control,
120
+ {
121
+ onPress: handlePressNext,
122
+ align: "end",
123
+ disabled: showSelectYear,
124
+ isRight: true,
125
+ children: /* @__PURE__ */ jsx(
126
+ Icon,
127
+ {
128
+ name: "chevron-right",
129
+ type: "material-community",
130
+ size: "kilo",
131
+ colorVariant: "secondary",
132
+ colorTone: "medium"
133
+ }
134
+ )
135
+ }
136
+ )
137
+ ] }),
138
+ showSelectYear ? /* @__PURE__ */ jsx(Content, { height: calendarHeightRef.current, children: /* @__PURE__ */ jsx(
139
+ SelectYear,
97
140
  {
98
- name: "chevron-left",
99
- type: "material-community",
100
- size: "kilo",
101
- colorVariant: "secondary",
102
- colorTone: "medium"
141
+ currentYear: referenceDate.getFullYear(),
142
+ onSelectYear: handleSelectYear,
143
+ TextComponent,
144
+ ...selectYearProps
103
145
  }
104
- )
105
- ), /* @__PURE__ */ React.createElement(TouchableOpacity, { onPress: handlePressSelectYear }, /* @__PURE__ */ React.createElement(
106
- Capitalized,
107
- {
108
- colorVariant: "secondary",
109
- colorTone: "xdark",
110
- fontWeight: "bold"
111
- },
112
- format(referenceDate, "MMMM yyyy", { locale })
113
- )), /* @__PURE__ */ React.createElement(
114
- Control,
115
- {
116
- onPress: handlePressNext,
117
- align: "end",
118
- disabled: showSelectYear,
119
- isRight: true
120
- },
121
- /* @__PURE__ */ React.createElement(
122
- Icon,
146
+ ) }) : /* @__PURE__ */ jsxs(
147
+ Content,
123
148
  {
124
- name: "chevron-right",
125
- type: "material-community",
126
- size: "kilo",
127
- colorVariant: "secondary",
128
- colorTone: "medium"
149
+ onLayout: (e) => calendarHeightRef.current = e.nativeEvent.layout.height,
150
+ children: [
151
+ /* @__PURE__ */ jsx(
152
+ Weekdays,
153
+ {
154
+ locale,
155
+ calendar,
156
+ Capitalized
157
+ }
158
+ ),
159
+ calendar.map((week, index) => /* @__PURE__ */ jsx(
160
+ MonthWeek,
161
+ {
162
+ week,
163
+ type,
164
+ value,
165
+ onChange,
166
+ TextComponent,
167
+ referenceDate
168
+ },
169
+ `week-${index}`
170
+ ))
171
+ ]
129
172
  }
130
173
  )
131
- )), showSelectYear ? /* @__PURE__ */ React.createElement(Content, { height: calendarHeightRef.current }, /* @__PURE__ */ React.createElement(
132
- SelectYear,
133
- {
134
- currentYear: referenceDate.getFullYear(),
135
- onSelectYear: handleSelectYear,
136
- TextComponent,
137
- ...selectYearProps
138
- }
139
- )) : /* @__PURE__ */ React.createElement(
140
- Content,
141
- {
142
- onLayout: (e) => calendarHeightRef.current = e.nativeEvent.layout.height
143
- },
144
- /* @__PURE__ */ React.createElement(
145
- Weekdays,
146
- {
147
- locale,
148
- calendar,
149
- Capitalized
150
- }
151
- ),
152
- calendar.map((week, index) => /* @__PURE__ */ React.createElement(
153
- MonthWeek,
154
- {
155
- week,
156
- type,
157
- value,
158
- key: `week-${index}`,
159
- onChange,
160
- TextComponent,
161
- referenceDate
162
- }
163
- ))
164
- ));
174
+ ] });
165
175
  }
166
176
 
167
177
  export { Calendar as default };