@tecsinapse/react-native-kit 1.20.0 → 1.21.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 (166) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/components/atoms/Avatar/Avatar.js +3 -1
  3. package/dist/components/atoms/Avatar/Avatar.js.map +1 -1
  4. package/dist/components/atoms/Avatar/index.js +9 -4
  5. package/dist/components/atoms/Avatar/index.js.map +1 -1
  6. package/dist/components/atoms/Badge/Badge.js +10 -7
  7. package/dist/components/atoms/Badge/Badge.js.map +1 -1
  8. package/dist/components/atoms/Badge/index.js +15 -5
  9. package/dist/components/atoms/Badge/index.js.map +1 -1
  10. package/dist/components/atoms/BottomNavigator/BottomNavigator.js +12 -9
  11. package/dist/components/atoms/BottomNavigator/BottomNavigator.js.map +1 -1
  12. package/dist/components/atoms/BottomNavigator/Item.js +10 -7
  13. package/dist/components/atoms/BottomNavigator/Item.js.map +1 -1
  14. package/dist/components/atoms/BottomNavigator/index.js +21 -7
  15. package/dist/components/atoms/BottomNavigator/index.js.map +1 -1
  16. package/dist/components/atoms/BottomNavigator/styled.js +63 -44
  17. package/dist/components/atoms/BottomNavigator/styled.js.map +1 -1
  18. package/dist/components/atoms/Button/Button.js +10 -7
  19. package/dist/components/atoms/Button/Button.js.map +1 -1
  20. package/dist/components/atoms/Button/States/Error.js +3 -1
  21. package/dist/components/atoms/Button/States/Error.js.map +1 -1
  22. package/dist/components/atoms/Button/States/Loading.js +3 -1
  23. package/dist/components/atoms/Button/States/Loading.js.map +1 -1
  24. package/dist/components/atoms/Button/States/Success.js +3 -1
  25. package/dist/components/atoms/Button/States/Success.js.map +1 -1
  26. package/dist/components/atoms/Button/States/index.js +21 -8
  27. package/dist/components/atoms/Button/States/index.js.map +1 -1
  28. package/dist/components/atoms/Button/index.js +33 -9
  29. package/dist/components/atoms/Button/index.js.map +1 -1
  30. package/dist/components/atoms/GroupButton/GroupButtonOption.js +3 -1
  31. package/dist/components/atoms/GroupButton/GroupButtonOption.js.map +1 -1
  32. package/dist/components/atoms/GroupButton/index.js +9 -4
  33. package/dist/components/atoms/GroupButton/index.js.map +1 -1
  34. package/dist/components/atoms/Header/Header.js +18 -15
  35. package/dist/components/atoms/Header/Header.js.map +1 -1
  36. package/dist/components/atoms/Header/index.js +15 -5
  37. package/dist/components/atoms/Header/index.js.map +1 -1
  38. package/dist/components/atoms/Header/styled.js +16 -16
  39. package/dist/components/atoms/Header/styled.js.map +1 -1
  40. package/dist/components/atoms/Input/Input.js +30 -26
  41. package/dist/components/atoms/Input/Input.js.map +1 -1
  42. package/dist/components/atoms/Input/index.js +15 -5
  43. package/dist/components/atoms/Input/index.js.map +1 -1
  44. package/dist/components/atoms/Input/styled.js +13 -8
  45. package/dist/components/atoms/Input/styled.js.map +1 -1
  46. package/dist/components/atoms/InputMask/InputMask.js +31 -27
  47. package/dist/components/atoms/InputMask/InputMask.js.map +1 -1
  48. package/dist/components/atoms/InputMask/index.js +15 -5
  49. package/dist/components/atoms/InputMask/index.js.map +1 -1
  50. package/dist/components/atoms/InputMask/styled.js +14 -11
  51. package/dist/components/atoms/InputMask/styled.js.map +1 -1
  52. package/dist/components/atoms/Modal/ModalGroupManager.js +8 -5
  53. package/dist/components/atoms/Modal/ModalGroupManager.js.map +1 -1
  54. package/dist/components/atoms/Modal/ModalLifecycleHandler.js +87 -72
  55. package/dist/components/atoms/Modal/ModalLifecycleHandler.js.map +1 -1
  56. package/dist/components/atoms/Modal/index.js +45 -8
  57. package/dist/components/atoms/Modal/index.js.map +1 -1
  58. package/dist/components/atoms/Modal/ui/BaseModalView.js +15 -12
  59. package/dist/components/atoms/Modal/ui/BaseModalView.js.map +1 -1
  60. package/dist/components/atoms/Modal/ui/styled.js +18 -20
  61. package/dist/components/atoms/Modal/ui/styled.js.map +1 -1
  62. package/dist/components/atoms/Modal/ui/types.js +3 -1
  63. package/dist/components/atoms/Modal/useLazyModalManager.js +4 -2
  64. package/dist/components/atoms/Modal/useLazyModalManager.js.map +1 -1
  65. package/dist/components/atoms/Modal/useModalManager.js +4 -2
  66. package/dist/components/atoms/Modal/useModalManager.js.map +1 -1
  67. package/dist/components/atoms/Modal/useModalRemoteControl.js +3 -1
  68. package/dist/components/atoms/Modal/useModalRemoteControl.js.map +1 -1
  69. package/dist/components/atoms/Skeleton/Pulse.js +16 -11
  70. package/dist/components/atoms/Skeleton/Pulse.js.map +1 -1
  71. package/dist/components/atoms/Skeleton/Skeleton.js +13 -10
  72. package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -1
  73. package/dist/components/atoms/Skeleton/Wave.js +17 -12
  74. package/dist/components/atoms/Skeleton/Wave.js.map +1 -1
  75. package/dist/components/atoms/Skeleton/animation.js +3 -1
  76. package/dist/components/atoms/Skeleton/animation.js.map +1 -1
  77. package/dist/components/atoms/Skeleton/index.js +15 -5
  78. package/dist/components/atoms/Skeleton/index.js.map +1 -1
  79. package/dist/components/atoms/Skeleton/styled.js +25 -15
  80. package/dist/components/atoms/Skeleton/styled.js.map +1 -1
  81. package/dist/components/atoms/Skeleton/types.js +3 -1
  82. package/dist/components/atoms/SnappingSlider/SnappingSlider.js +11 -8
  83. package/dist/components/atoms/SnappingSlider/SnappingSlider.js.map +1 -1
  84. package/dist/components/atoms/SnappingSlider/index.js +15 -5
  85. package/dist/components/atoms/SnappingSlider/index.js.map +1 -1
  86. package/dist/components/atoms/Tag/Tag.js +8 -5
  87. package/dist/components/atoms/Tag/Tag.js.map +1 -1
  88. package/dist/components/atoms/Tag/index.js +15 -5
  89. package/dist/components/atoms/Tag/index.js.map +1 -1
  90. package/dist/components/atoms/Text/Text.js +8 -5
  91. package/dist/components/atoms/Text/Text.js.map +1 -1
  92. package/dist/components/atoms/Text/index.js +15 -5
  93. package/dist/components/atoms/Text/index.js.map +1 -1
  94. package/dist/components/atoms/Text/styled.js +16 -12
  95. package/dist/components/atoms/Text/styled.js.map +1 -1
  96. package/dist/components/atoms/TextArea/TextArea.js +30 -27
  97. package/dist/components/atoms/TextArea/TextArea.js.map +1 -1
  98. package/dist/components/atoms/TextArea/index.js +15 -5
  99. package/dist/components/atoms/TextArea/index.js.map +1 -1
  100. package/dist/components/atoms/TextArea/styled.js +3 -1
  101. package/dist/components/atoms/TextArea/styled.js.map +1 -1
  102. package/dist/components/molecules/Calendar/Calendar.js +9 -6
  103. package/dist/components/molecules/Calendar/Calendar.js.map +1 -1
  104. package/dist/components/molecules/Calendar/index.js +9 -4
  105. package/dist/components/molecules/Calendar/index.js.map +1 -1
  106. package/dist/components/molecules/DatePicker/DatePicker.js +16 -12
  107. package/dist/components/molecules/DatePicker/DatePicker.js.map +1 -1
  108. package/dist/components/molecules/DatePicker/index.js +15 -5
  109. package/dist/components/molecules/DatePicker/index.js.map +1 -1
  110. package/dist/components/molecules/DatePicker/styled.js +13 -6
  111. package/dist/components/molecules/DatePicker/styled.js.map +1 -1
  112. package/dist/components/molecules/DateTimePicker/DateTimePicker.js +14 -10
  113. package/dist/components/molecules/DateTimePicker/DateTimePicker.js.map +1 -1
  114. package/dist/components/molecules/DateTimePicker/index.js +15 -5
  115. package/dist/components/molecules/DateTimePicker/index.js.map +1 -1
  116. package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js +9 -6
  117. package/dist/components/molecules/DateTimeSelector/DateTimeSelector.js.map +1 -1
  118. package/dist/components/molecules/DateTimeSelector/index.js +9 -4
  119. package/dist/components/molecules/DateTimeSelector/index.js.map +1 -1
  120. package/dist/components/molecules/Grid/Grid.js +19 -13
  121. package/dist/components/molecules/Grid/Grid.js.map +1 -1
  122. package/dist/components/molecules/Grid/Item/Item.js +28 -25
  123. package/dist/components/molecules/Grid/Item/Item.js.map +1 -1
  124. package/dist/components/molecules/Grid/Item/index.js +15 -5
  125. package/dist/components/molecules/Grid/Item/index.js.map +1 -1
  126. package/dist/components/molecules/Grid/index.js +15 -6
  127. package/dist/components/molecules/Grid/index.js.map +1 -1
  128. package/dist/components/molecules/IconTextButton/IconTextButton.js +13 -10
  129. package/dist/components/molecules/IconTextButton/IconTextButton.js.map +1 -1
  130. package/dist/components/molecules/IconTextButton/TextComponent.js +17 -12
  131. package/dist/components/molecules/IconTextButton/TextComponent.js.map +1 -1
  132. package/dist/components/molecules/IconTextButton/index.js +15 -5
  133. package/dist/components/molecules/IconTextButton/index.js.map +1 -1
  134. package/dist/components/molecules/IconTextButton/styled.js +31 -29
  135. package/dist/components/molecules/IconTextButton/styled.js.map +1 -1
  136. package/dist/components/molecules/InputPassword/InputPassword.js +8 -5
  137. package/dist/components/molecules/InputPassword/InputPassword.js.map +1 -1
  138. package/dist/components/molecules/InputPassword/index.js +15 -5
  139. package/dist/components/molecules/InputPassword/index.js.map +1 -1
  140. package/dist/components/molecules/LabeledSwitch/LabelComponent.js +16 -11
  141. package/dist/components/molecules/LabeledSwitch/LabelComponent.js.map +1 -1
  142. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js +14 -11
  143. package/dist/components/molecules/LabeledSwitch/LabeledSwitch.js.map +1 -1
  144. package/dist/components/molecules/LabeledSwitch/index.js +15 -5
  145. package/dist/components/molecules/LabeledSwitch/index.js.map +1 -1
  146. package/dist/components/molecules/LabeledSwitch/styled.js +15 -18
  147. package/dist/components/molecules/LabeledSwitch/styled.js.map +1 -1
  148. package/dist/components/molecules/Select/Modal.js +43 -36
  149. package/dist/components/molecules/Select/Modal.js.map +1 -1
  150. package/dist/components/molecules/Select/Select.js +36 -33
  151. package/dist/components/molecules/Select/Select.js.map +1 -1
  152. package/dist/components/molecules/Select/index.js +15 -5
  153. package/dist/components/molecules/Select/index.js.map +1 -1
  154. package/dist/components/molecules/Select/styled.js +77 -84
  155. package/dist/components/molecules/Select/styled.js.map +1 -1
  156. package/dist/components/molecules/Snackbar/Snackbar.js +12 -9
  157. package/dist/components/molecules/Snackbar/Snackbar.js.map +1 -1
  158. package/dist/components/molecules/Snackbar/index.js +15 -5
  159. package/dist/components/molecules/Snackbar/index.js.map +1 -1
  160. package/dist/components/molecules/Snackbar/styled.js +18 -9
  161. package/dist/components/molecules/Snackbar/styled.js.map +1 -1
  162. package/dist/index.js +321 -79
  163. package/dist/index.js.map +1 -1
  164. package/dist/utils/date.js +3 -1
  165. package/dist/utils/date.js.map +1 -1
  166. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/Button/index.ts"],"sourcesContent":["export { Button, ButtonNativeProps } from './Button';\nexport { Error, Loading, Success } from './States';\n"],"mappings":";;;;;AAAA;;;;;AACA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/Button/index.ts"],"sourcesContent":["export { Button, ButtonNativeProps } from './Button';\nexport { Error, Loading, Success } from './States';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.default = void 0;
