@tecsinapse/react-core 3.4.14 → 3.4.15-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 (163) 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 +37 -29
  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 +19 -12
  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/styles/ThemeProvider.js +2 -2
  70. package/dist/cjs/styles/definitions.js +2 -1
  71. package/dist/cjs/utils/formatWithMask.js +2 -1
  72. package/dist/cjs/utils/masks.js +4 -1
  73. package/dist/esm/components/atoms/Avatar/Avatar.js +2 -1
  74. package/dist/esm/components/atoms/Badge/Badge.js +5 -2
  75. package/dist/esm/components/atoms/Badge/styled.js +2 -1
  76. package/dist/esm/components/atoms/BoxContent/BoxContent.js +2 -2
  77. package/dist/esm/components/atoms/Button/Button.js +10 -8
  78. package/dist/esm/components/atoms/Button/States/BaseState.js +5 -2
  79. package/dist/esm/components/atoms/Button/States/Error.js +2 -2
  80. package/dist/esm/components/atoms/Button/States/Loading.js +11 -8
  81. package/dist/esm/components/atoms/Button/States/Success.js +2 -2
  82. package/dist/esm/components/atoms/Button/styled.js +2 -1
  83. package/dist/esm/components/atoms/Card/Card.js +3 -3
  84. package/dist/esm/components/atoms/Card/Footer/Footer.js +2 -2
  85. package/dist/esm/components/atoms/Card/Header/Header.js +2 -2
  86. package/dist/esm/components/atoms/Checkbox/Checkbox.js +26 -21
  87. package/dist/esm/components/atoms/Divider/Divider.js +2 -2
  88. package/dist/esm/components/atoms/GroupButton/GroupButton.js +20 -17
  89. package/dist/esm/components/atoms/GroupButton/GroupButtonOption.js +2 -2
  90. package/dist/esm/components/atoms/GroupButton/styled.js +2 -1
  91. package/dist/esm/components/atoms/Icon/AntDesign.js +2 -2
  92. package/dist/esm/components/atoms/Icon/Entypo.js +2 -2
  93. package/dist/esm/components/atoms/Icon/Evil.js +2 -2
  94. package/dist/esm/components/atoms/Icon/Feather.js +2 -2
  95. package/dist/esm/components/atoms/Icon/FontAwesome.js +2 -2
  96. package/dist/esm/components/atoms/Icon/FontAwesomeFive.js +2 -2
  97. package/dist/esm/components/atoms/Icon/Fontisto.js +2 -2
  98. package/dist/esm/components/atoms/Icon/Foundation.js +2 -2
  99. package/dist/esm/components/atoms/Icon/Icon.js +3 -2
  100. package/dist/esm/components/atoms/Icon/Ionicon.js +2 -2
  101. package/dist/esm/components/atoms/Icon/Material.js +2 -2
  102. package/dist/esm/components/atoms/Icon/MaterialCommunity.js +2 -2
  103. package/dist/esm/components/atoms/Icon/Octicon.js +2 -2
  104. package/dist/esm/components/atoms/Icon/SimpleLine.js +2 -2
  105. package/dist/esm/components/atoms/Icon/Zocial.js +2 -2
  106. package/dist/esm/components/atoms/Input/Hint.js +13 -10
  107. package/dist/esm/components/atoms/Input/InputContainer/InputContainer.js +38 -34
  108. package/dist/esm/components/atoms/Input/InputElement/InputElement.js +2 -1
  109. package/dist/esm/components/atoms/Input/InputMaskElement/InputMaskElement.js +2 -1
  110. package/dist/esm/components/atoms/Input/PressableInputContainer/PressableInputContainer.js +2 -2
  111. package/dist/esm/components/atoms/Paper/Paper.js +2 -2
  112. package/dist/esm/components/atoms/PressableSurface/PressableSurface.js +3 -2
  113. package/dist/esm/components/atoms/ProgressBar/ProgressBar.js +16 -15
  114. package/dist/esm/components/atoms/ProgressBar/styled.js +2 -1
  115. package/dist/esm/components/atoms/RadioButton/RadioButton.js +27 -22
  116. package/dist/esm/components/atoms/Switch/Switch.js +14 -13
  117. package/dist/esm/components/atoms/Switch/styled.js +2 -1
  118. package/dist/esm/components/atoms/Tag/Tag.js +24 -21
  119. package/dist/esm/components/atoms/Text/Text.js +5 -5
  120. package/dist/esm/components/molecules/Calendar/Calendar.js +83 -73
  121. package/dist/esm/components/molecules/Calendar/components/MemoizedYearCard.js +13 -12
  122. package/dist/esm/components/molecules/Calendar/components/MonthWeek.js +7 -6
  123. package/dist/esm/components/molecules/Calendar/components/SelectYear.js +3 -2
  124. package/dist/esm/components/molecules/Calendar/components/Weekdays.js +6 -5
  125. package/dist/esm/components/molecules/ControlledDateTimeSelector/ControlledDateTimeSelector.js +2 -1
  126. package/dist/esm/components/molecules/DatePicker/DatePicker.js +24 -17
  127. package/dist/esm/components/molecules/DatePicker/styled.js +2 -1
  128. package/dist/esm/components/molecules/DateTimePicker/DateTimePicker.js +25 -18
  129. package/dist/esm/components/molecules/DateTimeSelector/DateTimeSelector.js +85 -70
  130. package/dist/esm/components/molecules/DateTimeSelector/Selector.js +37 -29
  131. package/dist/esm/components/molecules/DateTimeSelector/styled.js +2 -1
  132. package/dist/esm/components/molecules/Grid/functions.js +2 -1
  133. package/dist/esm/components/molecules/HintInputContainer/HintInputContainer.js +19 -15
  134. package/dist/esm/components/molecules/IconTextButton/IconComponent.js +3 -2
  135. package/dist/esm/components/molecules/InputPassword/InputPasswordIcon.js +5 -5
  136. package/dist/esm/components/molecules/InputPassword/styled.js +1 -0
  137. package/dist/esm/components/molecules/Snackbar/Snackbar.js +19 -12
  138. package/dist/esm/components/molecules/Snackbar/styled.js +2 -1
  139. package/dist/esm/components/molecules/TextArea/TextArea.js +41 -35
  140. package/dist/esm/components/molecules/TextArea/styled.js +2 -1
  141. package/dist/esm/styles/ThemeProvider.js +2 -2
  142. package/dist/esm/styles/definitions.js +2 -1
  143. package/dist/esm/utils/formatWithMask.js +2 -1
  144. package/dist/esm/utils/masks.js +4 -1
  145. package/dist/types/components/atoms/GroupButton/GroupButton.d.ts +1 -2
  146. package/dist/types/components/atoms/Icon/AntDesign.d.ts +1 -2
  147. package/dist/types/components/atoms/Icon/Entypo.d.ts +1 -2
  148. package/dist/types/components/atoms/Icon/Evil.d.ts +1 -2
  149. package/dist/types/components/atoms/Icon/Feather.d.ts +1 -2
  150. package/dist/types/components/atoms/Icon/FontAwesome.d.ts +1 -2
  151. package/dist/types/components/atoms/Icon/FontAwesomeFive.d.ts +1 -2
  152. package/dist/types/components/atoms/Icon/Fontisto.d.ts +1 -2
  153. package/dist/types/components/atoms/Icon/Foundation.d.ts +1 -2
  154. package/dist/types/components/atoms/Icon/Ionicon.d.ts +1 -2
  155. package/dist/types/components/atoms/Icon/Material.d.ts +1 -2
  156. package/dist/types/components/atoms/Icon/MaterialCommunity.d.ts +1 -2
  157. package/dist/types/components/atoms/Icon/Octicon.d.ts +1 -2
  158. package/dist/types/components/atoms/Icon/SimpleLine.d.ts +1 -2
  159. package/dist/types/components/atoms/Icon/Zocial.d.ts +1 -2
  160. package/dist/types/components/molecules/Calendar/components/MonthWeek.d.ts +1 -1
  161. package/dist/types/components/molecules/Calendar/components/SelectYear.d.ts +1 -1
  162. package/dist/types/components/molecules/Calendar/components/Weekdays.d.ts +1 -1
  163. package/package.json +2 -2
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var dateFns = require('date-fns');
4
5
  var React = require('react');
