react-native-exp-fig 0.1.26 → 0.1.28

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 (221) hide show
  1. package/lib/commonjs/components/activity-timeline/components/activite-row/index.js +130 -0
  2. package/lib/commonjs/components/activity-timeline/components/activite-row/index.js.map +1 -0
  3. package/lib/commonjs/components/activity-timeline/index.js +78 -0
  4. package/lib/commonjs/components/activity-timeline/index.js.map +1 -0
  5. package/lib/commonjs/components/activity-timeline/interface.js +6 -0
  6. package/lib/commonjs/components/activity-timeline/interface.js.map +1 -0
  7. package/lib/commonjs/components/activity-timeline/styles.js +84 -0
  8. package/lib/commonjs/components/activity-timeline/styles.js.map +1 -0
  9. package/lib/commonjs/components/input-text-counter/index.js +66 -0
  10. package/lib/commonjs/components/input-text-counter/index.js.map +1 -0
  11. package/lib/commonjs/components/input-text-counter/interface.d.js.map +1 -0
  12. package/lib/commonjs/components/input-text-counter/styles.js +42 -0
  13. package/lib/commonjs/components/input-text-counter/styles.js.map +1 -0
  14. package/lib/commonjs/components/modal-create-activitie/index.js +202 -0
  15. package/lib/commonjs/components/modal-create-activitie/index.js.map +1 -0
  16. package/lib/commonjs/components/modal-create-activitie/interface.js +2 -0
  17. package/lib/commonjs/components/modal-create-activitie/interface.js.map +1 -0
  18. package/lib/commonjs/components/modal-create-activitie/styles.js +42 -0
  19. package/lib/commonjs/components/modal-create-activitie/styles.js.map +1 -0
  20. package/lib/commonjs/components/modal-journey-rectification/index.js +202 -0
  21. package/lib/commonjs/components/modal-journey-rectification/index.js.map +1 -0
  22. package/lib/commonjs/components/modal-journey-rectification/interface.d.js +2 -0
  23. package/lib/commonjs/components/modal-journey-rectification/interface.d.js.map +1 -0
  24. package/lib/commonjs/components/modal-journey-rectification/styles.js +42 -0
  25. package/lib/commonjs/components/modal-journey-rectification/styles.js.map +1 -0
  26. package/lib/commonjs/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
  27. package/lib/commonjs/components/modals/modal-activities/data-activities/index.js.map +1 -0
  28. package/lib/commonjs/components/{modal-activities → modals/modal-activities}/index.js +8 -8
  29. package/lib/commonjs/components/modals/modal-activities/index.js.map +1 -0
  30. package/lib/commonjs/components/modals/modal-activities/interface.d.js +6 -0
  31. package/lib/commonjs/components/modals/modal-activities/interface.d.js.map +1 -0
  32. package/lib/commonjs/components/modals/modal-activity-reason/index.js +161 -0
  33. package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
  34. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
  35. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
  36. package/lib/commonjs/components/{modal-change-activity → modals/modal-change-activity}/index.js +7 -7
  37. package/lib/commonjs/components/modals/modal-change-activity/index.js.map +1 -0
  38. package/lib/commonjs/components/selects/select-date-and-hours/index.js +95 -0
  39. package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
  40. package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
  41. package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
  42. package/lib/commonjs/components/selects/select-date-and-hours/styles.js +33 -0
  43. package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
  44. package/lib/commonjs/components/selects/select-option/index.js +41 -39
  45. package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
  46. package/lib/commonjs/components/step-indicator/index.js +7 -7
  47. package/lib/commonjs/components/step-indicator/index.js.map +1 -1
  48. package/lib/commonjs/index.js +39 -4
  49. package/lib/commonjs/index.js.map +1 -1
  50. package/lib/commonjs/stories/activity-timeline/activity-timeline.stories.js +82 -0
  51. package/lib/commonjs/stories/activity-timeline/activity-timeline.stories.js.map +1 -0
  52. package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js +259 -0
  53. package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
  54. package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +1 -1
  55. package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -1
  56. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +198 -0
  57. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
  58. package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
  59. package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
  60. package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js +86 -0
  61. package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
  62. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +172 -0
  63. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
  64. package/lib/commonjs/stories/select-option/select-option.stories.js +3 -2
  65. package/lib/commonjs/stories/select-option/select-option.stories.js.map +1 -1
  66. package/lib/commonjs/styles/theme/theme.js +18 -2
  67. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  68. package/lib/commonjs/utils/options-activity/index.js +27 -0
  69. package/lib/commonjs/utils/options-activity/index.js.map +1 -0
  70. package/lib/commonjs/utils/text-limit/index.js +37 -0
  71. package/lib/commonjs/utils/text-limit/index.js.map +1 -0
  72. package/lib/module/components/activity-timeline/components/activite-row/index.js +123 -0
  73. package/lib/module/components/activity-timeline/components/activite-row/index.js.map +1 -0
  74. package/lib/module/components/activity-timeline/index.js +70 -0
  75. package/lib/module/components/activity-timeline/index.js.map +1 -0
  76. package/lib/module/components/activity-timeline/interface.js +2 -0
  77. package/lib/module/components/activity-timeline/interface.js.map +1 -0
  78. package/lib/module/components/activity-timeline/styles.js +78 -0
  79. package/lib/module/components/activity-timeline/styles.js.map +1 -0
  80. package/lib/module/components/input-text-counter/index.js +63 -0
  81. package/lib/module/components/input-text-counter/index.js.map +1 -0
  82. package/lib/module/components/input-text-counter/interface.d.js.map +1 -0
  83. package/lib/module/components/input-text-counter/styles.js +37 -0
  84. package/lib/module/components/input-text-counter/styles.js.map +1 -0
  85. package/lib/module/components/modal-create-activitie/index.js +192 -0
  86. package/lib/module/components/modal-create-activitie/index.js.map +1 -0
  87. package/lib/module/components/modal-create-activitie/interface.js +2 -0
  88. package/lib/module/components/modal-create-activitie/interface.js.map +1 -0
  89. package/lib/module/components/modal-create-activitie/styles.js +37 -0
  90. package/lib/module/components/modal-create-activitie/styles.js.map +1 -0
  91. package/lib/module/components/modal-journey-rectification/index.js +192 -0
  92. package/lib/module/components/modal-journey-rectification/index.js.map +1 -0
  93. package/lib/module/components/modal-journey-rectification/interface.d.js +2 -0
  94. package/lib/module/components/modal-journey-rectification/interface.d.js.map +1 -0
  95. package/lib/module/components/modal-journey-rectification/styles.js +37 -0
  96. package/lib/module/components/modal-journey-rectification/styles.js.map +1 -0
  97. package/lib/module/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
  98. package/lib/module/components/modals/modal-activities/data-activities/index.js.map +1 -0
  99. package/lib/module/components/{modal-activities → modals/modal-activities}/index.js +8 -8
  100. package/lib/module/components/modals/modal-activities/index.js.map +1 -0
  101. package/lib/module/components/modals/modal-activities/interface.d.js +2 -0
  102. package/lib/module/components/modals/modal-activities/interface.d.js.map +1 -0
  103. package/lib/module/components/modals/modal-activity-reason/index.js +151 -0
  104. package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
  105. package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
  106. package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
  107. package/lib/module/components/{modal-change-activity → modals/modal-change-activity}/index.js +6 -6
  108. package/lib/module/components/modals/modal-change-activity/index.js.map +1 -0
  109. package/lib/module/components/selects/select-date-and-hours/index.js +86 -0
  110. package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
  111. package/lib/module/components/selects/select-date-and-hours/interface.js +2 -0
  112. package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
  113. package/lib/module/components/selects/select-date-and-hours/styles.js +28 -0
  114. package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
  115. package/lib/module/components/selects/select-option/index.js +41 -42
  116. package/lib/module/components/selects/select-option/index.js.map +1 -1
  117. package/lib/module/components/step-indicator/index.js +7 -7
  118. package/lib/module/components/step-indicator/index.js.map +1 -1
  119. package/lib/module/index.js +10 -5
  120. package/lib/module/index.js.map +1 -1
  121. package/lib/module/stories/activity-timeline/activity-timeline.stories.js +75 -0
  122. package/lib/module/stories/activity-timeline/activity-timeline.stories.js.map +1 -0
  123. package/lib/module/stories/input-text-counter/input-text-counter.stories.js +253 -0
  124. package/lib/module/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
  125. package/lib/module/stories/modal-activities/modal-activities.stories.js +1 -1
  126. package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -1
  127. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +193 -0
  128. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
  129. package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
  130. package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
  131. package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js +78 -0
  132. package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
  133. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +168 -0
  134. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
  135. package/lib/module/stories/select-option/select-option.stories.js +1 -1
  136. package/lib/module/stories/select-option/select-option.stories.js.map +1 -1
  137. package/lib/module/styles/theme/theme.js +18 -2
  138. package/lib/module/styles/theme/theme.js.map +1 -1
  139. package/lib/module/utils/options-activity/index.js +22 -0
  140. package/lib/module/utils/options-activity/index.js.map +1 -0
  141. package/lib/module/utils/text-limit/index.js +30 -0
  142. package/lib/module/utils/text-limit/index.js.map +1 -0
  143. package/lib/typescript/src/components/activity-timeline/components/activite-row/index.d.ts +10 -0
  144. package/lib/typescript/src/components/activity-timeline/index.d.ts +16 -0
  145. package/lib/typescript/src/components/activity-timeline/interface.d.ts +39 -0
  146. package/lib/typescript/src/components/activity-timeline/styles.d.ts +71 -0
  147. package/lib/typescript/src/components/input-text-counter/index.d.ts +33 -0
  148. package/lib/typescript/src/components/input-text-counter/styles.d.ts +34 -0
  149. package/lib/typescript/src/components/modal-create-activitie/index.d.ts +7 -0
  150. package/lib/typescript/src/components/modal-create-activitie/interface.d.ts +18 -0
  151. package/lib/typescript/src/components/modal-create-activitie/styles.d.ts +32 -0
  152. package/lib/typescript/src/components/modal-journey-rectification/index.d.ts +7 -0
  153. package/lib/typescript/src/components/modal-journey-rectification/styles.d.ts +32 -0
  154. package/lib/typescript/src/components/modals/modal-activity-reason/index.d.ts +7 -0
  155. package/lib/typescript/src/components/selects/select-date-and-hours/index.d.ts +12 -0
  156. package/lib/typescript/src/components/selects/select-date-and-hours/interface.d.ts +21 -0
  157. package/lib/typescript/src/components/selects/select-date-and-hours/styles.d.ts +24 -0
  158. package/lib/typescript/src/components/selects/select-option/index.d.ts +3 -6
  159. package/lib/typescript/src/index.d.ts +8 -3
  160. package/lib/typescript/src/stories/activity-timeline/activity-timeline.stories.d.ts +8 -0
  161. package/lib/typescript/src/stories/input-text-counter/input-text-counter.stories.d.ts +17 -0
  162. package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +1 -1
  163. package/lib/typescript/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +15 -0
  164. package/lib/typescript/src/stories/modal-change-activity/modal-change-activity.stories.d.ts +1 -1
  165. package/lib/typescript/src/stories/modal-create-activitie/modal-create-activitie.stories.d.ts +12 -0
  166. package/lib/typescript/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +34 -0
  167. package/lib/typescript/src/stories/select-option/select-option.stories.d.ts +1 -1
  168. package/lib/typescript/src/styles/global/theme-provider.d.ts +16 -0
  169. package/lib/typescript/src/styles/theme/theme.d.ts +16 -0
  170. package/lib/typescript/src/utils/options-activity/index.d.ts +20 -0
  171. package/lib/typescript/src/utils/text-limit/index.d.ts +13 -0
  172. package/package.json +1 -1
  173. package/src/components/activity-timeline/components/activite-row/index.tsx +133 -0
  174. package/src/components/activity-timeline/index.tsx +72 -0
  175. package/src/components/activity-timeline/interface.ts +53 -0
  176. package/src/components/activity-timeline/styles.ts +69 -0
  177. package/src/components/input-text-counter/index.tsx +64 -0
  178. package/src/components/input-text-counter/interface.d.ts +41 -0
  179. package/src/components/input-text-counter/styles.ts +38 -0
  180. package/src/components/modal-create-activitie/index.tsx +211 -0
  181. package/src/components/modal-create-activitie/interface.ts +22 -0
  182. package/src/components/modal-create-activitie/styles.ts +24 -0
  183. package/src/components/modal-journey-rectification/index.tsx +211 -0
  184. package/src/components/modal-journey-rectification/interface.d.ts +22 -0
  185. package/src/components/modal-journey-rectification/styles.ts +24 -0
  186. package/src/components/{modal-activities → modals/modal-activities}/data-activities/index.ts +65 -65
  187. package/src/components/{modal-activities → modals/modal-activities}/index.tsx +137 -137
  188. package/src/components/{modal-activities → modals/modal-activities}/interface.d.ts +32 -32
  189. package/src/components/modals/modal-activity-reason/index.tsx +162 -0
  190. package/src/components/modals/modal-activity-reason/interface.d.ts +10 -0
  191. package/src/components/{modal-change-activity → modals/modal-change-activity}/index.tsx +6 -6
  192. package/src/components/selects/select-date-and-hours/index.tsx +97 -0
  193. package/src/components/selects/select-date-and-hours/interface.ts +31 -0
  194. package/src/components/selects/select-date-and-hours/styles.ts +24 -0
  195. package/src/components/selects/select-option/index.tsx +50 -41
  196. package/src/components/step-indicator/index.tsx +235 -235
  197. package/src/index.ts +50 -45
  198. package/src/stories/activity-timeline/activity-timeline.stories.tsx +90 -0
  199. package/src/stories/input-text-counter/input-text-counter.stories.tsx +232 -0
  200. package/src/stories/modal-activities/modal-activities.stories.tsx +64 -64
  201. package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +192 -0
  202. package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +49 -49
  203. package/src/stories/modal-create-activitie/modal-create-activitie.stories.tsx +82 -0
  204. package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +161 -0
  205. package/src/stories/select-option/select-option.stories.tsx +1 -1
  206. package/src/styles/theme/theme.ts +17 -0
  207. package/src/utils/options-activity/index.ts +14 -0
  208. package/src/utils/text-limit/index.ts +28 -0
  209. package/lib/commonjs/components/modal-activities/data-activities/index.js.map +0 -1
  210. package/lib/commonjs/components/modal-activities/index.js.map +0 -1
  211. package/lib/commonjs/components/modal-activities/interface.d.js.map +0 -1
  212. package/lib/commonjs/components/modal-change-activity/index.js.map +0 -1
  213. package/lib/module/components/modal-activities/data-activities/index.js.map +0 -1
  214. package/lib/module/components/modal-activities/index.js.map +0 -1
  215. package/lib/module/components/modal-activities/interface.d.js.map +0 -1
  216. package/lib/module/components/modal-change-activity/index.js.map +0 -1
  217. /package/lib/commonjs/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
  218. /package/lib/module/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
  219. /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/data-activities/index.d.ts +0 -0
  220. /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/index.d.ts +0 -0
  221. /package/lib/typescript/src/components/{modal-change-activity → modals/modal-change-activity}/index.d.ts +0 -0