5
7
 
6
8
  var _reactCore = require("@tecsinapse/react-core");
@@ -1 +1 @@
1
- {"version":3,"file":"GroupButtonOption.js","names":["GroupButtonOption","props","Text"],"sources":["../../../../src/components/atoms/GroupButton/GroupButtonOption.tsx"],"sourcesContent":["import {\n GroupButtonOption as CoreGroupButtonOption,\n GroupButtonOptionProps,\n} from '@tecsinapse/react-core';\nimport React from 'react';\nimport { Text } from '../Text';\n\nconst GroupButtonOption = (props: GroupButtonOptionProps): JSX.Element => {\n return <CoreGroupButtonOption {...props} TextComponent={Text} />;\n};\n\nexport default GroupButtonOption;\n"],"mappings":";;;;;AAAA;;AAIA;;AACA;;;;;;AAEA,MAAMA,iBAAiB,GAAIC,KAAD,IAAgD;EACxE,OAAO,6BAAC,4BAAD,eAA2BA,KAA3B;IAAkC,aAAa,EAAEC;EAAjD,GAAP;AACD,CAFD;;eAIeF,iB"}
1
+ {"version":3,"file":"GroupButtonOption.js","names":["GroupButtonOption","props","Text"],"sources":["../../../../src/components/atoms/GroupButton/GroupButtonOption.tsx"],"sourcesContent":["import {\n GroupButtonOption as CoreGroupButtonOption,\n GroupButtonOptionProps,\n} from '@tecsinapse/react-core';\nimport React from 'react';\nimport { Text } from '../Text';\n\nconst GroupButtonOption = (props: GroupButtonOptionProps): JSX.Element => {\n return <CoreGroupButtonOption {...props} TextComponent={Text} />;\n};\n\nexport default GroupButtonOption;\n"],"mappings":";;;;;;;AAAA;;AAIA;;AACA;;;;;;AAEA,MAAMA,iBAAiB,GAAIC,KAAD,IAAgD;EACxE,OAAO,6BAAC,4BAAD,eAA2BA,KAA3B;IAAkC,aAAa,EAAEC;EAAjD,GAAP;AACD,CAFD;;eAIeF,iB"}
@@ -1,11 +1,16 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
4
- exports.GroupButtonOption = void 0;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "GroupButtonOption", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _GroupButtonOption.default;
10
+ }
11
+ });
5
12
 
6
13
  var _GroupButtonOption = _interopRequireDefault(require("./GroupButtonOption"));
7
14
 
8
- exports.GroupButtonOption = _GroupButtonOption.default;
9
-
10
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/GroupButton/index.ts"],"sourcesContent":["export { default as GroupButtonOption } from './GroupButtonOption';\n"],"mappings":";;;;;AAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/GroupButton/index.ts"],"sourcesContent":["export { default as GroupButtonOption } from './GroupButtonOption';\n"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.default = void 0;
5
7
 
6
8
  var _styled = require("./styled");
@@ -15,23 +17,24 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
15
17
 
16
18
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
19
 
18
- const Header = ({
19
- rightButton,
20
- leftButton,
21
- children,
22
- ...rest
23
- }) => {
20
+ const Header = _ref => {
21
+ let {
22
+ rightButton,
23
+ leftButton,
24
+ children,
25
+ ...rest
26
+ } = _ref;
24
27
  return React.createElement(_styled.StyledView, rest, leftButton ? React.createElement(_styled.FloatingButton, _extends({}, leftButton, {
25
- variant: (leftButton == null ? void 0 : leftButton.variant) || 'filled',
26
- color: (leftButton == null ? void 0 : leftButton.color) || 'primary',
27
- size: (leftButton == null ? void 0 : leftButton.size) || 'small'
28
- }), (leftButton == null ? void 0 : leftButton.icon) && React.createElement(_reactCore.Icon, leftButton == null ? void 0 : leftButton.icon)) : React.createElement(_styled.Dummy, {
28
+ variant: (leftButton === null || leftButton === void 0 ? void 0 : leftButton.variant) || 'filled',
29
+ color: (leftButton === null || leftButton === void 0 ? void 0 : leftButton.color) || 'primary',
30
+ size: (leftButton === null || leftButton === void 0 ? void 0 : leftButton.size) || 'small'
31
+ }), (leftButton === null || leftButton === void 0 ? void 0 : leftButton.icon) && React.createElement(_reactCore.Icon, leftButton === null || leftButton === void 0 ? void 0 : leftButton.icon)) : React.createElement(_styled.Dummy, {
29
32
  disabled: true
30
33
  }), children, rightButton ? React.createElement(_styled.FloatingButton, _extends({}, rightButton, {
31
- variant: (rightButton == null ? void 0 : rightButton.variant) || 'filled',
32
- color: (rightButton == null ? void 0 : rightButton.color) || 'primary',
33
- size: (rightButton == null ? void 0 : rightButton.size) || 'small'
34
- }), (rightButton == null ? void 0 : rightButton.icon) && React.createElement(_reactCore.Icon, rightButton == null ? void 0 : rightButton.icon)) : React.createElement(_styled.Dummy, {
34
+ variant: (rightButton === null || rightButton === void 0 ? void 0 : rightButton.variant) || 'filled',
35
+ color: (rightButton === null || rightButton === void 0 ? void 0 : rightButton.color) || 'primary',
36
+ size: (rightButton === null || rightButton === void 0 ? void 0 : rightButton.size) || 'small'
37
+ }), (rightButton === null || rightButton === void 0 ? void 0 : rightButton.icon) && React.createElement(_reactCore.Icon, rightButton === null || rightButton === void 0 ? void 0 : rightButton.icon)) : React.createElement(_styled.Dummy, {
35
38
  disabled: true
36
39
  }));