5
6
  var Button = require('../../atoms/Button/Button.js');
@@ -110,76 +111,90 @@ const DateTimeSelector = ({
110
111
  const handlePressBack = () => {
111
112
  setCurrentMode(0);
112
113
  };
113
- return /* @__PURE__ */ React__namespace.createElement(styled.Root, { ...rest }, /* @__PURE__ */ React__namespace.createElement(styled.Header, null, currentMode === 1 && /* @__PURE__ */ React__namespace.createElement(styled.BackButton, { onPress: handlePressBack }, /* @__PURE__ */ React__namespace.createElement(
114
- Icon,
115
- {
116
- type: "material-community",
117
- name: "chevron-left",
118
- size: "mega",
119
- colorVariant: "secondary"
120
- }
121
- )), /* @__PURE__ */ React__namespace.createElement(TextComponent, { typography: "base", colorVariant: "secondary" }, modalTitle)), isDate ? /* @__PURE__ */ React__namespace.createElement(styled.Content, null, mode !== "month" && /* @__PURE__ */ React__namespace.createElement(styled.SelectorContainer, { isFirst: true }, /* @__PURE__ */ React__namespace.createElement(
122
- Selector.Selector,
123
- {
124
- TextComponent,
125
- onChange: handleChange("date"),
126
- referenceDate: date,
127
- value: date.getDate(),
128
- label: dayLabel || "Day",
129
- granularity: "date",
130
- getDisplayValue: getDisplayedValue("date"),
131
- preventUpper: upperDateThreshold ? dateFns.isSameDay(upperDateThreshold, date) : false,
132
- preventLower: lowerDateThreshold ? dateFns.isSameDay(lowerDateThreshold, date) : false
133
- }
134
- )), /* @__PURE__ */ React__namespace.createElement(styled.SelectorContainer, null, /* @__PURE__ */ React__namespace.createElement(
135
- Selector.Selector,
136
- {
137
- TextComponent,
138
- onChange: handleChange("month"),
139
- referenceDate: date,
140
- value: date.getMonth(),
141
- label: monthLabel || "Month",
142
- granularity: "month",
143
- getDisplayValue: getDisplayedValue("month"),
144
- preventUpper: upperDateThreshold ? dateFns.isSameMonth(upperDateThreshold, date) : false,
145
- preventLower: lowerDateThreshold ? dateFns.isSameMonth(lowerDateThreshold, date) : false
146
- }
147
- )), /* @__PURE__ */ React__namespace.createElement(styled.SelectorContainer, { isLast: true }, /* @__PURE__ */ React__namespace.createElement(
148
- Selector.Selector,
149
- {
150
- TextComponent,
151
- onChange: handleChange("year"),
152
- referenceDate: date,
153
- value: date.getFullYear(),
154
- label: yearLabel || "Year",
155
- granularity: "year",
156
- getDisplayValue: getDisplayedValue("year"),
157
- preventUpper: upperDateThreshold ? dateFns.isSameYear(upperDateThreshold, date) : false,
158
- preventLower: lowerDateThreshold ? dateFns.isSameYear(lowerDateThreshold, date) : false
159
- }
160
- ))) : /* @__PURE__ */ React__namespace.createElement(styled.Content, null, /* @__PURE__ */ React__namespace.createElement(styled.SelectorContainer, { isFirst: true }, /* @__PURE__ */ React__namespace.createElement(
161
- Selector.Selector,
162
- {
163
- TextComponent,
164
- onChange: handleChange("hours"),
165
- referenceDate: date,
166
- value: date.getHours(),
167
- label: hourLabel || "Hour",
168
- granularity: "hours",
169
- getDisplayValue: getDisplayedValue("hours")
170
- }
171
- )), /* @__PURE__ */ React__namespace.createElement(styled.SelectorContainer, { isLast: true }, /* @__PURE__ */ React__namespace.createElement(
172
- Selector.Selector,
173
- {
174
- TextComponent,
175
- onChange: handleChange("minutes"),
176
- referenceDate: date,
177
- value: date.getMinutes(),
178
- label: minuteLabel || "Minute",
179
- granularity: "minutes",
180
- getDisplayValue: getDisplayedValue("minutes")
181
- }
182
- ))), /* @__PURE__ */ React__namespace.createElement(Button, { color: "primary", onPress: handlePressConfirm }, /* @__PURE__ */ React__namespace.createElement(TextComponent, { fontWeight: "bold", fontColor: "light" }, confirmButtonText || "OK")));
114
+ return /* @__PURE__ */ jsxRuntime.jsxs(styled.Root, { ...rest, children: [
115
+ /* @__PURE__ */ jsxRuntime.jsxs(styled.Header, { children: [
116
+ currentMode === 1 && /* @__PURE__ */ jsxRuntime.jsx(styled.BackButton, { onPress: handlePressBack, children: /* @__PURE__ */ jsxRuntime.jsx(
117
+ Icon,
118
+ {
119
+ type: "material-community",
120
+ name: "chevron-left",
121
+ size: "mega",
122
+ colorVariant: "secondary"
123
+ }
124
+ ) }),
125
+ /* @__PURE__ */ jsxRuntime.jsx(TextComponent, { typography: "base", colorVariant: "secondary", children: modalTitle })
126
+ ] }),
127
+ isDate ? /* @__PURE__ */ jsxRuntime.jsxs(styled.Content, { children: [
128
+ mode !== "month" && /* @__PURE__ */ jsxRuntime.jsx(styled.SelectorContainer, { isFirst: true, children: /* @__PURE__ */ jsxRuntime.jsx(
129
+ Selector.Selector,
130
+ {
131
+ TextComponent,
132
+ onChange: handleChange("date"),
133
+ referenceDate: date,
134
+ value: date.getDate(),
135
+ label: dayLabel || "Day",
136
+ granularity: "date",
137
+ getDisplayValue: getDisplayedValue("date"),
138
+ preventUpper: upperDateThreshold ? dateFns.isSameDay(upperDateThreshold, date) : false,
139
+ preventLower: lowerDateThreshold ? dateFns.isSameDay(lowerDateThreshold, date) : false
140
+ }
141
+ ) }),
142
+ /* @__PURE__ */ jsxRuntime.jsx(styled.SelectorContainer, { children: /* @__PURE__ */ jsxRuntime.jsx(
143
+ Selector.Selector,
144
+ {
145
+ TextComponent,
146
+ onChange: handleChange("month"),
147
+ referenceDate: date,
148
+ value: date.getMonth(),
149
+ label: monthLabel || "Month",
150
+ granularity: "month",
151
+ getDisplayValue: getDisplayedValue("month"),
152
+ preventUpper: upperDateThreshold ? dateFns.isSameMonth(upperDateThreshold, date) : false,
153
+ preventLower: lowerDateThreshold ? dateFns.isSameMonth(lowerDateThreshold, date) : false
154
+ }
155
+ ) }),
156
+ /* @__PURE__ */ jsxRuntime.jsx(styled.SelectorContainer, { isLast: true, children: /* @__PURE__ */ jsxRuntime.jsx(
157
+ Selector.Selector,
158
+ {
159
+ TextComponent,
160
+ onChange: handleChange("year"),
161
+ referenceDate: date,
162
+ value: date.getFullYear(),
163
+ label: yearLabel || "Year",
164
+ granularity: "year",
165
+ getDisplayValue: getDisplayedValue("year"),
166
+ preventUpper: upperDateThreshold ? dateFns.isSameYear(upperDateThreshold, date) : false,
167
+ preventLower: lowerDateThreshold ? dateFns.isSameYear(lowerDateThreshold, date) : false
168
+ }
169
+ ) })
170
+ ] }) : /* @__PURE__ */ jsxRuntime.jsxs(styled.Content, { children: [
171
+ /* @__PURE__ */ jsxRuntime.jsx(styled.SelectorContainer, { isFirst: true, children: /* @__PURE__ */ jsxRuntime.jsx(
172
+ Selector.Selector,
173
+ {
174
+ TextComponent,
175
+ onChange: handleChange("hours"),
176
+ referenceDate: date,
177
+ value: date.getHours(),
178
+ label: hourLabel || "Hour",
179
+ granularity: "hours",
180
+ getDisplayValue: getDisplayedValue("hours")
181
+ }
182
+ ) }),
183
+ /* @__PURE__ */ jsxRuntime.jsx(styled.SelectorContainer, { isLast: true, children: /* @__PURE__ */ jsxRuntime.jsx(
184
+ Selector.Selector,
185
+ {
186
+ TextComponent,
187
+ onChange: handleChange("minutes"),
188
+ referenceDate: date,
189
+ value: date.getMinutes(),
190
+ label: minuteLabel || "Minute",
191
+ granularity: "minutes",
192
+ getDisplayValue: getDisplayedValue("minutes")
193
+ }
194
+ ) })
195
+ ] }),
196
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { color: "primary", onPress: handlePressConfirm, children: /* @__PURE__ */ jsxRuntime.jsx(TextComponent, { fontWeight: "bold", fontColor: "light", children: confirmButtonText || "OK" }) })
197
+ ] });
183
198
  };
