react-native-exp-fig 0.1.42 → 0.1.44

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 (31) hide show
  1. package/lib/commonjs/components/document-carga-info/index.js +1 -0
  2. package/lib/commonjs/components/document-carga-info/index.js.map +1 -1
  3. package/lib/commonjs/components/document-carga-info/styles.js +1 -0
  4. package/lib/commonjs/components/document-carga-info/styles.js.map +1 -1
  5. package/lib/commonjs/components/driver-journey-info/style.js +1 -0
  6. package/lib/commonjs/components/driver-journey-info/style.js.map +1 -1
  7. package/lib/commonjs/components/filter-date-selector/index.js +6 -5
  8. package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
  9. package/lib/commonjs/components/filter-date-selector/interface.d.js.map +1 -1
  10. package/lib/commonjs/utils/status-color/return-color.js +2 -2
  11. package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
  12. package/lib/module/components/document-carga-info/index.js +1 -0
  13. package/lib/module/components/document-carga-info/index.js.map +1 -1
  14. package/lib/module/components/document-carga-info/styles.js +1 -0
  15. package/lib/module/components/document-carga-info/styles.js.map +1 -1
  16. package/lib/module/components/driver-journey-info/style.js +1 -0
  17. package/lib/module/components/driver-journey-info/style.js.map +1 -1
  18. package/lib/module/components/filter-date-selector/index.js +6 -6
  19. package/lib/module/components/filter-date-selector/index.js.map +1 -1
  20. package/lib/module/components/filter-date-selector/interface.d.js.map +1 -1
  21. package/lib/module/utils/status-color/return-color.js +2 -2
  22. package/lib/module/utils/status-color/return-color.js.map +1 -1
  23. package/lib/typescript/src/components/document-carga-info/styles.d.ts +1 -0
  24. package/lib/typescript/src/utils/status-color/return-color.d.ts +1 -1
  25. package/package.json +1 -1
  26. package/src/components/document-carga-info/index.tsx +2 -1
  27. package/src/components/document-carga-info/styles.ts +1 -0
  28. package/src/components/driver-journey-info/style.ts +2 -1
  29. package/src/components/filter-date-selector/index.tsx +9 -4
  30. package/src/components/filter-date-selector/interface.d.ts +5 -0
  31. package/src/utils/status-color/return-color.ts +36 -36
@@ -42,6 +42,7 @@ const DocumentCargaInfo = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
42
42
  ref: ref,
43
43
  style: _styles.styles.container
44
44
  }, rest), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_box.default, {
45
+ width: "100%",
45
46
  flexStyle: {
46
47
  flexDirection: "row",
47
48
  alignItems: "center"
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_box","_interopRequireDefault","_typography","_asBaseComponent","_styles","_theme","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","DocumentCargaInfo","forwardRef","props","ref","title","numberDocument","linkDocument","isAlert","errorMessage","rest","handleOpenPdf","url","Linking","openURL","error","console","log","createElement","style","styles","container","Fragment","flexStyle","flexDirection","alignItems","Typography","text","size","theme","fontSizes","sm","fontFamily","fonts","inter_regular_400","color","colors","black","marginBottom","margins","md","Text","textOption","fontWeight","View","justifyContent","inter_bold","width","red","lineHeight","TouchableOpacity","button","backgroundColor","blue","activeOpacity","disabled","onPress","neutral","displayName","_default","exports","asBaseComponent"],"sources":["index.tsx"],"sourcesContent":["/* eslint-disable no-undef */\n/**\n * IMPORTS\n */\nimport React, { forwardRef } from \"react\";\nimport {\n TouchableOpacity,\n Text,\n View,\n Linking,\n} from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { IDocumentCargaInfo } from \"./interface\";\nimport { asBaseComponent } from \"../../@types/as-base-component\";\n\n// styles\nimport { styles } from \"./styles\";\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente DocumentCargaInfo para interação do usuário com UI.\n */\nconst DocumentCargaInfo = forwardRef<View, IDocumentCargaInfo>(\n (props, ref): React.ReactElement => {\n const {\n title,\n numberDocument,\n linkDocument,\n isAlert,\n errorMessage,\n ...rest\n } = props;\n\n const handleOpenPdf = async (url: string): Promise<void> => {\n try {\n await Linking.openURL(url);\n } catch (error) {\n console.log(\"Erro ao abrir PDF\", error);\n }\n };\n\n return (\n <Box ref={ref} style={styles.container} {...rest}>\n <>\n {/* Título / Documento */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text={title ?? \"Selecione o Apolo disponível\"}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.black[100]}\n marginBottom={isAlert ? 0 : theme.margins.md}\n />\n\n <Text\n style={[\n styles.textOption,\n {\n marginBottom: isAlert ? 0 : theme.margins.md,\n fontWeight: \"bold\",\n },\n ]}\n >\n #{numberDocument}\n </Text>\n </Box>\n\n {/* Alerta */}\n {isAlert && (\n <View\n style={{\n flexDirection: \"row\",\n alignItems: \"flex-start\",\n justifyContent: \"flex-start\",\n marginBottom: 16,\n }}\n >\n <Typography\n text=\"Atenção:\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[100]}\n />\n\n <Text\n style={[\n styles.textOption,\n {\n width: 250,\n color: theme.colors.red[900],\n lineHeight: 20,\n },\n ]}\n >\n {errorMessage ?? \"N/A\"}\n </Text>\n </View>\n )}\n\n {/* Botão */}\n <TouchableOpacity\n style={[\n styles.button,\n {\n backgroundColor: isAlert\n ? \"#8E949A\"\n : theme.colors.blue[500],\n },\n ]}\n activeOpacity={0.7}\n disabled={isAlert}\n onPress={() => handleOpenPdf(linkDocument!)}\n >\n <Typography\n text=\"Abrir documento\"\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold}\n size={16}\n />\n </TouchableOpacity>\n </>\n </Box>\n );\n }\n);\n\nDocumentCargaInfo.displayName = \"DocumentCargaInfo\";\n\n/**\n * EXPORTS\n */\nexport default asBaseComponent(DocumentCargaInfo);\n"],"mappings":";;;;;;AAIA,IAAA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AAAoF,gCAAe,EAAC5D,iBAAiB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_box","_interopRequireDefault","_typography","_asBaseComponent","_styles","_theme","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","DocumentCargaInfo","forwardRef","props","ref","title","numberDocument","linkDocument","isAlert","errorMessage","rest","handleOpenPdf","url","Linking","openURL","error","console","log","createElement","style","styles","container","Fragment","width","flexStyle","flexDirection","alignItems","Typography","text","size","theme","fontSizes","sm","fontFamily","fonts","inter_regular_400","color","colors","black","marginBottom","margins","md","Text","textOption","fontWeight","View","justifyContent","inter_bold","red","lineHeight","TouchableOpacity","button","backgroundColor","blue","activeOpacity","disabled","onPress","neutral","displayName","_default","exports","asBaseComponent"],"sources":["index.tsx"],"sourcesContent":["/* eslint-disable no-undef */\n/**\n * IMPORTS\n */\nimport React, { forwardRef } from \"react\";\nimport {\n TouchableOpacity,\n Text,\n View,\n Linking,\n} from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { IDocumentCargaInfo } from \"./interface\";\nimport { asBaseComponent } from \"../../@types/as-base-component\";\n\n// styles\nimport { styles } from \"./styles\";\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente DocumentCargaInfo para interação do usuário com UI.\n */\nconst DocumentCargaInfo = forwardRef<View, IDocumentCargaInfo>(\n (props, ref): React.ReactElement => {\n const {\n title,\n numberDocument,\n linkDocument,\n isAlert,\n errorMessage,\n ...rest\n } = props;\n\n const handleOpenPdf = async (url: string): Promise<void> => {\n try {\n await Linking.openURL(url);\n } catch (error) {\n console.log(\"Erro ao abrir PDF\", error);\n }\n };\n\n return (\n <Box ref={ref} style={styles.container} {...rest}>\n <>\n {/* Título / Documento */}\n <Box width={\"100%\"} flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text={title ?? \"Selecione o Apolo disponível\"}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.black[100]}\n marginBottom={isAlert ? 0 : theme.margins.md}\n />\n\n <Text\n style={[\n styles.textOption,\n\n {\n marginBottom: isAlert ? 0 : theme.margins.md,\n fontWeight: \"bold\",\n },\n ]}\n >\n #{numberDocument}\n </Text>\n </Box>\n\n {/* Alerta */}\n {isAlert && (\n <View\n style={{\n flexDirection: \"row\",\n alignItems: \"flex-start\",\n justifyContent: \"flex-start\",\n marginBottom: 16,\n }}\n >\n <Typography\n text=\"Atenção:\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[100]}\n />\n\n <Text\n style={[\n styles.textOption,\n {\n width: 250,\n color: theme.colors.red[900],\n lineHeight: 20,\n },\n ]}\n >\n {errorMessage ?? \"N/A\"}\n </Text>\n </View>\n )}\n\n {/* Botão */}\n <TouchableOpacity\n style={[\n styles.button,\n {\n backgroundColor: isAlert\n ? \"#8E949A\"\n : theme.colors.blue[500],\n },\n ]}\n activeOpacity={0.7}\n disabled={isAlert}\n onPress={() => handleOpenPdf(linkDocument!)}\n >\n <Typography\n text=\"Abrir documento\"\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold}\n size={16}\n />\n </TouchableOpacity>\n </>\n </Box>\n );\n }\n);\n\nDocumentCargaInfo.displayName = \"DocumentCargaInfo\";\n\n/**\n * EXPORTS\n */\nexport default asBaseComponent(DocumentCargaInfo);\n"],"mappings":";;;;;;AAIA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,IAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAIA,IAAAK,gBAAA,GAAAL,OAAA;AAGA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MA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yC,aAAA,CAAClD,YAAA,CAAA0E,IAAI;IACHvB,KAAK,EAAE,CACLC,cAAM,CAACuB,UAAU,EACjB;MACEpB,KAAK,EAAE,GAAG;MACVa,KAAK,EAAEN,YAAK,CAACO,MAAM,CAACW,GAAG,CAAC,GAAG,CAAC;MAC5BC,UAAU,EAAE;IACd,CAAC;EACD,GAEDxC,YAAY,aAAZA,YAAY,cAAZA,YAAY,GAAI,KACb,CACF,CACP,eAGD5C,MAAA,CAAAY,OAAA,CAAAyC,aAAA,CAAClD,YAAA,CAAAkF,gBAAgB;IACf/B,KAAK,EAAE,CACLC,cAAM,CAAC+B,MAAM,EACb;MACEC,eAAe,EAAE5C,OAAO,GACpB,SAAS,GACTsB,YAAK,CAACO,MAAM,CAACgB,IAAI,CAAC,GAAG;IAC3B,CAAC,CACD;IACFC,aAAa,EAAE,GAAI;IACnBC,QAAQ,EAAE/C,OAAQ;IAClBgD,OAAO,EAAEA,CAAA,KAAM7C,aAAa,CAACJ,YAAa;EAAE,gBAE5C1C,MAAA,CAAAY,OAAA,CAAAyC,aAAA,CAAC/C,WAAA,CAAAwD,UAAU;IACTC,IAAI,EAAC,iBAAiB;IACtBQ,KAAK,EAAEN,YAAK,CAACO,MAAM,CAACoB,OAAO,CAAC,EAAE,CAAE;IAChCxB,UAAU,EAAEH,YAAK,CAACI,KAAK,CAACa,UAAW;IACnClB,IAAI,EAAE;EAAG,CACV,CACe,CAClB,CACC,CAAC;AAEV,CACF,CAAC;AAED5B,iBAAiB,CAACyD,WAAW,GAAG,mBAAmB;;AAEnD;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAAnF,OAAA,GAGe,IAAAoF,gCAAe,EAAC5D,iBAAiB,CAAC","ignoreList":[]}
@@ -50,6 +50,7 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
50
50
  height: 20
