react-native-exp-fig 0.1.16 → 0.1.17
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/common/icons-svg/constants/index.js +4 -4
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/hourglass/index.js +4 -4
- package/lib/commonjs/common/icons-svg/hourglass/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/index.js +4 -4
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCallBell.js +46 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCallBell.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCoffee.js +47 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconCoffee.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconGear.js +47 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconGear.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js +48 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHouse.js +46 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconHouse.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconMoonStars.js +48 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconMoonStars.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconSteeringWheel.js +54 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconSteeringWheel.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTimer.js +45 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTimer.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTruck.js +35 -0
- package/lib/commonjs/common/icons-svg/modal-activities/SvgIconTruck.js.map +1 -0
- package/lib/commonjs/common/icons-svg/modal-activities/index.js +80 -0
- package/lib/commonjs/common/icons-svg/modal-activities/index.js.map +1 -0
- package/lib/commonjs/components/history-details/index.js +4 -4
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/modal-activities/data-activities/index.js +62 -0
- package/lib/commonjs/components/modal-activities/data-activities/index.js.map +1 -0
- package/lib/commonjs/components/modal-activities/index.js +30 -38
- package/lib/commonjs/components/modal-activities/index.js.map +1 -1
- package/lib/commonjs/components/modal-activities/interface.d.js.map +1 -1
- package/lib/commonjs/components/notification-loading/index.js +4 -4
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/styles.js +4 -4
- package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js +21 -5
- package/lib/commonjs/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/commonjs/styles/global/interface.d.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +4 -4
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/hourglass/index.js +4 -4
- package/lib/module/common/icons-svg/hourglass/index.js.map +1 -1
- package/lib/module/common/icons-svg/index.js +4 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/modal-activities/SvgIconCallBell.js +37 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconCallBell.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconCoffee.js +38 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconCoffee.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconGear.js +38 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconGear.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js +39 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconHourGlassMedium.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconHouse.js +37 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconHouse.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconMoonStars.js +40 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconMoonStars.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconSteeringWheel.js +45 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconSteeringWheel.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconTimer.js +36 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconTimer.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconTruck.js +26 -0
- package/lib/module/common/icons-svg/modal-activities/SvgIconTruck.js.map +1 -0
- package/lib/module/common/icons-svg/modal-activities/index.js +75 -0
- package/lib/module/common/icons-svg/modal-activities/index.js.map +1 -0
- package/lib/module/components/history-details/index.js +4 -4
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/modal-activities/data-activities/index.js +56 -0
- package/lib/module/components/modal-activities/data-activities/index.js.map +1 -0
- package/lib/module/components/modal-activities/index.js +29 -38
- package/lib/module/components/modal-activities/index.js.map +1 -1
- package/lib/module/components/modal-activities/interface.d.js.map +1 -1
- package/lib/module/components/notification-loading/index.js +4 -4
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/step-indicator/styles.js +4 -4
- package/lib/module/components/step-indicator/styles.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/modal-activities/modal-activities.stories.js +20 -4
- package/lib/module/stories/modal-activities/modal-activities.stories.js.map +1 -1
- package/lib/module/styles/global/interface.d.js.map +1 -1
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconCallBell.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconCoffee.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconGear.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconHourGlassMedium.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconHouse.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconMoonStars.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconSteeringWheel.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconTimer.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/SvgIconTruck.d.ts +10 -0
- package/lib/typescript/src/common/icons-svg/modal-activities/index.d.ts +23 -0
- package/lib/typescript/src/components/modal-activities/data-activities/index.d.ts +19 -0
- package/lib/typescript/src/stories/modal-activities/modal-activities.stories.d.ts +2 -1
- package/package.json +221 -221
- package/src/common/icons-svg/constants/index.ts +64 -64
- package/src/common/icons-svg/hourglass/index.tsx +28 -28
- package/src/common/icons-svg/index.tsx +259 -259
- package/src/common/icons-svg/modal-activities/SvgIconCallBell.tsx +37 -0
- package/src/common/icons-svg/modal-activities/SvgIconCoffee.tsx +38 -0
- package/src/common/icons-svg/modal-activities/SvgIconGear.tsx +38 -0
- package/src/common/icons-svg/modal-activities/SvgIconHourGlassMedium.tsx +38 -0
- package/src/common/icons-svg/modal-activities/SvgIconHouse.tsx +37 -0
- package/src/common/icons-svg/modal-activities/SvgIconMoonStars.tsx +39 -0
- package/src/common/icons-svg/modal-activities/SvgIconSteeringWheel.tsx +48 -0
- package/src/common/icons-svg/modal-activities/SvgIconTimer.tsx +37 -0
- package/src/common/icons-svg/modal-activities/SvgIconTruck.tsx +28 -0
- package/src/common/icons-svg/modal-activities/index.tsx +53 -0
- package/src/components/button/styles.ts +34 -34
- package/src/components/card-history/index.tsx +211 -211
- package/src/components/card-history/interface.d.ts +34 -34
- package/src/components/card-loading/index.tsx +290 -290
- package/src/components/history-details/index.tsx +99 -99
- package/src/components/image-capture-with-remove/index.tsx +92 -92
- package/src/components/image-capture-with-remove/interface.d.ts +28 -28
- package/src/components/loading-progress/index.tsx +93 -93
- package/src/components/modal-activities/data-activities/index.ts +65 -0
- package/src/components/modal-activities/index.tsx +137 -139
- package/src/components/modal-activities/interface.d.ts +32 -21
- package/src/components/notification-loading/index.tsx +162 -162
- package/src/components/step-indicator/styles.ts +68 -68
- package/src/index.ts +43 -43
- package/src/stories/card-history/card-history.stories.tsx +50 -50
- package/src/stories/modal-activities/modal-activities.stories.tsx +64 -46
- package/src/styles/global/interface.d.ts +146 -146
- package/src/styles/theme/theme.ts +171 -171
- package/src/utils/status-color/return-color.ts +34 -34
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Modal","TouchableOpacity","FlatList","Box","Icons","theme","Typography","Button","ModalActivities","onClose","handleActivity","
|
|
1
|
+
{"version":3,"names":["React","Modal","TouchableOpacity","FlatList","Box","Icons","getIconModalActivities","theme","Typography","Button","activities","ModalActivities","onClose","handleActivity","activityType","isLoading","style","createElement","animationType","transparent","onRequestClose","backgroundColor","flexStyle","flex","justifyContent","alignItems","height","width","colors","neutral","borderStyled","borderColor","blue","borderWidth","borderWidths","thick","borderRadius","thick_medium","paddingStyle","padding","paddings","md","position","flexDirection","text","size","fontSizes","color","fontFamily","fonts","inter_bold_700","lineHeight","xl","activeOpacity","onPress","icon","marginStyle","marginTop","margins","data","numColumns","keyExtractor","item","id","toString","scrollEnabled","renderItem","marginBottom","referencia","descricao","xs","inter_medium_500","fontWeight","align","title","buttonTextStyle","fontSize","thin","marginLeft","bottom","left"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { Modal, TouchableOpacity, FlatList } from \"react-native\";\n\n// components\n\nimport { Box } from \"../box\";\n\n// commons / icons\nimport { Icons } from \"../../common/icons-svg\";\nimport { getIconModalActivities } from \"../../common/icons-svg/modal-activities\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\nimport { Typography } from \"../typography\";\nimport { Button } from \"../button\";\n\n//typing\nimport { IModalActivities, IActivity } from \"./interface\";\n\n// atividades\nimport { activities } from \"./data-activities\";\n\nexport const ModalActivities: React.FC<IModalActivities> = ({\n onClose,\n handleActivity,\n activityType,\n isLoading,\n style,\n}) => {\n return (\n <Modal animationType=\"fade\" transparent={true} onRequestClose={onClose}>\n <Box\n backgroundColor={\"rgba(0, 0, 0, 0.7)\"}\n flexStyle={{ flex: 1, justifyContent: \"center\", alignItems: \"center\" }}\n >\n <Box\n height={310}\n width={\"92%\"}\n backgroundColor={theme.colors.neutral[25]}\n borderStyled={{\n borderColor: theme.colors.blue[500],\n borderWidth: theme.borderWidths.thick,\n borderRadius: theme.borderWidths.thick_medium,\n }}\n paddingStyle={{\n padding: theme.paddings.md,\n }}\n style={{ position: \"relative\" }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text=\"Atividades\"\n size={theme.fontSizes.md}\n color={theme.colors.blue[500]}\n fontFamily={theme.fonts.inter_bold_700}\n lineHeight={theme.fontSizes.xl}\n />\n\n <TouchableOpacity activeOpacity={0.7} onPress={onClose} style={{}}>\n <Icons icon=\"CLOSED\" color={theme.colors.blue[500]} />\n </TouchableOpacity>\n </Box>\n {/* as atividades */}\n <Box marginStyle={{ marginTop: theme.margins[\"2xl\"] }}>\n <FlatList\n data={activities[activityType]}\n numColumns={3}\n keyExtractor={(item) => item.id.toString()}\n scrollEnabled={false}\n renderItem={({ item }) => (\n <TouchableOpacity\n style={{\n alignItems: \"center\",\n width: 110,\n marginBottom: theme.margins[\"2xl\"], // espaço entre as linhas\n }}\n onPress={() => handleActivity(item as IActivity)}\n >\n {getIconModalActivities(item.referencia)}\n\n <Typography\n text={item.descricao}\n size={theme.fontSizes.xs}\n color={theme.colors.blue[500]}\n lineHeight={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n align=\"center\"\n marginTop={5}\n />\n </TouchableOpacity>\n )}\n />\n </Box>\n\n <Button\n title={\"CANCELAR ATIVIDADE\"}\n width=\"100%\"\n height={40}\n activeOpacity={0.7}\n onPress={onClose}\n backgroundColor={theme.colors.blue[500]}\n buttonTextStyle={{\n color: theme.colors.neutral[25],\n fontFamily: theme.fonts.inter_medium_500,\n fontSize: theme.fontSizes.md,\n fontWeight: \"500\",\n }}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderColor: theme.colors.blue[500],\n borderRadius: theme.borderWidths.thick_medium,\n }}\n marginStyle={{ marginLeft: theme.margins.md }}\n isLoading={isLoading ?? false}\n style={[style, { position: \"absolute\", bottom: 10, left: 0 }]}\n />\n </Box>\n </Box>\n </Modal>\n );\n};\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,gBAAgB,EAAEC,QAAQ,QAAQ,cAAc;;AAEhE;;AAEA,SAASC,GAAG,QAAQ,QAAQ;;AAE5B;AACA,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,sBAAsB,QAAQ,yCAAyC;;AAEhF;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAChD,SAASC,UAAU,QAAQ,eAAe;AAC1C,SAASC,MAAM,QAAQ,WAAW;;AAElC;;AAGA;AACA,SAASC,UAAU,QAAQ,mBAAmB;AAE9C,OAAO,MAAMC,eAA2C,GAAGA,CAAC;EAC1DC,OAAO;EACPC,cAAc;EACdC,YAAY;EACZC,SAAS;EACTC;AACF,CAAC,KAAK;EACJ,oBACEhB,KAAA,CAAAiB,aAAA,CAAChB,KAAK;IAACiB,aAAa,EAAC,MAAM;IAACC,WAAW,EAAE,IAAK;IAACC,cAAc,EAAER;EAAQ,gBACrEZ,KAAA,CAAAiB,aAAA,CAACb,GAAG;IACFiB,eAAe,EAA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|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\nimport { ModalProps } from \"react-native\";\n\n// typing\nimport { IGlobalCss } from \"../../styles/global/interface\";\n\ninterface IActivity {\n id: number;\n referencia: string;\n cor_hex: string;\n descricao: string;\n tipo: \"trabalho\" | \"descanso\";\n}\n\ninterface IModalActivities extends ModalProps, IGlobalCss {\n /** função que fecha modal */\n onClose: () => void;\n\n /** tipo de atividades */\n activityType: IActivity[\"tipo\"];\n\n /** função que manda atividade selecionada */\n // eslint-disable-next-line no-unused-vars\n handleActivity: (activity: IActivity) => void;\n}\n\n/**\n * EXPORTS\n */\nexport { IModalActivities, IActivity };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { TouchableOpacity } from "react-native";
|
|
@@ -140,8 +140,8 @@ const NotificationLoading = ({
|
|
|
140
140
|
}))));
|
|
141
141
|
};
|
|
142
142
|
|
|
143
|
-
/**
|
|
144
|
-
* EXPORTS
|
|
143
|
+
/**
|
|
144
|
+
* EXPORTS
|
|
145
145
|
*/
|
|
146
146
|
export { NotificationLoading };
|
|
147
147
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","getStatusColor","NotificationLoading","handleNavigation","title","testID","statusNotify","date","notification","dataStart","style","readonly","_theme$fontSizes$lg","_theme$fontSizes$lg2","_theme$fontSizes$sm","createElement","activeOpacity","onPress","disabled","width","flexStyle","flexDirection","alignItems","backgroundColor","colors","blue","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_medium","borderColor","paddingStyle","padding","paddings","icon","size","color","neutral","paddingLeft","text","fontSizes","sm","lineHeight","lg","fontFamily","fonts","inter_semi_bold_600","fontWeight","letterSpacing","xs","md","inter_bold_700","justifyContent","inter_medium_500","String","marginRight","ellipsizeMode","numberOfLines"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { TouchableOpacity } from \"react-native\";\r\n\r\n// components\r\nimport { Box } from \"../box\";\r\nimport { Typography } from \"../typography\";\r\n\r\n// icons\r\nimport { Icons } from \"../../common/icons-svg\";\r\n\r\n// theme\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nimport { INotificationLoading } from \"./interface\";\r\nimport { getStatusColor, StatusType } from \"../../utils/status-color/return-color\";\r\n\r\nconst NotificationLoading: React.FC<INotificationLoading> = ({\r\n handleNavigation,\r\n title,\r\n testID,\r\n statusNotify,\r\n date,\r\n notification,\r\n dataStart,\r\n style,\r\n readonly,\r\n}) => {\r\n return (\r\n <TouchableOpacity\r\n activeOpacity={0.7}\r\n testID={testID}\r\n onPress={handleNavigation}\r\n disabled={readonly}\r\n >\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\r\n backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}\r\n borderStyled={{\r\n borderWidth: theme.borderWidths.thin,\r\n borderRadius: theme.borderWidths.thick_medium,\r\n borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],\r\n }}\r\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\r\n style={style}\r\n >\r\n <Box width={\"9%\"}>\r\n <Icons icon={\"BELL\"} size={32} color={theme.colors.neutral[25]} />\r\n </Box>\r\n\r\n <Box\r\n flexStyle={{ flexDirection: \"column\" }}\r\n width={\"91%\"}\r\n paddingStyle={{ paddingLeft: 7 }}\r\n >\r\n {/* Carregamento identificação */}\r\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\r\n <Typography\r\n text={\"Carregamento - \"}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg}\r\n fontFamily={theme.fonts.inter_semi_bold_600}\r\n fontWeight=\"600\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={title}\r\n size={theme.fontSizes.xs}\r\n lineHeight={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n fontWeight=\"700\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n\r\n {/* Data do carregamento */}\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-between\",\r\n }}\r\n >\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={\"Data - \"}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Typography\r\n text={String(date)}\r\n size={theme.fontSizes.sm}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n <Box\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n }}\r\n >\r\n <Typography\r\n text={String(dataStart)}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n lineHeight={theme.fontSizes.sm}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n marginRight={8}\r\n />\r\n\r\n <Icons\r\n icon={\"ELLIPSE\"}\r\n color={\r\n readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)\r\n }\r\n size={9}\r\n />\r\n </Box>\r\n </Box>\r\n\r\n {/* Mensagem de notificação do carregamento */}\r\n <Typography\r\n text={notification}\r\n size={theme.fontSizes[\"2xs\"]}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n lineHeight={theme.fontSizes.sm ?? 14}\r\n color={theme.colors.neutral[25]}\r\n letterSpacing={\"regular\"}\r\n ellipsizeMode=\"tail\"\r\n numberOfLines={1}\r\n />\r\n </Box>\r\n </Box>\r\n </TouchableOpacity>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { NotificationLoading };\r\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;;AAE/C;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAGhD,SAASC,cAAc,QAAoB,uCAAuC;AAElF,MAAMC,mBAAmD,GAAGA,CAAC;EAC3DC,gBAAgB;EAChBC,KAAK;EACLC,MAAM;EACNC,YAAY;EACZC,IAAI;EACJC,YAAY;EACZC,SAAS;EACTC,KAAK;EACLC;AACF,CAAC,KAAK;EAAA,IAAAC,mBAAA,EAAAC,oBAAA,EAAAC,mBAAA;EACJ,oBACEnB,KAAA,CAAAoB,aAAA,CAACnB,gBAAgB;IACfoB,aAAa,EAAE,GAAI;IACnBX,MAAM,EAAEA,MAAO;IACfY,OAAO,EAAEd,gBAAiB;IAC1Be,QAAQ,EAAEP;EAAS,gBAEnBhB,KAAA,CAAAoB,aAAA,CAAClB,GAAG;IACFsB,KAAK,EAAE,MAAO;IACdC,SAAS,EAAE;MAAEC,aAAa,EAAE,KAAK;MAAEC,UAAU,EAAE;IAAS,CAAE;IAC1DC,eAAe,EAAEZ,QAAQ,GAAGX,KAAK,CAACwB,MAAM,CAACC,IAAI,CAAC,KAAK,CAAC,GAAGzB,KAAK,CAACw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AAI,EAAErC,KAAK,CAAC0C,SAAS,CAAC,KAAK,CAAE;IAC7BI,UAAU,EAAE9C,KAAK,CAAC+C,KAAK,CAACQ,gBAAiB;IACzCN,UAAU,EAAC,KAAK;IAChBL,UAAU,GAAA9B,mBAAA,GAAEd,KAAK,CAAC0C,SAAS,CAACC,EAAE,cAAA7B,mBAAA,cAAAA,mBAAA,GAAI,EAAG;IACrCwB,KAAK,EAAEtC,KAAK,CAACwB,MAAM,CAACe,OAAO,CAAC,EAAE,CAAE;IAChCW,aAAa,EAAE,SAAU;IACzBQ,aAAa,EAAC,MAAM;IACpBC,aAAa,EAAE;EAAE,CAClB,CACE,CACF,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAASzD,mBAAmB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","TouchableOpacity","Box","Typography","Icons","theme","getStatusColor","NotificationLoading","handleNavigation","title","testID","statusNotify","date","notification","dataStart","style","readonly","_theme$fontSizes$lg","_theme$fontSizes$lg2","_theme$fontSizes$sm","createElement","activeOpacity","onPress","disabled","width","flexStyle","flexDirection","alignItems","backgroundColor","colors","blue","borderStyled","borderWidth","borderWidths","thin","borderRadius","thick_medium","borderColor","paddingStyle","padding","paddings","icon","size","color","neutral","paddingLeft","text","fontSizes","sm","lineHeight","lg","fontFamily","fonts","inter_semi_bold_600","fontWeight","letterSpacing","xs","md","inter_bold_700","justifyContent","inter_medium_500","String","marginRight","ellipsizeMode","numberOfLines"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { TouchableOpacity } from \"react-native\";\n\n// components\nimport { Box } from \"../box\";\nimport { Typography } from \"../typography\";\n\n// icons\nimport { Icons } from \"../../common/icons-svg\";\n\n// theme\nimport { theme } from \"../../styles/theme/theme\";\n\nimport { INotificationLoading } from \"./interface\";\nimport { getStatusColor, StatusType } from \"../../utils/status-color/return-color\";\n\nconst NotificationLoading: React.FC<INotificationLoading> = ({\n handleNavigation,\n title,\n testID,\n statusNotify,\n date,\n notification,\n dataStart,\n style,\n readonly,\n}) => {\n return (\n <TouchableOpacity\n activeOpacity={0.7}\n testID={testID}\n onPress={handleNavigation}\n disabled={readonly}\n >\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}\n backgroundColor={readonly ? theme.colors.blue[40050] : theme.colors.blue[400]}\n borderStyled={{\n borderWidth: theme.borderWidths.thin,\n borderRadius: theme.borderWidths.thick_medium,\n borderColor: readonly ? theme.colors.blue[40050] : theme.colors.blue[400],\n }}\n paddingStyle={{ padding: theme.paddings[\"2xs\"] }}\n style={style}\n >\n <Box width={\"9%\"}>\n <Icons icon={\"BELL\"} size={32} color={theme.colors.neutral[25]} />\n </Box>\n\n <Box\n flexStyle={{ flexDirection: \"column\" }}\n width={\"91%\"}\n paddingStyle={{ paddingLeft: 7 }}\n >\n {/* Carregamento identificação */}\n <Box flexStyle={{ flexDirection: \"row\", alignItems: \"center\" }}>\n <Typography\n text={\"Carregamento - \"}\n size={theme.fontSizes.sm}\n lineHeight={theme.fontSizes.lg}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight=\"600\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={title}\n size={theme.fontSizes.xs}\n lineHeight={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_bold_700}\n fontWeight=\"700\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n </Box>\n\n {/* Data do carregamento */}\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n }}\n >\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text={\"Data - \"}\n size={theme.fontSizes.sm}\n lineHeight={theme.fontSizes.lg ?? 18}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n <Typography\n text={String(date)}\n size={theme.fontSizes.sm}\n lineHeight={theme.fontSizes.lg ?? 18}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n />\n </Box>\n <Box\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n }}\n >\n <Typography\n text={String(dataStart)}\n size={theme.fontSizes[\"2xs\"]}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes.sm}\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n marginRight={8}\n />\n\n <Icons\n icon={\"ELLIPSE\"}\n color={\n readonly ? theme.colors.neutral[25] : getStatusColor(statusNotify as StatusType)\n }\n size={9}\n />\n </Box>\n </Box>\n\n {/* Mensagem de notificação do carregamento */}\n <Typography\n text={notification}\n size={theme.fontSizes[\"2xs\"]}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes.sm ?? 14}\n color={theme.colors.neutral[25]}\n letterSpacing={\"regular\"}\n ellipsizeMode=\"tail\"\n numberOfLines={1}\n />\n </Box>\n </Box>\n </TouchableOpacity>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { NotificationLoading };\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,gBAAgB,QAAQ,cAAc;;AAE/C;AACA,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,UAAU,QAAQ,eAAe;;AAE1C;AACA,SAASC,KAAK,QAAQ,wBAAwB;;AAE9C;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAGhD,SAASC,cAAc,QAAoB,uCAAuC;AAElF,MAAMC,mBAAmD,GAAGA,CAAC;EAC3DC,gBAAgB;EAChBC,KAAK;EACLC,MAAM;EACNC,YAAY;EACZC,IAAI;EACJC,YAAY;EACZC,SAAS;EACTC,KAAK;EACLC;AACF,CAAC,KAAK;EAAA,IAA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AG;IAC/BL,KAAK,EAAEtC,KAAK,CAACwB,MAAM,CAACe,OAAO,CAAC,EAAE,CAAE;IAChCW,aAAa,EAAE,SAAU;IACzBO,WAAW,EAAE;EAAE,CAChB,CAAC,eAEF9D,KAAA,CAAAoB,aAAA,CAAChB,KAAK;IACJqC,IAAI,EAAE,SAAU;IAChBE,KAAK,EACH3B,QAAQ,GAAGX,KAAK,CAACwB,MAAM,CAACe,OAAO,CAAC,EAAE,CAAC,GAAGtC,cAAc,CAACK,YAA0B,CAChF;IACD+B,IAAI,EAAE;EAAE,CACT,CACE,CACF,CAAC,eAGN1C,KAAA,CAAAoB,aAAA,CAACjB,UAAU;IACT2C,IAAI,EAAEjC,YAAa;IACnB6B,IAAI,EAAErC,KAAK,CAAC0C,SAAS,CAAC,KAAK,CAAE;IAC7BI,UAAU,EAAE9C,KAAK,CAAC+C,KAAK,CAACQ,gBAAiB;IACzCN,UAAU,EAAC,KAAK;IAChBL,UAAU,GAAA9B,mBAAA,GAAEd,KAAK,CAAC0C,SAAS,CAACC,EAAE,cAAA7B,mBAAA,cAAAA,mBAAA,GAAI,EAAG;IACrCwB,KAAK,EAAEtC,KAAK,CAACwB,MAAM,CAACe,OAAO,CAAC,EAAE,CAAE;IAChCW,aAAa,EAAE,SAAU;IACzBQ,aAAa,EAAC,MAAM;IACpBC,aAAa,EAAE;EAAE,CAClB,CACE,CACF,CACW,CAAC;AAEvB,CAAC;;AAED;AACA;AACA;AACA,SAASzD,mBAAmB","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { StyleSheet } from "react-native";
|
|
@@ -62,8 +62,8 @@ const styles = props => {
|
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
/**
|
|
66
|
-
* EXPORTS
|
|
65
|
+
/**
|
|
66
|
+
* EXPORTS
|
|
67
67
|
*/
|
|
68
68
|
export { styles };
|
|
69
69
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","theme","styles","props","_props$backgroundColo","_props$titleColor","_props$titleNumberCol","_props$textColorDescr","create","containerIndicator","width","height","flexDirection","justifyContent","containerBall","backgroundColor","backgroundColorBall","colors","blue","alignItems","borderRadius","title","color","titleColor","textAlign","lineHeight","fontSize","fontSizes","fontWeight","marginLeft","titleNumber","titleNumberColor","neutral","fontFamily","fonts","inter_regular_400","position","titleDescription","textColorDescription","gray","containerMain"],"sources":["styles.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","styles","props","_props$backgroundColo","_props$titleColor","_props$titleNumberCol","_props$textColorDescr","create","containerIndicator","width","height","flexDirection","justifyContent","containerBall","backgroundColor","backgroundColorBall","colors","blue","alignItems","borderRadius","title","color","titleColor","textAlign","lineHeight","fontSize","fontSizes","fontWeight","marginLeft","titleNumber","titleNumberColor","neutral","fontFamily","fonts","inter_regular_400","position","titleDescription","textColorDescription","gray","containerMain"],"sources":["styles.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\nimport { StyleSheet } from \"react-native\";\n\n// typings\nimport { IStepIndicator } from \"./interface\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst styles = (props: IStepIndicator) =>\n StyleSheet.create({\n containerIndicator: {\n width: \"100%\",\n height: 86,\n flexDirection: \"row\",\n justifyContent: \"flex-start\",\n // backgroundColor: theme.colors.gray[300],\n },\n containerBall: {\n width: 32,\n height: 32,\n backgroundColor: props.backgroundColorBall ?? theme.colors.blue[500],\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n borderRadius: 16,\n },\n title: {\n color: props.titleColor ?? \"black\",\n textAlign: \"center\",\n lineHeight: 20,\n fontSize: theme.fontSizes[\"sm\"],\n fontWeight: \"500\",\n marginLeft: 8,\n },\n titleNumber: {\n color: props.titleNumberColor ?? theme.colors.neutral[25],\n textAlign: \"center\",\n lineHeight: 16,\n fontFamily: theme.fonts.inter_regular_400,\n fontSize: theme.fontSizes[\"xs\"],\n position: \"absolute\",\n },\n titleDescription: {\n color: props.textColorDescription ?? theme.colors.gray[700],\n textAlign: \"center\",\n lineHeight: 16,\n fontSize: theme.fontSizes[\"xs\"],\n fontFamily: theme.fonts.inter_regular_400,\n fontWeight: \"400\",\n marginLeft: 8,\n },\n containerMain: {\n width: \"100%\",\n height: 56,\n flexDirection: \"column\",\n alignItems: \"flex-start\",\n marginLeft: 2,\n },\n });\n\n/**\n * EXPORTS\n */\nexport { styles };\n"],"mappings":"AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;;AAGA;AACA,SAASC,KAAK,QAAQ,0BAA0B;AAEhD,MAAMC,MAAM,GAAIC,KAAqB;EAAA,IAAAC,qBAAA,EAAAC,iBAAA,EAAAC,qBAAA,EAAAC,qBAAA;EAAA,OACnCP,UAAU,CAACQ,MAAM,CAAC;IAChBC,kBAAkB,EAAE;MAClBC,KAAK,EAAE,MAAM;MACbC,MAAM,EAAE,EAAE;MACVC,aAAa,EAAE,KAAK;MACpBC,cAAc,EAAE;MAChB;IACF,CAAC;IACDC,aAAa,EAAE;MACbJ,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACVI,eAAe,GAAAX,qBAAA,GAAED,KAAK,CAACa,mBAAmB,cAAAZ,qBAAA,cAAAA,qBAAA,GAAIH,KAAK,CAACgB,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;MACpEN,aAAa,EAAE,KAAK;MACpBO,UAAU,EAAE,QAAQ;MACpBN,cAAc,EAAE,QAAQ;MACxBO,YAAY,EAAE;IAChB,CAAC;IACDC,KAAK,EAAE;MACLC,KAAK,GAAAjB,iBAAA,GAAEF,KAAK,CAACoB,UAAU,cAAAlB,iBAAA,cAAAA,iBAAA,GAAI,OAAO;MAClCmB,SAAS,EAAE,QAAQ;MACnBC,UAAU,EAAE,EAAE;MACdC,QAAQ,EAAEzB,KAAK,CAAC0B,SAAS,CAAC,IAAI,CAAC;MAC/BC,UAAU,EAAE,KAAK;MACjBC,UAAU,EAAE;IACd,CAAC;IACDC,WAAW,EAAE;MACXR,KAAK,GAAAhB,qBAAA,GAAEH,KAAK,CAAC4B,gBAAgB,cAAAzB,qBAAA,cAAAA,qBAAA,GAAIL,KAAK,CAACgB,MAAM,CAACe,OAAO,CAAC,EAAE,CAAC;MACzDR,SAAS,EAAE,QAAQ;MACnBC,UAAU,EAAE,EAAE;MACdQ,UAAU,EAAEhC,KAAK,CAACiC,KAAK,CAACC,iBAAiB;MACzCT,QAAQ,EAAEzB,KAAK,CAAC0B,SAAS,CAAC,IAAI,CAAC;MAC/BS,QAAQ,EAAE;IACZ,CAAC;IACDC,gBAAgB,EAAE;MAChBf,KAAK,GAAAf,qBAAA,GAAEJ,KAAK,CAACmC,oBAAoB,cAAA/B,qBAAA,cAAAA,qBAAA,GAAIN,KAAK,CAACgB,MAAM,CAACsB,IAAI,CAAC,GAAG,CAAC;MAC3Df,SAAS,EAAE,QAAQ;MACnBC,UAAU,EAAE,EAAE;MACdC,QAAQ,EAAEzB,KAAK,CAAC0B,SAAS,CAAC,IAAI,CAAC;MAC/BM,UAAU,EAAEhC,KAAK,CAACiC,KAAK,CAACC,iBAAiB;MACzCP,UAAU,EAAE,KAAK;MACjBC,UAAU,EAAE;IACd,CAAC;IACDW,aAAa,EAAE;MACb9B,KAAK,EAAE,MAAM;MACbC,MAAM,EAAE,EAAE;MACVC,aAAa,EAAE,QAAQ;MACvBO,UAAU,EAAE,YAAY;MACxBU,UAAU,EAAE;IACd;EACF,CAAC,CAAC;AAAA;;AAEJ;AACA;AACA;AACA,SAAS3B,MAAM","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Box","Button","StepIndicator","Typography","Input","CapturePhoto","CardHours","SelectOption","Header","ScheduledJourneyIndicators","CardScheduledJourney","UserProfile","MenuItem","CardLoading","CardWorkSession","LoadingProgress","NoData","FilterJourney","Coil","FilterDateSelector","CardHistory","NotificationLoading","CheckBox","ImageCaptureWithRemove","LoadingDetails","AvatarProfile","HistoryDetails","ActivitiesDaily","ActivitiesProgress","ProfileMenuOption","ModalActivities","multiply","formatDate","getLastSevenDays","formHoursMinute","theme"],"sources":["index.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["Box","Button","StepIndicator","Typography","Input","CapturePhoto","CardHours","SelectOption","Header","ScheduledJourneyIndicators","CardScheduledJourney","UserProfile","MenuItem","CardLoading","CardWorkSession","LoadingProgress","NoData","FilterJourney","Coil","FilterDateSelector","CardHistory","NotificationLoading","CheckBox","ImageCaptureWithRemove","LoadingDetails","AvatarProfile","HistoryDetails","ActivitiesDaily","ActivitiesProgress","ProfileMenuOption","ModalActivities","multiply","formatDate","getLastSevenDays","formHoursMinute","theme"],"sources":["index.ts"],"sourcesContent":["/**\n * EXPORTS\n */\n\n// Components\nexport { Box } from \"./components/box\";\nexport { Button } from \"./components/button\";\nexport { StepIndicator } from \"./components/step-indicator\";\nexport { Typography } from \"./components/typography\";\nexport { Input } from \"./components/input\";\nexport { CapturePhoto } from \"./components/capture-photo\";\nexport { CardHours } from \"./components/card-hours\";\nexport { SelectOption } from \"./components/selects/select-option\";\nexport { Header } from \"./components/header-profile\";\nexport { ScheduledJourneyIndicators } from \"./components/scheduled-journey-indicators\";\nexport { CardScheduledJourney } from \"./components/card-scheduled-journey\";\nexport { UserProfile } from \"./components/user-profile\";\nexport { MenuItem } from \"./components/menu-item\";\nexport { CardLoading } from \"./components/card-loading\";\nexport { CardWorkSession } from \"./components/card-work-session\";\nexport { LoadingProgress } from \"./components/loading-progress\";\nexport { NoData } from \"./components/no-data\";\nexport { FilterJourney } from \"./components/filter-journey\";\nexport { Coil } from \"./components/coil\";\nexport { FilterDateSelector } from \"./components/filter-date-selector\";\nexport { CardHistory } from \"./components/card-history\";\nexport { NotificationLoading } from \"./components/notification-loading\";\nexport { CheckBox } from \"./components/check-box\";\nexport { ImageCaptureWithRemove } from \"./components/image-capture-with-remove\";\nexport { LoadingDetails } from \"./components/loading-details\";\nexport { AvatarProfile } from \"./components/avatar-profile\";\nexport { HistoryDetails } from \"./components/history-details\";\nexport { ActivitiesDaily } from \"./components/activities-daily\";\nexport { ActivitiesProgress } from \"./components/activities-progress\";\nexport { ProfileMenuOption } from \"./components/profile-menu-option\";\nexport { ModalActivities } from \"./components/modal-activities\";\n\n// Utilities\nexport { multiply } from \"./utils/mutiply\";\nexport { formatDate, getLastSevenDays, formHoursMinute } from \"./utils/format-data\";\n\n// Styles\nexport { theme } from \"./styles/theme/theme\";\n"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA,SAASA,GAAG,QAAQ,kBAAkB;AACtC,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,KAAK,QAAQ,oBAAoB;AAC1C,SAASC,YAAY,QAAQ,4BAA4B;AACzD,SAASC,SAAS,QAAQ,yBAAyB;AACnD,SAASC,YAAY,QAAQ,oCAAoC;AACjE,SAASC,MAAM,QAAQ,6BAA6B;AACpD,SAASC,0BAA0B,QAAQ,2CAA2C;AACtF,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,eAAe,QAAQ,gCAAgC;AAChE,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,kBAAkB,QAAQ,mCAAmC;AACtE,SAASC,WAAW,QAAQ,2BAA2B;AACvD,SAASC,mBAAmB,QAAQ,mCAAmC;AACvE,SAASC,QAAQ,QAAQ,wBAAwB;AACjD,SAASC,sBAAsB,QAAQ,wCAAwC;AAC/E,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,aAAa,QAAQ,6BAA6B;AAC3D,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,kBAAkB,QAAQ,kCAAkC;AACrE,SAASC,iBAAiB,QAAQ,kCAAkC;AACpE,SAASC,eAAe,QAAQ,+BAA+B;;AAE/D;AACA,SAASC,QAAQ,QAAQ,iBAAiB;AAC1C,SAASC,UAAU,EAAEC,gBAAgB,EAAEC,eAAe,QAAQ,qBAAqB;;AAEnF;AACA,SAASC,KAAK,QAAQ,sBAAsB","ignoreList":[]}
|
|
@@ -5,8 +5,9 @@ const meta = {
|
|
|
5
5
|
args: {
|
|
6
6
|
width: 120,
|
|
7
7
|
onClose: () => {},
|
|
8
|
+
activityType: "trabalho",
|
|
8
9
|
isLoading: false,
|
|
9
|
-
handleActivity: activity =>
|
|
10
|
+
handleActivity: activity => {
|
|
10
11
|
return activity;
|
|
11
12
|
}
|
|
12
13
|
},
|
|
@@ -19,6 +20,7 @@ Você usa assim:
|
|
|
19
20
|
\`\`\`tsx
|
|
20
21
|
<ModalActivities
|
|
21
22
|
{...args}
|
|
23
|
+
activityType={activity?.tipo || "trabalho"}
|
|
22
24
|
onClose={() => setIsVisible(false)}
|
|
23
25
|
handleActivity={handleActivity}
|
|
24
26
|
/>
|
|
@@ -27,11 +29,25 @@ Você usa assim:
|
|
|
27
29
|
}
|
|
28
30
|
};
|
|
29
31
|
export default meta;
|
|
30
|
-
export const
|
|
31
|
-
name: "modal-activities",
|
|
32
|
+
export const DefaultWork = {
|
|
33
|
+
name: "modal-activities-work",
|
|
34
|
+
args: {
|
|
35
|
+
isLoading: false,
|
|
36
|
+
activityType: "trabalho",
|
|
37
|
+
onClose: () => {},
|
|
38
|
+
handleActivity: activity => () => {
|
|
39
|
+
return activity;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export const DefaultRest = {
|
|
44
|
+
name: "modal-activities-rest",
|
|
32
45
|
args: {
|
|
33
|
-
width: 120,
|
|
34
46
|
isLoading: false,
|
|
47
|
+
activityType: "descanso",
|
|
48
|
+
style: {
|
|
49
|
+
marginLeft: 0
|
|
50
|
+
},
|
|
35
51
|
onClose: () => {},
|
|
36
52
|
handleActivity: activity => () => {
|
|
37
53
|
return activity;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ModalActivities","meta","title","component","args","width","onClose","isLoading","handleActivity","activity","parameters","notes","
|
|
1
|
+
{"version":3,"names":["ModalActivities","meta","title","component","args","width","onClose","activityType","isLoading","handleActivity","activity","parameters","notes","DefaultWork","name","DefaultRest","style","marginLeft"],"sources":["modal-activities.stories.tsx"],"sourcesContent":["import { StoryObj, Meta } from \"@storybook/react\";\nimport { ModalActivities } from \"../../components/modal-activities\";\nimport { IActivity } from \"../../components/modal-activities/interface\";\n\nconst meta: Meta<typeof ModalActivities> = {\n title: \"componente/ModalActivities\",\n component: ModalActivities,\n args: {\n width: 120,\n onClose: () => {},\n activityType: \"trabalho\",\n isLoading: false,\n handleActivity: (activity: IActivity) => {\n return activity;\n },\n },\n parameters: {\n notes: `\n# MenuItem\n\nEste é um componente de MenuItem de menu.\nVocê usa assim:\n\\`\\`\\`tsx\n <ModalActivities\n {...args}\n activityType={activity?.tipo || \"trabalho\"}\n onClose={() => setIsVisible(false)}\n handleActivity={handleActivity}\n />\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const DefaultWork: Story = {\n name: \"modal-activities-work\",\n args: {\n isLoading: false,\n activityType: \"trabalho\",\n onClose: () => {},\n handleActivity: (activity: IActivity) => () => {\n return activity;\n },\n },\n};\n\nexport const DefaultRest: Story = {\n name: \"modal-activities-rest\",\n args: {\n isLoading: false,\n activityType: \"descanso\",\n style: {\n marginLeft: 0,\n },\n onClose: () => {},\n handleActivity: (activity: IActivity) => () => {\n return activity;\n },\n },\n};\n"],"mappings":"AACA,SAASA,eAAe,QAAQ,mCAAmC;AAGnE,MAAMC,IAAkC,GAAG;EACzCC,KAAK,EAAE,4BAA4B;EACnCC,SAAS,EAAEH,eAAe;EAC1BI,IAAI,EAAE;IACJC,KAAK,EAAE,GAAG;IACVC,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAC;IACjBC,YAAY,EAAE,UAAU;IACxBC,SAAS,EAAE,KAAK;IAChBC,cAAc,EAAGC,QAAmB,IAAK;MACvC,OAAOA,QAAQ;IACjB;EACF,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAED,eAAeX,IAAI;AAInB,OAAO,MAAMY,WAAkB,GAAG;EAChCC,IAAI,EAAE,uBAAuB;EAC7BV,IAAI,EAAE;IACJI,SAAS,EAAE,KAAK;IAChBD,YAAY,EAAE,UAAU;IACxBD,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAC;IACjBG,cAAc,EAAGC,QAAmB,IAAK,MAAM;MAC7C,OAAOA,QAAQ;IACjB;EACF;AACF,CAAC;AAED,OAAO,MAAMK,WAAkB,GAAG;EAChCD,IAAI,EAAE,uBAAuB;EAC7BV,IAAI,EAAE;IACJI,SAAS,EAAE,KAAK;IAChBD,YAAY,EAAE,UAAU;IACxBS,KAAK,EAAE;MACLC,UAAU,EAAE;IACd,CAAC;IACDX,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAC;IACjBG,cAAc,EAAGC,QAAmB,IAAK,MAAM;MAC7C,OAAOA,QAAQ;IACjB;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/*\
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/*\n * IMPORTS\n */\nimport React from \"react\";\nimport { DimensionValue } from \"react-native\";\nimport { theme } from \"../theme/theme\";\n\nexport interface IGlobalCss {\n /**\n * A propriedade JSX que define um elemento ou componente filho.\n */\n children?: React.ReactNode;\n\n /**\n * TestID para testes automático e identificação\n */\n testID?: string;\n\n /**\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.\n */\n borderStyled?: {\n borderStyle?: \"solid\" | \"dotted\" | \"dashed\";\n\n borderRadius?: number | DimensionValue;\n borderTopRightRadius?: number | DimensionValue;\n borderTopLeftRadius?: number | DimensionValue;\n borderBottomRightRadius?: number | DimensionValue;\n borderBottomLeftRadius?: number | DimensionValue;\n\n borderWidth?: number | DimensionValue;\n borderLeftWidth?: number | DimensionValue;\n borderRightWidth?: number | DimensionValue;\n borderTopWidth?: number | DimensionValue;\n borderBottomWidth?: number | DimensionValue;\n\n borderColor?: string;\n borderBottomColor?: string;\n borderLeftColor?: string;\n borderRightColor?: string;\n borderTopColor?: string;\n };\n\n /**\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.\n */\n flexStyle?: {\n alignItems?: \"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"baseline\";\n alignSelf?: \"auto\" | \"flex-start\" | \"flex-end\" | \"center\" | \"stretch\" | \"baseline\";\n flex?: string | number;\n flexDirection?: \"column\" | \"column-reverse\" | \"row\" | \"row-reverse\";\n flexWrap?: \"nowrap\" | \"wrap\" | \"wrap-reverse\";\n textAlign?: \"auto\" | \"center\" | \"left\" | \"right\" | \"justify\";\n justifyContent?:\n | \"flex-start\"\n | \"flex-end\"\n | \"center\"\n | \"space-between\"\n | \"space-around\"\n | \"space-evenly\";\n };\n\n /**\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).\n */\n marginStyle?: {\n margin?: number | DimensionValue;\n marginLeft?: number | DimensionValue;\n marginRight?: number | DimensionValue;\n marginTop?: number | DimensionValue;\n marginBottom?: number | DimensionValue;\n };\n\n /**\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).\n */\n paddingStyle?: {\n padding?: number | DimensionValue;\n paddingLeft?: number | DimensionValue;\n paddingRight?: number | DimensionValue;\n paddingTop?: number | DimensionValue;\n paddingBottom?: number | DimensionValue;\n };\n\n /**\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.\n */\n height?: number | DimensionValue;\n\n /**\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.\n */\n width?: number | DimensionValue;\n\n /**\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..\n */\n backgroundColor?: string;\n\n /**\n * Propriedade texto que sera renderizado pro usuário final\n */\n text?: string;\n\n /**\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.\n */\n color?: {\n colorSvg?: string;\n colorText?: string;\n colorTextBold?: string;\n colorTextData?: string;\n };\n\n /**\n * A propriedade abreviada CSS da fonte define todas as propriedades diferentes da fonte de um elemento. Alternativamente, ele define a fonte de um elemento como uma fonte do sistema.\n */\n fontStyle?: {\n font?: string;\n fontSize?: number;\n fontWeight?: \"100\" | \"300\" | \"400\" | \"500\" | \"600\" | \"700\" | \"800\" | \"900\" | \"bold\";\n fontFamily?: keyof typeof theme.fonts;\n letterSpacing?: keyof typeof theme.letterSpacing;\n lineHeight?: number;\n };\n\n /**\n * A propriedade CSS opacity define o nível de opacidade de um elemento. O valor da opacidade varia de 0 (totalmente transparente) a 1 (totalmente opaco).\n */\n disabled?: boolean;\n\n /**\n * A propriedade background do icon da cor.\n */\n backgroundColorIcon?: string;\n\n /**\n * props que indica o loading do button\n */\n isLoading?: boolean;\n}\n\n// /**\n// * EXPORTS\n// */\n// export { IGlobalCss };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Imports
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
/** Enum com os tipos de propriedade */
|
|
6
|
+
export declare enum PropertyType {
|
|
7
|
+
OPERACAO_VEICULO = "operacao_veiculo",
|
|
8
|
+
MANUTENCAO = "manutencao",
|
|
9
|
+
AGUARDANDO_CARGA = "aguardando_carga",
|
|
10
|
+
DISPOSICAO_VEICULO_PARADO = "disposicao_veiculo_parado",
|
|
11
|
+
AGUARDANDO = "aguardando_descarga",
|
|
12
|
+
DESCANSO = "descanso",
|
|
13
|
+
REPOUSO_SEMANAL = "repouso_semanal",
|
|
14
|
+
REPOUSO_NOTURNO = "repouso_noturno",
|
|
15
|
+
REFEICAO = "refeicao"
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Função que retorna o ícone com cor aplicada
|
|
19
|
+
* @param propertyType Tipo da propriedade
|
|
20
|
+
* @param color Cor a ser aplicada
|
|
21
|
+
* @returns Ícone com cor aplicada
|
|
22
|
+
*/
|
|
23
|
+
export declare const getIconModalActivities: (propertyType: string, color?: string) => React.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dados para os tipos de atividades selecionado
|
|
3
|
+
*/
|
|
4
|
+
export declare const activities: {
|
|
5
|
+
trabalho: {
|
|
6
|
+
id: number;
|
|
7
|
+
referencia: string;
|
|
8
|
+
cor_hex: string;
|
|
9
|
+
descricao: string;
|
|
10
|
+
tipo: string;
|
|
11
|
+
}[];
|
|
12
|
+
descanso: {
|
|
13
|
+
id: number;
|
|
14
|
+
referencia: string;
|
|
15
|
+
cor_hex: string;
|
|
16
|
+
descricao: string;
|
|
17
|
+
tipo: string;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
@@ -3,4 +3,5 @@ import { ModalActivities } from "../../components/modal-activities";
|
|
|
3
3
|
declare const meta: Meta<typeof ModalActivities>;
|
|
4
4
|
export default meta;
|
|
5
5
|
declare type Story = StoryObj<typeof meta>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const DefaultWork: Story;
|
|
7
|
+
export declare const DefaultRest: Story;
|