react-native-exp-fig 0.1.15 → 0.1.16

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 (90) hide show
  1. package/lib/commonjs/common/icons-svg/constants/index.js +6 -5
  2. package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
  3. package/lib/commonjs/common/icons-svg/hourglass/index.js +36 -0
  4. package/lib/commonjs/common/icons-svg/hourglass/index.js.map +1 -0
  5. package/lib/commonjs/common/icons-svg/index.js +12 -5
  6. package/lib/commonjs/common/icons-svg/index.js.map +1 -1
  7. package/lib/commonjs/components/button/styles.js +1 -1
  8. package/lib/commonjs/components/button/styles.js.map +1 -1
  9. package/lib/commonjs/components/card-history/index.js +55 -5
  10. package/lib/commonjs/components/card-history/index.js.map +1 -1
  11. package/lib/commonjs/components/card-history/interface.d.js.map +1 -1
  12. package/lib/commonjs/components/card-loading/index.js +14 -3
  13. package/lib/commonjs/components/card-loading/index.js.map +1 -1
  14. package/lib/commonjs/components/image-capture-with-remove/index.js +4 -3
  15. package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
  16. package/lib/commonjs/components/image-capture-with-remove/interface.d.js.map +1 -1
  17. package/lib/commonjs/components/loading-progress/index.js +9 -10
  18. package/lib/commonjs/components/loading-progress/index.js.map +1 -1
  19. package/lib/commonjs/components/modal-activities/index.js +155 -0
  20. package/lib/commonjs/components/modal-activities/index.js.map +1 -0
  21. package/lib/commonjs/components/modal-activities/interface.d.js +6 -0
  22. package/lib/commonjs/components/modal-activities/interface.d.js.map +1 -0
  23. package/lib/commonjs/index.js +7 -0
  24. package/lib/commonjs/index.js.map +1 -1
  25. package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +47 -0
  26. package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -0
  27. package/lib/commonjs/styles/global/interface.d.js.map +1 -1
  28. package/lib/commonjs/styles/theme/theme.js +2 -1
  29. package/lib/commonjs/styles/theme/theme.js.map +1 -1
  30. package/lib/commonjs/utils/status-color/return-color.js +12 -2
  31. package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
  32. package/lib/module/common/icons-svg/constants/index.js +6 -5
  33. package/lib/module/common/icons-svg/constants/index.js.map +1 -1
  34. package/lib/module/common/icons-svg/hourglass/index.js +28 -0
  35. package/lib/module/common/icons-svg/hourglass/index.js.map +1 -0
  36. package/lib/module/common/icons-svg/index.js +15 -8
  37. package/lib/module/common/icons-svg/index.js.map +1 -1
  38. package/lib/module/components/button/styles.js +1 -1
  39. package/lib/module/components/button/styles.js.map +1 -1
  40. package/lib/module/components/card-history/index.js +55 -5
  41. package/lib/module/components/card-history/index.js.map +1 -1
  42. package/lib/module/components/card-history/interface.d.js.map +1 -1
  43. package/lib/module/components/card-loading/index.js +15 -4
  44. package/lib/module/components/card-loading/index.js.map +1 -1
  45. package/lib/module/components/image-capture-with-remove/index.js +4 -3
  46. package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
  47. package/lib/module/components/image-capture-with-remove/interface.d.js.map +1 -1
  48. package/lib/module/components/loading-progress/index.js +9 -10
  49. package/lib/module/components/loading-progress/index.js.map +1 -1
  50. package/lib/module/components/modal-activities/index.js +148 -0
  51. package/lib/module/components/modal-activities/index.js.map +1 -0
  52. package/lib/module/components/modal-activities/interface.d.js +2 -0
  53. package/lib/module/components/modal-activities/interface.d.js.map +1 -0
  54. package/lib/module/index.js +3 -2
  55. package/lib/module/index.js.map +1 -1
  56. package/lib/module/stories/modal-activities/modal-activities.stories.js +41 -0
  57. package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -0
  58. package/lib/module/styles/global/interface.d.js.map +1 -1
  59. package/lib/module/styles/theme/theme.js +2 -1
  60. package/lib/module/styles/theme/theme.js.map +1 -1
  61. package/lib/module/utils/status-color/return-color.js +12 -3
  62. package/lib/module/utils/status-color/return-color.js.map +1 -1
  63. package/lib/typescript/src/common/icons-svg/constants/index.d.ts +1 -0
  64. package/lib/typescript/src/common/icons-svg/hourglass/index.d.ts +10 -0
  65. package/lib/typescript/src/components/button/styles.d.ts +2 -3
  66. package/lib/typescript/src/components/modal-activities/index.d.ts +6 -0
  67. package/lib/typescript/src/index.d.ts +1 -0
  68. package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +6 -0
  69. package/lib/typescript/src/styles/global/theme-provider.d.ts +1 -0
  70. package/lib/typescript/src/styles/theme/theme.d.ts +1 -0
  71. package/lib/typescript/src/utils/status-color/return-color.d.ts +2 -1
  72. package/package.json +221 -221
  73. package/src/common/icons-svg/constants/index.ts +64 -63
  74. package/src/common/icons-svg/hourglass/index.tsx +28 -0
  75. package/src/common/icons-svg/index.tsx +259 -255
  76. package/src/components/button/styles.ts +34 -34
  77. package/src/components/card-history/index.tsx +211 -149
  78. package/src/components/card-history/interface.d.ts +34 -28
  79. package/src/components/card-loading/index.tsx +290 -278
  80. package/src/components/image-capture-with-remove/index.tsx +92 -89
  81. package/src/components/image-capture-with-remove/interface.d.ts +28 -25
  82. package/src/components/loading-progress/index.tsx +2 -1
  83. package/src/components/modal-activities/index.tsx +139 -0
  84. package/src/components/modal-activities/interface.d.ts +21 -0
  85. package/src/index.ts +43 -42
  86. package/src/stories/card-history/card-history.stories.tsx +50 -50
  87. package/src/stories/modal-activities/modal-activities.stories.tsx +46 -0
  88. package/src/styles/global/interface.d.ts +146 -141
  89. package/src/styles/theme/theme.ts +171 -170
  90. package/src/utils/status-color/return-color.ts +34 -23