37
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Header.js","names":["Header","rightButton","leftButton","children","rest","variant","color","size","icon"],"sources":["../../../../src/components/atoms/Header/Header.tsx"],"sourcesContent":["import { ViewProps } from 'react-native';\nimport { StyledView, FloatingButton, Dummy } from './styled';\nimport { ButtonProps, Icon, IconProps } from '@tecsinapse/react-core';\nimport * as React from 'react';\n\ntype Attachable = ButtonProps & {\n icon: IconProps;\n};\n\nexport interface HeaderProps extends ViewProps {\n rightButton?: Attachable;\n leftButton?: Attachable;\n}\n\nconst Header: React.FC<HeaderProps> = ({\n rightButton,\n leftButton,\n children,\n ...rest\n}) => {\n return (\n <StyledView {...rest}>\n {leftButton ? (\n <FloatingButton\n {...leftButton}\n variant={leftButton?.variant || 'filled'}\n color={leftButton?.color || 'primary'}\n size={leftButton?.size || 'small'}\n >\n {leftButton?.icon && <Icon {...leftButton?.icon} />}\n </FloatingButton>\n ) : (\n <Dummy disabled />\n )}\n {children}\n {rightButton ? (\n <FloatingButton\n {...rightButton}\n variant={rightButton?.variant || 'filled'}\n color={rightButton?.color || 'primary'}\n size={rightButton?.size || 'small'}\n >\n {rightButton?.icon && <Icon {...rightButton?.icon} />}\n </FloatingButton>\n ) : (\n <Dummy disabled />\n )}\n </StyledView>\n );\n};\n\nexport default Header;\n"],"mappings":";;;;;AACA;;AACA;;AACA;;;;;;;;AAWA,MAAMA,MAA6B,GAAG,CAAC;EACrCC,WADqC;EAErCC,UAFqC;EAGrCC,QAHqC;EAIrC,GAAGC;AAJkC,CAAD,KAKhC;EACJ,OACE,oBAAC,kBAAD,EAAgBA,IAAhB,EACGF,UAAU,GACT,oBAAC,sBAAD,eACMA,UADN;IAEE,OAAO,EAAE,CAAAA,UAAU,QAAV,YAAAA,UAAU,CAAEG,OAAZ,KAAuB,QAFlC;IAGE,KAAK,EAAE,CAAAH,UAAU,QAAV,YAAAA,UAAU,CAAEI,KAAZ,KAAqB,SAH9B;IAIE,IAAI,EAAE,CAAAJ,UAAU,QAAV,YAAAA,UAAU,CAAEK,IAAZ,KAAoB;EAJ5B,IAMG,CAAAL,UAAU,QAAV,YAAAA,UAAU,CAAEM,IAAZ,KAAoB,oBAAC,eAAD,EAAUN,UAAV,oBAAUA,UAAU,CAAEM,IAAtB,CANvB,CADS,GAUT,oBAAC,aAAD;IAAO,QAAQ;EAAf,EAXJ,EAaGL,QAbH,EAcGF,WAAW,GACV,oBAAC,sBAAD,eACMA,WADN;IAEE,OAAO,EAAE,CAAAA,WAAW,QAAX,YAAAA,WAAW,CAAEI,OAAb,KAAwB,QAFnC;IAGE,KAAK,EAAE,CAAAJ,WAAW,QAAX,YAAAA,WAAW,CAAEK,KAAb,KAAsB,SAH/B;IAIE,IAAI,EAAE,CAAAL,WAAW,QAAX,YAAAA,WAAW,CAAEM,IAAb,KAAqB;EAJ7B,IAMG,CAAAN,WAAW,QAAX,YAAAA,WAAW,CAAEO,IAAb,KAAqB,oBAAC,eAAD,EAAUP,WAAV,oBAAUA,WAAW,CAAEO,IAAvB,CANxB,CADU,GAUV,oBAAC,aAAD;IAAO,QAAQ;EAAf,EAxBJ,CADF;AA6BD,CAnCD;;eAqCeR,M"}
1
+ {"version":3,"file":"Header.js","names":["Header","rightButton","leftButton","children","rest","variant","color","size","icon"],"sources":["../../../../src/components/atoms/Header/Header.tsx"],"sourcesContent":["import { ViewProps } from 'react-native';\nimport { StyledView, FloatingButton, Dummy } from './styled';\nimport { ButtonProps, Icon, IconProps } from '@tecsinapse/react-core';\nimport * as React from 'react';\n\ntype Attachable = ButtonProps & {\n icon: IconProps;\n};\n\nexport interface HeaderProps extends ViewProps {\n rightButton?: Attachable;\n leftButton?: Attachable;\n}\n\nconst Header: React.FC<HeaderProps> = ({\n rightButton,\n leftButton,\n children,\n ...rest\n}) => {\n return (\n <StyledView {...rest}>\n {leftButton ? (\n <FloatingButton\n {...leftButton}\n variant={leftButton?.variant || 'filled'}\n color={leftButton?.color || 'primary'}\n size={leftButton?.size || 'small'}\n >\n {leftButton?.icon && <Icon {...leftButton?.icon} />}\n </FloatingButton>\n ) : (\n <Dummy disabled />\n )}\n {children}\n {rightButton ? (\n <FloatingButton\n {...rightButton}\n variant={rightButton?.variant || 'filled'}\n color={rightButton?.color || 'primary'}\n size={rightButton?.size || 'small'}\n >\n {rightButton?.icon && <Icon {...rightButton?.icon} />}\n </FloatingButton>\n ) : (\n <Dummy disabled />\n )}\n </StyledView>\n );\n};\n\nexport default Header;\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;;;;;;;AAWA,MAAMA,MAA6B,GAAG,QAKhC;EAAA,IALiC;IACrCC,WADqC;IAErCC,UAFqC;IAGrCC,QAHqC;IAIrC,GAAGC;EAJkC,CAKjC;EACJ,OACE,oBAAC,kBAAD,EAAgBA,IAAhB,EACGF,UAAU,GACT,oBAAC,sBAAD,eACMA,UADN;IAEE,OAAO,EAAE,CAAAA,UAAU,SAAV,IAAAA,UAAU,WAAV,YAAAA,UAAU,CAAEG,OAAZ,KAAuB,QAFlC;IAGE,KAAK,EAAE,CAAAH,UAAU,SAAV,IAAAA,UAAU,WAAV,YAAAA,UAAU,CAAEI,KAAZ,KAAqB,SAH9B;IAIE,IAAI,EAAE,CAAAJ,UAAU,SAAV,IAAAA,UAAU,WAAV,YAAAA,UAAU,CAAEK,IAAZ,KAAoB;EAJ5B,IAMG,CAAAL,UAAU,SAAV,IAAAA,UAAU,WAAV,YAAAA,UAAU,CAAEM,IAAZ,KAAoB,oBAAC,eAAD,EAAUN,UAAV,aAAUA,UAAV,uBAAUA,UAAU,CAAEM,IAAtB,CANvB,CADS,GAUT,oBAAC,aAAD;IAAO,QAAQ;EAAf,EAXJ,EAaGL,QAbH,EAcGF,WAAW,GACV,oBAAC,sBAAD,eACMA,WADN;IAEE,OAAO,EAAE,CAAAA,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEI,OAAb,KAAwB,QAFnC;IAGE,KAAK,EAAE,CAAAJ,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEK,KAAb,KAAsB,SAH/B;IAIE,IAAI,EAAE,CAAAL,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEM,IAAb,KAAqB;EAJ7B,IAMG,CAAAN,WAAW,SAAX,IAAAA,WAAW,WAAX,YAAAA,WAAW,CAAEO,IAAb,KAAqB,oBAAC,eAAD,EAAUP,WAAV,aAAUA,WAAV,uBAAUA,WAAW,CAAEO,IAAvB,CANxB,CADU,GAUV,oBAAC,aAAD;IAAO,QAAQ;EAAf,EAxBJ,CADF;AA6BD,CAnCD;;eAqCeR,M"}
@@ -1,13 +1,23 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
4
- exports.HeaderProps = exports.Header = void 0;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Header", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Header.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "HeaderProps", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _Header.HeaderProps;
16
+ }
17
+ });
5
18
 
6
19
  var _Header = _interopRequireWildcard(require("./Header"));
7
20
 
8
- exports.Header = _Header.default;
9
- exports.HeaderProps = _Header.HeaderProps;
10
-
11
21
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
22
 
13
23
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/Header/index.ts"],"sourcesContent":["export { default as Header, HeaderProps } from './Header';\n"],"mappings":";;;;;AAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/Header/index.ts"],"sourcesContent":["export { default as Header, HeaderProps } from './Header';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA"}
@@ -1,30 +1,30 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.StyledView = exports.FloatingButton = exports.Dummy = void 0;
5
7
 
6
8
  var _native = _interopRequireDefault(require("@emotion/native"));
7
9
 
8
10
  var _reactCore = require("@tecsinapse/react-core");
9
11
 
12
+ var _templateObject, _templateObject2, _templateObject3;
13
+
10
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
15
 
12
- const StyledView = _native.default.View`
13
- flex-direction: row;
14
- justify-content: space-between;
15
- align-items: center;
16
- padding: ${({
17
- theme
18
- }) => theme.spacing.deca};
19
- width: 100%;
20
- `;
16
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
17
+
18
+ const StyledView = _native.default.View(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: ", ";\n width: 100%;\n"])), _ref => {
19
+ let {
20
+ theme
21
+ } = _ref;
22
+ return theme.spacing.deca;
23
+ });
24
+
21
25
  exports.StyledView = StyledView;