184
199
 
185
200
  module.exports = DateTimeSelector;
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var jsxRuntime = require('react/jsx-runtime');
3
4
  var dateFns = require('date-fns');
4
5
  var React = require('react');
5
6
  var Icon = require('../../atoms/Icon/Icon.js');
@@ -75,40 +76,47 @@ const Selector = ({
75
76
  const handlePressOut = () => {
76
77
  if (pressInTimeoutRef.current) clearTimeout(pressInTimeoutRef.current);
77
78
  };
78
- return /* @__PURE__ */ React__namespace.createElement(styled.SelectorRoot, { ...rest }, /* @__PURE__ */ React__namespace.createElement(
79
- styled.Control,
80
- {
81
- onPressIn: () => requestAnimationFrame(() => handlePressInNext()),
82
- onPressOut: handlePressOut,
83
- disabled: preventUpper
84
- },
85
- /* @__PURE__ */ React__namespace.createElement(
86
- Icon,
79
+ return /* @__PURE__ */ jsxRuntime.jsxs(styled.SelectorRoot, { ...rest, children: [
80
+ /* @__PURE__ */ jsxRuntime.jsx(
81
+ styled.Control,
87
82
  {
88
- name: "chevron-up",
89
- type: "material-community",
90
- size: "mega",
91
- colorVariant: "primary"
83
+ onPressIn: () => requestAnimationFrame(() => handlePressInNext()),
84
+ onPressOut: handlePressOut,
85
+ disabled: preventUpper,
86
+ children: /* @__PURE__ */ jsxRuntime.jsx(
87
+ Icon,
88
+ {
89
+ name: "chevron-up",
90
+ type: "material-community",
91
+ size: "mega",
92
+ colorVariant: "primary"
93
+ }
94
+ )
92
95
  }
93
- )
94
- ), /* @__PURE__ */ React__namespace.createElement(styled.SelectorValue, null, /* @__PURE__ */ React__namespace.createElement(TextComponent, { colorVariant: "secondary", typography: "sub" }, label), /* @__PURE__ */ React__namespace.createElement(TextComponent, { fontWeight: "bold", typography: "h5" }, getDisplayValue(value))), /* @__PURE__ */ React__namespace.createElement(
95
- styled.Control,
96
- {
97
- onPressIn: () => requestAnimationFrame(() => handlePressInPrev()),
98
- onPressOut: handlePressOut,
99
- disabled: preventLower,
100
- style: { opacity: preventLower ? 0 : 1 }
101
- },
102
- /* @__PURE__ */ React__namespace.createElement(
103
- Icon,
96
+ ),
97
+ /* @__PURE__ */ jsxRuntime.jsxs(styled.SelectorValue, { children: [
98
+ /* @__PURE__ */ jsxRuntime.jsx(TextComponent, { colorVariant: "secondary", typography: "sub", children: label }),
99
+ /* @__PURE__ */ jsxRuntime.jsx(TextComponent, { fontWeight: "bold", typography: "h5", children: getDisplayValue(value) })
100
+ ] }),
101
+ /* @__PURE__ */ jsxRuntime.jsx(
102
+ styled.Control,
104
103
  {
105
- name: "chevron-down",
106
- type: "material-community",
107
- size: "mega",
108
- colorVariant: "primary"
104
+ onPressIn: () => requestAnimationFrame(() => handlePressInPrev()),
105
+ onPressOut: handlePressOut,
106
+ disabled: preventLower,
107
+ style: { opacity: preventLower ? 0 : 1 },
108
+ children: /* @__PURE__ */ jsxRuntime.jsx(
109
+ Icon,
110
+ {
111
+ name: "chevron-down",
112
+ type: "material-community",
113
+ size: "mega",
114
+ colorVariant: "primary"
115
+ }
116
+ )
109
117
  }
110
118
  )
111
- ));
119
+ ] });
112
120
  };
113
121
 
114
122
  exports.Selector = Selector;
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var styled = require('@emotion/native');
4
- require('react');
4
+ require('react/jsx-runtime');
5
5
  require('../../atoms/Text/styled.js');
6
6
  require('../../atoms/Input/styled.js');
7
+ require('react');
7
8
  require('currency.js');
8
9
  require('../../atoms/Input/InputElement/InputElement.js');
9
10
  require('../../atoms/Input/InputMaskElement/InputMaskElement.js');
@@ -1,9 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var extractNumbersFromString = require('../../../utils/extractNumbersFromString.js');
4
- require('react');
4
+ require('react/jsx-runtime');
5
5
  require('../../atoms/Text/styled.js');
6
6
  require('../../atoms/Input/styled.js');
7
+ require('react');
7
8
  require('currency.js');
8
9
  require('../../atoms/Input/InputElement/InputElement.js');
9
10
  require('../../atoms/Input/InputMaskElement/InputMaskElement.js');
@@ -1,8 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var jsxRuntime = require('react/jsx-runtime');
4
4
  var reactNative = require('react-native');
5
5
  var Hint = require('../../atoms/Input/Hint.js');
6
+ require('react');
6
7
  require('currency.js');
7
8
  require('../../atoms/Text/styled.js');
8
9
  require('../../atoms/Input/styled.js');
@@ -10,25 +11,6 @@ require('../../atoms/Input/InputElement/InputElement.js');
10
11
  require('../../atoms/Input/InputMaskElement/InputMaskElement.js');
11
12
  var PressableInputContainer = require('../../atoms/Input/PressableInputContainer/PressableInputContainer.js');
12
13
 
13
- function _interopNamespaceDefault(e) {
14
- var n = Object.create(null);
15
- if (e) {
16
- Object.keys(e).forEach(function (k) {
17
- if (k !== 'default') {
18
- var d = Object.getOwnPropertyDescriptor(e, k);
19
- Object.defineProperty(n, k, d.get ? d : {
20
- enumerable: true,
21
- get: function () { return e[k]; }
22
- });
23
- }
24
- });
25
- }
26
- n.default = e;
27
- return Object.freeze(n);
28
- }
29
-
30
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
31
-
32
14
  const HintInputContainer = ({
33
15
  viewStyle,
34
16
  onPress,
@@ -42,20 +24,23 @@ const HintInputContainer = ({
42
24
  hintComponent,
43
25
  ...rest
44
26
  }) => {
45
- const _hint = hintComponent || /* @__PURE__ */ React__namespace.createElement(Hint, { TextComponent: LabelComponent, text: hint, variant });
46
- return /* @__PURE__ */ React__namespace.createElement(reactNative.View, { style: viewStyle }, /* @__PURE__ */ React__namespace.createElement(
47
- PressableInputContainer,
48
- {
49
- onPress,
50
- focused,
51
- disabled,
52
- LabelComponent,
53
- variant,
54
- rightComponent,
55
- ...rest
56
- },
57
- children
58
- ), hint && _hint);
27
+ const _hint = hintComponent || /* @__PURE__ */ jsxRuntime.jsx(Hint, { TextComponent: LabelComponent, text: hint, variant });
28
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style: viewStyle, children: [
29
+ /* @__PURE__ */ jsxRuntime.jsx(
30
+ PressableInputContainer,
31
+ {
32
+ onPress,
33
+ focused,
34
+ disabled,
35
+ LabelComponent,
36
+ variant,
37
+ rightComponent,
38
+ ...rest,
39
+ children
40
+ }
41
+ ),
42
+ hint && _hint
43
+ ] });
59
44
  };
60
45
 
61
46
  module.exports = HintInputContainer;
@@ -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 Icon = require('../../atoms/Icon/Icon.js');
5
6
 
@@ -8,14 +9,14 @@ const IconComponent = ({
8
9
  size = "default",
9
10
  defaultFontColor
10
11
  }) => {
11
- return iconProps ? /* @__PURE__ */ React.createElement(
12
+ return iconProps ? /* @__PURE__ */ jsxRuntime.jsx(
12
13
  Icon,
13
14
  {
14
15
  size: iconProps.size ?? size === "small" ? "deca" : "kilo",
15
16
  fontColor: iconProps.fontColor ?? defaultFontColor,
16
17
  ...iconProps
17
18
  }
18
- ) : /* @__PURE__ */ React.createElement(React.Fragment, null);
19
+ ) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
19
20
  };
20
21
  var IconComponent$1 = React.memo(IconComponent);
21
22
 
@@ -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 Icon = require('../../atoms/Icon/Icon.js');
5
5
  var styled = require('./styled.js');
6
6
 
@@ -10,15 +10,15 @@ const InputPasswordIcon = ({
10
10
  ...rest
11
11
  }) => {
12
12
  const icon = revealed ? "eye-outline" : "eye-off-outline";
13
- return /* @__PURE__ */ React.createElement(
13
+ return /* @__PURE__ */ jsxRuntime.jsx(
14
14
  styled.StyledPasswordButtonIcon,
15
15
  {
16
16
  ...rest,
17
17
  variant: "text",
18
18
  size: "small",
19
- onPress: () => onChangeState(!revealed)
20
- },
21
- /* @__PURE__ */ React.createElement(Icon, { name: icon, type: "ionicon", size: "centi" })
19
+ onPress: () => onChangeState(!revealed),
20
+ children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { name: icon, type: "ionicon", size: "centi" })
21
+ }
22
22
  );
23
23
  };
24
24
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  var styled = require('@emotion/native');
4
4
  var Button = require('../../atoms/Button/Button.js');
5
+ require('react/jsx-runtime');
5
6
  require('react');
6
7
  require('@emotion/react');
7
8
  require('react-native-vector-icons/dist/MaterialIcons');
@@ -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 Icon = require('../../atoms/Icon/Icon.js');
@@ -59,7 +60,7 @@ const Snackbar = ({
59
60
  }, timeout + FADE_DURATION);
60
61
  }
