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
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Input = 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 _iconsSvg = require("../../common/icons-svg");
|
|
12
12
|
var _theme = require("../../styles/theme/theme");
|
|
@@ -82,13 +82,13 @@ const Input = ({
|
|
|
82
82
|
right: 35,
|
|
83
83
|
top: 65
|
|
84
84
|
};
|
|
85
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
85
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
86
86
|
paddingStyle: paddingStyle,
|
|
87
87
|
marginStyle: marginStyle,
|
|
88
88
|
style: {
|
|
89
89
|
position: "relative"
|
|
90
90
|
}
|
|
91
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
91
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, null, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
92
92
|
size: _theme.theme.fontSizes.md,
|
|
93
93
|
text: String(textLabel),
|
|
94
94
|
color: (_color$colorText = color === null || color === void 0 ? void 0 : color.colorText) !== null && _color$colorText !== void 0 ? _color$colorText : _theme.theme.colors.gray[900]
|
|
@@ -101,11 +101,11 @@ const Input = ({
|
|
|
101
101
|
placeholder: placeholder,
|
|
102
102
|
secureTextEntry: secureTextEntry,
|
|
103
103
|
color: _theme.theme.colors.gray[900]
|
|
104
|
-
}, props))), append && /*#__PURE__*/_react.default.createElement(_box.
|
|
104
|
+
}, props))), append && /*#__PURE__*/_react.default.createElement(_box.default, null, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
105
105
|
size: _theme.theme.fontSizes["lg"],
|
|
106
106
|
text: (_append$appendText = append.appendText) !== null && _append$appendText !== void 0 ? _append$appendText : "",
|
|
107
107
|
color: (_append$appendColor = append.appendColor) !== null && _append$appendColor !== void 0 ? _append$appendColor : "#000"
|
|
108
|
-
})), name === "label" && /*#__PURE__*/_react.default.createElement(_box.
|
|
108
|
+
})), name === "label" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
109
109
|
backgroundColor: "transparent",
|
|
110
110
|
style: positionLabel
|
|
111
111
|
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
@@ -116,7 +116,7 @@ const Input = ({
|
|
|
116
116
|
color: _theme.theme.colors.blue[500],
|
|
117
117
|
lineHeight: 24,
|
|
118
118
|
letterSpacing: "regular"
|
|
119
|
-
})), name === "password" || name === "senha" && /*#__PURE__*/_react.default.createElement(_box.
|
|
119
|
+
})), name === "password" || name === "senha" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
120
120
|
backgroundColor: "transparent",
|
|
121
121
|
style: positionIconPassword
|
|
122
122
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
@@ -127,7 +127,7 @@ const Input = ({
|
|
|
127
127
|
size: _theme.theme.fontSizes["3xl"],
|
|
128
128
|
color: _theme.theme.colors.blue[500],
|
|
129
129
|
icon: isVisiblyPassword ? "EYE" : "EYE_SLASH"
|
|
130
|
-
}))), name === "data" && /*#__PURE__*/_react.default.createElement(_box.
|
|
130
|
+
}))), name === "data" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
131
131
|
width: 40,
|
|
132
132
|
height: 70,
|
|
133
133
|
backgroundColor: "transparent",
|
|
@@ -137,7 +137,7 @@ const Input = ({
|
|
|
137
137
|
size: _theme.theme.fontSizes["lg"],
|
|
138
138
|
color: _theme.theme.colors.gray[700],
|
|
139
139
|
icon: "CALENDAR"
|
|
140
|
-
})), name === "hours" && /*#__PURE__*/_react.default.createElement(_box.
|
|
140
|
+
})), name === "hours" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
141
141
|
width: 40,
|
|
142
142
|
height: 70,
|
|
143
143
|
backgroundColor: "transparent",
|
|
@@ -146,7 +146,7 @@ const Input = ({
|
|
|
146
146
|
size: _theme.theme.fontSizes["lg"],
|
|
147
147
|
color: _theme.theme.colors.gray[700],
|
|
148
148
|
icon: "TIMER"
|
|
149
|
-
})), name === "litragem" && /*#__PURE__*/_react.default.createElement(_box.
|
|
149
|
+
})), name === "litragem" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
150
150
|
width: 40,
|
|
151
151
|
height: 70,
|
|
152
152
|
backgroundColor: "transparent",
|
|
@@ -155,7 +155,7 @@ const Input = ({
|
|
|
155
155
|
size: _theme.theme.fontSizes["lg"],
|
|
156
156
|
color: _theme.theme.colors.gray[700],
|
|
157
157
|
icon: "GAS_PUMP"
|
|
158
|
-
})), name === "value" && /*#__PURE__*/_react.default.createElement(_box.
|
|
158
|
+
})), name === "value" && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
159
159
|
width: 40,
|
|
160
160
|
height: 70,
|
|
161
161
|
backgroundColor: "transparent",
|
|
@@ -164,7 +164,7 @@ const Input = ({
|
|
|
164
164
|
size: _theme.theme.fontSizes["lg"],
|
|
165
165
|
color: _theme.theme.colors.gray[700],
|
|
166
166
|
icon: "CURRENCY"
|
|
167
|
-
})), Boolean(messageError) && /*#__PURE__*/_react.default.createElement(_box.
|
|
167
|
+
})), Boolean(messageError) && /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
168
168
|
width: "100%",
|
|
169
169
|
backgroundColor: backgroundColor
|
|
170
170
|
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","_styles","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Input","name","textLabel","messageError","width","backgroundColor","marginStyle","paddingStyle","borderStyled","isVisiblyPassword","testID","opacity","children","fontStyle","style","flexStyle","handlePressIsVisiblyPassword","append","color","placeholder","textLabelPlaceholder","secureTextEntry","props","_color$colorText","_append$appendText","_append$appendColor","_theme$colors$red$","styleProps","widthScreen","Dimensions","get","isMobile","positionIcon","position","right","top","positionIconPassword","positionLabel","createElement","Box","Typography","size","theme","fontSizes","md","text","String","colorText","colors","gray","TextInput","styles","input","appendText","appendColor","fontWeight","fontFamily","fonts","inter_regular_400","blue","lineHeight","letterSpacing","TouchableOpacity","activeOpacity","onPress","Icons","icon","height","Boolean","red","marginTop","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Dimensions, TextInput, TouchableOpacity, ViewStyle } from \"react-native\";\n\n// components\nimport { Box } from \"../box\";\nimport { Typography } from \"../typography\";\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { type IInputProps } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport { styles } from \"./styles\";\n\n/**\n *\n * Componente Input para a interação do usuário com ui.\n */\nconst Input: React.FC<IInputProps> = ({\n name,\n textLabel,\n messageError,\n width,\n backgroundColor,\n marginStyle,\n paddingStyle,\n borderStyled,\n isVisiblyPassword, // password\n testID,\n opacity,\n children,\n fontStyle,\n style,\n flexStyle,\n handlePressIsVisiblyPassword, // password\n append,\n color,\n placeholder,\n textLabelPlaceholder,\n secureTextEntry,\n ...props\n}) => {\n const styleProps = {\n width,\n backgroundColor,\n borderStyled,\n flexStyle,\n paddingStyle,\n marginStyle,\n testID,\n opacity,\n children,\n fontStyle,\n color,\n style,\n name,\n } as IInputProps;\n\n const { width: widthScreen } = Dimensions.get(\"window\");\n const isMobile = widthScreen < 768;\n\n const positionIcon: ViewStyle = {\n position: \"absolute\",\n right: 15,\n top: isMobile ? 65 : 40,\n };\n const positionIconPassword: ViewStyle = {\n position: \"absolute\",\n right: isMobile ? 5 : 32,\n top: isMobile ? 65 : 38,\n };\n const positionLabel: ViewStyle = { position: \"absolute\", right: 35, top: 65 };\n\n return (\n <Box paddingStyle={paddingStyle} marginStyle={marginStyle} style={{ position: \"relative\" }}>\n <Box>\n <Typography\n size={theme.fontSizes.md}\n text={String(textLabel)}\n color={color?.colorText ?? theme.colors.gray[900]}\n />\n\n <TextInput\n // @ts-ignore\n style={[styles(styleProps).input, { backgroundColor }, style]}\n placeholder={placeholder}\n secureTextEntry={secureTextEntry}\n color={theme.colors.gray[900]}\n {...props}\n />\n </Box>\n {append && (\n <Box>\n <Typography\n size={theme.fontSizes[\"lg\"]}\n text={append.appendText ?? \"\"}\n color={append.appendColor ?? \"#000\"}\n />\n </Box>\n )}\n\n {name === \"label\" && (\n <Box backgroundColor={\"transparent\"} style={positionLabel}>\n <Typography\n text={textLabelPlaceholder ?? \"\"}\n size={theme.fontSizes[\"sm\"]}\n fontWeight=\"400\"\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.blue[500]}\n lineHeight={24}\n letterSpacing={\"regular\"}\n />\n </Box>\n )}\n\n {name === \"password\" ||\n (name === \"senha\" && (\n <Box backgroundColor={\"transparent\"} style={positionIconPassword}>\n <TouchableOpacity\n activeOpacity={0.7}\n testID=\"eye-icon\"\n onPress={handlePressIsVisiblyPassword}\n >\n <Icons\n size={theme.fontSizes[\"3xl\"]}\n color={theme.colors.blue[500]}\n icon={isVisiblyPassword ? \"EYE\" : \"EYE_SLASH\"}\n />\n </TouchableOpacity>\n </Box>\n ))}\n {name === \"data\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons\n testID=\"CALENDAR\"\n size={theme.fontSizes[\"lg\"]}\n color={theme.colors.gray[700]}\n icon={\"CALENDAR\"}\n />\n </Box>\n )}\n {name === \"hours\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"TIMER\"} />\n </Box>\n )}\n {name === \"litragem\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"GAS_PUMP\"} />\n </Box>\n )}\n {name === \"value\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"CURRENCY\"} />\n </Box>\n )}\n {Boolean(messageError) && (\n <Box width={\"100%\"} backgroundColor={backgroundColor}>\n <Typography\n text={messageError ?? \"\"}\n size={theme.fontSizes[\"sm\"]}\n fontFamily=\"inter_regular_400\"\n color={theme.colors.red[900] ?? \"#9F0000\"}\n lineHeight={24}\n letterSpacing={\"regular\"}\n marginTop={2}\n />\n </Box>\n )}\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { Input };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAMA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAAkC,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,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,cAAZA,YAAY,GAAI,EAAG;IACzBsC,IAAI,EAAEC,YAAK,CAACC,SAAS,CAAC,IAAI,CAAE;IAC5Ba,UAAU,EAAC,mBAAmB;IAC9BtC,KAAK,GAAAQ,kBAAA,GAAEgB,YAAK,CAACM,MAAM,CAACqB,GAAG,CAAC,GAAG,CAAC,cAAA3C,kBAAA,cAAAA,kBAAA,GAAI,SAAU;IAC1CkC,UAAU,EAAE,EAAG;IACfC,aAAa,EAAE,SAAU;IACzBS,SAAS,EAAE;EAAE,CACd,CACE,CAEJ,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAC,OAAA,CAAAvE,KAAA,GAAAA,KAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","_styles","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","Input","name","textLabel","messageError","width","backgroundColor","marginStyle","paddingStyle","borderStyled","isVisiblyPassword","testID","opacity","children","fontStyle","style","flexStyle","handlePressIsVisiblyPassword","append","color","placeholder","textLabelPlaceholder","secureTextEntry","props","_color$colorText","_append$appendText","_append$appendColor","_theme$colors$red$","styleProps","widthScreen","Dimensions","get","isMobile","positionIcon","position","right","top","positionIconPassword","positionLabel","createElement","Typography","size","theme","fontSizes","md","text","String","colorText","colors","gray","TextInput","styles","input","appendText","appendColor","fontWeight","fontFamily","fonts","inter_regular_400","blue","lineHeight","letterSpacing","TouchableOpacity","activeOpacity","onPress","Icons","icon","height","Boolean","red","marginTop","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Dimensions, TextInput, TouchableOpacity, ViewStyle } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { type IInputProps } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport { styles } from \"./styles\";\n\n/**\n *\n * Componente Input para a interação do usuário com ui.\n */\nconst Input: React.FC<IInputProps> = ({\n name,\n textLabel,\n messageError,\n width,\n backgroundColor,\n marginStyle,\n paddingStyle,\n borderStyled,\n isVisiblyPassword, // password\n testID,\n opacity,\n children,\n fontStyle,\n style,\n flexStyle,\n handlePressIsVisiblyPassword, // password\n append,\n color,\n placeholder,\n textLabelPlaceholder,\n secureTextEntry,\n ...props\n}) => {\n const styleProps = {\n width,\n backgroundColor,\n borderStyled,\n flexStyle,\n paddingStyle,\n marginStyle,\n testID,\n opacity,\n children,\n fontStyle,\n color,\n style,\n name,\n } as IInputProps;\n\n const { width: widthScreen } = Dimensions.get(\"window\");\n const isMobile = widthScreen < 768;\n\n const positionIcon: ViewStyle = {\n position: \"absolute\",\n right: 15,\n top: isMobile ? 65 : 40,\n };\n const positionIconPassword: ViewStyle = {\n position: \"absolute\",\n right: isMobile ? 5 : 32,\n top: isMobile ? 65 : 38,\n };\n const positionLabel: ViewStyle = { position: \"absolute\", right: 35, top: 65 };\n\n return (\n <Box paddingStyle={paddingStyle} marginStyle={marginStyle} style={{ position: \"relative\" }}>\n <Box>\n <Typography\n size={theme.fontSizes.md}\n text={String(textLabel)}\n color={color?.colorText ?? theme.colors.gray[900]}\n />\n\n <TextInput\n // @ts-ignore\n style={[styles(styleProps).input, { backgroundColor }, style]}\n placeholder={placeholder}\n secureTextEntry={secureTextEntry}\n color={theme.colors.gray[900]}\n {...props}\n />\n </Box>\n {append && (\n <Box>\n <Typography\n size={theme.fontSizes[\"lg\"]}\n text={append.appendText ?? \"\"}\n color={append.appendColor ?? \"#000\"}\n />\n </Box>\n )}\n\n {name === \"label\" && (\n <Box backgroundColor={\"transparent\"} style={positionLabel}>\n <Typography\n text={textLabelPlaceholder ?? \"\"}\n size={theme.fontSizes[\"sm\"]}\n fontWeight=\"400\"\n fontFamily={theme.fonts.inter_regular_400}\n color={theme.colors.blue[500]}\n lineHeight={24}\n letterSpacing={\"regular\"}\n />\n </Box>\n )}\n\n {name === \"password\" ||\n (name === \"senha\" && (\n <Box backgroundColor={\"transparent\"} style={positionIconPassword}>\n <TouchableOpacity\n activeOpacity={0.7}\n testID=\"eye-icon\"\n onPress={handlePressIsVisiblyPassword}\n >\n <Icons\n size={theme.fontSizes[\"3xl\"]}\n color={theme.colors.blue[500]}\n icon={isVisiblyPassword ? \"EYE\" : \"EYE_SLASH\"}\n />\n </TouchableOpacity>\n </Box>\n ))}\n {name === \"data\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons\n testID=\"CALENDAR\"\n size={theme.fontSizes[\"lg\"]}\n color={theme.colors.gray[700]}\n icon={\"CALENDAR\"}\n />\n </Box>\n )}\n {name === \"hours\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"TIMER\"} />\n </Box>\n )}\n {name === \"litragem\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"GAS_PUMP\"} />\n </Box>\n )}\n {name === \"value\" && (\n <Box width={40} height={70} backgroundColor={\"transparent\"} style={positionIcon}>\n <Icons size={theme.fontSizes[\"lg\"]} color={theme.colors.gray[700]} icon={\"CURRENCY\"} />\n </Box>\n )}\n {Boolean(messageError) && (\n <Box width={\"100%\"} backgroundColor={backgroundColor}>\n <Typography\n text={messageError ?? \"\"}\n size={theme.fontSizes[\"sm\"]}\n fontFamily=\"inter_regular_400\"\n color={theme.colors.red[900] ?? \"#9F0000\"}\n lineHeight={24}\n letterSpacing={\"regular\"}\n marginTop={2}\n />\n </Box>\n )}\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { Input };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,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AAI,CAAC,GAAG,CAAE;IAACiB,IAAI,EAAE;EAAW,CAAE,CACnF,CACN,EACAE,OAAO,CAAChE,YAAY,CAAC,iBACpB3B,MAAA,CAAAW,OAAA,CAAAmD,aAAA,CAAC1D,IAAA,CAAAO,OAAG;IAACiB,KAAK,EAAE,MAAO;IAACC,eAAe,EAAEA;EAAgB,gBACnD7B,MAAA,CAAAW,OAAA,CAAAmD,aAAA,CAACzD,WAAA,CAAA0D,UAAU;IACTK,IAAI,EAAEzC,YAAY,aAAZA,YAAY,cAAZA,YAAY,GAAI,EAAG;IACzBqC,IAAI,EAAEC,YAAK,CAACC,SAAS,CAAC,IAAI,CAAE;IAC5Ba,UAAU,EAAC,mBAAmB;IAC9BrC,KAAK,GAAAQ,kBAAA,GAAEe,YAAK,CAACM,MAAM,CAACqB,GAAG,CAAC,GAAG,CAAC,cAAA1C,kBAAA,cAAAA,kBAAA,GAAI,SAAU;IAC1CiC,UAAU,EAAE,EAAG;IACfC,aAAa,EAAE,SAAU;IACzBS,SAAS,EAAE;EAAE,CACd,CACE,CAEJ,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAC,OAAA,CAAAtE,KAAA,GAAAA,KAAA","ignoreList":[]}
|
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.LoadingDetails = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _box = require("../box");
|
|
8
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
9
9
|
var _button = require("../button");
|
|
10
10
|
var _typography = require("../typography");
|
|
11
11
|
var _theme = require("../../styles/theme/theme");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
/**
|
|
14
|
-
* IMPORTS
|
|
13
|
+
/**
|
|
14
|
+
* IMPORTS
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
// components
|
|
@@ -30,7 +30,7 @@ const LoadingDetails = ({
|
|
|
30
30
|
handleClickGoback,
|
|
31
31
|
handleClickStart
|
|
32
32
|
}) => {
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
34
34
|
width: "100%",
|
|
35
35
|
borderStyled: {
|
|
36
36
|
borderRadius: 8
|
|
@@ -46,7 +46,7 @@ const LoadingDetails = ({
|
|
|
46
46
|
elevation: 2
|
|
47
47
|
},
|
|
48
48
|
backgroundColor: _theme.theme.colors.blue[400]
|
|
49
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
50
50
|
width: "100%",
|
|
51
51
|
flexStyle: {
|
|
52
52
|
flexDirection: "row",
|
|
@@ -56,7 +56,7 @@ const LoadingDetails = ({
|
|
|
56
56
|
paddingStyle: {
|
|
57
57
|
padding: _theme.theme.paddings.md
|
|
58
58
|
}
|
|
59
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
60
60
|
width: "78%",
|
|
61
61
|
flexStyle: {
|
|
62
62
|
flexDirection: "column",
|
|
@@ -94,14 +94,14 @@ const LoadingDetails = ({
|
|
|
94
94
|
fontWeight: "700",
|
|
95
95
|
lineHeight: _theme.theme.fontSizes["3xl"],
|
|
96
96
|
letterSpacing: "regular"
|
|
97
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
97
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
98
98
|
height: 1,
|
|
99
99
|
backgroundColor: _theme.theme.colors.gray[950],
|
|
100
100
|
marginStyle: {
|
|
101
101
|
marginTop: _theme.theme.margins.xs,
|
|
102
102
|
marginBottom: _theme.theme.margins.xs
|
|
103
103
|
}
|
|
104
|
-
}), /*#__PURE__*/_react.default.createElement(_box.
|
|
104
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
105
105
|
style: {
|
|
106
106
|
flexDirection: "row",
|
|
107
107
|
gap: 12,
|
|
@@ -160,8 +160,8 @@ const LoadingDetails = ({
|
|
|
160
160
|
})));
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
-
/**
|
|
164
|
-
* EXPORTS
|
|
163
|
+
/**
|
|
164
|
+
* EXPORTS
|
|
165
165
|
*/
|
|
166
166
|
exports.LoadingDetails = LoadingDetails;
|
|
167
167
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_button","_typography","_theme","e","__esModule","default","LoadingDetails","numero","local","date","duracao","isLoadingStart","disabled","handleClickGoback","handleClickStart","createElement","Box","width","borderStyled","borderRadius","style","shadowColor","theme","colors","black","shadowOpacity","shadowOffset","height","shadowRadius","elevation","backgroundColor","blue","flexStyle","flexDirection","alignItems","justifyContent","paddingStyle","padding","paddings","md","Typography","text","size","fontSizes","sm","fontFamily","fonts","inter_bold","fontWeight","color","neutral","lineHeight","letterSpacing","xs","numberOfLines","align","gray","marginStyle","marginTop","margins","marginBottom","gap","Button","testID","title","onPress","isLoading","green","flex","buttonTextStyle","inter_semi_bold_600","fontSize","textAlign","borderWidth","borderWidths","thin","borderColor","yellow","exports"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\n\r\n// components\r\nimport { Box } from \"../box\";\r\nimport { Button } from \"../button\";\r\nimport { Typography } from \"../typography\";\r\n\r\n// typings\r\nimport { ILoadingDetails } from \"./interface\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nconst LoadingDetails: React.FC<ILoadingDetails> = ({\r\n numero = \"01020304050607\",\r\n local = \"Doca 1, Pátio 02 - Usimais (Ipatinga)\",\r\n date = \"24/03/2025\",\r\n duracao = \"00:00\",\r\n isLoadingStart = false,\r\n disabled,\r\n handleClickGoback,\r\n handleClickStart,\r\n}: ILoadingDetails) => {\r\n return (\r\n <Box\r\n width=\"100%\"\r\n borderStyled={{ borderRadius: 8 }}\r\n style={{\r\n shadowColor: theme.colors.black[10],\r\n shadowOpacity: 0.1,\r\n shadowOffset: { width: 0, height: 2 },\r\n shadowRadius: 4,\r\n elevation: 2,\r\n }}\r\n backgroundColor={theme.colors.blue[400]}\r\n >\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-between\",\r\n }}\r\n paddingStyle={{ padding: theme.paddings.md }}\r\n >\r\n <Box\r\n width={\"78%\"}\r\n flexStyle={{\r\n flexDirection: \"column\",\r\n justifyContent: \"flex-start\",\r\n alignItems: \"flex-start\",\r\n }}\r\n >\r\n <Typography\r\n text={`Carregamento - #${numero}`}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_bold}\r\n fontWeight=\"700\"\r\n color={theme.colors.neutral[25]}\r\n lineHeight={theme.fontSizes[\"lg\"]}\r\n letterSpacing={\"regular\"}\r\n />\r\n\r\n <Typography\r\n text={local}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n lineHeight={theme.fontSizes[\"2xl\"]}\r\n letterSpacing={\"regular\"}\r\n numberOfLines={1}\r\n />\r\n <Typography\r\n text={`Data carregamento: ${date}`}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.xs}\r\n lineHeight={theme.fontSizes[\"2xl\"]}\r\n letterSpacing={\"regular\"}\r\n numberOfLines={1}\r\n />\r\n </Box>\r\n\r\n <Typography\r\n text={duracao}\r\n color={theme.colors.neutral[25]}\r\n size={24}\r\n align=\"left\"\r\n fontFamily=\"inter_bold\"\r\n fontWeight=\"700\"\r\n lineHeight={theme.fontSizes[\"3xl\"]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n\r\n <Box\r\n height={1}\r\n backgroundColor={theme.colors.gray[950]}\r\n marginStyle={{ marginTop: theme.margins.xs, marginBottom: theme.margins.xs }}\r\n />\r\n\r\n <Box style={{ flexDirection: \"row\", gap: 12, marginBottom: 8, padding: theme.paddings.md }}>\r\n <Button\r\n testID=\"iniciar-button\"\r\n title=\"INICIAR\"\r\n onPress={handleClickStart}\r\n height={40}\r\n isLoading={isLoadingStart}\r\n disabled={disabled}\r\n backgroundColor={disabled ? theme.colors.green[100] : theme.colors.green[250]}\r\n flexStyle={{ flex: 1, alignItems: \"center\", justifyContent: \"center\" }}\r\n buttonTextStyle={{\r\n color: theme.colors.neutral[25],\r\n fontFamily: theme.fonts.inter_semi_bold_600,\r\n fontSize: theme.fontSizes.md,\r\n fontWeight: \"600\",\r\n textAlign: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: disabled ? theme.colors.green[100] : theme.colors.green[250],\r\n borderRadius: theme.fontSizes[\"2xl\"],\r\n }}\r\n />\r\n\r\n <Button\r\n title=\"VOLTAR\"\r\n onPress={handleClickGoback}\r\n height={40}\r\n isLoading={false}\r\n disabled={isLoadingStart}\r\n backgroundColor={theme.colors.yellow[75]}\r\n flexStyle={{ flex: 1, alignItems: \"center\", justifyContent: \"center\" }}\r\n buttonTextStyle={{\r\n color: theme.colors.neutral[25],\r\n fontFamily: theme.fonts.inter_semi_bold_600,\r\n fontSize: theme.fontSizes.md,\r\n fontWeight: \"600\",\r\n textAlign: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: theme.colors.yellow[75],\r\n borderRadius: theme.fontSizes[\"2xl\"],\r\n }}\r\n />\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { LoadingDetails };\r\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAMA,IAAAI,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J,EAAE;MAC5BS,UAAU,EAAE,KAAK;MACjBwB,SAAS,EAAE;IACb,CAAE;IACFtD,YAAY,EAAE;MACZuD,WAAW,EAAEnD,YAAK,CAACoD,YAAY,CAACC,IAAI;MACpCC,WAAW,EAAEtD,YAAK,CAACC,MAAM,CAACsD,MAAM,CAAC,EAAE,CAAC;MACpC1D,YAAY,EAAEG,YAAK,CAACqB,SAAS,CAAC,KAAK;IACrC;EAAE,CACH,CACE,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAmC,OAAA,CAAAxE,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_button","_typography","_theme","e","__esModule","default","LoadingDetails","numero","local","date","duracao","isLoadingStart","disabled","handleClickGoback","handleClickStart","createElement","width","borderStyled","borderRadius","style","shadowColor","theme","colors","black","shadowOpacity","shadowOffset","height","shadowRadius","elevation","backgroundColor","blue","flexStyle","flexDirection","alignItems","justifyContent","paddingStyle","padding","paddings","md","Typography","text","size","fontSizes","sm","fontFamily","fonts","inter_bold","fontWeight","color","neutral","lineHeight","letterSpacing","xs","numberOfLines","align","gray","marginStyle","marginTop","margins","marginBottom","gap","Button","testID","title","onPress","isLoading","green","flex","buttonTextStyle","inter_semi_bold_600","fontSize","textAlign","borderWidth","borderWidths","thin","borderColor","yellow","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\n\n// components\nimport Box from \"../box\";\nimport { Button } from \"../button\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { ILoadingDetails } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst LoadingDetails: React.FC<ILoadingDetails> = ({\n numero = \"01020304050607\",\n local = \"Doca 1, Pátio 02 - Usimais (Ipatinga)\",\n date = \"24/03/2025\",\n duracao = \"00:00\",\n isLoadingStart = false,\n disabled,\n handleClickGoback,\n handleClickStart,\n}: ILoadingDetails) => {\n return (\n <Box\n width=\"100%\"\n borderStyled={{ borderRadius: 8 }}\n style={{\n shadowColor: theme.colors.black[10],\n shadowOpacity: 0.1,\n shadowOffset: { width: 0, height: 2 },\n shadowRadius: 4,\n elevation: 2,\n }}\n backgroundColor={theme.colors.blue[400]}\n >\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n paddingStyle={{ padding: theme.paddings.md }}\n >\n <Box\n width={\"78%\"}\n flexStyle={{\n flexDirection: \"column\",\n justifyContent: \"flex-start\",\n alignItems: \"flex-start\",\n }}\n >\n <Typography\n text={`Carregamento - #${numero}`}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold}\n fontWeight=\"700\"\n color={theme.colors.neutral[25]}\n lineHeight={theme.fontSizes[\"lg\"]}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={local}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n lineHeight={theme.fontSizes[\"2xl\"]}\n letterSpacing={\"regular\"}\n numberOfLines={1}\n />\n <Typography\n text={`Data carregamento: ${date}`}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n lineHeight={theme.fontSizes[\"2xl\"]}\n letterSpacing={\"regular\"}\n numberOfLines={1}\n />\n </Box>\n\n <Typography\n text={duracao}\n color={theme.colors.neutral[25]}\n size={24}\n align=\"left\"\n fontFamily=\"inter_bold\"\n fontWeight=\"700\"\n lineHeight={theme.fontSizes[\"3xl\"]}\n letterSpacing={\"regular\"}\n />\n </Box>\n\n <Box\n height={1}\n backgroundColor={theme.colors.gray[950]}\n marginStyle={{ marginTop: theme.margins.xs, marginBottom: theme.margins.xs }}\n />\n\n <Box style={{ flexDirection: \"row\", gap: 12, marginBottom: 8, padding: theme.paddings.md }}>\n <Button\n testID=\"iniciar-button\"\n title=\"INICIAR\"\n onPress={handleClickStart}\n height={40}\n isLoading={isLoadingStart}\n disabled={disabled}\n backgroundColor={disabled ? theme.colors.green[100] : theme.colors.green[250]}\n flexStyle={{ flex: 1, alignItems: \"center\", justifyContent: \"center\" }}\n buttonTextStyle={{\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_semi_bold_600,\n fontSize: theme.fontSizes.md,\n fontWeight: \"600\",\n textAlign: \"center\",\n }}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderColor: disabled ? theme.colors.green[100] : theme.colors.green[250],\n borderRadius: theme.fontSizes[\"2xl\"],\n }}\n />\n\n <Button\n title=\"VOLTAR\"\n onPress={handleClickGoback}\n height={40}\n isLoading={false}\n disabled={isLoadingStart}\n backgroundColor={theme.colors.yellow[75]}\n flexStyle={{ flex: 1, alignItems: \"center\", justifyContent: \"center\" }}\n buttonTextStyle={{\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_semi_bold_600,\n fontSize: theme.fontSizes.md,\n fontWeight: \"600\",\n textAlign: \"center\",\n }}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderColor: theme.colors.yellow[75],\n borderRadius: theme.fontSizes[\"2xl\"],\n }}\n />\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { LoadingDetails };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAMA,IAAAI,MAAA,GAAAJ,OAAA;AAAiD,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAdjD;AACA;AACA;;AAGA;;AAKA;;AAGA;;AAGA,MAAMG,cAAyC,GAAGA,CAAC;EACjDC,MAAM,GAAG,gBAAgB;EACzBC,KAAK,GAAG,uCAAuC;EAC/CC,IAAI,GAAG,YAAY;EACnBC,OAAO,GAAG,OAAO;EACjB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A;AAFAmC,OAAA,CAAAvE,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.LoadingProgress = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _box = require("../box");
|
|
8
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
9
9
|
var _typography = require("../typography");
|
|
10
10
|
var _button = require("../button");
|
|
11
11
|
var _theme = require("../../styles/theme/theme");
|
|
@@ -30,12 +30,12 @@ const LoadingProgress = ({
|
|
|
30
30
|
backgroundColor
|
|
31
31
|
}) => {
|
|
32
32
|
const truncatedText = textLoading.length > 15 ? textLoading.substring(0, 13) + "..." : textLoading;
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, null, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
34
34
|
text: "Carregamento em Andamento",
|
|
35
35
|
size: _theme.theme.fontSizes.lg,
|
|
36
36
|
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
37
37
|
color: _theme.theme.colors.gray[800]
|
|
38
|
-
}), /*#__PURE__*/_react.default.createElement(_box.
|
|
38
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
39
39
|
paddingStyle: {
|
|
40
40
|
padding: _theme.theme.paddings["2xs"]
|
|
41
41
|
},
|
|
@@ -50,7 +50,7 @@ const LoadingProgress = ({
|
|
|
50
50
|
marginTop: _theme.theme.margins["2xs"],
|
|
51
51
|
marginBottom: _theme.theme.margins["2xs"]
|
|
52
52
|
}
|
|
53
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
54
54
|
flexStyle: {
|
|
55
55
|
flexDirection: "row",
|
|
56
56
|
textAlign: "center"
|
|
@@ -66,7 +66,7 @@ const LoadingProgress = ({
|
|
|
66
66
|
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
67
67
|
color: _theme.theme.colors.gray[800],
|
|
68
68
|
letterSpacing: "regular"
|
|
69
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
69
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
70
70
|
flexStyle: {
|
|
71
71
|
alignItems: "center",
|
|
72
72
|
justifyContent: "center",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_typography","_button","_theme","e","__esModule","default","LoadingProgress","textLoading","handleClick","backgroundColor","truncatedText","length","substring","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_typography","_button","_theme","e","__esModule","default","LoadingProgress","textLoading","handleClick","backgroundColor","truncatedText","length","substring","createElement","Typography","text","size","theme","fontSizes","lg","fontFamily","fonts","inter_medium_500","color","colors","gray","paddingStyle","padding","paddings","neutral","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_large","borderStyle","borderColor","marginStyle","marginTop","margins","marginBottom","flexStyle","flexDirection","textAlign","md","inter_bold_700","blue","letterSpacing","alignItems","justifyContent","Button","title","onPress","isLoading","height","width","buttonTextStyle","fontSize","thick_medium","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\n\n// component\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\nimport { Button } from \"../button\";\n\n// typings\nimport { ILoadingProgress } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n *\n * Componente LoadingProgress para a interação do usuário com ui.\n */\nconst LoadingProgress: React.FC<ILoadingProgress> = ({\n textLoading,\n handleClick,\n backgroundColor,\n}: ILoadingProgress) => {\n const truncatedText =\n textLoading.length > 15 ? textLoading.substring(0, 13) + \"...\" : textLoading;\n return (\n <Box>\n <Typography\n text=\"Carregamento em Andamento\"\n size={theme.fontSizes.lg}\n fontFamily={theme.fonts.inter_medium_500}\n color={theme.colors.gray[800]}\n />\n <Box\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\n backgroundColor={backgroundColor ?? theme.colors.neutral[25]}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderRadius: theme.borderWidths.thick_large,\n borderStyle: \"dashed\",\n borderColor: theme.colors.neutral[200],\n }}\n marginStyle={{ marginTop: theme.margins[\"2xs\"], marginBottom: theme.margins[\"2xs\"] }}\n >\n <Box flexStyle={{ flexDirection: \"row\", textAlign: \"center\" }}>\n <Typography\n text={\"N° Carregamento: \"}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_bold_700}\n color={theme.colors.blue[400]}\n />\n\n <Typography\n text={truncatedText}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_medium_500}\n color={theme.colors.gray[800]}\n letterSpacing={\"regular\"}\n />\n </Box>\n <Box\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\", flexDirection: \"row\" }}\n marginStyle={{ marginTop: theme.margins[\"2xs\"] }}\n >\n <Button\n title={\"Visualizar\"}\n onPress={handleClick}\n backgroundColor={theme.colors.blue[400]}\n isLoading={false}\n height={32}\n width={\"75%\"}\n buttonTextStyle={{\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\n fontSize: theme.fontSizes.lg,\n }}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\", flexDirection: \"row\" }}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_medium,\n }}\n />\n </Box>\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { LoadingProgress };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAMA,IAAAI,MAAA,GAAAJ,OAAA;AAAiD,SAAAD,uBAAAM,CAAA,WAAAA,CA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EAAEQ,YAAK,CAACO,MAAM,CAACuB,IAAI,CAAC,GAAG,CAAE;IACxCO,SAAS,EAAE,KAAM;IACjBC,MAAM,EAAE,EAAG;IACXC,KAAK,EAAE,KAAM;IACbC,eAAe,EAAE;MACflC,KAAK,EAAEN,YAAK,CAACO,MAAM,CAACK,OAAO,CAAC,EAAE,CAAC;MAC/BT,UAAU,EAAEH,YAAK,CAACI,KAAK,CAACC,gBAAgB;MACxCoC,QAAQ,EAAEzC,YAAK,CAACC,SAAS,CAACC;IAC5B,CAAE;IACFuB,SAAS,EAAE;MAAEO,UAAU,EAAE,QAAQ;MAAEC,cAAc,EAAE,QAAQ;MAAEP,aAAa,EAAE;IAAM,CAAE;IACpFb,YAAY,EAAE;MACZI,YAAY,EAAEjB,YAAK,CAACe,YAAY,CAAC2B;IACnC;EAAE,CACH,CACE,CACF,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAC,OAAA,CAAAtD,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.MenuItem = 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 _iconsSvg = require("../../common/icons-svg");
|
|
12
12
|
var _theme = require("../../styles/theme/theme");
|
|
@@ -42,7 +42,7 @@ const MenuItem = ({
|
|
|
42
42
|
testID: testID,
|
|
43
43
|
onPress: handleNavigation,
|
|
44
44
|
activeOpacity: 0.7
|
|
45
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
45
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
46
46
|
testID: "menu-item-" + typeSelected,
|
|
47
47
|
width: width !== null && width !== void 0 ? width : "100%",
|
|
48
48
|
height: height !== null && height !== void 0 ? height : 260,
|
|
@@ -60,7 +60,7 @@ const MenuItem = ({
|
|
|
60
60
|
justifyContent: "center",
|
|
61
61
|
alignItems: "center"
|
|
62
62
|
}
|
|
63
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
63
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
64
64
|
testID: "menu-item-icon-box"
|
|
65
65
|
}, /*#__PURE__*/_react.default.createElement(_iconsSvg.IconsMenuItems, {
|
|
66
66
|
testID: "menu-item-icon",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","e","__esModule","default","MenuItem","color","width","height","title","handleNavigation","typeSelected","testID","selected","_color$colorText","_theme$fontSizes$lg","createElement","TouchableOpacity","onPress","activeOpacity","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","e","__esModule","default","MenuItem","color","width","height","title","handleNavigation","typeSelected","testID","selected","_color$colorText","_theme$fontSizes$lg","createElement","TouchableOpacity","onPress","activeOpacity","backgroundColor","theme","colors","blue","gray","marginStyle","marginBottom","borderStyled","borderWidth","borderColor","borderRadius","flexStyle","flexDirection","justifyContent","alignItems","IconsMenuItems","icon","size","fontSizes","Typography","text","colorText","neutral","xs","fontFamily","fonts","inter_bold_700","lineHeight","lg","letterSpacing","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// comons / icons\nimport { IconsMenuItems } from \"../../common/icons-svg\";\n\n// typings\nimport { IMenuItem } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n *\n * Componente Menu Item para a interação do usuário com ui.\n */\nconst MenuItem: React.FC<IMenuItem> = ({\n color,\n width,\n height,\n title,\n handleNavigation,\n typeSelected,\n testID,\n selected,\n}: IMenuItem) => {\n return (\n <TouchableOpacity testID={testID} onPress={handleNavigation} activeOpacity={0.7}>\n <Box\n testID={\"menu-item-\" + typeSelected}\n width={width ?? \"100%\"}\n height={height ?? 260}\n backgroundColor={selected ? theme.colors.blue[400] : theme.colors.gray[400]}\n marginStyle={{ marginBottom: 16 }}\n borderStyled={{\n borderWidth: 1,\n borderColor: selected ? theme.colors.blue[400] : theme.colors.gray[400],\n borderRadius: 8,\n }}\n flexStyle={{ flexDirection: \"column\", justifyContent: \"center\", alignItems: \"center\" }}\n >\n <Box testID=\"menu-item-icon-box\">\n <IconsMenuItems\n testID=\"menu-item-icon\"\n icon={typeSelected ?? \"LOADING\"}\n size={theme.fontSizes[\"3xl\"]}\n color=\"#fff\"\n />\n </Box>\n <Typography\n text={title ?? \"Carregamento\"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.lg ?? 24}\n letterSpacing={\"regular\"}\n />\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { MenuItem };\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,SAAA,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;AACA,MAAMG,QAA6B,GAAGA,CAAC;EACrCC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,KAAK;EACLC,gBAAgB;EAChBC,YAAY;EACZC,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,EAAEhB,YAAK,CAACiB,SAAS,CAAC,KAAK,CAAE;IAC7BhC,KAAK,EAAC;EAAM,CACb,CACE,CAAC,eACNZ,MAAA,CAAAU,OAAA,CAAAY,aAAA,CAACjB,WAAA,CAAAwC,UAAU;IACTC,IAAI,EAAE/B,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,cAAe;IAC9BH,KAAK,GAAAQ,gBAAA,GAAER,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAEmC,SAAS,cAAA3B,gBAAA,cAAAA,gBAAA,GAAIO,YAAK,CAACC,MAAM,CAACoB,OAAO,CAAC,EAAE,CAAE;IACpDL,IAAI,EAAEhB,YAAK,CAACiB,SAAS,CAACK,EAAG;IACzBC,UAAU,EAAEvB,YAAK,CAACwB,KAAK,CAACC,cAAe;IACvCC,UAAU,GAAAhC,mBAAA,GAAEM,YAAK,CAACiB,SAAS,CAACU,EAAE,cAAAjC,mBAAA,cAAAA,mBAAA,GAAI,EAAG;IACrCkC,aAAa,EAAE;EAAU,CAC1B,CACE,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AAFAC,OAAA,CAAA7C,QAAA,GAAAA,QAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ModalActivities = 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 _iconsSvg = require("../../common/icons-svg");
|
|
11
11
|
var _modalActivities = require("../../common/icons-svg/modal-activities");
|
|
12
12
|
var _theme = require("../../styles/theme/theme");
|
|
@@ -39,14 +39,14 @@ const ModalActivities = ({
|
|
|
39
39
|
animationType: "fade",
|
|
40
40
|
transparent: true,
|
|
41
41
|
onRequestClose: onClose
|
|
42
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
42
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
43
43
|
backgroundColor: "rgba(0, 0, 0, 0.7)",
|
|
44
44
|
flexStyle: {
|
|
45
45
|
flex: 1,
|
|
46
46
|
justifyContent: "center",
|
|
47
47
|
alignItems: "center"
|
|
48
48
|
}
|
|
49
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
50
50
|
height: 310,
|
|
51
51
|
width: "92%",
|
|
52
52
|
backgroundColor: _theme.theme.colors.neutral[25],
|
|
@@ -61,7 +61,7 @@ const ModalActivities = ({
|
|
|
61
61
|
style: {
|
|
62
62
|
position: "relative"
|
|
63
63
|
}
|
|
64
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
64
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
65
65
|
width: "100%",
|
|
66
66
|
flexStyle: {
|
|
67
67
|
flexDirection: "row",
|
|
@@ -81,7 +81,7 @@ const ModalActivities = ({
|
|
|
81
81
|
}, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
82
82
|
icon: "CLOSED",
|
|
83
83
|
color: _theme.theme.colors.blue[500]
|
|
84
|
-
}))), /*#__PURE__*/_react.default.createElement(_box.
|
|
84
|
+
}))), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
85
85
|
marginStyle: {
|
|
86
86
|
marginTop: _theme.theme.margins["2xl"]
|
|
87
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_iconsSvg","_modalActivities","_theme","_typography","_button","_dataActivities","e","__esModule","default","ModalActivities","onClose","handleActivity","activityType","isLoading","style","createElement","Modal","animationType","transparent","onRequestClose","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_iconsSvg","_modalActivities","_theme","_typography","_button","_dataActivities","e","__esModule","default","ModalActivities","onClose","handleActivity","activityType","isLoading","style","createElement","Modal","animationType","transparent","onRequestClose","backgroundColor","flexStyle","flex","justifyContent","alignItems","height","width","theme","colors","neutral","borderStyled","borderColor","blue","borderWidth","borderWidths","thick","borderRadius","thick_medium","paddingStyle","padding","paddings","md","position","flexDirection","Typography","text","size","fontSizes","color","fontFamily","fonts","inter_bold_700","lineHeight","xl","TouchableOpacity","activeOpacity","onPress","Icons","icon","marginStyle","marginTop","margins","FlatList","data","activities","numColumns","keyExtractor","item","id","toString","scrollEnabled","renderItem","marginBottom","getIconModalActivities","referencia","descricao","xs","inter_medium_500","fontWeight","align","Button","title","buttonTextStyle","fontSize","thin","marginLeft","bottom","left","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Modal, TouchableOpacity, FlatList } from \"react-native\";\n\n// components\n\nimport Box from \"../box\";\n\n// commons / icons\nimport { Icons } from \"../../common/icons-svg\";\nimport { getIconModalActivities } from \"../../common/icons-svg/modal-activities\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport { Typography } from \"../typography\";\nimport { Button } from \"../button\";\n\n//typing\nimport { IModalActivities, IActivity } from \"./interface\";\n\n// atividades\nimport { activities } from \"./data-activities\";\n\nexport const ModalActivities: React.FC<IModalActivities> = ({\n onClose,\n handleActivity,\n activityType,\n isLoading,\n style,\n}) => {\n return (\n <Modal animationType=\"fade\" transparent={true} onRequestClose={onClose}>\n <Box\n backgroundColor={\"rgba(0, 0, 0, 0.7)\"}\n flexStyle={{ flex: 1, justifyContent: \"center\", alignItems: \"center\" }}\n >\n <Box\n height={310}\n width={\"92%\"}\n backgroundColor={theme.colors.neutral[25]}\n borderStyled={{\n borderColor: theme.colors.blue[500],\n borderWidth: theme.borderWidths.thick,\n borderRadius: theme.borderWidths.thick_medium,\n }}\n paddingStyle={{\n padding: theme.paddings.md,\n }}\n style={{ position: \"relative\" }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text=\"Atividades\"\n size={theme.fontSizes.md}\n color={theme.colors.blue[500]}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.xl}\n />\n\n <TouchableOpacity activeOpacity={0.7} onPress={onClose} style={{}}>\n <Icons icon=\"CLOSED\" color={theme.colors.blue[500]} />\n </TouchableOpacity>\n </Box>\n {/* as atividades */}\n <Box marginStyle={{ marginTop: theme.margins[\"2xl\"] }}>\n <FlatList\n data={activities[activityType]}\n numColumns={3}\n keyExtractor={(item) => item.id.toString()}\n scrollEnabled={false}\n renderItem={({ item }) => (\n <TouchableOpacity\n style={{\n alignItems: \"center\",\n width: 110,\n marginBottom: theme.margins[\"2xl\"], // espaço entre as linhas\n }}\n onPress={() => handleActivity(item as IActivity)}\n >\n {getIconModalActivities(item.referencia)}\n\n <Typography\n text={item.descricao}\n size={theme.fontSizes.xs}\n color={theme.colors.blue[500]}\n lineHeight={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n align=\"center\"\n marginTop={5}\n />\n </TouchableOpacity>\n )}\n />\n </Box>\n\n <Button\n title={\"CANCELAR ATIVIDADE\"}\n width=\"100%\"\n height={40}\n activeOpacity={0.7}\n onPress={onClose}\n backgroundColor={theme.colors.blue[500]}\n buttonTextStyle={{\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\n fontSize: theme.fontSizes.md,\n fontWeight: \"500\",\n }}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderColor: theme.colors.blue[500],\n borderRadius: theme.borderWidths.thick_medium,\n }}\n marginStyle={{ marginLeft: theme.margins.md }}\n isLoading={isLoading ?? false}\n style={[style, { position: \"absolute\", bottom: 10, left: 0 }]}\n />\n </Box>\n </Box>\n </Modal>\n );\n};\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBA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