react-native-exp-fig 0.1.26 → 0.1.27

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 (191) hide show
  1. package/lib/commonjs/components/input-text-counter/index.js +66 -0
  2. package/lib/commonjs/components/input-text-counter/index.js.map +1 -0
  3. package/lib/commonjs/components/input-text-counter/interface.d.js.map +1 -0
  4. package/lib/commonjs/components/input-text-counter/styles.js +42 -0
  5. package/lib/commonjs/components/input-text-counter/styles.js.map +1 -0
  6. package/lib/commonjs/components/modal-create-activitie/index.js +202 -0
  7. package/lib/commonjs/components/modal-create-activitie/index.js.map +1 -0
  8. package/lib/commonjs/components/modal-create-activitie/interface.js +2 -0
  9. package/lib/commonjs/components/modal-create-activitie/interface.js.map +1 -0
  10. package/lib/commonjs/components/modal-create-activitie/styles.js +42 -0
  11. package/lib/commonjs/components/modal-create-activitie/styles.js.map +1 -0
  12. package/lib/commonjs/components/modal-journey-rectification/index.js +202 -0
  13. package/lib/commonjs/components/modal-journey-rectification/index.js.map +1 -0
  14. package/lib/commonjs/components/modal-journey-rectification/interface.d.js +2 -0
  15. package/lib/commonjs/components/modal-journey-rectification/interface.d.js.map +1 -0
  16. package/lib/commonjs/components/modal-journey-rectification/styles.js +42 -0
  17. package/lib/commonjs/components/modal-journey-rectification/styles.js.map +1 -0
  18. package/lib/commonjs/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
  19. package/lib/commonjs/components/modals/modal-activities/data-activities/index.js.map +1 -0
  20. package/lib/commonjs/components/{modal-activities → modals/modal-activities}/index.js +8 -8
  21. package/lib/commonjs/components/modals/modal-activities/index.js.map +1 -0
  22. package/lib/commonjs/components/modals/modal-activities/interface.d.js +6 -0
  23. package/lib/commonjs/components/modals/modal-activities/interface.d.js.map +1 -0
  24. package/lib/commonjs/components/modals/modal-activity-reason/index.js +161 -0
  25. package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
  26. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
  27. package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
  28. package/lib/commonjs/components/{modal-change-activity → modals/modal-change-activity}/index.js +7 -7
  29. package/lib/commonjs/components/modals/modal-change-activity/index.js.map +1 -0
  30. package/lib/commonjs/components/selects/select-date-and-hours/index.js +95 -0
  31. package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
  32. package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
  33. package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
  34. package/lib/commonjs/components/selects/select-date-and-hours/styles.js +33 -0
  35. package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
  36. package/lib/commonjs/components/selects/select-option/index.js +41 -39
  37. package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
  38. package/lib/commonjs/components/step-indicator/index.js +7 -7
  39. package/lib/commonjs/components/step-indicator/index.js.map +1 -1
  40. package/lib/commonjs/index.js +32 -4
  41. package/lib/commonjs/index.js.map +1 -1
  42. package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js +259 -0
  43. package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
  44. package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +1 -1
  45. package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -1
  46. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +198 -0
  47. package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
  48. package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
  49. package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
  50. package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js +86 -0
  51. package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
  52. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +172 -0
  53. package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
  54. package/lib/commonjs/stories/select-option/select-option.stories.js +3 -2
  55. package/lib/commonjs/stories/select-option/select-option.stories.js.map +1 -1
  56. package/lib/commonjs/styles/theme/theme.js +18 -2
  57. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  58. package/lib/commonjs/utils/options-activity/index.js +27 -0
  59. package/lib/commonjs/utils/options-activity/index.js.map +1 -0
  60. package/lib/commonjs/utils/text-limit/index.js +37 -0
  61. package/lib/commonjs/utils/text-limit/index.js.map +1 -0
  62. package/lib/module/components/input-text-counter/index.js +63 -0
  63. package/lib/module/components/input-text-counter/index.js.map +1 -0
  64. package/lib/module/components/input-text-counter/interface.d.js.map +1 -0
  65. package/lib/module/components/input-text-counter/styles.js +37 -0
  66. package/lib/module/components/input-text-counter/styles.js.map +1 -0
  67. package/lib/module/components/modal-create-activitie/index.js +192 -0
  68. package/lib/module/components/modal-create-activitie/index.js.map +1 -0
  69. package/lib/module/components/modal-create-activitie/interface.js +2 -0
  70. package/lib/module/components/modal-create-activitie/interface.js.map +1 -0
  71. package/lib/module/components/modal-create-activitie/styles.js +37 -0
  72. package/lib/module/components/modal-create-activitie/styles.js.map +1 -0
  73. package/lib/module/components/modal-journey-rectification/index.js +192 -0
  74. package/lib/module/components/modal-journey-rectification/index.js.map +1 -0
  75. package/lib/module/components/modal-journey-rectification/interface.d.js +2 -0
  76. package/lib/module/components/modal-journey-rectification/interface.d.js.map +1 -0
  77. package/lib/module/components/modal-journey-rectification/styles.js +37 -0
  78. package/lib/module/components/modal-journey-rectification/styles.js.map +1 -0
  79. package/lib/module/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
  80. package/lib/module/components/modals/modal-activities/data-activities/index.js.map +1 -0
  81. package/lib/module/components/{modal-activities → modals/modal-activities}/index.js +8 -8
  82. package/lib/module/components/modals/modal-activities/index.js.map +1 -0
  83. package/lib/module/components/modals/modal-activities/interface.d.js +2 -0
  84. package/lib/module/components/modals/modal-activities/interface.d.js.map +1 -0
  85. package/lib/module/components/modals/modal-activity-reason/index.js +151 -0
  86. package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
  87. package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
  88. package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
  89. package/lib/module/components/{modal-change-activity → modals/modal-change-activity}/index.js +6 -6
  90. package/lib/module/components/modals/modal-change-activity/index.js.map +1 -0
  91. package/lib/module/components/selects/select-date-and-hours/index.js +86 -0
  92. package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
  93. package/lib/module/components/selects/select-date-and-hours/interface.js +2 -0
  94. package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
  95. package/lib/module/components/selects/select-date-and-hours/styles.js +28 -0
  96. package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
  97. package/lib/module/components/selects/select-option/index.js +41 -42
  98. package/lib/module/components/selects/select-option/index.js.map +1 -1
  99. package/lib/module/components/step-indicator/index.js +7 -7
  100. package/lib/module/components/step-indicator/index.js.map +1 -1
  101. package/lib/module/index.js +9 -5
  102. package/lib/module/index.js.map +1 -1
  103. package/lib/module/stories/input-text-counter/input-text-counter.stories.js +253 -0
  104. package/lib/module/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
  105. package/lib/module/stories/modal-activities/modal-activities.stories.js +1 -1
  106. package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -1
  107. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +193 -0
  108. package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
  109. package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
  110. package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
  111. package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js +78 -0
  112. package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
  113. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +168 -0
  114. package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
  115. package/lib/module/stories/select-option/select-option.stories.js +1 -1
  116. package/lib/module/stories/select-option/select-option.stories.js.map +1 -1
  117. package/lib/module/styles/theme/theme.js +18 -2
  118. package/lib/module/styles/theme/theme.js.map +1 -1
  119. package/lib/module/utils/options-activity/index.js +22 -0
  120. package/lib/module/utils/options-activity/index.js.map +1 -0
  121. package/lib/module/utils/text-limit/index.js +30 -0
  122. package/lib/module/utils/text-limit/index.js.map +1 -0
  123. package/lib/typescript/src/components/input-text-counter/index.d.ts +33 -0
  124. package/lib/typescript/src/components/input-text-counter/styles.d.ts +34 -0
  125. package/lib/typescript/src/components/modal-create-activitie/index.d.ts +7 -0
  126. package/lib/typescript/src/components/modal-create-activitie/interface.d.ts +18 -0
  127. package/lib/typescript/src/components/modal-create-activitie/styles.d.ts +32 -0
  128. package/lib/typescript/src/components/modal-journey-rectification/index.d.ts +7 -0
  129. package/lib/typescript/src/components/modal-journey-rectification/styles.d.ts +32 -0
  130. package/lib/typescript/src/components/modals/modal-activity-reason/index.d.ts +7 -0
  131. package/lib/typescript/src/components/selects/select-date-and-hours/index.d.ts +12 -0
  132. package/lib/typescript/src/components/selects/select-date-and-hours/interface.d.ts +21 -0
  133. package/lib/typescript/src/components/selects/select-date-and-hours/styles.d.ts +24 -0
  134. package/lib/typescript/src/components/selects/select-option/index.d.ts +3 -6
  135. package/lib/typescript/src/index.d.ts +7 -3
  136. package/lib/typescript/src/stories/input-text-counter/input-text-counter.stories.d.ts +17 -0
  137. package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +1 -1
  138. package/lib/typescript/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +15 -0
  139. package/lib/typescript/src/stories/modal-change-activity/modal-change-activity.stories.d.ts +1 -1
  140. package/lib/typescript/src/stories/modal-create-activitie/modal-create-activitie.stories.d.ts +12 -0
  141. package/lib/typescript/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +34 -0
  142. package/lib/typescript/src/stories/select-option/select-option.stories.d.ts +1 -1
  143. package/lib/typescript/src/styles/global/theme-provider.d.ts +16 -0
  144. package/lib/typescript/src/styles/theme/theme.d.ts +16 -0
  145. package/lib/typescript/src/utils/options-activity/index.d.ts +20 -0
  146. package/lib/typescript/src/utils/text-limit/index.d.ts +13 -0
  147. package/package.json +1 -1
  148. package/src/components/input-text-counter/index.tsx +64 -0
  149. package/src/components/input-text-counter/interface.d.ts +41 -0
  150. package/src/components/input-text-counter/styles.ts +38 -0
  151. package/src/components/modal-create-activitie/index.tsx +211 -0
  152. package/src/components/modal-create-activitie/interface.ts +22 -0
  153. package/src/components/modal-create-activitie/styles.ts +24 -0
  154. package/src/components/modal-journey-rectification/index.tsx +211 -0
  155. package/src/components/modal-journey-rectification/interface.d.ts +22 -0
  156. package/src/components/modal-journey-rectification/styles.ts +24 -0
  157. package/src/components/{modal-activities → modals/modal-activities}/data-activities/index.ts +65 -65
  158. package/src/components/{modal-activities → modals/modal-activities}/index.tsx +137 -137
  159. package/src/components/{modal-activities → modals/modal-activities}/interface.d.ts +32 -32
  160. package/src/components/modals/modal-activity-reason/index.tsx +162 -0
  161. package/src/components/modals/modal-activity-reason/interface.d.ts +10 -0
  162. package/src/components/{modal-change-activity → modals/modal-change-activity}/index.tsx +6 -6
  163. package/src/components/selects/select-date-and-hours/index.tsx +97 -0
  164. package/src/components/selects/select-date-and-hours/interface.ts +31 -0
  165. package/src/components/selects/select-date-and-hours/styles.ts +24 -0
  166. package/src/components/selects/select-option/index.tsx +50 -41
  167. package/src/components/step-indicator/index.tsx +235 -235
  168. package/src/index.ts +49 -45
  169. package/src/stories/input-text-counter/input-text-counter.stories.tsx +232 -0
  170. package/src/stories/modal-activities/modal-activities.stories.tsx +64 -64
  171. package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +192 -0
  172. package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +49 -49
  173. package/src/stories/modal-create-activitie/modal-create-activitie.stories.tsx +82 -0
  174. package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +161 -0
  175. package/src/stories/select-option/select-option.stories.tsx +1 -1
  176. package/src/styles/theme/theme.ts +17 -0
  177. package/src/utils/options-activity/index.ts +14 -0
  178. package/src/utils/text-limit/index.ts +28 -0
  179. package/lib/commonjs/components/modal-activities/data-activities/index.js.map +0 -1
  180. package/lib/commonjs/components/modal-activities/index.js.map +0 -1
  181. package/lib/commonjs/components/modal-activities/interface.d.js.map +0 -1
  182. package/lib/commonjs/components/modal-change-activity/index.js.map +0 -1
  183. package/lib/module/components/modal-activities/data-activities/index.js.map +0 -1
  184. package/lib/module/components/modal-activities/index.js.map +0 -1
  185. package/lib/module/components/modal-activities/interface.d.js.map +0 -1
  186. package/lib/module/components/modal-change-activity/index.js.map +0 -1
  187. /package/lib/commonjs/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
  188. /package/lib/module/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
  189. /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/data-activities/index.d.ts +0 -0
  190. /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/index.d.ts +0 -0
  191. /package/lib/typescript/src/components/{modal-change-activity → modals/modal-change-activity}/index.d.ts +0 -0