61
62
  }, [open, timeout]);
62
- return /* @__PURE__ */ React.createElement(
63
+ return /* @__PURE__ */ jsxRuntime.jsx(
63
64
  styled.SnackbarContainer,
64
65
  {
65
66
  colorVariant,
@@ -69,17 +70,23 @@ const Snackbar = ({
69
70
  anchorDistance,
70
71
  visible: open,
71
72
  style: [{ opacity: fadeAnim }, style],
72
- timeout
73
- },
74
- /* @__PURE__ */ React.createElement(styled.StyledContainerFlexRow, null, /* @__PURE__ */ React.createElement(styled.ContentContainer, null, leftIcon && /* @__PURE__ */ React.createElement(styled.IconContainer, null, /* @__PURE__ */ React.createElement(Icon, { ...leftIcon, size: "centi" })), /* @__PURE__ */ React.createElement(styled.TextContainer, null, children)), dismissable && /* @__PURE__ */ React.createElement(styled.DismissContainer, { effect: "none", onPress: handleDismiss }, /* @__PURE__ */ React.createElement(
75
- Icon,
76
- {
77
- ...rightIcon,
78
- size: "centi",
79
- name: "close",
80
- type: "material-community"
81
- }
82
- )))
73
+ timeout,
74
+ children: /* @__PURE__ */ jsxRuntime.jsxs(styled.StyledContainerFlexRow, { children: [
75
+ /* @__PURE__ */ jsxRuntime.jsxs(styled.ContentContainer, { children: [
76
+ leftIcon && /* @__PURE__ */ jsxRuntime.jsx(styled.IconContainer, { children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { ...leftIcon, size: "centi" }) }),
77
+ /* @__PURE__ */ jsxRuntime.jsx(styled.TextContainer, { children })
78
+ ] }),
79
+ dismissable && /* @__PURE__ */ jsxRuntime.jsx(styled.DismissContainer, { effect: "none", onPress: handleDismiss, children: /* @__PURE__ */ jsxRuntime.jsx(
80
+ Icon,
81
+ {
82
+ ...rightIcon,
83
+ size: "centi",
84
+ name: "close",
85
+ type: "material-community"
86
+ }
87
+ ) })
88
+ ] })
89
+ }
83
90
  );
84
91
  };