@@ -1 +1 @@
1
- {"version":3,"names":["React","Image","TouchableOpacity","Box","Icons","theme","getBorderColor","ImageCaptureWithRemove","width","height","foto","handleTakePhoto","onRemove","status","statusColor","createElement","testID","activeOpacity","style","position","onPress","disabled","flexStyle","flexDirection","alignItems","justifyContent","borderStyled","borderWidth","borderWidths","thick","thin","borderRadius","fontSizes","md","borderColor","colors","blue","Fragment","resizeMode","source","uri","top","right","icon","color","red","size"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Image, TouchableOpacity } from \"react-native\";\n\n// components\nimport { Box } from \"../box\";\n\n// comons / icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { IImageCaptureWithRemoveProps } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n// utils\nimport { getBorderColor } from \"../../utils/status-color/return-color\";\n\n/**\n *\n * Componente ImageCaptureWithRemove para a interação do usuário com ui.\n */\nconst ImageCaptureWithRemove: React.FC<IImageCaptureWithRemoveProps> = ({\n width = 50,\n height = 50,\n foto = null,\n handleTakePhoto,\n onRemove,\n status,\n}: IImageCaptureWithRemoveProps) => {\n const statusColor = status === \"Cancelado\" || status === \"Pendente\";\n\n return (\n <TouchableOpacity\n testID=\"image-capture-touchable\"\n activeOpacity={0.7}\n style={{ position: \"relative\" }}\n onPress={handleTakePhoto}\n disabled={!!foto}\n >\n <Box\n width={width}\n height={height}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"center\" }}\n testID=\"plus-icon-box\"\n borderStyled={{\n borderWidth: statusColor ? theme.borderWidths.thick : theme.borderWidths.thin,\n borderRadius: theme.fontSizes.md,\n borderColor: statusColor ? getBorderColor(status) : theme.colors.blue[400],\n }}\n >\n {foto ? (\n <>\n <Image\n testID=\"captured-image\"\n style={{\n width: \"100%\",\n height: \"100%\",\n borderRadius: theme.fontSizes.md,\n resizeMode: \"cover\",\n }}\n source={{\n uri: foto,\n }}\n />\n\n <TouchableOpacity\n testID=\"remove-button\"\n style={{ position: \"absolute\", top: 2, right: 4 }}\n onPress={onRemove}\n >\n <Icons icon=\"X_CIRCLE\" color={theme.colors.red[400]} size={18} />\n </TouchableOpacity>\n </>\n ) : (\n <Icons icon=\"PLUS\" color={theme.colors.blue[400]} />\n )}\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { ImageCaptureWithRemove };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC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,CAAAf,KAAA,CAAAqC,QAAA,qBACErC,KAAA,CAAAe,aAAA,CAACd,KAAK;IACJe,MAAM,EAAC,gBAAgB;IACvBE,KAAK,EAAE;MACLV,KAAK,EAAE,MAAM;MACbC,MAAM,EAAE,MAAM;MACdsB,YAAY,EAAE1B,KAAK,CAAC2B,SAAS,CAACC,EAAE;MAChCK,UAAU,EAAE;IACd,CAAE;IACFC,MAAM,EAAE;MACNC,GAAG,EAAE9B;IACP;EAAE,CACH,CAAC,eAEFV,KAAA,CAAAe,aAAA,CAACb,gBAAgB;IACfc,MAAM,EAAC,eAAe;IACtBE,KAAK,EAAE;MAAEC,QAAQ,EAAE,UAAU;MAAEsB,GAAG,EAAE,CAAC;MAAEC,KAAK,EAAE;IAAE,CAAE;IAClDtB,OAAO,EAAER;EAAS,gBAElBZ,KAAA,CAAAe,aAAA,CAACX,KAAK;IAACuC,IAAI,EAAC,UAAU;IAACC,KAAK,EAAEvC,KAAK,CAAC8B,MAAM,CAACU,GAAG,CAAC,GAAG,CAAE;IAACC,IAAI,EAAE;EAAG,CAAE,CAChD,CAClB,CAAC,gBAEH9C,KAAA,CAAAe,aAAA,CAACX,KAAK;IAACuC,IAAI,EAAC,MAAM;IAACC,KAAK,EAAEvC,KAAK,CAAC8B,MAAM,CAACC,IAAI,CAAC,GAAG;EAAE,CAAE,CAElD,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAAS7B,sBAAsB","ignoreList":[]}
1
+ {"version":3,"names":["React","Image","TouchableOpacity","Box","Icons","theme","getBorderColor","ImageCaptureWithRemove","width","height","foto","useRemove","status","handleTakePhoto","onRemove","statusColor","createElement","testID","activeOpacity","style","position","onPress","disabled","flexStyle","flexDirection","alignItems","justifyContent","borderStyled","borderWidth","borderWidths","thick","thin","borderRadius","fontSizes","md","borderColor","colors","blue","Fragment","resizeMode","source","uri","top","right","icon","color","red","size"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Image, TouchableOpacity } from \"react-native\";\n\n// components\nimport { Box } from \"../box\";\n\n// comons / icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { IImageCaptureWithRemoveProps } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n// utils\nimport { getBorderColor } from \"../../utils/status-color/return-color\";\n\n/**\n *\n * Componente ImageCaptureWithRemove para a interação do usuário com ui.\n */\nconst ImageCaptureWithRemove: React.FC<IImageCaptureWithRemoveProps> = ({\n width = 50,\n height = 50,\n foto = null,\n useRemove = true,\n status,\n handleTakePhoto,\n onRemove,\n}: IImageCaptureWithRemoveProps) => {\n const statusColor = status === \"Cancelado\" || status === \"Pendente\";\n\n return (\n <TouchableOpacity\n testID=\"image-capture-touchable\"\n activeOpacity={0.7}\n style={{ position: \"relative\" }}\n onPress={handleTakePhoto}\n disabled={!!foto}\n >\n <Box\n width={width}\n height={height}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"center\" }}\n testID=\"plus-icon-box\"\n borderStyled={{\n borderWidth: statusColor ? theme.borderWidths.thick : theme.borderWidths.thin,\n borderRadius: theme.fontSizes.md,\n borderColor: statusColor ? getBorderColor(status) : theme.colors.blue[400],\n }}\n >\n {foto ? (\n <>\n <Image\n testID=\"captured-image\"\n style={{\n width: \"100%\",\n height: \"100%\",\n borderRadius: theme.fontSizes.md,\n resizeMode: \"cover\",\n }}\n source={{\n uri: foto,\n }}\n />\n\n {useRemove && (\n <TouchableOpacity\n testID=\"remove-button\"\n style={{ position: \"absolute\", top: 2, right: 4 }}\n onPress={onRemove}\n >\n <Icons icon=\"X_CIRCLE\" color={theme.colors.red[400]} size={18} />\n </TouchableOpacity>\n )}\n </>\n ) : (\n <Icons icon=\"PLUS\" color={theme.colors.blue[400]} />\n )}\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { ImageCaptureWithRemove };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KA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G;IAC3E;EAAE,GAED3B,IAAI,gBACHV,KAAA,CAAAgB,aAAA,CAAAhB,KAAA,CAAAsC,QAAA,qBACEtC,KAAA,CAAAgB,aAAA,CAACf,KAAK;IACJgB,MAAM,EAAC,gBAAgB;IACvBE,KAAK,EAAE;MACLX,KAAK,EAAE,MAAM;MACbC,MAAM,EAAE,MAAM;MACduB,YAAY,EAAE3B,KAAK,CAAC4B,SAAS,CAACC,EAAE;MAChCK,UAAU,EAAE;IACd,CAAE;IACFC,MAAM,EAAE;MACNC,GAAG,EAAE/B;IACP;EAAE,CACH,CAAC,EAEDC,SAAS,iBACRX,KAAA,CAAAgB,aAAA,CAACd,gBAAgB;IACfe,MAAM,EAAC,eAAe;IACtBE,KAAK,EAAE;MAAEC,QAAQ,EAAE,UAAU;MAAEsB,GAAG,EAAE,CAAC;MAAEC,KAAK,EAAE;IAAE,CAAE;IAClDtB,OAAO,EAAEP;EAAS,gBAElBd,KAAA,CAAAgB,aAAA,CAACZ,KAAK;IAACwC,IAAI,EAAC,UAAU;IAACC,KAAK,EAAExC,KAAK,CAAC+B,MAAM,CAACU,GAAG,CAAC,GAAG,CAAE;IAACC,IAAI,EAAE;EAAG,CAAE,CAChD,CAEpB,CAAC,gBAEH/C,KAAA,CAAAgB,aAAA,CAACZ,KAAK;IAACwC,IAAI,EAAC,MAAM;IAACC,KAAK,EAAExC,KAAK,CAAC+B,MAAM,CAACC,IAAI,CAAC,GAAG;EAAE,CAAE,CAElD,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAAS9B,sBAAsB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\ntype IImageCaptureWithRemoveProps = {\n /**define o tamanho */\n width?: number;\n /**define o altura */\n height?: number;\n /**Imagem capturada */\n foto?: string | null;\n\n /**Remove a imagem capturada */\n onRemove: () => void;\n\n /**Captura a imagem */\n handleTakePhoto: () => void;\n\n /**Define o status das fotos */\n status?: \"Pendente\" | \"Concluido\" | \"Cancelado\" | \"Andamento\";\n};\n\n/**\n * EXPORTS\n */\nexport { IImageCaptureWithRemoveProps };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\ntype IImageCaptureWithRemoveProps = {\n /**define o tamanho */\n width?: number;\n /**define o altura */\n height?: number;\n /**Imagem capturada */\n foto?: string | null;\n\n /**Define o status das fotos */\n status?: \"Pendente\" | \"Concluido\" | \"Cancelado\" | \"Andamento\";\n\n /**propiedade que define se e para utilizar o metódo de remover */\n useRemove?: boolean;\n\n /**Remove a imagem capturada */\n onRemove: () => void;\n\n /**Captura a imagem */\n handleTakePhoto: () => void;\n};\n\n/**\n * EXPORTS\n */\nexport { IImageCaptureWithRemoveProps };\n"],"mappings":"","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- /**
2
- * IMPORTS
1
+ /**
2
+ * IMPORTS
3
3
  */
4
4
  import React from "react";
5
5
 
@@ -13,9 +13,9 @@ import { Button } from "../button";
13
13
  // styles
14
14
  import { theme } from "../../styles/theme/theme";
15
15
 
16
- /**
17
- *
18
- * Componente LoadingProgress para a interação do usuário com ui.
16
+ /**
17
+ *
18
+ * Componente LoadingProgress para a interação do usuário com ui.
19
19
  */