51
51
  },
52
52
  textOption: {
53
+ width: 100,
53
54
  color: _theme.theme.colors.black[25],
54
55
  fontFamily: _theme.theme.fonts.inter_regular_400,
55
56
  fontSize: 12,
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_theme","styles","exports","StyleSheet","create","container","width","padding","theme","paddings","sm","backgroundColor","borderRadius","header","flexDirection","alignItems","justifyContent","marginBottom","margins","md","left","alert","color","marginTop","fontSize","button","height","arrow","textOption","colors","black","fontFamily","fonts","inter_regular_400","marginLeft"],"sources":["styles.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// theme\nimport { theme } from \"../../styles/theme/theme\";\n\n// styles\n\nconst styles = StyleSheet.create({\n container: {\n width: \"100%\",\n padding: theme.paddings.sm,\n backgroundColor: \"#EAEAEA\",\n borderRadius: 12,\n },\n header: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n marginBottom: theme.margins.md,\n },\n\n left: {\n flexDirection: \"row\",\n alignItems: \"center\",\n },\n\n alert: {\n color: \"#D32F2F\",\n marginTop: 8,\n marginBottom: 12,\n fontSize: 13,\n },\n\n button: {\n width: \"100%\",\n height: 45,\n backgroundColor: \"#8E949A\",\n borderRadius: 8,\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n arrow: {\n width: 20,\n height: 20,\n },\n textOption: {\n color: theme.colors.black[25],\n fontFamily: theme.fonts.inter_regular_400,\n fontSize: 12,\n marginLeft: 8,\n marginTop: 2,\n }\n\n})\n\n\n\n/**\n * EXPORTS\n */\nexport { styles }\n"],"mappings":";;;;;;AAIA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AAPA;AACA;AACA;;AAIA;;AAGA;;AAEA,MAAME,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEC,YAAK,CAACC,QAAQ,CAACC,EAAE;IAC1BC,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAE;EAChB,CAAC;EACDC,MAAM,EAAE;IACNC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,YAAY,EAAET,YAAK,CAACU,OAAO,CAACC;EAC9B,CAAC;EAEDC,IAAI,EAAE;IACJN,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EAEDM,KAAK,EAAE;IACLC,KAAK,EAAE,SAAS;IAChBC,SAAS,EAAE,CAAC;IACZN,YAAY,EAAE,EAAE;IAChBO,QAAQ,EAAE;EACZ,CAAC;EAEDC,MAAM,EAAE;IACNnB,KAAK,EAAE,MAAM;IACboB,MAAM,EAAE,EAAE;IACVf,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAE,CAAC;IACfG,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDW,KAAK,EAAE;IACLrB,KAAK,EAAE,EAAE;IACToB,MAAM,EAAE;EACV,CAAC;EACDE,UAAU,EAAE;IACVN,KAAK,EAAEd,YAAK,CAACqB,MAAM,CAACC,KAAK,CAAC,EAAE,CAAC;IAC7BC,UAAU,EAAEvB,YAAK,CAACwB,KAAK,CAACC,iBAAiB;IACzCT,QAAQ,EAAE,EAAE;IACZU,UAAU,EAAE,CAAC;IACbX,SAAS,EAAE;EACb;AAEF,CAAC,CAAC;;AAIF;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_theme","styles","exports","StyleSheet","create","container","width","padding","theme","paddings","sm","backgroundColor","borderRadius","header","flexDirection","alignItems","justifyContent","marginBottom","margins","md","left","alert","color","marginTop","fontSize","button","height","arrow","textOption","colors","black","fontFamily","fonts","inter_regular_400","marginLeft"],"sources":["styles.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// theme\nimport { theme } from \"../../styles/theme/theme\";\n\n// styles\n\nconst styles = StyleSheet.create({\n container: {\n width: \"100%\",\n padding: theme.paddings.sm,\n backgroundColor: \"#EAEAEA\",\n borderRadius: 12,\n },\n header: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n marginBottom: theme.margins.md,\n },\n\n left: {\n flexDirection: \"row\",\n alignItems: \"center\",\n },\n\n alert: {\n color: \"#D32F2F\",\n marginTop: 8,\n marginBottom: 12,\n fontSize: 13,\n },\n\n button: {\n width: \"100%\",\n height: 45,\n backgroundColor: \"#8E949A\",\n borderRadius: 8,\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n arrow: {\n width: 20,\n height: 20,\n },\n textOption: {\n width: 100,\n color: theme.colors.black[25],\n fontFamily: theme.fonts.inter_regular_400,\n fontSize: 12,\n marginLeft: 8,\n marginTop: 2,\n }\n\n})\n\n\n\n/**\n * EXPORTS\n */\nexport { styles }\n"],"mappings":";;;;;;AAIA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AAPA;AACA;AACA;;AAIA;;AAGA;;AAEA,MAAME,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEC,YAAK,CAACC,QAAQ,CAACC,EAAE;IAC1BC,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAE;EAChB,CAAC;EACDC,MAAM,EAAE;IACNC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,YAAY,EAAET,YAAK,CAACU,OAAO,CAACC;EAC9B,CAAC;EAEDC,IAAI,EAAE;IACJN,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EAEDM,KAAK,EAAE;IACLC,KAAK,EAAE,SAAS;IAChBC,SAAS,EAAE,CAAC;IACZN,YAAY,EAAE,EAAE;IAChBO,QAAQ,EAAE;EACZ,CAAC;EAEDC,MAAM,EAAE;IACNnB,KAAK,EAAE,MAAM;IACboB,MAAM,EAAE,EAAE;IACVf,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAE,CAAC;IACfG,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDW,KAAK,EAAE;IACLrB,KAAK,EAAE,EAAE;IACToB,MAAM,EAAE;EACV,CAAC;EACDE,UAAU,EAAE;IACVtB,KAAK,EAAE,GAAG;IACVgB,KAAK,EAAEd,YAAK,CAACqB,MAAM,CAACC,KAAK,CAAC,EAAE,CAAC;IAC7BC,UAAU,EAAEvB,YAAK,CAACwB,KAAK,CAACC,iBAAiB;IACzCT,QAAQ,EAAE,EAAE;IACZU,UAAU,EAAE,CAAC;IACbX,SAAS,EAAE;EACb;AAEF,CAAC,CAAC;;AAIF;AACA;AACA","ignoreList":[]}
@@ -42,6 +42,7 @@ const styles = exports.styles = _reactNative.StyleSheet.create({
42
42
  fontSize: _theme.theme.fontSizes.md
43
43
  },
44
44
  textOption: {
45
+ width: 200,
45
46
  color: _theme.theme.colors.black[25],
46
47
  fontFamily: _theme.theme.fonts.inter_regular_400,
47
48
  fontSize: 12,
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_theme","styles","exports","StyleSheet","create","container","bg","width","padding","theme","paddings","sm","backgroundColor","colors","gray","borderRadius","header","flexDirection","alignItems","justifyContent","flexWrap","marginBottom","margins","md","arrow","height","textSpacing","marginTop","buttonText","color","neutral","fontFamily","fonts","inter_medium_500","fontSize","fontSizes","textOption","black","inter_regular_400","marginLeft"],"sources":["style.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// typings\nimport { IStyles } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst styles = StyleSheet.create<IStyles | any>({\n container: (bg?: string) => ({\n width: \"100%\",\n padding: theme.paddings.sm,\n backgroundColor: bg ?? theme.colors.gray[700],\n borderRadius: 16,\n }),\n\n header: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n flexWrap: \"wrap\",\n marginBottom: theme.margins.md,\n },\n\n arrow: {\n width: 20,\n height: 20,\n },\n\n textSpacing: {\n marginTop: theme.margins[\"2xs\"],\n marginBottom: theme.margins[\"2xs\"],\n },\n\n buttonText: {\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\n fontSize: theme.fontSizes.md,\n },\n textOption: {\n color: theme.colors.black[25],\n fontFamily: theme.fonts.inter_regular_400,\n fontSize: 12,\n marginLeft: 4,\n }\n});\n\n/**\n * EXPORTS\n */\nexport { styles}\n"],"mappings":";;;;;;AAIA,IAAAA,YAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AAVA;AACA;AACA;;AAIA;;AAGA;;AAGA,MAAME,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAGE,uBAAU,CAACC,MAAM,CAAgB;EAC9CC,SAAS,EAAGC,EAAW,KAAM;IAC3BC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEC,YAAK,CAACC,QAAQ,CAACC,EAAE;IAC1BC,eAAe,EAAEN,EAAE,aAAFA,EAAE,cAAFA,EAAE,GAAIG,YAAK,CAACI,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IAC7CC,YAAY,EAAE;EAChB,CAAC,CAAC;EAEFC,MAAM,EAAE;IACNC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,QAAQ,EAAE,MAAM;IAChBC,YAAY,EAAEZ,YAAK,CAACa,OAAO,CAACC;EAC9B,CAAC;EAEDC,KAAK,EAAE;IACLjB,KAAK,EAAE,EAAE;IACTkB,MAAM,EAAE;EACV,CAAC;EAEDC,WAAW,EAAE;IACXC,SAAS,EAAElB,YAAK,CAACa,OAAO,CAAC,KAAK,CAAC;IAC/BD,YAAY,EAAEZ,YAAK,CAACa,OAAO,CAAC,KAAK;EACnC,CAAC;EAEDM,UAAU,EAAE;IACVC,KAAK,EAAEpB,YAAK,CAACI,MAAM,CAACiB,OAAO,CAAC,EAAE,CAAC;IAC/BC,UAAU,EAAEtB,YAAK,CAACuB,KAAK,CAACC,gBAAgB;IACxCC,QAAQ,EAAEzB,YAAK,CAAC0B,SAAS,CAACZ;EAC5B,CAAC;EACDa,UAAU,EAAE;IACVP,KAAK,EAAEpB,YAAK,CAACI,MAAM,CAACwB,KAAK,CAAC,EAAE,CAAC;IAC7BN,UAAU,EAAEtB,YAAK,CAACuB,KAAK,CAACM,iBAAiB;IACzCJ,QAAQ,EAAE,EAAE;IACZK,UAAU,EAAE;EACd;AACF,CAAC,CAAC;;AAEF;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_theme","styles","exports","StyleSheet","create","container","bg","width","padding","theme","paddings","sm","backgroundColor","colors","gray","borderRadius","header","flexDirection","alignItems","justifyContent","flexWrap","marginBottom","margins","md","arrow","height","textSpacing","marginTop","buttonText","color","neutral","fontFamily","fonts","inter_medium_500","fontSize","fontSizes","textOption","black","inter_regular_400","marginLeft"],"sources":["style.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// typings\nimport { IStyles } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst styles = StyleSheet.create<IStyles | any>({\n container: (bg?: string) => ({\n width: \"100%\",\n padding: theme.paddings.sm,\n backgroundColor: bg ?? theme.colors.gray[700],\n borderRadius: 16,\n }),\n\n header: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n flexWrap: \"wrap\",\n marginBottom: theme.margins.md,\n },\n\n arrow: {\n width: 20,\n height: 20,\n },\n\n textSpacing: {\n marginTop: theme.margins[\"2xs\"],\n marginBottom: theme.margins[\"2xs\"],\n },\n\n buttonText: {\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\n fontSize: theme.fontSizes.md,\n },\n textOption: {\n width: 200,\n color: theme.colors.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AM,CAACwB,KAAK,CAAC,EAAE,CAAC;IAC7BN,UAAU,EAAEtB,YAAK,CAACuB,KAAK,CAACM,iBAAiB;IACzCJ,QAAQ,EAAE,EAAE;IACZK,UAAU,EAAE;EACd;AACF,CAAC,CAAC;;AAEF;AACA;AACA","ignoreList":[]}
@@ -8,8 +8,8 @@ var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
9
  var _box = _interopRequireDefault(require("../box"));
10
10
  var _typography = require("../typography");
11
- var _theme = require("../../styles/theme/theme");
12
11
  var _iconsSvg = require("../../common/icons-svg");
12
+ var _theme = require("../../styles/theme/theme");
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
14
  /**
15
15
  * IMPORTS
@@ -17,10 +17,10 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
17
17
 
18
18
  // components
19
19
 
20
- // styles
21
-
22
20
  //typing
23
21
 
22
+ // styles
23
+
24
24
  /**
25
25
  *
26
26
  * Componente FilterDateSelector para a interação do usuário com ui.
@@ -30,7 +30,8 @@ const FilterDateSelector = ({
30
30
  handleSelectedDay,
31
31
  days,
32
32
  isLoading,
33
- testID
33
+ testID,
34
+ sort = "desc"
34
35
  }) => {
35
36
  const renderDayBlock = ({
36
37
  item: day,
@@ -86,7 +87,7 @@ const FilterDateSelector = ({
86
87
  const dataWithAllOption = [...daySorted];
87
88
  return /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
88
89
  horizontal: true,
89
- data: dataWithAllOption,
90
+ data: sort === "desc" ? dataWithAllOption : days,
90
91
  showsHorizontalScrollIndicator: false,
91
92
  renderItem: renderDayBlock
92
93
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_theme","_iconsSvg","e","__esModule","default","FilterDateSelector","selectedDay","handleSelectedDay","days","isLoading","testID","renderDayBlock","item","day","index","isSelected","date","createElement","TouchableOpacity","disabled","key","activeOpacity","onPress","width","height","flexStyle","alignItems","justifyContent","backgroundColor","theme","colors","blue","gray","borderStyled","borderRadius","borderWidths","thick_large","borderColor","borderWidth","thin","marginStyle","marginRight","margins","marginTop","ActivityIndicator","size","color","Fragment","Icons","icon","neutral","Typography","text","toString","padStart","fontSizes","lg","fontFamily","fonts","inter_bold_700","dayName","slice","marginBottom","letterSpacing","daySorted","sort","a","b","Date","fullDate","getTime","dataWithAllOption","FlatList","horizontal","data","showsHorizontalScrollIndicator","renderItem","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity, ActivityIndicator, FlatList } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n//typing\nimport { IFilterDateSelector, ISelectedDay } from \"./interface\";\nimport { Icons } from \"../../common/icons-svg\";\n\n/**\n *\n * Componente FilterDateSelector para a interação do usuário com ui.\n */\nconst FilterDateSelector: React.FC<IFilterDateSelector> = ({\n selectedDay,\n handleSelectedDay,\n days,\n isLoading,\n testID,\n}) => {\n const renderDayBlock = ({ item: day, index }: { item: ISelectedDay; index: number }) => {\n const isSelected = selectedDay && selectedDay.date === day.date;\n return (\n <TouchableOpacity\n disabled={isSelected}\n key={index}\n activeOpacity={0.7}\n onPress={() => handleSelectedDay(day)}\n >\n <Box\n testID={testID}\n width={65}\n height={75}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\" }}\n backgroundColor={isSelected ? theme.colors.blue[400] : theme.colors.gray[350]}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_large,\n borderColor: isSelected ? theme.colors.blue[400] : theme.colors.gray[350],\n borderWidth: theme.borderWidths.thin,\n }}\n marginStyle={{ marginRight: theme.margins[\"2xs\"], marginTop: theme.margins[\"2xs\"] }}\n >\n {isSelected && isLoading ? (\n <ActivityIndicator size=\"small\" color=\"white\" />\n ) : (\n <>\n {day.date === \"all\" ? (\n <Icons icon=\"REFRESH_CCW_DOT\" color={theme.colors.neutral[25]} />\n ) : (\n <>\n <Typography\n text={day.date === \"all\" ? \"\" : day.date.toString().padStart(2, \"0\")}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n />\n <Typography\n text={day.date === \"all\" ? \"Todos\" : day.dayName.slice(0, 3)}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n marginBottom={day.date === \"all\" ? theme.margins[\"3xl\"] : 0}\n letterSpacing=\"o_16\"\n />\n </>\n )}\n </>\n )}\n </Box>\n </TouchableOpacity>\n );\n };\n const daySorted = days.sort(\n (a, b) => new Date(b.fullDate).getTime() - new Date(a.fullDate).getTime()\n );\n\n // Adiciona a opção \"Todos\" no início da lista\n const dataWithAllOption = [...daySorted];\n\n return (\n <FlatList\n horizontal\n data={dataWithAllOption}\n showsHorizontalScrollIndicator={false}\n renderItem={renderDayBlock}\n />\n );\n};\n\n/**\n * EXPORTS\n */\nexport { FilterDateSelector };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,MAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AAA+C,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAf/C;AACA;AACA;;AAIA;;AAIA;;AAGA;;AAIA;AACA;AACA;AACA;AACA,MAAMG,kBAAiD,GAAGA,CAAC;EACzDC,WAAW;EACXC,iBAAiB;EACjBC,IAAI;EACJC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,MAAMC,cAAc,GAAGA,CAAC;IAAEC,IAAI,EAAEC,GAAG;IAAEC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AK,KAAK,GAAGa,YAAK,CAACa,OAAO,CAAC,KAAK,CAAC,GAAG,CAAE;MAC5DqB,aAAa,EAAC;IAAM,CACrB,CACD,CAEJ,CAED,CACW,CAAC;EAEvB,CAAC;EACD,MAAMC,SAAS,GAAGxD,IAAI,CAACyD,IAAI,CACzB,CAACC,CAAC,EAAEC,CAAC,KAAK,IAAIC,IAAI,CAACD,CAAC,CAACE,QAAQ,CAAC,CAACC,OAAO,CAAC,CAAC,GAAG,IAAIF,IAAI,CAACF,CAAC,CAACG,QAAQ,CAAC,CAACC,OAAO,CAAC,CAC1E,CAAC;;EAED;EACA,MAAMC,iBAAiB,GAAG,CAAC,GAAGP,SAAS,CAAC;EAExC,oBACEtE,MAAA,CAAAU,OAAA,CAAAa,aAAA,CAACpB,YAAA,CAAA2E,QAAQ;IACPC,UAAU;IACVC,IAAI,EAAEH,iBAAkB;IACxBI,8BAA8B,EAAE,KAAM;IACtCC,UAAU,EAAEjE;EAAe,CAC5B,CAAC;AAEN,CAAC;;AAED;AACA;AACA;AAFAkE,OAAA,CAAAxE,kBAAA,GAAAA,kBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","e","__esModule","default","FilterDateSelector","selectedDay","handleSelectedDay","days","isLoading","testID","sort","renderDayBlock","item","day","index","isSelected","date","createElement","TouchableOpacity","disabled","key","activeOpacity","onPress","width","height","flexStyle","alignItems","justifyContent","backgroundColor","theme","colors","blue","gray","borderStyled","borderRadius","borderWidths","thick_large","borderColor","borderWidth","thin","marginStyle","marginRight","margins","marginTop","ActivityIndicator","size","color","Fragment","Icons","icon","neutral","Typography","text","toString","padStart","fontSizes","lg","fontFamily","fonts","inter_bold_700","dayName","slice","marginBottom","letterSpacing","daySorted","a","b","Date","fullDate","getTime","dataWithAllOption","FlatList","horizontal","data","showsHorizontalScrollIndicator","renderItem","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity, ActivityIndicator, FlatList } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\nimport { Icons } from \"../../common/icons-svg\";\n\n//typing\nimport { IFilterDateSelector, ISelectedDay } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n\n/**\n *\n * Componente FilterDateSelector para a interação do usuário com ui.\n */\nconst FilterDateSelector: React.FC<IFilterDateSelector> = ({\n selectedDay,\n handleSelectedDay,\n days,\n isLoading,\n testID,\n sort = \"desc\",\n}) => {\n const renderDayBlock = ({ item: day, index }: { item: ISelectedDay; index: number }) => {\n const isSelected = selectedDay && selectedDay.date === day.date;\n return (\n <TouchableOpacity\n disabled={isSelected}\n key={index}\n activeOpacity={0.7}\n onPress={() => handleSelectedDay(day)}\n >\n <Box\n testID={testID}\n width={65}\n height={75}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\" }}\n backgroundColor={isSelected ? theme.colors.blue[400] : theme.colors.gray[350]}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_large,\n borderColor: isSelected ? theme.colors.blue[400] : theme.colors.gray[350],\n borderWidth: theme.borderWidths.thin,\n }}\n marginStyle={{ marginRight: theme.margins[\"2xs\"], marginTop: theme.margins[\"2xs\"] }}\n >\n {isSelected && isLoading ? (\n <ActivityIndicator size=\"small\" color=\"white\" />\n ) : (\n <>\n {day.date === \"all\" ? (\n <Icons icon=\"REFRESH_CCW_DOT\" color={theme.colors.neutral[25]} />\n ) : (\n <>\n <Typography\n text={day.date === \"all\" ? \"\" : day.date.toString().padStart(2, \"0\")}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n />\n <Typography\n text={day.date === \"all\" ? \"Todos\" : day.dayName.slice(0, 3)}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n marginBottom={day.date === \"all\" ? theme.margins[\"3xl\"] : 0}\n letterSpacing=\"o_16\"\n />\n </>\n )}\n </>\n )}\n </Box>\n </TouchableOpacity>\n );\n };\n\n\n const daySorted = days.sort(\n (a, b) => new Date(b.fullDate).getTime() - new Date(a.fullDate).getTime()\n );\n\n // Adiciona a opção \"Todos\" no início da lista\n const dataWithAllOption = [...daySorted];\n\n return (\n <FlatList\n horizontal\n data={sort === \"desc\" ? dataWithAllOption : days}\n showsHorizontalScrollIndicator={false}\n renderItem={renderDayBlock}\n />\n );\n};\n\n/**\n * EXPORTS\n */\nexport { FilterDateSelector };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAEA,IAAAI,SAAA,GAAAJ,OAAA;AAMA,IAAAK,MAAA,GAAAL,OAAA;AAAiD,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAhBjD;AACA;AACA;;AAIA;;AAMA;;AAGA;;AAIA;AACA;AACA;AACA;AACA,MAAMG,kBAAiD,GAAGA,CAAC;EACzDC,WAAW;EACXC,iBAAiB;EACjBC,IAAI;EACJC,SAAS;EACTC,MAAM;EACNC,IAAI,GAAG;AACT,CAAC,KAAK;EACJ,MAAMC,cAAc,GAAGA,CAAC;IAAEC,IAAI,EAAEC,GAAG;IAAEC;EAA6C,CAAC,KAAK;IACtF,MAAMC,UAAU,GAAGV,WAAW,IAAIA,WAAW,CAACW,IAAI,KAAKH,GAAG,CAACG,IAAI;IAC/D,oBACEvB,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACrB,YAAA,CAAAsB,gBAAgB;MACfC,QAAQ,EAAEJ,UAAW;MACrBK,GAAG,EAAEN,KAAM;MACXO,aAAa,EAAE,GAAI;MACnBC,OAAO,EAAEA,C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O,CAAC,CAAC,GAAG,IAAIF,IAAI,CAACF,CAAC,CAACG,QAAQ,CAAC,CAACC,OAAO,CAAC,CAC1E,CAAC;;EAED;EACA,MAAMC,iBAAiB,GAAG,CAAC,GAAGN,SAAS,CAAC;EAExC,oBACEvE,MAAA,CAAAU,OAAA,CAAAc,aAAA,CAACrB,YAAA,CAAA2E,QAAQ;IACPC,UAAU;IACVC,IAAI,EAAE/D,IAAI,KAAK,MAAM,GAAG4D,iBAAiB,GAAG/D,IAAK;IACjDmE,8BAA8B,EAAE,KAAM;IACtCC,UAAU,EAAEhE;EAAe,CAC5B,CAAC;AAEN,CAAC;;AAED;AACA;AACA;AAFAiE,OAAA,CAAAxE,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/*\n * IMPORTS\n */\nimport { TouchableOpacityProps } from \"react-native\";\n\n/**\n * INTERFACE\n */\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface ISelectedDay {\n date: string | number;\n dayName: string;\n fullDate: Date;\n}\n\ninterface IFilterDateSelector extends TouchableOpacityProps, IGlobalCss {\n /**\n * prop que mostra o dia selecionado\n */\n selectedDay: ISelectedDay;\n\n /**\n * função que seleciona a data\n */\n // eslint-disable-next-line no-unused-vars\n handleSelectedDay: (date: ISelectedDay) => {};\n\n /**\n * * Retorna as sete últimas datas dos dias\n */\n days: ISelectedDay[];\n\n /**\n * Retorna o loading do componente\n */\n isLoading: boolean;\n}\n\n/**\n * EXPORTS\n */\nexport type { IFilterDateSelector, ISelectedDay };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/*\n * IMPORTS\n */\nimport { TouchableOpacityProps } from \"react-native\";\n\n/**\n * INTERFACE\n */\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface ISelectedDay {\n date: string | number;\n dayName: string;\n fullDate: Date;\n}\n\ninterface IFilterDateSelector extends TouchableOpacityProps, IGlobalCss {\n /**\n * prop que mostra o dia selecionado\n */\n selectedDay: ISelectedDay;\n\n /**\n * função que seleciona a data\n */\n // eslint-disable-next-line no-unused-vars\n handleSelectedDay: (date: ISelectedDay) => {};\n\n /**\n * * Retorna as sete últimas datas dos dias\n */\n days: ISelectedDay[];\n\n /**\n * Retorna o loading do componente\n */\n isLoading: boolean;\n\n /**\n * Indica que a ordem da lista é alterada\n */\n sort?: \"asc\" | \"desc\";\n}\n\n/**\n * EXPORTS\n */\nexport type { IFilterDateSelector, ISelectedDay };\n"],"mappings":"","ignoreList":[]}
@@ -20,7 +20,7 @@ function getStatusColor(status) {
20
20
  Cancelado: _theme.theme.colors.red[900],
21
21
  Pendente: _theme.theme.colors.yellow[75],
22
22
  Andamento: _theme.theme.colors.green[150],
23
- Em_Liberacao: _theme.theme.colors.blue[20]
23
+ Em_liberacao: _theme.theme.colors.blue[20]
24
24
  };
25
25
  return statusColors[status];
26
26
  }
@@ -30,7 +30,7 @@ function getStatusTextColor(status) {
30
30
  Cancelado: _theme.theme.colors.neutral[25],
31
31
  Pendente: _theme.theme.colors.neutral[50],
32
32
  Andamento: _theme.theme.colors.neutral[50],
33
- Em_Liberacao: _theme.theme.colors.neutral[25]
33
+ Em_liberacao: _theme.theme.colors.neutral[25]
34
34
  };
35
35
  return statusColors[status];
36
36
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_theme","require","getBorderColor","status","borderColors","Cancelado","theme","colors","red","Pendente","orange","getStatusColor","statusColors","Concluido","green","yellow","Andamento","Em_Liberacao","blue","getStatusTextColor","neutral"],"sources":["return-color.ts"],"sourcesContent":["import { theme } from \"../../styles/theme/theme\";\r\n\r\nexport type StatusType = \"Andamento\" | \"Cancelado\" | \"Pendente\" | \"Concluido\" | \"Em_Liberacao\";\r\n\r\nfunction getBorderColor(status: string) {\r\n const borderColors = {\r\n Cancelado: theme.colors.red[900],\r\n Pendente: theme.colors.orange[450],\r\n };\r\n return borderColors[status as keyof typeof borderColors];\r\n}\r\nfunction getStatusColor(status: StatusType): string {\r\n const statusColors: Record<StatusType, string> = {\r\n Concluido: theme.colors.green[250],\r\n Cancelado: theme.colors.red[900],\r\n Pendente: theme.colors.yellow[75],\r\n Andamento: theme.colors.green[150],\r\n Em_Liberacao: theme.colors.blue[20],\r\n };\r\n\r\n return statusColors[status];\r\n}\r\n\r\nfunction getStatusTextColor(status: StatusType): string {\r\n const statusColors: Record<StatusType, string> = {\r\n Concluido: theme.colors.neutral[25],\r\n Cancelado: theme.colors.neutral[25],\r\n Pendente: theme.colors.neutral[50],\r\n Andamento: theme.colors.neutral[50],\r\n Em_Liberacao: theme.colors.neutral[25],\r\n };\r\n\r\n return statusColors[status];\r\n}\r\n\r\nexport { getStatusColor, getBorderColor, getStatusTextColor };\r\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,SAASC,cAAcA,CAACC,MAAc,EAAE;EACtC,MAAMC,YAAY,GAAG;IACnBC,SAAS,EAAEC,YAAK,CAACC,MAAM,CAACC,GAAG,CAAC,GAAG,CAAC;IAChCC,QAAQ,EAAEH,YAAK,CAACC,MAAM,CAACG,MAAM,CAAC,GAAG;EACnC,CAAC;EACD,OAAON,YAAY,CAACD,MAAM,CAA8B;AAC1D;AACA,SAASQ,cAAcA,CAACR,MAAkB,EAAU;EAClD,MAAMS,YAAwC,GAAG;IAC/CC,SAAS,EAAEP,YAAK,CAACC,MAAM,CAACO,KAAK,CAAC,GAAG,CAAC;IAClCT,SAAS,EAAEC,YAAK,CAACC,MAAM,CAACC,GAAG,CAAC,GAAG,CAAC;IAChCC,QAAQ,EAAEH,YAAK,CAACC,MAAM,CAACQ,MAAM,CAAC,EAAE,CAAC;IACjCC,SAAS,EAAEV,YAAK,CAACC,MAAM,CAACO,KAAK,CAAC,GAAG,CAAC;IAClCG,YAAY,EAAEX,YAAK,CAACC,MAAM,CAACW,IAAI,CAAC,EAAE;EACpC,CAAC;EAED,OAAON,YAAY,CAACT,MAAM,CAAC;AAC7B;AAEA,SAASgB,kBAAkBA,CAAChB,MAAkB,EAAU;EACtD,MAAMS,YAAwC,GAAG;IAC/CC,SAAS,EAAEP,YAAK,CAACC,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IACnCf,SAAS,EAAEC,YAAK,CAACC,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IACnCX,QAAQ,EAAEH,YAAK,CAACC,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IAClCJ,SAAS,EAAEV,YAAK,CAACC,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IACnCH,YAAY,EAAEX,YAAK,CAACC,MAAM,CAACa,OAAO,CAAC,EAAE;EACvC,CAAC;EAED,OAAOR,YAAY,CAACT,MAAM,CAAC;AAC7B","ignoreList":[]}
1
+ {"version":3,"names":["_theme","require","getBorderColor","status","borderColors","Cancelado","theme","colors","red","Pendente","orange","getStatusColor","statusColors","Concluido","green","yellow","Andamento","Em_liberacao","blue","getStatusTextColor","neutral"],"sources":["return-color.ts"],"sourcesContent":["import { theme } from \"../../styles/theme/theme\";\n\nexport type StatusType = \"Andamento\" | \"Cancelado\" | \"Pendente\" | \"Concluido\" | \"Em_liberacao\";\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.green[150],\n Em_liberacao: theme.colors.blue[20],\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 Em_liberacao: theme.colors.neutral[25],\n };\n\n return status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AED,OAAOR,YAAY,CAACT,MAAM,CAAC;AAC7B","ignoreList":[]}
@@ -41,6 +41,7 @@ const DocumentCargaInfo = /*#__PURE__*/forwardRef((props, ref) => {
41
41
  ref: ref,
42
42
  style: styles.container
43
43
  }, rest), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
44
+ width: "100%",
44
45
  flexStyle: {
45
46
  flexDirection: "row",
46
47
  alignItems: "center"
@@ -1 +1 @@
1
- {"version":3,"names":["React","forwardRef","TouchableOpacity","Text","View","Linking","Box","Typography","asBaseComponent","styles","theme","DocumentCargaInfo","props","ref","title","numberDocument","linkDocument","isAlert","errorMessage","rest","handleOpenPdf","url","openURL","error","console","log","createElement","_extends","style","container","Fragment","flexStyle","flexDirection","alignItems","text","size","fontSizes","sm","fontFamily","fonts","inter_regular_400","color","colors","black","marginBottom","margins","md","textOption","fontWeight","justifyContent","inter_bold","width","red","lineHeight","button","backgroundColor","blue","activeOpacity","disabled","onPress","neutral","displayName"],"sources":["index.tsx"],"sourcesContent":["/* eslint-disable no-undef */\n/**\n * IMPORTS\n */\nimport React, { forwardRef } from \"react\";\nimport {\n TouchableOpacity,\n Text,\n View,\n Linking,\n} from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { IDocumentCargaInfo } from \"./interface\";\nimport { asBaseComponent } from \"../../@types/as-base-component\";\n\n// styles\nimport { styles } from \"./styles\";\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente DocumentCargaInfo para interação do usuário com UI.\n */\nconst DocumentCargaInfo = forwardRef<View, IDocumentCargaInfo>(\n (props, ref): React.ReactElement => {\n const {\n title,\n numberDocument,\n linkDocument,\n isAlert,\n errorMessage,\n ...rest\n } = props;\n\n const handleOpenPdf = async (url: string): Promise<void> => {\n try {\n await Linking.openURL(url);\n } catch (error) {\n console.log(\"Erro ao abrir PDF\", error);\n }\n };\n\n return (\n <Box ref={ref} style={styles.container} {...rest}>\n <>\n {/* Título / Documento */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text={title ?? \"Selecione o Apolo disponível\"}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.black[100]}\n marginBottom={isAlert ? 0 : theme.margins.md}\n />\n\n <Text\n style={[\n styles.textOption,\n {\n marginBottom: isAlert ? 0 : theme.margins.md,\n fontWeight: \"bold\",\n },\n ]}\n >\n #{numberDocument}\n </Text>\n </Box>\n\n {/* Alerta */}\n {isAlert && (\n <View\n style={{\n flexDirection: \"row\",\n alignItems: \"flex-start\",\n justifyContent: \"flex-start\",\n marginBottom: 16,\n }}\n >\n <Typography\n text=\"Atenção:\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[100]}\n />\n\n <Text\n style={[\n styles.textOption,\n {\n width: 250,\n color: theme.colors.red[900],\n lineHeight: 20,\n },\n ]}\n >\n {errorMessage ?? \"N/A\"}\n </Text>\n </View>\n )}\n\n {/* Botão */}\n <TouchableOpacity\n style={[\n styles.button,\n {\n backgroundColor: isAlert\n ? \"#8E949A\"\n : theme.colors.blue[500],\n },\n ]}\n activeOpacity={0.7}\n disabled={isAlert}\n onPress={() => handleOpenPdf(linkDocument!)}\n >\n <Typography\n text=\"Abrir documento\"\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold}\n size={16}\n />\n </TouchableOpacity>\n </>\n </Box>\n );\n }\n);\n\nDocumentCargaInfo.displayName = \"DocumentCargaInfo\";\n\n/**\n * EXPORTS\n */\nexport default asBaseComponent(DocumentCargaInfo);\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SACEC,gBAAgB,EAChBC,IAAI,EACJC,IAAI,EACJC,OAAO,QACF,cAAc;;AAErB;AACA,OAAOC,GAAG,MAAM,QAAQ;AACxB,SAASC,UAAU,QAAQ,eAAe;;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AQ;IAClB0C,OAAO,EAAEA,CAAA,KAAMvC,aAAa,CAACJ,YAAa;EAAE,gBAE5ChB,KAAA,CAAA0B,aAAA,CAACnB,UAAU;IACT2B,IAAI,EAAC,iBAAiB;IACtBO,KAAK,EAAE/B,KAAK,CAACgC,MAAM,CAACkB,OAAO,CAAC,EAAE,CAAE;IAChCtB,UAAU,EAAE5B,KAAK,CAAC6B,KAAK,CAACW,UAAW;IACnCf,IAAI,EAAE;EAAG,CACV,CACe,CAClB,CACC,CAAC;AAEV,CACF,CAAC;AAEDxB,iBAAiB,CAACkD,WAAW,GAAG,mBAAmB;;AAEnD;AACA;AACA;AACA,eAAerD,eAAe,CAACG,iBAAiB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","forwardRef","TouchableOpacity","Text","View","Linking","Box","Typography","asBaseComponent","styles","theme","DocumentCargaInfo","props","ref","title","numberDocument","linkDocument","isAlert","errorMessage","rest","handleOpenPdf","url","openURL","error","console","log","createElement","_extends","style","container","Fragment","width","flexStyle","flexDirection","alignItems","text","size","fontSizes","sm","fontFamily","fonts","inter_regular_400","color","colors","black","marginBottom","margins","md","textOption","fontWeight","justifyContent","inter_bold","red","lineHeight","button","backgroundColor","blue","activeOpacity","disabled","onPress","neutral","displayName"],"sources":["index.tsx"],"sourcesContent":["/* eslint-disable no-undef */\n/**\n * IMPORTS\n */\nimport React, { forwardRef } from \"react\";\nimport {\n TouchableOpacity,\n Text,\n View,\n Linking,\n} from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { IDocumentCargaInfo } from \"./interface\";\nimport { asBaseComponent } from \"../../@types/as-base-component\";\n\n// styles\nimport { styles } from \"./styles\";\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente DocumentCargaInfo para interação do usuário com UI.\n */\nconst DocumentCargaInfo = forwardRef<View, IDocumentCargaInfo>(\n (props, ref): React.ReactElement => {\n const {\n title,\n numberDocument,\n linkDocument,\n isAlert,\n errorMessage,\n ...rest\n } = props;\n\n const handleOpenPdf = async (url: string): Promise<void> => {\n try {\n await Linking.openURL(url);\n } catch (error) {\n console.log(\"Erro ao abrir PDF\", error);\n }\n };\n\n return (\n <Box ref={ref} style={styles.container} {...rest}>\n <>\n {/* Título / Documento */}\n <Box width={\"100%\"} flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text={title ?? \"Selecione o Apolo disponível\"}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.black[100]}\n marginBottom={isAlert ? 0 : theme.margins.md}\n />\n\n <Text\n style={[\n styles.textOption,\n\n {\n marginBottom: isAlert ? 0 : theme.margins.md,\n fontWeight: \"bold\",\n },\n ]}\n >\n #{numberDocument}\n </Text>\n </Box>\n\n {/* Alerta */}\n {isAlert && (\n <View\n style={{\n flexDirection: \"row\",\n alignItems: \"flex-start\",\n justifyContent: \"flex-start\",\n marginBottom: 16,\n }}\n >\n <Typography\n text=\"Atenção:\"\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n color={theme.colors.black[100]}\n />\n\n <Text\n style={[\n styles.textOption,\n {\n width: 250,\n color: theme.colors.red[900],\n lineHeight: 20,\n },\n ]}\n >\n {errorMessage ?? \"N/A\"}\n </Text>\n </View>\n )}\n\n {/* Botão */}\n <TouchableOpacity\n style={[\n styles.button,\n {\n backgroundColor: isAlert\n ? \"#8E949A\"\n : theme.colors.blue[500],\n },\n ]}\n activeOpacity={0.7}\n disabled={isAlert}\n onPress={() => handleOpenPdf(linkDocument!)}\n >\n <Typography\n text=\"Abrir documento\"\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold}\n size={16}\n />\n </TouchableOpacity>\n </>\n </Box>\n );\n }\n);\n\nDocumentCargaInfo.displayName = \"DocumentCargaInfo\";\n\n/**\n * EXPORTS\n */\nexport default asBaseComponent(DocumentCargaInfo);\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA,OAAOA,K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K,EAAE,CACLnB,MAAM,CAAC6C,MAAM,EACb;MACEC,eAAe,EAAEtC,OAAO,GACpB,SAAS,GACTP,KAAK,CAACiC,MAAM,CAACa,IAAI,CAAC,GAAG;IAC3B,CAAC,CACD;IACFC,aAAa,EAAE,GAAI;IACnBC,QAAQ,EAAEzC,OAAQ;IAClB0C,OAAO,EAAEA,CAAA,KAAMvC,aAAa,CAACJ,YAAa;EAAE,gBAE5ChB,KAAA,CAAA0B,aAAA,CAACnB,UAAU;IACT4B,IAAI,EAAC,iBAAiB;IACtBO,KAAK,EAAEhC,KAAK,CAACiC,MAAM,CAACiB,OAAO,CAAC,EAAE,CAAE;IAChCrB,UAAU,EAAE7B,KAAK,CAAC8B,KAAK,CAACW,UAAW;IACnCf,IAAI,EAAE;EAAG,CACV,CACe,CAClB,CACC,CAAC;AAEV,CACF,CAAC;AAEDzB,iBAAiB,CAACkD,WAAW,GAAG,mBAAmB;;AAEnD;AACA;AACA;AACA,eAAerD,eAAe,CAACG,iBAAiB,CAAC","ignoreList":[]}
@@ -45,6 +45,7 @@ const styles = StyleSheet.create({
45
45
  height: 20
46
46
  },
47
47
  textOption: {
48
+ width: 100,
48
49
  color: theme.colors.black[25],
49
50
  fontFamily: theme.fonts.inter_regular_400,
50
51
  fontSize: 12,
@@ -1 +1 @@
1
- {"version":3,"names":["StyleSheet","theme","styles","create","container","width","padding","paddings","sm","backgroundColor","borderRadius","header","flexDirection","alignItems","justifyContent","marginBottom","margins","md","left","alert","color","marginTop","fontSize","button","height","arrow","textOption","colors","black","fontFamily","fonts","inter_regular_400","marginLeft"],"sources":["styles.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// theme\nimport { theme } from \"../../styles/theme/theme\";\n\n// styles\n\nconst styles = StyleSheet.create({\n container: {\n width: \"100%\",\n padding: theme.paddings.sm,\n backgroundColor: \"#EAEAEA\",\n borderRadius: 12,\n },\n header: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n marginBottom: theme.margins.md,\n },\n\n left: {\n flexDirection: \"row\",\n alignItems: \"center\",\n },\n\n alert: {\n color: \"#D32F2F\",\n marginTop: 8,\n marginBottom: 12,\n fontSize: 13,\n },\n\n button: {\n width: \"100%\",\n height: 45,\n backgroundColor: \"#8E949A\",\n borderRadius: 8,\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n arrow: {\n width: 20,\n height: 20,\n },\n textOption: {\n color: theme.colors.black[25],\n fontFamily: theme.fonts.inter_regular_400,\n fontSize: 12,\n marginLeft: 8,\n marginTop: 2,\n }\n\n})\n\n\n\n/**\n * EXPORTS\n */\nexport { styles }\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAEhD;;AAEA,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAC;EAC/BC,SAAS,EAAE;IACTC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEL,KAAK,CAACM,QAAQ,CAACC,EAAE;IAC1BC,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAE;EAChB,CAAC;EACDC,MAAM,EAAE;IACNC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,YAAY,EAAEd,KAAK,CAACe,OAAO,CAACC;EAC9B,CAAC;EAEDC,IAAI,EAAE;IACJN,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACd,CAAC;EAEDM,KAAK,EAAE;IACLC,KAAK,EAAE,SAAS;IAChBC,SAAS,EAAE,CAAC;IACZN,YAAY,EAAE,EAAE;IAChBO,QAAQ,EAAE;EACZ,CAAC;EAEDC,MAAM,EAAE;IACNlB,KAAK,EAAE,MAAM;IACbmB,MAAM,EAAE,EAAE;IACVf,eAAe,EAAE,SAAS;IAC1BC,YAAY,EAAE,CAAC;IACfG,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDW,KAAK,EAAE;IACLpB,KAAK,EAAE,EAAE;IACTmB,MAAM,EAAE;EACV,CAAC;EACDE,UAAU,EAAE;IACVN,KAAK,EAAEnB,KAAK,CAAC0B,MAAM,CAACC,KAAK,CAAC,EAAE,CAAC;IAC7BC,UAAU,EAAE5B,KAAK,CAAC6B,KAAK,CAACC,iBAAiB;IACzCT,QAAQ,EAAE,EAAE;IACZU,UAAU,EAAE,CAAC;IACbX,SAAS,EAAE;EACb;AAEF,CAAC,CAAC;;AAIF;AACA;AACA;AACA,SAASnB,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["StyleSheet","theme","styles","create","container","width","padding","paddings","sm","backgroundColor","borderRadius","header","flexDirection","alignItems","justifyContent","marginBottom","margins","md","left","alert","color","marginTop","fontSize","button","height","arrow","textOption","colors","black","fontFamily","fonts","inter_regular_400","marginLeft"],"sources":["styles.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// theme\nimport { theme } from \"../../styles/theme/theme\";\n\n// styles\n\nconst styles = StyleSheet.create({\n container: {\n width: \"100%\",\n padding: theme.paddings.sm,\n backgroundColor: \"#EAEAEA\",\n borderRadius: 12,\n },\n header: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n marginBottom: theme.margins.md,\n },\n\n left: {\n flexDirection: \"row\",\n alignItems: \"center\",\n },\n\n alert: {\n color: \"#D32F2F\",\n marginTop: 8,\n marginBottom: 12,\n fontSize: 13,\n },\n\n button: {\n width: \"100%\",\n height: 45,\n backgroundColor: \"#8E949A\",\n borderRadius: 8,\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n arrow: {\n width: 20,\n height: 20,\n },\n textOption: {\n width: 100,\n color: theme.colors.black[25],\n fontFamily: theme.fonts.inter_regular_400,\n fontSize: 12,\n marginLeft: 8,\n marginTop: 2,\n }\n\n})\n\n\n\n/**\n * EXPORTS\n */\nexport { styles }\n"],"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36,7 @@ const styles = StyleSheet.create({
36
36
  fontSize: theme.fontSizes.md
37
37
  },
38
38
  textOption: {
39
+ width: 200,
39
40
  color: theme.colors.black[25],
40
41
  fontFamily: theme.fonts.inter_regular_400,
41
42
  fontSize: 12,
@@ -1 +1 @@
1
- {"version":3,"names":["StyleSheet","theme","styles","create","container","bg","width","padding","paddings","sm","backgroundColor","colors","gray","borderRadius","header","flexDirection","alignItems","justifyContent","flexWrap","marginBottom","margins","md","arrow","height","textSpacing","marginTop","buttonText","color","neutral","fontFamily","fonts","inter_medium_500","fontSize","fontSizes","textOption","black","inter_regular_400","marginLeft"],"sources":["style.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// typings\nimport { IStyles } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst styles = StyleSheet.create<IStyles | any>({\n container: (bg?: string) => ({\n width: \"100%\",\n padding: theme.paddings.sm,\n backgroundColor: bg ?? theme.colors.gray[700],\n borderRadius: 16,\n }),\n\n header: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n flexWrap: \"wrap\",\n marginBottom: theme.margins.md,\n },\n\n arrow: {\n width: 20,\n height: 20,\n },\n\n textSpacing: {\n marginTop: theme.margins[\"2xs\"],\n marginBottom: theme.margins[\"2xs\"],\n },\n\n buttonText: {\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\n fontSize: theme.fontSizes.md,\n },\n textOption: {\n color: theme.colors.black[25],\n fontFamily: theme.fonts.inter_regular_400,\n fontSize: 12,\n marginLeft: 4,\n }\n});\n\n/**\n * EXPORTS\n */\nexport { styles}\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAEhD,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAgB;EAC9CC,SAAS,EAAGC,EAAW,KAAM;IAC3BC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEN,KAAK,CAACO,QAAQ,CAACC,EAAE;IAC1BC,eAAe,EAAEL,EAAE,aAAFA,EAAE,cAAFA,EAAE,GAAIJ,KAAK,CAACU,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IAC7CC,YAAY,EAAE;EAChB,CAAC,CAAC;EAEFC,MAAM,EAAE;IACNC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,QAAQ,EAAE,MAAM;IAChBC,YAAY,EAAElB,KAAK,CAACmB,OAAO,CAACC;EAC9B,CAAC;EAEDC,KAAK,EAAE;IACLhB,KAAK,EAAE,EAAE;IACTiB,MAAM,EAAE;EACV,CAAC;EAEDC,WAAW,EAAE;IACXC,SAAS,EAAExB,KAAK,CAACmB,OAAO,CAAC,KAAK,CAAC;IAC/BD,YAAY,EAAElB,KAAK,CAACmB,OAAO,CAAC,KAAK;EACnC,CAAC;EAEDM,UAAU,EAAE;IACVC,KAAK,EAAE1B,KAAK,CAACU,MAAM,CAACiB,OAAO,CAAC,EAAE,CAAC;IAC/BC,UAAU,EAAE5B,KAAK,CAAC6B,KAAK,CAACC,gBAAgB;IACxCC,QAAQ,EAAE/B,KAAK,CAACgC,SAAS,CAACZ;EAC5B,CAAC;EACDa,UAAU,EAAE;IACVP,KAAK,EAAE1B,KAAK,CAACU,MAAM,CAACwB,KAAK,CAAC,EAAE,CAAC;IAC7BN,UAAU,EAAE5B,KAAK,CAAC6B,KAAK,CAACM,iBAAiB;IACzCJ,QAAQ,EAAE,EAAE;IACZK,UAAU,EAAE;EACd;AACF,CAAC,CAAC;;AAEF;AACA;AACA;AACA,SAASnC,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["StyleSheet","theme","styles","create","container","bg","width","padding","paddings","sm","backgroundColor","colors","gray","borderRadius","header","flexDirection","alignItems","justifyContent","flexWrap","marginBottom","margins","md","arrow","height","textSpacing","marginTop","buttonText","color","neutral","fontFamily","fonts","inter_medium_500","fontSize","fontSizes","textOption","black","inter_regular_400","marginLeft"],"sources":["style.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// typings\nimport { IStyles } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst styles = StyleSheet.create<IStyles | any>({\n container: (bg?: string) => ({\n width: \"100%\",\n padding: theme.paddings.sm,\n backgroundColor: bg ?? theme.colors.gray[700],\n borderRadius: 16,\n }),\n\n header: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n flexWrap: \"wrap\",\n marginBottom: theme.margins.md,\n },\n\n arrow: {\n width: 20,\n height: 20,\n },\n\n textSpacing: {\n marginTop: theme.margins[\"2xs\"],\n marginBottom: theme.margins[\"2xs\"],\n },\n\n buttonText: {\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\n fontSize: theme.fontSizes.md,\n },\n textOption: {\n width: 200,\n color: theme.colors.black[25],\n fontFamily: theme.fonts.inter_regular_400,\n fontSize: 12,\n marginLeft: 4,\n }\n});\n\n/**\n * EXPORTS\n */\nexport { styles }\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAEhD,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAgB;EAC9CC,SAAS,EAAGC,EAAW,KAAM;IAC3BC,KAAK,EAAE,MAAM;IACbC,OAAO,EAAEN,KAAK,CAACO,QAAQ,CAACC,EAAE;IAC1BC,eAAe,EAAEL,EAAE,aAAFA,EAAE,cAAFA,EAAE,GAAIJ,KAAK,CAACU,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IAC7CC,YAAY,EAAE;EAChB,CAAC,CAAC;EAEFC,MAAM,EAAE;IACNC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/BC,QAAQ,EAAE,MAAM;IAChBC,YAAY,EAAElB,KAAK,CAACmB,OAAO,CAACC;EAC9B,CAAC;EAEDC,KAAK,EAAE;IACLhB,KAAK,EAAE,EAAE;IACTiB,MAAM,EAAE;EACV,CAAC;EAEDC,WAAW,EAAE;IACXC,SAAS,EAAExB,KAAK,CAACmB,OAAO,CAAC,KAAK,CAAC;IAC/BD,YAAY,EAAElB,KAAK,CAACmB,OAAO,CAAC,KAAK;EACnC,CAAC;EAEDM,UAAU,EAAE;IACVC,KAAK,EAAE1B,KAAK,CAACU,MAAM,CAACiB,OAAO,CAAC,EAAE,CAAC;IAC/BC,UAAU,EAAE5B,KAAK,CAAC6B,KAAK,CAACC,gBAAgB;IACxCC,QAAQ,EAAE/B,KAAK,CAACgC,SAAS,CAACZ;EAC5B,CAAC;EACDa,UAAU,EAAE;IACV5B,KAAK,EAAE,GAAG;IACVqB,KAAK,EAAE1B,KAAK,CAACU,MAAM,CAACwB,KAAK,CAAC,EAAE,CAAC;IAC7BN,UAAU,EAAE5B,KAAK,CAAC6B,KAAK,CAACM,iBAAiB;IACzCJ,QAAQ,EAAE,EAAE;IACZK,UAAU,EAAE;EACd;AACF,CAAC,CAAC;;AAEF;AACA;AACA;AACA,SAASnC,MAAM","ignoreList":[]}
@@ -7,13 +7,12 @@ import { TouchableOpacity, ActivityIndicator, FlatList } from "react-native";
7
7
  // components
8
8
  import Box from "../box";
9
9
  import { Typography } from "../typography";
10
-
11
- // styles
12
- import { theme } from "../../styles/theme/theme";
10
+ import { Icons } from "../../common/icons-svg";
13
11
 
14
12
  //typing
15
13
 
16
- import { Icons } from "../../common/icons-svg";
14
+ // styles
15
+ import { theme } from "../../styles/theme/theme";
17
16
 
18
17
  /**
19
18
  *
@@ -24,7 +23,8 @@ const FilterDateSelector = ({
24
23
  handleSelectedDay,
25
24
  days,
26
25
  isLoading,
27
- testID
26
+ testID,
27
+ sort = "desc"
28
28
  }) => {
29
29
  const renderDayBlock = ({
30
30
  item: day,
@@ -80,7 +80,7 @@ const FilterDateSelector = ({
80
80
  const dataWithAllOption = [...daySorted];
81
81
  return /*#__PURE__*/React.createElement(FlatList, {
82
82
  horizontal: true,
83
- data: dataWithAllOption,
83
+ data: sort === "desc" ? dataWithAllOption : days,
84
84
  showsHorizontalScrollIndicator: false,
85
85
  renderItem: renderDayBlock
86
86
  });
@@ -1 +1 @@
1
- {"version":3,"names":["React","TouchableOpacity","ActivityIndicator","FlatList","Box","Typography","theme","Icons","FilterDateSelector","selectedDay","handleSelectedDay","days","isLoading","testID","renderDayBlock","item","day","index","isSelected","date","createElement","disabled","key","activeOpacity","onPress","width","height","flexStyle","alignItems","justifyContent","backgroundColor","colors","blue","gray","borderStyled","borderRadius","borderWidths","thick_large","borderColor","borderWidth","thin","marginStyle","marginRight","margins","marginTop","size","color","Fragment","icon","neutral","text","toString","padStart","fontSizes","lg","fontFamily","fonts","inter_bold_700","dayName","slice","marginBottom","letterSpacing","daySorted","sort","a","b","Date","fullDate","getTime","dataWithAllOption","horizontal","data","showsHorizontalScrollIndicator","renderItem"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity, ActivityIndicator, FlatList } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n//typing\nimport { IFilterDateSelector, ISelectedDay } from \"./interface\";\nimport { Icons } from \"../../common/icons-svg\";\n\n/**\n *\n * Componente FilterDateSelector para a interação do usuário com ui.\n */\nconst FilterDateSelector: React.FC<IFilterDateSelector> = ({\n selectedDay,\n handleSelectedDay,\n days,\n isLoading,\n testID,\n}) => {\n const renderDayBlock = ({ item: day, index }: { item: ISelectedDay; index: number }) => {\n const isSelected = selectedDay && selectedDay.date === day.date;\n return (\n <TouchableOpacity\n disabled={isSelected}\n key={index}\n activeOpacity={0.7}\n onPress={() => handleSelectedDay(day)}\n >\n <Box\n testID={testID}\n width={65}\n height={75}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\" }}\n backgroundColor={isSelected ? theme.colors.blue[400] : theme.colors.gray[350]}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_large,\n borderColor: isSelected ? theme.colors.blue[400] : theme.colors.gray[350],\n borderWidth: theme.borderWidths.thin,\n }}\n marginStyle={{ marginRight: theme.margins[\"2xs\"], marginTop: theme.margins[\"2xs\"] }}\n >\n {isSelected && isLoading ? (\n <ActivityIndicator size=\"small\" color=\"white\" />\n ) : (\n <>\n {day.date === \"all\" ? (\n <Icons icon=\"REFRESH_CCW_DOT\" color={theme.colors.neutral[25]} />\n ) : (\n <>\n <Typography\n text={day.date === \"all\" ? \"\" : day.date.toString().padStart(2, \"0\")}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n />\n <Typography\n text={day.date === \"all\" ? \"Todos\" : day.dayName.slice(0, 3)}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n marginBottom={day.date === \"all\" ? theme.margins[\"3xl\"] : 0}\n letterSpacing=\"o_16\"\n />\n </>\n )}\n </>\n )}\n </Box>\n </TouchableOpacity>\n );\n };\n const daySorted = days.sort(\n (a, b) => new Date(b.fullDate).getTime() - new Date(a.fullDate).getTime()\n );\n\n // Adiciona a opção \"Todos\" no início da lista\n const dataWithAllOption = [...daySorted];\n\n return (\n <FlatList\n horizontal\n data={dataWithAllOption}\n showsHorizontalScrollIndicator={false}\n renderItem={renderDayBlock}\n />\n );\n};\n\n/**\n * EXPORTS\n */\nexport { FilterDateSelector };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,EAAEC,iBAAiB,EAAEC,QAAQ,QAAQ,cAAc;;AAE5E;AACA,OAAOC,GAAG,MAAM,QAAQ;AACxB,SAASC,UAAU,QA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AAE,CAAE;MAChCM,UAAU,EAAEjD,KAAK,CAACkD,KAAK,CAACC,cAAe;MACvCG,YAAY,EAAE5C,GAAG,CAACG,IAAI,KAAK,KAAK,GAAGb,KAAK,CAACqC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAE;MAC5DkB,aAAa,EAAC;IAAM,CACrB,CACD,CAEJ,CAED,CACW,CAAC;EAEvB,CAAC;EACD,MAAMC,SAAS,GAAGnD,IAAI,CAACoD,IAAI,CACzB,CAACC,CAAC,EAAEC,CAAC,KAAK,IAAIC,IAAI,CAACD,CAAC,CAACE,QAAQ,CAAC,CAACC,OAAO,CAAC,CAAC,GAAG,IAAIF,IAAI,CAACF,CAAC,CAACG,QAAQ,CAAC,CAACC,OAAO,CAAC,CAC1E,CAAC;;EAED;EACA,MAAMC,iBAAiB,GAAG,CAAC,GAAGP,SAAS,CAAC;EAExC,oBACE9D,KAAA,CAAAoB,aAAA,CAACjB,QAAQ;IACPmE,UAAU;IACVC,IAAI,EAAEF,iBAAkB;IACxBG,8BAA8B,EAAE,KAAM;IACtCC,UAAU,EAAE3D;EAAe,CAC5B,CAAC;AAEN,CAAC;;AAED;AACA;AACA;AACA,SAASN,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["React","TouchableOpacity","ActivityIndicator","FlatList","Box","Typography","Icons","theme","FilterDateSelector","selectedDay","handleSelectedDay","days","isLoading","testID","sort","renderDayBlock","item","day","index","isSelected","date","createElement","disabled","key","activeOpacity","onPress","width","height","flexStyle","alignItems","justifyContent","backgroundColor","colors","blue","gray","borderStyled","borderRadius","borderWidths","thick_large","borderColor","borderWidth","thin","marginStyle","marginRight","margins","marginTop","size","color","Fragment","icon","neutral","text","toString","padStart","fontSizes","lg","fontFamily","fonts","inter_bold_700","dayName","slice","marginBottom","letterSpacing","daySorted","a","b","Date","fullDate","getTime","dataWithAllOption","horizontal","data","showsHorizontalScrollIndicator","renderItem"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity, ActivityIndicator, FlatList } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\nimport { Icons } from \"../../common/icons-svg\";\n\n//typing\nimport { IFilterDateSelector, ISelectedDay } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n\n/**\n *\n * Componente FilterDateSelector para a interação do usuário com ui.\n */\nconst FilterDateSelector: React.FC<IFilterDateSelector> = ({\n selectedDay,\n handleSelectedDay,\n days,\n isLoading,\n testID,\n sort = \"desc\",\n}) => {\n const renderDayBlock = ({ item: day, index }: { item: ISelectedDay; index: number }) => {\n const isSelected = selectedDay && selectedDay.date === day.date;\n return (\n <TouchableOpacity\n disabled={isSelected}\n key={index}\n activeOpacity={0.7}\n onPress={() => handleSelectedDay(day)}\n >\n <Box\n testID={testID}\n width={65}\n height={75}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\" }}\n backgroundColor={isSelected ? theme.colors.blue[400] : theme.colors.gray[350]}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_large,\n borderColor: isSelected ? theme.colors.blue[400] : theme.colors.gray[350],\n borderWidth: theme.borderWidths.thin,\n }}\n marginStyle={{ marginRight: theme.margins[\"2xs\"], marginTop: theme.margins[\"2xs\"] }}\n >\n {isSelected && isLoading ? (\n <ActivityIndicator size=\"small\" color=\"white\" />\n ) : (\n <>\n {day.date === \"all\" ? (\n <Icons icon=\"REFRESH_CCW_DOT\" color={theme.colors.neutral[25]} />\n ) : (\n <>\n <Typography\n text={day.date === \"all\" ? \"\" : day.date.toString().padStart(2, \"0\")}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n />\n <Typography\n text={day.date === \"all\" ? \"Todos\" : day.dayName.slice(0, 3)}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n marginBottom={day.date === \"all\" ? theme.margins[\"3xl\"] : 0}\n letterSpacing=\"o_16\"\n />\n </>\n )}\n </>\n )}\n </Box>\n </TouchableOpacity>\n );\n };\n\n\n const daySorted = days.sort(\n (a, b) => new Date(b.fullDate).getTime() - new Date(a.fullDate).getTime()\n );\n\n // Adiciona a opção \"Todos\" no início da lista\n const dataWithAllOption = [...daySorted];\n\n return (\n <FlatList\n horizontal\n data={sort === \"desc\" ? dataWithAllOption : days}\n showsHorizontalScrollIndicator={false}\n renderItem={renderDayBlock}\n />\n );\n};\n\n/**\n * EXPORTS\n */\nexport { FilterDateSelector };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,EAAEC,iBAAiB,EAAEC,QAAQ,QAAQ,cAAc;;AAE5E;AACA,OAAOC,GAAG,MAAM,QAAQ;AACxB,SAASC,UAAU,QAAQ,eAAe;AAE1C,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;;AAGhD;AACA;AACA;AACA;AACA,MAAMC,kBAAiD,GAAGA,CAAC;EACzDC,WAAW;EACXC,iBAAiB;EACjBC,IAAI;EACJC,SAAS;EACTC,MAAM;EACNC,IAAI,GAAG;AACT,CAAC,KAAK;EACJ,MAAMC,cAAc,GAAGA,CAAC;IAAEC,IAAI,EAAEC,GAAG;IAAEC;EAA6C,CAAC,KAAK;IACtF,MAAMC,UAAU,GAAGV,WAAW,IAAIA,WAAW,CAACW,IAAI,KAAKH,GAAG,CAACG,IAAI;IAC/D,oBACEpB,KAAA,CAAAqB,aAAA,CAACpB,gBAAgB;MACfqB,QAAQ,EAAEH,UAAW;MACrBI,GAAG,EAAEL,KAAM;MACXM,aAAa,EAAE,GAAI;MACnBC,OAAO,EAAEA,CAAA,KAAMf,iBAAiB,CAACO,GAAG;IAAE,gBAEtCjB,KAAA,CAAAqB,aAAA,CAACjB,GAAG;MACFS,MAAM,EAAEA,MAAO;MACfa,KAAK,EAAE,EAAG;MACVC,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AA8B,EAAE,KAAM;IACtCC,UAAU,EAAE1D;EAAe,CAC5B,CAAC;AAEN,CAAC;;AAED;AACA;AACA;AACA,SAASP,kBAAkB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/*\n * IMPORTS\n */\nimport { TouchableOpacityProps } from \"react-native\";\n\n/**\n * INTERFACE\n */\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface ISelectedDay {\n date: string | number;\n dayName: string;\n fullDate: Date;\n}\n\ninterface IFilterDateSelector extends TouchableOpacityProps, IGlobalCss {\n /**\n * prop que mostra o dia selecionado\n */\n selectedDay: ISelectedDay;\n\n /**\n * função que seleciona a data\n */\n // eslint-disable-next-line no-unused-vars\n handleSelectedDay: (date: ISelectedDay) => {};\n\n /**\n * * Retorna as sete últimas datas dos dias\n */\n days: ISelectedDay[];\n\n /**\n * Retorna o loading do componente\n */\n isLoading: boolean;\n}\n\n/**\n * EXPORTS\n */\nexport type { IFilterDateSelector, ISelectedDay };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/*\n * IMPORTS\n */\nimport { TouchableOpacityProps } from \"react-native\";\n\n/**\n * INTERFACE\n */\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface ISelectedDay {\n date: string | number;\n dayName: string;\n fullDate: Date;\n}\n\ninterface IFilterDateSelector extends TouchableOpacityProps, IGlobalCss {\n /**\n * prop que mostra o dia selecionado\n */\n selectedDay: ISelectedDay;\n\n /**\n * função que seleciona a data\n */\n // eslint-disable-next-line no-unused-vars\n handleSelectedDay: (date: ISelectedDay) => {};\n\n /**\n * * Retorna as sete últimas datas dos dias\n */\n days: ISelectedDay[];\n\n /**\n * Retorna o loading do componente\n */\n isLoading: boolean;\n\n /**\n * Indica que a ordem da lista é alterada\n */\n sort?: \"asc\" | \"desc\";\n}\n\n/**\n * EXPORTS\n */\nexport type { IFilterDateSelector, ISelectedDay };\n"],"mappings":"","ignoreList":[]}
@@ -12,7 +12,7 @@ function getStatusColor(status) {
12
12
  Cancelado: theme.colors.red[900],
13
13
  Pendente: theme.colors.yellow[75],
14
14
  Andamento: theme.colors.green[150],
15
- Em_Liberacao: theme.colors.blue[20]
15
+ Em_liberacao: theme.colors.blue[20]
16
16
  };
17
17
  return statusColors[status];
18
18
  }
@@ -22,7 +22,7 @@ function getStatusTextColor(status) {
22
22
  Cancelado: theme.colors.neutral[25],
23
23
  Pendente: theme.colors.neutral[50],
24
24
  Andamento: theme.colors.neutral[50],
25
- Em_Liberacao: theme.colors.neutral[25]
25
+ Em_liberacao: theme.colors.neutral[25]
26
26
  };
27
27
  return statusColors[status];
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"names":["theme","getBorderColor","status","borderColors","Cancelado","colors","red","Pendente","orange","getStatusColor","statusColors","Concluido","green","yellow","Andamento","Em_Liberacao","blue","getStatusTextColor","neutral"],"sources":["return-color.ts"],"sourcesContent":["import { theme } from \"../../styles/theme/theme\";\r\n\r\nexport type StatusType = \"Andamento\" | \"Cancelado\" | \"Pendente\" | \"Concluido\" | \"Em_Liberacao\";\r\n\r\nfunction getBorderColor(status: string) {\r\n const borderColors = {\r\n Cancelado: theme.colors.red[900],\r\n Pendente: theme.colors.orange[450],\r\n };\r\n return borderColors[status as keyof typeof borderColors];\r\n}\r\nfunction getStatusColor(status: StatusType): string {\r\n const statusColors: Record<StatusType, string> = {\r\n Concluido: theme.colors.green[250],\r\n Cancelado: theme.colors.red[900],\r\n Pendente: theme.colors.yellow[75],\r\n Andamento: theme.colors.green[150],\r\n Em_Liberacao: theme.colors.blue[20],\r\n };\r\n\r\n return statusColors[status];\r\n}\r\n\r\nfunction getStatusTextColor(status: StatusType): string {\r\n const statusColors: Record<StatusType, string> = {\r\n Concluido: theme.colors.neutral[25],\r\n Cancelado: theme.colors.neutral[25],\r\n Pendente: theme.colors.neutral[50],\r\n Andamento: theme.colors.neutral[50],\r\n Em_Liberacao: theme.colors.neutral[25],\r\n };\r\n\r\n return statusColors[status];\r\n}\r\n\r\nexport { getStatusColor, getBorderColor, getStatusTextColor };\r\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,CAACO,KAAK,CAAC,GAAG,CAAC;IAClCG,YAAY,EAAEf,KAAK,CAACK,MAAM,CAACW,IAAI,CAAC,EAAE;EACpC,CAAC;EAED,OAAON,YAAY,CAACR,MAAM,CAAC;AAC7B;AAEA,SAASe,kBAAkBA,CAACf,MAAkB,EAAU;EACtD,MAAMQ,YAAwC,GAAG;IAC/CC,SAAS,EAAEX,KAAK,CAACK,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IACnCd,SAAS,EAAEJ,KAAK,CAACK,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IACnCX,QAAQ,EAAEP,KAAK,CAACK,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IAClCJ,SAAS,EAAEd,KAAK,CAACK,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IACnCH,YAAY,EAAEf,KAAK,CAACK,MAAM,CAACa,OAAO,CAAC,EAAE;EACvC,CAAC;EAED,OAAOR,YAAY,CAACR,MAAM,CAAC;AAC7B;AAEA,SAASO,cAAc,EAAER,cAAc,EAAEgB,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["theme","getBorderColor","status","borderColors","Cancelado","colors","red","Pendente","orange","getStatusColor","statusColors","Concluido","green","yellow","Andamento","Em_liberacao","blue","getStatusTextColor","neutral"],"sources":["return-color.ts"],"sourcesContent":["import { theme } from \"../../styles/theme/theme\";\n\nexport type StatusType = \"Andamento\" | \"Cancelado\" | \"Pendente\" | \"Concluido\" | \"Em_liberacao\";\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.green[150],\n Em_liberacao: theme.colors.blue[20],\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 Em_liberacao: theme.colors.neutral[25],\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,CAACO,KAAK,CAAC,GAAG,CAAC;IAClCG,YAAY,EAAEf,KAAK,CAACK,MAAM,CAACW,IAAI,CAAC,EAAE;EACpC,CAAC;EAED,OAAON,YAAY,CAACR,MAAM,CAAC;AAC7B;AAEA,SAASe,kBAAkBA,CAACf,MAAkB,EAAU;EACtD,MAAMQ,YAAwC,GAAG;IAC/CC,SAAS,EAAEX,KAAK,CAACK,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IACnCd,SAAS,EAAEJ,KAAK,CAACK,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IACnCX,QAAQ,EAAEP,KAAK,CAACK,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IAClCJ,SAAS,EAAEd,KAAK,CAACK,MAAM,CAACa,OAAO,CAAC,EAAE,CAAC;IACnCH,YAAY,EAAEf,KAAK,CAACK,MAAM,CAACa,OAAO,CAAC,EAAE;EACvC,CAAC;EAED,OAAOR,YAAY,CAACR,MAAM,CAAC;AAC7B;AAEA,SAASO,cAAc,EAAER,cAAc,EAAEgB,kBAAkB","ignoreList":[]}
@@ -37,6 +37,7 @@ declare const styles: {
37
37
  height: number;
38
38
  };
39
39
  textOption: {
40
+ width: number;
40
41
  color: string;
41
42
  fontFamily: string;
42
43
  fontSize: number;
@@ -1,4 +1,4 @@
1
- export declare type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido" | "Em_Liberacao";
1
+ export declare type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido" | "Em_liberacao";
2
2
  declare function getBorderColor(status: string): string;
3
3
  declare function getStatusColor(status: StatusType): string;
4
4
  declare function getStatusTextColor(status: StatusType): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-exp-fig",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "description": "Biblioteca para desenvolvimento dos componentes para utilizar nos app da Expresso Figueiredo.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -48,7 +48,7 @@ const DocumentCargaInfo = forwardRef<View, IDocumentCargaInfo>(
48
48
  <Box ref={ref} style={styles.container} {...rest}>
49
49
  <>
50
50
  {/* Título / Documento */}
51
- <Box flexStyle={{ flexDirection: "row", alignItems: "center" }}>
51
+ <Box width={"100%"} flexStyle={{ flexDirection: "row", alignItems: "center" }}>
52
52
  <Typography
53
53
  text={title ?? "Selecione o Apolo disponível"}
54
54
  size={theme.fontSizes.sm}
@@ -60,6 +60,7 @@ const DocumentCargaInfo = forwardRef<View, IDocumentCargaInfo>(
60
60
  <Text
61
61
  style={[
62
62
  styles.textOption,
63
+
63
64
  {
64
65
  marginBottom: isAlert ? 0 : theme.margins.md,
65
66
  fontWeight: "bold",
@@ -48,6 +48,7 @@ const styles = StyleSheet.create({
48
48
  height: 20,
49
49
  },
50
50
  textOption: {
51
+ width: 100,
51
52
  color: theme.colors.black[25],
52
53
  fontFamily: theme.fonts.inter_regular_400,
53
54
  fontSize: 12,
@@ -42,6 +42,7 @@ const styles = StyleSheet.create<IStyles | any>({
42
42
  fontSize: theme.fontSizes.md,
43
43
  },
44
44
  textOption: {
45
+ width: 200,
45
46
  color: theme.colors.black[25],
46
47
  fontFamily: theme.fonts.inter_regular_400,
47
48
  fontSize: 12,
@@ -52,4 +53,4 @@ const styles = StyleSheet.create<IStyles | any>({
52
53
  /**
53
54
  * EXPORTS
54
55
  */
55
- export { styles}
56
+ export { styles }
@@ -8,12 +8,14 @@ import { TouchableOpacity, ActivityIndicator, FlatList } from "react-native";
8
8
  import Box from "../box";
9
9
  import { Typography } from "../typography";
10
10
 
11
- // styles
12
- import { theme } from "../../styles/theme/theme";
11
+ import { Icons } from "../../common/icons-svg";
13
12
 
14
13
  //typing
15
14
  import { IFilterDateSelector, ISelectedDay } from "./interface";
16
- import { Icons } from "../../common/icons-svg";
15
+
16
+ // styles
17
+ import { theme } from "../../styles/theme/theme";
18
+
17
19
 
18
20
  /**
19
21
  *
@@ -25,6 +27,7 @@ const FilterDateSelector: React.FC<IFilterDateSelector> = ({
25
27
  days,
26
28
  isLoading,
27
29
  testID,
30
+ sort = "desc",
28
31
  }) => {
29
32
  const renderDayBlock = ({ item: day, index }: { item: ISelectedDay; index: number }) => {
30
33
  const isSelected = selectedDay && selectedDay.date === day.date;
@@ -78,6 +81,8 @@ const FilterDateSelector: React.FC<IFilterDateSelector> = ({
78
81
  </TouchableOpacity>
79
82
  );
80
83
  };
84
+
85
+
81
86
  const daySorted = days.sort(
82
87
  (a, b) => new Date(b.fullDate).getTime() - new Date(a.fullDate).getTime()
83
88
  );
@@ -88,7 +93,7 @@ const FilterDateSelector: React.FC<IFilterDateSelector> = ({
88
93
  return (
89
94
  <FlatList
90
95
  horizontal
91
- data={dataWithAllOption}
96
+ data={sort === "desc" ? dataWithAllOption : days}
92
97
  showsHorizontalScrollIndicator={false}
93
98
  renderItem={renderDayBlock}
94
99
  />
@@ -35,6 +35,11 @@ interface IFilterDateSelector extends TouchableOpacityProps, IGlobalCss {
35
35
  * Retorna o loading do componente
36
36
  */
37
37
  isLoading: boolean;
38
+
39
+ /**
40
+ * Indica que a ordem da lista é alterada
41
+ */
42
+ sort?: "asc" | "desc";
38
43
  }
39
44
 
40
45
  /**
@@ -1,36 +1,36 @@
1
- import { theme } from "../../styles/theme/theme";
2
-
3
- export type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido" | "Em_Liberacao";
4
-
5
- function getBorderColor(status: string) {
6
- const borderColors = {
7
- Cancelado: theme.colors.red[900],
8
- Pendente: theme.colors.orange[450],
9
- };
10
- return borderColors[status as keyof typeof borderColors];
11
- }
12
- function getStatusColor(status: StatusType): string {
13
- const statusColors: Record<StatusType, string> = {
14
- Concluido: theme.colors.green[250],
15
- Cancelado: theme.colors.red[900],
16
- Pendente: theme.colors.yellow[75],
17
- Andamento: theme.colors.green[150],
18
- Em_Liberacao: theme.colors.blue[20],
19
- };
20
-
21
- return statusColors[status];
22
- }
23
-
24
- function getStatusTextColor(status: StatusType): string {
25
- const statusColors: Record<StatusType, string> = {
26
- Concluido: theme.colors.neutral[25],
27
- Cancelado: theme.colors.neutral[25],
28
- Pendente: theme.colors.neutral[50],
29
- Andamento: theme.colors.neutral[50],
30
- Em_Liberacao: theme.colors.neutral[25],
31
- };
32
-
33
- return statusColors[status];
34
- }
35
-
36
- export { getStatusColor, getBorderColor, getStatusTextColor };
1
+ import { theme } from "../../styles/theme/theme";
2
+
3
+ export type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido" | "Em_liberacao";
4
+
5
+ function getBorderColor(status: string) {
6
+ const borderColors = {
7
+ Cancelado: theme.colors.red[900],
8
+ Pendente: theme.colors.orange[450],
9
+ };
10
+ return borderColors[status as keyof typeof borderColors];
11
+ }
12
+ function getStatusColor(status: StatusType): string {
13
+ const statusColors: Record<StatusType, string> = {
14
+ Concluido: theme.colors.green[250],
15
+ Cancelado: theme.colors.red[900],
16
+ Pendente: theme.colors.yellow[75],
17
+ Andamento: theme.colors.green[150],
18
+ Em_liberacao: theme.colors.blue[20],
19
+ };
20
+
21
+ return statusColors[status];
22
+ }
23
+
24
+ function getStatusTextColor(status: StatusType): string {
25
+ const statusColors: Record<StatusType, string> = {
26
+ Concluido: theme.colors.neutral[25],
27
+ Cancelado: theme.colors.neutral[25],
28
+ Pendente: theme.colors.neutral[50],
29
+ Andamento: theme.colors.neutral[50],
30
+ Em_liberacao: theme.colors.neutral[25],
31
+ };
32
+
33
+ return statusColors[status];
34
+ }
35
+
36
+ export { getStatusColor, getBorderColor, getStatusTextColor };