22
- const FloatingButton = (0, _native.default)(_reactCore.Button)`
23
- aspect-ratio: 1;
24
- `;
26
+ const FloatingButton = (0, _native.default)(_reactCore.Button)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n aspect-ratio: 1;\n"])));
25
27
  exports.FloatingButton = FloatingButton;
26
- const Dummy = (0, _native.default)(FloatingButton)`
27
- background-color: rgba(0, 0, 0, 0);
28
- `;
28
+ const Dummy = (0, _native.default)(FloatingButton)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: rgba(0, 0, 0, 0);\n"])));
29
29
  exports.Dummy = Dummy;
30
30
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["StyledView","styled","View","theme","spacing","deca","FloatingButton","Button","Dummy"],"sources":["../../../../src/components/atoms/Header/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\nimport { Button, ButtonProps, StyleProps } from '@tecsinapse/react-core';\n\nexport const StyledView = styled.View<Partial<StyleProps>>`\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: ${({ theme }) => theme.spacing.deca};\n width: 100%;\n`;\n\nexport const FloatingButton = styled(Button)<ButtonProps & Partial<StyleProps>>`\n aspect-ratio: 1;\n`;\n\nexport const Dummy = styled(FloatingButton)`\n background-color: rgba(0, 0, 0, 0);\n`;\n"],"mappings":";;;;;AAAA;;AACA;;;;AAEO,MAAMA,UAAU,GAAGC,eAAA,CAAOC,IAA0B;AAC3D;AACA;AACA;AACA,aAAa,CAAC;EAAEC;AAAF,CAAD,KAAeA,KAAK,CAACC,OAAN,CAAcC,IAAK;AAC/C;AACA,CANO;;AAQA,MAAMC,cAAc,GAAG,IAAAL,eAAA,EAAOM,iBAAP,CAAkD;AAChF;AACA,CAFO;;AAIA,MAAMC,KAAK,GAAG,IAAAP,eAAA,EAAOK,cAAP,CAAuB;AAC5C;AACA,CAFO"}
1
+ {"version":3,"file":"styled.js","names":["StyledView","styled","View","theme","spacing","deca","FloatingButton","Button","Dummy"],"sources":["../../../../src/components/atoms/Header/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\nimport { Button, ButtonProps, StyleProps } from '@tecsinapse/react-core';\n\nexport const StyledView = styled.View<Partial<StyleProps>>`\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: ${({ theme }) => theme.spacing.deca};\n width: 100%;\n`;\n\nexport const FloatingButton = styled(Button)<ButtonProps & Partial<StyleProps>>`\n aspect-ratio: 1;\n`;\n\nexport const Dummy = styled(FloatingButton)`\n background-color: rgba(0, 0, 0, 0);\n`;\n"],"mappings":";;;;;;;AAAA;;AACA;;;;;;;;AAEO,MAAMA,UAAU,GAAGC,eAAA,CAAOC,IAAV,6LAIV;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,OAAeA,KAAK,CAACC,OAAN,CAAcC,IAA7B;AAAA,CAJU,CAAhB;;;AAQA,MAAMC,cAAc,GAAG,IAAAL,eAAA,EAAOM,iBAAP,CAAH,6FAApB;;AAIA,MAAMC,KAAK,GAAG,IAAAP,eAAA,EAAOK,cAAP,CAAH,gHAAX"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.default = void 0;
5
7
 
6
8
  var _reactCore = require("@tecsinapse/react-core");
@@ -17,31 +19,33 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
19
 
18
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
21
 
20
- const Input = _react.default.forwardRef(({
21
- label,
22
- labelColor,
23
- labelColorVariant,
24
- labelColorTone,
25
- labelTypography,
26
- labelStack,
27
- labelWeight,
28
- leftComponent,
29
- rightComponent,
30
- disabled,
31
- borderColor,
32
- borderColorGradation,
33
- inputFontStack = 'default',
34
- inputFontWeight = 'bold',
35
- inputContainerStyle,
36
- variant = 'default',
37
- hintComponent,
38
- hint,
39
- onFocus,
40
- onBlur,
41
- value,
42
- placeholder,
43
- ...rest
44
- }, ref) => {
22
+ const Input = _react.default.forwardRef((_ref, ref) => {
23
+ let {
24
+ label,
25
+ labelColor,
26
+ labelColorVariant,
27
+ labelColorTone,
28
+ labelTypography,
29
+ labelStack,
30
+ labelWeight,
31
+ leftComponent,
32
+ rightComponent,
33
+ disabled,
34
+ borderColor,
35
+ borderColorGradation,
36
+ inputFontStack = 'default',
37
+ inputFontWeight = 'bold',
38
+ inputContainerStyle,
39
+ variant = 'default',
40
+ hintComponent,
41
+ hint,
42
+ onFocus,
43
+ onBlur,
44
+ value,
45
+ placeholder,
46
+ ...rest
47
+ } = _ref;
48
+
45
49
  const _hint = hintComponent || _react.default.createElement(_reactCore.Hint, {
46
50
  TextComponent: _Text.Text,
47
51
  text: hint,
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","names":["Input","React","forwardRef","label","labelColor","labelColorVariant","labelColorTone","labelTypography","labelStack","labelWeight","leftComponent","rightComponent","disabled","borderColor","borderColorGradation","inputFontStack","inputFontWeight","inputContainerStyle","variant","hintComponent","hint","onFocus","onBlur","value","placeholder","rest","ref","_hint","Text","focused","handleBlur","handleFocus","useInputFocus","internalStyle","minHeight","RFValue","onlyLabel","undefined","displayName"],"sources":["../../../../src/components/atoms/Input/Input.tsx"],"sourcesContent":["import {\n FontStackType,\n FontWeightType,\n Hint,\n InputContainer,\n InputContainerProps,\n InputElementProps,\n RFValue,\n useInputFocus,\n} from '@tecsinapse/react-core';\nimport React from 'react';\nimport { StyleProp, TextInput, View, ViewStyle } from 'react-native';\nimport { Text } from '../Text';\nimport { StyledNativeInput } from './styled';\n\nexport interface InputNativeProps\n extends Omit<InputElementProps, 'style'>,\n InputContainerProps {\n inputFontStack?: FontStackType;\n inputFontWeight?: FontWeightType;\n}\n\nconst Input = React.forwardRef<TextInput, InputNativeProps>(\n (\n {\n label,\n labelColor,\n labelColorVariant,\n labelColorTone,\n labelTypography,\n labelStack,\n labelWeight,\n leftComponent,\n rightComponent,\n disabled,\n borderColor,\n borderColorGradation,\n inputFontStack = 'default',\n inputFontWeight = 'bold',\n inputContainerStyle,\n variant = 'default',\n hintComponent,\n hint,\n onFocus,\n onBlur,\n value,\n placeholder,\n ...rest\n },\n ref\n ) => {\n const _hint = hintComponent || (\n <Hint TextComponent={Text} text={hint} variant={variant} />\n );\n const { focused, handleBlur, handleFocus } = useInputFocus(\n onFocus,\n onBlur,\n !disabled\n );\n\n const internalStyle: StyleProp<ViewStyle> = {\n minHeight: RFValue(50),\n ...{ inputContainerStyle },\n };\n const onlyLabel = label && !placeholder;\n\n return (\n <View>\n <InputContainer\n label={value ? label : undefined}\n labelColor={labelColor}\n labelColorVariant={labelColorVariant}\n labelColorTone={labelColorTone}\n labelTypography={labelTypography}\n labelStack={labelStack}\n labelWeight={labelWeight}\n LabelComponent={Text}\n leftComponent={leftComponent}\n rightComponent={rightComponent}\n borderColor={borderColor}\n borderColorGradation={borderColorGradation}\n inputContainerStyle={internalStyle}\n focused={focused}\n disabled={disabled}\n variant={variant}\n >\n <StyledNativeInput\n {...rest}\n placeholder={onlyLabel ? label : placeholder}\n value={value}\n ref={ref}\n fontStack={inputFontStack}\n fontWeight={inputFontWeight}\n disabled={disabled}\n onFocus={handleFocus}\n onBlur={handleBlur}\n />\n </InputContainer>\n {hint && _hint}\n </View>\n );\n }\n);\n\nInput.displayName = 'Input';\n\nexport default Input;\n"],"mappings":";;;;;AAAA;;AAUA;;AACA;;AACA;;AACA;;;;;;AASA,MAAMA,KAAK,GAAGC,cAAA,CAAMC,UAAN,CACZ,CACE;EACEC,KADF;EAEEC,UAFF;EAGEC,iBAHF;EAIEC,cAJF;EAKEC,eALF;EAMEC,UANF;EAOEC,WAPF;EAQEC,aARF;EASEC,cATF;EAUEC,QAVF;EAWEC,WAXF;EAYEC,oBAZF;EAaEC,cAAc,GAAG,SAbnB;EAcEC,eAAe,GAAG,MAdpB;EAeEC,mBAfF;EAgBEC,OAAO,GAAG,SAhBZ;EAiBEC,aAjBF;EAkBEC,IAlBF;EAmBEC,OAnBF;EAoBEC,MApBF;EAqBEC,KArBF;EAsBEC,WAtBF;EAuBE,GAAGC;AAvBL,CADF,EA0BEC,GA1BF,KA2BK;EACH,MAAMC,KAAK,GAAGR,aAAa,IACzB,6BAAC,eAAD;IAAM,aAAa,EAAES,UAArB;IAA2B,IAAI,EAAER,IAAjC;IAAuC,OAAO,EAAEF;EAAhD,EADF;;EAGA,MAAM;IAAEW,OAAF;IAAWC,UAAX;IAAuBC;EAAvB,IAAuC,IAAAC,wBAAA,EAC3CX,OAD2C,EAE3CC,MAF2C,EAG3C,CAACV,QAH0C,CAA7C;EAMA,MAAMqB,aAAmC,GAAG;IAC1CC,SAAS,EAAE,IAAAC,kBAAA,EAAQ,EAAR,CAD+B;IAE1C,GAAG;MAAElB;IAAF;EAFuC,CAA5C;EAIA,MAAMmB,SAAS,GAAGjC,KAAK,IAAI,CAACqB,WAA5B;EAEA,OACE,6BAAC,iBAAD,QACE,6BAAC,yBAAD;IACE,KAAK,EAAED,KAAK,GAAGpB,KAAH,GAAWkC,SADzB;IAEE,UAAU,EAAEjC,UAFd;IAGE,iBAAiB,EAAEC,iBAHrB;IAIE,cAAc,EAAEC,cAJlB;IAKE,eAAe,EAAEC,eALnB;IAME,UAAU,EAAEC,UANd;IAOE,WAAW,EAAEC,WAPf;IAQE,cAAc,EAAEmB,UARlB;IASE,aAAa,EAAElB,aATjB;IAUE,cAAc,EAAEC,cAVlB;IAWE,WAAW,EAAEE,WAXf;IAYE,oBAAoB,EAAEC,oBAZxB;IAaE,mBAAmB,EAAEmB,aAbvB;IAcE,OAAO,EAAEJ,OAdX;IAeE,QAAQ,EAAEjB,QAfZ;IAgBE,OAAO,EAAEM;EAhBX,GAkBE,6BAAC,yBAAD,eACMO,IADN;IAEE,WAAW,EAAEW,SAAS,GAAGjC,KAAH,GAAWqB,WAFnC;IAGE,KAAK,EAAED,KAHT;IAIE,GAAG,EAAEG,GAJP;IAKE,SAAS,EAAEX,cALb;IAME,UAAU,EAAEC,eANd;IAOE,QAAQ,EAAEJ,QAPZ;IAQE,OAAO,EAAEmB,WARX;IASE,MAAM,EAAED;EATV,GAlBF,CADF,EA+BGV,IAAI,IAAIO,KA/BX,CADF;AAmCD,CA/EW,CAAd;;AAkFA3B,KAAK,CAACsC,WAAN,GAAoB,OAApB;eAEetC,K"}
1
+ {"version":3,"file":"Input.js","names":["Input","React","forwardRef","ref","label","labelColor","labelColorVariant","labelColorTone","labelTypography","labelStack","labelWeight","leftComponent","rightComponent","disabled","borderColor","borderColorGradation","inputFontStack","inputFontWeight","inputContainerStyle","variant","hintComponent","hint","onFocus","onBlur","value","placeholder","rest","_hint","Text","focused","handleBlur","handleFocus","useInputFocus","internalStyle","minHeight","RFValue","onlyLabel","undefined","displayName"],"sources":["../../../../src/components/atoms/Input/Input.tsx"],"sourcesContent":["import {\n FontStackType,\n FontWeightType,\n Hint,\n InputContainer,\n InputContainerProps,\n InputElementProps,\n RFValue,\n useInputFocus,\n} from '@tecsinapse/react-core';\nimport React from 'react';\nimport { StyleProp, TextInput, View, ViewStyle } from 'react-native';\nimport { Text } from '../Text';\nimport { StyledNativeInput } from './styled';\n\nexport interface InputNativeProps\n extends Omit<InputElementProps, 'style'>,\n InputContainerProps {\n inputFontStack?: FontStackType;\n inputFontWeight?: FontWeightType;\n}\n\nconst Input = React.forwardRef<TextInput, InputNativeProps>(\n (\n {\n label,\n labelColor,\n labelColorVariant,\n labelColorTone,\n labelTypography,\n labelStack,\n labelWeight,\n leftComponent,\n rightComponent,\n disabled,\n borderColor,\n borderColorGradation,\n inputFontStack = 'default',\n inputFontWeight = 'bold',\n inputContainerStyle,\n variant = 'default',\n hintComponent,\n hint,\n onFocus,\n onBlur,\n value,\n placeholder,\n ...rest\n },\n ref\n ) => {\n const _hint = hintComponent || (\n <Hint TextComponent={Text} text={hint} variant={variant} />\n );\n const { focused, handleBlur, handleFocus } = useInputFocus(\n onFocus,\n onBlur,\n !disabled\n );\n\n const internalStyle: StyleProp<ViewStyle> = {\n minHeight: RFValue(50),\n ...{ inputContainerStyle },\n };\n const onlyLabel = label && !placeholder;\n\n return (\n <View>\n <InputContainer\n label={value ? label : undefined}\n labelColor={labelColor}\n labelColorVariant={labelColorVariant}\n labelColorTone={labelColorTone}\n labelTypography={labelTypography}\n labelStack={labelStack}\n labelWeight={labelWeight}\n LabelComponent={Text}\n leftComponent={leftComponent}\n rightComponent={rightComponent}\n borderColor={borderColor}\n borderColorGradation={borderColorGradation}\n inputContainerStyle={internalStyle}\n focused={focused}\n disabled={disabled}\n variant={variant}\n >\n <StyledNativeInput\n {...rest}\n placeholder={onlyLabel ? label : placeholder}\n value={value}\n ref={ref}\n fontStack={inputFontStack}\n fontWeight={inputFontWeight}\n disabled={disabled}\n onFocus={handleFocus}\n onBlur={handleBlur}\n />\n </InputContainer>\n {hint && _hint}\n </View>\n );\n }\n);\n\nInput.displayName = 'Input';\n\nexport default Input;\n"],"mappings":";;;;;;;AAAA;;AAUA;;AACA;;AACA;;AACA;;;;;;AASA,MAAMA,KAAK,GAAGC,cAAA,CAAMC,UAAN,CACZ,OA0BEC,GA1BF,KA2BK;EAAA,IA1BH;IACEC,KADF;IAEEC,UAFF;IAGEC,iBAHF;IAIEC,cAJF;IAKEC,eALF;IAMEC,UANF;IAOEC,WAPF;IAQEC,aARF;IASEC,cATF;IAUEC,QAVF;IAWEC,WAXF;IAYEC,oBAZF;IAaEC,cAAc,GAAG,SAbnB;IAcEC,eAAe,GAAG,MAdpB;IAeEC,mBAfF;IAgBEC,OAAO,GAAG,SAhBZ;IAiBEC,aAjBF;IAkBEC,IAlBF;IAmBEC,OAnBF;IAoBEC,MApBF;IAqBEC,KArBF;IAsBEC,WAtBF;IAuBE,GAAGC;EAvBL,CA0BG;;EACH,MAAMC,KAAK,GAAGP,aAAa,IACzB,6BAAC,eAAD;IAAM,aAAa,EAAEQ,UAArB;IAA2B,IAAI,EAAEP,IAAjC;IAAuC,OAAO,EAAEF;EAAhD,EADF;;EAGA,MAAM;IAAEU,OAAF;IAAWC,UAAX;IAAuBC;EAAvB,IAAuC,IAAAC,wBAAA,EAC3CV,OAD2C,EAE3CC,MAF2C,EAG3C,CAACV,QAH0C,CAA7C;EAMA,MAAMoB,aAAmC,GAAG;IAC1CC,SAAS,EAAE,IAAAC,kBAAA,EAAQ,EAAR,CAD+B;IAE1C,GAAG;MAAEjB;IAAF;EAFuC,CAA5C;EAIA,MAAMkB,SAAS,GAAGhC,KAAK,IAAI,CAACqB,WAA5B;EAEA,OACE,6BAAC,iBAAD,QACE,6BAAC,yBAAD;IACE,KAAK,EAAED,KAAK,GAAGpB,KAAH,GAAWiC,SADzB;IAEE,UAAU,EAAEhC,UAFd;IAGE,iBAAiB,EAAEC,iBAHrB;IAIE,cAAc,EAAEC,cAJlB;IAKE,eAAe,EAAEC,eALnB;IAME,UAAU,EAAEC,UANd;IAOE,WAAW,EAAEC,WAPf;IAQE,cAAc,EAAEkB,UARlB;IASE,aAAa,EAAEjB,aATjB;IAUE,cAAc,EAAEC,cAVlB;IAWE,WAAW,EAAEE,WAXf;IAYE,oBAAoB,EAAEC,oBAZxB;IAaE,mBAAmB,EAAEkB,aAbvB;IAcE,OAAO,EAAEJ,OAdX;IAeE,QAAQ,EAAEhB,QAfZ;IAgBE,OAAO,EAAEM;EAhBX,GAkBE,6BAAC,yBAAD,eACMO,IADN;IAEE,WAAW,EAAEU,SAAS,GAAGhC,KAAH,GAAWqB,WAFnC;IAGE,KAAK,EAAED,KAHT;IAIE,GAAG,EAAErB,GAJP;IAKE,SAAS,EAAEa,cALb;IAME,UAAU,EAAEC,eANd;IAOE,QAAQ,EAAEJ,QAPZ;IAQE,OAAO,EAAEkB,WARX;IASE,MAAM,EAAED;EATV,GAlBF,CADF,EA+BGT,IAAI,IAAIM,KA/BX,CADF;AAmCD,CA/EW,CAAd;;AAkFA3B,KAAK,CAACsC,WAAN,GAAoB,OAApB;eAEetC,K"}
@@ -1,13 +1,23 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
4
- exports.InputNativeProps = exports.Input = void 0;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Input", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Input.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "InputNativeProps", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _Input.InputNativeProps;
16
+ }
17
+ });
5
18
 
6
19
  var _Input = _interopRequireWildcard(require("./Input"));
7
20
 
8
- exports.Input = _Input.default;
9
- exports.InputNativeProps = _Input.InputNativeProps;
10
-
11
21
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
22
 
13
23
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/Input/index.ts"],"sourcesContent":["export { default as Input, InputNativeProps } from './Input';\n"],"mappings":";;;;;AAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/Input/index.ts"],"sourcesContent":["export { default as Input, InputNativeProps } from './Input';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.StyledNativeInput = void 0;
5
7
 
6
8
  var _native = _interopRequireDefault(require("@emotion/native"));
@@ -9,15 +11,18 @@ var _reactCore = require("@tecsinapse/react-core");
9
11
 
10
12
  var _styled = require("../Text/styled");
11
13
 
14
+ var _templateObject;
15
+
12
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
17
 
14
- const StyledNativeInputBase = (0, _native.default)(_reactCore.InputElement)`
15
- height: ${({
16
- theme
17
- }) => theme.typography.h5.lineHeight};
18
- width: 100%;
19
- padding: 0;
20
- `;
18
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
+
20
+ const StyledNativeInputBase = (0, _native.default)(_reactCore.InputElement)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", ";\n width: 100%;\n padding: 0;\n"])), _ref => {
21
+ let {
22
+ theme
23
+ } = _ref;
24
+ return theme.typography.h5.lineHeight;
25
+ });
21
26
  const StyledNativeInput = (0, _native.default)(StyledNativeInputBase)(_styled.fontStyles);
22
27
  exports.StyledNativeInput = StyledNativeInput;
23
28
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["StyledNativeInputBase","styled","InputElement","theme","typography","h5","lineHeight","StyledNativeInput","fontStyles"],"sources":["../../../../src/components/atoms/Input/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\nimport { InputElement, StyleProps } from '@tecsinapse/react-core';\nimport { Font, fontStyles } from '../Text/styled';\nimport { InputNativeProps } from './Input';\n\nconst StyledNativeInputBase = styled(InputElement)<\n Partial<InputNativeProps> & Partial<StyleProps>\n>`\n height: ${({ theme }) => theme.typography.h5.lineHeight};\n width: 100%;\n padding: 0;\n`;\n\nexport const StyledNativeInput = styled(StyledNativeInputBase)<\n Font & Partial<InputNativeProps> & Partial<StyleProps>\n>(fontStyles);\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;;;AAGA,MAAMA,qBAAqB,GAAG,IAAAC,eAAA,EAAOC,uBAAP,CAE5B;AACF,YAAY,CAAC;EAAEC;AAAF,CAAD,KAAeA,KAAK,CAACC,UAAN,CAAiBC,EAAjB,CAAoBC,UAAW;AAC1D;AACA;AACA,CANA;AAQO,MAAMC,iBAAiB,GAAG,IAAAN,eAAA,EAAOD,qBAAP,EAE/BQ,kBAF+B,CAA1B"}
1
+ {"version":3,"file":"styled.js","names":["StyledNativeInputBase","styled","InputElement","theme","typography","h5","lineHeight","StyledNativeInput","fontStyles"],"sources":["../../../../src/components/atoms/Input/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\nimport { InputElement, StyleProps } from '@tecsinapse/react-core';\nimport { Font, fontStyles } from '../Text/styled';\nimport { InputNativeProps } from './Input';\n\nconst StyledNativeInputBase = styled(InputElement)<\n Partial<InputNativeProps> & Partial<StyleProps>\n>`\n height: ${({ theme }) => theme.typography.h5.lineHeight};\n width: 100%;\n padding: 0;\n`;\n\nexport const StyledNativeInput = styled(StyledNativeInputBase)<\n Font & Partial<InputNativeProps> & Partial<StyleProps>\n>(fontStyles);\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;;;AAGA,MAAMA,qBAAqB,GAAG,IAAAC,eAAA,EAAOC,uBAAP,CAAH,wHAGf;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,OAAeA,KAAK,CAACC,UAAN,CAAiBC,EAAjB,CAAoBC,UAAnC;AAAA,CAHe,CAA3B;AAQO,MAAMC,iBAAiB,GAAG,IAAAN,eAAA,EAAOD,qBAAP,EAE/BQ,kBAF+B,CAA1B"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.default = void 0;
5
7
 
6
8
  var _reactCore = require("@tecsinapse/react-core");
@@ -17,32 +19,34 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
17
19
 
18
20
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
21
 
20
- const InputMask = _react.default.forwardRef(({
21
- label,
22
- labelColor,
23
- labelColorVariant,
24
- labelColorTone,
25
- labelTypography,
26
- labelStack,
27
- labelWeight,
28
- leftComponent,
29
- rightComponent,
30
- disabled,
31
- style,
32
- borderColor,
33
- borderColorGradation,
34
- inputFontStack = 'default',
35
- inputFontWeight = 'bold',
36
- inputContainerStyle,
37
- variant = 'default',
38
- hintComponent,
39
- hint,
40
- onFocus,
41
- onBlur,
42
- value,
43
- placeholder,
44
- ...rest
45
- }, ref) => {
22
+ const InputMask = _react.default.forwardRef((_ref, ref) => {
23
+ let {
24
+ label,
25
+ labelColor,
26
+ labelColorVariant,
27
+ labelColorTone,
28
+ labelTypography,
29
+ labelStack,
30
+ labelWeight,
31
+ leftComponent,
32
+ rightComponent,
33
+ disabled,
34
+ style,
35
+ borderColor,
36
+ borderColorGradation,
37
+ inputFontStack = 'default',
38
+ inputFontWeight = 'bold',
39
+ inputContainerStyle,
40
+ variant = 'default',
41
+ hintComponent,
42
+ hint,
43
+ onFocus,
44
+ onBlur,
45
+ value,
46
+ placeholder,
47
+ ...rest
48
+ } = _ref;
49
+
46
50
  const _hint = hintComponent || _react.default.createElement(_reactCore.Hint, {
47
51
  TextComponent: _Text.Text,
48
52
  text: hint,
@@ -1 +1 @@
1
- {"version":3,"file":"InputMask.js","names":["InputMask","React","forwardRef","label","labelColor","labelColorVariant","labelColorTone","labelTypography","labelStack","labelWeight","leftComponent","rightComponent","disabled","style","borderColor","borderColorGradation","inputFontStack","inputFontWeight","inputContainerStyle","variant","hintComponent","hint","onFocus","onBlur","value","placeholder","rest","ref","_hint","Text","focused","handleBlur","handleFocus","useInputFocus","onlyLabel","String","undefined","displayName"],"sources":["../../../../src/components/atoms/InputMask/InputMask.tsx"],"sourcesContent":["import {\n FontStackType,\n FontWeightType,\n Hint,\n InputContainerProps,\n InputMaskElementProps,\n useInputFocus,\n} from '@tecsinapse/react-core';\nimport React, { FC } from 'react';\nimport { View } from 'react-native';\nimport { StyledInputContainer, StyledNativeInputMask } from './styled';\nimport { Text } from '../Text';\n\nexport interface InputMaskNativeProps\n extends Omit<InputMaskElementProps, 'style'>,\n InputContainerProps {\n inputFontStack?: FontStackType;\n inputFontWeight?: FontWeightType;\n}\n\nconst InputMask: FC<InputMaskNativeProps> = React.forwardRef(\n (\n {\n label,\n labelColor,\n labelColorVariant,\n labelColorTone,\n labelTypography,\n labelStack,\n labelWeight,\n leftComponent,\n rightComponent,\n disabled,\n style,\n borderColor,\n borderColorGradation,\n inputFontStack = 'default',\n inputFontWeight = 'bold',\n inputContainerStyle,\n variant = 'default',\n hintComponent,\n hint,\n onFocus,\n onBlur,\n value,\n placeholder,\n ...rest\n },\n ref\n ) => {\n const _hint = hintComponent || (\n <Hint TextComponent={Text} text={hint} variant={variant} />\n );\n const { focused, handleBlur, handleFocus } = useInputFocus(\n onFocus,\n onBlur,\n !disabled\n );\n\n const onlyLabel = label && !placeholder;\n\n return (\n <View style={style}>\n <StyledInputContainer\n label={String(value) ? label : undefined}\n labelColor={labelColor}\n labelColorVariant={labelColorVariant}\n labelColorTone={labelColorTone}\n labelTypography={labelTypography}\n labelStack={labelStack}\n labelWeight={labelWeight}\n LabelComponent={Text}\n leftComponent={leftComponent}\n rightComponent={rightComponent}\n borderColor={borderColor}\n borderColorGradation={borderColorGradation}\n inputContainerStyle={inputContainerStyle}\n focused={focused}\n disabled={disabled}\n variant={variant}\n >\n <StyledNativeInputMask\n {...rest}\n placeholder={onlyLabel ? label : placeholder}\n value={value}\n ref={ref}\n fontStack={inputFontStack}\n fontWeight={inputFontWeight}\n disabled={disabled}\n onFocus={handleFocus}\n onBlur={handleBlur}\n />\n </StyledInputContainer>\n {hint && _hint}\n </View>\n );\n }\n);\n\nInputMask.displayName = 'InputMask';\n\nexport default InputMask;\n"],"mappings":";;;;;AAAA;;AAQA;;AACA;;AACA;;AACA;;;;;;AASA,MAAMA,SAAmC,GAAGC,cAAA,CAAMC,UAAN,CAC1C,CACE;EACEC,KADF;EAEEC,UAFF;EAGEC,iBAHF;EAIEC,cAJF;EAKEC,eALF;EAMEC,UANF;EAOEC,WAPF;EAQEC,aARF;EASEC,cATF;EAUEC,QAVF;EAWEC,KAXF;EAYEC,WAZF;EAaEC,oBAbF;EAcEC,cAAc,GAAG,SAdnB;EAeEC,eAAe,GAAG,MAfpB;EAgBEC,mBAhBF;EAiBEC,OAAO,GAAG,SAjBZ;EAkBEC,aAlBF;EAmBEC,IAnBF;EAoBEC,OApBF;EAqBEC,MArBF;EAsBEC,KAtBF;EAuBEC,WAvBF;EAwBE,GAAGC;AAxBL,CADF,EA2BEC,GA3BF,KA4BK;EACH,MAAMC,KAAK,GAAGR,aAAa,IACzB,6BAAC,eAAD;IAAM,aAAa,EAAES,UAArB;IAA2B,IAAI,EAAER,IAAjC;IAAuC,OAAO,EAAEF;EAAhD,EADF;;EAGA,MAAM;IAAEW,OAAF;IAAWC,UAAX;IAAuBC;EAAvB,IAAuC,IAAAC,wBAAA,EAC3CX,OAD2C,EAE3CC,MAF2C,EAG3C,CAACX,QAH0C,CAA7C;EAMA,MAAMsB,SAAS,GAAG/B,KAAK,IAAI,CAACsB,WAA5B;EAEA,OACE,6BAAC,iBAAD;IAAM,KAAK,EAAEZ;EAAb,GACE,6BAAC,4BAAD;IACE,KAAK,EAAEsB,MAAM,CAACX,KAAD,CAAN,GAAgBrB,KAAhB,GAAwBiC,SADjC;IAEE,UAAU,EAAEhC,UAFd;IAGE,iBAAiB,EAAEC,iBAHrB;IAIE,cAAc,EAAEC,cAJlB;IAKE,eAAe,EAAEC,eALnB;IAME,UAAU,EAAEC,UANd;IAOE,WAAW,EAAEC,WAPf;IAQE,cAAc,EAAEoB,UARlB;IASE,aAAa,EAAEnB,aATjB;IAUE,cAAc,EAAEC,cAVlB;IAWE,WAAW,EAAEG,WAXf;IAYE,oBAAoB,EAAEC,oBAZxB;IAaE,mBAAmB,EAAEG,mBAbvB;IAcE,OAAO,EAAEY,OAdX;IAeE,QAAQ,EAAElB,QAfZ;IAgBE,OAAO,EAAEO;EAhBX,GAkBE,6BAAC,6BAAD,eACMO,IADN;IAEE,WAAW,EAAEQ,SAAS,GAAG/B,KAAH,GAAWsB,WAFnC;IAGE,KAAK,EAAED,KAHT;IAIE,GAAG,EAAEG,GAJP;IAKE,SAAS,EAAEX,cALb;IAME,UAAU,EAAEC,eANd;IAOE,QAAQ,EAAEL,QAPZ;IAQE,OAAO,EAAEoB,WARX;IASE,MAAM,EAAED;EATV,GAlBF,CADF,EA+BGV,IAAI,IAAIO,KA/BX,CADF;AAmCD,CA5EyC,CAA5C;;AA+EA5B,SAAS,CAACqC,WAAV,GAAwB,WAAxB;eAEerC,S"}
1
+ {"version":3,"file":"InputMask.js","names":["InputMask","React","forwardRef","ref","label","labelColor","labelColorVariant","labelColorTone","labelTypography","labelStack","labelWeight","leftComponent","rightComponent","disabled","style","borderColor","borderColorGradation","inputFontStack","inputFontWeight","inputContainerStyle","variant","hintComponent","hint","onFocus","onBlur","value","placeholder","rest","_hint","Text","focused","handleBlur","handleFocus","useInputFocus","onlyLabel","String","undefined","displayName"],"sources":["../../../../src/components/atoms/InputMask/InputMask.tsx"],"sourcesContent":["import {\n FontStackType,\n FontWeightType,\n Hint,\n InputContainerProps,\n InputMaskElementProps,\n useInputFocus,\n} from '@tecsinapse/react-core';\nimport React, { FC } from 'react';\nimport { View } from 'react-native';\nimport { StyledInputContainer, StyledNativeInputMask } from './styled';\nimport { Text } from '../Text';\n\nexport interface InputMaskNativeProps\n extends Omit<InputMaskElementProps, 'style'>,\n InputContainerProps {\n inputFontStack?: FontStackType;\n inputFontWeight?: FontWeightType;\n}\n\nconst InputMask: FC<InputMaskNativeProps> = React.forwardRef(\n (\n {\n label,\n labelColor,\n labelColorVariant,\n labelColorTone,\n labelTypography,\n labelStack,\n labelWeight,\n leftComponent,\n rightComponent,\n disabled,\n style,\n borderColor,\n borderColorGradation,\n inputFontStack = 'default',\n inputFontWeight = 'bold',\n inputContainerStyle,\n variant = 'default',\n hintComponent,\n hint,\n onFocus,\n onBlur,\n value,\n placeholder,\n ...rest\n },\n ref\n ) => {\n const _hint = hintComponent || (\n <Hint TextComponent={Text} text={hint} variant={variant} />\n );\n const { focused, handleBlur, handleFocus } = useInputFocus(\n onFocus,\n onBlur,\n !disabled\n );\n\n const onlyLabel = label && !placeholder;\n\n return (\n <View style={style}>\n <StyledInputContainer\n label={String(value) ? label : undefined}\n labelColor={labelColor}\n labelColorVariant={labelColorVariant}\n labelColorTone={labelColorTone}\n labelTypography={labelTypography}\n labelStack={labelStack}\n labelWeight={labelWeight}\n LabelComponent={Text}\n leftComponent={leftComponent}\n rightComponent={rightComponent}\n borderColor={borderColor}\n borderColorGradation={borderColorGradation}\n inputContainerStyle={inputContainerStyle}\n focused={focused}\n disabled={disabled}\n variant={variant}\n >\n <StyledNativeInputMask\n {...rest}\n placeholder={onlyLabel ? label : placeholder}\n value={value}\n ref={ref}\n fontStack={inputFontStack}\n fontWeight={inputFontWeight}\n disabled={disabled}\n onFocus={handleFocus}\n onBlur={handleBlur}\n />\n </StyledInputContainer>\n {hint && _hint}\n </View>\n );\n }\n);\n\nInputMask.displayName = 'InputMask';\n\nexport default InputMask;\n"],"mappings":";;;;;;;AAAA;;AAQA;;AACA;;AACA;;AACA;;;;;;AASA,MAAMA,SAAmC,GAAGC,cAAA,CAAMC,UAAN,CAC1C,OA2BEC,GA3BF,KA4BK;EAAA,IA3BH;IACEC,KADF;IAEEC,UAFF;IAGEC,iBAHF;IAIEC,cAJF;IAKEC,eALF;IAMEC,UANF;IAOEC,WAPF;IAQEC,aARF;IASEC,cATF;IAUEC,QAVF;IAWEC,KAXF;IAYEC,WAZF;IAaEC,oBAbF;IAcEC,cAAc,GAAG,SAdnB;IAeEC,eAAe,GAAG,MAfpB;IAgBEC,mBAhBF;IAiBEC,OAAO,GAAG,SAjBZ;IAkBEC,aAlBF;IAmBEC,IAnBF;IAoBEC,OApBF;IAqBEC,MArBF;IAsBEC,KAtBF;IAuBEC,WAvBF;IAwBE,GAAGC;EAxBL,CA2BG;;EACH,MAAMC,KAAK,GAAGP,aAAa,IACzB,6BAAC,eAAD;IAAM,aAAa,EAAEQ,UAArB;IAA2B,IAAI,EAAEP,IAAjC;IAAuC,OAAO,EAAEF;EAAhD,EADF;;EAGA,MAAM;IAAEU,OAAF;IAAWC,UAAX;IAAuBC;EAAvB,IAAuC,IAAAC,wBAAA,EAC3CV,OAD2C,EAE3CC,MAF2C,EAG3C,CAACX,QAH0C,CAA7C;EAMA,MAAMqB,SAAS,GAAG9B,KAAK,IAAI,CAACsB,WAA5B;EAEA,OACE,6BAAC,iBAAD;IAAM,KAAK,EAAEZ;EAAb,GACE,6BAAC,4BAAD;IACE,KAAK,EAAEqB,MAAM,CAACV,KAAD,CAAN,GAAgBrB,KAAhB,GAAwBgC,SADjC;IAEE,UAAU,EAAE/B,UAFd;IAGE,iBAAiB,EAAEC,iBAHrB;IAIE,cAAc,EAAEC,cAJlB;IAKE,eAAe,EAAEC,eALnB;IAME,UAAU,EAAEC,UANd;IAOE,WAAW,EAAEC,WAPf;IAQE,cAAc,EAAEmB,UARlB;IASE,aAAa,EAAElB,aATjB;IAUE,cAAc,EAAEC,cAVlB;IAWE,WAAW,EAAEG,WAXf;IAYE,oBAAoB,EAAEC,oBAZxB;IAaE,mBAAmB,EAAEG,mBAbvB;IAcE,OAAO,EAAEW,OAdX;IAeE,QAAQ,EAAEjB,QAfZ;IAgBE,OAAO,EAAEO;EAhBX,GAkBE,6BAAC,6BAAD,eACMO,IADN;IAEE,WAAW,EAAEO,SAAS,GAAG9B,KAAH,GAAWsB,WAFnC;IAGE,KAAK,EAAED,KAHT;IAIE,GAAG,EAAEtB,GAJP;IAKE,SAAS,EAAEc,cALb;IAME,UAAU,EAAEC,eANd;IAOE,QAAQ,EAAEL,QAPZ;IAQE,OAAO,EAAEmB,WARX;IASE,MAAM,EAAED;EATV,GAlBF,CADF,EA+BGT,IAAI,IAAIM,KA/BX,CADF;AAmCD,CA5EyC,CAA5C;;AA+EA5B,SAAS,CAACqC,WAAV,GAAwB,WAAxB;eAEerC,S"}
@@ -1,13 +1,23 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
4
- exports.InputMaskNativeProps = exports.InputMask = void 0;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "InputMask", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _InputMask.default;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "InputMaskNativeProps", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _InputMask.InputMaskNativeProps;
16
+ }
17
+ });
5
18
 
6
19
  var _InputMask = _interopRequireWildcard(require("./InputMask"));
7
20
 
8
- exports.InputMask = _InputMask.default;
9
- exports.InputMaskNativeProps = _InputMask.InputMaskNativeProps;
10
-
11
21
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
22
 
13
23
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/InputMask/index.ts"],"sourcesContent":["export { default as InputMask, InputMaskNativeProps } from './InputMask';\n"],"mappings":";;;;;AAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/atoms/InputMask/index.ts"],"sourcesContent":["export { default as InputMask, InputMaskNativeProps } from './InputMask';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.StyledNativeInputMask = exports.StyledInputContainer = void 0;
5
7
 
6
8
  var _native = _interopRequireDefault(require("@emotion/native"));
@@ -9,19 +11,20 @@ var _reactCore = require("@tecsinapse/react-core");
9
11
 
10
12
  var _styled = require("../Text/styled");
11
13
 
14
+ var _templateObject, _templateObject2;
15
+
12
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
17
 
14
- const StyledInputContainer = (0, _native.default)(_reactCore.InputContainer)`
15
- min-height: ${(0, _reactCore.RFValueStr)('50px')};
16
- `;
18
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
+
20
+ const StyledInputContainer = (0, _native.default)(_reactCore.InputContainer)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n min-height: ", ";\n"])), (0, _reactCore.RFValueStr)('50px'));
17
21
  exports.StyledInputContainer = StyledInputContainer;
18
- const StyledNativeInputMaskBase = (0, _native.default)(_reactCore.InputMaskElement)`
19
- height: ${({
20
- theme
21
- }) => theme.typography.h5.lineHeight};
22
- width: 100%;
23
- padding: 0;
24
- `;
22
+ const StyledNativeInputMaskBase = (0, _native.default)(_reactCore.InputMaskElement)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: ", ";\n width: 100%;\n padding: 0;\n"])), _ref => {
23
+ let {
24
+ theme
25
+ } = _ref;
26
+ return theme.typography.h5.lineHeight;
27
+ });
25
28
  const StyledNativeInputMask = (0, _native.default)(StyledNativeInputMaskBase)(_styled.fontStyles);
26
29
  exports.StyledNativeInputMask = StyledNativeInputMask;
27
30
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","names":["StyledInputContainer","styled","InputContainer","RFValueStr","StyledNativeInputMaskBase","InputMaskElement","theme","typography","h5","lineHeight","StyledNativeInputMask","fontStyles"],"sources":["../../../../src/components/atoms/InputMask/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\nimport {\n InputContainer,\n InputMaskElement,\n RFValueStr,\n StyleProps,\n} from '@tecsinapse/react-core';\nimport { Font, fontStyles } from '../Text/styled';\nimport { InputMaskNativeProps } from './InputMask';\n\nexport const StyledInputContainer = styled(InputContainer)<Partial<StyleProps>>`\n min-height: ${RFValueStr('50px')};\n`;\n\nconst StyledNativeInputMaskBase = styled(InputMaskElement)<\n Partial<InputMaskNativeProps> & Partial<StyleProps>\n>`\n height: ${({ theme }) => theme.typography.h5.lineHeight};\n width: 100%;\n padding: 0;\n`;\n\nexport const StyledNativeInputMask = styled(StyledNativeInputMaskBase)<\n Font & Partial<InputMaskNativeProps> & Partial<StyleProps>\n>(fontStyles);\n"],"mappings":";;;;;AAAA;;AACA;;AAMA;;;;AAGO,MAAMA,oBAAoB,GAAG,IAAAC,eAAA,EAAOC,yBAAP,CAA4C;AAChF,gBAAgB,IAAAC,qBAAA,EAAW,MAAX,CAAmB;AACnC,CAFO;;AAIP,MAAMC,yBAAyB,GAAG,IAAAH,eAAA,EAAOI,2BAAP,CAEhC;AACF,YAAY,CAAC;EAAEC;AAAF,CAAD,KAAeA,KAAK,CAACC,UAAN,CAAiBC,EAAjB,CAAoBC,UAAW;AAC1D;AACA;AACA,CANA;AAQO,MAAMC,qBAAqB,GAAG,IAAAT,eAAA,EAAOG,yBAAP,EAEnCO,kBAFmC,CAA9B"}
1
+ {"version":3,"file":"styled.js","names":["StyledInputContainer","styled","InputContainer","RFValueStr","StyledNativeInputMaskBase","InputMaskElement","theme","typography","h5","lineHeight","StyledNativeInputMask","fontStyles"],"sources":["../../../../src/components/atoms/InputMask/styled.ts"],"sourcesContent":["import styled from '@emotion/native';\nimport {\n InputContainer,\n InputMaskElement,\n RFValueStr,\n StyleProps,\n} from '@tecsinapse/react-core';\nimport { Font, fontStyles } from '../Text/styled';\nimport { InputMaskNativeProps } from './InputMask';\n\nexport const StyledInputContainer = styled(InputContainer)<Partial<StyleProps>>`\n min-height: ${RFValueStr('50px')};\n`;\n\nconst StyledNativeInputMaskBase = styled(InputMaskElement)<\n Partial<InputMaskNativeProps> & Partial<StyleProps>\n>`\n height: ${({ theme }) => theme.typography.h5.lineHeight};\n width: 100%;\n padding: 0;\n`;\n\nexport const StyledNativeInputMask = styled(StyledNativeInputMaskBase)<\n Font & Partial<InputMaskNativeProps> & Partial<StyleProps>\n>(fontStyles);\n"],"mappings":";;;;;;;AAAA;;AACA;;AAMA;;;;;;;;AAGO,MAAMA,oBAAoB,GAAG,IAAAC,eAAA,EAAOC,yBAAP,CAAH,6FACjB,IAAAC,qBAAA,EAAW,MAAX,CADiB,CAA1B;;AAIP,MAAMC,yBAAyB,GAAG,IAAAH,eAAA,EAAOI,2BAAP,CAAH,0HAGnB;EAAA,IAAC;IAAEC;EAAF,CAAD;EAAA,OAAeA,KAAK,CAACC,UAAN,CAAiBC,EAAjB,CAAoBC,UAAnC;AAAA,CAHmB,CAA/B;AAQO,MAAMC,qBAAqB,GAAG,IAAAT,eAAA,EAAOG,yBAAP,EAEnCO,kBAFmC,CAA9B"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
 
3
- exports.__esModule = true;
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
4
6
  exports.modalLifecycle = exports.ModalGroupManager = void 0;
5
7
 
6
8
  var _react = _interopRequireWildcard(require("react"));
@@ -18,10 +20,11 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
18
20
  const modalLifecycle = (0, _ModalLifecycleHandler.createModalLifecycleHandler)();
19
21
  exports.modalLifecycle = modalLifecycle;
20
22
 
21
- const ModalGroupManager = ({
22
- children,
23
- ...others
24
- }) => {
23
+ const ModalGroupManager = _ref => {
24
+ let {
25
+ children,
26
+ ...others
27
+ } = _ref;
25
28
  modalLifecycle.attach((0, _react.useState)([]));
26
29
 
27
30
  const _render = modalLifecycle.render();