react-native-exp-fig 0.1.38 → 0.1.40

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 (55) hide show
  1. package/lib/commonjs/components/modal-create-activitie/index.js +17 -13
  2. package/lib/commonjs/components/modal-create-activitie/index.js.map +1 -1
  3. package/lib/commonjs/components/modal-create-activitie/interface.js.map +1 -1
  4. package/lib/commonjs/components/modal-journey-rectification/index.js +10 -10
  5. package/lib/commonjs/components/modal-journey-rectification/index.js.map +1 -1
  6. package/lib/commonjs/components/modals/modal-activities/data-activities/index.js +25 -1
  7. package/lib/commonjs/components/modals/modal-activities/data-activities/index.js.map +1 -1
  8. package/lib/commonjs/components/modals/modal-activity-reason/index.js +6 -5
  9. package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -1
  10. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -1
  11. package/lib/commonjs/components/modals/modal-change-activity/index.js.map +1 -1
  12. package/lib/commonjs/components/selects/select-option/index.js +12 -10
  13. package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
  14. package/lib/commonjs/components/selects/select-option/interface.d.js.map +1 -1
  15. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +8 -8
  16. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -1
  17. package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js +9 -1
  18. package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -1
  19. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +35 -23
  20. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
  21. package/lib/module/components/modal-create-activitie/index.js +17 -13
  22. package/lib/module/components/modal-create-activitie/index.js.map +1 -1
  23. package/lib/module/components/modal-create-activitie/interface.js.map +1 -1
  24. package/lib/module/components/modal-journey-rectification/index.js +10 -10
  25. package/lib/module/components/modal-journey-rectification/index.js.map +1 -1
  26. package/lib/module/components/modals/modal-activities/data-activities/index.js +24 -0
  27. package/lib/module/components/modals/modal-activities/data-activities/index.js.map +1 -1
  28. package/lib/module/components/modals/modal-activity-reason/index.js +6 -5
  29. package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -1
  30. package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -1
  31. package/lib/module/components/modals/modal-change-activity/index.js.map +1 -1
  32. package/lib/module/components/selects/select-option/index.js +12 -10
  33. package/lib/module/components/selects/select-option/index.js.map +1 -1
  34. package/lib/module/components/selects/select-option/interface.d.js.map +1 -1
  35. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +8 -8
  36. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -1
  37. package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js +9 -1
  38. package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -1
  39. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +35 -23
  40. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -1
  41. package/lib/typescript/src/components/modal-create-activitie/interface.d.ts +1 -0
  42. package/lib/typescript/src/components/modals/modal-activities/data-activities/index.d.ts +7 -0
  43. package/package.json +4 -8
  44. package/src/components/modal-create-activitie/index.tsx +216 -211
  45. package/src/components/modal-create-activitie/interface.ts +23 -22
  46. package/src/components/modal-journey-rectification/index.tsx +213 -211
  47. package/src/components/modals/modal-activities/data-activities/index.ts +31 -0
  48. package/src/components/modals/modal-activity-reason/index.tsx +163 -162
  49. package/src/components/modals/modal-activity-reason/interface.d.ts +10 -10
  50. package/src/components/modals/modal-change-activity/index.tsx +1 -1
  51. package/src/components/selects/select-option/index.tsx +133 -124
  52. package/src/components/selects/select-option/interface.d.ts +19 -18
  53. package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +192 -192
  54. package/src/stories/modal-create-activitie/modal-create-activitie.stories.tsx +8 -0
  55. package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +170 -161
@@ -1,11 +1,11 @@
1
- /**
2
- * IMPORTS
1
+ /**
2
+ * IMPORTS
3
3
  */
4
4
  import React, { useMemo, useState, useCallback } from "react";
5
5
  import { Modal, View, Pressable } from "react-native";
6
6
 
7
7
  // components
8
- import Box from "..//box";
8
+ import Box from "../box";
9
9
  import { Button } from "../button";
10
10
  import { Typography } from "../typography";
11
11
  import ActivityFields from "../selects/select-date-and-hours";
@@ -16,7 +16,7 @@ import { Icons } from "../../common/icons-svg";
16
16
  import { asBaseComponent } from "../../@types/as-base-component";
17
17
 
18
18
  // helpers
19
- import { OPTIONS } from "../../utils/options-activity";
19
+ import { retificacaoActivities } from "../modals/modal-activities/data-activities";
20
20
 
21
21
  // typings
22
22
 