85
92
 
@@ -2,9 +2,10 @@
2
2
 
3
3
  var styled = require('@emotion/native');
4
4
  var reactNative = require('react-native');
5
- require('react');
5
+ require('react/jsx-runtime');
6
6
  require('../../atoms/Text/styled.js');
7
7
  require('../../atoms/Input/styled.js');
8
+ require('react');
8
9
  require('currency.js');
9
10
  require('../../atoms/Input/InputElement/InputElement.js');
10
11
  require('../../atoms/Input/InputMaskElement/InputMaskElement.js');
@@ -1,8 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var jsxRuntime = require('react/jsx-runtime');
4
4
  var reactNative = require('react-native');
5
5
  var Hint = require('../../atoms/Input/Hint.js');
6
+ require('react');
6
7
  require('currency.js');
7
8
  var Text = require('../../atoms/Text/Text.js');
8
9
  require('../../atoms/Input/styled.js');
@@ -40,41 +41,46 @@ const TextArea = ({
40
41
  if (maxLength && length > maxLength) {
41
42
  length = maxLength;
42
43
  }
43
- const _hint = hintComponent || /* @__PURE__ */ React.createElement(Hint, { TextComponent, text: hint, variant });
44
- return /* @__PURE__ */ React.createElement(reactNative.View, { style }, /* @__PURE__ */ React.createElement(
45
- styled.StyledInputContainer,
46
- {
47
- label,
48
- labelColor,
49
- labelColorVariant,
50
- labelColorTone,
51
- labelTypography,
52
- labelStack,
53
- labelWeight,
54
- LabelComponent: TextComponent,
55
- leftComponent,
56
- rightComponent,
57
- borderColor,
58
- borderColorGradation,
59
- inputContainerStyle,
60
- focused,
61
- disabled,
62
- variant
63
- },
64
- children,
65
- maxLength && /* @__PURE__ */ React.createElement(
66
- TextComponent,
44
+ const _hint = hintComponent || /* @__PURE__ */ jsxRuntime.jsx(Hint, { TextComponent, text: hint, variant });
45
+ return /* @__PURE__ */ jsxRuntime.jsxs(reactNative.View, { style, children: [
46
+ /* @__PURE__ */ jsxRuntime.jsxs(
47
+ styled.StyledInputContainer,
67
48
  {
68
- colorVariant: "secondary",
69
- colorTone: "medium",
70
- typography: "label",
71
- fontStack: "default",
72
- fontWeight: "bold",
73
- style: { textAlign: "right" }
74
- },
75
- `${length}/${maxLength}`
76
- )
77
- ), hint && _hint);
49
+ label,
50
+ labelColor,
51
+ labelColorVariant,
52
+ labelColorTone,
53
+ labelTypography,
54
+ labelStack,
55
+ labelWeight,
56
+ LabelComponent: TextComponent,
57
+ leftComponent,
58
+ rightComponent,
59
+ borderColor,
60
+ borderColorGradation,
61
+ inputContainerStyle,
62
+ focused,
63
+ disabled,
64
+ variant,
65
+ children: [
66
+ children,
67
+ maxLength && /* @__PURE__ */ jsxRuntime.jsx(
68
+ TextComponent,
69
+ {
70
+ colorVariant: "secondary",
71
+ colorTone: "medium",
72
+ typography: "label",
73
+ fontStack: "default",
74
+ fontWeight: "bold",
75
+ style: { textAlign: "right" },
76
+ children: `${length}/${maxLength}`
77
+ }
78
+ )
79
+ ]
80
+ }
81
+ ),
82
+ hint && _hint
83
+ ] });
78
84
  };
