react-native-exp-fig 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/input-text-counter/index.js +66 -0
- package/lib/commonjs/components/input-text-counter/index.js.map +1 -0
- package/lib/commonjs/components/input-text-counter/interface.d.js.map +1 -0
- package/lib/commonjs/components/input-text-counter/styles.js +42 -0
- package/lib/commonjs/components/input-text-counter/styles.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/index.js +202 -0
- package/lib/commonjs/components/modal-create-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/interface.js +2 -0
- package/lib/commonjs/components/modal-create-activitie/interface.js.map +1 -0
- package/lib/commonjs/components/modal-create-activitie/styles.js +42 -0
- package/lib/commonjs/components/modal-create-activitie/styles.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/index.js +202 -0
- package/lib/commonjs/components/modal-journey-rectification/index.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/interface.d.js +2 -0
- package/lib/commonjs/components/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/commonjs/components/modal-journey-rectification/styles.js +42 -0
- package/lib/commonjs/components/modal-journey-rectification/styles.js.map +1 -0
- package/lib/commonjs/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
- package/lib/commonjs/components/modals/modal-activities/data-activities/index.js.map +1 -0
- package/lib/commonjs/components/{modal-activities → modals/modal-activities}/index.js +8 -8
- package/lib/commonjs/components/modals/modal-activities/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activities/interface.d.js +6 -0
- package/lib/commonjs/components/modals/modal-activities/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js +161 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/commonjs/components/{modal-change-activity → modals/modal-change-activity}/index.js +7 -7
- package/lib/commonjs/components/modals/modal-change-activity/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js +95 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js +33 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/commonjs/components/selects/select-option/index.js +41 -39
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +7 -7
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/index.js +32 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js +259 -0
- package/lib/commonjs/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +1 -1
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +198 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
- package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js +86 -0
- package/lib/commonjs/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +172 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/commonjs/stories/select-option/select-option.stories.js +3 -2
- package/lib/commonjs/stories/select-option/select-option.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +18 -2
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/options-activity/index.js +27 -0
- package/lib/commonjs/utils/options-activity/index.js.map +1 -0
- package/lib/commonjs/utils/text-limit/index.js +37 -0
- package/lib/commonjs/utils/text-limit/index.js.map +1 -0
- package/lib/module/components/input-text-counter/index.js +63 -0
- package/lib/module/components/input-text-counter/index.js.map +1 -0
- package/lib/module/components/input-text-counter/interface.d.js.map +1 -0
- package/lib/module/components/input-text-counter/styles.js +37 -0
- package/lib/module/components/input-text-counter/styles.js.map +1 -0
- package/lib/module/components/modal-create-activitie/index.js +192 -0
- package/lib/module/components/modal-create-activitie/index.js.map +1 -0
- package/lib/module/components/modal-create-activitie/interface.js +2 -0
- package/lib/module/components/modal-create-activitie/interface.js.map +1 -0
- package/lib/module/components/modal-create-activitie/styles.js +37 -0
- package/lib/module/components/modal-create-activitie/styles.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/index.js +192 -0
- package/lib/module/components/modal-journey-rectification/index.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/interface.d.js +2 -0
- package/lib/module/components/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/module/components/modal-journey-rectification/styles.js +37 -0
- package/lib/module/components/modal-journey-rectification/styles.js.map +1 -0
- package/lib/module/components/{modal-activities → modals/modal-activities}/data-activities/index.js +2 -2
- package/lib/module/components/modals/modal-activities/data-activities/index.js.map +1 -0
- package/lib/module/components/{modal-activities → modals/modal-activities}/index.js +8 -8
- package/lib/module/components/modals/modal-activities/index.js.map +1 -0
- package/lib/module/components/modals/modal-activities/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activities/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/index.js +151 -0
- package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/module/components/{modal-change-activity → modals/modal-change-activity}/index.js +6 -6
- package/lib/module/components/modals/modal-change-activity/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/index.js +86 -0
- package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js +2 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js +28 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/module/components/selects/select-option/index.js +41 -42
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +7 -7
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/index.js +9 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/input-text-counter/input-text-counter.stories.js +253 -0
- package/lib/module/stories/input-text-counter/input-text-counter.stories.js.map +1 -0
- package/lib/module/stories/modal-activities/modal-activities.stories.js +1 -1
- package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +193 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +3 -3
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -1
- package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js +78 -0
- package/lib/module/stories/modal-create-activitie/modal-create-activitie.stories.js.map +1 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +168 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/module/stories/select-option/select-option.stories.js +1 -1
- package/lib/module/stories/select-option/select-option.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +18 -2
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/options-activity/index.js +22 -0
- package/lib/module/utils/options-activity/index.js.map +1 -0
- package/lib/module/utils/text-limit/index.js +30 -0
- package/lib/module/utils/text-limit/index.js.map +1 -0
- package/lib/typescript/src/components/input-text-counter/index.d.ts +33 -0
- package/lib/typescript/src/components/input-text-counter/styles.d.ts +34 -0
- package/lib/typescript/src/components/modal-create-activitie/index.d.ts +7 -0
- package/lib/typescript/src/components/modal-create-activitie/interface.d.ts +18 -0
- package/lib/typescript/src/components/modal-create-activitie/styles.d.ts +32 -0
- package/lib/typescript/src/components/modal-journey-rectification/index.d.ts +7 -0
- package/lib/typescript/src/components/modal-journey-rectification/styles.d.ts +32 -0
- package/lib/typescript/src/components/modals/modal-activity-reason/index.d.ts +7 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/index.d.ts +12 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/interface.d.ts +21 -0
- package/lib/typescript/src/components/selects/select-date-and-hours/styles.d.ts +24 -0
- package/lib/typescript/src/components/selects/select-option/index.d.ts +3 -6
- package/lib/typescript/src/index.d.ts +7 -3
- package/lib/typescript/src/stories/input-text-counter/input-text-counter.stories.d.ts +17 -0
- package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +1 -1
- package/lib/typescript/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +15 -0
- package/lib/typescript/src/stories/modal-change-activity/modal-change-activity.stories.d.ts +1 -1
- package/lib/typescript/src/stories/modal-create-activitie/modal-create-activitie.stories.d.ts +12 -0
- package/lib/typescript/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +34 -0
- package/lib/typescript/src/stories/select-option/select-option.stories.d.ts +1 -1
- package/lib/typescript/src/styles/global/theme-provider.d.ts +16 -0
- package/lib/typescript/src/styles/theme/theme.d.ts +16 -0
- package/lib/typescript/src/utils/options-activity/index.d.ts +20 -0
- package/lib/typescript/src/utils/text-limit/index.d.ts +13 -0
- package/package.json +1 -1
- package/src/components/input-text-counter/index.tsx +64 -0
- package/src/components/input-text-counter/interface.d.ts +41 -0
- package/src/components/input-text-counter/styles.ts +38 -0
- package/src/components/modal-create-activitie/index.tsx +211 -0
- package/src/components/modal-create-activitie/interface.ts +22 -0
- package/src/components/modal-create-activitie/styles.ts +24 -0
- package/src/components/modal-journey-rectification/index.tsx +211 -0
- package/src/components/modal-journey-rectification/interface.d.ts +22 -0
- package/src/components/modal-journey-rectification/styles.ts +24 -0
- package/src/components/{modal-activities → modals/modal-activities}/data-activities/index.ts +65 -65
- package/src/components/{modal-activities → modals/modal-activities}/index.tsx +137 -137
- package/src/components/{modal-activities → modals/modal-activities}/interface.d.ts +32 -32
- package/src/components/modals/modal-activity-reason/index.tsx +162 -0
- package/src/components/modals/modal-activity-reason/interface.d.ts +10 -0
- package/src/components/{modal-change-activity → modals/modal-change-activity}/index.tsx +6 -6
- package/src/components/selects/select-date-and-hours/index.tsx +97 -0
- package/src/components/selects/select-date-and-hours/interface.ts +31 -0
- package/src/components/selects/select-date-and-hours/styles.ts +24 -0
- package/src/components/selects/select-option/index.tsx +50 -41
- package/src/components/step-indicator/index.tsx +235 -235
- package/src/index.ts +49 -45
- package/src/stories/input-text-counter/input-text-counter.stories.tsx +232 -0
- package/src/stories/modal-activities/modal-activities.stories.tsx +64 -64
- package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +192 -0
- package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +49 -49
- package/src/stories/modal-create-activitie/modal-create-activitie.stories.tsx +82 -0
- package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +161 -0
- package/src/stories/select-option/select-option.stories.tsx +1 -1
- package/src/styles/theme/theme.ts +17 -0
- package/src/utils/options-activity/index.ts +14 -0
- package/src/utils/text-limit/index.ts +28 -0
- package/lib/commonjs/components/modal-activities/data-activities/index.js.map +0 -1
- package/lib/commonjs/components/modal-activities/index.js.map +0 -1
- package/lib/commonjs/components/modal-activities/interface.d.js.map +0 -1
- package/lib/commonjs/components/modal-change-activity/index.js.map +0 -1
- package/lib/module/components/modal-activities/data-activities/index.js.map +0 -1
- package/lib/module/components/modal-activities/index.js.map +0 -1
- package/lib/module/components/modal-activities/interface.d.js.map +0 -1
- package/lib/module/components/modal-change-activity/index.js.map +0 -1
- /package/lib/commonjs/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
- /package/lib/module/components/{modal-activities → input-text-counter}/interface.d.js +0 -0
- /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/data-activities/index.d.ts +0 -0
- /package/lib/typescript/src/components/{modal-activities → modals/modal-activities}/index.d.ts +0 -0
- /package/lib/typescript/src/components/{modal-change-activity → modals/modal-change-activity}/index.d.ts +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
10
|
+
var _asBaseComponent = require("../../@types/as-base-component");
|
|
11
|
+
var _styles = require("./styles");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
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); }
|
|
14
|
+
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; }
|
|
15
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /**
|
|
16
|
+
* IMPORTS
|
|
17
|
+
*/ // components
|
|
18
|
+
// typings
|
|
19
|
+
// styles
|
|
20
|
+
const MAX_LENGTH = 150;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Component input + limitador de carecteres para interação do usuário.
|
|
24
|
+
*/
|
|
25
|
+
const InputTextCounter = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
26
|
+
label,
|
|
27
|
+
onChangeText,
|
|
28
|
+
error = null,
|
|
29
|
+
...props
|
|
30
|
+
}, ref) => {
|
|
31
|
+
const [text, setText] = (0, _react.useState)("");
|
|
32
|
+
const handleChangeText = value => {
|
|
33
|
+
const sliced = value.slice(0, 150);
|
|
34
|
+
setText(sliced);
|
|
35
|
+
onChangeText === null || onChangeText === void 0 || onChangeText(sliced);
|
|
36
|
+
};
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
38
|
+
style: _styles.stylesInput.label
|
|
39
|
+
}, label), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
40
|
+
style: _styles.stylesInput.inputWrapper
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.TextInput, _extends({
|
|
42
|
+
ref: ref,
|
|
43
|
+
multiline: true,
|
|
44
|
+
style: _styles.stylesInput.input,
|
|
45
|
+
placeholderTextColor: "#999",
|
|
46
|
+
maxLength: MAX_LENGTH,
|
|
47
|
+
value: text,
|
|
48
|
+
onChangeText: handleChangeText
|
|
49
|
+
}, props))), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
50
|
+
flexStyle: {
|
|
51
|
+
flexDirection: "row",
|
|
52
|
+
justifyContent: error ? "space-between" : "flex-end"
|
|
53
|
+
}
|
|
54
|
+
}, error && /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
55
|
+
style: _styles.stylesInput.errorText
|
|
56
|
+
}, error), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
57
|
+
style: _styles.stylesInput.charCount
|
|
58
|
+
}, `${text.length}/${MAX_LENGTH}`)));
|
|
59
|
+
});
|
|
60
|
+
InputTextCounter.displayName = "InputTextCounterProps";
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* EXPORTS
|
|
64
|
+
*/
|
|
65
|
+
var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(/*#__PURE__*/_react.default.memo(InputTextCounter));
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_box","_interopRequireDefault","_asBaseComponent","_styles","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_extends","assign","bind","arguments","length","apply","MAX_LENGTH","InputTextCounter","forwardRef","label","onChangeText","error","props","ref","text","setText","useState","handleChangeText","value","sliced","slice","createElement","View","Text","style","stylesInput","inputWrapper","TextInput","multiline","input","placeholderTextColor","maxLength","flexStyle","flexDirection","justifyContent","errorText","charCount","displayName","_default","exports","asBaseComponent","React","memo"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React, { forwardRef, useState } from \"react\";\r\nimport { View, Text, TextInput } from \"react-native\";\r\n\r\n// components\r\nimport Box from \"../box\";\r\n\r\n// typings\r\nimport type { InputTextCounterProps } from \"./interface\";\r\nimport { asBaseComponent } from \"../../@types/as-base-component\";\r\n\r\n// styles\r\nimport { stylesInput } from \"./styles\";\r\nconst MAX_LENGTH = 150;\r\n\r\n/**\r\n * Component input + limitador de carecteres para interação do usuário.\r\n */\r\nconst InputTextCounter = forwardRef<any, InputTextCounterProps>(\r\n ({ label, onChangeText, error = null, ...props }, ref): React.ReactElement => {\r\n const [text, setText] = useState(\"\");\r\n\r\n const handleChangeText = (value: string) => {\r\n const sliced = value.slice(0, 150);\r\n setText(sliced);\r\n onChangeText?.(sliced);\r\n };\r\n\r\n return (\r\n <View>\r\n <Text style={stylesInput.label}>{label}</Text>\r\n\r\n <View style={stylesInput.inputWrapper}>\r\n <TextInput\r\n ref={ref}\r\n multiline\r\n style={stylesInput.input}\r\n placeholderTextColor=\"#999\"\r\n maxLength={MAX_LENGTH}\r\n value={text}\r\n onChangeText={handleChangeText}\r\n {...props}\r\n />\r\n </View>\r\n\r\n <Box\r\n flexStyle={{ flexDirection: \"row\", justifyContent: error ? \"space-between\" : \"flex-end\" }}\r\n >\r\n {error && <Text style={stylesInput.errorText}>{error}</Text>}\r\n <Text style={stylesInput.charCount}>{`${text.length}/${MAX_LENGTH}`}</Text>\r\n </Box>\r\n </View>\r\n );\r\n }\r\n);\r\n\r\nInputTextCounter.displayName = \"InputTextCounterProps\";\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport default asBaseComponent(React.memo(InputTextCounter));\r\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAC,sBAAA,CAAAH,OAAA;AAIA,IAAAI,gBAAA,GAAAJ,OAAA;AAGA,IAAAK,OAAA,GAAAL,OAAA;AAAuC,SAAAG,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAP,wBAAAO,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,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AAS,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,cAAc,EAAEvB,KAAK,GAAG,eAAe,GAAG;IAAW;EAAE,GAEzFA,KAAK,iBAAIvC,MAAA,CAAAU,OAAA,CAAAuC,aAAA,CAAC9C,YAAA,CAAAgD,IAAI;IAACC,KAAK,EAAEC,mBAAW,CAACU;EAAU,GAAExB,KAAY,CAAC,eAC5DvC,MAAA,CAAAU,OAAA,CAAAuC,aAAA,CAAC9C,YAAA,CAAAgD,IAAI;IAACC,KAAK,EAAEC,mBAAW,CAACW;EAAU,GAAE,GAAGtB,IAAI,CAACV,MAAM,IAAIE,UAAU,EAAS,CACvE,CACD,CAAC;AAEX,CACF,CAAC;AAEDC,gBAAgB,CAAC8B,WAAW,GAAG,uBAAuB;;AAEtD;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAAzD,OAAA,GAGe,IAAA0D,gCAAe,eAACC,cAAK,CAACC,IAAI,CAACnC,gBAAgB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport { type TextInputProps, type DimensionValue } from \"react-native\";\r\n\r\ntype InputTextCounterProps = TextInputProps & {\r\n label: string;\r\n backgroundColor?: string;\r\n\r\n error?: string | null;\r\n\r\n /**\r\n * A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.\r\n */\r\n borderStyled?: {\r\n borderStyle?: \"solid\" | \"dotted\" | \"dashed\";\r\n\r\n borderRadius?: number | DimensionValue;\r\n borderTopRightRadius?: number | DimensionValue;\r\n borderTopLeftRadius?: number | DimensionValue;\r\n borderBottomRightRadius?: number | DimensionValue;\r\n borderBottomLeftRadius?: number | DimensionValue;\r\n\r\n borderWidth?: number | DimensionValue;\r\n borderLeftWidth?: number | DimensionValue;\r\n borderRightWidth?: number | DimensionValue;\r\n borderTopWidth?: number | DimensionValue;\r\n borderBottomWidth?: number | DimensionValue;\r\n\r\n borderColor?: string;\r\n borderBottomColor?: string;\r\n borderLeftColor?: string;\r\n borderRightColor?: string;\r\n borderTopColor?: string;\r\n };\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { InputTextCounterProps };\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.stylesInput = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _theme = require("../../styles/theme/theme");
|
|
9
|
+
const stylesInput = exports.stylesInput = _reactNative.StyleSheet.create({
|
|
10
|
+
label: {
|
|
11
|
+
fontFamily: _theme.theme.fonts.inter_regular_400,
|
|
12
|
+
fontSize: _theme.theme.fontSizes.md,
|
|
13
|
+
color: _theme.theme.colors.black[100],
|
|
14
|
+
marginBottom: _theme.theme.margins["1xs"],
|
|
15
|
+
fontWeight: "500"
|
|
16
|
+
},
|
|
17
|
+
inputWrapper: {
|
|
18
|
+
borderColor: _theme.theme.colors.gray[850],
|
|
19
|
+
borderWidth: _theme.theme.borderWidths.thin,
|
|
20
|
+
borderRadius: _theme.theme.borderWidths.thick
|
|
21
|
+
},
|
|
22
|
+
input: {
|
|
23
|
+
fontFamily: _theme.theme.fonts.inter_regular_400,
|
|
24
|
+
fontSize: _theme.theme.fontSizes.sm,
|
|
25
|
+
color: _theme.theme.colors.gray[850],
|
|
26
|
+
padding: _theme.theme.paddings["2xs"],
|
|
27
|
+
textAlignVertical: "top",
|
|
28
|
+
minHeight: 80
|
|
29
|
+
},
|
|
30
|
+
charCount: {
|
|
31
|
+
alignSelf: "flex-end",
|
|
32
|
+
marginTop: _theme.theme.margins["1xs"],
|
|
33
|
+
color: _theme.theme.colors.gray[850],
|
|
34
|
+
fontSize: _theme.theme.fontSizes.sm
|
|
35
|
+
},
|
|
36
|
+
errorText: {
|
|
37
|
+
color: _theme.theme.colors.red[900],
|
|
38
|
+
fontSize: _theme.theme.fontSizes.sm,
|
|
39
|
+
marginTop: _theme.theme.margins["1xs"]
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_theme","stylesInput","exports","StyleSheet","create","label","fontFamily","theme","fonts","inter_regular_400","fontSize","fontSizes","md","color","colors","black","marginBottom","margins","fontWeight","inputWrapper","borderColor","gray","borderWidth","borderWidths","thin","borderRadius","thick","input","sm","padding","paddings","textAlignVertical","minHeight","charCount","alignSelf","marginTop","errorText","red"],"sources":["styles.ts"],"sourcesContent":["import { StyleSheet } from \"react-native\";\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nconst stylesInput = StyleSheet.create({\r\n label: {\r\n fontFamily: theme.fonts.inter_regular_400,\r\n fontSize: theme.fontSizes.md,\r\n color: theme.colors.black[100],\r\n marginBottom: theme.margins[\"1xs\"],\r\n fontWeight: \"500\",\r\n },\r\n inputWrapper: {\r\n borderColor: theme.colors.gray[850],\r\n borderWidth: theme.borderWidths.thin,\r\n borderRadius: theme.borderWidths.thick,\r\n },\r\n input: {\r\n fontFamily: theme.fonts.inter_regular_400,\r\n fontSize: theme.fontSizes.sm,\r\n color: theme.colors.gray[850],\r\n padding: theme.paddings[\"2xs\"],\r\n textAlignVertical: \"top\",\r\n minHeight: 80,\r\n },\r\n charCount: {\r\n alignSelf: \"flex-end\",\r\n marginTop: theme.margins[\"1xs\"],\r\n color: theme.colors.gray[850],\r\n fontSize: theme.fontSizes.sm,\r\n },\r\n errorText: {\r\n color: theme.colors.red[900],\r\n fontSize: theme.fontSizes.sm,\r\n marginTop: theme.margins[\"1xs\"],\r\n },\r\n});\r\n\r\nexport { stylesInput };\r\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;A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Q,EAAEH,YAAK,CAACI,SAAS,CAACiB,EAAE;IAC5BO,SAAS,EAAE5B,YAAK,CAACU,OAAO,CAAC,KAAK;EAChC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _box = _interopRequireDefault(require("..//box"));
|
|
10
|
+
var _button = require("../button");
|
|
11
|
+
var _typography = require("../typography");
|
|
12
|
+
var _selectDateAndHours = _interopRequireDefault(require("../selects/select-date-and-hours"));
|
|
13
|
+
var _selectOption = _interopRequireDefault(require("../selects/select-option"));
|
|
14
|
+
var _iconsSvg = require("../../common/icons-svg");
|
|
15
|
+
var _asBaseComponent = require("../../@types/as-base-component");
|
|
16
|
+
var _optionsActivity = require("../../utils/options-activity");
|
|
17
|
+
var _theme = require("../../styles/theme/theme");
|
|
18
|
+
var _styles = require("./styles");
|
|
19
|
+
var _formatData = require("../../utils/format-data");
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
|
+
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); }
|
|
22
|
+
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; }
|
|
23
|
+
/**
|
|
24
|
+
* IMPORTS
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
// components
|
|
28
|
+
|
|
29
|
+
// commons
|
|
30
|
+
|
|
31
|
+
// helpers
|
|
32
|
+
|
|
33
|
+
// typings
|
|
34
|
+
|
|
35
|
+
// styles / theme
|
|
36
|
+
|
|
37
|
+
const ModalCreteActivitie = /*#__PURE__*/_react.default.memo(({
|
|
38
|
+
visible,
|
|
39
|
+
onClose,
|
|
40
|
+
onPressConfirm,
|
|
41
|
+
textTitle
|
|
42
|
+
}) => {
|
|
43
|
+
var _OPTIONS$0$value, _OPTIONS$;
|
|
44
|
+
const [dateAndHours, setDateAndHours] = (0, _react.useState)({
|
|
45
|
+
date: (0, _formatData.formatDate)(new Date()),
|
|
46
|
+
hours: (0, _formatData.formHoursMinute)(String(new Date().getHours() * 3600 + new Date().getMinutes() * 60))
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// estados controlados mínimos
|
|
50
|
+
const [selectedActivitie, setSelectedActivitie] = (0, _react.useState)((_OPTIONS$0$value = (_OPTIONS$ = _optionsActivity.OPTIONS[0]) === null || _OPTIONS$ === void 0 ? void 0 : _OPTIONS$.value) !== null && _OPTIONS$0$value !== void 0 ? _OPTIONS$0$value : null);
|
|
51
|
+
|
|
52
|
+
// label do motivo derivada com memo
|
|
53
|
+
const activitieLabel = (0, _react.useMemo)(() => {
|
|
54
|
+
var _OPTIONS$find$label, _OPTIONS$find;
|
|
55
|
+
return (_OPTIONS$find$label = (_OPTIONS$find = _optionsActivity.OPTIONS.find(activitie => activitie.value === selectedActivitie)) === null || _OPTIONS$find === void 0 ? void 0 : _OPTIONS$find.label) !== null && _OPTIONS$find$label !== void 0 ? _OPTIONS$find$label : null;
|
|
56
|
+
}, [selectedActivitie]);
|
|
57
|
+
|
|
58
|
+
// handlers estáveis
|
|
59
|
+
const handleChangeReason = (0, _react.useCallback)(value => {
|
|
60
|
+
setSelectedActivitie(value);
|
|
61
|
+
}, []);
|
|
62
|
+
const handleCancel = (0, _react.useCallback)(() => {
|
|
63
|
+
onClose === null || onClose === void 0 || onClose();
|
|
64
|
+
}, [onClose]);
|
|
65
|
+
const handleConfirm = (0, _react.useCallback)(() => {
|
|
66
|
+
onPressConfirm === null || onPressConfirm === void 0 || onPressConfirm({
|
|
67
|
+
reasonValue: selectedActivitie,
|
|
68
|
+
label: activitieLabel,
|
|
69
|
+
dateAndHours: dateAndHours
|
|
70
|
+
});
|
|
71
|
+
onClose === null || onClose === void 0 || onClose();
|
|
72
|
+
}, [onPressConfirm, onClose, activitieLabel, selectedActivitie, dateAndHours]);
|
|
73
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Modal, {
|
|
74
|
+
animationType: "fade",
|
|
75
|
+
transparent: true,
|
|
76
|
+
visible: visible,
|
|
77
|
+
onRequestClose: handleCancel,
|
|
78
|
+
statusBarTranslucent: true
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
|
|
80
|
+
style: _styles.styles.overlay,
|
|
81
|
+
onPress: handleCancel
|
|
82
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
83
|
+
width: "90%",
|
|
84
|
+
backgroundColor: _theme.theme.colors.orange[500],
|
|
85
|
+
borderStyled: {
|
|
86
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
87
|
+
},
|
|
88
|
+
paddingStyle: {
|
|
89
|
+
paddingLeft: _theme.theme.paddings["2xs"],
|
|
90
|
+
paddingRight: _theme.theme.paddings["2xs"],
|
|
91
|
+
paddingTop: _theme.theme.paddings.sm,
|
|
92
|
+
paddingBottom: _theme.theme.paddings.sm
|
|
93
|
+
}
|
|
94
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
95
|
+
style: _styles.styles.headerRow
|
|
96
|
+
}, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
97
|
+
icon: "EXCLAMATION_TRIANGLE",
|
|
98
|
+
color: _theme.theme.colors.orange[500],
|
|
99
|
+
background: _theme.theme.colors.neutral[300],
|
|
100
|
+
size: 22
|
|
101
|
+
}), /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
102
|
+
text: textTitle !== null && textTitle !== void 0 ? textTitle : "Incluir atividade",
|
|
103
|
+
color: _theme.theme.colors.neutral[25],
|
|
104
|
+
marginLeft: _theme.theme.margins["2xs"],
|
|
105
|
+
fontFamily: _theme.theme.fonts.inter_bold,
|
|
106
|
+
fontWeight: "700",
|
|
107
|
+
size: _theme.theme.fontSizes.lg
|
|
108
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
109
|
+
backgroundColor: _theme.theme.colors.neutral[300],
|
|
110
|
+
paddingStyle: {
|
|
111
|
+
padding: _theme.theme.paddings.xs
|
|
112
|
+
},
|
|
113
|
+
borderStyled: {
|
|
114
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
115
|
+
}
|
|
116
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
117
|
+
text: "Preencha os dados da atividade que deseja incluir.",
|
|
118
|
+
color: _theme.theme.colors.black[100],
|
|
119
|
+
fontFamily: _theme.theme.fonts.inter_regular_400,
|
|
120
|
+
fontWeight: "400",
|
|
121
|
+
lineHeight: _theme.theme.lineHeight["2xl"],
|
|
122
|
+
size: _theme.theme.fontSizes.sm,
|
|
123
|
+
marginBottom: 16
|
|
124
|
+
}), /*#__PURE__*/_react.default.createElement(_selectOption.default, {
|
|
125
|
+
titleLabel: "Selecione um motivo",
|
|
126
|
+
sizeTitleLabel: 18,
|
|
127
|
+
dataOption: _optionsActivity.OPTIONS,
|
|
128
|
+
handleSelectDown: handleChangeReason,
|
|
129
|
+
backgroundColor: _theme.theme.colors.neutral[300]
|
|
130
|
+
}), /*#__PURE__*/_react.default.createElement(_selectDateAndHours.default, {
|
|
131
|
+
disabled: false,
|
|
132
|
+
icon: "CALENDAR",
|
|
133
|
+
value: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.date,
|
|
134
|
+
onPressConfirm: value => setDateAndHours({
|
|
135
|
+
date: value,
|
|
136
|
+
hours: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.hours
|
|
137
|
+
})
|
|
138
|
+
}), /*#__PURE__*/_react.default.createElement(_selectDateAndHours.default, {
|
|
139
|
+
disabled: false,
|
|
140
|
+
icon: "TIMER",
|
|
141
|
+
value: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.hours,
|
|
142
|
+
onPressConfirm: value => setDateAndHours({
|
|
143
|
+
date: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.date,
|
|
144
|
+
hours: value
|
|
145
|
+
})
|
|
146
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
147
|
+
style: _styles.styles.actions
|
|
148
|
+
}, /*#__PURE__*/_react.default.createElement(_button.Button, {
|
|
149
|
+
title: "CANCELAR",
|
|
150
|
+
onPress: handleCancel,
|
|
151
|
+
width: "48%",
|
|
152
|
+
height: 40,
|
|
153
|
+
isLoading: false,
|
|
154
|
+
disabled: false,
|
|
155
|
+
backgroundColor: _theme.theme.colors.neutral[300],
|
|
156
|
+
buttonTextStyle: {
|
|
157
|
+
color: _theme.theme.colors.blue[500],
|
|
158
|
+
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
159
|
+
fontSize: _theme.theme.fontSizes.xs,
|
|
160
|
+
fontWeight: "500"
|
|
161
|
+
},
|
|
162
|
+
flexStyle: {
|
|
163
|
+
flexDirection: "row",
|
|
164
|
+
alignItems: "center",
|
|
165
|
+
justifyContent: "center",
|
|
166
|
+
textAlign: "center"
|
|
167
|
+
},
|
|
168
|
+
borderStyled: {
|
|
169
|
+
borderWidth: _theme.theme.borderWidths.thin,
|
|
170
|
+
borderColor: _theme.theme.colors.blue[100],
|
|
171
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
172
|
+
}
|
|
173
|
+
}), /*#__PURE__*/_react.default.createElement(_button.Button, {
|
|
174
|
+
title: "CONFIRMAR",
|
|
175
|
+
onPress: handleConfirm,
|
|
176
|
+
width: "48%",
|
|
177
|
+
height: 40,
|
|
178
|
+
isLoading: false,
|
|
179
|
+
disabled: false,
|
|
180
|
+
backgroundColor: _theme.theme.colors.blue[500],
|
|
181
|
+
buttonTextStyle: {
|
|
182
|
+
color: _theme.theme.colors.neutral[25],
|
|
183
|
+
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
184
|
+
fontSize: _theme.theme.fontSizes.xs,
|
|
185
|
+
fontWeight: "500"
|
|
186
|
+
},
|
|
187
|
+
flexStyle: {
|
|
188
|
+
flexDirection: "row",
|
|
189
|
+
alignItems: "center",
|
|
190
|
+
justifyContent: "center",
|
|
191
|
+
textAlign: "center"
|
|
192
|
+
},
|
|
193
|
+
borderStyled: {
|
|
194
|
+
borderWidth: _theme.theme.borderWidths.thin,
|
|
195
|
+
borderColor: _theme.theme.colors.blue[100],
|
|
196
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
197
|
+
}
|
|
198
|
+
}))))));
|
|
199
|
+
});
|
|
200
|
+
ModalCreteActivitie.displayName = "ModalCreteActivitie";
|
|
201
|
+
var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(ModalCreteActivitie);
|
|
202
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_box","_interopRequireDefault","_button","_typography","_selectDateAndHours","_selectOption","_iconsSvg","_asBaseComponent","_optionsActivity","_theme","_styles","_formatData","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ModalCreteActivitie","React","memo","visible","onClose","onPressConfirm","textTitle","_OPTIONS$0$value","_OPTIONS$","dateAndHours","setDateAndHours","useState","date","formatDate","Date","hours","formHoursMinute","String","getHours","getMinutes","selectedActivitie","setSelectedActivitie","OPTIONS","value","activitieLabel","useMemo","_OPTIONS$find$label","_OPTIONS$find","find","activitie","label","handleChangeReason","useCallback","handleCancel","handleConfirm","reasonValue","createElement","Modal","animationType","transparent","onRequestClose","statusBarTranslucent","Pressable","style","styles","overlay","onPress","width","backgroundColor","theme","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","View","headerRow","Icons","icon","color","background","neutral","size","Typography","text","marginLeft","margins","fontFamily","fonts","inter_bold","fontWeight","fontSizes","lg","padding","xs","black","inter_regular_400","lineHeight","marginBottom","titleLabel","sizeTitleLabel","dataOption","handleSelectDown","disabled","actions","Button","title","height","isLoading","buttonTextStyle","blue","inter_medium_500","fontSize","flexStyle","flexDirection","alignItems","justifyContent","textAlign","borderWidth","thin","borderColor","displayName","_default","exports","asBaseComponent"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React, { useMemo, useState, useCallback } from \"react\";\r\nimport { Modal, View, Pressable } from \"react-native\";\r\n\r\n// components\r\nimport Box from \"..//box\";\r\nimport { Button }from \"../button\";\r\n\r\nimport { Typography } from \"../typography\";\r\n\r\nimport ActivityFields from \"../selects/select-date-and-hours\";\r\n\r\nimport SelectOption from \"../selects/select-option\";\r\n\r\n// commons\r\nimport { Icons } from \"../../common/icons-svg\";\r\nimport { asBaseComponent } from \"../../@types/as-base-component\";\r\n\r\n// helpers\r\nimport { OPTIONS } from \"../../utils/options-activity\";\r\n\r\n// typings\r\nimport type { IDateAndHoursProps, IModalCreateActivitieProps } from \"./interface\";\r\n\r\n// styles / theme\r\nimport { theme } from \"../../styles/theme/theme\";\r\nimport { styles } from \"./styles\";\r\nimport { formatDate, formHoursMinute } from \"../../utils/format-data\";\r\n\r\nconst ModalCreteActivitie: React.FC<IModalCreateActivitieProps<any>> = React.memo(\r\n ({ visible, onClose, onPressConfirm, textTitle }) => {\r\n const [dateAndHours, setDateAndHours] = useState<IDateAndHoursProps>({\r\n date: formatDate(new Date()),\r\n hours: formHoursMinute(String(new Date().getHours() * 3600 + new Date().getMinutes() * 60)),\r\n });\r\n\r\n // estados controlados mínimos\r\n const [selectedActivitie, setSelectedActivitie] = useState<string | null>(\r\n OPTIONS[0]?.value ?? null\r\n );\r\n\r\n // label do motivo derivada com memo\r\n const activitieLabel = useMemo(\r\n () => OPTIONS.find((activitie) => activitie.value === selectedActivitie)?.label ?? null,\r\n [selectedActivitie]\r\n );\r\n\r\n // handlers estáveis\r\n const handleChangeReason = useCallback((value: string | null) => {\r\n setSelectedActivitie(value);\r\n }, []);\r\n\r\n const handleCancel = useCallback(() => {\r\n onClose?.();\r\n }, [onClose]);\r\n\r\n const handleConfirm = useCallback(() => {\r\n onPressConfirm?.({\r\n reasonValue: selectedActivitie,\r\n label: activitieLabel,\r\n dateAndHours: dateAndHours,\r\n });\r\n\r\n onClose?.();\r\n }, [onPressConfirm, onClose, activitieLabel, selectedActivitie, dateAndHours]);\r\n\r\n return (\r\n <Modal\r\n animationType=\"fade\"\r\n transparent\r\n visible={visible}\r\n onRequestClose={handleCancel}\r\n statusBarTranslucent\r\n >\r\n <Pressable style={styles.overlay} onPress={handleCancel}>\r\n <Box\r\n width=\"90%\"\r\n backgroundColor={theme.colors.orange[500]}\r\n borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}\r\n paddingStyle={{\r\n paddingLeft: theme.paddings[\"2xs\"],\r\n paddingRight: theme.paddings[\"2xs\"],\r\n paddingTop: theme.paddings.sm,\r\n paddingBottom: theme.paddings.sm,\r\n }}\r\n >\r\n <View style={styles.headerRow}>\r\n <Icons\r\n icon=\"EXCLAMATION_TRIANGLE\"\r\n color={theme.colors.orange[500]}\r\n background={theme.colors.neutral[300]}\r\n size={22}\r\n />\r\n <Typography\r\n text={textTitle ?? \"Incluir atividade\"}\r\n color={theme.colors.neutral[25]}\r\n marginLeft={theme.margins[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_bold}\r\n fontWeight=\"700\"\r\n size={theme.fontSizes.lg}\r\n />\r\n </View>\r\n\r\n <Box\r\n backgroundColor={theme.colors.neutral[300]}\r\n paddingStyle={{ padding: theme.paddings.xs }}\r\n borderStyled={{ borderRadius: theme.borderWidths.thick_medium }}\r\n >\r\n <Typography\r\n text=\"Preencha os dados da atividade que deseja incluir.\"\r\n color={theme.colors.black[100]}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n fontWeight=\"400\"\r\n lineHeight={theme.lineHeight[\"2xl\"]}\r\n size={theme.fontSizes.sm}\r\n marginBottom={16}\r\n />\r\n\r\n <SelectOption\r\n titleLabel=\"Selecione um motivo\"\r\n sizeTitleLabel={18}\r\n dataOption={OPTIONS as any}\r\n handleSelectDown={handleChangeReason}\r\n backgroundColor={theme.colors.neutral[300]}\r\n />\r\n\r\n <ActivityFields\r\n disabled={false}\r\n icon={\"CALENDAR\"}\r\n value={dateAndHours?.date}\r\n onPressConfirm={(value) =>\r\n setDateAndHours({ date: value, hours: dateAndHours?.hours })\r\n }\r\n />\r\n\r\n <ActivityFields\r\n disabled={false}\r\n icon={\"TIMER\"}\r\n value={dateAndHours?.hours}\r\n onPressConfirm={(value) =>\r\n setDateAndHours({ date: dateAndHours?.date, hours: value })\r\n }\r\n />\r\n\r\n <View style={styles.actions}>\r\n <Button\r\n title=\"CANCELAR\"\r\n onPress={handleCancel}\r\n width=\"48%\"\r\n height={40}\r\n isLoading={false}\r\n disabled={false}\r\n backgroundColor={theme.colors.neutral[300]}\r\n buttonTextStyle={{\r\n color: theme.colors.blue[500],\r\n fontFamily: theme.fonts.inter_medium_500,\r\n fontSize: theme.fontSizes.xs,\r\n fontWeight: \"500\",\r\n }}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n textAlign: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: theme.colors.blue[100],\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n />\r\n\r\n <Button\r\n title=\"CONFIRMAR\"\r\n onPress={handleConfirm}\r\n width=\"48%\"\r\n height={40}\r\n isLoading={false}\r\n disabled={false}\r\n backgroundColor={theme.colors.blue[500]}\r\n buttonTextStyle={{\r\n color: theme.colors.neutral[25],\r\n fontFamily: theme.fonts.inter_medium_500,\r\n fontSize: theme.fontSizes.xs,\r\n fontWeight: \"500\",\r\n }}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n textAlign: \"center\",\r\n }}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderColor: theme.colors.blue[100],\r\n borderRadius: theme.borderWidths.thick_medium,\r\n }}\r\n />\r\n </View>\r\n </Box>\r\n </Box>\r\n </Pressable>\r\n </Modal>\r\n );\r\n }\r\n);\r\n\r\nModalCreteActivitie.displayName = \"ModalCreteActivitie\";\r\nexport default asBaseComponent(ModalCreteActivitie);\r\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAEA,IAAAK,WAAA,GAAAL,OAAA;AAEA,IAAAM,mBAAA,GAAAH,sBAAA,CAAAH,OAAA;AAEA,IAAAO,aAAA,GAAAJ,sBAAA,CAAAH,OAAA;AAGA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,gBAAA,GAAAT,OAAA;AAGA,IAAAU,gBAAA,GAAAV,OAAA;AAMA,IAAAW,MAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AACA,IAAAa,WAAA,GAAAb,OAAA;AAAsE,SAAAG,uBAAAW,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;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I,CAAC,GAAG,CAAE;IACxCD,eAAe,EAAE;MACf9B,KAAK,EAAElB,YAAK,CAACC,MAAM,CAACmB,OAAO,CAAC,EAAE,CAAC;MAC/BM,UAAU,EAAE1B,YAAK,CAAC2B,KAAK,CAACuB,gBAAgB;MACxCC,QAAQ,EAAEnD,YAAK,CAAC8B,SAAS,CAACG,EAAE;MAC5BJ,UAAU,EAAE;IACd,CAAE;IACFuB,SAAS,EAAE;MACTC,aAAa,EAAE,KAAK;MACpBC,UAAU,EAAE,QAAQ;MACpBC,cAAc,EAAE,QAAQ;MACxBC,SAAS,EAAE;IACb,CAAE;IACFrD,YAAY,EAAE;MACZsD,WAAW,EAAEzD,YAAK,CAACK,YAAY,CAACqD,IAAI;MACpCC,WAAW,EAAE3D,YAAK,CAACC,MAAM,CAACgD,IAAI,CAAC,GAAG,CAAC;MACnC7C,YAAY,EAAEJ,YAAK,CAACK,YAAY,CAACC;IACnC;EAAE,CACH,CACG,CACH,CACF,CACI,CACN,CAAC;AAEZ,CACF,CAAC;AAEDvD,mBAAmB,CAAC6G,WAAW,GAAG,qBAAqB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjI,OAAA,GACzC,IAAAkI,gCAAe,EAAChH,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.ts"],"sourcesContent":["/* eslint-disable no-unused-vars */\r\n/**\r\n * IMPORTS\r\n */\r\n\r\ntype IModalCreateActivitieProps<T> = {\r\n visible: boolean;\r\n textTitle?: string;\r\n options?: T;\r\n onClose: () => void;\r\n onPressConfirm: (value: T) => void;\r\n};\r\n\r\ntype IDateAndHoursProps = {\r\n date: string;\r\n hours: string;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport type { IModalCreateActivitieProps, IDateAndHoursProps };\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.styles = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _theme = require("../../styles/theme/theme");
|
|
9
|
+
/**
|
|
10
|
+
* IMPORTS
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
14
|
+
overlay: {
|
|
15
|
+
flex: 1,
|
|
16
|
+
justifyContent: "center",
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
backgroundColor: _theme.theme.shadows.z1
|
|
19
|
+
},
|
|
20
|
+
card: {
|
|
21
|
+
width: "90%"
|
|
22
|
+
},
|
|
23
|
+
headerRow: {
|
|
24
|
+
marginBottom: 10,
|
|
25
|
+
marginLeft: 4,
|
|
26
|
+
flexDirection: "row",
|
|
27
|
+
alignItems: "center"
|
|
28
|
+
},
|
|
29
|
+
content: {
|
|
30
|
+
padding: _theme.theme.paddings.xs
|
|
31
|
+
},
|
|
32
|
+
actions: {
|
|
33
|
+
marginTop: 16,
|
|
34
|
+
flexDirection: "row",
|
|
35
|
+
justifyContent: "space-between"
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* EXPORTS
|
|
41
|
+
*/
|
|
42
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_theme","styles","exports","StyleSheet","create","overlay","flex","justifyContent","alignItems","backgroundColor","theme","shadows","z1","card","width","headerRow","marginBottom","marginLeft","flexDirection","content","padding","paddings","xs","actions","marginTop"],"sources":["styles.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\n\r\nimport { StyleSheet } from \"react-native\";\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nconst styles = StyleSheet.create({\r\n overlay: {\r\n flex: 1,\r\n justifyContent: \"center\",\r\n alignItems: \"center\",\r\n backgroundColor: theme.shadows.z1,\r\n },\r\n card: { width: \"90%\" },\r\n headerRow: { marginBottom: 10, marginLeft: 4, flexDirection: \"row\", alignItems: \"center\" },\r\n content: { padding: theme.paddings.xs },\r\n actions: { marginTop: 16, flexDirection: \"row\", justifyContent: \"space-between\" },\r\n});\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { styles };\r\n"],"mappings":";;;;;;AAIA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AALA;AACA;AACA;;AAKA,MAAME,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/BC,OAAO,EAAE;IACPC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAEC,YAAK,CAACC,OAAO,CAACC;EACjC,CAAC;EACDC,IAAI,EAAE;IAAEC,KAAK,EAAE;EAAM,CAAC;EACtBC,SAAS,EAAE;IAAEC,YAAY,EAAE,EAAE;IAAEC,UAAU,EAAE,CAAC;IAAEC,aAAa,EAAE,KAAK;IAAEV,UAAU,EAAE;EAAS,CAAC;EAC1FW,OAAO,EAAE;IAAEC,OAAO,EAAEV,YAAK,CAACW,QAAQ,CAACC;EAAG,CAAC;EACvCC,OAAO,EAAE;IAAEC,SAAS,EAAE,EAAE;IAAEN,aAAa,EAAE,KAAK;IAAEX,cAAc,EAAE;EAAgB;AAClF,CAAC,CAAC;;AAEF;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _box = _interopRequireDefault(require("..//box"));
|
|
10
|
+
var _button = require("../button");
|
|
11
|
+
var _typography = require("../typography");
|
|
12
|
+
var _selectDateAndHours = _interopRequireDefault(require("../selects/select-date-and-hours"));
|
|
13
|
+
var _selectOption = _interopRequireDefault(require("../selects/select-option"));
|
|
14
|
+
var _iconsSvg = require("../../common/icons-svg");
|
|
15
|
+
var _asBaseComponent = require("../../@types/as-base-component");
|
|
16
|
+
var _optionsActivity = require("../../utils/options-activity");
|
|
17
|
+
var _theme = require("../../styles/theme/theme");
|
|
18
|
+
var _styles = require("./styles");
|
|
19
|
+
var _formatData = require("../../utils/format-data");
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
|
+
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); }
|
|
22
|
+
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; }
|
|
23
|
+
/**
|
|
24
|
+
* IMPORTS
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
// components
|
|
28
|
+
|
|
29
|
+
// commons
|
|
30
|
+
|
|
31
|
+
// helpers
|
|
32
|
+
|
|
33
|
+
// typings
|
|
34
|
+
|
|
35
|
+
// styles / theme
|
|
36
|
+
|
|
37
|
+
const ModalJourneyRectification = /*#__PURE__*/_react.default.memo(({
|
|
38
|
+
visible,
|
|
39
|
+
onClose,
|
|
40
|
+
onPressConfirm,
|
|
41
|
+
textTitle
|
|
42
|
+
}) => {
|
|
43
|
+
var _OPTIONS$0$value, _OPTIONS$;
|
|
44
|
+
const [dateAndHours, setDateAndHours] = (0, _react.useState)({
|
|
45
|
+
date: (0, _formatData.formatDate)(new Date()),
|
|
46
|
+
hours: (0, _formatData.formHoursMinute)(String(new Date().getHours() * 3600 + new Date().getMinutes() * 60))
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// estados controlados mínimos
|
|
50
|
+
const [selectedActivitie, setSelectedActivitie] = (0, _react.useState)((_OPTIONS$0$value = (_OPTIONS$ = _optionsActivity.OPTIONS[0]) === null || _OPTIONS$ === void 0 ? void 0 : _OPTIONS$.value) !== null && _OPTIONS$0$value !== void 0 ? _OPTIONS$0$value : null);
|
|
51
|
+
|
|
52
|
+
// label do motivo derivada com memo
|
|
53
|
+
const activitieLabel = (0, _react.useMemo)(() => {
|
|
54
|
+
var _OPTIONS$find$label, _OPTIONS$find;
|
|
55
|
+
return (_OPTIONS$find$label = (_OPTIONS$find = _optionsActivity.OPTIONS.find(activitie => activitie.value === selectedActivitie)) === null || _OPTIONS$find === void 0 ? void 0 : _OPTIONS$find.label) !== null && _OPTIONS$find$label !== void 0 ? _OPTIONS$find$label : null;
|
|
56
|
+
}, [selectedActivitie]);
|
|
57
|
+
|
|
58
|
+
// handlers estáveis
|
|
59
|
+
const handleChangeReason = (0, _react.useCallback)(value => {
|
|
60
|
+
setSelectedActivitie(value);
|
|
61
|
+
}, []);
|
|
62
|
+
const handleCancel = (0, _react.useCallback)(() => {
|
|
63
|
+
onClose === null || onClose === void 0 || onClose();
|
|
64
|
+
}, [onClose]);
|
|
65
|
+
const handleConfirm = (0, _react.useCallback)(() => {
|
|
66
|
+
onPressConfirm === null || onPressConfirm === void 0 || onPressConfirm({
|
|
67
|
+
reasonValue: selectedActivitie,
|
|
68
|
+
label: activitieLabel,
|
|
69
|
+
dateAndHours: dateAndHours
|
|
70
|
+
});
|
|
71
|
+
onClose === null || onClose === void 0 || onClose();
|
|
72
|
+
}, [onPressConfirm, onClose, activitieLabel, selectedActivitie, dateAndHours]);
|
|
73
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.Modal, {
|
|
74
|
+
animationType: "fade",
|
|
75
|
+
transparent: true,
|
|
76
|
+
visible: visible,
|
|
77
|
+
onRequestClose: handleCancel,
|
|
78
|
+
statusBarTranslucent: true
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
|
|
80
|
+
style: _styles.styles.overlay,
|
|
81
|
+
onPress: handleCancel
|
|
82
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
83
|
+
width: "90%",
|
|
84
|
+
backgroundColor: _theme.theme.colors.orange[500],
|
|
85
|
+
borderStyled: {
|
|
86
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
87
|
+
},
|
|
88
|
+
paddingStyle: {
|
|
89
|
+
paddingLeft: _theme.theme.paddings["2xs"],
|
|
90
|
+
paddingRight: _theme.theme.paddings["2xs"],
|
|
91
|
+
paddingTop: _theme.theme.paddings.sm,
|
|
92
|
+
paddingBottom: _theme.theme.paddings.sm
|
|
93
|
+
}
|
|
94
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
95
|
+
style: _styles.styles.headerRow
|
|
96
|
+
}, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
97
|
+
icon: "EXCLAMATION_TRIANGLE",
|
|
98
|
+
color: _theme.theme.colors.orange[500],
|
|
99
|
+
background: _theme.theme.colors.neutral[300],
|
|
100
|
+
size: 22
|
|
101
|
+
}), /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
102
|
+
text: textTitle !== null && textTitle !== void 0 ? textTitle : "Editar atividad",
|
|
103
|
+
color: _theme.theme.colors.neutral[25],
|
|
104
|
+
marginLeft: _theme.theme.margins["2xs"],
|
|
105
|
+
fontFamily: _theme.theme.fonts.inter_bold,
|
|
106
|
+
fontWeight: "700",
|
|
107
|
+
size: _theme.theme.fontSizes.lg
|
|
108
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
109
|
+
backgroundColor: _theme.theme.colors.neutral[300],
|
|
110
|
+
paddingStyle: {
|
|
111
|
+
padding: _theme.theme.paddings.xs
|
|
112
|
+
},
|
|
113
|
+
borderStyled: {
|
|
114
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
115
|
+
}
|
|
116
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
117
|
+
text: "Confirme as altera\xE7\xF5es antes de salvar.",
|
|
118
|
+
color: _theme.theme.colors.black[100],
|
|
119
|
+
fontFamily: _theme.theme.fonts.inter_regular_400,
|
|
120
|
+
fontWeight: "400",
|
|
121
|
+
lineHeight: _theme.theme.lineHeight["2xl"],
|
|
122
|
+
size: _theme.theme.fontSizes.sm,
|
|
123
|
+
marginBottom: 16
|
|
124
|
+
}), /*#__PURE__*/_react.default.createElement(_selectOption.default, {
|
|
125
|
+
titleLabel: "Selecione um motivo",
|
|
126
|
+
sizeTitleLabel: 18,
|
|
127
|
+
dataOption: _optionsActivity.OPTIONS,
|
|
128
|
+
handleSelectDown: handleChangeReason,
|
|
129
|
+
backgroundColor: _theme.theme.colors.neutral[300]
|
|
130
|
+
}), /*#__PURE__*/_react.default.createElement(_selectDateAndHours.default, {
|
|
131
|
+
disabled: false,
|
|
132
|
+
icon: "CALENDAR",
|
|
133
|
+
value: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.date,
|
|
134
|
+
onPressConfirm: value => setDateAndHours({
|
|
135
|
+
date: value,
|
|
136
|
+
hours: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.hours
|
|
137
|
+
})
|
|
138
|
+
}), /*#__PURE__*/_react.default.createElement(_selectDateAndHours.default, {
|
|
139
|
+
disabled: false,
|
|
140
|
+
icon: "TIMER",
|
|
141
|
+
value: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.hours,
|
|
142
|
+
onPressConfirm: value => setDateAndHours({
|
|
143
|
+
date: dateAndHours === null || dateAndHours === void 0 ? void 0 : dateAndHours.date,
|
|
144
|
+
hours: value
|
|
145
|
+
})
|
|
146
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
147
|
+
style: _styles.styles.actions
|
|
148
|
+
}, /*#__PURE__*/_react.default.createElement(_button.Button, {
|
|
149
|
+
title: "CANCELAR",
|
|
150
|
+
onPress: handleCancel,
|
|
151
|
+
width: "48%",
|
|
152
|
+
height: 40,
|
|
153
|
+
isLoading: false,
|
|
154
|
+
disabled: false,
|
|
155
|
+
backgroundColor: _theme.theme.colors.neutral[300],
|
|
156
|
+
buttonTextStyle: {
|
|
157
|
+
color: _theme.theme.colors.blue[500],
|
|
158
|
+
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
159
|
+
fontSize: _theme.theme.fontSizes.xs,
|
|
160
|
+
fontWeight: "500"
|
|
161
|
+
},
|
|
162
|
+
flexStyle: {
|
|
163
|
+
flexDirection: "row",
|
|
164
|
+
alignItems: "center",
|
|
165
|
+
justifyContent: "center",
|
|
166
|
+
textAlign: "center"
|
|
167
|
+
},
|
|
168
|
+
borderStyled: {
|
|
169
|
+
borderWidth: _theme.theme.borderWidths.thin,
|
|
170
|
+
borderColor: _theme.theme.colors.blue[100],
|
|
171
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
172
|
+
}
|
|
173
|
+
}), /*#__PURE__*/_react.default.createElement(_button.Button, {
|
|
174
|
+
title: "CONFIRMAR",
|
|
175
|
+
onPress: handleConfirm,
|
|
176
|
+
width: "48%",
|
|
177
|
+
height: 40,
|
|
178
|
+
isLoading: false,
|
|
179
|
+
disabled: false,
|
|
180
|
+
backgroundColor: _theme.theme.colors.blue[500],
|
|
181
|
+
buttonTextStyle: {
|
|
182
|
+
color: _theme.theme.colors.neutral[25],
|
|
183
|
+
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
184
|
+
fontSize: _theme.theme.fontSizes.xs,
|
|
185
|
+
fontWeight: "500"
|
|
186
|
+
},
|
|
187
|
+
flexStyle: {
|
|
188
|
+
flexDirection: "row",
|
|
189
|
+
alignItems: "center",
|
|
190
|
+
justifyContent: "center",
|
|
191
|
+
textAlign: "center"
|
|
192
|
+
},
|
|
193
|
+
borderStyled: {
|
|
194
|
+
borderWidth: _theme.theme.borderWidths.thin,
|
|
195
|
+
borderColor: _theme.theme.colors.blue[100],
|
|
196
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
197
|
+
}
|
|
198
|
+
}))))));
|
|
199
|
+
});
|
|
200
|
+
ModalJourneyRectification.displayName = "ModalJourneyRectification";
|
|
201
|
+
var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(ModalJourneyRectification);
|
|
202
|
+
//# sourceMappingURL=index.js.map
|