@@ -6,16 +6,16 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ModalActivities = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _box = _interopRequireDefault(require("../box"));
10
- var _iconsSvg = require("../../common/icons-svg");
11
- var _modalActivities = require("../../common/icons-svg/modal-activities");
12
- var _theme = require("../../styles/theme/theme");
13
- var _typography = require("../typography");
14
- var _button = require("../button");
9
+ var _box = _interopRequireDefault(require("../../box"));
10
+ var _iconsSvg = require("../../../common/icons-svg");
11
+ var _modalActivities = require("../../../common/icons-svg/modal-activities");
12
+ var _theme = require("../../../styles/theme/theme");
13
+ var _typography = require("../../typography");
14
+ var _button = require("../../button");
15
15
  var _dataActivities = require("./data-activities");
16
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
- /**
18
- * IMPORTS
17
+ /**
18
+ * IMPORTS
19
19
  */
20
20
 
21
21
  // components
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_iconsSvg","_modalActivities","_theme","_typography","_button","_dataActivities","e","__esModule","default","ModalActivities","onClose","handleActivity","activityType","isLoading","style","createElement","Modal","animationType","transparent","onRequestClose","backgroundColor","flexStyle","flex","justifyContent","alignItems","height","width","theme","colors","neutral","borderStyled","borderColor","blue","borderWidth","borderWidths","thick","borderRadius","thick_medium","paddingStyle","padding","paddings","md","position","flexDirection","Typography","text","size","fontSizes","color","fontFamily","fonts","inter_bold_700","lineHeight","xl","TouchableOpacity","activeOpacity","onPress","Icons","icon","marginStyle","marginTop","margins","FlatList","data","activities","numColumns","keyExtractor","item","id","toString","scrollEnabled","renderItem","marginBottom","getIconModalActivities","referencia","descricao","xs","inter_medium_500","fontWeight","align","Button","title","buttonTextStyle","fontSize","thin","marginLeft","bottom","left","exports"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { Modal, TouchableOpacity, FlatList } from \"react-native\";\r\n\r\n// components\r\n\r\nimport Box from \"../../box\";\r\n\r\n// commons / icons\r\nimport { Icons } from \"../../../common/icons-svg\";\r\nimport { getIconModalActivities } from \"../../../common/icons-svg/modal-activities\";\r\n\r\n// styles\r\nimport { theme } from \"../../../styles/theme/theme\";\r\nimport { Typography } from \"../../typography\";\r\nimport { Button } from \"../../button\";\r\n\r\n//typing\r\nimport { IModalActivities, IActivity } from \"./interface\";\r\n\r\n// atividades\r\nimport { activities } from \"./data-activities\";\r\n\r\nexport const ModalActivities: React.FC<IModalActivities> = ({\r\n onClose,\r\n handleActivity,\r\n activityType,\r\n isLoading,\r\n style,\r\n}) => {\r\n return (\r\n <Modal animationType=\"fade\" transparent={true} onRequestClose={onClose}>\r\n <Box\r\n backgroundColor={\"rgba(0, 0, 0, 0.7)\"}\r\n flexStyle={{ flex: 1, justifyContent: \"center\", alignItems: \"center\" }}\r\n >\r\n <Box\r\n height={310}\r\n width={\"92%\"}\r\n backgroundColor={theme.colors.neutral[25]}\r\n borderStyled={{\r\n borderColor: theme.colors.blue[500],\r\n borderWidth: theme.borderWidths.thick,\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n paddingStyle={{\r\n padding: theme.paddings.md,\r\n }}\r\n style={{ position: \"relative\" }}\r\n >\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n justifyContent: \"space-between\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text=\"Atividades\"\r\n size={theme.fontSizes.md}\r\n color={theme.colors.blue[500]}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n lineHeight={theme.fontSizes.xl}\r\n />\r\n\r\n <TouchableOpacity activeOpacity={0.7} onPress={onClose} style={{}}>\r\n <Icons icon=\"CLOSED\" color={theme.colors.blue[500]} />\r\n </TouchableOpacity>\r\n </Box>\r\n {/* as atividades */}\r\n <Box marginStyle={{ marginTop: theme.margins[\"2xl\"] }}>\r\n <FlatList\r\n data={activities[activityType]}\r\n numColumns={3}\r\n keyExtractor={(item) => item.id.toString()}\r\n scrollEnabled={false}\r\n renderItem={({ item }) => (\r\n <TouchableOpacity\r\n style={{\r\n alignItems: \"center\",\r\n width: 110,\r\n marginBottom: theme.margins[\"2xl\"], // espaço entre as linhas\r\n }}\r\n onPress={() => handleActivity(item as IActivity)}\r\n >\r\n {getIconModalActivities(item.referencia)}\r\n\r\n <Typography\r\n text={item.descricao}\r\n size={theme.fontSizes.xs}\r\n color={theme.colors.blue[500]}\r\n lineHeight={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n align=\"center\"\r\n marginTop={5}\r\n />\r\n </TouchableOpacity>\r\n )}\r\n />\r\n </Box>\r\n\r\n <Button\r\n title={\"CANCELAR ATIVIDADE\"}\r\n width=\"100%\"\r\n height={40}\r\n activeOpacity={0.7}\r\n onPress={onClose}\r\n backgroundColor={theme.colors.blue[500]}\r\n buttonTextStyle={{\r\n color: theme.colors.neutral[25],\r\n fontFamily: theme.fonts.inter_medium_500,\r\n fontSize: theme.fontSizes.md,\r\n fontWeight: \"500\",\r\n }}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: theme.colors.blue[500],\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n marginStyle={{ marginLeft: theme.margins.md }}\r\n isLoading={isLoading ?? false}\r\n style={[style, { position: \"absolute\", bottom: 10, left: 0 }]}\r\n />\r\n </Box>\r\n </Box>\r\n </Modal>\r\n );\r\n};\r\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAIA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AAGA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAGA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,OAAA,GAAAP,OAAA;AAMA,IAAAQ,eAAA,GAAAR,OAAA;AAA+C,SAAAD,uBAAAU,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAvB/C;AACA;AACA;;AAIA;;AAIA;;AAIA;;AAKA;;AAGA;;AAGO,MAAMG,eAA2C,GAAGA,CAAC;EAC1DC,OAAO;EACPC,cAAc;EACdC,YAAY;EACZC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,o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ACnCI,YAAY,EAAET,YAAK,CAACO,YAAY,CAACG;IACnC,CAAE;IACFsB,WAAW,EAAE;MAAE0B,UAAU,EAAE1D,YAAK,CAACkC,OAAO,CAACpB;IAAG,CAAE;IAC9C5B,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,KAAM;IAC9BC,KAAK,EAAE,CAACA,KAAK,EAAE;MAAE4B,QAAQ,EAAE,UAAU;MAAE4C,MAAM,EAAE,EAAE;MAAEC,IAAI,EAAE;IAAE,CAAC;EAAE,CAC/D,CACE,CACF,CACA,CAAC;AAEZ,CAAC;AAACC,OAAA,CAAA/E,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=interface.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport { ModalProps } from \"react-native\";\r\n\r\n// typing\r\nimport { IGlobalCss } from \"../../../styles/global/interface\";\r\n\r\ninterface IActivity {\r\n id: number;\r\n referencia: string;\r\n cor_hex: string;\r\n descricao: string;\r\n tipo: \"trabalho\" | \"descanso\";\r\n}\r\n\r\ninterface IModalActivities extends ModalProps, IGlobalCss {\r\n /** função que fecha modal */\r\n onClose: () => void;\r\n\r\n /** tipo de atividades */\r\n activityType: IActivity[\"tipo\"];\r\n\r\n /** função que manda atividade selecionada */\r\n // eslint-disable-next-line no-unused-vars\r\n handleActivity: (activity: IActivity) => void;\r\n}\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { IModalActivities, IActivity };\r\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,161 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _box = _interopRequireDefault(require("../../box"));
10
+ var _typography = require("../../typography");
11
+ var _button = require("../../button");
12
+ var _inputTextCounter = _interopRequireDefault(require("../../input-text-counter"));
13
+ var _iconsSvg = require("../../../common/icons-svg");
14
+ var _theme = require("../../../styles/theme/theme");
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
17
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
+ /**
19
+ * IMPORTS
20
+ */
21
+
22
+ // components
23
+
24
+ // commons / svg
25
+
26
+ // typings
27
+
28
+ // styles
29
+
30
+ const ModalActivityReason = ({
31
+ visible,
32
+ onClose,
33
+ modalConfirm,
34
+ textTitle,
35
+ testID
36
+ }) => {
37
+ const [isLoading] = (0, _react.useState)(false);
38
+ return /*#__PURE__*/_react.default.createElement(_reactNative.Modal, {
39
+ testID: testID,
40
+ animationType: "fade",
41
+ transparent: true,
42
+ visible: visible
43
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
44
+ style: {
45
+ flex: 1,
46
+ justifyContent: "center",
47
+ alignItems: "center",
48
+ backgroundColor: "rgba(0,0,0,0.6)"
49
+ }
50
+ }, /*#__PURE__*/_react.default.createElement(_box.default, {
51
+ width: "90%",
52
+ backgroundColor: _theme.theme.colors.orange[500],
53
+ borderStyled: {
54
+ borderRadius: _theme.theme.borderWidths.thick_medium
55
+ },
56
+ paddingStyle: {
57
+ paddingLeft: _theme.theme.paddings["2xs"],
58
+ paddingRight: _theme.theme.paddings["2xs"],
59
+ paddingTop: _theme.theme.paddings.sm,
60
+ paddingBottom: _theme.theme.paddings.sm
61
+ }
62
+ }, /*#__PURE__*/_react.default.createElement(_box.default, {
63
+ marginStyle: {
64
+ marginBottom: 10,
65
+ marginLeft: 4
66
+ },
67
+ flexStyle: {
68
+ flexDirection: "row",
69
+ alignItems: "center"
70
+ }
71
+ }, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
72
+ icon: "EXCLAMATION_TRIANGLE",
73
+ color: _theme.theme.colors.orange[500],
74
+ background: _theme.theme.colors.neutral[300],
75
+ size: 22
76
+ }), /*#__PURE__*/_react.default.createElement(_typography.Typography, {
77
+ text: `${textTitle !== null && textTitle !== void 0 ? textTitle : "Motivo da exclusão"}`,
78
+ color: _theme.theme.colors.neutral[25],
79
+ marginLeft: _theme.theme.margins["2xs"],
80
+ fontFamily: _theme.theme.fonts.inter_bold_700,
81
+ size: _theme.theme.fontSizes.md
82
+ })), /*#__PURE__*/_react.default.createElement(_box.default, {
83
+ backgroundColor: _theme.theme.colors.neutral[300],
84
+ paddingStyle: {
85
+ padding: _theme.theme.paddings.xs
86
+ },
87
+ borderStyled: {
88
+ borderRadius: _theme.theme.borderWidths.thick_medium
89
+ }
90
+ }, /*#__PURE__*/_react.default.createElement(_box.default, {
91
+ width: "100%"
92
+ }, /*#__PURE__*/_react.default.createElement(_inputTextCounter.default, {
93
+ label: `${textTitle || "Motivo da exclusão"}`,
94
+ placeholderTextColor: "#9B9B9B",
95
+ placeholder: "Motivo da exclus\xE3o"
96
+ })), /*#__PURE__*/_react.default.createElement(_box.default, {
97
+ marginStyle: {
98
+ marginTop: 4
99
+ },
100
+ flexStyle: {
101
+ flexDirection: "row",
102
+ justifyContent: "space-between"
103
+ }
104
+ }, /*#__PURE__*/_react.default.createElement(_button.Button, {
105
+ title: "CANCELAR",
106
+ onPress: onClose,
107
+ width: "48%",
108
+ height: 40,
109
+ isLoading: isLoading,
110
+ disabled: isLoading,
111
+ backgroundColor: _theme.theme.colors.neutral[300],
112
+ buttonTextStyle: {
113
+ color: _theme.theme.colors.blue[100],
114
+ fontFamily: "Inter-Medium",
115
+ fontSize: _theme.theme.fontSizes.xs,
116
+ fontWeight: "500"
117
+ },
118
+ flexStyle: {
119
+ flexDirection: "row",
120
+ alignItems: "center",
121
+ justifyContent: "center",
122
+ textAlign: "center"
123
+ },
124
+ borderStyled: {
125
+ borderWidth: _theme.theme.borderWidths.thin,
126
+ borderColor: _theme.theme.colors.blue[100],
127
+ borderRadius: _theme.theme.borderWidths.thick_medium
128
+ }
129
+ }), /*#__PURE__*/_react.default.createElement(_button.Button, {
130
+ title: "CONFIRMAR",
131
+ onPress: () => {
132
+ modalConfirm(true);
133
+ onClose();
134
+ },
135
+ width: "48%",
136
+ height: 40,
137
+ isLoading: isLoading,
138
+ disabled: isLoading,
139
+ backgroundColor: _theme.theme.colors.blue[500],
140
+ buttonTextStyle: {
141
+ color: _theme.theme.colors.neutral[25],
142
+ fontFamily: "Inter-Medium",
143
+ fontSize: _theme.theme.fontSizes.xs,
144
+ fontWeight: "500"
145
+ },
146
+ flexStyle: {
147
+ flexDirection: "row",
148
+ alignItems: "center",
149
+ justifyContent: "center",
150
+ textAlign: "center"
151
+ },
152
+ borderStyled: {
153
+ borderWidth: _theme.theme.borderWidths.thin,
154
+ borderColor: _theme.theme.colors.blue[100],
155
+ borderRadius: _theme.theme.borderWidths.thick_medium
156
+ }
157
+ }))))));
158
+ };
159
+ ModalActivityReason.displayName = "ModalActivityReason";
160
+ var _default = exports.default = ModalActivityReason;
161
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_box","_interopRequireDefault","_typography","_button","_inputTextCounter","_iconsSvg","_theme","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ModalActivityReason","visible","onClose","modalConfirm","textTitle","testID","isLoading","useState","createElement","Modal","animationType","transparent","View","style","flex","justifyContent","alignItems","backgroundColor","width","theme","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","marginLeft","flexStyle","flexDirection","Icons","icon","color","background","neutral","size","Typography","text","margins","fontFamily","fonts","inter_bold_700","fontSizes","md","padding","xs","label","placeholderTextColor","placeholder","marginTop","Button","title","onPress","height","disabled","buttonTextStyle","blue","fontSize","fontWeight","textAlign","borderWidth","thin","borderColor","displayName","_default","exports"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React, { useState } from \"react\";\r\nimport { Modal, View } from \"react-native\";\r\n\r\n// components\r\nimport Box from \"../../box\";\r\nimport { Typography } from \"../../typography\";\r\nimport { Button } from \"../../button\";\r\n\r\nimport InputTextCounter from \"../../input-text-counter\";\r\n\r\n// commons / svg\r\nimport { Icons } from \"../../../common/icons-svg\";\r\n\r\n// typings\r\nimport type { IModalActivityReasonProps } from \"./interface\";\r\n\r\n// styles\r\nimport { theme } from \"../../../styles/theme/theme\";\r\n\r\nconst ModalActivityReason: React.FC<IModalActivityReasonProps> = ({\r\n visible,\r\n onClose,\r\n modalConfirm,\r\n textTitle,\r\n testID,\r\n}) => {\r\n const [isLoading] = useState(false);\r\n\r\n return (\r\n <Modal testID={testID} animationType=\"fade\" transparent visible={visible}>\r\n <View\r\n style={{\r\n flex: 1,\r\n justifyContent: \"center\",\r\n alignItems: \"center\",\r\n backgroundColor: \"rgba(0,0,0,0.6)\",\r\n }}\r\n >\r\n <Box\r\n width={\"90%\"}\r\n backgroundColor={theme.colors.orange[500]}\r\n borderStyled={{\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n paddingStyle={{\r\n paddingLeft: theme.paddings[\"2xs\"],\r\n paddingRight: theme.paddings[\"2xs\"],\r\n paddingTop: theme.paddings.sm,\r\n paddingBottom: theme.paddings.sm,\r\n }}\r\n >\r\n <Box\r\n marginStyle={{ marginBottom: 10, marginLeft: 4 }}\r\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\r\n >\r\n <Icons\r\n icon=\"EXCLAMATION_TRIANGLE\"\r\n color={theme.colors.orange[500]}\r\n background={theme.colors.neutral[300]}\r\n size={22}\r\n />\r\n <Typography\r\n text={`${textTitle ?? \"Motivo da exclusão\"}`}\r\n color={theme.colors.neutral[25]}\r\n marginLeft={theme.margins[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n size={theme.fontSizes.md}\r\n />\r\n </Box>\r\n\r\n <Box\r\n backgroundColor={theme.colors.neutral[300]}\r\n paddingStyle={{\r\n padding: theme.paddings.xs,\r\n }}\r\n borderStyled={{\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n >\r\n <Box width=\"100%\">\r\n <InputTextCounter\r\n label={`${textTitle || \"Motivo da exclusão\"}`}\r\n placeholderTextColor=\"#9B9B9B\"\r\n placeholder=\"Motivo da exclusão\"\r\n />\r\n </Box>\r\n <Box\r\n marginStyle={{ marginTop: 4 }}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n justifyContent: \"space-between\",\r\n }}\r\n >\r\n <Button\r\n title=\"CANCELAR\"\r\n onPress={onClose}\r\n width={\"48%\"}\r\n height={40}\r\n isLoading={isLoading}\r\n disabled={isLoading}\r\n backgroundColor={theme.colors.neutral[300]}\r\n buttonTextStyle={{\r\n color: theme.colors.blue[100],\r\n fontFamily: \"Inter-Medium\",\r\n fontSize: theme.fontSizes.xs,\r\n fontWeight: \"500\",\r\n }}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n textAlign: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: theme.colors.blue[100],\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n />\r\n <Button\r\n title=\"CONFIRMAR\"\r\n onPress={() => {\r\n modalConfirm(true);\r\n onClose();\r\n }}\r\n width={\"48%\"}\r\n height={40}\r\n isLoading={isLoading}\r\n disabled={isLoading}\r\n backgroundColor={theme.colors.blue[500]}\r\n buttonTextStyle={{\r\n color: theme.colors.neutral[25],\r\n fontFamily: \"Inter-Medium\",\r\n fontSize: theme.fontSizes.xs,\r\n fontWeight: \"500\",\r\n }}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n textAlign: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: theme.colors.blue[100],\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n />\r\n </Box>\r\n </Box>\r\n </Box>\r\n </View>\r\n </Modal>\r\n );\r\n};\r\n\r\nModalActivityReason.displayName = \"ModalActivityReason\";\r\n\r\nexport default ModalActivityReason;\r\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AAEA,IAAAM,iBAAA,GAAAH,sBAAA,CAAAH,OAAA;AAGA,IAAAO,SAAA,GAAAP,OAAA;AAMA,IAAAQ,MAAA,GAAAR,OAAA;AAAoD,SAAAG,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,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,EAAErB,YAAK,CAACC,MAAM,CAACsB,OAAO,CAAC,EAAE,CAAC;MAC/BK,UAAU,EAAE,cAAc;MAC1BkB,QAAQ,EAAE9C,YAAK,CAAC+B,SAAS,CAACG,EAAE;MAC5Ba,UAAU,EAAE;IACd,CAAE;IACF9B,SAAS,EAAE;MACTC,aAAa,EAAE,KAAK;MACpBrB,UAAU,EAAE,QAAQ;MACpBD,cAAc,EAAE,QAAQ;MACxBoD,SAAS,EAAE;IACb,CAAE;IACF7C,YAAY,EAAE;MACZ8C,WAAW,EAAEjD,YAAK,CAACK,YAAY,CAAC6C,IAAI;MACpCC,WAAW,EAAEnD,YAAK,CAACC,MAAM,CAAC4C,IAAI,CAAC,GAAG,CAAC;MACnCzC,YAAY,EAAEJ,YAAK,CAACK,YAAY,CAACC;IACnC;EAAE,CACH,CACE,CACF,CACF,CACD,CACD,CAAC;AAEZ,CAAC;AAEDzB,mBAAmB,CAACuE,WAAW,GAAG,qBAAqB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA3F,OAAA,GAEzCkB,mBAAmB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=interface.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/* eslint-disable no-unused-vars */\r\ninterface IModalActivityReasonProps {\r\n visible: boolean;\r\n onClose: () => void;\r\n modalConfirm: (value: true) => void;\r\n textTitle?: string;\r\n testID?: string;\r\n}\r\n\r\nexport type { IModalActivityReasonProps };\r\n"],"mappings":"","ignoreList":[]}
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.ModalChangeActivity = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _box = _interopRequireDefault(require("../box"));
10
- var _typography = require("../typography");
11
- var _selectOption = require("../selects/select-option");
12
- var _button = require("../button");
13
- var _theme = require("../../styles/theme/theme");
14
- var _iconsSvg = require("../../common/icons-svg");
9
+ var _box = _interopRequireDefault(require("../../box"));
10
+ var _typography = require("../../typography");
11
+ var _button = require("../../button");
12
+ var _selectOption = _interopRequireDefault(require("../../selects/select-option"));
13
+ var _theme = require("../../../styles/theme/theme");
14
+ var _iconsSvg = require("../../../common/icons-svg");
15
15
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
16
  /* eslint-disable no-unused-vars */