79
85
 
80
86
  module.exports = TextArea;
@@ -2,9 +2,10 @@
2
2
 
3
3
  var styled = require('@emotion/native');
4
4
  var extractNumbersFromString = require('../../../utils/extractNumbersFromString.js');
5
- require('react');
5
+ require('react/jsx-runtime');
6
6
  require('../../atoms/Text/styled.js');
7
7
  require('../../atoms/Input/styled.js');
8
+ require('react');
8
9
  require('currency.js');
9
10
  var InputContainer = require('../../atoms/Input/InputContainer/InputContainer.js');
10
11
  var InputElement = require('../../atoms/Input/InputElement/InputElement.js');
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('@emotion/react');
5
5
 
6
6
  const ThemeProvider = ({
7
7
  theme,
8
8
  children
9
9
  }) => {
10
- return /* @__PURE__ */ React.createElement(react.ThemeProvider, { theme }, children);
10
+ return /* @__PURE__ */ jsxRuntime.jsx(react.ThemeProvider, { theme, children });
11
11
  };
12
12
 
13
13
  module.exports = ThemeProvider;
@@ -1,8 +1,9 @@
1
1
  'use strict';
2
2
 
3
- require('react');
3
+ require('react/jsx-runtime');
4
4
  require('../components/atoms/Text/styled.js');
