react-native-exp-fig 2.0.1 → 2.0.2
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/components/box/index.js +4 -4
- package/lib/commonjs/components/card-loading/index.js +26 -24
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/header-profile/index.js +69 -63
- package/lib/commonjs/components/header-profile/index.js.map +1 -1
- package/lib/commonjs/components/history-details/index.js +4 -4
- package/lib/commonjs/components/user-profile/index.js +9 -10
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/index.js +3 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/header-profile/header-profile.stories.js +7 -17
- package/lib/commonjs/stories/header-profile/header-profile.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +5 -5
- 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/components/box/index.js +4 -4
- package/lib/module/components/card-loading/index.js +27 -25
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/header-profile/index.js +68 -62
- package/lib/module/components/header-profile/index.js.map +1 -1
- package/lib/module/components/history-details/index.js +4 -4
- package/lib/module/components/user-profile/index.js +9 -10
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/index.js +3 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/header-profile/header-profile.stories.js +5 -16
- package/lib/module/stories/header-profile/header-profile.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +5 -5
- 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/components/card-loading/index.d.ts.map +1 -1
- package/lib/typescript/src/components/header-profile/index.d.ts +66 -5
- package/lib/typescript/src/components/header-profile/index.d.ts.map +1 -1
- package/lib/typescript/src/components/user-profile/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/stories/header-profile/header-profile.stories.d.ts +1 -1
- package/lib/typescript/src/stories/header-profile/header-profile.stories.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/box/index.tsx +49 -49
- package/src/components/card-loading/index.tsx +294 -290
- package/src/components/header-profile/index.tsx +148 -132
- package/src/components/header-profile/interface.d.ts +145 -57
- package/src/components/history-details/index.tsx +99 -99
- package/src/components/user-profile/index.tsx +206 -204
- package/src/index.ts +48 -48
- package/src/stories/header-profile/header-profile.stories.tsx +92 -103
- package/src/styles/theme/theme.ts +193 -193
- package/src/utils/status-color/return-color.ts +34 -34
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Image","TouchableOpacity","Box","Typography","IMAGES","theme","jsx","_jsx","jsxs","_jsxs","UserProfile","nome","avatar","cpf","placa_cavalo","
|
|
1
|
+
{"version":3,"names":["React","Image","TouchableOpacity","Box","Typography","IMAGES","theme","jsx","_jsx","jsxs","_jsxs","UserProfile","nome","avatar","cpf","placa_cavalo","app_version","color","width","height","handleProfileView","testID","backgroundColor","colors","blue","paddingStyle","paddingLeft","paddings","md","paddingRight","paddingBottom","children","flexStyle","flexDirection","alignItems","justifyContent","marginStyle","marginTop","margins","activeOpacity","onPress","source","uri","IMAGE_ANONIMA","style","borderRadius","borderWidth","borderWidths","thin_medium","borderColor","green","textAlign","paddingTop","text","colorText","neutral","size","fontSizes","fontFamily","fonts","inter_regular_400","fontWeight","lineHeight","lg","letterSpacing","sm","ellipsizeMode","numberOfLines","inter_semi_bold_600","inter_medium_500","inter_bold_700","inter_light_300"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/user-profile/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,QAAQ,cAAc;;AAEtD;AACA,SAASC,GAAG,QAAQ,iBAAQ;AAC5B,SAASC,UA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TS
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
// Components
|
|
@@ -13,7 +13,7 @@ export { Input } from "./components/input/index.js";
|
|
|
13
13
|
export { CapturePhoto } from "./components/capture-photo/index.js";
|
|
14
14
|
export { CardHours } from "./components/card-hours/index.js";
|
|
15
15
|
export { SelectOption } from "./components/selects/select-option/index.js";
|
|
16
|
-
export {
|
|
16
|
+
export { default as HeaderNavigation } from "./components/header-profile/index.js";
|
|
17
17
|
export { ScheduledJourneyIndicators } from "./components/scheduled-journey-indicators/index.js";
|
|
18
18
|
export { CardScheduledJourney } from "./components/card-scheduled-journey/index.js";
|
|
19
19
|
export { UserProfile } from "./components/user-profile/index.js";
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Box","Button","StepIndicator","Typography","Input","CapturePhoto","CardHours","SelectOption","
|
|
1
|
+
{"version":3,"names":["Box","Button","StepIndicator","Typography","Input","CapturePhoto","CardHours","SelectOption","default","HeaderNavigation","ScheduledJourneyIndicators","CardScheduledJourney","UserProfile","MenuItem","CardLoading","CardWorkSession","LoadingProgress","NoData","FilterJourney","Coil","FilterDateSelector","CardHistory","NotificationLoading","CheckBox","ImageCaptureWithRemove","LoadingDetails","AvatarProfile","HistoryDetails","ActivitiesDaily","ActivitiesProgress","ProfileMenuOption","ModalActivities","CardReport","Loading","NotificationCard","LoadMoreDataFlatList","AppList","multiply","formatDate","getLastSevenDays","formHoursMinute","theme"],"sourceRoot":"..\\..\\src","sources":["index.ts"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA,SAASA,GAAG,QAAQ,2BAAkB;AACtC,SAASC,MAAM,QAAQ,8BAAqB;AAC5C,SAASC,aAAa,QAAQ,sCAA6B;AAC3D,SAASC,UAAU,QAAQ,kCAAyB;AACpD,SAASC,KAAK,QAAQ,6BAAoB;AAC1C,SAASC,YAAY,QAAQ,qCAA4B;AACzD,SAASC,SAAS,QAAQ,kCAAyB;AACnD,SAASC,Y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AQ,yBAAsB","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import Header from "../../components/header-profile/index.js";
|
|
4
4
|
const meta = {
|
|
5
5
|
title: "componente/Header",
|
|
6
6
|
component: Header,
|
|
@@ -9,7 +9,6 @@ const meta = {
|
|
|
9
9
|
arrow: false,
|
|
10
10
|
title: "aqui",
|
|
11
11
|
handleNavigation: () => {},
|
|
12
|
-
permission: false,
|
|
13
12
|
bluetoothIsConnected: false,
|
|
14
13
|
isInternetReachable: true
|
|
15
14
|
},
|
|
@@ -35,10 +34,8 @@ export const HeaderLogin = {
|
|
|
35
34
|
arrow: false,
|
|
36
35
|
title: "Login",
|
|
37
36
|
handleNavigation: () => {},
|
|
38
|
-
permission: false,
|
|
39
37
|
bluetoothIsConnected: false,
|
|
40
|
-
isInternetReachable: true
|
|
41
|
-
isBluetooth: false
|
|
38
|
+
isInternetReachable: true
|
|
42
39
|
}
|
|
43
40
|
};
|
|
44
41
|
export const HeaderArrow = {
|
|
@@ -48,10 +45,8 @@ export const HeaderArrow = {
|
|
|
48
45
|
arrow: true,
|
|
49
46
|
title: "SINCRONIZAR ATIVIDADES",
|
|
50
47
|
handleNavigation: () => {},
|
|
51
|
-
permission: false,
|
|
52
48
|
bluetoothIsConnected: false,
|
|
53
|
-
isInternetReachable: false
|
|
54
|
-
isBluetooth: true
|
|
49
|
+
isInternetReachable: false
|
|
55
50
|
}
|
|
56
51
|
};
|
|
57
52
|
export const HeaderList = {
|
|
@@ -61,10 +56,8 @@ export const HeaderList = {
|
|
|
61
56
|
arrow: true,
|
|
62
57
|
title: "Controle de Jornada",
|
|
63
58
|
handleNavigation: () => {},
|
|
64
|
-
permission: false,
|
|
65
59
|
bluetoothIsConnected: true,
|
|
66
|
-
isInternetReachable: true
|
|
67
|
-
isBluetooth: true
|
|
60
|
+
isInternetReachable: true
|
|
68
61
|
}
|
|
69
62
|
};
|
|
70
63
|
export const HeaderPermission = {
|
|
@@ -74,10 +67,8 @@ export const HeaderPermission = {
|
|
|
74
67
|
arrow: true,
|
|
75
68
|
title: "Permission",
|
|
76
69
|
handleNavigation: () => {},
|
|
77
|
-
permission: true,
|
|
78
70
|
bluetoothIsConnected: true,
|
|
79
|
-
isInternetReachable: true
|
|
80
|
-
isBluetooth: false
|
|
71
|
+
isInternetReachable: true
|
|
81
72
|
}
|
|
82
73
|
};
|
|
83
74
|
export const HeaderBackground = {
|
|
@@ -87,10 +78,8 @@ export const HeaderBackground = {
|
|
|
87
78
|
arrow: true,
|
|
88
79
|
title: "texto grande e background diferente",
|
|
89
80
|
handleNavigation: () => {},
|
|
90
|
-
permission: false,
|
|
91
81
|
bluetoothIsConnected: true,
|
|
92
82
|
isInternetReachable: true,
|
|
93
|
-
isBluetooth: false,
|
|
94
83
|
color: {
|
|
95
84
|
colorText: "white"
|
|
96
85
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Header","meta","title","component","args","testID","arrow","handleNavigation","
|
|
1
|
+
{"version":3,"names":["Header","meta","title","component","args","testID","arrow","handleNavigation","bluetoothIsConnected","isInternetReachable","parameters","notes","HeaderLogin","name","HeaderArrow","HeaderList","HeaderPermission","HeaderBackground","color","colorText"],"sourceRoot":"..\\..\\..\\..\\src","sources":["stories/header-profile/header-profile.stories.tsx"],"mappings":";;AACA,OAAOA,MAAM,MAAM,0CAAiC;AAEpD,MAAMC,IAAyB,GAAG;EAChCC,KAAK,EAAE,mBAAmB;EAC1BC,SAAS,EAAEH,MAAM;EACjBI,IAAI,EAAE;IACJC,MAAM,EAAE,QAAQ;IAChBC,KAAK,EAAE,KAAK;IACZJ,KAAK,EAAE,MAAM;IACbK,gBAAgB,EAAEA,CAAA,KAAM,CAAE,CAAC;IAC3BC,oBAAoB,EAAE,KAAK;IAC3BC,mBAAmB,EAAE;EACvB,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AAC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,MAAM,EAAE,QAAQ;IAChBC,KAAK,EAAE,IAAI;IACXJ,KAAK,EAAE,qCAAqC;IAC5CK,gBAAgB,EAAEA,CAAA,KAAM,CAAE,CAAC;IAC3BC,oBAAoB,EAAE,IAAI;IAC1BC,mBAAmB,EAAE,IAAI;IACzBS,KAAK,EAAE;MAAEC,SAAS,EAAE;IAAQ;EAC9B;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* IMPORTS
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
const colors = {
|
|
@@ -29,7 +29,7 @@ const colors = {
|
|
|
29
29
|
375: "#056CF2",
|
|
30
30
|
525: "#2D3748",
|
|
31
31
|
500: "#050022",
|
|
32
|
-
400: "#
|
|
32
|
+
400: "#2D3748",
|
|
33
33
|
800: "#87CEFA"
|
|
34
34
|
},
|
|
35
35
|
red: {
|
|
@@ -172,8 +172,8 @@ const lineHeight = {
|
|
|
172
172
|
"9xl": 128
|
|
173
173
|
};
|
|
174
174
|
|
|
175
|
-
/**
|
|
176
|
-
* EXPORTSS
|
|
175
|
+
/**
|
|
176
|
+
* EXPORTSS
|
|
177
177
|
*/
|
|
178
178
|
export const theme = {
|
|
179
179
|
borderWidths,
|
|
@@ -11,9 +11,9 @@ function getBorderColor(status) {
|
|
|
11
11
|
function getStatusColor(status) {
|
|
12
12
|
const statusColors = {
|
|
13
13
|
Concluido: theme.colors.green[250],
|
|
14
|
+
Andamento: theme.colors.green[500],
|
|
14
15
|
Cancelado: theme.colors.red[900],
|
|
15
|
-
Pendente: theme.colors.yellow[75]
|
|
16
|
-
Andamento: theme.colors.yellow[50]
|
|
16
|
+
Pendente: theme.colors.yellow[75]
|
|
17
17
|
};
|
|
18
18
|
return statusColors[status];
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["theme","getBorderColor","status","borderColors","Cancelado","colors","red","Pendente","orange","getStatusColor","statusColors","Concluido","green","
|
|
1
|
+
{"version":3,"names":["theme","getBorderColor","status","borderColors","Cancelado","colors","red","Pendente","orange","getStatusColor","statusColors","Concluido","green","Andamento","yellow","getStatusTextColor","neutral"],"sourceRoot":"..\\..\\..\\..\\src","sources":["utils/status-color/return-color.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,6BAA0B;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;IAClCC,SAAS,EAAEb,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,CAACS,MAAM,CAAC,EAAE;EAClC,CAAC;EAED,OAAOJ,YAAY,CAACR,MAAM,CAAC;AAC7B;AAEA,SAASa,kBAAkBA,CAACb,MAAkB,EAAU;EACtD,MAAMQ,YAAwC,GAAG;IAC/CC,SAAS,EAAEX,KAAK,CAACK,MAAM,CAACW,OAAO,CAAC,EAAE,CAAC;IACnCZ,SAAS,EAAEJ,KAAK,CAACK,MAAM,CAACW,OAAO,CAAC,EAAE,CAAC;IACnCT,QAAQ,EAAEP,KAAK,CAACK,MAAM,CAACW,OAAO,CAAC,EAAE,CAAC;IAClCH,SAAS,EAAEb,KAAK,CAACK,MAAM,CAACW,OAAO,CAAC,EAAE;EACpC,CAAC;EAED,OAAON,YAAY,CAACR,MAAM,CAAC;AAC7B;AAEA,SAASO,cAAc,EAAER,cAAc,EAAEc,kBAAkB","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/card-loading/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAU3C;;;GAGG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/card-loading/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAU3C;;;GAGG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAoQvC,CAAC;AAEF;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -2,13 +2,74 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
|
-
import { IHeaderProps } from "./interface";
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
6
|
+
* EXPORTS
|
|
8
7
|
*/
|
|
9
|
-
declare const Header: React.FC<IHeaderProps>;
|
|
10
8
|
/**
|
|
11
|
-
*
|
|
9
|
+
* Componente HeaderNavigation para a interação da ui.
|
|
12
10
|
*/
|
|
13
|
-
|
|
11
|
+
declare const _default: React.ComponentType<Omit<import("react-native").ViewProps & {
|
|
12
|
+
title: string;
|
|
13
|
+
propsNav?: any;
|
|
14
|
+
isProduction?: boolean | undefined;
|
|
15
|
+
arrow: boolean;
|
|
16
|
+
isInternetReachable: boolean;
|
|
17
|
+
bluetoothIsConnected?: boolean | undefined;
|
|
18
|
+
handleNavigation: () => void;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
height?: import("react-native").DimensionValue | undefined;
|
|
21
|
+
testID?: string | undefined;
|
|
22
|
+
borderStyled?: {
|
|
23
|
+
borderStyle?: "solid" | "dotted" | "dashed" | undefined;
|
|
24
|
+
borderRadius?: import("react-native").DimensionValue | undefined;
|
|
25
|
+
borderTopRightRadius?: import("react-native").DimensionValue | undefined;
|
|
26
|
+
borderTopLeftRadius?: import("react-native").DimensionValue | undefined;
|
|
27
|
+
borderBottomRightRadius?: import("react-native").DimensionValue | undefined;
|
|
28
|
+
borderBottomLeftRadius?: import("react-native").DimensionValue | undefined;
|
|
29
|
+
borderWidth?: import("react-native").DimensionValue | undefined;
|
|
30
|
+
borderLeftWidth?: import("react-native").DimensionValue | undefined;
|
|
31
|
+
borderRightWidth?: import("react-native").DimensionValue | undefined;
|
|
32
|
+
borderTopWidth?: import("react-native").DimensionValue | undefined;
|
|
33
|
+
borderBottomWidth?: import("react-native").DimensionValue | undefined;
|
|
34
|
+
borderColor?: string | undefined;
|
|
35
|
+
borderBottomColor?: string | undefined;
|
|
36
|
+
borderLeftColor?: string | undefined;
|
|
37
|
+
borderRightColor?: string | undefined;
|
|
38
|
+
borderTopColor?: string | undefined;
|
|
39
|
+
} | undefined;
|
|
40
|
+
flexStyle?: {
|
|
41
|
+
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | undefined;
|
|
42
|
+
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline" | undefined;
|
|
43
|
+
flex?: string | number | undefined;
|
|
44
|
+
flexDirection?: "column" | "column-reverse" | "row" | "row-reverse" | undefined;
|
|
45
|
+
flexWrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
46
|
+
textAlign?: "auto" | "center" | "left" | "right" | "justify" | undefined;
|
|
47
|
+
justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
marginStyle?: {
|
|
50
|
+
margin?: import("react-native").DimensionValue | undefined;
|
|
51
|
+
marginLeft?: import("react-native").DimensionValue | undefined;
|
|
52
|
+
marginRight?: import("react-native").DimensionValue | undefined;
|
|
53
|
+
marginTop?: import("react-native").DimensionValue | undefined;
|
|
54
|
+
marginBottom?: import("react-native").DimensionValue | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
paddingStyle?: {
|
|
57
|
+
padding?: import("react-native").DimensionValue | undefined;
|
|
58
|
+
paddingLeft?: import("react-native").DimensionValue | undefined;
|
|
59
|
+
paddingRight?: import("react-native").DimensionValue | undefined;
|
|
60
|
+
paddingTop?: import("react-native").DimensionValue | undefined;
|
|
61
|
+
paddingBottom?: import("react-native").DimensionValue | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
width?: import("react-native").DimensionValue | undefined;
|
|
64
|
+
backgroundColor?: string | undefined;
|
|
65
|
+
color?: {
|
|
66
|
+
colorSvg?: string | undefined;
|
|
67
|
+
colorText?: string | undefined;
|
|
68
|
+
colorTextBold?: string | undefined;
|
|
69
|
+
colorTextData?: string | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
} & React.RefAttributes<any>, "ref"> & {
|
|
72
|
+
ref?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
|
|
73
|
+
}>;
|
|
74
|
+
export default _default;
|
|
14
75
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/header-profile/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/header-profile/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAqB,MAAM,OAAO,CAAC;AA0I1C;;GAEG;AACH;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAA6D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/user-profile/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAK3C;;GAEG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/user-profile/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAK3C;;GAEG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAkLvC,CAAC;AAEF;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -9,7 +9,7 @@ export { Input } from "./components/input";
|
|
|
9
9
|
export { CapturePhoto } from "./components/capture-photo";
|
|
10
10
|
export { CardHours } from "./components/card-hours";
|
|
11
11
|
export { SelectOption } from "./components/selects/select-option";
|
|
12
|
-
export {
|
|
12
|
+
export { default as HeaderNavigation } from "./components/header-profile";
|
|
13
13
|
export { ScheduledJourneyIndicators } from "./components/scheduled-journey-indicators";
|
|
14
14
|
export { CardScheduledJourney } from "./components/card-scheduled-journey";
|
|
15
15
|
export { UserProfile } from "./components/user-profile";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,MA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gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGpF,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
-
import
|
|
2
|
+
import Header from "../../components/header-profile";
|
|
3
3
|
declare const meta: Meta<typeof Header>;
|
|
4
4
|
export default meta;
|
|
5
5
|
declare type Story = StoryObj<typeof meta>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header-profile.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/header-profile/header-profile.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"header-profile.stories.d.ts","sourceRoot":"","sources":["../../../../../src/stories/header-profile/header-profile.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,MAAM,MAAM,iCAAiC,CAAC;AAErD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAwB7B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,aAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,WAAW,EAAE,KAUzB,CAAC;AACF,eAAO,MAAM,WAAW,EAAE,KAUzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAUxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAU9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAW9B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { View } from "react-native";
|
|
6
|
-
|
|
7
|
-
// typings
|
|
8
|
-
import { IBoxProps } from "./interface";
|
|
9
|
-
|
|
10
|
-
// styles
|
|
11
|
-
import { styles } from "./styles";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Componente Box para envolver outros componentes de forma flexível.
|
|
15
|
-
*/
|
|
16
|
-
export const Box: React.FC<IBoxProps> = ({
|
|
17
|
-
ref,
|
|
18
|
-
children,
|
|
19
|
-
width,
|
|
20
|
-
height,
|
|
21
|
-
backgroundColor,
|
|
22
|
-
borderStyled,
|
|
23
|
-
flexStyle,
|
|
24
|
-
paddingStyle,
|
|
25
|
-
marginStyle,
|
|
26
|
-
opacity = 1,
|
|
27
|
-
testID = "box",
|
|
28
|
-
style,
|
|
29
|
-
}) => {
|
|
30
|
-
// Criando o objeto de estilos dinamicamente
|
|
31
|
-
const styleProps: Partial<IBoxProps> = {
|
|
32
|
-
ref,
|
|
33
|
-
width,
|
|
34
|
-
height,
|
|
35
|
-
backgroundColor,
|
|
36
|
-
borderStyled,
|
|
37
|
-
flexStyle,
|
|
38
|
-
paddingStyle,
|
|
39
|
-
marginStyle,
|
|
40
|
-
opacity,
|
|
41
|
-
style,
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<View ref={ref} testID={testID} style={[styles(styleProps).boxStyle, style]}>
|
|
46
|
-
{children}
|
|
47
|
-
</View>
|
|
48
|
-
);
|
|
49
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { View } from "react-native";
|
|
6
|
+
|
|
7
|
+
// typings
|
|
8
|
+
import { IBoxProps } from "./interface";
|
|
9
|
+
|
|
10
|
+
// styles
|
|
11
|
+
import { styles } from "./styles";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Componente Box para envolver outros componentes de forma flexível.
|
|
15
|
+
*/
|
|
16
|
+
export const Box: React.FC<IBoxProps> = ({
|
|
17
|
+
ref,
|
|
18
|
+
children,
|
|
19
|
+
width,
|
|
20
|
+
height,
|
|
21
|
+
backgroundColor,
|
|
22
|
+
borderStyled,
|
|
23
|
+
flexStyle,
|
|
24
|
+
paddingStyle,
|
|
25
|
+
marginStyle,
|
|
26
|
+
opacity = 1,
|
|
27
|
+
testID = "box",
|
|
28
|
+
style,
|
|
29
|
+
}) => {
|
|
30
|
+
// Criando o objeto de estilos dinamicamente
|
|
31
|
+
const styleProps: Partial<IBoxProps> = {
|
|
32
|
+
ref,
|
|
33
|
+
width,
|
|
34
|
+
height,
|
|
35
|
+
backgroundColor,
|
|
36
|
+
borderStyled,
|
|
37
|
+
flexStyle,
|
|
38
|
+
paddingStyle,
|
|
39
|
+
marginStyle,
|
|
40
|
+
opacity,
|
|
41
|
+
style,
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<View ref={ref} testID={testID} style={[styles(styleProps).boxStyle, style]}>
|
|
46
|
+
{children}
|
|
47
|
+
</View>
|
|
48
|
+
);
|
|
49
|
+
};
|