@@ -30,19 +30,19 @@ const ModalJourneyRectification = /*#__PURE__*/React.memo(({
30
30
  onPressConfirm,
31
31
  textTitle
32
32
  }) => {
33
- var _OPTIONS$0$value, _OPTIONS$;
33
+ var _retificacaoActivitie, _retificacaoActivitie2;
34
34
  const [dateAndHours, setDateAndHours] = useState({
35
35
  date: formatDate(new Date()),
36
36
  hours: formHoursMinute(String(new Date().getHours() * 3600 + new Date().getMinutes() * 60))
37
37
  });
38
38
 
39
39
  // estados controlados mínimos
40
- const [selectedActivitie, setSelectedActivitie] = useState((_OPTIONS$0$value = (_OPTIONS$ = OPTIONS[0]) === null || _OPTIONS$ === void 0 ? void 0 : _OPTIONS$.value) !== null && _OPTIONS$0$value !== void 0 ? _OPTIONS$0$value : null);
40
+ const [selectedActivitie, setSelectedActivitie] = useState((_retificacaoActivitie = (_retificacaoActivitie2 = retificacaoActivities[0]) === null || _retificacaoActivitie2 === void 0 ? void 0 : _retificacaoActivitie2.value) !== null && _retificacaoActivitie !== void 0 ? _retificacaoActivitie : null);
41
41
 
42
42
  // label do motivo derivada com memo
43
43
  const activitieLabel = useMemo(() => {
44
- var _OPTIONS$find$label, _OPTIONS$find;
45
- return (_OPTIONS$find$label = (_OPTIONS$find = OPTIONS.find(activitie => activitie.value === selectedActivitie)) === null || _OPTIONS$find === void 0 ? void 0 : _OPTIONS$find.label) !== null && _OPTIONS$find$label !== void 0 ? _OPTIONS$find$label : null;
44
+ var _retificacaoActivitie3, _retificacaoActivitie4;
45
+ return (_retificacaoActivitie3 = retificacaoActivities === null || retificacaoActivities === void 0 || (_retificacaoActivitie4 = retificacaoActivities.find(activitie => activitie.value === selectedActivitie)) === null || _retificacaoActivitie4 === void 0 ? void 0 : _retificacaoActivitie4.label) !== null && _retificacaoActivitie3 !== void 0 ? _retificacaoActivitie3 : null;
46
46
  }, [selectedActivitie]);
47
47
 
48
48
  // handlers estáveis
@@ -54,7 +54,7 @@ const ModalJourneyRectification = /*#__PURE__*/React.memo(({
54
54
  }, [onClose]);
55
55
  const handleConfirm = useCallback(() => {
56
56
  onPressConfirm === null || onPressConfirm === void 0 || onPressConfirm({
57
- reasonValue: selectedActivitie,
57
+ value: selectedActivitie,
58
58
  label: activitieLabel,
59
59
  dateAndHours: dateAndHours
60
60
  });
@@ -114,7 +114,7 @@ const ModalJourneyRectification = /*#__PURE__*/React.memo(({
114
114
  }), /*#__PURE__*/React.createElement(SelectOption, {
115
115
  titleLabel: "Selecione um motivo",
116
116
  sizeTitleLabel: 18,
117
- dataOption: OPTIONS,
117
+ dataOption: retificacaoActivities,
118
118
  handleSelectDown: handleChangeReason,
119
119
  backgroundColor: theme.colors.neutral[300]
120
120
  }), /*#__PURE__*/React.createElement(ActivityFields, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","useMemo","useState","useCallback","Modal","View","Pressable","Box","Button","Typography","ActivityFields","SelectOption","Icons","asBaseComponent","OPTIONS","theme","styles","formatDate","formHoursMinute","ModalJourneyRectification","memo","visible","onClose","onPressConfirm","textTitle","_OPTIONS$0$value","_OPTIONS$","dateAndHours","setDateAndHours","date","Date","hours","String","getHours","getMinutes","selectedActivitie","setSelectedActivitie","value","activitieLabel","_OPTIONS$find$label","_OPTIONS$find","find","activitie","label","handleChangeReason","handleCancel","handleConfirm","reasonValue","createElement","animationType","transparent","onRequestClose","statusBarTranslucent","style","overlay","onPress","width","backgroundColor","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","headerRow","icon","color","background","neutral","size","text","marginLeft","margins","fontFamily","fonts","inter_bold","fontWeight","fontSizes","lg","padding","xs","black","inter_regular_400","lineHeight","marginBottom","titleLabel","sizeTitleLabel","dataOption","handleSelectDown","disabled","actions","title","height","isLoading","buttonTextStyle","blue","inter_medium_500","fontSize","flexStyle","flexDirection","alignItems","justifyContent","textAlign","borderWidth","thin","borderColor","displayName"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React, { useMemo, useState, useCallback } from \"react\";\r\nimport { Modal, View, Pressable } from \"react-native\";\r\n\r\n// components\r\nimport Box from \"..//box\";\r\nimport { Button }from \"../button\";\r\n\r\nimport { Typography } from \"../typography\";\r\n\r\nimport ActivityFields from \"../selects/select-date-and-hours\";\r\n\r\nimport SelectOption from \"../selects/select-option\";\r\n\r\n// commons\r\nimport { Icons } from \"../../common/icons-svg\";\r\nimport { asBaseComponent } from \"../../@types/as-base-component\";\r\n\r\n// helpers\r\nimport { OPTIONS } from \"../../utils/options-activity\";\r\n\r\n// typings\r\nimport type { IDateAndHoursProps, IModalJourneyRectificationProps } from \"./interface\";\r\n\r\n// styles / theme\r\nimport { theme } from \"../../styles/theme/theme\";\r\nimport { styles } from \"./styles\";\r\nimport { formatDate, formHoursMinute } from \"../../utils/format-data\";\r\n\r\nconst ModalJourneyRectification: React.FC<IModalJourneyRectificationProps<any>> = React.memo(\r\n ({ visible, onClose, onPressConfirm, textTitle }) => {\r\n const [dateAndHours, setDateAndHours] = useState<IDateAndHoursProps>({\r\n date: formatDate(new Date()),\r\n hours: formHoursMinute(String(new Date().getHours() * 3600 + new Date().getMinutes() * 60)),\r\n });\r\n\r\n // estados controlados mínimos\r\n const [selectedActivitie, setSelectedActivitie] = useState<string | null>(\r\n OPTIONS[0]?.value ?? null\r\n );\r\n\r\n // label do motivo derivada com memo\r\n const activitieLabel = useMemo(\r\n () => OPTIONS.find((activitie) => activitie.value === selectedActivitie)?.label ?? null,\r\n [selectedActivitie]\r\n );\r\n\r\n // handlers estáveis\r\n const handleChangeReason = useCallback((value: string | null) => {\r\n setSelectedActivitie(value);\r\n }, []);\r\n\r\n const handleCancel = useCallback(() => {\r\n onClose?.();\r\n }, [onClose]);\r\n\r\n const handleConfirm = useCallback(() => {\r\n onPressConfirm?.({\r\n reasonValue: selectedActivitie,\r\n label: activitieLabel,\r\n dateAndHours: dateAndHours,\r\n });\r\n\r\n onClose?.();\r\n }, [onPressConfirm, onClose, activitieLabel, selectedActivitie, dateAndHours]);\r\n\r\n return (\r\n <Modal\r\n animationType=\"fade\"\r\n transparent\r\n visible={visible}\r\n onRequestClose={handleCancel}\r\n statusBarTranslucent\r\n >\r\n <Pressable style={styles.overlay} onPress={handleCancel}>\r\n <Box\r\n width=\"90%\"\r\n backgroundColor={theme.colors.orange[500]}\r\n borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}\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 <View style={styles.headerRow}>\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 ?? \"Editar atividad\"}\r\n color={theme.colors.neutral[25]}\r\n marginLeft={theme.margins[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_bold}\r\n fontWeight=\"700\"\r\n size={theme.fontSizes.lg}\r\n />\r\n </View>\r\n\r\n <Box\r\n backgroundColor={theme.colors.neutral[300]}\r\n paddingStyle={{ padding: theme.paddings.xs }}\r\n borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}\r\n >\r\n <Typography\r\n text=\"Confirme as alterações antes de salvar.\"\r\n color={theme.colors.black[100]}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n fontWeight=\"400\"\r\n lineHeight={theme.lineHeight[\"2xl\"]}\r\n size={theme.fontSizes.sm}\r\n marginBottom={16}\r\n />\r\n\r\n <SelectOption\r\n titleLabel=\"Selecione um motivo\"\r\n sizeTitleLabel={18}\r\n dataOption={OPTIONS as any}\r\n handleSelectDown={handleChangeReason}\r\n backgroundColor={theme.colors.neutral[300]}\r\n />\r\n\r\n <ActivityFields\r\n disabled={false}\r\n icon={\"CALENDAR\"}\r\n value={dateAndHours?.date}\r\n onPressConfirm={(value) =>\r\n setDateAndHours({ date: value, hours: dateAndHours?.hours })\r\n }\r\n />\r\n\r\n <ActivityFields\r\n disabled={false}\r\n icon={\"TIMER\"}\r\n value={dateAndHours?.hours}\r\n onPressConfirm={(value) =>\r\n setDateAndHours({ date: dateAndHours?.date, hours: value })\r\n }\r\n />\r\n\r\n <View style={styles.actions}>\r\n <Button\r\n title=\"CANCELAR\"\r\n onPress={handleCancel}\r\n width=\"48%\"\r\n height={40}\r\n isLoading={false}\r\n disabled={false}\r\n backgroundColor={theme.colors.neutral[300]}\r\n buttonTextStyle={{\r\n color: theme.colors.blue[500],\r\n fontFamily: theme.fonts.inter_medium_500,\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\r\n <Button\r\n title=\"CONFIRMAR\"\r\n onPress={handleConfirm}\r\n width=\"48%\"\r\n height={40}\r\n isLoading={false}\r\n disabled={false}\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.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 </View>\r\n </Box>\r\n </Box>\r\n </Pressable>\r\n </Modal>\r\n );\r\n }\r\n);\r\n\r\nModalJourneyRectification.displayName = \"ModalJourneyRectification\";\r\nexport default asBaseComponent(ModalJourneyRectification);"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,EAAEC,WAAW,QAAQ,OAAO;AAC7D,SAASC,KAAK,EAAEC,IAAI,EAAEC,SAAS,QAAQ,cAAc;;AAErD;AACA,OAAOC,GAAG,MAAM,SAAS;AACzB,SAASC,MAAM,QAAO,WAAW;AAEjC,SAASC,UAAU,QAAQ,eAAe;AAE1C,OAAOC,cAAc,MAAM,kCAAkC;AAE7D,OAAOC,YAAY,MAAM,0BAA0B;;AAEnD;AACA,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,eAAe,QAAQ,gCAAgC;;AAEhE;AACA,SAASC,OAAO,QAAQ,8BAA8B;;AAEtD;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAChD,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,UAAU,EAAEC,eAAe,QAAQ,yBAAyB;AAErE,MAAMC,yBAAyE,gBAAGnB,KAAK,CAACoB,IAAI,CAC1F,CAAC;EAAEC,OAAO;EAAEC,OAAO;EAAEC,cAAc;EAAEC;AAAU,CAAC,KAAK;EAAA,IAAAC,gBAAA,EAAAC,SAAA;EACnD,MAAM,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C+C,YAAY,CAACiD,IAAI;MACpCC,WAAW,EAAEjG,KAAK,CAAC2C,MAAM,CAAC4C,IAAI,CAAC,GAAG,CAAC;MACnCzC,YAAY,EAAE9C,KAAK,CAAC+C,YAAY,CAACC;IACnC;EAAE,CACH,CACG,CACH,CACF,CACI,CACN,CAAC;AAEZ,CACF,CAAC;AAED5C,yBAAyB,CAAC8F,WAAW,GAAG,2BAA2B;AACnE,eAAepG,eAAe,CAACM,yBAAyB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useMemo","useState","useCallback","Modal","View","Pressable","Box","Button","Typography","ActivityFields","SelectOption","Icons","asBaseComponent","retificacaoActivities","theme","styles","formatDate","formHoursMinute","ModalJourneyRectification","memo","visible","onClose","onPressConfirm","textTitle","_retificacaoActivitie","_retificacaoActivitie2","dateAndHours","setDateAndHours","date","Date","hours","String","getHours","getMinutes","selectedActivitie","setSelectedActivitie","value","activitieLabel","_retificacaoActivitie3","_retificacaoActivitie4","find","activitie","label","handleChangeReason","handleCancel","handleConfirm","createElement","animationType","transparent","onRequestClose","statusBarTranslucent","style","overlay","onPress","width","backgroundColor","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","headerRow","icon","color","background","neutral","size","text","marginLeft","margins","fontFamily","fonts","inter_bold","fontWeight","fontSizes","lg","padding","xs","black","inter_regular_400","lineHeight","marginBottom","titleLabel","sizeTitleLabel","dataOption","handleSelectDown","disabled","actions","title","height","isLoading","buttonTextStyle","blue","inter_medium_500","fontSize","flexStyle","flexDirection","alignItems","justifyContent","textAlign","borderWidth","thin","borderColor","displayName"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React, { useMemo, useState, useCallback } from \"react\";\nimport { Modal, View, Pressable } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Button } from \"../button\";\n\nimport { Typography } from \"../typography\";\n\nimport ActivityFields from \"../selects/select-date-and-hours\";\n\nimport SelectOption from \"../selects/select-option\";\n\n// commons\nimport { Icons } from \"../../common/icons-svg\";\nimport { asBaseComponent } from \"../../@types/as-base-component\";\n\n// helpers\nimport { retificacaoActivities } from \"../modals/modal-activities/data-activities\";\n\n// typings\nimport type { IDateAndHoursProps, IModalJourneyRectificationProps } from \"./interface\";\n\n// styles / theme\nimport { theme } from \"../../styles/theme/theme\";\nimport { styles } from \"./styles\";\nimport { formatDate, formHoursMinute } from \"../../utils/format-data\";\n\nconst ModalJourneyRectification: React.FC<IModalJourneyRectificationProps<any>> = React.memo(\n ({ visible, onClose, onPressConfirm, textTitle }) => {\n const [dateAndHours, setDateAndHours] = useState<IDateAndHoursProps>({\n date: formatDate(new Date()),\n hours: formHoursMinute(String(new Date().getHours() * 3600 + new Date().getMinutes() * 60)),\n });\n\n // estados controlados mínimos\n const [selectedActivitie, setSelectedActivitie] = useState<number | null>(\n retificacaoActivities[0]?.value ?? null\n );\n\n // label do motivo derivada com memo\n const activitieLabel = useMemo(\n () =>\n retificacaoActivities?.find((activitie) => activitie.value === selectedActivitie)?.label ??\n null,\n [selectedActivitie]\n );\n\n // handlers estáveis\n const handleChangeReason = useCallback((value: number | null) => {\n setSelectedActivitie(value);\n }, []);\n\n const handleCancel = useCallback(() => {\n onClose?.();\n }, [onClose]);\n\n const handleConfirm = useCallback(() => {\n onPressConfirm?.({\n value: selectedActivitie,\n label: activitieLabel,\n dateAndHours: dateAndHours,\n });\n\n onClose?.();\n }, [onPressConfirm, onClose, activitieLabel, selectedActivitie, dateAndHours]);\n\n return (\n <Modal\n animationType=\"fade\"\n transparent\n visible={visible}\n onRequestClose={handleCancel}\n statusBarTranslucent\n >\n <Pressable style={styles.overlay} onPress={handleCancel}>\n <Box\n width=\"90%\"\n backgroundColor={theme.colors.orange[500]}\n borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}\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 <View style={styles.headerRow}>\n <Icons\n icon=\"EXCLAMATION_TRIANGLE\"\n color={theme.colors.orange[500]}\n background={theme.colors.neutral[300]}\n size={22}\n />\n <Typography\n text={textTitle ?? \"Editar atividad\"}\n color={theme.colors.neutral[25]}\n marginLeft={theme.margins[\"2xs\"]}\n fontFamily={theme.fonts.inter_bold}\n fontWeight=\"700\"\n size={theme.fontSizes.lg}\n />\n </View>\n\n <Box\n backgroundColor={theme.colors.neutral[300]}\n paddingStyle={{ padding: theme.paddings.xs }}\n borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}\n >\n <Typography\n text=\"Confirme as alterações antes de salvar.\"\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.lineHeight[\"2xl\"]}\n size={theme.fontSizes.sm}\n marginBottom={16}\n />\n\n <SelectOption\n titleLabel=\"Selecione um motivo\"\n sizeTitleLabel={18}\n dataOption={retificacaoActivities as any}\n handleSelectDown={handleChangeReason}\n backgroundColor={theme.colors.neutral[300]}\n />\n\n <ActivityFields\n disabled={false}\n icon={\"CALENDAR\"}\n value={dateAndHours?.date}\n onPressConfirm={(value) =>\n setDateAndHours({ date: value, hours: dateAndHours?.hours })\n }\n />\n\n <ActivityFields\n disabled={false}\n icon={\"TIMER\"}\n value={dateAndHours?.hours}\n onPressConfirm={(value) =>\n setDateAndHours({ date: dateAndHours?.date, hours: value })\n }\n />\n\n <View style={styles.actions}>\n <Button\n title=\"CANCELAR\"\n onPress={handleCancel}\n width=\"48%\"\n height={40}\n isLoading={false}\n disabled={false}\n backgroundColor={theme.colors.neutral[300]}\n buttonTextStyle={{\n color: theme.colors.blue[500],\n fontFamily: theme.fonts.inter_medium_500,\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\n <Button\n title=\"CONFIRMAR\"\n onPress={handleConfirm}\n width=\"48%\"\n height={40}\n isLoading={false}\n disabled={false}\n backgroundColor={theme.colors.blue[500]}\n buttonTextStyle={{\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\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 </View>\n </Box>\n </Box>\n </Pressable>\n </Modal>\n );\n }\n);\n\nModalJourneyRectification.displayName = \"ModalJourneyRectification\";\nexport default asBaseComponent(ModalJourneyRectification);\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,OAAO,EAAEC,QAAQ,EAAEC,WAAW,QAAQ,OAAO;AAC7D,SAASC,KAAK,EAAEC,IAAI,EAAEC,SAAS,QAAQ,cAAc;;AAErD;AACA,OAAOC,GAAG,MAAM,QAAQ;AACxB,SAASC,MAAM,QAAQ,WAAW;AAElC,SAASC,UAAU,QAAQ,eAAe;AAE1C,OAAOC,cAAc,MAAM,kCAAkC;AAE7D,OAAOC,YAAY,MAAM,0BAA0B;;AAEnD;AACA,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,eAAe,QAAQ,gCAAgC;;AAEhE;AACA,SAASC,qBAAqB,QAAQ,4CAA4C;;AAElF;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAChD,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,UAAU,EAAEC,eAAe,QAAQ,yBAAyB;AAErE,MAAMC,yBAAyE,gBAAGnB,KAAK,CAACoB,IAAI,CAC1F,CAAC;EAAEC,OA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C,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE,QAAQ;MACxBC,SAAS,EAAE;IACb,CAAE;IACFjD,YAAY,EAAE;MACZkD,WAAW,EAAE9F,KAAK,CAAC8C,YAAY,CAACiD,IAAI;MACpCC,WAAW,EAAEhG,KAAK,CAAC0C,MAAM,CAAC4C,IAAI,CAAC,GAAG,CAAC;MACnCzC,YAAY,EAAE7C,KAAK,CAAC8C,YAAY,CAACC;IACnC;EAAE,CACH,CACG,CACH,CACF,CACI,CACN,CAAC;AAEZ,CACF,CAAC;AAED3C,yBAAyB,CAAC6F,WAAW,GAAG,2BAA2B;AACnE,eAAenG,eAAe,CAACM,yBAAyB,CAAC","ignoreList":[]}
@@ -80,4 +80,28 @@ export const activitiesByDriverType = {
80
80
  descanso: baseActivities.descanso
81
81
  }
82
82
  };
83
+
84
+ /**
85
+ * Atividades para retificação
86
+ */
87
+
88
+ export const retificacaoActivities = [{
89
+ value: 22,
90
+ label: "Em operação - Carregamento"
91
+ }, {
92
+ value: 21,
93
+ label: "Tempo à Disposição"
94
+ }, {
95
+ value: 5,
96
+ label: "Repouso Semanal"
97
+ }, {
98
+ value: 6,
99
+ label: "Repouso Noturno"
100
+ }, {
101
+ value: 7,
102
+ label: "Refeição"
103
+ }, {
104
+ value: 9,
105
+ label: "Descanso"
106
+ }];
83
107
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["baseActivities","trabalho","id","referencia","cor_hex","descricao","tipo","descanso","activitiesByDriverType","normal","carregador"],"sources":["index.ts"],"sourcesContent":["/**\n * Tipagem da atividade\n */\nexport interface IActivity {\n id: number;\n referencia: string;\n cor_hex: string;\n descricao: string;\n tipo: \"trabalho\" | \"descanso\";\n}\n\n/**\n * Lista base de atividades padrão (normal)\n */\nconst baseActivities: Record<string, IActivity[]> = {\n trabalho: [\n {\n id: 1,\n referencia: \"operacao_veiculo\",\n cor_hex: \"#000000\",\n descricao: \"Operação com Veículo\",\n tipo: \"trabalho\",\n },\n {\n id: 2,\n referencia: \"aguardando_carga\",\n cor_hex: \"#000000\",\n descricao: \"Em Carga\",\n tipo: \"trabalho\",\n },\n {\n id: 3,\n referencia: \"aguardando_descarga\",\n cor_hex: \"#000000\",\n descricao: \"Em Descarga\",\n tipo: \"trabalho\",\n },\n {\n id: 8,\n referencia: \"disposicao_veiculo_parado\",\n cor_hex: \"#000000\",\n descricao: \"Disposição com Veículo Parado\",\n tipo: \"trabalho\",\n },\n ],\n descanso: [\n {\n id: 5,\n referencia: \"repouso_semanal\",\n cor_hex: \"#000000\",\n descricao: \"Repouso Semanal\",\n tipo: \"descanso\",\n },\n {\n id: 6,\n referencia: \"repouso_noturno\",\n cor_hex: \"#000000\",\n descricao: \"Repouso Noturno\",\n tipo: \"descanso\",\n },\n {\n id: 7,\n referencia: \"refeicao\",\n cor_hex: \"#000000\",\n descricao: \"Refeição\",\n tipo: \"descanso\",\n },\n {\n id: 9,\n referencia: \"descanso\",\n cor_hex: \"#000000\",\n descricao: \"Descanso\",\n tipo: \"descanso\",\n },\n ],\n};\n\n/**\n * Atividades específicas por tipo de usuário\n */\nexport const activitiesByDriverType: Record<string, Record<string, IActivity[]>> = {\n normal: baseActivities,\n carregador: {\n trabalho: [\n {\n id: 22,\n referencia: \"em_operacao_carregamento\",\n cor_hex: \"#000000\",\n descricao: \"Em operação - Carregamento\",\n tipo: \"trabalho\",\n },\n {\n id: 21,\n referencia: \"tempo_disposicao\",\n cor_hex: \"#000000\",\n descricao: \"Tempo à Disposição\",\n tipo: \"trabalho\",\n },\n ],\n descanso: baseActivities.descanso!,\n },\n};\n"],"mappings":"AAAA;AACA;AACA;;AASA;AACA;AACA;AACA,MAAMA,cAA2C,GAAG;EAClDC,QAAQ,EAAE,CACR;IACEC,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,kBAAkB;IAC9BC,OAAO,EAAE,SAAS;IAClBC,SAAS,EAAE,sBAAsB;IACjCC,IAAI,EAAE;E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;MACvCC,IAAI,EAAE;IACR,CAAC,EACD;MACEJ,EAAE,EAAE,EAAE;MACNC,UAAU,EAAE,kBAAkB;MAC9BC,OAAO,EAAE,SAAS;MAClBC,SAAS,EAAE,oBAAoB;MAC/BC,IAAI,EAAE;IACR,CAAC,CACF;IACDC,QAAQ,EAAEP,cAAc,CAACO;EAC3B;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["baseActivities","trabalho","id","referencia","cor_hex","descricao","tipo","descanso","activitiesByDriverType","normal","carregador","retificacaoActivities","value","label"],"sources":["index.ts"],"sourcesContent":["/**\n * Tipagem da atividade\n */\nexport interface IActivity {\n id: number;\n referencia: string;\n cor_hex: string;\n descricao: string;\n tipo: \"trabalho\" | \"descanso\";\n}\n\n/**\n * Lista base de atividades padrão (normal)\n */\nconst baseActivities: Record<string, IActivity[]> = {\n trabalho: [\n {\n id: 1,\n referencia: \"operacao_veiculo\",\n cor_hex: \"#000000\",\n descricao: \"Operação com Veículo\",\n tipo: \"trabalho\",\n },\n {\n id: 2,\n referencia: \"aguardando_carga\",\n cor_hex: \"#000000\",\n descricao: \"Em Carga\",\n tipo: \"trabalho\",\n },\n {\n id: 3,\n referencia: \"aguardando_descarga\",\n cor_hex: \"#000000\",\n descricao: \"Em Descarga\",\n tipo: \"trabalho\",\n },\n {\n id: 8,\n referencia: \"disposicao_veiculo_parado\",\n cor_hex: \"#000000\",\n descricao: \"Disposição com Veículo Parado\",\n tipo: \"trabalho\",\n },\n ],\n descanso: [\n {\n id: 5,\n referencia: \"repouso_semanal\",\n cor_hex: \"#000000\",\n descricao: \"Repouso Semanal\",\n tipo: \"descanso\",\n },\n {\n id: 6,\n referencia: \"repouso_noturno\",\n cor_hex: \"#000000\",\n descricao: \"Repouso Noturno\",\n tipo: \"descanso\",\n },\n {\n id: 7,\n referencia: \"refeicao\",\n cor_hex: \"#000000\",\n descricao: \"Refeição\",\n tipo: \"descanso\",\n },\n {\n id: 9,\n referencia: \"descanso\",\n cor_hex: \"#000000\",\n descricao: \"Descanso\",\n tipo: \"descanso\",\n },\n ],\n};\n\n/**\n * Atividades específicas por tipo de usuário\n */\nexport const activitiesByDriverType: Record<string, Record<string, IActivity[]>> = {\n normal: baseActivities,\n carregador: {\n trabalho: [\n {\n id: 22,\n referencia: \"em_operacao_carregamento\",\n cor_hex: \"#000000\",\n descricao: \"Em operação - Carregamento\",\n tipo: \"trabalho\",\n },\n {\n id: 21,\n referencia: \"tempo_disposicao\",\n cor_hex: \"#000000\",\n descricao: \"Tempo à Disposição\",\n tipo: \"trabalho\",\n },\n ],\n descanso: baseActivities.descanso!,\n },\n};\n\n/**\n * Atividades para retificação\n */\n\nexport const retificacaoActivities = [\n {\n value: 22,\n label: \"Em operação - Carregamento\",\n },\n {\n value: 21,\n label: \"Tempo à Disposição\",\n },\n {\n value: 5,\n label: \"Repouso Semanal\",\n },\n {\n value: 6,\n label: \"Repouso Noturno\",\n },\n {\n value: 7,\n label: \"Refeição\",\n },\n {\n value: 9,\n label: \"Descanso\",\n },\n];\n"],"mappings":"AAAA;AACA;AACA;;AASA;AACA;AACA;AACA,MAAMA,cAA2C,GAAG;EAClDC,QAAQ,EAAE,CACR;IACEC,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,kBAAkB;IAC9BC,OAAO,EAAE,SAAS;IAClBC,SAAS,EAAE,sBAAsB;IACjCC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,kBAAkB;IAC9BC,OAAO,EAAE,SAAS;IAClBC,SAAS,EAAE,UAAU;IACrBC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,qBAAqB;IACjCC,OAAO,EAAE,SAAS;IAClBC,SAAS,EAAE,aAAa;IACxBC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,2BAA2B;IACvCC,OAAO,EAAE,SAAS;IAClBC,SAAS,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AE;AACT,CAAC,EACD;EACED,KAAK,EAAE,CAAC;EACRC,KAAK,EAAE;AACT,CAAC,EACD;EACED,KAAK,EAAE,CAAC;EACRC,KAAK,EAAE;AACT,CAAC,EACD;EACED,KAAK,EAAE,CAAC;EACRC,KAAK,EAAE;AACT,CAAC,EACD;EACED,KAAK,EAAE,CAAC;EACRC,KAAK,EAAE;AACT,CAAC,CACF","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- /**
2
- * IMPORTS
1
+ /**
2
+ * IMPORTS
3
3
  */
4
4
  import React, { useState } from "react";
5
5
  import { Modal, View } from "react-native";
@@ -25,6 +25,7 @@ const ModalActivityReason = ({
25
25
  testID
26
26
  }) => {
27
27
  const [isLoading] = useState(false);
28
+ const [description, setDescription] = useState("");
28
29
  return /*#__PURE__*/React.createElement(Modal, {
29
30
  testID: testID,
30
31
  animationType: "fade",
@@ -82,7 +83,8 @@ const ModalActivityReason = ({
82
83
  }, /*#__PURE__*/React.createElement(InputTextCounter, {
83
84
  label: `${textTitle || "Motivo da exclusão"}`,
84
85
  placeholderTextColor: "#9B9B9B",
85
- placeholder: "Motivo da exclus\xE3o"
86
+ placeholder: "Motivo da exclus\xE3o",
87
+ onChangeText: setDescription
86
88
  })), /*#__PURE__*/React.createElement(Box, {
87
89
  marginStyle: {
88
90
  marginTop: 4
@@ -119,8 +121,7 @@ const ModalActivityReason = ({
119
121
  }), /*#__PURE__*/React.createElement(Button, {
120
122
  title: "CONFIRMAR",
121
123
  onPress: () => {
122
- modalConfirm(true);
123
- onClose();
124
+ modalConfirm(description);
124
125
  },
125
126
  width: "48%",
126
127
  height: 40,
@@ -1 +1 @@
1
- {"version":3,"names":["React","useState","Modal","View","Box","Typography","Button","InputTextCounter","Icons","theme","ModalActivityReason","visible","onClose","modalConfirm","textTitle","testID","isLoading","createElement","animationType","transparent","style","flex","justifyContent","alignItems","backgroundColor","width","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","marginLeft","flexStyle","flexDirection","icon","color","background","neutral","size","text","margins","fontFamily","fonts","inter_bold_700","fontSizes","md","padding","xs","label","placeholderTextColor","placeholder","marginTop","title","onPress","height","disabled","buttonTextStyle","blue","fontSize","fontWeight","textAlign","borderWidth","thin","borderColor","displayName"],"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":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,KAAK,EAAEC,IAAI,QAAQ,cAAc;;AAE1C;AACA,OAAOC,GAAG,MAAM,WAAW;AAC3B,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,MAAM,QAAQ,cAAc;AAErC,OAAOC,gBAAgB,MAAM,0BAA0B;;AAEvD;AACA,SAASC,KAAK,QAAQ,2BAA2B;;AAEjD;;AAGA;AACA,SAASC,KAAK,QAAQ,6BAA6B;AAEnD,MAAMC,mBAAwD,GAAGA,CAAC;EAChEC,OAAO;EACPC,OAAO;EACPC,YAAY;EACZC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,SAAS,CAAC,GAAGf,QAAQ,CAAC,KAAK,CAAC;EAEnC,oBACED,KAAA,CAAAiB,aAAA,CAACf,KAAK;IAACa,MAAM,EAAEA,MAAO;IAACG,aAAa,EAAC,MAAM;IAACC,WAAW;IAACR,OAAO,EAAEA;EAAQ,gBACvEX,KAAA,CAAAiB,aAAA,CAACd,IAAI;IACHiB,KAAK,EAAE;MACLC,IAAI,EAAE,CAAC;MACPC,cAAc,EAAE,QAAQ;MACxBC,UAAU,EAAE,QAAQ;MACpBC,eAAe,EAAE;IACnB;EAAE,gBAEFx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F,CACF,CACD,CACD,CAAC;AAEZ,CAAC;AAEDrB,mBAAmB,CAACgE,WAAW,GAAG,qBAAqB;AAEvD,eAAehE,mBAAmB","ignoreList":[]}
1
+ {"version":3,"names":["React","useState","Modal","View","Box","Typography","Button","InputTextCounter","Icons","theme","ModalActivityReason","visible","onClose","modalConfirm","textTitle","testID","isLoading","description","setDescription","createElement","animationType","transparent","style","flex","justifyContent","alignItems","backgroundColor","width","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","marginLeft","flexStyle","flexDirection","icon","color","background","neutral","size","text","margins","fontFamily","fonts","inter_bold_700","fontSizes","md","padding","xs","label","placeholderTextColor","placeholder","onChangeText","marginTop","title","onPress","height","disabled","buttonTextStyle","blue","fontSize","fontWeight","textAlign","borderWidth","thin","borderColor","displayName"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React, { useState } from \"react\";\nimport { Modal, View } from \"react-native\";\n\n// components\nimport Box from \"../../box\";\nimport { Typography } from \"../../typography\";\nimport { Button } from \"../../button\";\n\nimport InputTextCounter from \"../../input-text-counter\";\n\n// commons / svg\nimport { Icons } from \"../../../common/icons-svg\";\n\n// typings\nimport type { IModalActivityReasonProps } from \"./interface\";\n\n// styles\nimport { theme } from \"../../../styles/theme/theme\";\n\nconst ModalActivityReason: React.FC<IModalActivityReasonProps> = ({\n visible,\n onClose,\n modalConfirm,\n textTitle,\n testID,\n}) => {\n const [isLoading] = useState(false);\n const [description, setDescription] = useState(\"\");\n\n return (\n <Modal testID={testID} 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={\"90%\"}\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: 10, marginLeft: 4 }}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\n >\n <Icons\n icon=\"EXCLAMATION_TRIANGLE\"\n color={theme.colors.orange[500]}\n background={theme.colors.neutral[300]}\n size={22}\n />\n <Typography\n text={`${textTitle ?? \"Motivo da exclusão\"}`}\n color={theme.colors.neutral[25]}\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={{\n padding: theme.paddings.xs,\n }}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_medium,\n }}\n >\n <Box width=\"100%\">\n <InputTextCounter\n label={`${textTitle || \"Motivo da exclusão\"}`}\n placeholderTextColor=\"#9B9B9B\"\n placeholder=\"Motivo da exclusão\"\n onChangeText={setDescription}\n />\n </Box>\n <Box\n marginStyle={{ marginTop: 4 }}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n }}\n >\n <Button\n title=\"CANCELAR\"\n onPress={onClose}\n width={\"48%\"}\n height={40}\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={() => {\n modalConfirm(description);\n }}\n width={\"48%\"}\n height={40}\n isLoading={isLoading}\n disabled={isLoading}\n backgroundColor={theme.colors.blue[500]}\n buttonTextStyle={{\n color: theme.colors.neutral[25],\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\nModalActivityReason.displayName = \"ModalActivityReason\";\n\nexport default ModalActivityReason;\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,KAAK,EAAEC,IAAI,QAAQ,cAAc;;AAE1C;AACA,OAAOC,GAAG,MAAM,WAAW;AAC3B,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,MAAM,QAAQ,cAAc;AAErC,OAAOC,gBAAgB,MAAM,0BAA0B;;AAEvD;AACA,SAASC,KAAK,QAAQ,2BAA2B;;AAEjD;;AAGA;AACA,SAASC,KAAK,QAAQ,6BAA6B;AAEnD,MAAMC,mBAAwD,GAAGA,CAAC;EAChEC,OAAO;EACPC,OAAO;EACPC,YAAY;EACZC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,SAAS,CAAC,GAAGf,QAAQ,CAAC,KAAK,CAAC;EACnC,MAAM,CAACgB,WAAW,EAAEC,cAAc,CAAC,GAAGjB,QAAQ,CAAC,EAAE,CAAC;EAElD,oBACED,KAAA,CAAAmB,aAAA,CAACjB,KAAK;IAACa,MAAM,EAAEA,MAAO;IAACK,aAAa,EAAC,MAAM;IAACC,WAAW;IAACV,OAAO,EAAEA;EAAQ,gBACvEX,KAAA,CAAAmB,aAAA,CAAChB,IAAI;IACHmB,KAAK,EAAE;MACLC,IAAI,EAAE,CAAC;MACPC,cAAc,EAAE,QAAQ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CAAC,GAAG,CAAC;MACnCvC,YAAY,EAAEtB,KAAK,CAACuB,YAAY,CAACC;IACnC;EAAE,CACH,CACE,CACF,CACF,CACD,CACD,CAAC;AAEZ,CAAC;AAEDvB,mBAAmB,CAACmE,WAAW,GAAG,qBAAqB;AAEvD,eAAenE,mBAAmB","ignoreList":[]}
@@ -1 +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":[]}
1
+ {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/* eslint-disable no-unused-vars */\ninterface IModalActivityReasonProps {\n visible: boolean;\n onClose: () => void;\n modalConfirm: (value: string) => void;\n textTitle?: string;\n testID?: string;\n}\n\nexport type { IModalActivityReasonProps };\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["React","Modal","View","Box","Typography","Button","SelectOption","theme","Icons","options","label","value","key","ModalChangeActivity","visible","onClose","modalConfirm","descricao","isLoading","useState","initial","toLowerCase","replace","selectedOption","setSelectedOption","handleConfirm","selected","find","opt","createElement","animationType","transparent","style","flex","justifyContent","alignItems","backgroundColor","width","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","margins","marginLeft","flexStyle","flexDirection","icon","color","black","background","yellow","size","text","fontFamily","fonts","inter_bold_700","fontSizes","md","neutral","padding","xs","inter_medium_500","flexWrap","maxWidth","titleLabel","sizeTitleLabel","dataOption","handleSelectDown","option","o","marginTop","title","onPress","height","disabled","buttonTextStyle","blue","fontSize","fontWeight","textAlign","borderWidth","thin","borderColor"],"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":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB;AACA,SAASC,KAAK,EAAEC,IAAI,QAAQ,cAAc;;AAE1C;AACA,OAAOC,GAAG,MAAM,WAAW;AAC3B,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,MAAM,QAAQ,cAAc;AACrC,OAAOC,YAAY,MAAM,6BAA6B;;AAEtD;AACA,SAASC,KAAK,QAAQ,6BAA6B;;AAEnD;AACA,SAASC,KAAK,QAAQ,2BAA2B;;AAEjD;AACA;AACA;;AAQA;AACA;AACA;AACA,MAAMC,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,iBAAiB;EAAEC,GAAG,EAAE;AAAE,CAAC,EAC9D;EAAEF,KAAK,EAAE,UAAU;EAAEC,KAAK,E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A6B,aAAA,CAACxB,MAAM;IACL6E,KAAK,EAAC,WAAW;IACjBC,OAAO,EAAE1D,aAAc;IACvBY,KAAK,EAAE,KAAM;IACb+C,MAAM,EAAE,EAAG;IACXlE,SAAS,EAAEA,SAAU;IACrBmE,QAAQ,EAAEnE,SAAU;IACpBkB,eAAe,EAAE7B,KAAK,CAAC+B,MAAM,CAACiD,IAAI,CAAC,GAAG,CAAE;IACxCD,eAAe,EAAE;MACf5B,KAAK,EAAE,MAAM;MACbM,UAAU,EAAE,cAAc;MAC1BwB,QAAQ,EAAEjF,KAAK,CAAC4D,SAAS,CAACI,EAAE;MAC5BkB,UAAU,EAAE;IACd,CAAE;IACFlC,SAAS,EAAE;MACTC,aAAa,EAAE,KAAK;MACpBrB,UAAU,EAAE,QAAQ;MACpBD,cAAc,EAAE,QAAQ;MACxBwD,SAAS,EAAE;IACb,CAAE;IACFlD,YAAY,EAAE;MACZmD,WAAW,EAAEpF,KAAK,CAACmC,YAAY,CAACkD,IAAI;MACpCC,WAAW,EAAEtF,KAAK,CAAC+B,MAAM,CAACiD,IAAI,CAAC,GAAG,CAAC;MACnC9C,YAAY,EAAElC,KAAK,CAACmC,YAAY,CAACC;IACnC;EAAE,CACH,CACE,CACF,CACF,CACD,CACD,CAAC;AAEZ,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","Modal","View","Box","Typography","Button","SelectOption","theme","Icons","options","label","value","key","ModalChangeActivity","visible","onClose","modalConfirm","descricao","isLoading","useState","initial","toLowerCase","replace","selectedOption","setSelectedOption","handleConfirm","selected","find","opt","createElement","animationType","transparent","style","flex","justifyContent","alignItems","backgroundColor","width","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","margins","marginLeft","flexStyle","flexDirection","icon","color","black","background","yellow","size","text","fontFamily","fonts","inter_bold_700","fontSizes","md","neutral","padding","xs","inter_medium_500","flexWrap","maxWidth","titleLabel","sizeTitleLabel","dataOption","handleSelectDown","option","o","marginTop","title","onPress","height","disabled","buttonTextStyle","blue","fontSize","fontWeight","textAlign","borderWidth","thin","borderColor"],"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: any) => {\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":"AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB;AACA,SAASC,KAAK,EAAEC,IAAI,QAAQ,cAAc;;AAE1C;AACA,OAAOC,GAAG,MAAM,WAAW;AAC3B,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,MAAM,QAAQ,cAAc;AACrC,OAAOC,YAAY,MAAM,6BAA6B;;AAEtD;AACA,SAASC,KAAK,QAAQ,6BAA6B;;AAEnD;AACA,SAASC,KAAK,QAAQ,2BAA2B;;AAEjD;AACA;AACA;;AAQA;AACA;AACA;AACA,MAAMC,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;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,WAAW,EAAEtF,KAAK,CAAC+B,MAAM,CAACiD,IAAI,CAAC,GAAG,CAAC;MACnC9C,YAAY,EAAElC,KAAK,CAACmC,YAAY,CAACC;IACnC;EAAE,CACH,CAAC,eACF3C,KAAA,CAAA6B,aAAA,CAACxB,MAAM;IACL6E,KAAK,EAAC,WAAW;IACjBC,OAAO,EAAE1D,aAAc;IACvBY,KAAK,EAAE,KAAM;IACb+C,MAAM,EAAE,EAAG;IACXlE,SAAS,EAAEA,SAAU;IACrBmE,QAAQ,EAAEnE,SAAU;IACpBkB,eAAe,EAAE7B,KAAK,CAAC+B,MAAM,CAACiD,IAAI,CAAC,GAAG,CAAE;IACxCD,eAAe,EAAE;MACf5B,KAAK,EAAE,MAAM;MACbM,UAAU,EAAE,cAAc;MAC1BwB,QAAQ,EAAEjF,KAAK,CAAC4D,SAAS,CAACI,EAAE;MAC5BkB,UAAU,EAAE;IACd,CAAE;IACFlC,SAAS,EAAE;MACTC,aAAa,EAAE,KAAK;MACpBrB,UAAU,EAAE,QAAQ;MACpBD,cAAc,EAAE,QAAQ;MACxBwD,SAAS,EAAE;IACb,CAAE;IACFlD,YAAY,EAAE;MACZmD,WAAW,EAAEpF,KAAK,CAACmC,YAAY,CAACkD,IAAI;MACpCC,WAAW,EAAEtF,KAAK,CAAC+B,MAAM,CAACiD,IAAI,CAAC,GAAG,CAAC;MACnC9C,YAAY,EAAElC,KAAK,CAACmC,YAAY,CAACC;IACnC;EAAE,CACH,CACE,CACF,CACF,CACD,CACD,CAAC;AAEZ,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- /**
2
- * IMPORTS
1
+ /**
2
+ * IMPORTS
3
3
  */
4
4
  import React, { forwardRef, useState } from "react";
5
5
  import { View, Text, TouchableOpacity, Modal, FlatList } from "react-native";
@@ -16,22 +16,24 @@ import { asBaseComponent } from "../../../@types/as-base-component";
16
16
  import { styles } from "./styles";
17
17
  import { theme } from "../../../styles/theme/theme";
18
18
  const SelectOption = /*#__PURE__*/forwardRef((props, ref) => {
19
- var _dataOption$, _dataOption$find;
19
+ var _dataOption$find;
20
20
  const {
21
21
  dataOption,
22
22
  handleSelectDown,
23
23
  titleLabel,
24
24
  sizeTitleLabel,
25
25
  colortitleLabel,
26
- backgroundColor
26
+ backgroundColor,
27
+ selectedValueID = null
27
28
  } = props;
28
- const [selectedValue, setSelectedValue] = useState(((_dataOption$ = dataOption[0]) === null || _dataOption$ === void 0 ? void 0 : _dataOption$.value) || "");
29
+ const [selectedValue, setSelectedValue] = useState(selectedValueID);
29
30
  const [modalVisible, setModalVisible] = useState(false);
30
31
  const handleSelect = value => {
31
32
  setSelectedValue(value);
32
33
  setModalVisible(false);
33
34
  handleSelectDown(value);
34
35
  };
36
+ const itemLabelSelected = (_dataOption$find = dataOption.find(item => item.value === selectedValue)) === null || _dataOption$find === void 0 ? void 0 : _dataOption$find.label;
35
37
  const styleProps = {
36
38
  dataOption,
37
39
  handleSelectDown,
@@ -52,10 +54,10 @@ const SelectOption = /*#__PURE__*/forwardRef((props, ref) => {
52
54
  }, /*#__PURE__*/React.createElement(Text, {
53
55
  style: styles(styleProps).selectedText,
54
56
  numberOfLines: 1
55
- }, `${handleLimitTextdisplayByAmount({
57
+ }, itemLabelSelected ? /*#__PURE__*/React.createElement(React.Fragment, null, " ", `${handleLimitTextdisplayByAmount({
56
58
  limit: 42,
57
- text: (_dataOption$find = dataOption.find(item => item.value === selectedValue)) === null || _dataOption$find === void 0 ? void 0 : _dataOption$find.label
58
- })}`), /*#__PURE__*/React.createElement(Icons, {
59
+ text: itemLabelSelected
60
+ })}`) : "Selecione uma opção"), /*#__PURE__*/React.createElement(Icons, {
59
61
  size: theme.fontSizes["xs"],
60
62
  color: theme.colors.blue[500],
61
63
  icon: "ARROW_DROP_DOWN"
@@ -102,8 +104,8 @@ const SelectOption = /*#__PURE__*/forwardRef((props, ref) => {
102
104
  })))));
103
105
  });
104
106
 
105
- /**
106
- * Componente SelectOption para a interação da ui.
107
+ /**
108
+ * Componente SelectOption para a interação da ui.
107
109
  */
108
110
  export default asBaseComponent(SelectOption);
109
111
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","forwardRef","useState","View","Text","TouchableOpacity","Modal","FlatList","Icons","handleLimitTextdisplayByAmount","asBaseComponent","styles","theme","SelectOption","props","ref","_dataOption$","_dataOption$find","dataOption","handleSelectDown","titleLabel","sizeTitleLabel","colortitleLabel","backgroundColor","selectedValue","setSelectedValue","value","modalVisible","setModalVisible","handleSelect","styleProps","createElement","style","container","label","testID","selectBox","onPress","selectedText","numberOfLines","limit","text","find","item","size","fontSizes","color","colors","blue","icon","visible","transparent","animationType","modalOverlay","modalContainer","width","alignItems","height","paddingRight","justifyContent","data","keyExtractor","renderItem","option","optionText"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React, { forwardRef, useState } from \"react\";\r\nimport { View, Text, TouchableOpacity, Modal, FlatList } from \"react-native\";\r\n\r\n// commons / svg\r\nimport { Icons } from \"../../../common/icons-svg\";\r\n\r\n// utils\r\nimport { handleLimitTextdisplayByAmount } from \"../../../utils/text-limit\";\r\n\r\n// typings\r\nimport { asBaseComponent } from \"../../../@types/as-base-component\";\r\nimport type { ISelectDropDownProps } from \"./interface\";\r\n\r\n// styles\r\nimport { styles } from \"./styles\";\r\nimport { theme } from \"../../../styles/theme/theme\";\r\n\r\nconst SelectOption = forwardRef<any, ISelectDropDownProps>((props, ref): React.ReactElement => {\r\n const {\r\n dataOption,\r\n handleSelectDown,\r\n titleLabel,\r\n sizeTitleLabel,\r\n colortitleLabel,\r\n backgroundColor,\r\n } = props;\r\n\r\n const [selectedValue, setSelectedValue] = useState(dataOption[0]?.value || \"\");\r\n const [modalVisible, setModalVisible] = useState(false);\r\n\r\n const handleSelect = (value: string) => {\r\n setSelectedValue(value);\r\n setModalVisible(false);\r\n handleSelectDown(value);\r\n };\r\n\r\n const styleProps = {\r\n dataOption,\r\n handleSelectDown,\r\n titleLabel,\r\n sizeTitleLabel,\r\n colortitleLabel,\r\n backgroundColor,\r\n } as ISelectDropDownProps;\r\n return (\r\n <View ref={ref} style={styles(styleProps).container}>\r\n {/* Titulo para exibir o label */}\r\n <Text style={styles(styleProps).label}>{`${titleLabel ?? \"Selecione uma opção\"}`}:</Text>\r\n\r\n {/* Botão para abrir o modal */}\r\n <TouchableOpacity\r\n testID=\"select-box\"\r\n style={styles(styleProps).selectBox}\r\n onPress={() => setModalVisible(true)}\r\n >\r\n <Text style={styles(styleProps).selectedText} numberOfLines={1}>\r\n {`${handleLimitTextdisplayByAmount({\r\n limit: 42,\r\n text: dataOption.find((item) => item.value === selectedValue)?.label!,\r\n })}`}\r\n </Text>\r\n\r\n <Icons\r\n size={theme.fontSizes[\"xs\"]}\r\n color={theme.colors.blue[500]}\r\n icon={\"ARROW_DROP_DOWN\"}\r\n />\r\n </TouchableOpacity>\r\n\r\n {/* Modal para exibir as opções */}\r\n <Modal testID=\"modal-container\" visible={modalVisible} transparent animationType=\"fade\">\r\n <View style={styles(styleProps).modalOverlay}>\r\n <View style={styles(styleProps).modalContainer}>\r\n <View\r\n style={{\r\n width: \"100%\",\r\n alignItems: \"flex-end\",\r\n height: 40,\r\n paddingRight: 8,\r\n }}\r\n >\r\n <TouchableOpacity\r\n testID=\"close-icon\"\r\n onPress={() => setModalVisible(false)}\r\n style={{\r\n width: 40,\r\n height: 45,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <Icons\r\n size={theme.fontSizes[\"md\"]}\r\n color={theme.colors.blue[500]}\r\n icon={\"CLOSED\"}\r\n />\r\n </TouchableOpacity>\r\n </View>\r\n <FlatList\r\n data={dataOption || []}\r\n keyExtractor={(item) => item.value}\r\n renderItem={({ item }) => (\r\n <TouchableOpacity\r\n style={styles(styleProps).option}\r\n onPress={() => handleSelect(item.value)}\r\n >\r\n <Text style={styles(styleProps).optionText}>{item.label}</Text>\r\n </TouchableOpacity>\r\n )}\r\n />\r\n </View>\r\n </View>\r\n </Modal>\r\n </View>\r\n );\r\n});\r\n\r\n/**\r\n * Componente SelectOption para a interação da ui.\r\n */\r\nexport default asBaseComponent(SelectOption);\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;;AAE5E;AACA,SAASC,KAAK,QAAQ,2BAA2B;;AAEjD;AACA,SAASC,8BAA8B,QAAQ,2BAA2B;;AAE1E;AACA,SAASC,eAAe,QAAQ,mCAAmC;AAGnE;AACA,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,KAAK,QAAQ,6BAA6B;AAEnD,MAAMC,YAAY,gBAAGZ,UAAU,CAA4B,CAACa,KAAK,EAAEC,GAAG,KAAyB;EAAA,IAAAC,YAAA,EAAAC,gBAAA;EAC7F,MAAM;IACJC,UAAU;IACVC,gBAAgB;IAChBC,UAAU;IACVC,cAAc;IACdC,eAAe;IACfC;EACF,CAAC,GAAGT,KAAK;EAET,MAAM,CAACU,aAAa,EAAEC,gBAAgB,CAAC,GAAGvB,QAAQ,CAAC,EAAAc,YAAA,GAAAE,UAAU,CAAC,CAAC,CAAC,cAAAF,YAAA,uBAAbA,YAAA,CAAeU,KAAK,KAAI,EAAE,CAAC;EAC9E,MAAM,CAACC,YAAY,EAAEC,eAAe,CAAC,GAAG1B,QAAQ,CAAC,KAAK,CAAC;EAEvD,MAAM2B,YAAY,GAAIH,KAAa,IAAK;IACtCD,gBAAgB,CAACC,KAAK,CAAC;IACvBE,eAAe,CAAC,KAAK,CAAC;IACtBT,gBAAgB,CAACO,KAAK,CAAC;EACzB,CAAC;EAED,MAAMI,UAAU,GAAG;IACjBZ,UAAU;IACVC,gBAAgB;IAChBC,UAAU;IACVC,cAAc;IACdC,eAAe;IACfC;EACF,CAAyB;EACzB,oBACEvB,KAAA,CAAA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AI;MAAC4B,KAAK,EAAErB,MAAM,CAACmB,UAAU,CAAC,CAACkC;IAAW,GAAErB,IAAI,CAACT,KAAY,CAC9C;EAClB,CACH,CACG,CACF,CACD,CACH,CAAC;AAEX,CAAC,CAAC;;AAEF;AACA;AACA;AACA,eAAexB,eAAe,CAACG,YAAY,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","forwardRef","useState","View","Text","TouchableOpacity","Modal","FlatList","Icons","handleLimitTextdisplayByAmount","asBaseComponent","styles","theme","SelectOption","props","ref","_dataOption$find","dataOption","handleSelectDown","titleLabel","sizeTitleLabel","colortitleLabel","backgroundColor","selectedValueID","selectedValue","setSelectedValue","modalVisible","setModalVisible","handleSelect","value","itemLabelSelected","find","item","label","styleProps","createElement","style","container","testID","selectBox","onPress","selectedText","numberOfLines","Fragment","limit","text","size","fontSizes","color","colors","blue","icon","visible","transparent","animationType","modalOverlay","modalContainer","width","alignItems","height","paddingRight","justifyContent","data","keyExtractor","renderItem","option","optionText"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React, { forwardRef, useState } from \"react\";\nimport { View, Text, TouchableOpacity, Modal, FlatList } from \"react-native\";\n\n// commons / svg\nimport { Icons } from \"../../../common/icons-svg\";\n\n// utils\nimport { handleLimitTextdisplayByAmount } from \"../../../utils/text-limit\";\n\n// typings\nimport { asBaseComponent } from \"../../../@types/as-base-component\";\nimport type { ISelectDropDownProps } from \"./interface\";\n\n// styles\nimport { styles } from \"./styles\";\nimport { theme } from \"../../../styles/theme/theme\";\n\nconst SelectOption = forwardRef<any, ISelectDropDownProps>((props, ref): React.ReactElement => {\n const {\n dataOption,\n handleSelectDown,\n titleLabel,\n sizeTitleLabel,\n colortitleLabel,\n backgroundColor,\n selectedValueID = null,\n } = props;\n\n const [selectedValue, setSelectedValue] = useState<number | null>(selectedValueID);\n const [modalVisible, setModalVisible] = useState(false);\n\n const handleSelect = (value: number) => {\n setSelectedValue(value);\n setModalVisible(false);\n handleSelectDown(value);\n };\n\n const itemLabelSelected = dataOption.find((item) => item.value === selectedValue)?.label!;\n const styleProps = {\n dataOption,\n handleSelectDown,\n titleLabel,\n sizeTitleLabel,\n colortitleLabel,\n backgroundColor,\n } as ISelectDropDownProps;\n return (\n <View ref={ref} style={styles(styleProps).container}>\n {/* Titulo para exibir o label */}\n <Text style={styles(styleProps).label}>{`${titleLabel ?? \"Selecione uma opção\"}`}:</Text>\n\n {/* Botão para abrir o modal */}\n <TouchableOpacity\n testID=\"select-box\"\n style={styles(styleProps).selectBox}\n onPress={() => setModalVisible(true)}\n >\n <Text style={styles(styleProps).selectedText} numberOfLines={1}>\n {itemLabelSelected ? (\n <>\n {\" \"}\n {`${handleLimitTextdisplayByAmount({\n limit: 42,\n text: itemLabelSelected,\n })}`}\n </>\n ) : (\n \"Selecione uma opção\"\n )}\n </Text>\n\n <Icons\n size={theme.fontSizes[\"xs\"]}\n color={theme.colors.blue[500]}\n icon={\"ARROW_DROP_DOWN\"}\n />\n </TouchableOpacity>\n\n {/* Modal para exibir as opções */}\n <Modal testID=\"modal-container\" visible={modalVisible} transparent animationType=\"fade\">\n <View style={styles(styleProps).modalOverlay}>\n <View style={styles(styleProps).modalContainer}>\n <View\n style={{\n width: \"100%\",\n alignItems: \"flex-end\",\n height: 40,\n paddingRight: 8,\n }}\n >\n <TouchableOpacity\n testID=\"close-icon\"\n onPress={() => setModalVisible(false)}\n style={{\n width: 40,\n height: 45,\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n <Icons\n size={theme.fontSizes[\"md\"]}\n color={theme.colors.blue[500]}\n icon={\"CLOSED\"}\n />\n </TouchableOpacity>\n </View>\n <FlatList\n data={dataOption || []}\n keyExtractor={(item) => item.value}\n renderItem={({ item }) => (\n <TouchableOpacity\n style={styles(styleProps).option}\n onPress={() => handleSelect(item.value)}\n >\n <Text style={styles(styleProps).optionText}>{item.label}</Text>\n </TouchableOpacity>\n )}\n />\n </View>\n </View>\n </Modal>\n </View>\n );\n});\n\n/**\n * Componente SelectOption para a interação da ui.\n */\nexport default asBaseComponent(SelectOption);\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;;AAE5E;AACA,SAASC,KAAK,QAAQ,2BAA2B;;AAEjD;AACA,SAASC,8BAA8B,QAAQ,2BAA2B;;AAE1E;AACA,SAASC,eAAe,QAAQ,mCAAmC;AAGnE;AACA,SAASC,MAAM,QAAQ,UAAU;AACjC,SAASC,KAAK,QAAQ,6BAA6B;AAEnD,MAAMC,YAAY,gBAAGZ,UAAU,CAA4B,CAACa,KAAK,EAAEC,GAAG,KAAyB;EAAA,IAAAC,gBAAA;EAC7F,MAAM;IACJC,UAAU;IACVC,gBAAgB;IAChBC,UAAU;IACVC,cAAc;IACdC,eAAe;IACfC,eAAe;IACfC,eAAe,GAAG;EACpB,CAAC,GAAGT,KAAK;EAET,MAAM,CAACU,aAAa,EAAEC,gBAAgB,CAAC,GAAGvB,QAAQ,CAAgBqB,eAAe,CAAC;EAClF,MAAM,CAACG,YAAY,EAAEC,eAAe,CAAC,GAAGzB,QAAQ,CAAC,KAAK,CAAC;EAEvD,MAAM0B,YAAY,GAAIC,KAAa,IAAK;IACtCJ,gBAAgB,CAACI,KAAK,CAAC;IACvBF,eAAe,CAAC,KAAK,CAAC;IACtBT,gBAAgB,CAACW,KAAK,CAAC;EACzB,CAAC;EAED,MAAMC,iBAAiB,IAAAd,gBAAA,GAAGC,UAAU,CAACc,IAAI,CAAEC,IAAI,IAAKA,IAAI,CAACH,KAAK,KAAKL,aAAa,CAAC,cAAAR,gBAAA,uBAAvDA,gBAAA,CAAyDiB,KAAM;EACzF,MAAMC,UAAU,GAAG;IACjBjB,UAAU;IACVC,gBAAgB;IAChBC,UAAU;IACVC,cAAc;IACdC,eAAe;IACfC;EACF,CA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AAI;MAACgC,KAAK,EAAEzB,MAAM,CAACuB,UAAU,CAAC,CAACgC;IAAW,GAAElC,IAAI,CAACC,KAAY,CAC9C;EAClB,CACH,CACG,CACF,CACD,CACH,CAAC;AAEX,CAAC,CAAC;;AAEF;AACA;AACA;AACA,eAAevB,eAAe,CAACG,YAAY,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\ntype ISelectDropDownProps = {\r\n dataOption: any[];\r\n titleLabel: string;\r\n sizeTitleLabel?: number;\r\n colortitleLabel?: string;\r\n backgroundColor?: string;\r\n /**retorna o valor selecionado */\r\n // eslint-disable-next-line no-unused-vars\r\n handleSelectDown: (value: string) => void;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { ISelectDropDownProps };\r\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\ntype ISelectDropDownProps = {\n dataOption: any[];\n titleLabel: string;\n sizeTitleLabel?: number;\n colortitleLabel?: string;\n backgroundColor?: string;\n selectedValueID?: number | null;\n /**retorna o valor selecionado */\n // eslint-disable-next-line no-unused-vars\n handleSelectDown: (value: number) => void;\n};\n\n/**\n * EXPORTS\n */\nexport { ISelectDropDownProps };\n"],"mappings":"","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- /**
3
- * IMPORTS
2
+ /**
3
+ * IMPORTS
4
4
  */
5
5
  import React, { useState } from "react";
6
6
  import { View, Text, Button } from "react-native";
@@ -8,8 +8,8 @@ import { View, Text, Button } from "react-native";
8
8
  // components
9
9
  import ModalActivityReason from "../../components/modals/modal-activity-reason";
10
10
 
11
- /**
12
- * META
11
+ /**
12
+ * META
13
13
  */
14
14
  const meta = {
15
15
  title: "componente/ModalActivityReason",
@@ -114,8 +114,8 @@ const [open, setOpen] = useState(false);
114
114
  }, /*#__PURE__*/React.createElement(Story, null))]
115
115
  };
116
116
  export default meta;
117
- /**
118
- * STORIES
117
+ /**
118
+ * STORIES
119
119
  */
120
120
 
121
121
  // 1) Aberto (básico)
@@ -168,10 +168,10 @@ export const ControladoInterativo = {
168
168
  args === null || args === void 0 || (_args$onClose = args.onClose) === null || _args$onClose === void 0 || _args$onClose.call(args);
169
169
  setOpen(false);
170
170
  },
171
- modalConfirm: ok => {
171
+ modalConfirm: value => {
172
172
  var _args$modalConfirm;
173
173
  // @ts-ignore
174
- args === null || args === void 0 || (_args$modalConfirm = args.modalConfirm) === null || _args$modalConfirm === void 0 || _args$modalConfirm.call(args, ok);
174
+ args === null || args === void 0 || (_args$modalConfirm = args.modalConfirm) === null || _args$modalConfirm === void 0 || _args$modalConfirm.call(args, value);
175
175
  setOpen(false);
176
176
  },
177
177
  textTitle: (_args$textTitle = args.textTitle) !== null && _args$textTitle !== void 0 ? _args$textTitle : "Motivo da exclusão"
@@ -1 +1 @@
1
- {"version":3,"names":["React","useState","View","Text","Button","ModalActivityReason","meta","title","component","tags","args","visible","textTitle","undefined","argTypes","control","type","description","table","category","onClose","action","modalConfirm","parameters","controls","expanded","layout","docs","decorators","Story","createElement","style","width","padding","backgroundColor","borderRadius","AbertoBasico","name","Fechado","TituloPersonalizado","ControladoInterativo","render","Wrapper","_args$textTitle","open","setOpen","onPress","marginTop","fontSize","color","_extends","_args$onClose","call","ok","_args$modalConfirm","story"],"sources":["modal-activity-reason.stories.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React, { useState } from \"react\";\r\nimport type { Meta, StoryObj } from \"@storybook/react\";\r\nimport { View, Text, Button } from \"react-native\";\r\n\r\n// components\r\nimport ModalActivityReason from \"../../components/modals/modal-activity-reason\";\r\n\r\n/**\r\n * META\r\n */\r\nconst meta: Meta<typeof ModalActivityReason> = {\r\n title: \"componente/ModalActivityReason\",\r\n component: ModalActivityReason as React.FC,\r\n tags: [\"autodocs\"],\r\n args: {\r\n visible: false,\r\n textTitle: undefined,\r\n },\r\n argTypes: {\r\n visible: {\r\n control: { type: \"boolean\" },\r\n description: \"Controla a visibilidade do modal.\",\r\n table: { category: \"Comportamento\" },\r\n },\r\n textTitle: {\r\n control: { type: \"text\" },\r\n description:\r\n \"Título exibido no cabeçalho do modal. Se não informado, usa 'Motivo da exclusão'.\",\r\n table: { category: \"Aparência\" },\r\n },\r\n onClose: {\r\n action: \"onClose\",\r\n description:\r\n \"Chamado ao fechar/cancelar o modal. Deve alternar `visible` para `false` no uso controlado.\",\r\n table: { category: \"Eventos\" },\r\n },\r\n modalConfirm: {\r\n action: \"modalConfirm\",\r\n description:\r\n \"Chamado ao confirmar a ação. Por padrão, o componente chama `modalConfirm(true)` e em seguida `onClose()`.\",\r\n table: { category: \"Eventos\" },\r\n },\r\n },\r\n parameters: {\r\n controls: { expanded: true },\r\n layout: \"centered\",\r\n docs: {\r\n description: {\r\n component: `\r\n### ModalActivityReason\r\n\r\nModal para solicitar **motivo/justificativa** antes de executar uma ação crítica (ex.: excluir atividade).\r\n\r\n#### Recursos\r\n- Título personalizável via \\`textTitle\\`\r\n- Campo de texto (interno) para descrição do motivo\r\n- Botões **CANCELAR** e **CONFIRMAR**\r\n- Dispara \\`onClose\\` e \\`modalConfirm\\` conforme interação do usuário\r\n\r\n#### Props\r\n- \\`visible: boolean\\` — controla abertura/fechamento do modal\r\n- \\`onClose: () => void\\` — chamado ao cancelar/fechar\r\n- \\`modalConfirm: (ok?: boolean) => void\\` — chamado ao confirmar; o componente invoca \\`modalConfirm(true)\\` e depois \\`onClose()\\`\r\n- \\`textTitle?: string\\` — título opcional do cabeçalho\r\n\r\n> Caso \\`textTitle\\` não seja informado, o título padrão é **\"Motivo da exclusão\"**.\r\n\r\n#### Padrão de Uso (controlado)\r\nNo consumo real, gerencie o estado \\`visible\\` fora do componente e passe callbacks:\r\n\\`\\`\\`tsx\r\nconst [open, setOpen] = useState(false);\r\n\r\n<ModalActivityReason\r\n visible={open}\r\n onClose={() => setOpen(false)}\r\n modalConfirm={() => {\r\n // enviar justificativa para API (se o componente expuser)\r\n setOpen(false);\r\n }}\r\n textTitle=\"Motivo da exclusão\"\r\n/>\r\n\\`\\`\\`\r\n\r\n#### Testes (ideias)\r\n- Renderiza com \\`visible=true\\`\r\n- Exibe título padrão e título customizado\r\n- Dispara \\`onClose\\` ao cancelar\r\n- Dispara \\`modalConfirm\\` ao confirmar (e fecha em seguida)\r\n`,\r\n },\r\n },\r\n },\r\n decorators: [\r\n (Story) => (\r\n <View\r\n style={{\r\n width: 360,\r\n padding: 16,\r\n backgroundColor: \"#F7F7F7\",\r\n borderRadius: 12,\r\n }}\r\n >\r\n <Story />\r\n </View>\r\n ),\r\n ],\r\n};\r\n\r\nexport default meta;\r\n\r\ntype Story = StoryObj<typeof meta>;\r\n\r\n/**\r\n * STORIES\r\n */\r\n\r\n// 1) Aberto (básico)\r\nexport const AbertoBasico: Story = {\r\n name: \"aberto-basico\",\r\n args: {\r\n visible: true,\r\n },\r\n};\r\n\r\n// 2) Fechado (estado inicial comum)\r\nexport const Fechado: Story = {\r\n name: \"fechado\",\r\n args: {\r\n visible: false,\r\n },\r\n};\r\n\r\n// 3) Com título personalizado\r\nexport const TituloPersonalizado: Story = {\r\n name: \"titulo-personalizado\",\r\n args: {\r\n visible: true,\r\n textTitle: \"Justifique a alteração da atividade\",\r\n },\r\n};\r\n\r\n// 4) Interativo (controlado) — demonstra fluxo completo\r\nexport const ControladoInterativo: Story = {\r\n name: \"controlado-interativo\",\r\n render: (args) => {\r\n const Wrapper = () => {\r\n const [open, setOpen] = useState(false);\r\n\r\n return (\r\n <View>\r\n <Button title=\"Abrir modal\" onPress={() => setOpen(true)} />\r\n <Text style={{ marginTop: 12, fontSize: 12, color: \"#666\" }}>\r\n Clique para abrir e testar CANCELAR/CONFIRMAR.\r\n </Text>\r\n\r\n <ModalActivityReason\r\n {...args}\r\n visible={open}\r\n onClose={() => {\r\n // aciona painel de ações do Storybook\r\n // @ts-ignore\r\n args?.onClose?.();\r\n setOpen(false);\r\n }}\r\n modalConfirm={(ok?: boolean) => {\r\n // @ts-ignore\r\n args?.modalConfirm?.(ok);\r\n setOpen(false);\r\n }}\r\n textTitle={args.textTitle ?? \"Motivo da exclusão\"}\r\n />\r\n </View>\r\n );\r\n };\r\n\r\n return <Wrapper />;\r\n },\r\n args: {\r\n visible: false,\r\n },\r\n parameters: {\r\n docs: {\r\n description: {\r\n story:\r\n \"Exemplo **controlado**: o estado `visible` é gerenciado no Story para simular uso real.\",\r\n },\r\n },\r\n },\r\n};\r\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,IAAI,EAAEC,IAAI,EAAEC,MAAM,QAAQ,cAAc;;AAEjD;AACA,OAAOC,mBAAmB,MAAM,+CAA+C;;AAE/E;AACA;AACA;AACA,MAAMC,IAAsC,GAAG;EAC7CC,KAAK,EAAE,gCAAgC;EACvCC,SAAS,EAAEH,mBAA+B;EAC1CI,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,IAAI,EAAE;IACJC,OAAO,EAAE,KAAK;IACdC,SAAS,EAAEC;EACb,CAAC;EACDC,QAAQ,EAAE;IACRH,OAAO,EAAE;MACPI,OAAO,EAAE;QAAEC,IAAI,EAAE;MAAU,CAAC;MAC5BC,WAAW,EAAE,mCAAmC;MAChDC,KAAK,EAAE;QAAEC,QAAQ,EAAE;MAAgB;IACrC,CAAC;IACDP,SAAS,EAAE;MACTG,OAAO,EAAE;QAAEC,IAAI,EAAE;MAAO,CAAC;MACzBC,WAAW,EACT,mFAAmF;MACrFC,KAAK,EAAE;QAAEC,QAAQ,EAAE;MAAY;IACjC,CAAC;IACDC,OAAO,EAAE;MACPC,MAAM,EAAE,SAA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;QACFjC,SAAS,GAAA+B,eAAA,GAAEjC,IAAI,CAACE,SAAS,cAAA+B,eAAA,cAAAA,eAAA,GAAI;MAAqB,EACnD,CACG,CAAC;IAEX,CAAC;IAED,oBAAO3C,KAAA,CAAA8B,aAAA,CAACY,OAAO,MAAE,CAAC;EACpB,CAAC;EACDhC,IAAI,EAAE;IACJC,OAAO,EAAE;EACX,CAAC;EACDY,UAAU,EAAE;IACVI,IAAI,EAAE;MACJV,WAAW,EAAE;QACXsC,KAAK,EACH;MACJ;IACF;EACF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useState","View","Text","Button","ModalActivityReason","meta","title","component","tags","args","visible","textTitle","undefined","argTypes","control","type","description","table","category","onClose","action","modalConfirm","parameters","controls","expanded","layout","docs","decorators","Story","createElement","style","width","padding","backgroundColor","borderRadius","AbertoBasico","name","Fechado","TituloPersonalizado","ControladoInterativo","render","Wrapper","_args$textTitle","open","setOpen","onPress","marginTop","fontSize","color","_extends","_args$onClose","call","value","_args$modalConfirm","story"],"sources":["modal-activity-reason.stories.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React, { useState } from \"react\";\nimport type { Meta, StoryObj } from \"@storybook/react\";\nimport { View, Text, Button } from \"react-native\";\n\n// components\nimport ModalActivityReason from \"../../components/modals/modal-activity-reason\";\n\n/**\n * META\n */\nconst meta: Meta<typeof ModalActivityReason> = {\n title: \"componente/ModalActivityReason\",\n component: ModalActivityReason as React.FC,\n tags: [\"autodocs\"],\n args: {\n visible: false,\n textTitle: undefined,\n },\n argTypes: {\n visible: {\n control: { type: \"boolean\" },\n description: \"Controla a visibilidade do modal.\",\n table: { category: \"Comportamento\" },\n },\n textTitle: {\n control: { type: \"text\" },\n description:\n \"Título exibido no cabeçalho do modal. Se não informado, usa 'Motivo da exclusão'.\",\n table: { category: \"Aparência\" },\n },\n onClose: {\n action: \"onClose\",\n description:\n \"Chamado ao fechar/cancelar o modal. Deve alternar `visible` para `false` no uso controlado.\",\n table: { category: \"Eventos\" },\n },\n modalConfirm: {\n action: \"modalConfirm\",\n description:\n \"Chamado ao confirmar a ação. Por padrão, o componente chama `modalConfirm(true)` e em seguida `onClose()`.\",\n table: { category: \"Eventos\" },\n },\n },\n parameters: {\n controls: { expanded: true },\n layout: \"centered\",\n docs: {\n description: {\n component: `\n### ModalActivityReason\n\nModal para solicitar **motivo/justificativa** antes de executar uma ação crítica (ex.: excluir atividade).\n\n#### Recursos\n- Título personalizável via \\`textTitle\\`\n- Campo de texto (interno) para descrição do motivo\n- Botões **CANCELAR** e **CONFIRMAR**\n- Dispara \\`onClose\\` e \\`modalConfirm\\` conforme interação do usuário\n\n#### Props\n- \\`visible: boolean\\` — controla abertura/fechamento do modal\n- \\`onClose: () => void\\` — chamado ao cancelar/fechar\n- \\`modalConfirm: (ok?: boolean) => void\\` — chamado ao confirmar; o componente invoca \\`modalConfirm(true)\\` e depois \\`onClose()\\`\n- \\`textTitle?: string\\` — título opcional do cabeçalho\n\n> Caso \\`textTitle\\` não seja informado, o título padrão é **\"Motivo da exclusão\"**.\n\n#### Padrão de Uso (controlado)\nNo consumo real, gerencie o estado \\`visible\\` fora do componente e passe callbacks:\n\\`\\`\\`tsx\nconst [open, setOpen] = useState(false);\n\n<ModalActivityReason\n visible={open}\n onClose={() => setOpen(false)}\n modalConfirm={() => {\n // enviar justificativa para API (se o componente expuser)\n setOpen(false);\n }}\n textTitle=\"Motivo da exclusão\"\n/>\n\\`\\`\\`\n\n#### Testes (ideias)\n- Renderiza com \\`visible=true\\`\n- Exibe título padrão e título customizado\n- Dispara \\`onClose\\` ao cancelar\n- Dispara \\`modalConfirm\\` ao confirmar (e fecha em seguida)\n`,\n },\n },\n },\n decorators: [\n (Story) => (\n <View\n style={{\n width: 360,\n padding: 16,\n backgroundColor: \"#F7F7F7\",\n borderRadius: 12,\n }}\n >\n <Story />\n </View>\n ),\n ],\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\n/**\n * STORIES\n */\n\n// 1) Aberto (básico)\nexport const AbertoBasico: Story = {\n name: \"aberto-basico\",\n args: {\n visible: true,\n },\n};\n\n// 2) Fechado (estado inicial comum)\nexport const Fechado: Story = {\n name: \"fechado\",\n args: {\n visible: false,\n },\n};\n\n// 3) Com título personalizado\nexport const TituloPersonalizado: Story = {\n name: \"titulo-personalizado\",\n args: {\n visible: true,\n textTitle: \"Justifique a alteração da atividade\",\n },\n};\n\n// 4) Interativo (controlado) — demonstra fluxo completo\nexport const ControladoInterativo: Story = {\n name: \"controlado-interativo\",\n render: (args) => {\n const Wrapper = () => {\n const [open, setOpen] = useState(false);\n\n return (\n <View>\n <Button title=\"Abrir modal\" onPress={() => setOpen(true)} />\n <Text style={{ marginTop: 12, fontSize: 12, color: \"#666\" }}>\n Clique para abrir e testar CANCELAR/CONFIRMAR.\n </Text>\n\n <ModalActivityReason\n {...args}\n visible={open}\n onClose={() => {\n // aciona painel de ações do Storybook\n // @ts-ignore\n args?.onClose?.();\n setOpen(false);\n }}\n modalConfirm={(value?: string) => {\n // @ts-ignore\n args?.modalConfirm?.(value);\n setOpen(false);\n }}\n textTitle={args.textTitle ?? \"Motivo da exclusão\"}\n />\n </View>\n );\n };\n\n return <Wrapper />;\n },\n args: {\n visible: false,\n },\n parameters: {\n docs: {\n description: {\n story:\n \"Exemplo **controlado**: o estado `visible` é gerenciado no Story para simular uso real.\",\n },\n },\n },\n};\n"],"mappings":";AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,IAAI,EAAEC,IAAI,EAAEC,MAAM,QAAQ,cAAc;;AAEjD;AACA,OAAOC,mBAAmB,MAAM,+CAA+C;;AAE/E;AACA;AACA;AACA,MAAMC,IAAsC,GAAG;EAC7CC,KAAK,EAAE,gCAAgC;EACvCC,SAAS,EAAEH,mBAA+B;EAC1CI,IAAI,EAAE,CAAC,UAAU,CAAC;EAClBC,IAAI,EAAE;IACJC,OAAO,EAAE,KAAK;IACdC,SAAS,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