5
5
  require('../components/atoms/Input/styled.js');
6
+ require('react');
6
7
  require('currency.js');
7
8
  require('../components/atoms/Input/InputElement/InputElement.js');
8
9
  require('../components/atoms/Input/InputMaskElement/InputMaskElement.js');
@@ -1,8 +1,9 @@
1
1
  'use strict';
2
2
 
3
- require('react');
3
+ require('react/jsx-runtime');
4
4
  require('../components/atoms/Text/styled.js');
5
5
  require('../components/atoms/Input/styled.js');
6
+ require('react');
6
7
  var useNumberMask = require('../components/atoms/Input/hooks/useNumberMask.js');
7
8
  var useStringMask = require('../components/atoms/Input/hooks/useStringMask.js');
8
9
  require('../components/atoms/Input/InputElement/InputElement.js');
@@ -16,7 +16,10 @@ const Masks = {
16
16
  const isCellPhoneExtended = onlyNumbers.length === 11;
17
17
  return value?.length <= 14 && !isCellPhoneExtended ? Masks.PHONE : Masks.PHONE_EXTENDED;
18
18
  },
19
- COMBINED_CPF_CNPJ: (value) => value?.length <= 14 ? Masks.CPF : Masks.CNPJ
19
+ COMBINED_CPF_CNPJ: (value) => {
20
+ const onlyNumbers = extractNumbersFromString.extractDigitsFromString(value);
21
+ return onlyNumbers.length <= 11 ? Masks.CPF : Masks.CNPJ;
22
+ }
20
23
  };
21
24
 
22
25
  exports.Masks = Masks;