17
17
  /**
@@ -144,7 +144,7 @@ const ModalChangeActivity = ({
144
144
  flexWrap: "wrap",
145
145
  maxWidth: "100%"
146
146
  }
147
- })), /*#__PURE__*/_react.default.createElement(_selectOption.SelectOption, {
147
+ })), /*#__PURE__*/_react.default.createElement(_selectOption.default, {
148
148
  titleLabel: "Selecione atividade",
149
149
  sizeTitleLabel: _theme.theme.fontSizes.xs,
150
150
  dataOption: options,
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_button","_selectOption","_theme","_iconsSvg","e","__esModule","default","options","label","value","key","ModalChangeActivity","visible","onClose","modalConfirm","descricao","isLoading","React","useState","initial","toLowerCase","replace","selectedOption","setSelectedOption","handleConfirm","selected","find","opt","createElement","Modal","animationType","transparent","View","style","flex","justifyContent","alignItems","backgroundColor","width","theme","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","margins","marginLeft","flexStyle","flexDirection","Icons","icon","color","black","background","yellow","size","Typography","text","fontFamily","fonts","inter_bold_700","fontSizes","md","neutral","padding","xs","inter_medium_500","flexWrap","maxWidth","titleLabel","sizeTitleLabel","dataOption","handleSelectDown","option","o","marginTop","Button","title","onPress","height","disabled","buttonTextStyle","blue","fontSize","fontWeight","textAlign","borderWidth","thin","borderColor","exports"],"sources":["index.tsx"],"sourcesContent":["/* eslint-disable no-unused-vars */\n/**\n * IMPORTS\n */\nimport React from \"react\";\n// libs RN\nimport { Modal, View } from \"react-native\";\n\n// componentes internos\nimport Box from \"../../box\";\nimport { Typography } from \"../../typography\";\nimport { Button } from \"../../button\";\nimport SelectOption from \"../../selects/select-option\";\n\n// styles / theme\nimport { theme } from \"../../../styles/theme/theme\";\n\n// assets / icons\nimport { Icons } from \"../../../common/icons-svg\";\n\n/**\n * TYPES\n */\ninterface IModalChangeActivityProps {\n visible: boolean;\n onClose: () => void;\n modalConfirm: (newData: { label: string; value: string; key: number }) => void;\n descricao: string;\n}\n\n/**\n * CONSTANTS\n */\nconst options = [\n { label: \"Selecione atividade\", value: \"none\", key: 0 },\n { label: \"Descanso\", value: \"descanso\", key: 5 },\n { label: \"Repouso Noturno\", value: \"repouso_noturno\", key: 6 },\n { label: \"Refeição\", value: \"refeição\", key: 7 },\n { label: \"Repouso Semanal\", value: \"repouso_semanal\", key: 9 },\n];\n\n/**\n * COMPONENT\n */\nexport const ModalChangeActivity: React.FC<IModalChangeActivityProps> = ({\n visible,\n onClose,\n modalConfirm,\n descricao,\n}) => {\n const [isLoading] = React.useState(false);\n\n const initial = (descricao ?? \"\").toLowerCase().replace(/\\s+/g, \"_\");\n const [selectedOption, setSelectedOption] = React.useState(initial || \"none\");\n\n const handleConfirm = () => {\n const selected = options.find((opt) => opt.value === selectedOption);\n if (selected && selected.value !== \"none\") {\n modalConfirm({\n label: selected.label,\n value: selected.value,\n key: selected.key,\n });\n }\n onClose();\n };\n\n return (\n <Modal animationType=\"fade\" transparent visible={visible}>\n <View\n style={{\n flex: 1,\n justifyContent: \"center\",\n alignItems: \"center\",\n backgroundColor: \"rgba(0,0,0,0.6)\",\n }}\n >\n <Box\n width={346}\n backgroundColor={theme.colors.orange[500]}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_medium,\n }}\n paddingStyle={{\n paddingLeft: theme.paddings[\"2xs\"],\n paddingRight: theme.paddings[\"2xs\"],\n paddingTop: theme.paddings.sm,\n paddingBottom: theme.paddings.sm,\n }}\n >\n <Box\n marginStyle={{ marginBottom: theme.margins[\"2xs\"], marginLeft: theme.margins[\"1xs\"] }}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\n >\n <Icons\n icon=\"EXCLAMATION_TRIANGLE\"\n color={theme.colors.black[10]}\n background={theme.colors.yellow[50]}\n size={22}\n />\n <Typography\n text=\"Alterar Atividade\"\n color=\"#fff\"\n marginLeft={theme.margins[\"2xs\"]}\n fontFamily={theme.fonts.inter_bold_700}\n size={theme.fontSizes.md}\n />\n </Box>\n\n <Box\n backgroundColor={theme.colors.neutral[300]}\n paddingStyle={{ padding: theme.paddings.xs }}\n borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}\n >\n <Box flexStyle={{ flexDirection: \"row\", justifyContent: \"flex-start\" }} width={\"90%\"}>\n <Typography\n text={`Deseja realmente alterar sua atividade de ${descricao || \"atividade atual\"}?`}\n color={theme.colors.black[25]}\n fontFamily={theme.fonts.inter_medium_500}\n size={theme.fontSizes.xs}\n style={{ flexWrap: \"wrap\", maxWidth: \"100%\" }}\n />\n </Box>\n\n <SelectOption\n titleLabel=\"Selecione atividade\"\n sizeTitleLabel={theme.fontSizes.xs}\n dataOption={options}\n handleSelectDown={(opt) => {\n const option = options.find((o) => o.label === opt || o.value === opt);\n if (option) setSelectedOption(option.value);\n }}\n backgroundColor={theme.colors.neutral[300]}\n />\n\n <Box\n marginStyle={{ marginTop: theme.margins[\"1xs\"] }}\n flexStyle={{ flexDirection: \"row\", justifyContent: \"space-between\" }}\n >\n <Button\n title=\"CANCELAR\"\n onPress={onClose}\n width={\"48%\"}\n height={36}\n isLoading={isLoading}\n disabled={isLoading}\n backgroundColor={theme.colors.neutral[300]}\n buttonTextStyle={{\n color: theme.colors.blue[100],\n fontFamily: \"Inter-Medium\",\n fontSize: theme.fontSizes.xs,\n fontWeight: \"500\",\n }}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n textAlign: \"center\",\n }}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderColor: theme.colors.blue[100],\n borderRadius: theme.borderWidths.thick_medium,\n }}\n />\n <Button\n title=\"CONFIRMAR\"\n onPress={handleConfirm}\n width={\"48%\"}\n height={36}\n isLoading={isLoading}\n disabled={isLoading}\n backgroundColor={theme.colors.blue[100]}\n buttonTextStyle={{\n color: \"#fff\",\n fontFamily: \"Inter-Medium\",\n fontSize: theme.fontSizes.xs,\n fontWeight: \"500\",\n }}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n textAlign: \"center\",\n }}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderColor: theme.colors.blue[100],\n borderRadius: theme.borderWidths.thick_medium,\n }}\n />\n </Box>\n </Box>\n </Box>\n </View>\n </Modal>\n );\n};\n"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AAGA,IAAAM,MAAA,GAAAN,OAAA;AAGA,IAAAO,SAAA,GAAAP,OAAA;AAAkD,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAlBlD;AACA;AACA;AACA;;AAEA;;AAGA;;AAMA;;AAGA;;AAGA;AACA;AACA;;AAQA;AACA;AACA;AACA,MAAMG,OAAO,GAAG,CACd;EAAEC,KAAK,EAAE,qBAAqB;EAAEC,KAAK,EAAE,MAAM;EAAEC,GAAG,EAAE;AAAE,CAAC,EACvD;EAAEF,KAAK,EAAE,UAAU;EAAEC,KAAK,EAAE,UAAU;EAAEC,GAAG,EAAE;AAAE,CAAC,EAChD;EAAEF,KAAK,EAAE,iBAAiB;EAAEC,KAAK,EAAE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reList":[]}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _datetimepicker = _interopRequireDefault(require("@react-native-community/datetimepicker"));
10
+ var _box = _interopRequireDefault(require("../../box"));
11
+ var _typography = require("../../typography");
12
+ var _iconsSvg = require("../../../common/icons-svg");
13
+ var _asBaseComponent = require("../../../@types/as-base-component");
14
+ var _theme = require("../../../styles/theme/theme");
15
+ var _styles = require("./styles");
16
+ var _formatData = require("../../../utils/format-data");
17
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
+ /**
21
+ * IMPORTS
22
+ */
23
+
24
+ // seus componentes
25
+
26
+ // commons / svg
27
+
28
+ // typings
29
+
30
+ // styles
31
+
32
+ const ActivityFields = /*#__PURE__*/(0, _react.forwardRef)(({
33
+ value,
34
+ icon,
35
+ onPressConfirm,
36
+ disabled = false
37
+ }, ref) => {
38
+ const [modalVisible, setModalVisible] = (0, _react.useState)(false);
39
+ const [pickerDate, setPickerDate] = (0, _react.useState)(new Date());
40
+ const isCalendar = (icon !== null && icon !== void 0 ? icon : "CALENDAR") === "CALENDAR";
41
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
42
+ ref: ref,
43
+ activeOpacity: 0.7,
44
+ style: [_styles.styles.field, {
45
+ borderColor: _theme.theme.colors.gray[700],
46
+ backgroundColor: _theme.theme.colors.neutral[300],
47
+ opacity: disabled ? 0.7 : 1
48
+ }],
49
+ onPress: () => setModalVisible(true),
50
+ disabled: disabled
51
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
52
+ style: _styles.styles.row
53
+ }, /*#__PURE__*/_react.default.createElement(_box.default, {
54
+ width: "10%",
55
+ height: 45,
56
+ flexStyle: {
57
+ alignItems: "center",
58
+ justifyContent: "center"
59
+ }
60
+ }, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
61
+ icon: icon ? icon : "CALENDAR",
62
+ color: _theme.theme.colors.black[100],
63
+ size: 18
64
+ })), /*#__PURE__*/_react.default.createElement(_box.default, {
65
+ width: "90%",
66
+ height: 45,
67
+ flexStyle: {
68
+ alignItems: "center",
69
+ justifyContent: "center"
70
+ }
71
+ }, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
72
+ text: String(value),
73
+ color: _theme.theme.colors.blue[500],
74
+ fontFamily: _theme.theme.fonts.inter_medium_500,
75
+ size: _theme.theme.fontSizes.md,
76
+ marginRight: 44
77
+ })))), modalVisible && /*#__PURE__*/_react.default.createElement(_datetimepicker.default, {
78
+ value: pickerDate,
79
+ mode: isCalendar ? "date" : "time",
80
+ is24Hour: true,
81
+ onChange: (event, date) => {
82
+ if ((event === null || event === void 0 ? void 0 : event.type) === "set" && date) {
83
+ setPickerDate(date);
84
+ const seconds = date.getHours() * 3600 + date.getMinutes() * 60;
85
+ const nextValue = isCalendar ? (0, _formatData.formatDate)(date) : (0, _formatData.formHoursMinute)(String(seconds));
86
+ // @ts-ignore genérico aceita string
87
+ onPressConfirm(nextValue);
88
+ }
89
+ setModalVisible(false);
90
+ }
91
+ }));
92
+ });
93
+ ActivityFields.displayName = "ActivityFields";
94
+ var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(ActivityFields);
95
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_datetimepicker","_interopRequireDefault","_box","_typography","_iconsSvg","_asBaseComponent","_theme","_styles","_formatData","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ActivityFields","forwardRef","value","icon","onPressConfirm","disabled","ref","modalVisible","setModalVisible","useState","pickerDate","setPickerDate","Date","isCalendar","createElement","Fragment","TouchableOpacity","activeOpacity","style","styles","field","borderColor","theme","colors","gray","backgroundColor","neutral","opacity","onPress","View","row","width","height","flexStyle","alignItems","justifyContent","Icons","color","black","size","Typography","text","String","blue","fontFamily","fonts","inter_medium_500","fontSizes","md","marginRight","mode","is24Hour","onChange","event","date","type","seconds","getHours","getMinutes","nextValue","formatDate","formHoursMinute","displayName","_default","exports","asBaseComponent"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React, { forwardRef, useState } from \"react\";\n\nimport { View, TouchableOpacity } from \"react-native\";\nimport DateTimePicker from \"@react-native-community/datetimepicker\";\n\n// seus componentes\nimport Box from \"../../box\";\nimport { Typography } from \"../../typography\";\n\n// commons / svg\nimport { Icons } from \"../../../common/icons-svg\";\n\n// typings\nimport type { IActivityFieldsProps } from \"./interface\";\nimport { asBaseComponent } from \"../../../@types/as-base-component\";\n\n// styles\nimport { theme } from \"../../../styles/theme/theme\";\nimport { styles } from \"./styles\";\nimport { formatDate, formHoursMinute } from \"../../../utils/format-data\";\n\nconst ActivityFields = forwardRef<any, IActivityFieldsProps<any>>(\n ({ value, icon, onPressConfirm, disabled = false }, ref): React.ReactElement => {\n const [modalVisible, setModalVisible] = useState(false);\n const [pickerDate, setPickerDate] = useState<Date>(new Date());\n\n const isCalendar = (icon ?? \"CALENDAR\") === \"CALENDAR\";\n\n return (\n <>\n <TouchableOpacity\n ref={ref}\n activeOpacity={0.7}\n style={[\n styles.field,\n {\n borderColor: theme.colors.gray[700],\n backgroundColor: theme.colors.neutral[300],\n opacity: disabled ? 0.7 : 1,\n },\n ]}\n onPress={() => setModalVisible(true)}\n disabled={disabled}\n >\n <View style={styles.row}>\n <Box\n width={\"10%\"}\n height={45}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\" }}\n >\n <Icons icon={icon ? icon : \"CALENDAR\"} color={theme.colors.black[100]} size={18} />\n </Box>\n\n <Box\n width={\"90%\"}\n height={45}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\" }}\n >\n <Typography\n text={String(value)}\n color={theme.colors.blue[500]}\n fontFamily={theme.fonts.inter_medium_500}\n size={theme.fontSizes.md}\n marginRight={44}\n />\n </Box>\n </View>\n </TouchableOpacity>\n\n {modalVisible && (\n <DateTimePicker\n value={pickerDate}\n mode={isCalendar ? \"date\" : \"time\"}\n is24Hour\n onChange={(event: any, date?: Date) => {\n if (event?.type === \"set\" && date) {\n setPickerDate(date);\n const seconds = date.getHours() * 3600 + date.getMinutes() * 60;\n const nextValue = isCalendar ? formatDate(date) : formHoursMinute(String(seconds));\n // @ts-ignore genérico aceita string\n onPressConfirm(nextValue);\n }\n setModalVisible(false);\n }}\n />\n )}\n </>\n );\n }\n);\n\nActivityFields.displayName = \"ActivityFields\";\n\nexport default asBaseComponent(ActivityFields);\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AAGA,IAAAI,IAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAGA,IAAAM,SAAA,GAAAN,OAAA;AAIA,IAAAO,gBAAA,GAAAP,OAAA;AAGA,IAAAQ,MAAA,G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CAAC2C,IAAI,CAAC;QACnB,MAAME,OAAO,GAAGF,IAAI,CAACG,QAAQ,CAAC,CAAC,GAAG,IAAI,GAAGH,IAAI,CAACI,UAAU,CAAC,CAAC,GAAG,EAAE;QAC/D,MAAMC,SAAS,GAAG9C,UAAU,GAAG,IAAA+C,sBAAU,EAACN,IAAI,CAAC,GAAG,IAAAO,2BAAe,EAACnB,MAAM,CAACc,OAAO,CAAC,CAAC;QAClF;QACApD,cAAc,CAACuD,SAAS,CAAC;MAC3B;MACAnD,eAAe,CAAC,KAAK,CAAC;IACxB;EAAE,CACH,CAEH,CAAC;AAEP,CACF,CAAC;AAEDR,cAAc,CAAC8D,WAAW,GAAG,gBAAgB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAlF,OAAA,GAE/B,IAAAmF,gCAAe,EAACjE,cAAc,CAAC","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["interface.ts"],"sourcesContent":["/* eslint-disable no-unused-vars */\r\n/**\r\n * IMPORTS\r\n */\r\n\r\nimport type { TouchableOpacityProps } from \"react-native\";\r\n\r\n// commons / svg\r\nimport type { SVG_NAME } from \"../../../common/icons-svg/constants\";\r\n\r\ntype IActivityFieldsProps<T> = TouchableOpacityProps & {\r\n /** Valor exibido e retornado no onPressConfirm */\r\n value: T | null;\r\n\r\n /** Ícone à esquerda (padrão: 'CALENDAR') */\r\n icon: keyof typeof SVG_NAME;\r\n\r\n /** Desabilita interação */\r\n disabled?: boolean;\r\n\r\n /** Cor do texto (opcional) */\r\n textColor?: string;\r\n\r\n /** Clique confirma e devolve o value */\r\n onPressConfirm: (value: T) => void;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport type { IActivityFieldsProps };\r\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.styles = void 0;
7
+ var _reactNative = require("react-native");
8
+ /**
9
+ * IMPORTS
10
+ */
11
+
12
+ const styles = exports.styles = _reactNative.StyleSheet.create({
13
+ field: {
14
+ width: "100%",
15
+ height: 45,
16
+ borderRadius: 12,
17
+ borderWidth: 1,
18
+ paddingHorizontal: 12,
19
+ justifyContent: "center",
20
+ marginTop: 10,
21
+ marginBottom: 16
22
+ },
23
+ row: {
24
+ flexDirection: "row",
25
+ alignItems: "center",
26
+ justifyContent: "space-around"
27
+ }
28
+ });
29
+
30
+ /**
31
+ * EXPORTS
32
+ */
33
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","styles","exports","StyleSheet","create","field","width","height","borderRadius","borderWidth","paddingHorizontal","justifyContent","marginTop","marginBottom","row","flexDirection","alignItems"],"sources":["styles.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\n\r\nimport { StyleSheet } from \"react-native\";\r\n\r\nconst styles = StyleSheet.create({\r\n field: {\r\n width: \"100%\",\r\n height: 45,\r\n borderRadius: 12,\r\n borderWidth: 1,\r\n paddingHorizontal: 12,\r\n justifyContent: \"center\",\r\n marginTop: 10,\r\n marginBottom: 16,\r\n },\r\n row: { flexDirection: \"row\", alignItems: \"center\", justifyContent: \"space-around\" },\r\n});\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { styles };\r\n"],"mappings":";;;;;;AAIA,IAAAA,YAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIA,MAAMC,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/BC,KAAK,EAAE;IACLC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,CAAC;IACdC,iBAAiB,EAAE,EAAE;IACrBC,cAAc,EAAE,QAAQ;IACxBC,SAAS,EAAE,EAAE;IACbC,YAAY,EAAE;EAChB,CAAC;EACDC,GAAG,EAAE;IAAEC,aAAa,EAAE,KAAK;IAAEC,UAAU,EAAE,QAAQ;IAAEL,cAAc,EAAE;EAAe;AACpF,CAAC,CAAC;;AAEF;AACA;AACA","ignoreList":[]}