@@ -1,49 +1,49 @@
1
- /**
2
- * IMPORTS
3
- */
4
-
5
- import type { Meta, StoryObj } from "@storybook/react";
6
-
7
- // component
8
- import { ModalChangeActivity } from "../../components/modal-change-activity";
9
-
10
- const meta: Meta<typeof ModalChangeActivity> = {
11
- title: "Componente/ModalChangeActivity",
12
- component: ModalChangeActivity,
13
- args: {
14
- visible: true,
15
- descricao: "Repouso Noturno",
16
- onClose: () => {},
17
- modalConfirm: () => {},
18
- },
19
- parameters: {
20
- docs: {
21
- description: {
22
- component: `
23
- # ModalChangeActivity
24
-
25
- Componente de modal para alterar a atividade do usuário.
26
-
27
- ## Uso
28
- \`\`\`tsx
29
- <ModalChangeActivity
30
- visible
31
- dataRegistro="07/03/2024"
32
- descricao="Repouso Noturno"
33
- modalConfirm={(data) => console.log(data)}
34
- onClose={() => console.log("fechar modal")}
35
- />
36
- \`\`\`
37
- `,
38
- },
39
- },
40
- },
41
- };
42
-
43
- export default meta;
44
-
45
- type Story = StoryObj<typeof meta>;
46
-
47
- export const Default: Story = {
48
- name: "Modal - Alterar Descanso",
49
- };
1
+ /**
2
+ * IMPORTS
3
+ */
4
+
5
+ import type { Meta, StoryObj } from "@storybook/react";
6
+
7
+ // component
8
+ import { ModalChangeActivity } from "../../components/modals/modal-change-activity";
9
+
10
+ const meta: Meta<typeof ModalChangeActivity> = {
11
+ title: "Componente/ModalChangeActivity",
12
+ component: ModalChangeActivity,
13
+ args: {
14
+ visible: true,
15
+ descricao: "Repouso Noturno",
16
+ onClose: () => {},
17
+ modalConfirm: () => {},
18
+ },
19
+ parameters: {
20
+ docs: {
21
+ description: {
22
+ component: `
23
+ # ModalChangeActivity
24
+
25
+ Componente de modal para alterar a atividade do usuário.
26
+
27
+ ## Uso
28
+ \`\`\`tsx
29
+ <ModalChangeActivity
30
+ visible
31
+ dataRegistro="07/03/2024"
32
+ descricao="Repouso Noturno"
33
+ modalConfirm={(data) => console.log(data)}
34
+ onClose={() => console.log("fechar modal")}
35
+ />
36
+ \`\`\`
37
+ `,
38
+ },
39
+ },
40
+ },
41
+ };
42
+
43
+ export default meta;
44
+
45
+ type Story = StoryObj<typeof meta>;
46
+
47
+ export const Default: Story = {
48
+ name: "Modal - Alterar Descanso",
49
+ };
@@ -0,0 +1,82 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import type { Meta, StoryObj } from "@storybook/react";
6
+
7
+ // component
8
+ import ModalCreteActivitie from "../../components/modal-create-activitie";
9
+
10
+ // utils / types
11
+ type Props = React.ComponentProps<typeof ModalCreteActivitie>;
12
+
13
+ const meta: Meta<typeof ModalCreteActivitie> = {
14
+ title: "Componente/ModalCreteActivitie",
15
+ component: ModalCreteActivitie,
16
+ args: {
17
+ visible: false,
18
+ textTitle: "Incluir atividade",
19
+ },
20
+ argTypes: {
21
+ onClose: { action: "onClose" },
22
+ onPressConfirm: { action: "onPressConfirm" },
23
+ textTitle: {
24
+ control: "text",
25
+ description: "Título exibido no cabeçalho do modal",
26
+ },
27
+ visible: {
28
+ control: "boolean",
29
+ description: "Controla a visibilidade do modal",
30
+ },
31
+ },
32
+ parameters: {
33
+ docs: {
34
+ description: {
35
+ component: `
36
+ ### ModalCreteActivitie
37
+ Modal para incluir uma atividade com motivo, data e hora.
38
+
39
+ #### Uso
40
+ \`\`\`tsx
41
+ <ModalCreteActivitie
42
+ visible={visible}
43
+ onClose={() => {}}
44
+ onPressConfirm={(payload) => {}}
45
+ textTitle="Incluir atividade"
46
+ />
47
+ \`\`\`
48
+
49
+ - \`visible\`: abre/fecha o modal
50
+ - \`onClose\`: chamado ao cancelar/fechar
51
+ - \`onPressConfirm\`: retorna { reasonValue, label, dateAndHours }
52
+ - \`textTitle\`: título opcional
53
+ `,
54
+ },
55
+ },
56
+ },
57
+ } as Meta<typeof ModalCreteActivitie>;
58
+
59
+ export default meta;
60
+
61
+ type Story = StoryObj<typeof ModalCreteActivitie>;
62
+
63
+ /**
64
+ * Apenas controla via Controls (visible true/false no painel do Storybook).
65
+ * Evita Template com "args: any" e mantém tipagem estrita.
66
+ */
67
+ export const Playground: Story = {
68
+ render: (args: Props) => <ModalCreteActivitie {...args} />,
69
+ };
70
+
71
+ export const Fechado: Story = {
72
+ args: {
73
+ visible: false,
74
+ },
75
+ };
76
+
77
+ export const Aberto: Story = {
78
+ args: {
79
+ visible: true,
80
+ textTitle: "Incluir atividade",
81
+ },
82
+ };
@@ -0,0 +1,161 @@
1
+ /**
2
+ * IMPORTS (Storybook)
3
+ */
4
+ import type { Meta, StoryObj } from "@storybook/react";
5
+ import React from "react";
6
+ import { View } from "react-native";
7
+ import { action } from "@storybook/addon-actions";
8
+
9
+ /**
10
+ * IMPORTS (Componente)
11
+ * Ajuste o caminho conforme sua estrutura (ex.: "../index" ou "./index").
12
+ */
13
+ import ModalJourneyRectification from "../../components/modal-create-activitie";
14
+
15
+ /**
16
+ * DECORATORS
17
+ * Envolve o story para garantir área de visualização e evitar "modal perdido".
18
+ */
19
+ const WithViewport: React.FC<React.PropsWithChildren> = ({ children }) => {
20
+ return (
21
+ <View
22
+ style={{
23
+ flex: 1,
24
+ minHeight: 600,
25
+ alignItems: "center",
26
+ justifyContent: "center",
27
+ backgroundColor: "#F3F4F6", // neutro claro p/ destacar o modal
28
+ }}
29
+ >
30
+ {children}
31
+ </View>
32
+ );
33
+ };
34
+
35
+ /**
36
+ * META
37
+ */
38
+ const meta: Meta<typeof ModalJourneyRectification> = {
39
+ title: "Componente/ModalJourneyRectification",
40
+ component: ModalJourneyRectification,
41
+ args: {
42
+ visible: false,
43
+ textTitle: "Editar atividade",
44
+ onClose: action("onClose"),// ação capturada no painel "Actions"
45
+ onPressConfirm: action("onPressConfirm"), // idem
46
+ },
47
+ argTypes: {
48
+ visible: {
49
+ control: { type: "boolean" },
50
+ description: "Define a visibilidade do modal.",
51
+ table: { category: "Controle" },
52
+ },
53
+ textTitle: {
54
+ control: { type: "text" },
55
+ description: "Título exibido no cabeçalho do modal.",
56
+ table: { category: "Conteúdo" },
57
+ },
58
+ onClose: {
59
+ description: "Callback ao cancelar/fechar o modal.",
60
+ table: { category: "Eventos" },
61
+ },
62
+ onPressConfirm: {
63
+ description:
64
+ "Callback ao confirmar. Recebe { reasonValue, label, dateAndHours }.",
65
+ table: { category: "Eventos" },
66
+ },
67
+ },
68
+ parameters: {
69
+ layout: "fullscreen",
70
+ docs: {
71
+ description: {
72
+ component: `
73
+ ### ModalJourneyRectification
74
+ Modal para **Editar uma atividade** (motivo + data e hora) seguindo o design do sistema.
75
+
76
+ #### Uso básico
77
+ \`\`\`tsx
78
+ import ModalJourneyRectification from "caminho/do/componente";
79
+
80
+ <ModalJourneyRectification
81
+ visible={true}
82
+ textTitle="Edutar atividade"
83
+ onClose={() => {/* fechar */}}
84
+ onPressConfirm={(payload) => {
85
+ // payload: { reasonValue, label, dateAndHours: { date, hours } }
86
+ }}
87
+ />
88
+ \`\`\`
89
+
90
+ - Ao confirmar, o componente dispara o \`onPressConfirm\` com os dados selecionados e **fecha** em seguida.
91
+ - O clique no overlay ou o botão "CANCELAR" disparam \`onClose\`.
92
+ `,
93
+ },
94
+ },
95
+ },
96
+ decorators: [(Story) => <WithViewport>{Story()}</WithViewport>],
97
+ };
98
+ export default meta;
99
+
100
+ /**
101
+ * STORIES
102
+ */
103
+ type Story = StoryObj<typeof ModalJourneyRectification>;
104
+
105
+ /**
106
+ * Estado padrão (fechado).
107
+ */
108
+ export const Default: Story = {};
109
+
110
+ /**
111
+ * Modal visível para inspeção visual.
112
+ */
113
+ export const Opened: Story = {
114
+ args: {
115
+ visible: true,
116
+ },
117
+ parameters: {
118
+ docs: {
119
+ description: {
120
+ story:
121
+ "Exibe o modal aberto para validar layout, overlay e botões de ação.",
122
+ },
123
+ },
124
+ },
125
+ };
126
+
127
+ /**
128
+ * Título customizado (ex.: para variações de copy).
129
+ */
130
+ export const WithCustomTitle: Story = {
131
+ args: {
132
+ visible: true,
133
+ textTitle: "Registrar atividade manualmente",
134
+ },
135
+ parameters: {
136
+ docs: {
137
+ description: {
138
+ story:
139
+ "Permite validar a troca do título e o encaixe no cabeçalho do modal.",
140
+ },
141
+ },
142
+ },
143
+ };
144
+
145
+ /**
146
+ * Playground — ajuste livre via Controls.
147
+ */
148
+ export const Playground: Story = {
149
+ args: {
150
+ visible: false,
151
+ textTitle: "Editar atividade",
152
+ },
153
+ parameters: {
154
+ docs: {
155
+ description: {
156
+ story:
157
+ "Use os **Controls** para alternar `visible` e personalizar `textTitle`. As ações aparecem no painel *Actions*.",
158
+ },
159
+ },
160
+ },
161
+ };
@@ -1,5 +1,5 @@
1
1
  import type { StoryObj, Meta } from "@storybook/react";
