react-native-exp-fig 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/@types/as-base-component.js +12 -0
- package/lib/commonjs/@types/as-base-component.js.map +1 -0
- package/lib/commonjs/common/icons-svg/constants/index.js +2 -1
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/eclamation-triangle/index.js +33 -0
- package/lib/commonjs/common/icons-svg/eclamation-triangle/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/index.js +8 -0
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/truck/index.js +2 -2
- package/lib/commonjs/common/icons-svg/truck/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/index.js +9 -9
- package/lib/commonjs/components/activities-daily/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/index.js +14 -14
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/index.js +4 -4
- package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
- package/lib/commonjs/components/box/index.js +27 -22
- package/lib/commonjs/components/box/index.js.map +1 -1
- package/lib/commonjs/components/box/interface.d.js.map +1 -1
- package/lib/commonjs/components/box/styles.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +16 -16
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-hours/index.js +3 -3
- package/lib/commonjs/components/card-hours/index.js.map +1 -1
- package/lib/commonjs/components/card-loading/index.js +13 -13
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-scheduled-journey/index.js +6 -6
- package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +12 -12
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/check-box/index.js +5 -5
- package/lib/commonjs/components/check-box/index.js.map +1 -1
- package/lib/commonjs/components/coil/index.js +5 -5
- package/lib/commonjs/components/coil/index.js.map +1 -1
- package/lib/commonjs/components/filter-date-selector/index.js +2 -2
- package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
- package/lib/commonjs/components/header-profile/index.js +8 -8
- package/lib/commonjs/components/header-profile/index.js.map +1 -1
- package/lib/commonjs/components/history-activities-card/index.js +198 -0
- package/lib/commonjs/components/history-activities-card/index.js.map +1 -0
- package/lib/commonjs/components/history-activities-card/interface.js +6 -0
- package/lib/commonjs/components/history-activities-card/interface.js.map +1 -0
- package/lib/commonjs/components/history-details/index.js +5 -5
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/index.js +2 -2
- package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/commonjs/components/input/index.js +11 -11
- package/lib/commonjs/components/input/index.js.map +1 -1
- package/lib/commonjs/components/loading-details/index.js +10 -10
- package/lib/commonjs/components/loading-details/index.js.map +1 -1
- package/lib/commonjs/components/loading-progress/index.js +5 -5
- package/lib/commonjs/components/loading-progress/index.js.map +1 -1
- package/lib/commonjs/components/menu-item/index.js +3 -3
- package/lib/commonjs/components/menu-item/index.js.map +1 -1
- package/lib/commonjs/components/modal-activities/index.js +5 -5
- package/lib/commonjs/components/modal-activities/index.js.map +1 -1
- package/lib/commonjs/components/modal-change-activity/index.js +217 -0
- package/lib/commonjs/components/modal-change-activity/index.js.map +1 -0
- package/lib/commonjs/components/no-data/index.js +2 -2
- package/lib/commonjs/components/no-data/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/index.js +12 -12
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/index.js +3 -3
- package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
- package/lib/commonjs/components/scheduled-journey-indicators/index.js +4 -4
- package/lib/commonjs/components/scheduled-journey-indicators/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/index.js +28 -11
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +45 -7
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/user-profile/index.js +9 -9
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/helpers/text-utils.js +21 -0
- package/lib/commonjs/helpers/text-utils.js.map +1 -0
- package/lib/commonjs/index.js +17 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/box/box.stories.js +2 -2
- package/lib/commonjs/stories/box/box.stories.js.map +1 -1
- package/lib/commonjs/stories/history-activities-card/history-activities-card.stories.js +104 -0
- package/lib/commonjs/stories/history-activities-card/history-activities-card.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js +52 -0
- package/lib/commonjs/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -0
- package/lib/commonjs/utils/get-icon-by-property/index.js.map +1 -1
- package/lib/module/@types/as-base-component.js +6 -0
- package/lib/module/@types/as-base-component.js.map +1 -0
- package/lib/module/common/icons-svg/constants/index.js +2 -1
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/eclamation-triangle/index.js +25 -0
- package/lib/module/common/icons-svg/eclamation-triangle/index.js.map +1 -0
- package/lib/module/common/icons-svg/index.js +8 -0
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/truck/index.js +2 -2
- package/lib/module/common/icons-svg/truck/index.js.map +1 -1
- package/lib/module/components/activities-daily/index.js +5 -5
- package/lib/module/components/activities-daily/index.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +5 -5
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/avatar-profile/index.js +1 -1
- package/lib/module/components/avatar-profile/index.js.map +1 -1
- package/lib/module/components/box/index.js +24 -21
- package/lib/module/components/box/index.js.map +1 -1
- package/lib/module/components/box/interface.d.js.map +1 -1
- package/lib/module/components/box/styles.js.map +1 -1
- package/lib/module/components/card-history/index.js +8 -8
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-hours/index.js +1 -1
- package/lib/module/components/card-hours/index.js.map +1 -1
- package/lib/module/components/card-loading/index.js +1 -1
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-scheduled-journey/index.js +1 -1
- package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +1 -1
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/check-box/index.js +1 -1
- package/lib/module/components/check-box/index.js.map +1 -1
- package/lib/module/components/coil/index.js +1 -1
- package/lib/module/components/coil/index.js.map +1 -1
- package/lib/module/components/filter-date-selector/index.js +1 -1
- package/lib/module/components/filter-date-selector/index.js.map +1 -1
- package/lib/module/components/header-profile/index.js +1 -1
- package/lib/module/components/header-profile/index.js.map +1 -1
- package/lib/module/components/history-activities-card/index.js +190 -0
- package/lib/module/components/history-activities-card/index.js.map +1 -0
- package/lib/module/components/history-activities-card/interface.js +2 -0
- package/lib/module/components/history-activities-card/interface.js.map +1 -0
- package/lib/module/components/history-details/index.js +1 -1
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/index.js +1 -1
- package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/module/components/input/index.js +1 -1
- package/lib/module/components/input/index.js.map +1 -1
- package/lib/module/components/loading-details/index.js +5 -5
- package/lib/module/components/loading-details/index.js.map +1 -1
- package/lib/module/components/loading-progress/index.js +1 -1
- package/lib/module/components/loading-progress/index.js.map +1 -1
- package/lib/module/components/menu-item/index.js +1 -1
- package/lib/module/components/menu-item/index.js.map +1 -1
- package/lib/module/components/modal-activities/index.js +1 -1
- package/lib/module/components/modal-activities/index.js.map +1 -1
- package/lib/module/components/modal-change-activity/index.js +208 -0
- package/lib/module/components/modal-change-activity/index.js.map +1 -0
- package/lib/module/components/no-data/index.js +1 -1
- package/lib/module/components/no-data/index.js.map +1 -1
- package/lib/module/components/notification-loading/index.js +5 -5
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/profile-menu-option/index.js +1 -1
- package/lib/module/components/profile-menu-option/index.js.map +1 -1
- package/lib/module/components/scheduled-journey-indicators/index.js +1 -1
- package/lib/module/components/scheduled-journey-indicators/index.js.map +1 -1
- package/lib/module/components/selects/select-option/index.js +28 -11
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/selects/select-option/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +45 -7
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/user-profile/index.js +1 -1
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/helpers/text-utils.js +14 -0
- package/lib/module/helpers/text-utils.js.map +1 -0
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/box/box.stories.js +1 -1
- package/lib/module/stories/box/box.stories.js.map +1 -1
- package/lib/module/stories/history-activities-card/history-activities-card.stories.js +97 -0
- package/lib/module/stories/history-activities-card/history-activities-card.stories.js.map +1 -0
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js +45 -0
- package/lib/module/stories/modal-change-activity/modal-change-activity.stories.js.map +1 -0
- package/lib/module/utils/get-icon-by-property/index.js +0 -1
- package/lib/module/utils/get-icon-by-property/index.js.map +1 -1
- package/lib/typescript/src/@types/as-base-component.d.ts +2 -0
- package/lib/typescript/src/common/icons-svg/constants/index.d.ts +1 -0
- package/lib/typescript/src/common/icons-svg/eclamation-triangle/index.d.ts +4 -0
- package/lib/typescript/src/components/box/index.d.ts +4 -3
- package/lib/typescript/src/components/box/styles.d.ts +2 -2
- package/lib/typescript/src/components/history-activities-card/index.d.ts +76 -0
- package/lib/typescript/src/components/history-activities-card/interface.d.ts +120 -0
- package/lib/typescript/src/components/modal-change-activity/index.d.ts +24 -0
- package/lib/typescript/src/helpers/text-utils.d.ts +7 -0
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/stories/box/box.stories.d.ts +1 -1
- package/lib/typescript/src/stories/history-activities-card/history-activities-card.stories.d.ts +10 -0
- package/lib/typescript/src/stories/modal-change-activity/modal-change-activity.stories.d.ts +9 -0
- package/lib/typescript/src/utils/get-icon-by-property/index.d.ts +2 -1
- package/package.json +11 -8
- package/src/@types/as-base-component.ts +9 -0
- package/src/common/icons-svg/constants/index.ts +1 -0
- package/src/common/icons-svg/eclamation-triangle/index.tsx +46 -0
- package/src/common/icons-svg/index.tsx +5 -1
- package/src/common/icons-svg/truck/index.tsx +2 -2
- package/src/components/activities-daily/index.tsx +116 -116
- package/src/components/activities-progress/index.tsx +170 -170
- package/src/components/avatar-profile/index.tsx +1 -1
- package/src/components/box/index.tsx +28 -22
- package/src/components/box/interface.d.ts +2 -2
- package/src/components/box/styles.ts +2 -2
- package/src/components/card-history/index.tsx +221 -221
- package/src/components/card-hours/index.tsx +2 -1
- package/src/components/card-loading/index.tsx +1 -1
- package/src/components/card-scheduled-journey/index.tsx +1 -1
- package/src/components/card-work-session/index.tsx +1 -1
- package/src/components/check-box/index.tsx +1 -1
- package/src/components/coil/index.tsx +1 -1
- package/src/components/filter-date-selector/index.tsx +1 -1
- package/src/components/header-profile/index.tsx +1 -1
- package/src/components/history-activities-card/index.tsx +217 -0
- package/src/components/history-activities-card/interface.ts +147 -0
- package/src/components/history-details/index.tsx +1 -1
- package/src/components/image-capture-with-remove/index.tsx +1 -1
- package/src/components/input/index.tsx +1 -1
- package/src/components/loading-details/index.tsx +156 -156
- package/src/components/loading-progress/index.tsx +1 -1
- package/src/components/menu-item/index.tsx +1 -1
- package/src/components/modal-activities/index.tsx +1 -1
- package/src/components/modal-change-activity/index.tsx +200 -0
- package/src/components/no-data/index.tsx +1 -1
- package/src/components/notification-loading/index.tsx +157 -157
- package/src/components/profile-menu-option/index.tsx +1 -1
- package/src/components/scheduled-journey-indicators/index.tsx +1 -1
- package/src/components/selects/select-option/index.tsx +115 -100
- package/src/components/selects/select-option/interface.d.ts +18 -18
- package/src/components/step-indicator/index.tsx +63 -7
- package/src/components/user-profile/index.tsx +1 -1
- package/src/helpers/text-utils.ts +15 -0
- package/src/index.ts +3 -1
- package/src/stories/box/box.stories.tsx +1 -1
- package/src/stories/history-activities-card/history-activities-card.stories.tsx +107 -0
- package/src/stories/modal-change-activity/modal-change-activity.stories.tsx +51 -0
- package/src/utils/get-icon-by-property/index.tsx +13 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_theme","_iconsSvg","e","__esModule","default","FilterDateSelector","selectedDay","handleSelectedDay","days","isLoading","testID","renderDayBlock","item","day","index","isSelected","date","createElement","TouchableOpacity","disabled","key","activeOpacity","onPress","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_theme","_iconsSvg","e","__esModule","default","FilterDateSelector","selectedDay","handleSelectedDay","days","isLoading","testID","renderDayBlock","item","day","index","isSelected","date","createElement","TouchableOpacity","disabled","key","activeOpacity","onPress","width","height","flexStyle","alignItems","justifyContent","backgroundColor","theme","colors","blue","gray","borderStyled","borderRadius","borderWidths","thick_large","borderColor","borderWidth","thin","marginStyle","marginRight","margins","marginTop","ActivityIndicator","size","color","Fragment","Icons","icon","neutral","Typography","text","toString","padStart","fontSizes","lg","fontFamily","fonts","inter_bold_700","dayName","slice","marginBottom","letterSpacing","daySorted","sort","a","b","Date","fullDate","getTime","dataWithAllOption","FlatList","horizontal","data","showsHorizontalScrollIndicator","renderItem","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity, ActivityIndicator, FlatList } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n//typing\nimport { IFilterDateSelector, ISelectedDay } from \"./interface\";\nimport { Icons } from \"../../common/icons-svg\";\n\n/**\n *\n * Componente FilterDateSelector para a interação do usuário com ui.\n */\nconst FilterDateSelector: React.FC<IFilterDateSelector> = ({\n selectedDay,\n handleSelectedDay,\n days,\n isLoading,\n testID,\n}) => {\n const renderDayBlock = ({ item: day, index }: { item: ISelectedDay; index: number }) => {\n const isSelected = selectedDay && selectedDay.date === day.date;\n return (\n <TouchableOpacity\n disabled={isSelected}\n key={index}\n activeOpacity={0.7}\n onPress={() => handleSelectedDay(day)}\n >\n <Box\n testID={testID}\n width={65}\n height={75}\n flexStyle={{ alignItems: \"center\", justifyContent: \"center\" }}\n backgroundColor={isSelected ? theme.colors.blue[400] : theme.colors.gray[350]}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_large,\n borderColor: isSelected ? theme.colors.blue[400] : theme.colors.gray[350],\n borderWidth: theme.borderWidths.thin,\n }}\n marginStyle={{ marginRight: theme.margins[\"2xs\"], marginTop: theme.margins[\"2xs\"] }}\n >\n {isSelected && isLoading ? (\n <ActivityIndicator size=\"small\" color=\"white\" />\n ) : (\n <>\n {day.date === \"all\" ? (\n <Icons icon=\"REFRESH_CCW_DOT\" color={theme.colors.neutral[25]} />\n ) : (\n <>\n <Typography\n text={day.date === \"all\" ? \"\" : day.date.toString().padStart(2, \"0\")}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n />\n <Typography\n text={day.date === \"all\" ? \"Todos\" : day.dayName.slice(0, 3)}\n size={theme.fontSizes.lg}\n color={theme.colors.neutral[25]}\n fontFamily={theme.fonts.inter_bold_700}\n marginBottom={day.date === \"all\" ? theme.margins[\"3xl\"] : 0}\n letterSpacing=\"o_16\"\n />\n </>\n )}\n </>\n )}\n </Box>\n </TouchableOpacity>\n );\n };\n const daySorted = days.sort(\n (a, b) => new Date(b.fullDate).getTime() - new Date(a.fullDate).getTime()\n );\n\n // Adiciona a opção \"Todos\" no início da lista\n const dataWithAllOption = [...daySorted];\n\n return (\n <FlatList\n horizontal\n data={dataWithAllOption}\n showsHorizontalScrollIndicator={false}\n renderItem={renderDayBlock}\n />\n );\n};\n\n/**\n * EXPORTS\n */\nexport { FilterDateSelector };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,MAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AAA+C,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAf/C;AACA;AACA;;AAIA;;AAIA;;AAGA;;AAIA;AACA;AACA;AACA;AACA,MAAMG,kBAAiD,GAAGA,CAAC;EACzDC,WAAW;EACXC,iBAAiB;EACjBC,IAAI;EACJC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,MAAMC,cAAc,GAAGA,CAAC;IAAEC,IAAI,EAAEC,GAAG;IAAEC;EAA6C,CAAC,KAAK;IACtF,MAAMC,UAAU,GAAGT,WAAW,IAAIA,WAAW,CAACU,IAAI,KAAKH,GAAG,CAACG,IAAI;IAC/D,oBACEtB,MAAA,CAAAU,OAAA,CAAAa,aAAA,CAACpB,YAAA,CAAAqB,gBAAgB;MACfC,QAAQ,EAAEJ,UAAW;MACrBK,GAAG,EAAEN,KAAM;MACXO,aAAa,EAAE,GAAI;MACnBC,OAAO,EAAEA,CAAA,KAAMf,iBAAiB,CAACM,GAAG;IAAE,gBAEtCnB,MAAA,CAAAU,OAAA,CAAAa,aAAA,CAACnB,IAAA,CAAAM,OAAG;MACFM,MAAM,EAAEA,MAAO;MACfa,KAAK,EAAE,EAAG;MACVC,MAAM,EAAE,EAAG;MACXC,SAAS,EAAE;QAAE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AAA,CAAA2E,QAAQ;IACPC,UAAU;IACVC,IAAI,EAAEH,iBAAkB;IACxBI,8BAA8B,EAAE,KAAM;IACtCC,UAAU,EAAEjE;EAAe,CAC5B,CAAC;AAEN,CAAC;;AAED;AACA;AACA;AAFAkE,OAAA,CAAAxE,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Header = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _box = require("../box");
|
|
9
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
10
10
|
var _typography = require("../typography");
|
|
11
11
|
var _iconsSvg = require("../../common/icons-svg");
|
|
12
12
|
var _theme = require("../../styles/theme/theme");
|
|
@@ -44,7 +44,7 @@ const Header = ({
|
|
|
44
44
|
width: widthScreen
|
|
45
45
|
} = _reactNative.Dimensions.get("window");
|
|
46
46
|
const isMobile = widthScreen < 768;
|
|
47
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
48
48
|
testID: testID,
|
|
49
49
|
width: "100%",
|
|
50
50
|
height: 45,
|
|
@@ -54,7 +54,7 @@ const Header = ({
|
|
|
54
54
|
justifyContent: "space-between",
|
|
55
55
|
alignItems: "center"
|
|
56
56
|
}
|
|
57
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
58
58
|
width: "10%",
|
|
59
59
|
height: 45,
|
|
60
60
|
flexStyle: {
|
|
@@ -78,13 +78,13 @@ const Header = ({
|
|
|
78
78
|
}, title === "Controle de Jornada" || title === "Controle de Carregamento" ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
79
79
|
icon: "LIST",
|
|
80
80
|
color: "#fff"
|
|
81
|
-
}), /*#__PURE__*/_react.default.createElement(_box.
|
|
81
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
82
82
|
marginStyle: {
|
|
83
83
|
marginBottom: 8
|
|
84
84
|
}
|
|
85
85
|
})) : arrow && /*#__PURE__*/_react.default.createElement(_iconsSvg.Icons, {
|
|
86
86
|
icon: "ARROW_LEFT"
|
|
87
|
-
}))), /*#__PURE__*/_react.default.createElement(_box.
|
|
87
|
+
}))), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
88
88
|
height: 45,
|
|
89
89
|
flexStyle: {
|
|
90
90
|
flexDirection: "row",
|
|
@@ -102,7 +102,7 @@ const Header = ({
|
|
|
102
102
|
lineHeight: _theme.theme.fontSizes.lg,
|
|
103
103
|
letterSpacing: "regular",
|
|
104
104
|
marginLeft: _theme.theme.margins["2xl"]
|
|
105
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
105
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
106
106
|
marginStyle: {
|
|
107
107
|
marginRight: isMobile ? 10 : 60
|
|
108
108
|
},
|
|
@@ -111,11 +111,11 @@ const Header = ({
|
|
|
111
111
|
},
|
|
112
112
|
width: 50,
|
|
113
113
|
height: 24
|
|
114
|
-
}, permission ? /*#__PURE__*/_react.default.createElement(_box.
|
|
114
|
+
}, permission ? /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
115
115
|
marginStyle: {
|
|
116
116
|
marginTop: 2
|
|
117
117
|
}
|
|
118
|
-
}) : /*#__PURE__*/_react.default.createElement(_box.
|
|
118
|
+
}) : /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
119
119
|
marginStyle: {
|
|
120
120
|
marginTop: 2
|
|
121
121
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","e","__esModule","default","Header","title","color","testID","arrow","permission","bluetoothIsConnected","isInternetReachable","handleNavigation","backgroundColor","isBluetooth","_color$colorText","width","widthScreen","Dimensions","get","isMobile","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_iconsSvg","_theme","e","__esModule","default","Header","title","color","testID","arrow","permission","bluetoothIsConnected","isInternetReachable","handleNavigation","backgroundColor","isBluetooth","_color$colorText","width","widthScreen","Dimensions","get","isMobile","createElement","height","theme","colors","blue","flexStyle","flexDirection","justifyContent","alignItems","paddingStyle","paddingLeft","paddings","md","TouchableOpacity","disabled","onPress","style","Fragment","Icons","icon","marginStyle","marginBottom","flex","Typography","text","size","fontFamily","fonts","inter_bold_700","colorText","neutral","fontWeight","align","lineHeight","fontSizes","lg","letterSpacing","marginLeft","margins","marginRight","borderStyled","borderRadius","marginTop","green","red","orange","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Dimensions, TouchableOpacity } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { IHeaderProps } from \"./interface\";\n\n// commons\nimport { Icons } from \"../../common/icons-svg\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n/**\n * Componente Header para a interação do usuário com ui.\n */\nconst Header: React.FC<IHeaderProps> = ({\n title,\n color,\n testID,\n arrow,\n // propsNav,\n permission,\n bluetoothIsConnected,\n isInternetReachable,\n handleNavigation,\n backgroundColor,\n isBluetooth = false,\n}) => {\n const { width: widthScreen } = Dimensions.get(\"window\");\n const isMobile = widthScreen < 768;\n\n return (\n <Box\n testID={testID}\n width={\"100%\"}\n height={45}\n backgroundColor={backgroundColor ?? theme.colors.blue[400]}\n flexStyle={{ flexDirection: \"row\", justifyContent: \"space-between\", alignItems: \"center\" }}\n >\n <Box\n width={\"10%\"}\n height={45}\n flexStyle={{ flexDirection: \"column\", justifyContent: \"center\", alignItems: \"flex-start\" }}\n paddingStyle={{ paddingLeft: theme.paddings.md }}\n >\n {arrow && title !== \"Login\" && (\n <TouchableOpacity\n disabled={!arrow}\n onPress={handleNavigation}\n style={{\n width: 50,\n height: 45,\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n justifyContent: \"center\",\n }}\n >\n {title === \"Controle de Jornada\" || title === \"Controle de Carregamento\" ? (\n <>\n <Icons icon=\"LIST\" color=\"#fff\" />\n <Box marginStyle={{ marginBottom: 8 }} />\n </>\n ) : (\n arrow && <Icons icon=\"ARROW_LEFT\" />\n )}\n </TouchableOpacity>\n )}\n </Box>\n\n <Box\n height={45}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"center\",\n alignItems: \"center\",\n flex: 0.9,\n }}\n >\n <Typography\n text={title ? title : \"Login\"}\n size={15.4}\n fontFamily={theme.fonts.inter_bold_700}\n color={color?.colorText ?? theme.colors.neutral[25]}\n fontWeight=\"700\"\n align=\"center\"\n lineHeight={theme.fontSizes.lg}\n letterSpacing={\"regular\"}\n marginLeft={theme.margins[\"2xl\"]}\n />\n </Box>\n\n <Box\n marginStyle={{ marginRight: isMobile ? 10 : 60 }}\n borderStyled={{ borderRadius: 10 }}\n width={50}\n height={24}\n >\n {permission ? (\n <Box marginStyle={{ marginTop: 2 }} />\n ) : (\n <Box\n marginStyle={{ marginTop: 2 }}\n flexStyle={{ flexDirection: \"row\", justifyContent: \"flex-end\" }}\n >\n {isBluetooth && (\n <Icons\n icon={bluetoothIsConnected ? \"BLUETOOTH_CONNECTED\" : \"BLUETOOTH\"}\n color={bluetoothIsConnected ? theme.colors.green[400] : theme.colors.red[900]}\n />\n )}\n <Icons\n icon={isInternetReachable ? \"WIFI_HIGH\" : \"WIFI_X\"}\n color={isInternetReachable ? theme.colors.orange[150] : theme.colors.red[800]}\n />\n </Box>\n )}\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { Header };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IA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BAAqB,GAAG,WAAY;IACjEJ,KAAK,EAAEI,oBAAoB,GAAGa,YAAK,CAACC,MAAM,CAACwC,KAAK,CAAC,GAAG,CAAC,GAAGzC,YAAK,CAACC,MAAM,CAACyC,GAAG,CAAC,GAAG;EAAE,CAC/E,CACF,eACDxE,MAAA,CAAAU,OAAA,CAAAkB,aAAA,CAACtB,SAAA,CAAAwC,KAAK;IACJC,IAAI,EAAE7B,mBAAmB,GAAG,WAAW,GAAG,QAAS;IACnDL,KAAK,EAAEK,mBAAmB,GAAGY,YAAK,CAACC,MAAM,CAAC0C,MAAM,CAAC,GAAG,CAAC,GAAG3C,YAAK,CAACC,MAAM,CAACyC,GAAG,CAAC,GAAG;EAAE,CAC/E,CACE,CAEJ,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAE,OAAA,CAAA/D,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.HistoryActivitiesCard = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
10
|
+
var _typography = require("../typography");
|
|
11
|
+
var _constants = require("../../common/constants");
|
|
12
|
+
var _asBaseComponent = require("../../@types/as-base-component");
|
|
13
|
+
var _theme = require("../../styles/theme/theme");
|
|
14
|
+
var _getIconByProperty = require("../../utils/get-icon-by-property");
|
|
15
|
+
var _textUtils = require("../../helpers/text-utils");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
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); }
|
|
18
|
+
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; }
|
|
19
|
+
/**
|
|
20
|
+
* IMPORTS
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
// components
|
|
24
|
+
|
|
25
|
+
//commons/ icons
|
|
26
|
+
|
|
27
|
+
// typings
|
|
28
|
+
|
|
29
|
+
// styles
|
|
30
|
+
|
|
31
|
+
// helpers
|
|
32
|
+
|
|
33
|
+
const HistoryActivitiesCard = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
34
|
+
const {
|
|
35
|
+
testID,
|
|
36
|
+
backgroundColor,
|
|
37
|
+
idAtividade,
|
|
38
|
+
name_activitie,
|
|
39
|
+
referencia,
|
|
40
|
+
type_activitie,
|
|
41
|
+
data_start,
|
|
42
|
+
data_end,
|
|
43
|
+
duration,
|
|
44
|
+
avatar
|
|
45
|
+
} = props;
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
47
|
+
ref: ref,
|
|
48
|
+
testID: testID,
|
|
49
|
+
width: "100%",
|
|
50
|
+
backgroundColor: _theme.theme.colors.neutral[25],
|
|
51
|
+
borderStyled: {
|
|
52
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
53
|
+
},
|
|
54
|
+
marginStyle: {
|
|
55
|
+
marginBottom: _theme.theme.margins["2xs"]
|
|
56
|
+
}
|
|
57
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
58
|
+
width: "100%",
|
|
59
|
+
height: 30,
|
|
60
|
+
backgroundColor: backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : _theme.theme.colors.green[400],
|
|
61
|
+
borderStyled: {
|
|
62
|
+
borderTopLeftRadius: _theme.theme.borderWidths.thin_bold,
|
|
63
|
+
borderTopRightRadius: _theme.theme.borderWidths.thin_bold,
|
|
64
|
+
borderColor: _theme.theme.colors.blue[400]
|
|
65
|
+
},
|
|
66
|
+
flexStyle: {
|
|
67
|
+
justifyContent: "center"
|
|
68
|
+
}
|
|
69
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
70
|
+
text: `ATIVIDADE ${!data_end ? "EM ANDAMENTO" : ""} #${idAtividade}`,
|
|
71
|
+
color: _theme.theme.colors.neutral[25],
|
|
72
|
+
size: _theme.theme.fontSizes.xs,
|
|
73
|
+
fontFamily: _theme.theme.fonts.inter_semi_bold_600,
|
|
74
|
+
fontWeight: "500",
|
|
75
|
+
lineHeight: _theme.theme.fontSizes.lg,
|
|
76
|
+
marginLeft: _theme.theme.margins["2xs"]
|
|
77
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
78
|
+
width: "100%",
|
|
79
|
+
flexStyle: {
|
|
80
|
+
flexDirection: "row",
|
|
81
|
+
justifyContent: "space-between"
|
|
82
|
+
},
|
|
83
|
+
paddingStyle: {
|
|
84
|
+
padding: _theme.theme.paddings["2xs"]
|
|
85
|
+
}
|
|
86
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
87
|
+
width: "100%"
|
|
88
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
89
|
+
flexStyle: {
|
|
90
|
+
flexDirection: "row",
|
|
91
|
+
alignItems: "center"
|
|
92
|
+
}
|
|
93
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
94
|
+
style: {
|
|
95
|
+
width: 45,
|
|
96
|
+
height: 45,
|
|
97
|
+
borderRadius: 10,
|
|
98
|
+
marginRight: 10
|
|
99
|
+
},
|
|
100
|
+
source: {
|
|
101
|
+
uri: avatar !== null && avatar !== void 0 ? avatar : _constants.IMAGES.IMAGE_ANONIMA
|
|
102
|
+
}
|
|
103
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
104
|
+
width: "100%"
|
|
105
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
106
|
+
width: "84%",
|
|
107
|
+
flexStyle: {
|
|
108
|
+
flexDirection: "row",
|
|
109
|
+
flexWrap: "wrap"
|
|
110
|
+
}
|
|
111
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
112
|
+
style: {
|
|
113
|
+
flexShrink: 1
|
|
114
|
+
},
|
|
115
|
+
text: `Início: `,
|
|
116
|
+
size: _theme.theme.fontSizes.xs,
|
|
117
|
+
color: _theme.theme.colors.black[10],
|
|
118
|
+
fontFamily: _theme.theme.fonts.inter_semi_bold_600
|
|
119
|
+
}), /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
120
|
+
text: `${data_start} ás ${data_end !== null && data_end !== void 0 ? data_end : "00/00/0000 00:00"}`,
|
|
121
|
+
size: _theme.theme.fontSizes["2xs"],
|
|
122
|
+
color: _theme.theme.colors.black[180],
|
|
123
|
+
fontFamily: _theme.theme.fonts.inter_regular_400
|
|
124
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
125
|
+
flexStyle: {
|
|
126
|
+
flexDirection: "row",
|
|
127
|
+
justifyContent: "space-between"
|
|
128
|
+
},
|
|
129
|
+
width: "84%"
|
|
130
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
131
|
+
flexStyle: {
|
|
132
|
+
flexDirection: "row"
|
|
133
|
+
}
|
|
134
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
135
|
+
text: `Duração: `,
|
|
136
|
+
size: _theme.theme.fontSizes.xs,
|
|
137
|
+
color: _theme.theme.colors.black[10],
|
|
138
|
+
fontFamily: _theme.theme.fonts.inter_semi_bold_600
|
|
139
|
+
}), /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
140
|
+
text: `${duration !== null && duration !== void 0 ? duration : "00:00"}`,
|
|
141
|
+
size: _theme.theme.fontSizes["2xs"],
|
|
142
|
+
color: _theme.theme.colors.black[180],
|
|
143
|
+
fontFamily: _theme.theme.fonts.inter_light_300
|
|
144
|
+
})), (0, _getIconByProperty.getIconByProperty)(referencia, backgroundColor)))))), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
145
|
+
width: "100%",
|
|
146
|
+
flexStyle: {
|
|
147
|
+
flexDirection: "row",
|
|
148
|
+
justifyContent: "space-between",
|
|
149
|
+
alignItems: "center"
|
|
150
|
+
},
|
|
151
|
+
paddingStyle: {
|
|
152
|
+
padding: _theme.theme.paddings["2xs"]
|
|
153
|
+
},
|
|
154
|
+
borderStyled: {
|
|
155
|
+
borderTopWidth: _theme.theme.borderWidths.thin_medium,
|
|
156
|
+
borderTopColor: _theme.theme.colors.neutral[200]
|
|
157
|
+
}
|
|
158
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
159
|
+
marginStyle: {
|
|
160
|
+
marginRight: 2
|
|
161
|
+
}
|
|
162
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
163
|
+
text: `Atividade:`,
|
|
164
|
+
size: _theme.theme.fontSizes.xs,
|
|
165
|
+
color: _theme.theme.colors.gray[700],
|
|
166
|
+
fontFamily: _theme.theme.fonts.inter_regular_400
|
|
167
|
+
}), /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
168
|
+
text: (0, _textUtils.truncateText)(name_activitie !== null && name_activitie !== void 0 ? name_activitie : "Sem informação"),
|
|
169
|
+
size: _theme.theme.fontSizes.sm,
|
|
170
|
+
color: _theme.theme.colors.black[100],
|
|
171
|
+
fontFamily: _theme.theme.fonts.inter_semi_bold_600
|
|
172
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
173
|
+
flexStyle: {
|
|
174
|
+
flexDirection: "column",
|
|
175
|
+
alignItems: "flex-end",
|
|
176
|
+
justifyContent: "center"
|
|
177
|
+
}
|
|
178
|
+
}, /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
179
|
+
text: `Tipo atividade: `,
|
|
180
|
+
size: _theme.theme.fontSizes.xs,
|
|
181
|
+
color: _theme.theme.colors.gray[700],
|
|
182
|
+
fontFamily: _theme.theme.fonts.inter_regular_400
|
|
183
|
+
}), /*#__PURE__*/_react.default.createElement(_typography.Typography, {
|
|
184
|
+
text: `${type_activitie}`,
|
|
185
|
+
size: _theme.theme.fontSizes.sm,
|
|
186
|
+
color: _theme.theme.colors.black[100],
|
|
187
|
+
fontFamily: _theme.theme.fonts.inter_semi_bold_600,
|
|
188
|
+
marginLeft: 4
|
|
189
|
+
}))));
|
|
190
|
+
});
|
|
191
|
+
HistoryActivitiesCard.displayName = "HistoryActivitiesCard";
|
|
192
|
+
const HistoryActivitiesCardComponent = exports.HistoryActivitiesCard = (0, _asBaseComponent.asBaseComponent)(HistoryActivitiesCard);
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Componente Box para a interação da ui.
|
|
196
|
+
*/
|
|
197
|
+
var _default = exports.default = HistoryActivitiesCardComponent;
|
|
198
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_box","_interopRequireDefault","_typography","_constants","_asBaseComponent","_theme","_getIconByProperty","_textUtils","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","HistoryActivitiesCard","forwardRef","props","ref","testID","backgroundColor","idAtividade","name_activitie","referencia","type_activitie","data_start","data_end","duration","avatar","createElement","width","theme","colors","neutral","borderStyled","borderRadius","borderWidths","thick_medium","marginStyle","marginBottom","margins","height","green","borderTopLeftRadius","thin_bold","borderTopRightRadius","borderColor","blue","flexStyle","justifyContent","Typography","text","color","size","fontSizes","xs","fontFamily","fonts","inter_semi_bold_600","fontWeight","lineHeight","lg","marginLeft","flexDirection","paddingStyle","padding","paddings","alignItems","Image","style","marginRight","source","uri","IMAGES","IMAGE_ANONIMA","flexWrap","flexShrink","black","inter_regular_400","inter_light_300","getIconByProperty","borderTopWidth","thin_medium","borderTopColor","gray","truncateText","sm","displayName","HistoryActivitiesCardComponent","exports","asBaseComponent","_default"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React, { forwardRef } from \"react\";\nimport { Image } from \"react-native\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n//commons/ icons\nimport { IMAGES } from \"../../common/constants\";\n\n// typings\nimport type { ICardActivitiesWeek } from \"./interface\";\nimport { asBaseComponent } from \"../../@types/as-base-component\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport { getIconByProperty } from \"../../utils/get-icon-by-property\";\n\n// helpers\nimport { truncateText } from \"../../helpers/text-utils\";\n\nconst HistoryActivitiesCard = forwardRef<any, ICardActivitiesWeek>(\n (props, ref): React.ReactElement => {\n const {\n testID,\n backgroundColor,\n idAtividade,\n name_activitie,\n referencia,\n type_activitie,\n data_start,\n data_end,\n duration,\n avatar,\n } = props;\n return (\n <Box\n ref={ref}\n testID={testID}\n width={\"100%\"}\n backgroundColor={theme.colors.neutral[25]}\n borderStyled={{\n borderRadius: theme.borderWidths.thick_medium,\n }}\n marginStyle={{\n marginBottom: theme.margins[\"2xs\"],\n }}\n >\n <Box\n width={\"100%\"}\n height={30}\n backgroundColor={backgroundColor ?? theme.colors.green[400]}\n borderStyled={{\n borderTopLeftRadius: theme.borderWidths.thin_bold,\n borderTopRightRadius: theme.borderWidths.thin_bold,\n borderColor: theme.colors.blue[400],\n }}\n flexStyle={{\n justifyContent: \"center\",\n }}\n >\n <Typography\n text={`ATIVIDADE ${!data_end ? \"EM ANDAMENTO\" : \"\"} #${idAtividade}`}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight={\"500\"}\n lineHeight={theme.fontSizes.lg}\n marginLeft={theme.margins[\"2xs\"]}\n />\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n }}\n paddingStyle={{\n padding: theme.paddings[\"2xs\"],\n }}\n >\n <Box width={\"100%\"}>\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Image\n style={{\n width: 45,\n height: 45,\n borderRadius: 10,\n marginRight: 10,\n }}\n source={{ uri: avatar ?? IMAGES.IMAGE_ANONIMA }}\n />\n\n <Box width={\"100%\"}>\n <Box\n width={\"84%\"}\n flexStyle={{\n flexDirection: \"row\",\n flexWrap: \"wrap\",\n }}\n >\n <Typography\n style={{ flexShrink: 1 }}\n text={`Início: `}\n size={theme.fontSizes.xs}\n color={theme.colors.black[10]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n <Typography\n text={`${data_start} ás ${data_end ?? \"00/00/0000 00:00\"}`}\n size={theme.fontSizes[\"2xs\"]}\n color={theme.colors.black[180]}\n fontFamily={theme.fonts.inter_regular_400}\n />\n </Box>\n\n <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n }}\n width={\"84%\"}\n >\n <Box flexStyle={{ flexDirection: \"row\" }}>\n <Typography\n text={`Duração: `}\n size={theme.fontSizes.xs}\n color={theme.colors.black[10]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n\n <Typography\n text={`${duration ?? \"00:00\"}`}\n size={theme.fontSizes[\"2xs\"]}\n color={theme.colors.black[180]}\n fontFamily={theme.fonts.inter_light_300}\n />\n </Box>\n\n {getIconByProperty(referencia, backgroundColor)}\n </Box>\n </Box>\n </Box>\n </Box>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n paddingStyle={{\n padding: theme.paddings[\"2xs\"],\n }}\n borderStyled={{\n borderTopWidth: theme.borderWidths.thin_medium,\n borderTopColor: theme.colors.neutral[200],\n }}\n >\n <Box marginStyle={{ marginRight: 2 }}>\n <Typography\n text={`Atividade:`}\n size={theme.fontSizes.xs}\n color={theme.colors.gray[700]}\n fontFamily={theme.fonts.inter_regular_400}\n />\n\n <Typography\n text={truncateText(name_activitie ?? \"Sem informação\")}\n size={theme.fontSizes.sm}\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n />\n </Box>\n\n <Box\n flexStyle={{\n flexDirection: \"column\",\n alignItems: \"flex-end\",\n justifyContent: \"center\",\n }}\n >\n <Typography\n text={`Tipo atividade: `}\n size={theme.fontSizes.xs}\n color={theme.colors.gray[700]}\n fontFamily={theme.fonts.inter_regular_400}\n />\n\n <Typography\n text={`${type_activitie}`}\n size={theme.fontSizes.sm}\n color={theme.colors.black[100]}\n fontFamily={theme.fonts.inter_semi_bold_600}\n marginLeft={4}\n />\n </Box>\n </Box>\n </Box>\n );\n }\n);\n\nHistoryActivitiesCard.displayName = \"HistoryActivitiesCard\";\n\nconst HistoryActivitiesCardComponent = asBaseComponent(HistoryActivitiesCard);\n\n/**\n * Componente Box para a interação da ui.\n */\nexport default HistoryActivitiesCardComponent;\nexport { HistoryActivitiesCardComponent as HistoryActivitiesCard };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AAGA,IAAAK,UAAA,GAAAL,OAAA;AAIA,IAAAM,gBAAA,GAAAN,OAAA;AAGA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAR,OAAA;AAGA,IAAAS,UAAA,GAAAT,OAAA;AAAwD,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAA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AAK,EAAErB,YAAK,CAACC,MAAM,CAAC6C,KAAK,CAAC,GAAG,CAAE;IAC/BrB,UAAU,EAAEzB,YAAK,CAAC0B,KAAK,CAACC,mBAAoB;IAC5CI,UAAU,EAAE;EAAE,CACf,CACE,CACF,CACF,CAAC;AAEV,CACF,CAAC;AAED/C,qBAAqB,CAACwE,WAAW,GAAG,uBAAuB;AAE3D,MAAMC,8BAA8B,GAAAC,OAAA,CAAA1E,qBAAA,GAAG,IAAA2E,gCAAe,EAAC3E,qBAAqB,CAAC;;AAE7E;AACA;AACA;AAFA,IAAA4E,QAAA,GAAAF,OAAA,CAAA5F,OAAA,GAGe2F,8BAA8B","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport type React from \"react\";\r\nimport { type DimensionValue, type ViewProps } from \"react-native\";\r\nimport type { PropertyType } from \"../../utils/get-icon-by-property\";\r\n\r\n/**\r\n * INTERFACE\r\n */\r\n\r\ntype ICardActivitiesWeek = ViewProps & {\r\n /**\r\n * props que mostra o nome do usuário\r\n */\r\n name?: string;\r\n\r\n /**\r\n * props que mostra o ciclo do relatório - DIÁRIA OU SEMANAL\r\n */\r\n ciclo?: string;\r\n\r\n /**\r\n * props que mostra a data\r\n */\r\n data_start: string;\r\n data_end?: string | null;\r\n duration: string;\r\n status?: string;\r\n name_activitie: string;\r\n referencia: PropertyType;\r\n type_activitie: string;\r\n avatar?: string;\r\n idAtividade: number;\r\n\r\n children?: React.ReactNode;\r\n\r\n /**\r\n * TestID para testes automático e identificação\r\n */\r\n testID?: string;\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 * Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.\r\n */\r\n flexStyle?: {\r\n alignItems?: \"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"baseline\";\r\n alignSelf?: \"auto\" | \"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"baseline\";\r\n flex?: string | number;\r\n flexDirection?: \"column\" | \"column-reverse\" | \"row\" | \"row-reverse\";\r\n flexWrap?: \"nowrap\" | \"wrap\" | \"wrap-reverse\";\r\n textAlign?: \"auto\" | \"center\" | \"left\" | \"right\" | \"justify\";\r\n justifyContent?:\r\n | \"flex-start\"\r\n | \"flex-end\"\r\n | \"center\"\r\n | \"space-between\"\r\n | \"space-around\"\r\n | \"space-evenly\";\r\n };\r\n\r\n /**\r\n * A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).\r\n */\r\n marginStyle?: {\r\n margin?: number | DimensionValue;\r\n marginLeft?: number | DimensionValue;\r\n marginRight?: number | DimensionValue;\r\n marginTop?: number | DimensionValue;\r\n marginBottom?: number | DimensionValue;\r\n };\r\n\r\n /**\r\n * A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).\r\n */\r\n paddingStyle?: {\r\n padding?: number | DimensionValue;\r\n paddingLeft?: number | DimensionValue;\r\n paddingRight?: number | DimensionValue;\r\n paddingTop?: number | DimensionValue;\r\n paddingBottom?: number | DimensionValue;\r\n };\r\n\r\n /**\r\n * A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.\r\n */\r\n height?: number | DimensionValue;\r\n\r\n /**\r\n * A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.\r\n */\r\n width?: number | DimensionValue;\r\n\r\n /**\r\n * O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..\r\n * A Propriedade Background está sendo utilizada para definir a cor de fundo do cabeçalho do card e do ícone check.\r\n */\r\n backgroundColor?: string;\r\n\r\n /**\r\n * Propriedade texto que sera renderizado pro usuário final\r\n */\r\n text?: string;\r\n\r\n /**\r\n * A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.\r\n */\r\n color?: {\r\n colorSvg?: string;\r\n colorText?: string;\r\n colorTextBold?: string;\r\n colorTextData?: string;\r\n };\r\n\r\n // Cor do ícone CHECK\r\n iconColor?: string;\r\n};\r\n\r\n/**\r\n * EXPORT\r\n */\r\nexport type { ICardActivitiesWeek };\r\n"],"mappings":"","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.HistoryDetails = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _box = require("../box");
|
|
8
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
9
9
|
var _typography = require("../typography");
|
|
10
10
|
var _theme = require("../../styles/theme/theme");
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -25,13 +25,13 @@ const HistoryDetails = ({
|
|
|
25
25
|
date = "24/03/2025",
|
|
26
26
|
duracao = "00:30"
|
|
27
27
|
}) => {
|
|
28
|
-
return /*#__PURE__*/_react.default.createElement(_box.
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
29
29
|
width: "100%",
|
|
30
30
|
borderStyled: {
|
|
31
31
|
borderRadius: 8
|
|
32
32
|
},
|
|
33
33
|
backgroundColor: _theme.theme.colors.blue[400]
|
|
34
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
34
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
35
35
|
flexStyle: {
|
|
36
36
|
flexDirection: "column",
|
|
37
37
|
justifyContent: "flex-start",
|
|
@@ -64,10 +64,10 @@ const HistoryDetails = ({
|
|
|
64
64
|
lineHeight: _theme.theme.fontSizes.lg,
|
|
65
65
|
letterSpacing: "regular",
|
|
66
66
|
numberOfLines: 1
|
|
67
|
-
})), /*#__PURE__*/_react.default.createElement(_box.
|
|
67
|
+
})), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
68
68
|
height: 1,
|
|
69
69
|
backgroundColor: _theme.theme.colors.gray[950]
|
|
70
|
-
}), /*#__PURE__*/_react.default.createElement(_box.
|
|
70
|
+
}), /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
71
71
|
flexStyle: {
|
|
72
72
|
flexDirection: "row",
|
|
73
73
|
justifyContent: "space-between",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_typography","_theme","e","__esModule","default","HistoryDetails","numero","local","date","duracao","createElement","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_box","_typography","_theme","e","__esModule","default","HistoryDetails","numero","local","date","duracao","createElement","width","borderStyled","borderRadius","backgroundColor","theme","colors","blue","flexStyle","flexDirection","justifyContent","alignItems","paddingStyle","padding","paddings","xs","Typography","text","size","fontSizes","sm","fontFamily","fonts","inter_semi_bold_600","fontWeight","color","neutral","lineHeight","xl","letterSpacing","lg","inter_regular_400","numberOfLines","height","gray","align","inter_medium_500","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\n\n// components\nimport Box from \"../box\";\nimport { Typography } from \"../typography\";\n\n// typings\nimport { IHistoryDetails } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst HistoryDetails: React.FC<IHistoryDetails> = ({\n numero = \"01020304050607\",\n local = \"Doca 1, Pátio 02 - Usimais (Ipatinga)\",\n date = \"24/03/2025\",\n duracao = \"00:30\",\n}) => {\n return (\n <Box width=\"100%\" borderStyled={{ borderRadius: 8 }} backgroundColor={theme.colors.blue[400]}>\n <Box\n flexStyle={{\n flexDirection: \"column\",\n justifyContent: \"flex-start\",\n alignItems: \"flex-start\",\n }}\n paddingStyle={{ padding: theme.paddings.xs }}\n >\n <Typography\n text={`Carregamento - #${numero}`}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight=\"600\"\n color={theme.colors.neutral[25]}\n lineHeight={theme.fontSizes.xl}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={local}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n lineHeight={theme.fontSizes.lg}\n fontFamily={theme.fonts.inter_regular_400}\n letterSpacing={\"regular\"}\n numberOfLines={1}\n />\n <Typography\n text={`Data carregamento: ${date}`}\n color={theme.colors.neutral[25]}\n size={theme.fontSizes.xs}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.lg}\n letterSpacing={\"regular\"}\n numberOfLines={1}\n />\n </Box>\n\n <Box height={1} backgroundColor={theme.colors.gray[950]} />\n\n <Box\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n paddingStyle={{ padding: theme.paddings.xs }}\n >\n <Typography\n text={\"DURAÇÃO:\"}\n color={theme.colors.neutral[25]}\n size={24}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes[\"3xl\"]}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={duracao}\n color={theme.colors.neutral[25]}\n size={26}\n align=\"left\"\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes[\"3xl\"]}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { HistoryDetails };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAMA,IAAAG,MAAA,GAAAH,OAAA;AAAiD,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAbjD;AACA;AACA;;AAGA;;AAIA;;AAGA;;AAGA,MAAMG,cAAyC,GAAGA,CAAC;EACjDC,MAAM,GAAG,gBAAgB;EACzBC,KAAK,GAAG,uCAAuC;EAC/CC,IAAI,GAAG,YAAY;EACnBC,OAAO,GAAG;AACZ,CAAC,KAAK;EACJ,oBACEb,MAAA,CAAAQ,OAAA,CAAAM,aAAA,CAACX,IAAA,CAAAK,OAAG;IAACO,KAAK,EAAC,MAAM;IAACC,YAAY,EAAE;MAAEC,YAAY,EAAE;IAAE,CAAE;IAACC,eAAe,EAAEC,YAAK,CAACC,MAAM,CAACC,IAAI,CAAC,GAAG;EAAE,gBAC3FrB,MAAA,CAAAQ,OAAA,CAAAM,aAAA,CAACX,IAAA,CAAAK,OAAG;IACFc,SAAS,EAAE;MACTC,aAAa,EAAE,QAAQ;MACvBC,cAAc,EAAE,YAAY;MAC5BC,UAAU,EAAE;IACd,CAAE;IACF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CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAQ,OAAA,CAAA1C,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ImageCaptureWithRemove = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
|
-
var _box = require("../box");
|
|
9
|
+
var _box = _interopRequireDefault(require("../box"));
|
|
10
10
|
var _iconsSvg = require("../../common/icons-svg");
|
|
11
11
|
var _theme = require("../../styles/theme/theme");
|
|
12
12
|
var _returnColor = require("../../utils/status-color/return-color");
|
|
@@ -47,7 +47,7 @@ const ImageCaptureWithRemove = ({
|
|
|
47
47
|
},
|
|
48
48
|
onPress: handleTakePhoto,
|
|
49
49
|
disabled: !!foto
|
|
50
|
-
}, /*#__PURE__*/_react.default.createElement(_box.
|
|
50
|
+
}, /*#__PURE__*/_react.default.createElement(_box.default, {
|
|
51
51
|
width: width,
|
|
52
52
|
height: height,
|
|
53
53
|
flexStyle: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_iconsSvg","_theme","_returnColor","e","__esModule","default","ImageCaptureWithRemove","width","height","foto","useRemove","status","handleTakePhoto","onRemove","statusColor","createElement","TouchableOpacity","testID","activeOpacity","style","position","onPress","disabled","
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_iconsSvg","_theme","_returnColor","e","__esModule","default","ImageCaptureWithRemove","width","height","foto","useRemove","status","handleTakePhoto","onRemove","statusColor","createElement","TouchableOpacity","testID","activeOpacity","style","position","onPress","disabled","flexStyle","flexDirection","alignItems","justifyContent","borderStyled","borderWidth","theme","borderWidths","thick","thin","borderRadius","fontSizes","md","borderColor","getBorderColor","colors","blue","Fragment","Image","resizeMode","source","uri","top","right","Icons","icon","color","red","size","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Image, TouchableOpacity } from \"react-native\";\n\n// components\nimport Box from \"../box\";\n\n// comons / icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// typings\nimport { IImageCaptureWithRemoveProps } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\n// utils\nimport { getBorderColor } from \"../../utils/status-color/return-color\";\n\n/**\n *\n * Componente ImageCaptureWithRemove para a interação do usuário com ui.\n */\nconst ImageCaptureWithRemove: React.FC<IImageCaptureWithRemoveProps> = ({\n width = 50,\n height = 50,\n foto = null,\n useRemove = true,\n status,\n handleTakePhoto,\n onRemove,\n}: IImageCaptureWithRemoveProps) => {\n const statusColor = status === \"Cancelado\" || status === \"Pendente\";\n\n return (\n <TouchableOpacity\n testID=\"image-capture-touchable\"\n activeOpacity={0.7}\n style={{ position: \"relative\" }}\n onPress={handleTakePhoto}\n disabled={!!foto}\n >\n <Box\n width={width}\n height={height}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"center\" }}\n testID=\"plus-icon-box\"\n borderStyled={{\n borderWidth: statusColor ? theme.borderWidths.thick : theme.borderWidths.thin,\n borderRadius: theme.fontSizes.md,\n borderColor: statusColor ? getBorderColor(status) : theme.colors.blue[400],\n }}\n >\n {foto ? (\n <>\n <Image\n testID=\"captured-image\"\n style={{\n width: \"100%\",\n height: \"100%\",\n borderRadius: theme.fontSizes.md,\n resizeMode: \"cover\",\n }}\n source={{\n uri: foto,\n }}\n />\n\n {useRemove && (\n <TouchableOpacity\n testID=\"remove-button\"\n style={{ position: \"absolute\", top: 2, right: 4 }}\n onPress={onRemove}\n >\n <Icons icon=\"X_CIRCLE\" color={theme.colors.red[400]} size={18} />\n </TouchableOpacity>\n )}\n </>\n ) : (\n <Icons icon=\"PLUS\" color={theme.colors.blue[400]} />\n )}\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { ImageCaptureWithRemove };\n"],"m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