react-native-exp-fig 0.1.26 → 0.1.28
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/activity-timeline/components/activite-row/index.js +130 -0
- package/lib/commonjs/components/activity-timeline/components/activite-row/index.js.map +1 -0
- package/lib/commonjs/components/activity-timeline/index.js +78 -0
- package/lib/commonjs/components/activity-timeline/index.js.map +1 -0
- package/lib/commonjs/components/activity-timeline/interface.js +6 -0
- package/lib/commonjs/components/activity-timeline/interface.js.map +1 -0
- package/lib/commonjs/components/activity-timeline/styles.js +84 -0
- package/lib/commonjs/components/activity-timeline/styles.js.map +1 -0
- 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 +39 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/activity-timeline/activity-timeline.stories.js +82 -0
- package/lib/commonjs/stories/activity-timeline/activity-timeline.stories.js.map +1 -0
- 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/activity-timeline/components/activite-row/index.js +123 -0
- package/lib/module/components/activity-timeline/components/activite-row/index.js.map +1 -0
- package/lib/module/components/activity-timeline/index.js +70 -0
- package/lib/module/components/activity-timeline/index.js.map +1 -0
- package/lib/module/components/activity-timeline/interface.js +2 -0
- package/lib/module/components/activity-timeline/interface.js.map +1 -0
- package/lib/module/components/activity-timeline/styles.js +78 -0
- package/lib/module/components/activity-timeline/styles.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 +10 -5
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/activity-timeline/activity-timeline.stories.js +75 -0
- package/lib/module/stories/activity-timeline/activity-timeline.stories.js.map +1 -0
- 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/activity-timeline/components/activite-row/index.d.ts +10 -0
- package/lib/typescript/src/components/activity-timeline/index.d.ts +16 -0
- package/lib/typescript/src/components/activity-timeline/interface.d.ts +39 -0
- package/lib/typescript/src/components/activity-timeline/styles.d.ts +71 -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 +8 -3
- package/lib/typescript/src/stories/activity-timeline/activity-timeline.stories.d.ts +8 -0
- 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/activity-timeline/components/activite-row/index.tsx +133 -0
- package/src/components/activity-timeline/index.tsx +72 -0
- package/src/components/activity-timeline/interface.ts +53 -0
- package/src/components/activity-timeline/styles.ts +69 -0
- 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 +50 -45
- package/src/stories/activity-timeline/activity-timeline.stories.tsx +90 -0
- 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,130 @@
|
|
|
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 _typography = require("../../../../components/typography");
|
|
10
|
+
var _iconsSvg = require("../../../../common/icons-svg");
|
|
11
|
+
var _asBaseComponent = require("../../../../@types/as-base-component");
|
|
12
|
+
var _theme = require("../../../../styles/theme/theme");
|
|
13
|
+
var _styles = require("../../styles");
|
|
14
|
+
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); }
|
|
15
|
+
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; }
|
|
16
|
+
/**
|
|
17
|
+
* IMPORTS
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
// components
|
|
21
|
+
|
|
22
|
+
// commons / svg
|
|
23
|
+
|
|
24
|
+
// typings
|
|
25
|
+
|
|
26
|
+
// styles
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Componente ActivityRows para a interação da ui.
|
|
30
|
+
*/
|
|
31
|
+
const ActivityRows = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
32
|
+
index,
|
|
33
|
+
activities,
|
|
34
|
+
items,
|
|
35
|
+
onAdd,
|
|
36
|
+
onEdit,
|
|
37
|
+
onDelete
|
|
38
|
+
}, ref) => {
|
|
39
|
+
var _activities$date, _activities$time, _activities$title;
|
|
40
|
+
const handleAdd = (0, _react.useCallback)(() => onAdd(activities), [onAdd, activities]);
|
|
41
|
+
const handleEdit = (0, _react.useCallback)(() => onEdit(activities), [onEdit, activities]);
|
|
42
|
+
const handleDelete = (0, _react.useCallback)(() => onDelete(activities), [onDelete, activities]);
|
|
43
|
+
const isInvalid = !!activities.invalid;
|
|
44
|
+
const dateText = activities.date instanceof Date ? `${String(activities.date.getDate()).padStart(2, "0")}/${String(activities.date.getMonth() + 1).padStart(2, "0")}/${activities.date.getFullYear()}` : String((_activities$date = activities.date) !== null && _activities$date !== void 0 ? _activities$date : "");
|
|
45
|
+
const timeText = activities.time instanceof Date ? `${String(activities.time.getHours()).padStart(2, "0")}:${String(activities.time.getMinutes()).padStart(2, "0")}` : String((_activities$time = activities.time) !== null && _activities$time !== void 0 ? _activities$time : "");
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
47
|
+
ref: ref,
|
|
48
|
+
style: _styles.styles.row
|
|
49
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
50
|
+
style: _styles.styles.badge
|
|
51
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
52
|
+
text: String(index + 1),
|
|
53
|
+
color: _theme.theme.colors.neutral[25],
|
|
54
|
+
size: _theme.theme.fontSizes.sm,
|
|
55
|
+
fontFamily: _theme.theme.fonts.inter_bold_700
|
|
56
|
+
})), Boolean(index !== (items === null || items === void 0 ? void 0 : items.length) - 1) && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
57
|
+
style: {
|
|
58
|
+
width: 2,
|
|
59
|
+
height: 76,
|
|
60
|
+
backgroundColor: _theme.theme.colors.blue[500],
|
|
61
|
+
position: "absolute",
|
|
62
|
+
left: 21,
|
|
63
|
+
top: 60
|
|
64
|
+
}
|
|
65
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
66
|
+
style: _styles.styles.card
|
|
67
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
68
|
+
numberOfLines: 1,
|
|
69
|
+
style: _styles.styles.title,
|
|
70
|
+
text: (_activities$title = activities.title) !== null && _activities$title !== void 0 ? _activities$title : "Não informada",
|
|
71
|
+
color: isInvalid ? _theme.theme.colors.red[900] : _theme.theme.colors.blue[500],
|
|
72
|
+
size: 14,
|
|
73
|
+
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
74
|
+
lineHeight: 34
|
|
75
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
76
|
+
style: [_styles.styles.pill, isInvalid ? _styles.styles.pillInvalid : _styles.styles.pillOk]
|
|
77
|
+
}, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
78
|
+
icon: "CALENDAR",
|
|
79
|
+
size: 18,
|
|
80
|
+
color: isInvalid ? _theme.theme.colors.red[900] : _theme.theme.colors.blue[500]
|
|
81
|
+
}), /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
82
|
+
text: dateText,
|
|
83
|
+
color: isInvalid ? _theme.theme.colors.red[800] : _theme.theme.colors.blue[400],
|
|
84
|
+
size: _theme.theme.fontSizes.xs,
|
|
85
|
+
fontFamily: _theme.theme.fonts.inter_medium_500
|
|
86
|
+
}), /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
87
|
+
text: "|",
|
|
88
|
+
color: isInvalid ? _theme.theme.colors.red[800] : _theme.theme.colors.blue[400],
|
|
89
|
+
size: _theme.theme.fontSizes.sm,
|
|
90
|
+
style: _styles.styles.sep
|
|
91
|
+
}), /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
92
|
+
text: timeText,
|
|
93
|
+
color: isInvalid ? _theme.theme.colors.red[800] : _theme.theme.colors.blue[500],
|
|
94
|
+
size: _theme.theme.fontSizes.xs,
|
|
95
|
+
fontFamily: _theme.theme.fonts.inter_medium_500
|
|
96
|
+
}))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
97
|
+
style: _styles.styles.actions
|
|
98
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
99
|
+
style: _styles.styles.iconButton,
|
|
100
|
+
onPress: handleEdit,
|
|
101
|
+
testID: "edit-activity"
|
|
102
|
+
}, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
103
|
+
icon: "NOTE_PINCEL",
|
|
104
|
+
size: 18,
|
|
105
|
+
color: _theme.theme.colors.blue[350]
|
|
106
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
107
|
+
style: _styles.styles.iconButton,
|
|
108
|
+
onPress: handleAdd,
|
|
109
|
+
testID: "add-after-activity"
|
|
110
|
+
}, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
111
|
+
icon: "PLUS",
|
|
112
|
+
size: 18,
|
|
113
|
+
color: _theme.theme.colors.green[500]
|
|
114
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
115
|
+
style: _styles.styles.iconButton,
|
|
116
|
+
onPress: handleDelete,
|
|
117
|
+
testID: "delete-activity"
|
|
118
|
+
}, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
119
|
+
icon: "X_CIRCLE",
|
|
120
|
+
size: 18,
|
|
121
|
+
color: _theme.theme.colors.red[900]
|
|
122
|
+
}))));
|
|
123
|
+
});
|
|
124
|
+
ActivityRows.displayName = "ActivityRows";
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* EXPORTS
|
|
128
|
+
*/
|
|
129
|
+
var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(ActivityRows);
|
|
130
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_typography","_iconsSvg","_asBaseComponent","_theme","_styles","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ActivityRows","forwardRef","index","activities","items","onAdd","onEdit","onDelete","ref","_activities$date","_activities$time","_activities$title","handleAdd","useCallback","handleEdit","handleDelete","isInvalid","invalid","dateText","date","Date","String","getDate","padStart","getMonth","getFullYear","timeText","time","getHours","getMinutes","createElement","View","style","styles","row","badge","Typography","text","color","theme","colors","neutral","size","fontSizes","sm","fontFamily","fonts","inter_bold_700","Boolean","length","width","height","backgroundColor","blue","position","left","top","card","numberOfLines","title","red","inter_medium_500","lineHeight","pill","pillInvalid","pillOk","Icons","icon","xs","sep","actions","TouchableOpacity","iconButton","onPress","testID","green","displayName","_default","exports","asBaseComponent"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React, { forwardRef, useCallback } from \"react\";\r\nimport { TouchableOpacity, View } from \"react-native\";\r\n\r\n// components\r\nimport { Typography } from \"../../../../components/typography\";\r\n\r\n// commons / svg\r\nimport { Icons } from \"../../../../common/icons-svg\";\r\n\r\n// typings\r\nimport type { IActivitieRowProps } from \"../../interface\";\r\nimport { asBaseComponent } from \"../../../../@types/as-base-component\";\r\n\r\n// styles\r\nimport { theme } from \"../../../../styles/theme/theme\";\r\nimport { styles } from \"../../styles\";\r\n\r\n/**\r\n * Componente ActivityRows para a interação da ui.\r\n */\r\nconst ActivityRows = forwardRef<any, IActivitieRowProps<any>>(\r\n ({ index, activities, items, onAdd, onEdit, onDelete }, ref): React.ReactElement => {\r\n const handleAdd = useCallback(() => onAdd(activities), [onAdd, activities]);\r\n const handleEdit = useCallback(() => onEdit(activities), [onEdit, activities]);\r\n const handleDelete = useCallback(() => onDelete(activities), [onDelete, activities]);\r\n\r\n const isInvalid = !!activities.invalid;\r\n\r\n const dateText =\r\n activities.date instanceof Date\r\n ? `${String(activities.date.getDate()).padStart(2, \"0\")}/${String(\r\n activities.date.getMonth() + 1\r\n ).padStart(2, \"0\")}/${activities.date.getFullYear()}`\r\n : String(activities.date ?? \"\");\r\n\r\n const timeText =\r\n activities.time instanceof Date\r\n ? `${String(activities.time.getHours()).padStart(2, \"0\")}:${String(\r\n activities.time.getMinutes()\r\n ).padStart(2, \"0\")}`\r\n : String(activities.time ?? \"\");\r\n\r\n return (\r\n <View ref={ref} style={styles.row}>\r\n <View style={styles.badge}>\r\n <Typography\r\n text={String(index + 1)}\r\n color={theme.colors.neutral[25]}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n />\r\n </View>\r\n\r\n {Boolean(index !== items?.length - 1) && (\r\n <View\r\n style={{\r\n width: 2,\r\n height: 76,\r\n backgroundColor: theme.colors.blue[500],\r\n position: \"absolute\",\r\n left: 21,\r\n top: 60,\r\n }}\r\n />\r\n )}\r\n\r\n <View style={styles.card}>\r\n <Typography\r\n numberOfLines={1}\r\n style={styles.title}\r\n text={activities.title ?? \"Não informada\"}\r\n color={isInvalid ? theme.colors.red[900] : theme.colors.blue[500]}\r\n size={14}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n lineHeight={34}\r\n />\r\n\r\n <View style={[styles.pill, isInvalid ? styles.pillInvalid : styles.pillOk]}>\r\n <Icons\r\n icon=\"CALENDAR\"\r\n size={18}\r\n color={isInvalid ? theme.colors.red[900] : theme.colors.blue[500]}\r\n />\r\n <Typography\r\n text={dateText}\r\n color={isInvalid ? theme.colors.red[800] : theme.colors.blue[400]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n />\r\n <Typography\r\n text=\"|\"\r\n color={isInvalid ? theme.colors.red[800] : theme.colors.blue[400]}\r\n size={theme.fontSizes.sm}\r\n style={styles.sep}\r\n />\r\n <Typography\r\n text={timeText}\r\n color={isInvalid ? theme.colors.red[800] : theme.colors.blue[500]}\r\n size={theme.fontSizes.xs}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n />\r\n </View>\r\n </View>\r\n\r\n <View style={styles.actions}>\r\n <TouchableOpacity style={styles.iconButton} onPress={handleEdit} testID=\"edit-activity\">\r\n <Icons icon=\"NOTE_PINCEL\" size={18} color={theme.colors.blue[350]} />\r\n </TouchableOpacity>\r\n\r\n <TouchableOpacity style={styles.iconButton} onPress={handleAdd} testID=\"add-after-activity\">\r\n {/* Não há PLUS_CONTAINER, usando PLUS como alternativa visual */}\r\n <Icons icon=\"PLUS\" size={18} color={theme.colors.green[500]} />\r\n </TouchableOpacity>\r\n\r\n <TouchableOpacity style={styles.iconButton} onPress={handleDelete} testID=\"delete-activity\">\r\n {/* Não há TRASH, usando X_CIRCLE como alternativa de remover */}\r\n <Icons icon=\"X_CIRCLE\" size={18} color={theme.colors.red[900]} />\r\n </TouchableOpacity>\r\n </View>\r\n </View>\r\n );\r\n }\r\n);\r\n\r\nActivityRows.displayName = \"ActivityRows\";\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport default asBaseComponent(ActivityRows);"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,WAAA,GAAAF,OAAA;AAGA,IAAAG,SAAA,GAAAH,OAAA;AAIA,IAAAI,gBAAA,GAAAJ,OAAA;AAGA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AAAsC,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,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e,OAAA,CAAA4C,aAAA,CAACxD,YAAA,CAAAiG,gBAAgB;IAACvC,KAAK,EAAEC,cAAM,CAACuC,UAAW;IAACC,OAAO,EAAE7D,SAAU;IAAC8D,MAAM,EAAC;EAAoB,gBAEzFvG,MAAA,CAAAe,OAAA,CAAA4C,aAAA,CAACtD,SAAA,CAAA0F,KAAK;IAACC,IAAI,EAAC,MAAM;IAACzB,IAAI,EAAE,EAAG;IAACJ,KAAK,EAAEC,YAAK,CAACC,MAAM,CAACmC,KAAK,CAAC,GAAG;EAAE,CAAE,CAC9C,CAAC,eAEnBxG,MAAA,CAAAe,OAAA,CAAA4C,aAAA,CAACxD,YAAA,CAAAiG,gBAAgB;IAACvC,KAAK,EAAEC,cAAM,CAACuC,UAAW;IAACC,OAAO,EAAE1D,YAAa;IAAC2D,MAAM,EAAC;EAAiB,gBAEzFvG,MAAA,CAAAe,OAAA,CAAA4C,aAAA,CAACtD,SAAA,CAAA0F,KAAK;IAACC,IAAI,EAAC,UAAU;IAACzB,IAAI,EAAE,EAAG;IAACJ,KAAK,EAAEC,YAAK,CAACC,MAAM,CAACoB,GAAG,CAAC,GAAG;EAAE,CAAE,CAChD,CACd,CACF,CAAC;AAEX,CACF,CAAC;AAED5D,YAAY,CAAC4E,WAAW,GAAG,cAAc;;AAEzC;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAA5F,OAAA,GAGe,IAAA6F,gCAAe,EAAC/E,YAAY,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,78 @@
|
|
|
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 _activiteRow = _interopRequireDefault(require("./components/activite-row"));
|
|
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
|
+
/**
|
|
16
|
+
* IMPORTS
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
// components
|
|
20
|
+
|
|
21
|
+
// typings
|
|
22
|
+
|
|
23
|
+
// styles
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Componente ActivityTimeline para a interação da ui.
|
|
27
|
+
*/
|
|
28
|
+
const ActivityTimeline = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
29
|
+
data,
|
|
30
|
+
onAdd,
|
|
31
|
+
onEdit,
|
|
32
|
+
onDelete,
|
|
33
|
+
showIndexBadge = true,
|
|
34
|
+
testID = "activity-timeline"
|
|
35
|
+
}, ref) => {
|
|
36
|
+
const keyExtractor = (0, _react.useCallback)(it => String(it.id), []);
|
|
37
|
+
const renderItem = (0, _react.useCallback)(({
|
|
38
|
+
item,
|
|
39
|
+
index
|
|
40
|
+
}) => /*#__PURE__*/_react.default.createElement(_activiteRow.default, {
|
|
41
|
+
index: index,
|
|
42
|
+
items: data,
|
|
43
|
+
activities: item,
|
|
44
|
+
onAdd: onAdd,
|
|
45
|
+
onEdit: onEdit,
|
|
46
|
+
onDelete: onDelete,
|
|
47
|
+
showIndexBadge: showIndexBadge
|
|
48
|
+
}), [onAdd, onEdit, onDelete, showIndexBadge]);
|
|
49
|
+
const getItemLayout = (0, _react.useCallback)((_, index) => ({
|
|
50
|
+
length: _styles.ROW_HEIGHT,
|
|
51
|
+
offset: _styles.ROW_HEIGHT * index,
|
|
52
|
+
index
|
|
53
|
+
}), []);
|
|
54
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
55
|
+
ref: ref,
|
|
56
|
+
testID: testID,
|
|
57
|
+
data: data,
|
|
58
|
+
keyExtractor: keyExtractor,
|
|
59
|
+
renderItem: renderItem,
|
|
60
|
+
contentContainerStyle: _styles.styles.listContainer,
|
|
61
|
+
getItemLayout: getItemLayout,
|
|
62
|
+
initialNumToRender: 10,
|
|
63
|
+
maxToRenderPerBatch: 10,
|
|
64
|
+
removeClippedSubviews: true,
|
|
65
|
+
windowSize: 7,
|
|
66
|
+
ListEmptyComponent: /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
67
|
+
style: {
|
|
68
|
+
height: 8
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* EXPORTS
|
|
76
|
+
*/
|
|
77
|
+
var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(ActivityTimeline);
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_activiteRow","_interopRequireDefault","_asBaseComponent","_styles","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ActivityTimeline","forwardRef","data","onAdd","onEdit","onDelete","showIndexBadge","testID","ref","keyExtractor","useCallback","it","String","id","renderItem","item","index","createElement","items","activities","getItemLayout","_","length","ROW_HEIGHT","offset","FlatList","contentContainerStyle","styles","listContainer","initialNumToRender","maxToRenderPerBatch","removeClippedSubviews","windowSize","ListEmptyComponent","View","style","height","_default","exports","asBaseComponent"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React, { forwardRef, useCallback } from \"react\";\r\nimport { View, FlatList } from \"react-native\";\r\n\r\n// components\r\nimport ActivityRows from \"./components/activite-row\";\r\n\r\n// typings\r\nimport type { ActivityItemModel, ActivityTimelineProps } from \"./interface\";\r\nimport { asBaseComponent } from \"../../@types/as-base-component\";\r\n\r\n// styles\r\nimport { styles, ROW_HEIGHT } from \"./styles\";\r\n\r\n/**\r\n * Componente ActivityTimeline para a interação da ui.\r\n */\r\nconst ActivityTimeline = forwardRef<any, ActivityTimelineProps<any>>(\r\n (\r\n { data, onAdd, onEdit, onDelete, showIndexBadge = true, testID = \"activity-timeline\" },\r\n ref\r\n ): React.ReactElement => {\r\n const keyExtractor = useCallback((it: ActivityItemModel) => String(it.id), []);\r\n\r\n const renderItem = useCallback(\r\n ({ item, index }: { item: ActivityItemModel; index: number }) => (\r\n <ActivityRows\r\n index={index}\r\n items={data}\r\n activities={item}\r\n onAdd={onAdd}\r\n onEdit={onEdit}\r\n onDelete={onDelete}\r\n showIndexBadge={showIndexBadge}\r\n />\r\n ),\r\n [onAdd, onEdit, onDelete, showIndexBadge]\r\n );\r\n\r\n const getItemLayout = useCallback(\r\n (_: any, index: number) => ({\r\n length: ROW_HEIGHT,\r\n offset: ROW_HEIGHT * index,\r\n index,\r\n }),\r\n []\r\n );\r\n return (\r\n <FlatList\r\n ref={ref}\r\n testID={testID}\r\n data={data}\r\n keyExtractor={keyExtractor}\r\n renderItem={renderItem}\r\n contentContainerStyle={styles.listContainer}\r\n getItemLayout={getItemLayout}\r\n initialNumToRender={10}\r\n maxToRenderPerBatch={10}\r\n removeClippedSubviews\r\n windowSize={7}\r\n ListEmptyComponent={<View style={{ height: 8 }} />}\r\n />\r\n );\r\n }\r\n);\r\n\r\n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AA,CAAAkD,QAAQ;IACPjB,GAAG,EAAEA,GAAI;IACTD,MAAM,EAAEA,MAAO;IACfL,IAAI,EAAEA,IAAK;IACXO,YAAY,EAAEA,YAAa;IAC3BK,UAAU,EAAEA,UAAW;IACvBY,qBAAqB,EAAEC,cAAM,CAACC,aAAc;IAC5CR,aAAa,EAAEA,aAAc;IAC7BS,kBAAkB,EAAE,EAAG;IACvBC,mBAAmB,EAAE,EAAG;IACxBC,qBAAqB;IACrBC,UAAU,EAAE,CAAE;IACdC,kBAAkB,eAAE7D,MAAA,CAAAU,OAAA,CAAAmC,aAAA,CAAC1C,YAAA,CAAA2D,IAAI;MAACC,KAAK,EAAE;QAAEC,MAAM,EAAE;MAAE;IAAE,CAAE;EAAE,CACpD,CAAC;AAEN,CACF,CAAC;;AAED;AACA;AACA;AAFA,IAAAC,QAAA,GAAAC,OAAA,CAAAxD,OAAA,GAGe,IAAAyD,gCAAe,EAACvC,gBAAgB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport type { TouchableOpacityProps } from \"react-native\";\r\nimport type { SVG_NAME } from \"../../common/icons-svg/constants\";\r\n\r\n/**\r\n * TYPES\r\n */\r\ntype ActivityId = string | number;\r\n\r\ntype ActivityItemModel = {\r\n id: ActivityId;\r\n title: string; // \"Operação com veículo\", \"Refeição\", ...\r\n date: Date | string; // pode vir Date ou string já formatada\r\n time: Date | string; // idem\r\n invalid?: boolean; // destaca em vermelho\r\n};\r\n\r\ntype IconName = keyof typeof SVG_NAME;\r\n\r\ntype OnActivity = (item: ActivityItemModel) => void;\r\n\r\ntype ActivityTimelineProps<T> = TouchableOpacityProps & {\r\n data: T[];\r\n onAdd: OnActivity; // add novo após o item\r\n onEdit: OnActivity;\r\n onDelete: OnActivity;\r\n showIndexBadge?: boolean; // mostra o “3/4/5”\r\n testID?: string;\r\n};\r\n\r\ntype IActivitieRowProps<T> = {\r\n index: number;\r\n activities: ActivityItemModel;\r\n items: T[];\r\n onAdd: OnActivity;\r\n onEdit: OnActivity;\r\n onDelete: OnActivity;\r\n showIndexBadge?: boolean;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport type {\r\n ActivityId,\r\n ActivityItemModel,\r\n IconName,\r\n OnActivity,\r\n ActivityTimelineProps,\r\n IActivitieRowProps,\r\n};"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.styles = exports.ROW_HEIGHT = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _theme = require("../../styles/theme/theme");
|
|
9
|
+
/**
|
|
10
|
+
* IMPORTS
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const ROW_HEIGHT = exports.ROW_HEIGHT = 72;
|
|
14
|
+
const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
15
|
+
listContainer: {
|
|
16
|
+
paddingVertical: 8
|
|
17
|
+
},
|
|
18
|
+
row: {
|
|
19
|
+
width: "100%",
|
|
20
|
+
minHeight: ROW_HEIGHT,
|
|
21
|
+
paddingVertical: 8,
|
|
22
|
+
paddingHorizontal: 8,
|
|
23
|
+
flexDirection: "row",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
justifyContent: "center",
|
|
26
|
+
gap: 6
|
|
27
|
+
},
|
|
28
|
+
badge: {
|
|
29
|
+
width: 28,
|
|
30
|
+
height: 28,
|
|
31
|
+
borderRadius: 14,
|
|
32
|
+
backgroundColor: _theme.theme.colors.blue[500],
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
justifyContent: "center"
|
|
35
|
+
},
|
|
36
|
+
card: {
|
|
37
|
+
flex: 1,
|
|
38
|
+
borderRadius: 10
|
|
39
|
+
},
|
|
40
|
+
title: {
|
|
41
|
+
marginBottom: 6
|
|
42
|
+
},
|
|
43
|
+
pill: {
|
|
44
|
+
flexDirection: "row",
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
borderWidth: 1,
|
|
47
|
+
borderRadius: 10,
|
|
48
|
+
paddingHorizontal: 10,
|
|
49
|
+
paddingVertical: 8,
|
|
50
|
+
gap: 4
|
|
51
|
+
},
|
|
52
|
+
pillOk: {
|
|
53
|
+
backgroundColor: "#F3F3F5",
|
|
54
|
+
borderColor: "#C4D4E5"
|
|
55
|
+
},
|
|
56
|
+
pillInvalid: {
|
|
57
|
+
backgroundColor: "#FDE7E7",
|
|
58
|
+
borderColor: _theme.theme.colors.red[900]
|
|
59
|
+
},
|
|
60
|
+
sep: {
|
|
61
|
+
marginHorizontal: 8,
|
|
62
|
+
opacity: 0.5
|
|
63
|
+
},
|
|
64
|
+
actions: {
|
|
65
|
+
flexDirection: "row",
|
|
66
|
+
gap: 8
|
|
67
|
+
},
|
|
68
|
+
iconButton: {
|
|
69
|
+
width: 36,
|
|
70
|
+
height: 36,
|
|
71
|
+
borderRadius: 8,
|
|
72
|
+
backgroundColor: _theme.theme.colors.neutral[25],
|
|
73
|
+
borderWidth: 1,
|
|
74
|
+
borderColor: _theme.theme.colors.neutral[200],
|
|
75
|
+
alignItems: "center",
|
|
76
|
+
justifyContent: "center",
|
|
77
|
+
marginTop: 36
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* EXPORTS
|
|
83
|
+
*/
|
|
84
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_theme","ROW_HEIGHT","exports","styles","StyleSheet","create","listContainer","paddingVertical","row","width","minHeight","paddingHorizontal","flexDirection","alignItems","justifyContent","gap","badge","height","borderRadius","backgroundColor","theme","colors","blue","card","flex","title","marginBottom","pill","borderWidth","pillOk","borderColor","pillInvalid","red","sep","marginHorizontal","opacity","actions","iconButton","neutral","marginTop"],"sources":["styles.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport { StyleSheet } from \"react-native\";\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nexport const ROW_HEIGHT = 72;\r\n\r\nconst styles = StyleSheet.create({\r\n listContainer: { paddingVertical: 8 },\r\n row: {\r\n width: \"100%\",\r\n minHeight: ROW_HEIGHT,\r\n paddingVertical: 8,\r\n paddingHorizontal: 8,\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n gap: 6,\r\n },\r\n badge: {\r\n width: 28,\r\n height: 28,\r\n borderRadius: 14,\r\n backgroundColor: theme.colors.blue[500],\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n },\r\n card: {\r\n flex: 1,\r\n borderRadius: 10,\r\n },\r\n title: { marginBottom: 6 },\r\n pill: {\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n borderWidth: 1,\r\n borderRadius: 10,\r\n paddingHorizontal: 10,\r\n paddingVertical: 8,\r\n gap: 4,\r\n },\r\n pillOk: {\r\n backgroundColor: \"#F3F3F5\",\r\n borderColor: \"#C4D4E5\",\r\n },\r\n pillInvalid: {\r\n backgroundColor: \"#FDE7E7\",\r\n borderColor: theme.colors.red[900],\r\n },\r\n sep: { marginHorizontal: 8, opacity: 0.5 },\r\n actions: { flexDirection: \"row\", gap: 8 },\r\n iconButton: {\r\n width: 36,\r\n height: 36,\r\n borderRadius: 8,\r\n backgroundColor: theme.colors.neutral[25],\r\n borderWidth: 1,\r\n borderColor: theme.colors.neutral[200],\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n marginTop: 36,\r\n },\r\n});\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { styles };"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAJA;AACA;AACA;;AAIO,MAAME,UAAU,GAAAC,OAAA,C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AAE,KAAK;IAAEG,GAAG,EAAE;EAAE,CAAC;EACzCsB,UAAU,EAAE;IACV5B,KAAK,EAAE,EAAE;IACTQ,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACfC,eAAe,EAAEC,YAAK,CAACC,MAAM,CAACiB,OAAO,CAAC,EAAE,CAAC;IACzCV,WAAW,EAAE,CAAC;IACdE,WAAW,EAAEV,YAAK,CAACC,MAAM,CAACiB,OAAO,CAAC,GAAG,CAAC;IACtCzB,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxByB,SAAS,EAAE;EACb;AACF,CAAC,CAAC;;AAEF;AACA;AACA","ignoreList":[]}
|
|
@@ -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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AC,eAEPxC,MAAA,CAAAU,OAAA,CAAAuC,aAAA,CAAC7C,IAAA,CAAAM,OAAG;IACFkD,SAAS,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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