2
- import { SelectOption } from "../../components/selects/select-option";
2
+ import SelectOption from "../../components/selects/select-option";
3
3
 
4
4
  import { theme } from "../../styles/theme/theme";
5
5
 
@@ -157,6 +157,22 @@ const letterSpacing = {
157
157
  strong: 1,
158
158
  };
159
159
 
160
+ const lineHeight = {
161
+ "2xs": 10,
162
+ xs: 12,
163
+ sm: 14,
164
+ md: 16,
165
+ lg: 18,
166
+ xl: 20,
167
+ "2xl": 24,
168
+ "3xl": 30,
169
+ "4xl": 36,
170
+ "5xl": 48,
171
+ "6xl": 60,
172
+ "7xl": 72,
173
+ "8xl": 96,
174
+ "9xl": 128,
175
+ };
160
176
  /**
161
177
  * EXPORTSS
162
178
  */
@@ -169,4 +185,5 @@ export const theme = {
169
185
  shadows,
170
186
  paddings,
171
187
  letterSpacing,
188
+ lineHeight,
172
189
  };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ const OPTIONS = [
5
+ { label: "Disp com veículo parado", value: "option1" },
6
+ { label: "Operação com veículo", value: "option2" },
7
+ { label: "Em carga", value: "option3" },
8
+ { label: "Em descarga", value: "option4" },
9
+ ] as const;
10
+
11
+ /**
12
+ * EXPORTS
13
+ */
14
+ export { OPTIONS };
@@ -0,0 +1,28 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+
5
+ interface ILimitProps {
6
+ text: string;
7
+ limit: number;
8
+ }
9
+ const handleLimitTextdisplayByAmount = ({ text, limit }: ILimitProps) => {
10
+ if (text?.length > limit) {
11
+ return `${text.substring(0, limit)}...`;
12
+ } else {
13
+ return text;
14
+ }
15
+ };
16
+
17
+ const handleLimitTextDate = ({ text, limit }: ILimitProps) => {
18
+ if (text?.length > limit) {
19
+ return `${text.substring(0, limit)}`;
20
+ } else {
21
+ return text;
22
+ }
23
+ };
24
+
25
+ /**
26
+ * EXPORTS
27
+ */
28
+ export { handleLimitTextdisplayByAmount, handleLimitTextDate };
@@ -1 +0,0 @@
1
- {"version":3,"names":["activities","exports","trabalho","id","referencia","cor_hex","descricao","tipo","descanso"],"sources":["index.ts"],"sourcesContent":["/**\n * dados para os tipos de atividades selecionado\n */\nexport const activities = {\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"],"mappings":";;;;;;AAAA;AACA;AACA;AACO,MAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,QAAQ,EAAE,CACR;IACEC,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,kBAAkB;IAC9BC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,sBAAsB;IACjCC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,kBAAkB;IAC9BC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,UAAU;IACrBC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,qBAAqB;IACjCC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,aAAa;IACxBC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,2BAA2B;IACvCC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,+BAA+B;IAC1CC,IAAI,EAAE;EACR,CAAC,CACF;EACDC,QAAQ,EAAE,CACR;IACEL,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,iBAAiB;IAC7BC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,iBAAiB;IAC5BC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,iBAAiB;IAC7BC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,iBAAiB;IAC5BC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,UAAU;IACtBC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,UAAU;IACrBC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,UAAU;IACtBC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,UAAU;IACrBC,IAAI,EAAE;EACR,CAAC;AAEL,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
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":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Modal, TouchableOpacity, FlatList } from \"react-native\";\n\n// components\n\nimport Box from \"../box\";\n\n// commons / icons\nimport { Icons } from \"../../common/icons-svg\";\nimport { getIconModalActivities } from \"../../common/icons-svg/modal-activities\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport { Typography } from \"../typography\";\nimport { Button } from \"../button\";\n\n//typing\nimport { IModalActivities, IActivity } from \"./interface\";\n\n// atividades\nimport { activities } from \"./data-activities\";\n\nexport const ModalActivities: React.FC<IModalActivities> = ({\n onClose,\n handleActivity,\n activityType,\n isLoading,\n style,\n}) => {\n return (\n <Modal animationType=\"fade\" transparent={true} onRequestClose={onClose}>\n <Box\n backgroundColor={\"rgba(0, 0, 0, 0.7)\"}\n flexStyle={{ flex: 1, justifyContent: \"center\", alignItems: \"center\" }}\n >\n <Box\n height={310}\n width={\"92%\"}\n backgroundColor={theme.colors.neutral[25]}\n borderStyled={{\n borderColor: theme.colors.blue[500],\n borderWidth: theme.borderWidths.thick,\n borderRadius: theme.borderWidths.thick_medium,\n }}\n paddingStyle={{\n padding: theme.paddings.md,\n }}\n style={{ position: \"relative\" }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text=\"Atividades\"\n size={theme.fontSizes.md}\n color={theme.colors.blue[500]}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.xl}\n />\n\n <TouchableOpacity activeOpacity={0.7} onPress={onClose} style={{}}>\n <Icons icon=\"CLOSED\" color={theme.colors.blue[500]} />\n </TouchableOpacity>\n </Box>\n {/* as atividades */}\n <Box marginStyle={{ marginTop: theme.margins[\"2xl\"] }}>\n <FlatList\n data={activities[activityType]}\n numColumns={3}\n keyExtractor={(item) => item.id.toString()}\n scrollEnabled={false}\n renderItem={({ item }) => (\n <TouchableOpacity\n style={{\n alignItems: \"center\",\n width: 110,\n marginBottom: theme.margins[\"2xl\"], // espaço entre as linhas\n }}\n onPress={() => handleActivity(item as IActivity)}\n >\n {getIconModalActivities(item.referencia)}\n\n <Typography\n text={item.descricao}\n size={theme.fontSizes.xs}\n color={theme.colors.blue[500]}\n lineHeight={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n align=\"center\"\n marginTop={5}\n />\n </TouchableOpacity>\n )}\n />\n </Box>\n\n <Button\n title={\"CANCELAR ATIVIDADE\"}\n width=\"100%\"\n height={40}\n activeOpacity={0.7}\n onPress={onClose}\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.md,\n fontWeight: \"500\",\n }}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderColor: theme.colors.blue[500],\n borderRadius: theme.borderWidths.thick_medium,\n }}\n marginStyle={{ marginLeft: theme.margins.md }}\n isLoading={isLoading ?? false}\n style={[style, { position: \"absolute\", bottom: 10, left: 0 }]}\n />\n </Box>\n </Box>\n </Modal>\n );\n};\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,OA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ACxCM,QAAQ,EAAExD,YAAK,CAACoB,SAAS,CAACN,EAAE;MAC5BqC,UAAU,EAAE;IACd,CAAE;IACFzD,SAAS,EAAE;MACTsB,aAAa,EAAE,KAAK;MACpBnB,UAAU,EAAE,QAAQ;MACpBD,cAAc,EAAE;IAClB,CAAE;IACFO,YAAY,EAAE;MACZG,WAAW,EAAEN,YAAK,CAACO,YAAY,CAACkD,IAAI;MACpCrD,WAAW,EAAEJ,YAAK,CAACC,MAAM,CAACI,IAAI,CAAC,GAAG,CAAC;MACnCI,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":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\nimport { ModalProps } from \"react-native\";\n\n// typing\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface IActivity {\n id: number;\n referencia: string;\n cor_hex: string;\n descricao: string;\n tipo: \"trabalho\" | \"descanso\";\n}\n\ninterface IModalActivities extends ModalProps, IGlobalCss {\n /** função que fecha modal */\n onClose: () => void;\n\n /** tipo de atividades */\n activityType: IActivity[\"tipo\"];\n\n /** função que manda atividade selecionada */\n // eslint-disable-next-line no-unused-vars\n handleActivity: (activity: IActivity) => void;\n}\n\n/**\n * EXPORTS\n */\nexport { IModalActivities, IActivity };\n"],"mappings":"","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_selectOption","_button","_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","SelectOption","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 { SelectOption } from \"../selects/select-option\";\nimport { Button } from \"../button\";\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,IA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AQ,EAAE3E,SAAU;IACpBqB,eAAe,EAAEE,YAAK,CAACC,MAAM,CAACqD,IAAI,CAAC,GAAG,CAAE;IACxCD,eAAe,EAAE;MACf/B,KAAK,EAAE,MAAM;MACbO,UAAU,EAAE,cAAc;MAC1B0B,QAAQ,EAAEvD,YAAK,CAACgC,SAAS,CAACI,EAAE;MAC5BoB,UAAU,EAAE;IACd,CAAE;IACFtC,SAAS,EAAE;MACTC,aAAa,EAAE,KAAK;MACpBtB,UAAU,EAAE,QAAQ;MACpBD,cAAc,EAAE,QAAQ;MACxB6D,SAAS,EAAE;IACb,CAAE;IACFtD,YAAY,EAAE;MACZuD,WAAW,EAAE1D,YAAK,CAACK,YAAY,CAACsD,IAAI;MACpCC,WAAW,EAAE5D,YAAK,CAACC,MAAM,CAACqD,IAAI,CAAC,GAAG,CAAC;MACnClD,YAAY,EAAEJ,YAAK,CAACK,YAAY,CAACC;IACnC;EAAE,CACH,CACE,CACF,CACF,CACD,CACD,CAAC;AAEZ,CAAC;AAACuD,OAAA,CAAAzF,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["activities","trabalho","id","referencia","cor_hex","descricao","tipo","descanso"],"sources":["index.ts"],"sourcesContent":["/**\n * dados para os tipos de atividades selecionado\n */\nexport const activities = {\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"],"mappings":"AAAA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,GAAG;EACxBC,QAAQ,EAAE,CACR;IACEC,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,kBAAkB;IAC9BC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,sBAAsB;IACjCC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,kBAAkB;IAC9BC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,UAAU;IACrBC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,qBAAqB;IACjCC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,aAAa;IACxBC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,2BAA2B;IACvCC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,+BAA+B;IAC1CC,IAAI,EAAE;EACR,CAAC,CACF;EACDC,QAAQ,EAAE,CACR;IACEL,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,iBAAiB;IAC7BC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,iBAAiB;IAC5BC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,iBAAiB;IAC7BC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,iBAAiB;IAC5BC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,UAAU;IACtBC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,UAAU;IACrBC,IAAI,EAAE;EACR,CAAC,EACD;IACEJ,EAAE,EAAE,CAAC;IACLC,UAAU,EAAE,UAAU;IACtBC,OAAO,EAAE,QAAQ;IACjBC,SAAS,EAAE,UAAU;IACrBC,IAAI,EAAE;EACR,CAAC;AAEL,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Modal","TouchableOpacity","FlatList","Box","Icons","getIconModalActivities","theme","Typography","Button","activities","ModalActivities","onClose","handleActivity","activityType","isLoading","style","createElement","animationType","transparent","onRequestClose","backgroundColor","flexStyle","flex","justifyContent","alignItems","height","width","colors","neutral","borderStyled","borderColor","blue","borderWidth","borderWidths","thick","borderRadius","thick_medium","paddingStyle","padding","paddings","md","position","flexDirection","text","size","fontSizes","color","fontFamily","fonts","inter_bold_700","lineHeight","xl","activeOpacity","onPress","icon","marginStyle","marginTop","margins","data","numColumns","keyExtractor","item","id","toString","scrollEnabled","renderItem","marginBottom","referencia","descricao","xs","inter_medium_500","fontWeight","align","title","buttonTextStyle","fontSize","thin","marginLeft","bottom","left"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Modal, TouchableOpacity, FlatList } from \"react-native\";\n\n// components\n\nimport Box from \"../box\";\n\n// commons / icons\nimport { Icons } from \"../../common/icons-svg\";\nimport { getIconModalActivities } from \"../../common/icons-svg/modal-activities\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport { Typography } from \"../typography\";\nimport { Button } from \"../button\";\n\n//typing\nimport { IModalActivities, IActivity } from \"./interface\";\n\n// atividades\nimport { activities } from \"./data-activities\";\n\nexport const ModalActivities: React.FC<IModalActivities> = ({\n onClose,\n handleActivity,\n activityType,\n isLoading,\n style,\n}) => {\n return (\n <Modal animationType=\"fade\" transparent={true} onRequestClose={onClose}>\n <Box\n backgroundColor={\"rgba(0, 0, 0, 0.7)\"}\n flexStyle={{ flex: 1, justifyContent: \"center\", alignItems: \"center\" }}\n >\n <Box\n height={310}\n width={\"92%\"}\n backgroundColor={theme.colors.neutral[25]}\n borderStyled={{\n borderColor: theme.colors.blue[500],\n borderWidth: theme.borderWidths.thick,\n borderRadius: theme.borderWidths.thick_medium,\n }}\n paddingStyle={{\n padding: theme.paddings.md,\n }}\n style={{ position: \"relative\" }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text=\"Atividades\"\n size={theme.fontSizes.md}\n color={theme.colors.blue[500]}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.xl}\n />\n\n <TouchableOpacity activeOpacity={0.7} onPress={onClose} style={{}}>\n <Icons icon=\"CLOSED\" color={theme.colors.blue[500]} />\n </TouchableOpacity>\n </Box>\n {/* as atividades */}\n <Box marginStyle={{ marginTop: theme.margins[\"2xl\"] }}>\n <FlatList\n data={activities[activityType]}\n numColumns={3}\n keyExtractor={(item) => item.id.toString()}\n scrollEnabled={false}\n renderItem={({ item }) => (\n <TouchableOpacity\n style={{\n alignItems: \"center\",\n width: 110,\n marginBottom: theme.margins[\"2xl\"], // espaço entre as linhas\n }}\n onPress={() => handleActivity(item as IActivity)}\n >\n {getIconModalActivities(item.referencia)}\n\n <Typography\n text={item.descricao}\n size={theme.fontSizes.xs}\n color={theme.colors.blue[500]}\n lineHeight={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n align=\"center\"\n marginTop={5}\n />\n </TouchableOpacity>\n )}\n />\n </Box>\n\n <Button\n title={\"CANCELAR ATIVIDADE\"}\n width=\"100%\"\n height={40}\n activeOpacity={0.7}\n onPress={onClose}\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.md,\n fontWeight: \"500\",\n }}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderColor: theme.colors.blue[500],\n borderRadius: theme.borderWidths.thick_medium,\n }}\n marginStyle={{ marginLeft: theme.margins.md }}\n isLoading={isLoading ?? false}\n style={[style, { position: \"absolute\", bottom: 10, left: 0 }]}\n />\n </Box>\n </Box>\n </Modal>\n );\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,EAAEC,QAAQ,QAAQ,cAAc;;AAEhE;;AAEA,OAAOC,GAAG,MAAM,QAAQ;;AAExB;AACA,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,sBAAsB,QAAQ,yCAAyC;;AAEhF;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAChD,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,MAAM,QAAQ,WAAW;;AAElC;;AAGA;AACA,SAASC,UAAU,QAAQ,mBAAmB;AAE9C,OAAO,MAAMC,eAA2C,GAAGA,CAAC;EAC1DC,OAAO;EACPC,cAAc;EACdC,YAAY;EACZC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,oBACEhB,KAAA,CAAAiB,aAAA,CAAChB,KAAK;IAACiB,aAAa,EAAC,MAAM;IAACC,WAAW,EAAE,IAAK;IAACC,cAAc,EAAER;EAAQ,gBACrEZ,KAAA,CAAAiB,aAAA,CAACb,GAAG;IACFiB,eAAe,EAAE,oBAAqB;IACtCC,SAAS,EAAE;MAAEC,IAAI,EAAE,CAAC;MAAEC,cAAc,EAAE,QAAQ;MAAEC,UAAU,EAAE;IAAS;EAAE,gBAEvEzB,KAAA,CAAAiB,aAAA,CAACb,GAAG;IACFsB,MAAM,EAAE,GAA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C,OAAO,EAAE1C,OAAQ;IACjBS,eAAe,EAAEd,KAAK,CAACqB,MAAM,CAACI,IAAI,CAAC,GAAG,CAAE;IACxC2C,eAAe,EAAE;MACf5B,KAAK,EAAExC,KAAK,CAACqB,MAAM,CAACC,OAAO,CAAC,EAAE,CAAC;MAC/BmB,UAAU,EAAEzC,KAAK,CAAC0C,KAAK,CAACsB,gBAAgB;MACxCK,QAAQ,EAAErE,KAAK,CAACuC,SAAS,CAACL,EAAE;MAC5B+B,UAAU,EAAE;IACd,CAAE;IACFlD,SAAS,EAAE;MACTqB,aAAa,EAAE,KAAK;MACpBlB,UAAU,EAAE,QAAQ;MACpBD,cAAc,EAAE;IAClB,CAAE;IACFM,YAAY,EAAE;MACZG,WAAW,EAAE1B,KAAK,CAAC2B,YAAY,CAAC2C,IAAI;MACpC9C,WAAW,EAAExB,KAAK,CAACqB,MAAM,CAACI,IAAI,CAAC,GAAG,CAAC;MACnCI,YAAY,EAAE7B,KAAK,CAAC2B,YAAY,CAACG;IACnC,CAAE;IACFmB,WAAW,EAAE;MAAEsB,UAAU,EAAEvE,KAAK,CAACmD,OAAO,CAACjB;IAAG,CAAE;IAC9C1B,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI,KAAM;IAC9BC,KAAK,EAAE,CAACA,KAAK,EAAE;MAAE0B,QAAQ,EAAE,UAAU;MAAEqC,MAAM,EAAE,EAAE;MAAEC,IAAI,EAAE;IAAE,CAAC;EAAE,CAC/D,CACE,CACF,CACA,CAAC;AAEZ,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\nimport { ModalProps } from \"react-native\";\n\n// typing\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface IActivity {\n id: number;\n referencia: string;\n cor_hex: string;\n descricao: string;\n tipo: \"trabalho\" | \"descanso\";\n}\n\ninterface IModalActivities extends ModalProps, IGlobalCss {\n /** função que fecha modal */\n onClose: () => void;\n\n /** tipo de atividades */\n activityType: IActivity[\"tipo\"];\n\n /** função que manda atividade selecionada */\n // eslint-disable-next-line no-unused-vars\n handleActivity: (activity: IActivity) => void;\n}\n\n/**\n * EXPORTS\n */\nexport { IModalActivities, IActivity };\n"],"mappings":"","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","Modal","View","Box","Typography","SelectOption","Button","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 { SelectOption } from \"../selects/select-option\";\nimport { Button } from \"../button\";\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 borderRad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