react-native-exp-fig 0.1.21 → 0.1.23
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/@types/as-base-component.js +12 -0
- package/lib/commonjs/@types/as-base-component.js.map +1 -0
- package/lib/commonjs/common/icons-svg/constants/index.js +2 -1
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/eclamation-triangle/index.js +33 -0
- package/lib/commonjs/common/icons-svg/eclamation-triangle/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/index.js +8 -0
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/truck/index.js +2 -2
- package/lib/commonjs/common/icons-svg/truck/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/index.js +9 -9
- package/lib/commonjs/components/activities-daily/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/index.js +14 -14
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/index.js +4 -4
- package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
- package/lib/commonjs/components/box/index.js +27 -22
- package/lib/commonjs/components/box/index.js.map +1 -1
- package/lib/commonjs/components/box/interface.d.js.map +1 -1
- package/lib/commonjs/components/box/styles.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +16 -16
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-hours/index.js +3 -3
- package/lib/commonjs/components/card-hours/index.js.map +1 -1
- package/lib/commonjs/components/card-loading/index.js +13 -13
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-scheduled-journey/index.js +6 -6
- package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +12 -12
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/check-box/index.js +5 -5
- package/lib/commonjs/components/check-box/index.js.map +1 -1
- package/lib/commonjs/components/coil/index.js +5 -5
- package/lib/commonjs/components/coil/index.js.map +1 -1
- package/lib/commonjs/components/filter-date-selector/index.js +2 -2
- package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
- package/lib/commonjs/components/header-profile/index.js +8 -8
- package/lib/commonjs/components/header-profile/index.js.map +1 -1
- package/lib/commonjs/components/history-activities-card/index.js +198 -0
- package/lib/commonjs/components/history-activities-card/index.js.map +1 -0
- package/lib/commonjs/components/history-activities-card/interface.js +6 -0
- package/lib/commonjs/components/history-activities-card/interface.js.map +1 -0
- package/lib/commonjs/components/history-details/index.js +5 -5
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/index.js +2 -2
- package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/commonjs/components/input/index.js +11 -11
- package/lib/commonjs/components/input/index.js.map +1 -1
- package/lib/commonjs/components/loading-details/index.js +10 -10
- package/lib/commonjs/components/loading-details/index.js.map +1 -1
- package/lib/commonjs/components/loading-progress/index.js +5 -5
- package/lib/commonjs/components/loading-progress/index.js.map +1 -1
- package/lib/commonjs/components/menu-item/index.js +3 -3
- package/lib/commonjs/components/menu-item/index.js.map +1 -1
- package/lib/commonjs/components/modal-activities/index.js +5 -5
- package/lib/commonjs/components/modal-activities/index.js.map +1 -1
- package/lib/commonjs/components/modal-change-activity/index.js +217 -0
- package/lib/commonjs/components/modal-change-activity/index.js.map +1 -0
- package/lib/commonjs/components/no-data/index.js +2 -2
- package/lib/commonjs/components/no-data/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/index.js +12 -12
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/index.js +3 -3
- package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
- package/lib/commonjs/components/scheduled-journey-indicators/index.js +4 -4
- package/lib/commonjs/components/scheduled-journey-indicators/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/index.js +28 -11
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +45 -7
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/user-profile/index.js +9 -9
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/helpers/text-utils.js +21 -0
- package/lib/commonjs/helpers/text-utils.js.map +1 -0
- package/lib/commonjs/index.js +17 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/box/box.stories.js +2 -2
- package/lib/commonjs/stories/box/box.stories.js.map +1 -1
- package/lib/commonjs/stories/history-activities-card/history-activities-card.stories.js +104 -0
- package/lib/commonjs/stories/history-activities-card/history-activities-card.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +52 -0
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -0
- package/lib/commonjs/utils/get-icon-by-property/index.js.map +1 -1
- package/lib/module/@types/as-base-component.js +6 -0
- package/lib/module/@types/as-base-component.js.map +1 -0
- package/lib/module/common/icons-svg/constants/index.js +2 -1
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/eclamation-triangle/index.js +25 -0
- package/lib/module/common/icons-svg/eclamation-triangle/index.js.map +1 -0
- package/lib/module/common/icons-svg/index.js +8 -0
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/truck/index.js +2 -2
- package/lib/module/common/icons-svg/truck/index.js.map +1 -1
- package/lib/module/components/activities-daily/index.js +5 -5
- package/lib/module/components/activities-daily/index.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +5 -5
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/avatar-profile/index.js +1 -1
- package/lib/module/components/avatar-profile/index.js.map +1 -1
- package/lib/module/components/box/index.js +24 -21
- package/lib/module/components/box/index.js.map +1 -1
- package/lib/module/components/box/interface.d.js.map +1 -1
- package/lib/module/components/box/styles.js.map +1 -1
- package/lib/module/components/card-history/index.js +8 -8
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-hours/index.js +1 -1
- package/lib/module/components/card-hours/index.js.map +1 -1
- package/lib/module/components/card-loading/index.js +1 -1
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-scheduled-journey/index.js +1 -1
- package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +1 -1
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/check-box/index.js +1 -1
- package/lib/module/components/check-box/index.js.map +1 -1
- package/lib/module/components/coil/index.js +1 -1
- package/lib/module/components/coil/index.js.map +1 -1
- package/lib/module/components/filter-date-selector/index.js +1 -1
- package/lib/module/components/filter-date-selector/index.js.map +1 -1
- package/lib/module/components/header-profile/index.js +1 -1
- package/lib/module/components/header-profile/index.js.map +1 -1
- package/lib/module/components/history-activities-card/index.js +190 -0
- package/lib/module/components/history-activities-card/index.js.map +1 -0
- package/lib/module/components/history-activities-card/interface.js +2 -0
- package/lib/module/components/history-activities-card/interface.js.map +1 -0
- package/lib/module/components/history-details/index.js +1 -1
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/index.js +1 -1
- package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/module/components/input/index.js +1 -1
- package/lib/module/components/input/index.js.map +1 -1
- package/lib/module/components/loading-details/index.js +5 -5
- package/lib/module/components/loading-details/index.js.map +1 -1
- package/lib/module/components/loading-progress/index.js +1 -1
- package/lib/module/components/loading-progress/index.js.map +1 -1
- package/lib/module/components/menu-item/index.js +1 -1
- package/lib/module/components/menu-item/index.js.map +1 -1
- package/lib/module/components/modal-activities/index.js +1 -1
- package/lib/module/components/modal-activities/index.js.map +1 -1
- package/lib/module/components/modal-change-activity/index.js +208 -0
- package/lib/module/components/modal-change-activity/index.js.map +1 -0
- package/lib/module/components/no-data/index.js +1 -1
- package/lib/module/components/no-data/index.js.map +1 -1
- package/lib/module/components/notification-loading/index.js +5 -5
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/profile-menu-option/index.js +1 -1
- package/lib/module/components/profile-menu-option/index.js.map +1 -1
- package/lib/module/components/scheduled-journey-indicators/index.js +1 -1
- package/lib/module/components/scheduled-journey-indicators/index.js.map +1 -1
- package/lib/module/components/selects/select-option/index.js +28 -11
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/selects/select-option/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +45 -7
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/user-profile/index.js +1 -1
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/helpers/text-utils.js +14 -0
- package/lib/module/helpers/text-utils.js.map +1 -0
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/box/box.stories.js +1 -1
- package/lib/module/stories/box/box.stories.js.map +1 -1
- package/lib/module/stories/history-activities-card/history-activities-card.stories.js +97 -0
- package/lib/module/stories/history-activities-card/history-activities-card.stories.js.map +1 -0
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +45 -0
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -0
- package/lib/module/utils/get-icon-by-property/index.js +0 -1
- package/lib/module/utils/get-icon-by-property/index.js.map +1 -1
- package/lib/typescript/src/@types/as-base-component.d.ts +2 -0
- package/lib/typescript/src/common/icons-svg/constants/index.d.ts +1 -0
- package/lib/typescript/src/common/icons-svg/eclamation-triangle/index.d.ts +4 -0
- package/lib/typescript/src/components/box/index.d.ts +4 -3
- package/lib/typescript/src/components/box/styles.d.ts +2 -2
- package/lib/typescript/src/components/history-activities-card/index.d.ts +76 -0
- package/lib/typescript/src/components/history-activities-card/interface.d.ts +120 -0
- package/lib/typescript/src/components/modal-change-activity/index.d.ts +24 -0
- package/lib/typescript/src/helpers/text-utils.d.ts +7 -0
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/stories/box/box.stories.d.ts +1 -1
- package/lib/typescript/src/stories/history-activities-card/history-activities-card.stories.d.ts +10 -0
- package/lib/typescript/src/stories/modal-change-activity/modal-change-activity.stories.d.ts +9 -0
- package/lib/typescript/src/utils/get-icon-by-property/index.d.ts +2 -1
- package/package.json +11 -8
- package/src/@types/as-base-component.ts +9 -0
- package/src/common/icons-svg/constants/index.ts +1 -0
- package/src/common/icons-svg/eclamation-triangle/index.tsx +46 -0
- package/src/common/icons-svg/index.tsx +5 -1
- package/src/common/icons-svg/truck/index.tsx +2 -2
- package/src/components/activities-daily/index.tsx +116 -116
- package/src/components/activities-progress/index.tsx +170 -170
- package/src/components/avatar-profile/index.tsx +1 -1
- package/src/components/box/index.tsx +28 -22
- package/src/components/box/interface.d.ts +2 -2
- package/src/components/box/styles.ts +2 -2
- package/src/components/card-history/index.tsx +221 -221
- package/src/components/card-hours/index.tsx +2 -1
- package/src/components/card-loading/index.tsx +1 -1
- package/src/components/card-scheduled-journey/index.tsx +1 -1
- package/src/components/card-work-session/index.tsx +1 -1
- package/src/components/check-box/index.tsx +1 -1
- package/src/components/coil/index.tsx +1 -1
- package/src/components/filter-date-selector/index.tsx +1 -1
- package/src/components/header-profile/index.tsx +1 -1
- package/src/components/history-activities-card/index.tsx +217 -0
- package/src/components/history-activities-card/interface.ts +147 -0
- package/src/components/history-details/index.tsx +1 -1
- package/src/components/image-capture-with-remove/index.tsx +1 -1
- package/src/components/input/index.tsx +1 -1
- package/src/components/loading-details/index.tsx +156 -156
- package/src/components/loading-progress/index.tsx +1 -1
- package/src/components/menu-item/index.tsx +1 -1
- package/src/components/modal-activities/index.tsx +1 -1
- package/src/components/modal-change-activity/index.tsx +200 -0
- package/src/components/no-data/index.tsx +1 -1
- package/src/components/notification-loading/index.tsx +157 -157
- package/src/components/profile-menu-option/index.tsx +1 -1
- package/src/components/scheduled-journey-indicators/index.tsx +1 -1
- package/src/components/selects/select-option/index.tsx +115 -100
- package/src/components/selects/select-option/interface.d.ts +18 -18
- package/src/components/step-indicator/index.tsx +63 -7
- package/src/components/user-profile/index.tsx +1 -1
- package/src/helpers/text-utils.ts +15 -0
- package/src/index.ts +3 -1
- package/src/stories/box/box.stories.tsx +1 -1
- package/src/stories/history-activities-card/history-activities-card.stories.tsx +107 -0
- package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +51 -0
- package/src/utils/get-icon-by-property/index.tsx +13 -1
|
@@ -11,23 +11,24 @@ var _iconsSvg = require("../../../common/icons-svg");
|
|
|
11
11
|
var _theme = require("../../../styles/theme/theme");
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
-
/**
|
|
15
|
-
* IMPORTS
|
|
14
|
+
/**
|
|
15
|
+
* IMPORTS
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
// typings
|
|
19
19
|
|
|
20
20
|
// styles
|
|
21
21
|
|
|
22
|
-
/**
|
|
23
|
-
* Componente SelectOption para a interação da ui.
|
|
22
|
+
/**
|
|
23
|
+
* Componente SelectOption para a interação da ui.
|
|
24
24
|
*/
|
|
25
25
|
const SelectOption = ({
|
|
26
26
|
dataOption,
|
|
27
27
|
handleSelectDown,
|
|
28
28
|
titleLabel,
|
|
29
29
|
sizeTitleLabel,
|
|
30
|
-
colortitleLabel
|
|
30
|
+
colortitleLabel,
|
|
31
|
+
backgroundColor
|
|
31
32
|
}) => {
|
|
32
33
|
var _dataOption$, _dataOption$find;
|
|
33
34
|
const [selectedValue, setSelectedValue] = (0, _react.useState)(((_dataOption$ = dataOption[0]) === null || _dataOption$ === void 0 ? void 0 : _dataOption$.value) || "");
|
|
@@ -42,7 +43,8 @@ const SelectOption = ({
|
|
|
42
43
|
handleSelectDown,
|
|
43
44
|
titleLabel,
|
|
44
45
|
sizeTitleLabel,
|
|
45
|
-
colortitleLabel
|
|
46
|
+
colortitleLabel,
|
|
47
|
+
backgroundColor
|
|
46
48
|
};
|
|
47
49
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
48
50
|
style: (0, _styles.styles)(styleProps).container
|
|
@@ -50,7 +52,9 @@ const SelectOption = ({
|
|
|
50
52
|
style: (0, _styles.styles)(styleProps).label
|
|
51
53
|
}, `${titleLabel !== null && titleLabel !== void 0 ? titleLabel : "Selecione uma opção"}`, ":"), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
52
54
|
testID: "select-box",
|
|
53
|
-
style: (0, _styles.styles)(styleProps).selectBox,
|
|
55
|
+
style: [(0, _styles.styles)(styleProps).selectBox, backgroundColor && {
|
|
56
|
+
backgroundColor
|
|
57
|
+
}],
|
|
54
58
|
onPress: () => setModalVisible(true)
|
|
55
59
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
56
60
|
style: (0, _styles.styles)(styleProps).selectedText
|
|
@@ -66,7 +70,13 @@ const SelectOption = ({
|
|
|
66
70
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
67
71
|
style: (0, _styles.styles)(styleProps).modalOverlay
|
|
68
72
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
69
|
-
style:
|
|
73
|
+
style: {
|
|
74
|
+
width: "90%",
|
|
75
|
+
backgroundColor: "#fff",
|
|
76
|
+
borderRadius: 8,
|
|
77
|
+
padding: 16,
|
|
78
|
+
maxHeight: "80%"
|
|
79
|
+
}
|
|
70
80
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
71
81
|
style: {
|
|
72
82
|
width: "100%",
|
|
@@ -85,7 +95,14 @@ const SelectOption = ({
|
|
|
85
95
|
renderItem: ({
|
|
86
96
|
item
|
|
87
97
|
}) => /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
88
|
-
style:
|
|
98
|
+
style: {
|
|
99
|
+
width: "100%",
|
|
100
|
+
paddingVertical: 12,
|
|
101
|
+
paddingHorizontal: 8,
|
|
102
|
+
alignItems: "flex-start",
|
|
103
|
+
borderBottomWidth: 1,
|
|
104
|
+
borderColor: "#eee"
|
|
105
|
+
},
|
|
89
106
|
onPress: () => handleSelect(item.value)
|
|
90
107
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
91
108
|
style: (0, _styles.styles)(styleProps).optionText
|
|
@@ -93,8 +110,8 @@ const SelectOption = ({
|
|
|
93
110
|
})))));
|
|
94
111
|
};
|
|
95
112
|
|
|
96
|
-
/**
|
|
97
|
-
* EXPORTS
|
|
113
|
+
/**
|
|
114
|
+
* EXPORTS
|
|
98
115
|
*/
|
|
99
116
|
exports.SelectOption = SelectOption;
|
|
100
117
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_styles","_iconsSvg","_theme","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SelectOption","dataOption","handleSelectDown","titleLabel","sizeTitleLabel","colortitleLabel","_dataOption$","_dataOption$find","selectedValue","setSelectedValue","useState","value","modalVisible","setModalVisible","handleSelect","styleProps","createElement","View","style","styles","container","Text","label","TouchableOpacity","testID","selectBox","onPress","selectedText","find","item","Icons","size","theme","fontSizes","color","colors","blue","icon","Modal","visible","transparent","animationType","modalOverlay","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_styles","_iconsSvg","_theme","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SelectOption","dataOption","handleSelectDown","titleLabel","sizeTitleLabel","colortitleLabel","backgroundColor","_dataOption$","_dataOption$find","selectedValue","setSelectedValue","useState","value","modalVisible","setModalVisible","handleSelect","styleProps","createElement","View","style","styles","container","Text","label","TouchableOpacity","testID","selectBox","onPress","selectedText","find","item","Icons","size","theme","fontSizes","color","colors","blue","icon","Modal","visible","transparent","animationType","modalOverlay","width","borderRadius","padding","maxHeight","alignItems","FlatList","data","keyExtractor","renderItem","paddingVertical","paddingHorizontal","borderBottomWidth","borderColor","optionText","exports"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { useState } from \"react\";\r\nimport { View, Text, TouchableOpacity, Modal, FlatList } from \"react-native\";\r\n\r\n// typings\r\nimport { ISelectDropDownProps } from \"./interface\";\r\n\r\n// styles\r\nimport { styles } from \"./styles\";\r\nimport { Icons } from \"../../../common/icons-svg\";\r\nimport { theme } from \"../../../styles/theme/theme\";\r\n\r\n/**\r\n * Componente SelectOption para a interação da ui.\r\n */\r\nconst SelectOption: React.FC<ISelectDropDownProps> = ({\r\n dataOption,\r\n handleSelectDown,\r\n titleLabel,\r\n sizeTitleLabel,\r\n colortitleLabel,\r\n backgroundColor,\r\n}: ISelectDropDownProps) => {\r\n const [selectedValue, setSelectedValue] = useState(dataOption[0]?.value || \"\");\r\n const [modalVisible, setModalVisible] = useState(false);\r\n\r\n const handleSelect = (value: string) => {\r\n setSelectedValue(value);\r\n setModalVisible(false);\r\n handleSelectDown(value);\r\n };\r\n\r\n const styleProps = {\r\n dataOption,\r\n handleSelectDown,\r\n titleLabel,\r\n sizeTitleLabel,\r\n colortitleLabel,\r\n backgroundColor,\r\n } as ISelectDropDownProps;\r\n\r\n return (\r\n <View style={styles(styleProps).container}>\r\n {/* Titulo para exibir o label */}\r\n <Text style={styles(styleProps).label}>{`${titleLabel ?? \"Selecione uma opção\"}`}:</Text>\r\n\r\n {/* Botão para abrir o modal */}\r\n <TouchableOpacity\r\n testID=\"select-box\"\r\n style={[styles(styleProps).selectBox, backgroundColor && { backgroundColor },]}\r\n onPress={() => setModalVisible(true)}\r\n >\r\n <Text style={styles(styleProps).selectedText}>\r\n {dataOption.find((item) => item.value === selectedValue)?.label}\r\n </Text>\r\n\r\n <Icons\r\n size={theme.fontSizes[\"md\"]}\r\n color={theme.colors.blue[500]}\r\n icon={\"ARROW_DROP_DOWN\"}\r\n />\r\n </TouchableOpacity>\r\n\r\n {/* Modal para exibir as opções */}\r\n <Modal testID=\"modal-container\" visible={modalVisible} transparent animationType=\"fade\">\r\n <View style={styles(styleProps).modalOverlay}>\r\n <View style={{\r\n width: \"90%\",\r\n backgroundColor: \"#fff\",\r\n borderRadius: 8,\r\n padding: 16,\r\n maxHeight: \"80%\",\r\n }}>\r\n <View style={{ width: \"100%\", alignItems: \"flex-end\" }}>\r\n <TouchableOpacity testID=\"close-icon\" onPress={() => setModalVisible(false)}>\r\n <Icons\r\n size={theme.fontSizes[\"md\"]}\r\n color={theme.colors.blue[500]}\r\n icon={\"CLOSED\"}\r\n />\r\n </TouchableOpacity>\r\n </View>\r\n <FlatList\r\n data={dataOption || []}\r\n keyExtractor={(item) => item.value}\r\n renderItem={({ item }) => (\r\n <TouchableOpacity\r\n style={{\r\n width: \"100%\",\r\n paddingVertical: 12,\r\n paddingHorizontal: 8,\r\n alignItems: \"flex-start\",\r\n borderBottomWidth: 1,\r\n borderColor: \"#eee\",\r\n }}\r\n onPress={() => handleSelect(item.value)}\r\n >\r\n <Text style={styles(styleProps).optionText}>{item.label}</Text>\r\n </Touch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A8C,IAAI;MAACH,KAAK,EAAE,IAAAC,cAAM,EAACJ,UAAU,CAAC,CAACyC;IAAW,GAAE3B,IAAI,CAACP,KAAY,CAC9C;EAClB,CACH,CACG,CACF,CACD,CACH,CAAC;AAEX,CAAC;;AAED;AACA;AACA;AAFAmC,OAAA,CAAA1D,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\ntype ISelectDropDownProps = {\n dataOption: any[];\n titleLabel: string;\n sizeTitleLabel?: number;\n colortitleLabel?: string;\n\n /**retorna o valor selecionado */\n // eslint-disable-next-line no-unused-vars\n handleSelectDown: (value: string) => void;\n};\n\n/**\n * EXPORTS\n */\nexport { ISelectDropDownProps };\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\ntype ISelectDropDownProps = {\r\n dataOption: any[];\r\n titleLabel: string;\r\n sizeTitleLabel?: number;\r\n colortitleLabel?: string;\r\n backgroundColor?: string;\r\n /**retorna o valor selecionado */\r\n // eslint-disable-next-line no-unused-vars\r\n handleSelectDown: (value: string) => void;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { ISelectDropDownProps };\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -11,6 +11,7 @@ var _styles = require("./styles");
|
|
|
11
11
|
var _iconsSvg = require("../../common/icons-svg");
|
|
12
12
|
var _formatData = require("../../utils/format-data");
|
|
13
13
|
var _theme = require("../../styles/theme/theme");
|
|
14
|
+
var _modalChangeActivity = require("../modal-change-activity");
|
|
14
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
16
|
/**
|
|
16
17
|
* IMPORTS
|
|
@@ -32,15 +33,45 @@ const StepIndicator = ({
|
|
|
32
33
|
titleNumberColor
|
|
33
34
|
}) => {
|
|
34
35
|
const StepDefault = () => {
|
|
35
|
-
|
|
36
|
+
var _stepData;
|
|
37
|
+
const [isModalVisible, setIsModalVisible] = _react.default.useState(false);
|
|
38
|
+
const [currentStepIndex, setCurrentStepIndex] = _react.default.useState(null);
|
|
39
|
+
const [stepData, setStepData] = _react.default.useState(data);
|
|
40
|
+
const handleOpenModal = index => {
|
|
41
|
+
var _stepItem$descricao, _stepItem$descricao$t;
|
|
42
|
+
const stepItem = stepData[index];
|
|
43
|
+
const desc = stepItem === null || stepItem === void 0 || (_stepItem$descricao = stepItem.descricao) === null || _stepItem$descricao === void 0 || (_stepItem$descricao$t = _stepItem$descricao.toLowerCase) === null || _stepItem$descricao$t === void 0 ? void 0 : _stepItem$descricao$t.call(_stepItem$descricao);
|
|
44
|
+
if (!desc) return;
|
|
45
|
+
const isDescanso = ["descanso", "refeição", "repouso_noturno", "repouso_semanal"].includes(desc.replace(/\s+/g, "_"));
|
|
46
|
+
|
|
47
|
+
// Só abre o modal se for do tipo descanso E se estiver sincronizado
|
|
48
|
+
if (isDescanso && (stepItem === null || stepItem === void 0 ? void 0 : stepItem.sincronizado) === true) {
|
|
49
|
+
setCurrentStepIndex(index);
|
|
50
|
+
setIsModalVisible(true);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const handleConfirmModal = newData => {
|
|
54
|
+
if (currentStepIndex !== null) {
|
|
55
|
+
const newSteps = stepData.map((item, index) => index === currentStepIndex ? {
|
|
56
|
+
...item,
|
|
57
|
+
descricao: newData.label,
|
|
58
|
+
tipo_atividade: newData.value,
|
|
59
|
+
identificador: newData.key
|
|
60
|
+
} : item);
|
|
61
|
+
setStepData(newSteps);
|
|
62
|
+
}
|
|
63
|
+
setIsModalVisible(false);
|
|
64
|
+
setCurrentStepIndex(null);
|
|
65
|
+
};
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, stepData.length > 0 && stepData.map((history, index) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
36
67
|
testID: "step-indicator",
|
|
37
68
|
style: (0, _styles.styles)({}).containerIndicator,
|
|
38
|
-
key: history.id
|
|
69
|
+
key: `${history.id}-${index}`
|
|
39
70
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
40
71
|
style: (0, _styles.styles)({
|
|
41
72
|
sincronizado: history.sincronizado
|
|
42
73
|
}).containerBall
|
|
43
|
-
},
|
|
74
|
+
}, stepData.length > 1 && index < stepData.length - 1 && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
44
75
|
style: {
|
|
45
76
|
width: 2,
|
|
46
77
|
height: 84,
|
|
@@ -52,8 +83,9 @@ const StepIndicator = ({
|
|
|
52
83
|
style: (0, _styles.styles)({
|
|
53
84
|
titleNumberColor
|
|
54
85
|
}).titleNumber
|
|
55
|
-
},
|
|
56
|
-
style: (0, _styles.styles)({}).containerMain
|
|
86
|
+
}, stepData.length - index)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
87
|
+
style: (0, _styles.styles)({}).containerMain,
|
|
88
|
+
onTouchEnd: () => handleOpenModal(index)
|
|
57
89
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
58
90
|
style: (0, _styles.styles)({
|
|
59
91
|
titleColor
|
|
@@ -62,11 +94,17 @@ const StepIndicator = ({
|
|
|
62
94
|
style: (0, _styles.styles)({
|
|
63
95
|
textColorDescription
|
|
64
96
|
}).titleDescription
|
|
65
|
-
}, `Inicio: ${history.data_inicio}
|
|
97
|
+
}, `Inicio: ${history.data_inicio} às ${history.data_fim}`), history.duracao_segundos && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
66
98
|
style: (0, _styles.styles)({
|
|
67
99
|
textColorDescription
|
|
68
100
|
}).titleDescription
|
|
69
|
-
}, "Dura\xE7\xE3o: ", (0, _formatData.formHoursMinute)(history === null || history === void 0 ? void 0 : history.duracao_segundos)))))
|
|
101
|
+
}, "Dura\xE7\xE3o: ", (0, _formatData.formHoursMinute)(history === null || history === void 0 ? void 0 : history.duracao_segundos))))), isModalVisible && currentStepIndex !== null && /*#__PURE__*/_react.default.createElement(_modalChangeActivity.ModalChangeActivity, {
|
|
102
|
+
visible: isModalVisible,
|
|
103
|
+
onClose: () => setIsModalVisible(false),
|
|
104
|
+
modalConfirm: handleConfirmModal,
|
|
105
|
+
dataRegistro: "",
|
|
106
|
+
descricao: ((_stepData = stepData[currentStepIndex]) === null || _stepData === void 0 ? void 0 : _stepData.descricao) || ""
|
|
107
|
+
}));
|
|
70
108
|
};
|
|
71
109
|
const StepCustom = () => {
|
|
72
110
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_getIconByStatus","_styles","_iconsSvg","_formatData","_theme","e","__esModule","default","StepIndicator","data","type","textColorDescription","titleColor","titleNumberColor","StepDefault","createElement","Fragment","length","map","history","index","View","testID","style","styles","containerIndicator","key","id","sincronizado","containerBall","width","height","marginTop","position","backgroundColor","theme","colors","blue","orange","Text","titleNumber","containerMain","title","descricao","data_inicio","titleDescription","data_fim","duracao_segundos","formHoursMinute","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","getIconKeyByValue","borderRadius","alignItems","justifyContent","borderWidth","borderColor","Icons","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType","exports"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { View, Text } from \"react-native\";\r\n\r\nimport { getIconKeyByValue } from \"./helpers/get-icon-by-status\";\r\n\r\n// typings\r\nimport { IStepIndicator } from \"./interface\";\r\n\r\n// styles\r\nimport { styles } from \"./styles\";\r\nimport { Icons } from \"../../common/icons-svg\";\r\nimport { formHoursMinute } from \"../../utils/format-data\";\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\n/**\r\n * Componente StepIndicator para a interação da ui.\r\n */\r\n\r\nconst StepIndicator: React.FC<IStepIndicator> = ({\r\n data = [],\r\n type,\r\n textColorDescription,\r\n titleColor,\r\n titleNumberColor,\r\n}) => {\r\n const StepDefault = () => {\r\n return (\r\n <>\r\n {data!.length > 0 &&\r\n data!.map((history, index) => (\r\n <View testID=\"step-indicator\" style={styles({}).containerIndicator} key={history.id}>\r\n <View style={styles({ sincronizado: history.sincronizado }).containerBall}>\r\n {data!?.length > 1 && index < data!?.length - 1 && (\r\n <View\r\n style={{\r\n width: 2,\r\n height: 84,\r\n marginTop: 116,\r\n position: \"relative\",\r\n backgroundColor: history.sincronizado\r\n ? theme.colors.blue[500]\r\n : theme.colors.orange[150],\r\n }}\r\n />\r\n )}\r\n <Text style={styles({ titleNumberColor }).titleNumber}>\r\n {data!?.length - index}\r\n </Text>\r\n </View>\r\n\r\n <View style={styles({}).containerMain}>\r\n <Text style={styles({ titleColor }).title}>{history?.descricao}</Text>\r\n\r\n {history?.data_inicio && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n {`Inicio: ${history.data_inicio} ás ${history.data_fim}`}\r\n </Text>\r\n )}\r\n\r\n {history.duracao_segundos && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n Duração: {formHoursMinute(history?.duracao_segundos as string)}\r\n </Text>\r\n )}\r\n </View>\r\n </View>\r\n ))}\r\n </>\r\n );\r\n };\r\n\r\n const StepCustom = () => {\r\n return (\r\n <View\r\n style={{\r\n width: \"100%\",\r\n height: 84,\r\n paddingHorizontal: 24,\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n }}\r\n >\r\n {data.map((step, indexCustom) => {\r\n const descricao = getIconKeyByValue(step.descricao);\r\n\r\n return (\r\n <React.Fragment key={`step-${indexCustom}`}>\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: indexCustom <= 3 ? \"orange\" : \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n borderWidth: 1,\r\n borderColor: \"#fff\",\r\n }}\r\n >\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {descricao && <Icons icon={descricao} />}\r\n </View>\r\n <Text\r\n style={{\r\n position: \"absolute\",\r\n top: 56,\r\n fontWeight: \"600\",\r\n fontSize: 10,\r\n lineHeight: 14,\r\n textAlign: \"center\",\r\n color: \"#fff\",\r\n width: 75,\r\n }}\r\n >\r\n {step.descricao}\r\n </Text>\r\n </View>\r\n\r\n {data?.length > 1 && indexCustom < data?.length - 1 && (\r\n <View\r\n style={{\r\n width: 35,\r\n height: 2,\r\n marginTop: 24,\r\n position: \"relative\",\r\n backgroundColor: \"orange\",\r\n }}\r\n />\r\n )}\r\n </React.Fragment>\r\n );\r\n })}\r\n </View>\r\n );\r\n };\r\n\r\n const handleRenderComponent = (stepType: \"default\" | \"custom\") => {\r\n switch (stepType) {\r\n case \"default\":\r\n return <StepDefault />;\r\n case \"custom\":\r\n return <StepCustom />;\r\n default:\r\n return <View />;\r\n }\r\n };\r\n\r\n return <>{handleRenderComponent(type!)}</>;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { StepIndicator };\r\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AAMA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AAAiD,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAfjD;AACA;AACA;;AAMA;;AAGA;;AAMA;AACA;AACA;;AAEA,MAAMG,aAAuC,GAAGA,CAAC;EA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aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_getIconByStatus","_styles","_iconsSvg","_formatData","_theme","_modalChangeActivity","e","__esModule","default","StepIndicator","data","type","textColorDescription","titleColor","titleNumberColor","StepDefault","_stepData","isModalVisible","setIsModalVisible","React","useState","currentStepIndex","setCurrentStepIndex","stepData","setStepData","handleOpenModal","index","_stepItem$descricao","_stepItem$descricao$t","stepItem","desc","descricao","toLowerCase","call","isDescanso","includes","replace","sincronizado","handleConfirmModal","newData","newSteps","map","item","label","tipo_atividade","value","identificador","key","createElement","Fragment","length","history","View","testID","style","styles","containerIndicator","id","containerBall","width","height","marginTop","position","backgroundColor","theme","colors","blue","orange","Text","titleNumber","containerMain","onTouchEnd","title","data_inicio","titleDescription","data_fim","duracao_segundos","formHoursMinute","ModalChangeActivity","visible","onClose","modalConfirm","dataRegistro","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","getIconKeyByValue","borderRadius","alignItems","justifyContent","borderWidth","borderColor","Icons","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType","exports"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { View, Text } from \"react-native\";\r\n\r\nimport { getIconKeyByValue } from \"./helpers/get-icon-by-status\";\r\n\r\n// typings\r\nimport { IStepIndicator } from \"./interface\";\r\n\r\n// styles\r\nimport { styles } from \"./styles\";\r\nimport { Icons } from \"../../common/icons-svg\";\r\nimport { formHoursMinute } from \"../../utils/format-data\";\r\nimport { theme } from \"../../styles/theme/theme\";\r\nimport { ModalChangeActivity } from \"../modal-change-activity\";\r\n\r\n/**\r\n * Componente StepIndicator para a interação da ui.\r\n */\r\n\r\nconst StepIndicator: React.FC<IStepIndicator> = ({\r\n data = [],\r\n type,\r\n textColorDescription,\r\n titleColor,\r\n titleNumberColor,\r\n}) => {\r\n const StepDefault = () => {\r\n const [isModalVisible, setIsModalVisible] = React.useState(false);\r\n const [currentStepIndex, setCurrentStepIndex] = React.useState<number | null>(null);\r\n const [stepData, setStepData] = React.useState(data);\r\n\r\n const handleOpenModal = (index: number) => {\r\n const stepItem = stepData[index];\r\n const desc = stepItem?.descricao?.toLowerCase?.();\r\n if (!desc) return;\r\n \r\n const isDescanso = [\r\n \"descanso\",\r\n \"refeição\",\r\n \"repouso_noturno\",\r\n \"repouso_semanal\",\r\n ].includes(desc.replace(/\\s+/g, \"_\"));\r\n\r\n // Só abre o modal se for do tipo descanso E se estiver sincronizado\r\n if (isDescanso && stepItem?.sincronizado === true) {\r\n setCurrentStepIndex(index);\r\n setIsModalVisible(true);\r\n }\r\n };\r\n\r\n const handleConfirmModal = (newData: { label: string; value: string; key: number }) => {\r\n if (currentStepIndex !== null) {\r\n const newSteps = stepData.map((item, index) =>\r\n index === currentStepIndex\r\n ? { ...item, descricao: newData.label, tipo_atividade: newData.value, identificador: newData.key }\r\n : item\r\n );\r\n setStepData(newSteps);\r\n }\r\n\r\n setIsModalVisible(false);\r\n setCurrentStepIndex(null);\r\n };\r\n\r\n return (\r\n <>\r\n {stepData.length > 0 &&\r\n stepData.map((history, index) => (\r\n <View\r\n testID=\"step-indicator\"\r\n style={styles({}).containerIndicator}\r\n key={`${history.id}-${index}`}\r\n >\r\n <View style={styles({ sincronizado: history.sincronizado }).containerBall}>\r\n {stepData.length > 1 && index < stepData.length - 1 && (\r\n <View\r\n style={{\r\n width: 2,\r\n height: 84,\r\n marginTop: 116,\r\n position: \"relative\",\r\n backgroundColor: history.sincronizado\r\n ? theme.colors.blue[500]\r\n : theme.colors.orange[150],\r\n }}\r\n />\r\n )}\r\n <Text style={styles({ titleNumberColor }).titleNumber}>\r\n {stepData.length - index}\r\n </Text>\r\n </View>\r\n\r\n <View\r\n style={styles({}).containerMain}\r\n onTouchEnd={() => handleOpenModal(index)}\r\n >\r\n <Text style={styles({ titleColor }).title}>{history?.descricao}</Text>\r\n\r\n {history?.data_inicio && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n {`Inicio: ${history.data_inicio} às ${history.data_fim}`}\r\n </Text>\r\n )}\r\n\r\n {history.duracao_segundos && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n Duração: {formHoursMinute(history?.duracao_segundos as string)}\r\n </Text>\r\n )}\r\n </View>\r\n </View>\r\n ))}\r\n\r\n {isModalVisible && currentStepIndex !== null && (\r\n <ModalChangeActivity\r\n visible={isModalVisible}\r\n onClose={() => setIsModalVisible(false)}\r\n modalConfirm={handleConfirmModal}\r\n dataRegistro={\"\"}\r\n descricao={stepData[currentStepIndex!]?.descricao || \"\"}\r\n />\r\n )}\r\n </>\r\n );\r\n };\r\n\r\n\r\n const StepCustom = () => {\r\n return (\r\n <View\r\n style={{\r\n width: \"100%\",\r\n height: 84,\r\n paddingHorizontal: 24,\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n }}\r\n >\r\n {data.map((step, indexCustom) => {\r\n const descricao = getIconKeyByValue(step.descricao);\r\n\r\n return (\r\n <React.Fragment key={`step-${indexCustom}`}>\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: indexCustom <= 3 ? \"orange\" : \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n borderWidth: 1,\r\n borderColor: \"#fff\",\r\n }}\r\n >\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {descricao && <Icons icon={descricao} />}\r\n </View>\r\n <Text\r\n style={{\r\n position: \"absolute\",\r\n top: 56,\r\n fontWeight: \"600\",\r\n fontSize: 10,\r\n lineHeight: 14,\r\n textAlign: \"center\",\r\n color: \"#fff\",\r\n width: 75,\r\n }}\r\n >\r\n {step.descricao}\r\n </Text>\r\n </View>\r\n\r\n {data?.length > 1 && indexCustom < data?.length - 1 && (\r\n <View\r\n style={{\r\n width: 35,\r\n height: 2,\r\n marginTop: 24,\r\n position: \"relative\",\r\n backgroundColor: \"orange\",\r\n }}\r\n />\r\n )}\r\n </React.Fragment>\r\n );\r\n })}\r\n </View>\r\n );\r\n };\r\n\r\n const handleRenderComponent = (stepType: \"default\" | \"custom\") => {\r\n switch (stepType) {\r\n case \"default\":\r\n return <StepDefault />;\r\n case \"custom\":\r\n return <StepCustom />;\r\n default:\r\n return <View />;\r\n }\r\n };\r\n\r\n return <>{handleRenderComponent(type!)}</>;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { StepIndicator };\r\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AAMA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,oBAAA,GAAAP,OAAA;AAA+D,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAhB/D;AACA;AACA;;AAMA;;AAGA;;AAOA;AACA;AACA;;AAEA,MAAMG,aAAuC,GAAGA,CAAC;EAC/CC,IAAI,GAAG,EAAE;EACTC,IAAI;EACJC,oBAAoB;EACpBC,UAAU;EACVC;AACF,CAAC,KAAK;EACJ,MAAMC,WAAW,GAAGA,CAAA,KAAM;IAAA,IAAAC,SAAA;IACxB,MAAM,CAACC,cAAc,EAAEC,iBAAiB,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAC,KAAK,CAAC;IACjE,MAAM,CAACC,gBAAgB,EAAEC,mBAAmB,CAAC,GAAGH,cAAK,CAACC,QAAQ,CAAgB,IAAI,CAAC;IACnF,MAAM,CAACG,QAAQ,EAAE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wC,aAAA,CAACmC,UAAU,MAAE,CAAC;MACvB;QACE,oBAAOvF,MAAA,CAAAY,OAAA,CAAAwC,aAAA,CAACjD,YAAA,CAAAqD,IAAI,MAAE,CAAC;IACnB;EACF,CAAC;EAED,oBAAOxD,MAAA,CAAAY,OAAA,CAAAwC,aAAA,CAAApD,MAAA,CAAAY,OAAA,CAAAyC,QAAA,QAAGsD,qBAAqB,CAAC5F,IAAK,CAAI,CAAC;AAC5C,CAAC;;AAED;AACA;AACA;AAFA8F,OAAA,CAAAhG,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.UserProfile = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _box = require("../box");
|
|
9
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
10
10
|
var _typography = require("../typography");
|
|
11
11
|
var _constants = require("../../common/constants");
|
|
12
12
|
var _theme = require("../../styles/theme/theme");
|
|
@@ -40,7 +40,7 @@ const UserProfile = ({
|
|
|
40
40
|
testID
|
|
41
41
|
}) => {
|
|
42
42
|
var _color$colorText, _theme$fontSizes$lg, _color$colorText2, _theme$fontSizes$lg2, _color$colorText3, _theme$fontSizes$lg3, _color$colorText4, _theme$fontSizes$lg4, _color$colorText5, _theme$fontSizes$lg5, _theme$fontSizes$lg6, _color$colorText6, _theme$fontSizes$lg7, _color$colorText7, _theme$fontSizes$lg8;
|
|
43
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
43
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
44
44
|
testID: testID,
|
|
45
45
|
width: width !== null && width !== void 0 ? width : "100%",
|
|
46
46
|
height: height,
|
|
@@ -50,7 +50,7 @@ const UserProfile = ({
|
|
|
50
50
|
paddingRight: _theme.theme.paddings.md,
|
|
51
51
|
paddingBottom: _theme.theme.paddings["2xs"]
|
|
52
52
|
}
|
|
53
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
54
54
|
width: "100%",
|
|
55
55
|
flexStyle: {
|
|
56
56
|
flexDirection: "row",
|
|
@@ -75,14 +75,14 @@ const UserProfile = ({
|
|
|
75
75
|
borderWidth: _theme.theme.borderWidths.thin_medium,
|
|
76
76
|
borderColor: _theme.theme.colors.green[400]
|
|
77
77
|
}
|
|
78
|
-
}))), /*#__PURE__*/_react.default.createElement(_box.
|
|
78
|
+
}))), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
79
79
|
width: "100%",
|
|
80
80
|
flexStyle: {
|
|
81
81
|
flexDirection: "column",
|
|
82
82
|
alignItems: "center",
|
|
83
83
|
justifyContent: "center"
|
|
84
84
|
}
|
|
85
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
85
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
86
86
|
width: "100%",
|
|
87
87
|
flexStyle: {
|
|
88
88
|
flexDirection: "row",
|
|
@@ -101,7 +101,7 @@ const UserProfile = ({
|
|
|
101
101
|
fontWeight: "400",
|
|
102
102
|
lineHeight: (_theme$fontSizes$lg = _theme.theme.fontSizes.lg) !== null && _theme$fontSizes$lg !== void 0 ? _theme$fontSizes$lg : 18,
|
|
103
103
|
letterSpacing: "regular"
|
|
104
|
-
}), /*#__PURE__*/_react.default.createElement(_box.
|
|
104
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
105
105
|
width: "89%"
|
|
106
106
|
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
107
107
|
text: nome,
|
|
@@ -113,7 +113,7 @@ const UserProfile = ({
|
|
|
113
113
|
numberOfLines: 1,
|
|
114
114
|
lineHeight: (_theme$fontSizes$lg2 = _theme.theme.fontSizes.lg) !== null && _theme$fontSizes$lg2 !== void 0 ? _theme$fontSizes$lg2 : 18,
|
|
115
115
|
letterSpacing: "regular"
|
|
116
|
-
}))), /*#__PURE__*/_react.default.createElement(_box.
|
|
116
|
+
}))), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
117
117
|
width: "100%",
|
|
118
118
|
flexStyle: {
|
|
119
119
|
flexDirection: "row",
|
|
@@ -139,7 +139,7 @@ const UserProfile = ({
|
|
|
139
139
|
fontWeight: "600",
|
|
140
140
|
lineHeight: (_theme$fontSizes$lg4 = _theme.theme.fontSizes.lg) !== null && _theme$fontSizes$lg4 !== void 0 ? _theme$fontSizes$lg4 : 18,
|
|
141
141
|
letterSpacing: "regular"
|
|
142
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
142
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
143
143
|
width: "100%",
|
|
144
144
|
flexStyle: {
|
|
145
145
|
flexDirection: "row",
|
|
@@ -166,7 +166,7 @@ const UserProfile = ({
|
|
|
166
166
|
fontWeight: "700",
|
|
167
167
|
lineHeight: (_theme$fontSizes$lg6 = _theme.theme.fontSizes.lg) !== null && _theme$fontSizes$lg6 !== void 0 ? _theme$fontSizes$lg6 : 18,
|
|
168
168
|
letterSpacing: "regular"
|
|
169
|
-
}))), /*#__PURE__*/_react.default.createElement(_box.
|
|
169
|
+
}))), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
170
170
|
width: "100%",
|
|
171
171
|
flexStyle: {
|
|
172
172
|
flexDirection: "row",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_constants","_theme","e","__esModule","default","UserProfile","nome","avatar","cpf","placa_cavalo","bluetoothIsConnected","app_version","color","width","height","handleProfileView","testID","_color$colorText","_theme$fontSizes$lg","_color$colorText2","_theme$fontSizes$lg2","_color$colorText3","_theme$fontSizes$lg3","_color$colorText4","_theme$fontSizes$lg4","_color$colorText5","_theme$fontSizes$lg5","_theme$fontSizes$lg6","_color$colorText6","_theme$fontSizes$lg7","_color$colorText7","_theme$fontSizes$lg8","createElement","Box","backgroundColor","theme","colors","blue","paddingStyle","paddingLeft","paddings","md","paddingRight","paddingBottom","flexStyle","flexDirection","alignItems","justifyContent","marginStyle","marginTop","margins","TouchableOpacity","activeOpacity","onPress","Image","source","uri","IMAGES","IMAGE_ANONIMA","style","borderRadius","borderWidth","borderWidths","thin_medium","borderColor","green","textAlign","paddingTop","Typography","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","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Image, TouchableOpacity } from \"react-native\";\n\n// components\nimport { Box } from \"../box\";\nimport { Typography } from \"../typography\";\n\n// comons / constants\nimport { IMAGES } from \"../../common/constants\";\n\n// typings\nimport { IUserProfile } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente Header para a interação do usuário com ui.\n */\nconst UserProfile: React.FC<IUserProfile> = ({\n nome,\n avatar,\n cpf,\n placa_cavalo,\n bluetoothIsConnected,\n app_version,\n color,\n width,\n height,\n handleProfileView,\n testID,\n}: IUserProfile) => {\n return (\n <Box\n testID={testID}\n width={width ?? \"100%\"}\n height={height}\n backgroundColor={theme.colors.blue[525]}\n paddingStyle={{\n paddingLeft: theme.paddings.md,\n paddingRight: theme.paddings.md,\n paddingBottom: theme.paddings[\"2xs\"],\n }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"center\" }}\n marginStyle={{ marginTop: theme.margins.md }}\n >\n <TouchableOpacity activeOpacity={0.7} onPress={handleProfileView}>\n <Image\n testID=\"user-profile-avatar\"\n source={{\n uri: avatar || IMAGES.IMAGE_ANONIMA,\n }}\n style={{\n width: 120,\n height: 120,\n borderRadius: 60,\n borderWidth: theme.borderWidths.thin_medium,\n borderColor: theme.colors.green[400],\n }}\n />\n </TouchableOpacity>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"column\", alignItems: \"center\", justifyContent: \"center\" }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: theme.paddings[\"2xs\"] }}\n >\n <Typography\n text={\"Olá, \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n <Box width={\"89%\"}>\n <Typography\n text={nome}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily=\"inter_medium_500\"\n fontWeight=\"500\"\n ellipsizeMode=\"tail\"\n numberOfLines={1}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: 5 }}\n >\n <Typography\n text={\"CPF: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={cpf}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight=\"600\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: 5 }}\n >\n <Typography\n text={\"CONECTADO: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={bluetoothIsConnected ? placa_cavalo : \"\"}\n color={theme.colors.green[400]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold_700}\n fontWeight=\"700\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n }}\n marginStyle={{ marginTop: theme.margins.md }}\n >\n <Typography\n text={\"Versão: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={app_version}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontWeight=\"300\"\n fontFamily={theme.fonts.inter_light_300}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { UserProfile };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,UAAA,GAAAJ,OAAA;AAMA,IAAAK,MAAA,GAAAL,OAAA;AAAiD,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAjBjD;AACA;A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,CAACM,EAAE,cAAAhD,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrCiD,aAAa,EAAE;EAAU,CAC1B,CACE,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAQ,OAAA,CAAAnF,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_constants","_theme","e","__esModule","default","UserProfile","nome","avatar","cpf","placa_cavalo","bluetoothIsConnected","app_version","color","width","height","handleProfileView","testID","_color$colorText","_theme$fontSizes$lg","_color$colorText2","_theme$fontSizes$lg2","_color$colorText3","_theme$fontSizes$lg3","_color$colorText4","_theme$fontSizes$lg4","_color$colorText5","_theme$fontSizes$lg5","_theme$fontSizes$lg6","_color$colorText6","_theme$fontSizes$lg7","_color$colorText7","_theme$fontSizes$lg8","createElement","backgroundColor","theme","colors","blue","paddingStyle","paddingLeft","paddings","md","paddingRight","paddingBottom","flexStyle","flexDirection","alignItems","justifyContent","marginStyle","marginTop","margins","TouchableOpacity","activeOpacity","onPress","Image","source","uri","IMAGES","IMAGE_ANONIMA","style","borderRadius","borderWidth","borderWidths","thin_medium","borderColor","green","textAlign","paddingTop","Typography","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","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Image, TouchableOpacity } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// comons / constants\nimport { IMAGES } from \"../../common/constants\";\n\n// typings\nimport { IUserProfile } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente Header para a interação do usuário com ui.\n */\nconst UserProfile: React.FC<IUserProfile> = ({\n nome,\n avatar,\n cpf,\n placa_cavalo,\n bluetoothIsConnected,\n app_version,\n color,\n width,\n height,\n handleProfileView,\n testID,\n}: IUserProfile) => {\n return (\n <Box\n testID={testID}\n width={width ?? \"100%\"}\n height={height}\n backgroundColor={theme.colors.blue[525]}\n paddingStyle={{\n paddingLeft: theme.paddings.md,\n paddingRight: theme.paddings.md,\n paddingBottom: theme.paddings[\"2xs\"],\n }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"center\" }}\n marginStyle={{ marginTop: theme.margins.md }}\n >\n <TouchableOpacity activeOpacity={0.7} onPress={handleProfileView}>\n <Image\n testID=\"user-profile-avatar\"\n source={{\n uri: avatar || IMAGES.IMAGE_ANONIMA,\n }}\n style={{\n width: 120,\n height: 120,\n borderRadius: 60,\n borderWidth: theme.borderWidths.thin_medium,\n borderColor: theme.colors.green[400],\n }}\n />\n </TouchableOpacity>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"column\", alignItems: \"center\", justifyContent: \"center\" }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: theme.paddings[\"2xs\"] }}\n >\n <Typography\n text={\"Olá, \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n <Box width={\"89%\"}>\n <Typography\n text={nome}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily=\"inter_medium_500\"\n fontWeight=\"500\"\n ellipsizeMode=\"tail\"\n numberOfLines={1}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: 5 }}\n >\n <Typography\n text={\"CPF: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={cpf}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight=\"600\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: 5 }}\n >\n <Typography\n text={\"CONECTADO: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={bluetoothIsConnected ? placa_cavalo : \"\"}\n color={theme.colors.green[400]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold_700}\n fontWeight=\"700\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n }}\n marginStyle={{ marginTop: theme.margins.md }}\n >\n <Typography\n text={\"Versão: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={app_version}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontWeight=\"300\"\n fontFamily={theme.fonts.inter_light_300}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { UserProfile };\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,UAAA,GAAAJ,OAAA;AAMA,IAAAK,MAAA,GAAAL,OAAA;AAAiD,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAjBjD;AACA;AACA;;AAIA;;AAIA;;AAGA;;AAGA;;AAGA;AACA;AACA;AACA,MAAMG,WAAmC,GAAGA,CAAC;EAC3CC,IAAI;EACJC,MAAM;EACNC,GAAG;EACHC,YAAY;EACZC,oBAAoB;EACpBC,WAAW;EACXC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,iBAAiB;EACjBC;AACY,CAAC,KAAK;EAAA,IAAAC,gBAAA,EAAAC,mBAAA,EAAAC,iBAAA,EAAAC,oBAAA,EAAAC,iBAAA,EAAAC,oBAAA,EAAAC,iBAAA,EAAAC,oBAAA,EAAAC,iBAAA,EAAAC,oBAAA,EAAAC,oBAAA,EAAAC,iBAAA,EAAAC,oBAAA,EAAAC,iBAAA,EAAAC,oBAAA;EAClB,oBACErC,MAAA,CAAAU,OAAA,CAAA4B,aAAA,CAAClC,IAAA,CAAAM,OAAG;IACFY,MAAM,EAAEA,MAAO;IACfH,KAAK,EAAEA,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,MAAO;IACvBC,MAAM,EAAEA,MAAO;IACfmB,eAAe,EAAEC,YAAK,CAACC,MAAM,CAACC,IAAI,CAAC,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,oBAAA,GAAI,EAAG;IACrCkD,aAAa,EAAE;EAAU,CAC1B,CAAC,eAEFrF,MAAA,CAAAU,OAAA,CAAA4B,aAAA,CAACjC,WAAA,CAAAoE,UAAU;IACTC,IAAI,EAAEzD,WAAY;IAClBC,KAAK,GAAAkB,iBAAA,GAAElB,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEyD,SAAS,cAAAvC,iBAAA,cAAAA,iBAAA,GAAII,YAAK,CAACC,MAAM,CAACmC,OAAO,CAAC,EAAE,CAAE;IACpDC,IAAI,EAAErC,YAAK,CAACsC,SAAS,CAACQ,EAAG;IACzBJ,UAAU,EAAC,KAAK;IAChBH,UAAU,EAAEvC,YAAK,CAACwC,KAAK,CAACY,eAAgB;IACxCT,UAAU,GAAA9C,oBAAA,GAAEG,YAAK,CAACsC,SAAS,CAACM,EAAE,cAAA/C,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrCgD,aAAa,EAAE;EAAU,CAC1B,CACE,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAQ,OAAA,CAAAlF,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.truncateText = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Função para limitar a quantidade de caracteres de um texto
|
|
9
|
+
* @param text - O texto a ser limitado
|
|
10
|
+
* @param maxLength - Número máximo de caracteres (padrão: 20)
|
|
11
|
+
* @returns Texto limitado com "..." se exceder o limite
|
|
12
|
+
*/
|
|
13
|
+
const truncateText = (text, maxLength = 20) => {
|
|
14
|
+
if (!text) return "";
|
|
15
|
+
if (text.length <= maxLength) {
|
|
16
|
+
return text;
|
|
17
|
+
}
|
|
18
|
+
return text.substring(0, maxLength) + "...";
|
|
19
|
+
};
|
|
20
|
+
exports.truncateText = truncateText;
|
|
21
|
+
//# sourceMappingURL=text-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["truncateText","text","maxLength","length","substring","exports"],"sources":["text-utils.ts"],"sourcesContent":["/**\r\n * Função para limitar a quantidade de caracteres de um texto\r\n * @param text - O texto a ser limitado\r\n * @param maxLength - Número máximo de caracteres (padrão: 20)\r\n * @returns Texto limitado com \"...\" se exceder o limite\r\n */\r\nexport const truncateText = (text: string, maxLength: number = 20): string => {\r\n if (!text) return \"\";\r\n\r\n if (text.length <= maxLength) {\r\n return text;\r\n }\r\n\r\n return text.substring(0, maxLength) + \"...\";\r\n};\r\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,YAAY,GAAGA,CAACC,IAAY,EAAEC,SAAiB,GAAG,EAAE,KAAa;EAC5E,IAAI,CAACD,IAAI,EAAE,OAAO,EAAE;EAEpB,IAAIA,IAAI,CAACE,MAAM,IAAID,SAAS,EAAE;IAC5B,OAAOD,IAAI;EACb;EAEA,OAAOA,IAAI,CAACG,SAAS,CAAC,CAAC,EAAEF,SAAS,CAAC,GAAG,KAAK;AAC7C,CAAC;AAACG,OAAA,CAAAL,YAAA,GAAAA,YAAA","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -24,7 +24,7 @@ Object.defineProperty(exports, "AvatarProfile", {
|
|
|
24
24
|
Object.defineProperty(exports, "Box", {
|
|
25
25
|
enumerable: true,
|
|
26
26
|
get: function () {
|
|
27
|
-
return _box.
|
|
27
|
+
return _box.default;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "Button", {
|
|
@@ -99,6 +99,12 @@ Object.defineProperty(exports, "Header", {
|
|
|
99
99
|
return _headerProfile.Header;
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
+
Object.defineProperty(exports, "HistoryActivitiesCard", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _historyActivitiesCard.HistoryActivitiesCard;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
102
108
|
Object.defineProperty(exports, "HistoryDetails", {
|
|
103
109
|
enumerable: true,
|
|
104
110
|
get: function () {
|
|
@@ -141,6 +147,12 @@ Object.defineProperty(exports, "ModalActivities", {
|
|
|
141
147
|
return _modalActivities.ModalActivities;
|
|
142
148
|
}
|
|
143
149
|
});
|
|
150
|
+
Object.defineProperty(exports, "ModalChangeActivity", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () {
|
|
153
|
+
return _modalChangeActivity.ModalChangeActivity;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
144
156
|
Object.defineProperty(exports, "NoData", {
|
|
145
157
|
enumerable: true,
|
|
146
158
|
get: function () {
|
|
@@ -219,7 +231,7 @@ Object.defineProperty(exports, "theme", {
|
|
|
219
231
|
return _theme.theme;
|
|
220
232
|
}
|
|
221
233
|
});
|
|
222
|
-
var _box = require("./components/box");
|
|
234
|
+
var _box = _interopRequireDefault(require("./components/box"));
|
|
223
235
|
var _button = require("./components/button");
|
|
224
236
|
var _stepIndicator = require("./components/step-indicator");
|
|
225
237
|
var _typography = require("./components/typography");
|
|
@@ -250,7 +262,10 @@ var _activitiesDaily = require("./components/activities-daily");
|
|
|
250
262
|
var _activitiesProgress = require("./components/activities-progress");
|
|
251
263
|
var _profileMenuOption = require("./components/profile-menu-option");
|
|
252
264
|
var _modalActivities = require("./components/modal-activities");
|
|
265
|
+
var _historyActivitiesCard = require("./components/history-activities-card");
|
|
266
|
+
var _modalChangeActivity = require("./components/modal-change-activity");
|
|
253
267
|
var _mutiply = require("./utils/mutiply");
|
|
254
268
|
var _formatData = require("./utils/format-data");
|
|
255
269
|
var _theme = require("./styles/theme/theme");
|
|
270
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
256
271
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_box","require","_button","_stepIndicator","_typography","_input","_capturePhoto","_cardHours","_selectOption","_headerProfile","_scheduledJourneyIndicators","_cardScheduledJourney","_userProfile","_menuItem","_cardLoading","_cardWorkSession","_loadingProgress","_noData","_filterJourney","_coil","_filterDateSelector","_cardHistory","_notificationLoading","_checkBox","_imageCaptureWithRemove","_loadingDetails","_avatarProfile","_historyDetails","_activitiesDaily","_activitiesProgress","_profileMenuOption","_modalActivities","_mutiply","_formatData","_theme"],"sources":["index.ts"],"sourcesContent":["/**\n * EXPORTS\n */\n\n// Components\nexport { Box } from \"./components/box\";\nexport { Button } from \"./components/button\";\nexport { StepIndicator } from \"./components/step-indicator\";\nexport { Typography } from \"./components/typography\";\nexport { Input } from \"./components/input\";\nexport { CapturePhoto } from \"./components/capture-photo\";\nexport { CardHours } from \"./components/card-hours\";\nexport { SelectOption } from \"./components/selects/select-option\";\nexport { Header } from \"./components/header-profile\";\nexport { ScheduledJourneyIndicators } from \"./components/scheduled-journey-indicators\";\nexport { CardScheduledJourney } from \"./components/card-scheduled-journey\";\nexport { UserProfile } from \"./components/user-profile\";\nexport { MenuItem } from \"./components/menu-item\";\nexport { CardLoading } from \"./components/card-loading\";\nexport { CardWorkSession } from \"./components/card-work-session\";\nexport { LoadingProgress } from \"./components/loading-progress\";\nexport { NoData } from \"./components/no-data\";\nexport { FilterJourney } from \"./components/filter-journey\";\nexport { Coil } from \"./components/coil\";\nexport { FilterDateSelector } from \"./components/filter-date-selector\";\nexport { CardHistory } from \"./components/card-history\";\nexport { NotificationLoading } from \"./components/notification-loading\";\nexport { CheckBox } from \"./components/check-box\";\nexport { ImageCaptureWithRemove } from \"./components/image-capture-with-remove\";\nexport { LoadingDetails } from \"./components/loading-details\";\nexport { AvatarProfile } from \"./components/avatar-profile\";\nexport { HistoryDetails } from \"./components/history-details\";\nexport { ActivitiesDaily } from \"./components/activities-daily\";\nexport { ActivitiesProgress } from \"./components/activities-progress\";\nexport { ProfileMenuOption } from \"./components/profile-menu-option\";\nexport { ModalActivities } from \"./components/modal-activities\";\n\n// Utilities\nexport { multiply } from \"./utils/mutiply\";\nexport { formatDate, getLastSevenDays, formHoursMinute } from \"./utils/format-data\";\n\n// Styles\nexport { theme } from \"./styles/theme/theme\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_box","_interopRequireDefault","require","_button","_stepIndicator","_typography","_input","_capturePhoto","_cardHours","_selectOption","_headerProfile","_scheduledJourneyIndicators","_cardScheduledJourney","_userProfile","_menuItem","_cardLoading","_cardWorkSession","_loadingProgress","_noData","_filterJourney","_coil","_filterDateSelector","_cardHistory","_notificationLoading","_checkBox","_imageCaptureWithRemove","_loadingDetails","_avatarProfile","_historyDetails","_activitiesDaily","_activitiesProgress","_profileMenuOption","_modalActivities","_historyActivitiesCard","_modalChangeActivity","_mutiply","_formatData","_theme","e","__esModule","default"],"sources":["index.ts"],"sourcesContent":["/**\n * EXPORTS\n */\n\n// Components\nexport { default as Box } from \"./components/box\";\nexport { Button } from \"./components/button\";\nexport { StepIndicator } from \"./components/step-indicator\";\nexport { Typography } from \"./components/typography\";\nexport { Input } from \"./components/input\";\nexport { CapturePhoto } from \"./components/capture-photo\";\nexport { CardHours } from \"./components/card-hours\";\nexport { SelectOption } from \"./components/selects/select-option\";\nexport { Header } from \"./components/header-profile\";\nexport { ScheduledJourneyIndicators } from \"./components/scheduled-journey-indicators\";\nexport { CardScheduledJourney } from \"./components/card-scheduled-journey\";\nexport { UserProfile } from \"./components/user-profile\";\nexport { MenuItem } from \"./components/menu-item\";\nexport { CardLoading } from \"./components/card-loading\";\nexport { CardWorkSession } from \"./components/card-work-session\";\nexport { LoadingProgress } from \"./components/loading-progress\";\nexport { NoData } from \"./components/no-data\";\nexport { FilterJourney } from \"./components/filter-journey\";\nexport { Coil } from \"./components/coil\";\nexport { FilterDateSelector } from \"./components/filter-date-selector\";\nexport { CardHistory } from \"./components/card-history\";\nexport { NotificationLoading } from \"./components/notification-loading\";\nexport { CheckBox } from \"./components/check-box\";\nexport { ImageCaptureWithRemove } from \"./components/image-capture-with-remove\";\nexport { LoadingDetails } from \"./components/loading-details\";\nexport { AvatarProfile } from \"./components/avatar-profile\";\nexport { HistoryDetails } from \"./components/history-details\";\nexport { ActivitiesDaily } from \"./components/activities-daily\";\nexport { ActivitiesProgress } from \"./components/activities-progress\";\nexport { ProfileMenuOption } from \"./components/profile-menu-option\";\nexport { ModalActivities } from \"./components/modal-activities\";\nexport { HistoryActivitiesCard } from \"./components/history-activities-card\";\nexport { ModalChangeActivity } from \"./components/modal-change-activity\";\n\n// Utilities\nexport { multiply } from \"./utils/mutiply\";\nexport { formatDate, getLastSevenDays, formHoursMinute } from \"./utils/format-data\";\n\n// Styles\nexport { theme } from \"./styles/theme/theme\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAAA,IAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,2BAAA,GAAAT,OAAA;AACA,IAAAU,qBAAA,GAAAV,OAAA;AACA,IAAAW,YAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,YAAA,GAAAb,OAAA;AACA,IAAAc,gBAAA,GAAAd,OAAA;AACA,IAAAe,gBAAA,GAAAf,OAAA;AACA,IAAAgB,OAAA,GAAAhB,OAAA;AACA,IAAAiB,cAAA,GAAAjB,OAAA;AACA,IAAAkB,KAAA,GAAAlB,OAAA;AACA,IAAAmB,mBAAA,GAAAnB,OAAA;AACA,IAAAoB,YAAA,GAAApB,OAAA;AACA,IAAAqB,oBAAA,GAAArB,OAAA;AACA,IAAAsB,SAAA,GAAAtB,OAAA;AACA,IAAAuB,uBAAA,GAAAvB,OAAA;AACA,IAAAwB,eAAA,GAAAxB,OAAA;AACA,IAAAyB,cAAA,GAAAzB,OAAA;AACA,IAAA0B,eAAA,GAAA1B,OAAA;AACA,IAAA2B,gBAAA,GAAA3B,OAAA;AACA,IAAA4B,mBAAA,GAAA5B,OAAA;AACA,IAAA6B,kBAAA,GAAA7B,OAAA;AACA,IAAA8B,gBAAA,GAAA9B,OAAA;AACA,IAAA+B,sBAAA,GAAA/B,OAAA;AACA,IAAAgC,oBAAA,GAAAhC,OAAA;AAGA,IAAAiC,QAAA,GAAAjC,OAAA;AACA,IAAAkC,WAAA,GAAAlC,OAAA;AAGA,IAAAmC,MAAA,GAAAnC,OAAA;AAA6C,SAAAD,uBAAAqC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.BoxSolid = exports.BoxDotted = exports.BoxDashed = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _box = require("../../components/box");
|
|
8
|
+
var _box = _interopRequireDefault(require("../../components/box"));
|
|
9
9
|
var _typography = require("../../components/typography");
|
|
10
10
|
var _theme = require("../../styles/theme/theme");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -15,7 +15,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
15
15
|
|
|
16
16
|
const meta = {
|
|
17
17
|
title: "Componente/Box",
|
|
18
|
-
component: _box.
|
|
18
|
+
component: _box.default,
|
|
19
19
|
args: {
|
|
20
20
|
width: "100%",
|
|
21
21
|
height: "05%"
|