20
20
  const LoadingProgress = ({
21
21
  textLoading,
@@ -23,9 +23,7 @@ const LoadingProgress = ({
23
23
  backgroundColor
24
24
  }) => {
25
25
  const truncatedText = textLoading.length > 15 ? textLoading.substring(0, 13) + "..." : textLoading;
26
- return /*#__PURE__*/React.createElement(Box, {
27
- backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : theme.colors.neutral[25]
28
- }, /*#__PURE__*/React.createElement(Typography, {
26
+ return /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(Typography, {
29
27
  text: "Carregamento em Andamento",
30
28
  size: theme.fontSizes.lg,
31
29
  fontFamily: theme.fonts.inter_medium_500,
@@ -34,6 +32,7 @@ const LoadingProgress = ({
34
32
  paddingStyle: {
35
33
  padding: theme.paddings["2xs"]
36
34
  },
35
+ backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : theme.colors.neutral[25],
37
36
  borderStyled: {
38
37
  borderWidth: theme.borderWidths.thin,
39
38
  borderRadius: theme.borderWidths.thick_large,
@@ -92,8 +91,8 @@ const LoadingProgress = ({
92
91
  }))));
93
92
  };
94
93
 
95
- /**
96
- * EXPORTS
94
+ /**
95
+ * EXPORTS
97
96
  */
98
97
  export { LoadingProgress };
99
98
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","Box","Typography","Button","theme","LoadingProgress","textLoading","handleClick","backgroundColor","truncatedText","length","substring","createElement","colors","neutral","text","size","fontSizes","lg","fontFamily","fonts","inter_medium_500","color","gray","paddingStyle","padding","paddings","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_large","borderStyle","borderColor","marginStyle","marginTop","margins","marginBottom","flexStyle","flexDirection","textAlign","md","inter_bold_700","blue","letterSpacing","alignItems","justifyContent","title","onPress","isLoading","height","width","buttonTextStyle","fontSize","thick_medium"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\n\r\n// component\r\nimport { Box } from \"../box\";\r\nimport { Typography } from \"../typography\";\r\nimport { Button } from \"../button\";\r\n\r\n// typings\r\nimport { ILoadingProgress } from \"./interface\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\n/**\r\n *\r\n * Componente LoadingProgress para a interação do usuário com ui.\r\n */\r\nconst LoadingProgress: React.FC<ILoadingProgress> = ({\r\n textLoading,\r\n handleClick,\r\n backgroundColor,\r\n}: ILoadingProgress) => {\r\n const truncatedText =\r\n textLoading.length > 15 ? textLoading.substring(0, 13) + \"...\" : textLoading;\r\n return (\r\n <Box backgroundColor={backgroundColor ?? theme.colors.neutral[25]}>\r\n <Typography\r\n text=\"Carregamento em Andamento\"\r\n size={theme.fontSizes.lg}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n color={theme.colors.gray[800]}\r\n />\r\n <Box\r\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderRadius: theme.borderWidths.thick_large,\r\n borderStyle: \"dashed\",\r\n borderColor: theme.colors.neutral[200],\r\n }}\r\n marginStyle={{ marginTop: theme.margins[\"2xs\"], marginBottom: theme.margins[\"2xs\"] }}\r\n >\r\n <Box flexStyle={{ flexDirection: \"row\", textAlign: \"center\" }}>\r\n <Typography\r\n text={\"N° Carregamento: \"}\r\n size={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n color={theme.colors.blue[400]}\r\n />\r\n\r\n <Typography\r\n text={truncatedText}\r\n size={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n color={theme.colors.gray[800]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n <Box\r\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\", flexDirection: \"row\" }}\r\n marginStyle={{ marginTop: theme.margins[\"2xs\"] }}\r\n >\r\n <Button\r\n title={\"Visualizar\"}\r\n onPress={handleClick}\r\n backgroundColor={theme.colors.blue[400]}\r\n isLoading={false}\r\n height={32}\r\n width={\"75%\"}\r\n buttonTextStyle={{\r\n color: theme.colors.neutral[25],\r\n fontFamily: theme.fonts.inter_medium_500,\r\n fontSize: theme.fontSizes.lg,\r\n }}\r\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\", flexDirection: \"row\" }}\r\n borderStyled={{\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n />\r\n </Box>\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { LoadingProgress };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;AACA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S,MAAM,CAACC,OAAO,CAAC,EAAE,CAAC;MAC/BK,UAAU,EAAEf,KAAK,CAACgB,KAAK,CAACC,gBAAgB;MACxCiC,QAAQ,EAAElD,KAAK,CAACa,SAAS,CAACC;IAC5B,CAAE;IACFqB,SAAS,EAAE;MAAEO,UAAU,EAAE,QAAQ;MAAEC,cAAc,EAAE,QAAQ;MAAEP,aAAa,EAAE;IAAM,CAAE;IACpFb,YAAY,EAAE;MACZI,YAAY,EAAE3B,KAAK,CAACyB,YAAY,CAAC0B;IACnC;EAAE,CACH,CACE,CACF,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AACA,SAASlD,eAAe","ignoreList":[]}
1
+ {"version":3,"names":["React","Box","Typography","Button","theme","LoadingProgress","textLoading","handleClick","backgroundColor","truncatedText","length","substring","createElement","text","size","fontSizes","lg","fontFamily","fonts","inter_medium_500","color","colors","gray","paddingStyle","padding","paddings","neutral","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_large","borderStyle","borderColor","marginStyle","marginTop","margins","marginBottom","flexStyle","flexDirection","textAlign","md","inter_bold_700","blue","letterSpacing","alignItems","justifyContent","title","onPress","isLoading","height","width","buttonTextStyle","fontSize","thick_medium"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\n\n// component\nimport { Box } from \"../box\";\nimport { Typography } from \"../typography\";\nimport { Button } from \"../button\";\n\n// typings\nimport { ILoadingProgress } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n *\n * Componente LoadingProgress para a interação do usuário com ui.\n */\nconst LoadingProgress: React.FC<ILoadingProgress> = ({\n textLoading,\n handleClick,\n backgroundColor,\n}: ILoadingProgress) => {\n const truncatedText =\n textLoading.length > 15 ? textLoading.substring(0, 13) + \"...\" : textLoading;\n return (\n <Box>\n <Typography\n text=\"Carregamento em Andamento\"\n size={theme.fontSizes.lg}\n fontFamily={theme.fonts.inter_medium_500}\n color={theme.colors.gray[800]}\n />\n <Box\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\n backgroundColor={backgroundColor ?? theme.colors.neutral[25]}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderRadius: theme.borderWidths.thick_large,\n borderStyle: \"dashed\",\n borderColor: theme.colors.neutral[200],\n }}\n marginStyle={{ marginTop: theme.margins[\"2xs\"], marginBottom: theme.margins[\"2xs\"] }}\n >\n <Box flexStyle={{ flexDirection: \"row\", textAlign: \"center\" }}>\n <Typography\n text={\"N° Carregamento: \"}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_bold_700}\n color={theme.colors.blue[400]}\n />\n\n <Typography\n text={truncatedText}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_medium_500}\n color={theme.colors.gray[800]}\n letterSpacing={\"regular\"}\n />\n </Box>\n <Box\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\", flexDirection: \"row\" }}\n marginStyle={{ marginTop: theme.margins[\"2xs\"] }}\n >\n <Button\n title={\"Visualizar\"}\n onPress={handleClick}\n backgroundColor={theme.colors.blue[400]}\n isLoading={false}\n height={32}\n width={\"75%\"}\n buttonTextStyle={{\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\n fontSize: theme.fontSizes.lg,\n }}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\", flexDirection: \"row\" }}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_medium,\n }}\n />\n </Box>\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { LoadingProgress };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,MAAM,QAAQ,WAAW;;AAElC;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;AACA;AACA;AACA;AACA,MAAMC,eAA2C,GAAGA,CAAC;EACnDC,WA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Q;MAAEC,cAAc,EAAE,QAAQ;MAAEP,aAAa,EAAE;IAAM,CAAE;IACpFb,YAAY,EAAE;MACZI,YAAY,EAAE3B,KAAK,CAACyB,YAAY,CAAC0B;IACnC;EAAE,CACH,CACE,CACF,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AACA,SAASlD,eAAe","ignoreList":[]}
@@ -0,0 +1,148 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import { Modal, TouchableOpacity, FlatList } from "react-native";
6
+
7
+ // components
8
+
9
+ import { Box } from "../box";
10
+
11
+ // commons / icons
12
+ import { Icons } from "../../common/icons-svg";
13
+
14
+ // styles
15
+ import { theme } from "../../styles/theme/theme";
16
+ import { Typography } from "../typography";
17
+ import { Button } from "../button";
18
+
19
+ //typing
20
+
21
+ export const ModalActivities = ({
22
+ onClose,
23
+ handleActivity,
24
+ isLoading
25
+ }) => {
26
+ const activities = [{
27
+ id: 1,
28
+ name: "Operação com Veículo",
29
+ icon: "STEERING_WHEEL"
30
+ }, {
31
+ id: 2,
32
+ name: "Em Carga",
33
+ icon: "HOURGLASS"
34
+ }, {
35
+ id: 3,
36
+ name: "Em Descarga",
37
+ icon: "HOURGLASS"
38
+ }, {
39
+ id: 4,
40
+ name: "Disposição com Veículo Parado",
41
+ icon: "TRUCK_ACTIVITY"
42
+ }];
43
+ return /*#__PURE__*/React.createElement(Modal, {
44
+ animationType: "fade",
45
+ transparent: true,
46
+ onRequestClose: onClose
47
+ }, /*#__PURE__*/React.createElement(Box, {
48
+ backgroundColor: "rgba(0, 0, 0, 0.7)",
49
+ flexStyle: {
50
+ flex: 1,
51
+ justifyContent: "center",
52
+ alignItems: "center"
53
+ }
54
+ }, /*#__PURE__*/React.createElement(Box, {
55
+ height: 320,
56
+ width: "92%",
57
+ backgroundColor: theme.colors.neutral[25],
58
+ borderStyled: {
59
+ borderColor: theme.colors.blue[500],
60
+ borderWidth: theme.borderWidths.thick,
61
+ borderRadius: theme.borderWidths.thick_medium
62
+ },
63
+ paddingStyle: {
64
+ padding: theme.paddings.md
65
+ }
66
+ }, /*#__PURE__*/React.createElement(Box, {
67
+ width: "100%",
68
+ flexStyle: {
69
+ flexDirection: "row",
70
+ justifyContent: "space-between",
71
+ alignItems: "center"
72
+ }
73
+ }, /*#__PURE__*/React.createElement(Typography, {
74
+ text: "Atividades",
75
+ size: theme.fontSizes.md,
76
+ color: theme.colors.blue[500],
77
+ fontFamily: theme.fonts.inter_bold_700
78
+ // fontWeight={"700"}
79
+ ,
80
+ lineHeight: theme.fontSizes.xl
81
+ }), /*#__PURE__*/React.createElement(TouchableOpacity, {
82
+ activeOpacity: 0.7,
83
+ onPress: onClose,
84
+ style: {}
85
+ }, /*#__PURE__*/React.createElement(Icons, {
86
+ color: theme.colors.blue[500],
87
+ icon: "CLOSED"
88
+ }))), /*#__PURE__*/React.createElement(Box, {
89
+ marginStyle: {
90
+ marginTop: theme.margins["2xl"]
91
+ }
92
+ }, /*#__PURE__*/React.createElement(FlatList, {
93
+ data: activities,
94
+ numColumns: 3,
95
+ keyExtractor: item => item.id.toString(),
96
+ scrollEnabled: false,
97
+ renderItem: ({
98
+ item
99
+ }) => /*#__PURE__*/React.createElement(TouchableOpacity, {
100
+ style: {
101
+ alignItems: "center",
102
+ width: 110,
103
+ marginBottom: theme.margins["2xl"] // espaço entre as linhas
104
+ },
105
+ onPress: () => handleActivity(item.name)
106
+ }, /*#__PURE__*/React.createElement(Icons, {
107
+ color: theme.colors.blue[500],
108
+ icon: item.icon
109
+ }), /*#__PURE__*/React.createElement(Typography, {
110
+ text: item.name,
111
+ size: theme.fontSizes.xs,
112
+ color: theme.colors.blue[500],
113
+ lineHeight: theme.fontSizes.md,
114
+ fontFamily: theme.fonts.inter_medium_500,
115
+ fontWeight: "500",
116
+ align: "center",
117
+ marginTop: 5
118
+ }))
119
+ })), /*#__PURE__*/React.createElement(Button, {
120
+ title: "Cancelar Atividade",
121
+ width: "100%",
122
+ height: 40,
123
+ activeOpacity: 0.7,
124
+ onPress: onClose,
125
+ backgroundColor: theme.colors.blue[500],
126
+ buttonTextStyle: {
127
+ color: theme.colors.neutral[25],
128
+ fontFamily: theme.fonts.inter_medium_500,
129
+ fontSize: theme.fontSizes.md,
130
+ fontWeight: "500"
131
+ },
132
+ marginStyle: {
133
+ marginTop: theme.margins.sm
134
+ },
135
+ flexStyle: {
136
+ flexDirection: "row",
137
+ alignItems: "center",
138
+ justifyContent: "center"
139
+ },
140
+ borderStyled: {
141
+ borderWidth: theme.borderWidths.thin,
142
+ borderColor: theme.colors.blue[500],
143
+ borderRadius: theme.borderWidths.thick_medium
144
+ },
145
+ isLoading: isLoading !== null && isLoading !== void 0 ? isLoading : false
146
+ }))));
147
+ };
148
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Modal","TouchableOpacity","FlatList","Box","Icons","theme","Typography","Button","ModalActivities","onClose","handleActivity","isLoading","activities","id","name","icon","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","flexDirection","text","size","fontSizes","color","fontFamily","fonts","inter_bold_700","lineHeight","xl","activeOpacity","onPress","style","marginStyle","marginTop","margins","data","numColumns","keyExtractor","item","toString","scrollEnabled","renderItem","marginBottom","xs","inter_medium_500","fontWeight","align","title","buttonTextStyle","fontSize","sm","thin"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { Modal, TouchableOpacity, FlatList } from \"react-native\";\r\n\r\n// components\r\n\r\nimport { Box } from \"../box\";\r\n\r\n// commons / icons\r\nimport { Icons } from \"../../common/icons-svg\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\nimport { Typography } from \"../typography\";\r\nimport { Button } from \"../button\";\r\n\r\n//typing\r\nimport { IModalActivities } from \"./interface\";\r\n\r\nexport const ModalActivities: React.FC<IModalActivities> = ({\r\n onClose,\r\n handleActivity,\r\n isLoading,\r\n}) => {\r\n const activities = [\r\n { id: 1, name: \"Operação com Veículo\", icon: \"STEERING_WHEEL\" },\r\n { id: 2, name: \"Em Carga\", icon: \"HOURGLASS\" },\r\n { id: 3, name: \"Em Descarga\", icon: \"HOURGLASS\" },\r\n { id: 4, name: \"Disposição com Veículo Parado\", icon: \"TRUCK_ACTIVITY\" },\r\n ];\r\n\r\n return (\r\n <Modal animationType=\"fade\" transparent={true} onRequestClose={onClose}>\r\n <Box\r\n backgroundColor={\"rgba(0, 0, 0, 0.7)\"}\r\n flexStyle={{ flex: 1, justifyContent: \"center\", alignItems: \"center\" }}\r\n >\r\n <Box\r\n height={320}\r\n width={\"92%\"}\r\n backgroundColor={theme.colors.neutral[25]}\r\n borderStyled={{\r\n borderColor: theme.colors.blue[500],\r\n borderWidth: theme.borderWidths.thick,\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n paddingStyle={{\r\n padding: theme.paddings.md,\r\n }}\r\n >\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n justifyContent: \"space-between\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text=\"Atividades\"\r\n size={theme.fontSizes.md}\r\n color={theme.colors.blue[500]}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n // fontWeight={\"700\"}\r\n lineHeight={theme.fontSizes.xl}\r\n />\r\n\r\n <TouchableOpacity activeOpacity={0.7} onPress={onClose} style={{}}>\r\n <Icons color={theme.colors.blue[500]} icon=\"CLOSED\" />\r\n </TouchableOpacity>\r\n </Box>\r\n {/* as atividades */}\r\n <Box marginStyle={{ marginTop: theme.margins[\"2xl\"] }}>\r\n <FlatList\r\n data={activities}\r\n numColumns={3}\r\n keyExtractor={(item) => item.id.toString()}\r\n scrollEnabled={false}\r\n renderItem={({ item }) => (\r\n <TouchableOpacity\r\n style={{\r\n alignItems: \"center\",\r\n width: 110,\r\n marginBottom: theme.margins[\"2xl\"], // espaço entre as linhas\r\n }}\r\n onPress={() => handleActivity(item.name)}\r\n >\r\n <Icons\r\n color={theme.colors.blue[500]}\r\n icon={item.icon as \"STEERING_WHEEL\" | \"HOURGLASS\" | \"TRUCK_ACTIVITY\"}\r\n />\r\n <Typography\r\n text={item.name}\r\n size={theme.fontSizes.xs}\r\n color={theme.colors.blue[500]}\r\n lineHeight={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n align=\"center\"\r\n marginTop={5}\r\n />\r\n </TouchableOpacity>\r\n )}\r\n />\r\n </Box>\r\n\r\n <Button\r\n title={\"Cancelar Atividade\"}\r\n width=\"100%\"\r\n height={40}\r\n activeOpacity={0.7}\r\n onPress={onClose}\r\n backgroundColor={theme.colors.blue[500]}\r\n buttonTextStyle={{\r\n color: theme.colors.neutral[25],\r\n fontFamily: theme.fonts.inter_medium_500,\r\n fontSize: theme.fontSizes.md,\r\n fontWeight: \"500\",\r\n }}\r\n marginStyle={{ marginTop: theme.margins.sm }}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: theme.colors.blue[500],\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n isLoading={isLoading ?? false}\r\n />\r\n </Box>\r\n </Box>\r\n </Modal>\r\n );\r\n};\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,EAAEC,QAAQ,QAAQ,cAAc;;AAEhE;;AAEA,SAASC,GAAG,QAAQ,QAAQ;;AAE5B;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAChD,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,MAAM,QA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E;MAC5B2B,UAAU,EAAE;IACd,CAAE;IACFb,WAAW,EAAE;MAAEC,SAAS,EAAElD,KAAK,CAACmD,OAAO,CAACgB;IAAG,CAAE;IAC7CnD,SAAS,EAAE;MACToB,aAAa,EAAE,KAAK;MACpBjB,UAAU,EAAE,QAAQ;MACpBD,cAAc,EAAE;IAClB,CAAE;IACFM,YAAY,EAAE;MACZG,WAAW,EAAE3B,KAAK,CAAC4B,YAAY,CAACwC,IAAI;MACpC3C,WAAW,EAAEzB,KAAK,CAACsB,MAAM,CAACI,IAAI,CAAC,GAAG,CAAC;MACnCI,YAAY,EAAE9B,KAAK,CAAC4B,YAAY,CAACG;IACnC,CAAE;IACFzB,SAAS,EAAEA,SAAS,aAATA,SAAS,cAATA,SAAS,GAAI;EAAM,CAC/B,CACE,CACF,CACA,CAAC;AAEZ,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interface.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport { ModalProps } from \"react-native\";\r\n\r\n// typing\r\nimport { IGlobalCss } from \"../../styles/global/interface\";\r\n\r\ninterface IModalActivities extends ModalProps, IGlobalCss {\r\n /** função que fecha modal */\r\n onClose: () => void;\r\n\r\n /** função que manda atividade selecionada */\r\n // eslint-disable-next-line no-unused-vars\r\n handleActivity: (activity: string) => void;\r\n}\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { IModalActivities };\r\n"],"mappings":"","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- /**
2
- * EXPORTS
1
+ /**
2
+ * EXPORTS
3
3
  */
4
4
 
5
5
  // Components
@@ -33,6 +33,7 @@ export { HistoryDetails } from "./components/history-details";
33
33
  export { ActivitiesDaily } from "./components/activities-daily";
34
34
  export { ActivitiesProgress } from "./components/activities-progress";
35
35
  export { ProfileMenuOption } from "./components/profile-menu-option";
36
+ export { ModalActivities } from "./components/modal-activities";
36
37
 
37
38
  // Utilities
38
39
  export { multiply } from "./utils/mutiply";
@@ -1 +1 @@
1
- {"version":3,"names":["Box","Button","StepIndicator","Typography","Input","CapturePhoto","CardHours","SelectOption","Header","ScheduledJourneyIndicators","CardScheduledJourney","UserProfile","MenuItem","CardLoading","CardWorkSession","LoadingProgress","NoData","FilterJourney","Coil","FilterDateSelector","CardHistory","NotificationLoading","CheckBox","ImageCaptureWithRemove","LoadingDetails","AvatarProfile","HistoryDetails","ActivitiesDaily","ActivitiesProgress","ProfileMenuOption","multiply","formatDate","getLastSevenDays","formHoursMinute","theme"],"sources":["index.ts"],"sourcesContent":["/**\n * EXPORTS\n */\n\n// Components\nexport { Box } from \"./components/box\";\nexport { Button } from \"./components/button\";\nexport { StepIndicator } from \"./components/step-indicator\";\nexport { Typography } from \"./components/typography\";\nexport { Input } from \"./components/input\";\nexport { CapturePhoto } from \"./components/capture-photo\";\nexport { CardHours } from \"./components/card-hours\";\nexport { SelectOption } from \"./components/selects/select-option\";\nexport { Header } from \"./components/header-profile\";\nexport { ScheduledJourneyIndicators } from \"./components/scheduled-journey-indicators\";\nexport { CardScheduledJourney } from \"./components/card-scheduled-journey\";\nexport { UserProfile } from \"./components/user-profile\";\nexport { MenuItem } from \"./components/menu-item\";\nexport { CardLoading } from \"./components/card-loading\";\nexport { CardWorkSession } from \"./components/card-work-session\";\nexport { LoadingProgress } from \"./components/loading-progress\";\nexport { NoData } from \"./components/no-data\";\nexport { FilterJourney } from \"./components/filter-journey\";\nexport { Coil } from \"./components/coil\";\nexport { FilterDateSelector } from \"./components/filter-date-selector\";\nexport { CardHistory } from \"./components/card-history\";\nexport { NotificationLoading } from \"./components/notification-loading\";\nexport { CheckBox } from \"./components/check-box\";\nexport { ImageCaptureWithRemove } from \"./components/image-capture-with-remove\";\nexport { LoadingDetails } from \"./components/loading-details\";\nexport { AvatarProfile } from \"./components/avatar-profile\";\nexport { HistoryDetails } from \"./components/history-details\";\nexport { ActivitiesDaily } from \"./components/activities-daily\";\nexport { ActivitiesProgress } from \"./components/activities-progress\";\nexport { ProfileMenuOption } from \"./components/profile-menu-option\";\n\n// Utilities\nexport { multiply } from \"./utils/mutiply\";\nexport { formatDate, getLastSevenDays, formHoursMinute } from \"./utils/format-data\";\n\n// Styles\nexport { theme } from \"./styles/theme/theme\";\n"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA,SAASA,GAAG,QAAQ,kBAAkB;AACtC,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,YAAY,QAAQ,4BAA4B;AACzD,SAASC,SAAS,QAAQ,yBAAyB;AACnD,SAASC,YAAY,QAAQ,oCAAoC;AACjE,SAASC,MAAM,QAAQ,6BAA6B;AACpD,SAASC,0BAA0B,QAAQ,2CAA2C;AACtF,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,kBAAkB,QAAQ,mCAAmC;AACtE,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,mBAAmB,QAAQ,mCAAmC;AACvE,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,sBAAsB,QAAQ,wCAAwC;AAC/E,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,kBAAkB,QAAQ,kCAAkC;AACrE,SAASC,iBAAiB,QAAQ,kCAAkC;;AAEpE;AACA,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,UAAU,EAAEC,gBAAgB,EAAEC,eAAe,QAAQ,qBAAqB;;AAEnF;AACA,SAASC,KAAK,QAAQ,sBAAsB","ignoreList":[]}
1
+ {"version":3,"names":["Box","Button","StepIndicator","Typography","Input","CapturePhoto","CardHours","SelectOption","Header","ScheduledJourneyIndicators","CardScheduledJourney","UserProfile","MenuItem","CardLoading","CardWorkSession","LoadingProgress","NoData","FilterJourney","Coil","FilterDateSelector","CardHistory","NotificationLoading","CheckBox","ImageCaptureWithRemove","LoadingDetails","AvatarProfile","HistoryDetails","ActivitiesDaily","ActivitiesProgress","ProfileMenuOption","ModalActivities","multiply","formatDate","getLastSevenDays","formHoursMinute","theme"],"sources":["index.ts"],"sourcesContent":["/**\r\n * EXPORTS\r\n */\r\n\r\n// Components\r\nexport { Box } from \"./components/box\";\r\nexport { Button } from \"./components/button\";\r\nexport { StepIndicator } from \"./components/step-indicator\";\r\nexport { Typography } from \"./components/typography\";\r\nexport { Input } from \"./components/input\";\r\nexport { CapturePhoto } from \"./components/capture-photo\";\r\nexport { CardHours } from \"./components/card-hours\";\r\nexport { SelectOption } from \"./components/selects/select-option\";\r\nexport { Header } from \"./components/header-profile\";\r\nexport { ScheduledJourneyIndicators } from \"./components/scheduled-journey-indicators\";\r\nexport { CardScheduledJourney } from \"./components/card-scheduled-journey\";\r\nexport { UserProfile } from \"./components/user-profile\";\r\nexport { MenuItem } from \"./components/menu-item\";\r\nexport { CardLoading } from \"./components/card-loading\";\r\nexport { CardWorkSession } from \"./components/card-work-session\";\r\nexport { LoadingProgress } from \"./components/loading-progress\";\r\nexport { NoData } from \"./components/no-data\";\r\nexport { FilterJourney } from \"./components/filter-journey\";\r\nexport { Coil } from \"./components/coil\";\r\nexport { FilterDateSelector } from \"./components/filter-date-selector\";\r\nexport { CardHistory } from \"./components/card-history\";\r\nexport { NotificationLoading } from \"./components/notification-loading\";\r\nexport { CheckBox } from \"./components/check-box\";\r\nexport { ImageCaptureWithRemove } from \"./components/image-capture-with-remove\";\r\nexport { LoadingDetails } from \"./components/loading-details\";\r\nexport { AvatarProfile } from \"./components/avatar-profile\";\r\nexport { HistoryDetails } from \"./components/history-details\";\r\nexport { ActivitiesDaily } from \"./components/activities-daily\";\r\nexport { ActivitiesProgress } from \"./components/activities-progress\";\r\nexport { ProfileMenuOption } from \"./components/profile-menu-option\";\r\nexport { ModalActivities } from \"./components/modal-activities\";\r\n\r\n// Utilities\r\nexport { multiply } from \"./utils/mutiply\";\r\nexport { formatDate, getLastSevenDays, formHoursMinute } from \"./utils/format-data\";\r\n\r\n// Styles\r\nexport { theme } from \"./styles/theme/theme\";\r\n"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA,SAASA,GAAG,QAAQ,kBAAkB;AACtC,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,YAAY,QAAQ,4BAA4B;AACzD,SAASC,SAAS,QAAQ,yBAAyB;AACnD,SAASC,YAAY,QAAQ,oCAAoC;AACjE,SAASC,MAAM,QAAQ,6BAA6B;AACpD,SAASC,0BAA0B,QAAQ,2CAA2C;AACtF,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,kBAAkB,QAAQ,mCAAmC;AACtE,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,mBAAmB,QAAQ,mCAAmC;AACvE,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,sBAAsB,QAAQ,wCAAwC;AAC/E,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,kBAAkB,QAAQ,kCAAkC;AACrE,SAASC,iBAAiB,QAAQ,kCAAkC;AACpE,SAASC,eAAe,QAAQ,+BAA+B;;AAE/D;AACA,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,UAAU,EAAEC,gBAAgB,EAAEC,eAAe,QAAQ,qBAAqB;;AAEnF;AACA,SAASC,KAAK,QAAQ,sBAAsB","ignoreList":[]}
@@ -0,0 +1,41 @@
1
+ import { ModalActivities } from "../../components/modal-activities";
2
+ const meta = {
3
+ title: "componente/ModalActivities",
4
+ component: ModalActivities,
5
+ args: {
6
+ width: 120,
7
+ onClose: () => {},
8
+ isLoading: false,
9
+ handleActivity: activity => () => {
10
+ return activity;
11
+ }
12
+ },
13
+ parameters: {
14
+ notes: `
15
+ # MenuItem
16
+
17
+ Este é um componente de MenuItem de menu.
18
+ Você usa assim:
19
+ \`\`\`tsx
20
+ <ModalActivities
21
+ {...args}
22
+ onClose={() => setIsVisible(false)}
23
+ handleActivity={handleActivity}
24
+ />
25
+ \`\`\`
26
+ `
27
+ }
28
+ };
29
+ export default meta;
30
+ export const Default = {
31
+ name: "modal-activities",
32
+ args: {
33
+ width: 120,
34
+ isLoading: false,
35
+ onClose: () => {},
36
+ handleActivity: activity => () => {
37
+ return activity;
38
+ }
39
+ }
40
+ };
41
+ //# sourceMappingURL=modal-activities.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ModalActivities","meta","title","component","args","width","onClose","isLoading","handleActivity","activity","parameters","notes","Default","name"],"sources":["modal-activities.stories.tsx"],"sourcesContent":["import { StoryObj, Meta } from \"@storybook/react\";\nimport { ModalActivities } from \"../../components/modal-activities\";\n\nconst meta: Meta<typeof ModalActivities> = {\n title: \"componente/ModalActivities\",\n component: ModalActivities,\n args: {\n width: 120,\n onClose: () => {},\n isLoading: false,\n handleActivity: (activity: string) => () => {\n return activity;\n },\n },\n parameters: {\n notes: `\n# MenuItem\n\nEste é um componente de MenuItem de menu.\nVocê usa assim:\n\\`\\`\\`tsx\n <ModalActivities\n {...args}\n onClose={() => setIsVisible(false)}\n handleActivity={handleActivity}\n />\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const Default: Story = {\n name: \"modal-activities\",\n args: {\n width: 120,\n isLoading: false,\n onClose: () => {},\n handleActivity: (activity: string) => () => {\n return activity;\n },\n },\n};\n"],"mappings":"AACA,SAASA,eAAe,QAAQ,mCAAmC;AAEnE,MAAMC,IAAkC,GAAG;EACzCC,KAAK,EAAE,4BAA4B;EACnCC,SAAS,EAAEH,eAAe;EAC1BI,IAAI,EAAE;IACJC,KAAK,EAAE,GAAG;IACVC,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAC;IACjBC,SAAS,EAAE,KAAK;IAChBC,cAAc,EAAGC,QAAgB,IAAK,MAAM;MAC1C,OAAOA,QAAQ;IACjB;EACF,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAED,eAAeV,IAAI;AAInB,OAAO,MAAMW,OAAc,GAAG;EAC5BC,IAAI,EAAE,kBAAkB;EACxBT,IAAI,EAAE;IACJC,KAAK,EAAE,GAAG;IACVE,SAAS,EAAE,KAAK;IAChBD,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAC;IACjBE,cAAc,EAAGC,QAAgB,IAAK,MAAM;MAC1C,OAAOA,QAAQ;IACjB;EACF;AACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/*\n * IMPORTS\n */\nimport React from \"react\";\nimport { DimensionValue } from \"react-native\";\nimport { theme } from \"../theme/theme\";\n\nexport interface IGlobalCss {\n /**\n * A propriedade JSX que define um elemento ou componente filho.\n */\n children?: React.ReactNode;\n\n /**\n * TestID para testes automático e identificação\n */\n testID?: string;\n\n /**\n * A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.\n */\n borderStyled?: {\n borderStyle?: \"solid\" | \"dotted\" | \"dashed\";\n\n borderRadius?: number | DimensionValue;\n borderTopRightRadius?: number | DimensionValue;\n borderTopLeftRadius?: number | DimensionValue;\n borderBottomRightRadius?: number | DimensionValue;\n borderBottomLeftRadius?: number | DimensionValue;\n\n borderWidth?: number | DimensionValue;\n borderLeftWidth?: number | DimensionValue;\n borderRightWidth?: number | DimensionValue;\n borderTopWidth?: number | DimensionValue;\n borderBottomWidth?: number | DimensionValue;\n\n borderColor?: string;\n borderBottomColor?: string;\n borderLeftColor?: string;\n borderRightColor?: string;\n borderTopColor?: string;\n };\n\n /**\n * Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.\n */\n flexStyle?: {\n alignItems?: \"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"baseline\";\n alignSelf?: \"auto\" | \"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"baseline\";\n flex?: string | number;\n flexDirection?: \"column\" | \"column-reverse\" | \"row\" | \"row-reverse\";\n flexWrap?: \"nowrap\" | \"wrap\" | \"wrap-reverse\";\n textAlign?: \"auto\" | \"center\" | \"left\" | \"right\" | \"justify\";\n justifyContent?:\n | \"flex-start\"\n | \"flex-end\"\n | \"center\"\n | \"space-between\"\n | \"space-around\"\n | \"space-evenly\";\n };\n\n /**\n * A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).\n */\n marginStyle?: {\n margin?: number | DimensionValue;\n marginLeft?: number | DimensionValue;\n marginRight?: number | DimensionValue;\n marginTop?: number | DimensionValue;\n marginBottom?: number | DimensionValue;\n };\n\n /**\n * A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).\n */\n paddingStyle?: {\n padding?: number | DimensionValue;\n paddingLeft?: number | DimensionValue;\n paddingRight?: number | DimensionValue;\n paddingTop?: number | DimensionValue;\n paddingBottom?: number | DimensionValue;\n };\n\n /**\n * A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.\n */\n height?: number | DimensionValue;\n\n /**\n * A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.\n */\n width?: number | DimensionValue;\n\n /**\n * O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..\n */\n backgroundColor?: string;\n\n /**\n * Propriedade texto que sera renderizado pro usuário final\n */\n text?: string;\n\n /**\n * A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.\n */\n color?: {\n colorSvg?: string;\n colorText?: string;\n colorTextBold?: string;\n colorTextData?: string;\n };\n\n /**\n * A propriedade abreviada CSS da fonte define todas as propriedades diferentes da fonte de um elemento. Alternativamente, ele define a fonte de um elemento como uma fonte do sistema.\n */\n fontStyle?: {\n font?: string;\n fontSize?: number;\n fontWeight?: \"100\" | \"300\" | \"400\" | \"500\" | \"600\" | \"700\" | \"800\" | \"900\" | \"bold\";\n fontFamily?: keyof typeof theme.fonts;\n letterSpacing?: keyof typeof theme.letterSpacing;\n lineHeight?: number;\n };\n\n /**\n * A propriedade CSS opacity define o nível de opacidade de um elemento. O valor da opacidade varia de 0 (totalmente transparente) a 1 (totalmente opaco).\n */\n disabled?: boolean;\n\n /**\n * A propriedade background do icon da cor.\n */\n backgroundColorIcon?: string;\n}\n\n// /**\n// * EXPORTS\n// */\n// export { IGlobalCss };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/*\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { DimensionValue } from \"react-native\";\r\nimport { theme } from \"../theme/theme\";\r\n\r\nexport interface IGlobalCss {\r\n /**\r\n * A propriedade JSX que define um elemento ou componente filho.\r\n */\r\n children?: React.ReactNode;\r\n\r\n /**\r\n * TestID para testes automático e identificação\r\n */\r\n testID?: string;\r\n\r\n /**\r\n * A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.\r\n */\r\n borderStyled?: {\r\n borderStyle?: \"solid\" | \"dotted\" | \"dashed\";\r\n\r\n borderRadius?: number | DimensionValue;\r\n borderTopRightRadius?: number | DimensionValue;\r\n borderTopLeftRadius?: number | DimensionValue;\r\n borderBottomRightRadius?: number | DimensionValue;\r\n borderBottomLeftRadius?: number | DimensionValue;\r\n\r\n borderWidth?: number | DimensionValue;\r\n borderLeftWidth?: number | DimensionValue;\r\n borderRightWidth?: number | DimensionValue;\r\n borderTopWidth?: number | DimensionValue;\r\n borderBottomWidth?: number | DimensionValue;\r\n\r\n borderColor?: string;\r\n borderBottomColor?: string;\r\n borderLeftColor?: string;\r\n borderRightColor?: string;\r\n borderTopColor?: string;\r\n };\r\n\r\n /**\r\n * Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.\r\n */\r\n flexStyle?: {\r\n alignItems?: \"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"baseline\";\r\n alignSelf?: \"auto\" | \"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"baseline\";\r\n flex?: string | number;\r\n flexDirection?: \"column\" | \"column-reverse\" | \"row\" | \"row-reverse\";\r\n flexWrap?: \"nowrap\" | \"wrap\" | \"wrap-reverse\";\r\n textAlign?: \"auto\" | \"center\" | \"left\" | \"right\" | \"justify\";\r\n justifyContent?:\r\n | \"flex-start\"\r\n | \"flex-end\"\r\n | \"center\"\r\n | \"space-between\"\r\n | \"space-around\"\r\n | \"space-evenly\";\r\n };\r\n\r\n /**\r\n * A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).\r\n */\r\n marginStyle?: {\r\n margin?: number | DimensionValue;\r\n marginLeft?: number | DimensionValue;\r\n marginRight?: number | DimensionValue;\r\n marginTop?: number | DimensionValue;\r\n marginBottom?: number | DimensionValue;\r\n };\r\n\r\n /**\r\n * A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).\r\n */\r\n paddingStyle?: {\r\n padding?: number | DimensionValue;\r\n paddingLeft?: number | DimensionValue;\r\n paddingRight?: number | DimensionValue;\r\n paddingTop?: number | DimensionValue;\r\n paddingBottom?: number | DimensionValue;\r\n };\r\n\r\n /**\r\n * A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.\r\n */\r\n height?: number | DimensionValue;\r\n\r\n /**\r\n * A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.\r\n */\r\n width?: number | DimensionValue;\r\n\r\n /**\r\n * O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..\r\n */\r\n backgroundColor?: string;\r\n\r\n /**\r\n * Propriedade texto que sera renderizado pro usuário final\r\n */\r\n text?: string;\r\n\r\n /**\r\n * A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.\r\n */\r\n color?: {\r\n colorSvg?: string;\r\n colorText?: string;\r\n colorTextBold?: string;\r\n colorTextData?: string;\r\n };\r\n\r\n /**\r\n * A propriedade abreviada CSS da fonte define todas as propriedades diferentes da fonte de um elemento. Alternativamente, ele define a fonte de um elemento como uma fonte do sistema.\r\n */\r\n fontStyle?: {\r\n font?: string;\r\n fontSize?: number;\r\n fontWeight?: \"100\" | \"300\" | \"400\" | \"500\" | \"600\" | \"700\" | \"800\" | \"900\" | \"bold\";\r\n fontFamily?: keyof typeof theme.fonts;\r\n letterSpacing?: keyof typeof theme.letterSpacing;\r\n lineHeight?: number;\r\n };\r\n\r\n /**\r\n * A propriedade CSS opacity define o nível de opacidade de um elemento. O valor da opacidade varia de 0 (totalmente transparente) a 1 (totalmente opaco).\r\n */\r\n disabled?: boolean;\r\n\r\n /**\r\n * A propriedade background do icon da cor.\r\n */\r\n backgroundColorIcon?: string;\r\n\r\n /**\r\n * props que indica o loading do button\r\n */\r\n isLoading?: boolean;\r\n}\r\n\r\n// /**\r\n// * EXPORTS\r\n// */\r\n// export { IGlobalCss };\r\n"],"mappings":"","ignoreList":[]}
@@ -74,7 +74,8 @@ const colors = {
74
74
  yellow: {
75
75
  100: "#DFAE00",
76
76
  50: "#F0CA4B",
77
- 75: "#F59E0B"
77
+ 75: "#F59E0B",
78
+ 90: "#957C5F"
78
79
  }
79
80
  };
80
81
  const fonts = {
@@ -1 +1 @@
1
- {"version":3,"names":["borderWidths","thin","thin_medium","thin_bold","thick","thick_medium","thick_bold","thick_large","hairline","colors","neutral","black","blue","red","gray","green","orange","yellow","fonts","inter_thin_100","inter_extra_light_200","inter_light_300","inter_regular_400","inter_medium_500","inter_semi_bold_600","inter_bold_700","inter_extra_bold_800","inter_bold","fontSizes","xs","sm","md","lg","xl","margins","paddings","shadows","z1","z2","letterSpacing","o_16","regular","medium","strong","theme"],"sources":["theme.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nconst borderWidths = {\n thin: 1,\n thin_medium: 2,\n thin_bold: 6,\n thick: 4,\n thick_medium: 8,\n thick_bold: 12,\n thick_large: 16,\n hairline: 999,\n};\n\nconst colors = {\n neutral: {\n 25: \"#FFFFFF\",\n 50: \"#E7EEFF\",\n 75: \"#E5E1F9\",\n 200: \"#C6C6C6\",\n 300: \"#F3F3F3\",\n 400: \"#F4F5F6\",\n },\n black: {\n 10: \"#000000\",\n 25: \"#1E1E1E\",\n 100: \"#393939\",\n 180: \"#35302B\",\n },\n blue: {\n 25: \"#1E1E1E\",\n 50: \"#1EA7fD\",\n 100: \"#051C3B\",\n 150: \"#2E41F2\",\n 350: \"#357FD6\",\n 375: \"#056CF2\",\n 400: \"#2D3748\",\n 400_50: \"#2D374880\",\n 500: \"#050022\",\n 525: \"#051C3B\",\n },\n red: {\n 400: \"#D23A1A\",\n 500: \"#C54239\",\n 600: \"#B3261E\",\n 800: \"#E72626\",\n 900: \"#9F0000\",\n },\n gray: {\n 300: \"#D9D9D9\",\n 350: \"#CDCDCD\",\n 400: \"#C6C6C6\",\n 500: \"#1c1c1e\",\n 600: \"#5E5E5E\",\n 700: \"#727272\",\n 800: \"#837676\",\n 850: \"#868686\",\n 875: \"#949494\",\n 900: \"#9B9B9B\",\n 925: \"#957c5f\",\n 950: \"#94a3b8\",\n },\n green: {\n 200: \"#25BA76\",\n 250: \"#20AD48\",\n 400: \"#49C63E\",\n 500: \"#50C58F\",\n },\n orange: {\n 500: \"#FC5701\",\n 450: \"#FC6C2D\",\n 150: \"#FFA41C\",\n },\n yellow: {\n 100: \"#DFAE00\",\n 50: \"#F0CA4B\",\n 75: \"#F59E0B\",\n },\n};\n\nconst fonts = {\n inter_thin_100: \"Inter-Thin\",\n inter_extra_light_200: \"Inter-ExtraLight\",\n inter_light_300: \"Inter-Light\",\n inter_regular_400: \"Inter-Regular\",\n inter_medium_500: \"Inter-Medium\",\n inter_semi_bold_600: \"Inter-SemiBold\",\n inter_bold_700: \"Inter-Bold\",\n inter_extra_bold_800: \"Inter-ExtraBold\",\n inter_bold: \"Inter-Bold\",\n};\n\nconst fontSizes = {\n \"2xs\": 10,\n xs: 12,\n sm: 14,\n md: 16,\n lg: 18,\n xl: 20,\n \"2xl\": 24,\n \"3xl\": 32,\n \"4xl\": 38,\n \"5xl\": 50,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128,\n};\n\nconst margins = {\n \"1xs\": 6,\n \"2xs\": 10,\n xs: 12,\n sm: 14,\n md: 16,\n lg: 18,\n xl: 20,\n \"2xl\": 24,\n \"3xl\": 30,\n \"4xl\": 36,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128,\n};\n\nconst paddings = {\n \"2xs\": 10,\n xs: 12,\n sm: 14,\n md: 16,\n lg: 18,\n xl: 20,\n \"2xl\": 24,\n \"3xl\": 30,\n \"4xl\": 36,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128,\n};\n\nconst shadows = {\n z1: \"0px 1px 0px rgba(0, 0, 0, 0.3), 0px 1px 0px 1px rgba(0, 0, 0, 0.15)\",\n z2: \"0px 1px 2px rgba(0, 0, 0, 0.3)\",\n};\n\nconst letterSpacing = {\n o_16: 0.16,\n regular: 0.5,\n medium: 0.75,\n strong: 1,\n};\n\n/**\n * EXPORTSS\n */\nexport const theme = {\n borderWidths,\n colors,\n fonts,\n fontSizes,\n margins,\n shadows,\n paddings,\n letterSpacing,\n};\n"],"mappings":"AAAA;AACA;AACA;;AAEA,MAAMA,YAAY,GAAG;EACnBC,IAAI,EAAE,CAAC;EAC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AACT,CAAC;AAED,MAAME,QAAQ,GAAG;EACf,KAAK,EAAE,EAAE;EACTN,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACNC,EAAE,EAAE,EAAE;EACN,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE,EAAE;EACT,KAAK,EAAE;AACT,CAAC;AAED,MAAMG,OAAO,GAAG;EACdC,EAAE,EAAE,qEAAqE;EACzEC,EAAE,EAAE;AACN,CAAC;AAED,MAAMC,aAAa,GAAG;EACpBC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE,GAAG;EACZC,MAAM,EAAE,IAAI;EACZC,MAAM,EAAE;AACV,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMC,KAAK,GAAG;EACnB5C,YAAY;EACZS,MAAM;EACNS,KAAK;EACLU,SAAS;EACTM,OAAO;EACPE,OAAO;EACPD,QAAQ;EACRI;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["borderWidths","thin","thin_medium","thin_bold","thick","thick_medium","thick_bold","thick_large","hairline","colors","neutral","black","blue","red","gray","green","orange","yellow","fonts","inter_thin_100","inter_extra_light_200","inter_light_300","inter_regular_400","inter_medium_500","inter_semi_bold_600","inter_bold_700","inter_extra_bold_800","inter_bold","fontSizes","xs","sm","md","lg","xl","margins","paddings","shadows","z1","z2","letterSpacing","o_16","regular","medium","strong","theme"],"sources":["theme.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nconst borderWidths = {\n thin: 1,\n thin_medium: 2,\n thin_bold: 6,\n thick: 4,\n thick_medium: 8,\n thick_bold: 12,\n thick_large: 16,\n hairline: 999,\n};\n\nconst colors = {\n neutral: {\n 25: \"#FFFFFF\",\n 50: \"#E7EEFF\",\n 75: \"#E5E1F9\",\n 200: \"#C6C6C6\",\n 300: \"#F3F3F3\",\n 400: \"#F4F5F6\",\n },\n black: {\n 10: \"#000000\",\n 25: \"#1E1E1E\",\n 100: \"#393939\",\n 180: \"#35302B\",\n },\n blue: {\n 25: \"#1E1E1E\",\n 50: \"#1EA7fD\",\n 100: \"#051C3B\",\n 150: \"#2E41F2\",\n 350: \"#357FD6\",\n 375: \"#056CF2\",\n 400: \"#2D3748\",\n 400_50: \"#2D374880\",\n 500: \"#050022\",\n 525: \"#051C3B\",\n },\n red: {\n 400: \"#D23A1A\",\n 500: \"#C54239\",\n 600: \"#B3261E\",\n 800: \"#E72626\",\n 900: \"#9F0000\",\n },\n gray: {\n 300: \"#D9D9D9\",\n 350: \"#CDCDCD\",\n 400: \"#C6C6C6\",\n 500: \"#1c1c1e\",\n 600: \"#5E5E5E\",\n 700: \"#727272\",\n 800: \"#837676\",\n 850: \"#868686\",\n 875: \"#949494\",\n 900: \"#9B9B9B\",\n 925: \"#957c5f\",\n 950: \"#94a3b8\",\n },\n green: {\n 200: \"#25BA76\",\n 250: \"#20AD48\",\n 400: \"#49C63E\",\n 500: \"#50C58F\",\n },\n orange: {\n 500: \"#FC5701\",\n 450: \"#FC6C2D\",\n 150: \"#FFA41C\",\n },\n yellow: {\n 100: \"#DFAE00\",\n 50: \"#F0CA4B\",\n 75: \"#F59E0B\",\n 90: \"#957C5F\",\n },\n};\n\nconst fonts = {\n inter_thin_100: \"Inter-Thin\",\n inter_extra_light_200: \"Inter-ExtraLight\",\n inter_light_300: \"Inter-Light\",\n inter_regular_400: \"Inter-Regular\",\n inter_medium_500: \"Inter-Medium\",\n inter_semi_bold_600: \"Inter-SemiBold\",\n inter_bold_700: \"Inter-Bold\",\n inter_extra_bold_800: \"Inter-ExtraBold\",\n inter_bold: \"Inter-Bold\",\n};\n\nconst fontSizes = {\n \"2xs\": 10,\n xs: 12,\n sm: 14,\n md: 16,\n lg: 18,\n xl: 20,\n \"2xl\": 24,\n \"3xl\": 32,\n \"4xl\": 38,\n \"5xl\": 50,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128,\n};\n\nconst margins = {\n \"1xs\": 6,\n \"2xs\": 10,\n xs: 12,\n sm: 14,\n md: 16,\n lg: 18,\n xl: 20,\n \"2xl\": 24,\n \"3xl\": 30,\n \"4xl\": 36,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128,\n};\n\nconst paddings = {\n \"2xs\": 10,\n xs: 12,\n sm: 14,\n md: 16,\n lg: 18,\n xl: 20,\n \"2xl\": 24,\n \"3xl\": 30,\n \"4xl\": 36,\n \"5xl\": 48,\n \"6xl\": 60,\n \"7xl\": 72,\n \"8xl\": 96,\n \"9xl\": 128,\n};\n\nconst shadows = {\n z1: \"0px 1px 0px rgba(0, 0, 0, 0.3), 0px 1px 0px 1px rgba(0, 0, 0, 0.15)\",\n z2: \"0px 1px 2px rgba(0, 0, 0, 0.3)\",\n};\n\nconst letterSpacing = {\n o_16: 0.16,\n regular: 0.5,\n medium: 0.75,\n strong: 1,\n};\n\n/**\n * EXPORTSS\n */\nexport const theme = {\n borderWidths,\n colors,\n fonts,\n fontSizes,\n margins,\n shadows,\n paddings,\n letterSpacing,\n};\n"],"mappings":"AAAA;AACA;AACA;;AAEA,MAAMA,YAAY,GAAG;EACnBC,IAAI,EAAE,CAAC;EACPC,WAAW,EAAE,CAAC;EACdC,SAAS,EAAE,CAAC;EACZC,KAAK,EAAE,CAAC;EACRC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAE,EAAE;EACdC,WAAW,EAAE,EAAE;EACfC,QAAQ,EAAE;AACZ,CAAC;AAED,MAAMC,MAAM,GAAG;EACbC,OAAO,EAAE;IACP,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE;EACP,C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E,EAAE;EACT,KAAK,EAAE;AACT,CAAC;AAED,MAAMG,OAAO,GAAG;EACdC,EAAE,EAAE,qEAAqE;EACzEC,EAAE,EAAE;AACN,CAAC;AAED,MAAMC,aAAa,GAAG;EACpBC,IAAI,EAAE,IAAI;EACVC,OAAO,EAAE,GAAG;EACZC,MAAM,EAAE,IAAI;EACZC,MAAM,EAAE;AACV,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMC,KAAK,GAAG;EACnB5C,YAAY;EACZS,MAAM;EACNS,KAAK;EACLU,SAAS;EACTM,OAAO;EACPE,OAAO;EACPD,QAAQ;EACRI;AACF,CAAC","ignoreList":[]}
@@ -8,12 +8,21 @@ function getBorderColor(status) {
8
8
  }
9
9
  function getStatusColor(status) {
10
10
  const statusColors = {
11
- Concluido: theme.colors.green[400],
11
+ Concluido: theme.colors.green[250],
12
12
  Cancelado: theme.colors.red[900],
13
- Pendente: theme.colors.yellow[50],
13
+ Pendente: theme.colors.yellow[75],
14
14
  Andamento: theme.colors.yellow[50]
15
15
  };
16
16
  return statusColors[status];
17
17
  }
18
- export { getStatusColor, getBorderColor };
18
+ function getStatusTextColor(status) {
19
+ const statusColors = {
20
+ Concluido: theme.colors.neutral[25],
21
+ Cancelado: theme.colors.neutral[25],
22
+ Pendente: theme.colors.neutral[50],
23
+ Andamento: theme.colors.neutral[50]
24
+ };
25
+ return statusColors[status];
26
+ }
27
+ export { getStatusColor, getBorderColor, getStatusTextColor };
19
28
  //# sourceMappingURL=return-color.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["theme","getBorderColor","status","borderColors","Cancelado","colors","red","Pendente","orange","getStatusColor","statusColors","Concluido","green","yellow","Andamento"],"sources":["return-color.ts"],"sourcesContent":["import { theme } from \"../../styles/theme/theme\";\n\nexport type StatusType = \"Andamento\" | \"Cancelado\" | \"Pendente\" | \"Concluido\";\n\nfunction getBorderColor(status: string) {\n const borderColors = {\n Cancelado: theme.colors.red[900],\n Pendente: theme.colors.orange[450],\n };\n return borderColors[status as keyof typeof borderColors];\n}\nfunction getStatusColor(status: StatusType): string {\n const statusColors: Record<StatusType, string> = {\n Concluido: theme.colors.green[400],\n Cancelado: theme.colors.red[900],\n Pendente: theme.colors.yellow[50],\n Andamento: theme.colors.yellow[50],\n };\n\n return statusColors[status];\n}\n\nexport { getStatusColor, getBorderColor };\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,0BAA0B;AAIhD,SAASC,cAAcA,CAACC,MAAc,EAAE;EACtC,MAAMC,YAAY,GAAG;IACnBC,SAAS,EAAEJ,KAAK,CAACK,MAAM,CAACC,GAAG,CAAC,GAAG,CAAC;IAChCC,QAAQ,EAAEP,KAAK,CAACK,MAAM,CAACG,MAAM,CAAC,GAAG;EACnC,CAAC;EACD,OAAOL,YAAY,CAACD,MAAM,CAA8B;AAC1D;AACA,SAASO,cAAcA,CAACP,MAAkB,EAAU;EAClD,MAAMQ,YAAwC,GAAG;IAC/CC,SAAS,EAAEX,KAAK,CAACK,MAAM,CAACO,KAAK,CAAC,GAAG,CAAC;IAClCR,SAAS,EAAEJ,KAAK,CAACK,MAAM,CAACC,GAAG,CAAC,GAAG,CAAC;IAChCC,QAAQ,EAAEP,KAAK,CAACK,MAAM,CAACQ,MAAM,CAAC,EAAE,CAAC;IACjCC,SAAS,EAAEd,KAAK,CAACK,MAAM,CAACQ,MAAM,CAAC,EAAE;EACnC,CAAC;EAED,OAAOH,YAAY,CAACR,MAAM,CAAC;AAC7B;AAEA,SAASO,cAAc,EAAER,cAAc","ignoreList":[]}
1
+ {"version":3,"names":["theme","getBorderColor","status","borderColors","Cancelado","colors","red","Pendente","orange","getStatusColor","statusColors","Concluido","green","yellow","Andamento","getStatusTextColor","neutral"],"sources":["return-color.ts"],"sourcesContent":["import { theme } from \"../../styles/theme/theme\";\n\nexport type StatusType = \"Andamento\" | \"Cancelado\" | \"Pendente\" | \"Concluido\";\n\nfunction getBorderColor(status: string) {\n const borderColors = {\n Cancelado: theme.colors.red[900],\n Pendente: theme.colors.orange[450],\n };\n return borderColors[status as keyof typeof borderColors];\n}\nfunction getStatusColor(status: StatusType): string {\n const statusColors: Record<StatusType, string> = {\n Concluido: theme.colors.green[250],\n Cancelado: theme.colors.red[900],\n Pendente: theme.colors.yellow[75],\n Andamento: theme.colors.yellow[50],\n };\n\n return statusColors[status];\n}\n\nfunction getStatusTextColor(status: StatusType): string {\n const statusColors: Record<StatusType, string> = {\n Concluido: theme.colors.neutral[25],\n Cancelado: theme.colors.neutral[25],\n Pendente: theme.colors.neutral[50],\n Andamento: theme.colors.neutral[50],\n };\n\n return statusColors[status];\n}\n\nexport { getStatusColor, getBorderColor, getStatusTextColor };\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,0BAA0B;AAIhD,SAASC,cAAcA,CAACC,MAAc,EAAE;EACtC,MAAMC,YAAY,GAAG;IACnBC,SAAS,EAAEJ,KAAK,CAACK,MAAM,CAACC,GAAG,CAAC,GAAG,CAAC;IAChCC,QAAQ,EAAEP,KAAK,CAACK,MAAM,CAACG,MAAM,CAAC,GAAG;EACnC,CAAC;EACD,OAAOL,YAAY,CAACD,MAAM,CAA8B;AAC1D;AACA,SAASO,cAAcA,CAACP,MAAkB,EAAU;EAClD,MAAMQ,YAAwC,GAAG;IAC/CC,SAAS,EAAEX,KAAK,CAACK,MAAM,CAACO,KAAK,CAAC,GAAG,CAAC;IAClCR,SAAS,EAAEJ,KAAK,CAACK,MAAM,CAACC,GAAG,CAAC,GAAG,CAAC;IAChCC,QAAQ,EAAEP,KAAK,CAACK,MAAM,CAACQ,MAAM,CAAC,EAAE,CAAC;IACjCC,SAAS,EAAEd,KAAK,CAACK,MAAM,CAACQ,MAAM,CAAC,EAAE;EACnC,CAAC;EAED,OAAOH,YAAY,CAACR,MAAM,CAAC;AAC7B;AAEA,SAASa,kBAAkBA,CAACb,MAAkB,EAAU;EACtD,MAAMQ,YAAwC,GAAG;IAC/CC,SAAS,EAAEX,KAAK,CAACK,MAAM,CAACW,OAAO,CAAC,EAAE,CAAC;IACnCZ,SAAS,EAAEJ,KAAK,CAACK,MAAM,CAACW,OAAO,CAAC,EAAE,CAAC;IACnCT,QAAQ,EAAEP,KAAK,CAACK,MAAM,CAACW,OAAO,CAAC,EAAE,CAAC;IAClCF,SAAS,EAAEd,KAAK,CAACK,MAAM,CAACW,OAAO,CAAC,EAAE;EACpC,CAAC;EAED,OAAON,YAAY,CAACR,MAAM,CAAC;AAC7B;AAEA,SAASO,cAAc,EAAER,cAAc,EAAEc,kBAAkB","ignoreList":[]}
@@ -53,6 +53,7 @@ declare const SVG_NAME: {
53
53
  CHECK_OUTLINE: string;
54
54
  BED: string;
55
55
  REFRESH_CCW_DOT: string;
56
+ HOURGLASS: string;
56
57
  };
57
58
  /**
58
59
  * EXPORTS
@@ -0,0 +1,10 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import * as React from "react";
5
+ import { ISvgProps } from "../interface";
6
+ declare const SvgIconHourglass: React.FC<ISvgProps>;
7
+ /**
8
+ * EXPORTS
9
+ */
10
+ export { SvgIconHourglass };
@@ -1,10 +1,9 @@
1
1
  import { type IButtonProps } from "./interface";
2
2
  import { IGlobalCss } from "../../styles/global/interface";
3
3
  /**
4
- * Interface ButtonProps
4
+ * Type ButtonProps
5
5
  */
6
- interface ButtonProps extends Omit<IButtonProps, "color">, Omit<IGlobalCss, "color"> {
7
- }
6
+ declare type ButtonProps = Omit<IButtonProps, "color"> & Omit<IGlobalCss, "color">;
8
7
  declare const styles: (props: ButtonProps) => {
9
8
  buttonStyle: IGlobalCss;
10
9
  buttonTextStyle: {
@@ -0,0 +1,6 @@
1
+ /**
2
+ * IMPORTS
3
+ */
4
+ import React from "react";
5
+ import { IModalActivities } from "./interface";
6
+ export declare const ModalActivities: React.FC<IModalActivities>;
@@ -31,6 +31,7 @@ export { HistoryDetails } from "./components/history-details";
31
31
  export { ActivitiesDaily } from "./components/activities-daily";
32
32
  export { ActivitiesProgress } from "./components/activities-progress";
33
33
  export { ProfileMenuOption } from "./components/profile-menu-option";
34
+ export { ModalActivities } from "./components/modal-activities";
34
35
  export { multiply } from "./utils/mutiply";
35
36
  export { formatDate, getLastSevenDays, formHoursMinute } from "./utils/format-data";
36
37
  export { theme } from "./styles/theme/theme";
@@ -0,0 +1,6 @@
1
+ import { StoryObj, Meta } from "@storybook/react";
2
+ import { ModalActivities } from "../../components/modal-activities";
3
+ declare const meta: Meta<typeof ModalActivities>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
@@ -76,6 +76,7 @@ export declare const useTheme: () => {
76
76
  100: string;
77
77
  50: string;
78
78
  75: string;
79
+ 90: string;
79
80
  };
80
81
  };
81
82
  fonts: {
@@ -78,6 +78,7 @@ export declare const theme: {
78
78
  100: string;
79
79
  50: string;
80
80
  75: string;
81
+ 90: string;
81
82
  };
82
83
  };
83
84
  fonts: {
@@ -1,4 +1,5 @@
1
1
  export declare type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido";
2
2
  declare function getBorderColor(status: string): string;
3
3
  declare function getStatusColor(status: StatusType): string;
4
- export { getStatusColor, getBorderColor };
4
+ declare function getStatusTextColor(status: StatusType): string;
5
+ export { getStatusColor, getBorderColor, getStatusTextColor };