react-native-exp-fig 0.1.42 → 0.1.43
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.
- package/lib/commonjs/utils/status-color/return-color.js +2 -2
- package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
- package/lib/module/utils/status-color/return-color.js +2 -2
- package/lib/module/utils/status-color/return-color.js.map +1 -1
- package/lib/typescript/src/utils/status-color/return-color.d.ts +1 -1
- package/package.json +1 -1
- package/src/utils/status-color/return-color.ts +36 -36
|
@@ -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
|
-
|
|
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
|
-
|
|
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","
|
|
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 statusColors[status];\n}\n\nexport { getStatusColor, getBorderColor, getStatusTextColor };\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":[]}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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","
|
|
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":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido" | "
|
|
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,36 +1,36 @@
|
|
|
1
|
-
import { theme } from "../../styles/theme/theme";
|
|
2
|
-
|
|
3
|
-
export type StatusType = "Andamento" | "Cancelado" | "Pendente" | "Concluido" | "
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|