react-native-exp-fig 0.1.13 → 0.1.15
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/agent/index.js +2 -2
- package/lib/commonjs/common/icons-svg/agent/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/bed/index.js +4 -4
- package/lib/commonjs/common/icons-svg/bed/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/car/index.js +4 -4
- package/lib/commonjs/common/icons-svg/car/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/check-outline/index.js +6 -6
- package/lib/commonjs/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/coffee/index.js +4 -4
- package/lib/commonjs/common/icons-svg/coffee/index.js.map +1 -1
- 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/index.js +4 -4
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/pencil/index.js +4 -4
- package/lib/commonjs/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/commonjs/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/commonjs/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/index.js +4 -4
- package/lib/commonjs/components/activities-daily/index.js.map +1 -1
- package/lib/commonjs/components/activities-daily/interface.d.js.map +1 -1
- package/lib/commonjs/components/activities-progress/index.js +4 -4
- package/lib/commonjs/components/activities-progress/index.js.map +1 -1
- package/lib/commonjs/components/activities-progress/interface.d.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/index.js.map +1 -1
- package/lib/commonjs/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +7 -7
- package/lib/commonjs/components/card-history/index.js.map +1 -1
- package/lib/commonjs/components/card-loading/index.js +7 -7
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +4 -4
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/check-box/index.js +6 -6
- package/lib/commonjs/components/check-box/index.js.map +1 -1
- package/lib/commonjs/components/check-box/interface.d.js.map +1 -1
- package/lib/commonjs/components/coil/index.js +4 -4
- package/lib/commonjs/components/coil/index.js.map +1 -1
- package/lib/commonjs/components/coil/interface.d.js.map +1 -1
- package/lib/commonjs/components/filter-date-selector/index.js +7 -7
- package/lib/commonjs/components/filter-date-selector/index.js.map +1 -1
- package/lib/commonjs/components/history-details/index.js +1 -2
- package/lib/commonjs/components/history-details/index.js.map +1 -1
- package/lib/commonjs/components/history-details/interface.d.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/index.js +7 -7
- package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/commonjs/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/commonjs/components/loading-progress/index.js +12 -9
- package/lib/commonjs/components/loading-progress/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/index.js +9 -2
- package/lib/commonjs/components/notification-loading/index.js.map +1 -1
- package/lib/commonjs/components/notification-loading/interface.d.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/index.js.map +1 -1
- package/lib/commonjs/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/index.js +6 -6
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/interface.d.js.map +1 -1
- package/lib/commonjs/components/step-indicator/styles.js +9 -8
- package/lib/commonjs/components/step-indicator/styles.js.map +1 -1
- package/lib/commonjs/components/user-profile/index.js +6 -6
- package/lib/commonjs/components/user-profile/index.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/commonjs/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/commonjs/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/commonjs/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/commonjs/stories/coil/coil.stories.js.map +1 -1
- package/lib/commonjs/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/commonjs/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/commonjs/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/commonjs/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/commonjs/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/commonjs/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +4 -4
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/utils/format-data/index.js +11 -11
- package/lib/commonjs/utils/format-data/index.js.map +1 -1
- package/lib/commonjs/utils/status-color/return-color.js.map +1 -1
- package/lib/module/common/icons-svg/agent/index.js +2 -2
- package/lib/module/common/icons-svg/agent/index.js.map +1 -1
- package/lib/module/common/icons-svg/bed/index.js +4 -4
- package/lib/module/common/icons-svg/bed/index.js.map +1 -1
- package/lib/module/common/icons-svg/car/index.js +4 -4
- package/lib/module/common/icons-svg/car/index.js.map +1 -1
- package/lib/module/common/icons-svg/check-outline/index.js +6 -6
- package/lib/module/common/icons-svg/check-outline/index.js.map +1 -1
- package/lib/module/common/icons-svg/coffee/index.js +4 -4
- package/lib/module/common/icons-svg/coffee/index.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/index.js +4 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/pencil/index.js +4 -4
- package/lib/module/common/icons-svg/pencil/index.js.map +1 -1
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js +2 -2
- package/lib/module/common/icons-svg/refresh-ccw-dot/index.js.map +1 -1
- package/lib/module/common/icons-svg/truck-activity/index.js +4 -4
- package/lib/module/common/icons-svg/truck-activity/index.js.map +1 -1
- package/lib/module/components/activities-daily/index.js +4 -4
- package/lib/module/components/activities-daily/index.js.map +1 -1
- package/lib/module/components/activities-daily/interface.d.js.map +1 -1
- package/lib/module/components/activities-progress/index.js +4 -4
- package/lib/module/components/activities-progress/index.js.map +1 -1
- package/lib/module/components/activities-progress/interface.d.js.map +1 -1
- package/lib/module/components/avatar-profile/index.js.map +1 -1
- package/lib/module/components/avatar-profile/interface.d.js.map +1 -1
- package/lib/module/components/card-history/index.js +7 -7
- package/lib/module/components/card-history/index.js.map +1 -1
- package/lib/module/components/card-loading/index.js +7 -7
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +4 -4
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/check-box/index.js +6 -6
- package/lib/module/components/check-box/index.js.map +1 -1
- package/lib/module/components/check-box/interface.d.js.map +1 -1
- package/lib/module/components/coil/index.js +4 -4
- package/lib/module/components/coil/index.js.map +1 -1
- package/lib/module/components/coil/interface.d.js.map +1 -1
- package/lib/module/components/filter-date-selector/index.js +7 -7
- package/lib/module/components/filter-date-selector/index.js.map +1 -1
- package/lib/module/components/history-details/index.js +1 -2
- package/lib/module/components/history-details/index.js.map +1 -1
- package/lib/module/components/history-details/interface.d.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/index.js +7 -7
- package/lib/module/components/image-capture-with-remove/index.js.map +1 -1
- package/lib/module/components/image-capture-with-remove/interface.d.js.map +1 -1
- package/lib/module/components/loading-progress/index.js +12 -9
- package/lib/module/components/loading-progress/index.js.map +1 -1
- package/lib/module/components/notification-loading/index.js +9 -2
- package/lib/module/components/notification-loading/index.js.map +1 -1
- package/lib/module/components/notification-loading/interface.d.js.map +1 -1
- package/lib/module/components/profile-menu-option/index.js.map +1 -1
- package/lib/module/components/profile-menu-option/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/index.js +6 -6
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/step-indicator/interface.d.js.map +1 -1
- package/lib/module/components/step-indicator/styles.js +9 -8
- package/lib/module/components/step-indicator/styles.js.map +1 -1
- package/lib/module/components/user-profile/index.js +6 -6
- package/lib/module/components/user-profile/index.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/activities-daily/activities-daily.stories.js.map +1 -1
- package/lib/module/stories/activities-progress/activities-progress.stories.js.map +1 -1
- package/lib/module/stories/avatar-profile/avatar-profile.stories.js.map +1 -1
- package/lib/module/stories/card-loading/card-loading.stories.js.map +1 -1
- package/lib/module/stories/check-box/check-box.stories.js.map +1 -1
- package/lib/module/stories/coil/coil.stories.js.map +1 -1
- package/lib/module/stories/filter-date-selector/filter-date-selector.stories.js.map +1 -1
- package/lib/module/stories/history-details/history-details.stories.js.map +1 -1
- package/lib/module/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -1
- package/lib/module/stories/notification-loading/notification-loading.stories.js.map +1 -1
- package/lib/module/stories/profile-menu-option/profile-menu-option.stories.js.map +1 -1
- package/lib/module/stories/step-indicator/step-indicator.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +4 -4
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/utils/format-data/index.js +11 -11
- package/lib/module/utils/format-data/index.js.map +1 -1
- package/lib/module/utils/status-color/return-color.js.map +1 -1
- package/lib/typescript/src/components/step-indicator/styles.d.ts +1 -0
- package/package.json +5 -5
- package/src/common/icons-svg/agent/index.tsx +40 -40
- package/src/common/icons-svg/bed/index.tsx +41 -41
- package/src/common/icons-svg/car/index.tsx +29 -29
- package/src/common/icons-svg/check-outline/index.tsx +42 -42
- package/src/common/icons-svg/coffee/index.tsx +43 -43
- package/src/common/icons-svg/constants/index.ts +63 -63
- package/src/common/icons-svg/index.tsx +255 -255
- package/src/common/icons-svg/pencil/index.tsx +32 -32
- package/src/common/icons-svg/refresh-ccw-dot/index.tsx +32 -32
- package/src/common/icons-svg/truck-activity/index.tsx +29 -29
- package/src/components/activities-daily/index.tsx +116 -116
- package/src/components/activities-daily/interface.d.ts +22 -22
- package/src/components/activities-progress/index.tsx +162 -162
- package/src/components/activities-progress/interface.d.ts +41 -41
- package/src/components/avatar-profile/index.tsx +95 -95
- package/src/components/avatar-profile/interface.d.ts +39 -39
- package/src/components/card-history/index.tsx +149 -149
- package/src/components/card-loading/index.tsx +278 -278
- package/src/components/card-work-session/index.tsx +187 -187
- package/src/components/check-box/index.tsx +94 -94
- package/src/components/check-box/interface.d.ts +31 -31
- package/src/components/coil/index.tsx +103 -103
- package/src/components/coil/interface.d.ts +26 -26
- package/src/components/filter-date-selector/index.tsx +101 -101
- package/src/components/history-details/index.tsx +1 -2
- package/src/components/history-details/interface.d.ts +18 -18
- package/src/components/image-capture-with-remove/index.tsx +89 -89
- package/src/components/image-capture-with-remove/interface.d.ts +25 -25
- package/src/components/loading-progress/index.tsx +92 -91
- package/src/components/notification-loading/index.tsx +9 -2
- package/src/components/notification-loading/interface.d.ts +35 -35
- package/src/components/profile-menu-option/index.tsx +65 -65
- package/src/components/profile-menu-option/interface.d.ts +42 -42
- package/src/components/step-indicator/index.tsx +164 -164
- package/src/components/step-indicator/interface.d.ts +34 -34
- package/src/components/step-indicator/styles.ts +68 -67
- package/src/components/user-profile/index.tsx +204 -204
- package/src/index.ts +42 -42
- package/src/stories/activities-daily/activities-daily.stories.tsx +40 -40
- package/src/stories/activities-progress/activities-progress.stories.tsx +61 -61
- package/src/stories/avatar-profile/avatar-profile.stories.tsx +32 -32
- package/src/stories/card-loading/card-loading.stories.tsx +85 -85
- package/src/stories/check-box/check-box.stories.tsx +81 -81
- package/src/stories/coil/coil.stories.tsx +98 -98
- package/src/stories/filter-date-selector/filter-date-selector.stories.tsx +122 -122
- package/src/stories/history-details/history-details.stories.tsx +36 -36
- package/src/stories/image-capture-with-remove/image-capture-with-remove.stories.tsx +57 -57
- package/src/stories/notification-loading/notification-loading.stories.tsx +88 -88
- package/src/stories/profile-menu-option/profile-menu-option.stories.tsx +70 -70
- package/src/stories/step-indicator/step-indicator.stories.tsx +124 -124
- package/src/styles/theme/theme.ts +170 -170
- package/src/utils/format-data/index.ts +66 -66
- package/src/utils/status-color/return-color.ts +23 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_getIconByStatus","_styles","_iconsSvg","_formatData","e","__esModule","default","StepIndicator","data","type","backgroundColorBall","textColorDescription","titleColor","titleNumberColor","StepDefault","createElement","Fragment","length","map","history","index","View","testID","style","styles","containerIndicator","key","id","containerBall","width","height","marginTop","position","backgroundColor","Text","titleNumber","containerMain","title","descricao","data_inicio","titleDescription","data_fim","duracao_segundos","formHoursMinute","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","getIconKeyByValue","borderRadius","alignItems","justifyContent","borderWidth","borderColor","Icons","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType","exports"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { View, Text } from \"react-native\";\r\n\r\nimport { getIconKeyByValue } from \"./helpers/get-icon-by-status\";\r\n\r\n// typings\r\nimport { IStepIndicator } from \"./interface\";\r\n\r\n// styles\r\nimport { styles } from \"./styles\";\r\nimport { Icons } from \"../../common/icons-svg\";\r\nimport { formHoursMinute } from \"../../utils/format-data\";\r\n\r\n/**\r\n * Componente StepIndicator para a interação da ui.\r\n */\r\n\r\nconst StepIndicator: React.FC<IStepIndicator> = ({\r\n data = [],\r\n type,\r\n backgroundColorBall,\r\n textColorDescription,\r\n titleColor,\r\n titleNumberColor,\r\n}) => {\r\n const StepDefault = () => {\r\n return (\r\n <>\r\n {data!.length > 0 &&\r\n data!.map((history, index) => (\r\n <View testID=\"step-indicator\" style={styles({}).containerIndicator} key={history.id}>\r\n <View style={styles({ backgroundColorBall }).containerBall}>\r\n {data!?.length > 1 && index < data!?.length - 1 && (\r\n <View\r\n style={{\r\n width: 2,\r\n height: 84,\r\n marginTop: 116,\r\n position: \"relative\",\r\n backgroundColor: \"#050022\",\r\n }}\r\n />\r\n )}\r\n <Text style={styles({ titleNumberColor }).titleNumber}>\r\n {data!?.length - index}\r\n </Text>\r\n </View>\r\n\r\n <View style={styles({}).containerMain}>\r\n <Text style={styles({ titleColor }).title}>{history?.descricao}</Text>\r\n\r\n {history?.data_inicio && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n {`Inicio: ${history.data_inicio} ás ${history.data_fim}`}\r\n </Text>\r\n )}\r\n\r\n {history.duracao_segundos && (\r\n <Text style={styles({ textColorDescription }).titleDescription}>\r\n Duração: {formHoursMinute(history?.duracao_segundos as string)}\r\n </Text>\r\n )}\r\n </View>\r\n </View>\r\n ))}\r\n </>\r\n );\r\n };\r\n\r\n const StepCustom = () => {\r\n return (\r\n <View\r\n style={{\r\n width: \"100%\",\r\n height: 84,\r\n paddingHorizontal: 24,\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n }}\r\n >\r\n {data.map((step, indexCustom) => {\r\n const descricao = getIconKeyByValue(step.descricao);\r\n\r\n return (\r\n <React.Fragment key={`step-${indexCustom}`}>\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: indexCustom <= 3 ? \"orange\" : \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n borderWidth: 1,\r\n borderColor: \"#fff\",\r\n }}\r\n >\r\n <View\r\n style={{\r\n width: 45,\r\n height: 45,\r\n backgroundColor: \"transparent\",\r\n borderRadius: 50,\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n {descricao && <Icons icon={descricao} />}\r\n </View>\r\n <Text\r\n style={{\r\n position: \"absolute\",\r\n top: 56,\r\n fontWeight: \"600\",\r\n fontSize: 10,\r\n lineHeight: 14,\r\n textAlign: \"center\",\r\n color: \"#fff\",\r\n width: 75,\r\n }}\r\n >\r\n {step.descricao}\r\n </Text>\r\n </View>\r\n\r\n {data?.length > 1 && indexCustom < data?.length - 1 && (\r\n <View\r\n style={{\r\n width: 35,\r\n height: 2,\r\n marginTop: 24,\r\n position: \"relative\",\r\n backgroundColor: \"orange\",\r\n }}\r\n />\r\n )}\r\n </React.Fragment>\r\n );\r\n })}\r\n </View>\r\n );\r\n };\r\n\r\n const handleRenderComponent = (stepType: \"default\" | \"custom\") => {\r\n switch (stepType) {\r\n case \"default\":\r\n return <StepDefault />;\r\n case \"custom\":\r\n return <StepCustom />;\r\n default:\r\n return <View />;\r\n }\r\n };\r\n\r\n return <>{handleRenderComponent(type!)}</>;\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { StepIndicator };\r\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AAMA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAA0D,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAd1D;AACA;AACA;;AAMA;;AAGA;;AAKA;AACA;AACA;;AAEA,MAAMG,aAAuC,GAAGA,CAAC;EAC/CC,IAAI,GAAG,EAAE;EACTC,IAAI;EACJC,mBAAmB;EACnBC,oBAAoB;EACpBC,UAAU;EACVC;AACF,CAAC,KAAK;EACJ,MAAMC,WAAW,GAAGA,CAAA,KAAM;IACxB,oBACElB,MAAA,CAAAU,OAAA,CAAAS,aAAA,CAAAnB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,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAES,MAAM,IAAG,CAAC,iBACjDrB,MAAA,CAAAU,OAAA,CAAAS,aAAA,CAAChB,YAAA,CAAAsB,IAAI;QACHE,KAAK,EAAE;UACLM,KAAK,EAAE,EAAE;UACTC,MAAM,EAAE,CAAC;UACTC,SAAS,EAAE,EAAE;UACbC,QAAQ,EAAE,UAAU;UACpBC,eAAe,EAAE;QACnB;MAAE,CACH,CAEW,CAAC;IAErB,CAAC,CACG,CAAC;EAEX,CAAC;EAED,MAAM+B,qBAAqB,GAAIC,QAA8B,IAAK;IAChE,QAAQA,QAAQ;MACd,KAAK,SAAS;QACZ,oBAAOrE,MAAA,CAAAU,OAAA,CAAAS,aAAA,CAACD,WAAW,MAAE,CAAC;MACxB,KAAK,QAAQ;QACX,oBAAOlB,MAAA,CAAAU,OAAA,CAAAS,aAAA,CAAC6B,UAAU,MAAE,CAAC;MACvB;QACE,oBAAOhD,MAAA,CAAAU,OAAA,CAAAS,aAAA,CAAChB,YAAA,CAAAsB,IAAI,MAAE,CAAC;IACnB;EACF,CAAC;EAED,oBAAOzB,MAAA,CAAAU,OAAA,CAAAS,aAAA,CAAAnB,MAAA,CAAAU,OAAA,CAAAU,QAAA,QAAGgD,qBAAqB,CAACvD,IAAK,CAAI,CAAC;AAC5C,CAAC;;AAED;AACA;AACA;AAFAyD,OAAA,CAAA3D,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_getIconByStatus","_styles","_iconsSvg","_formatData","e","__esModule","default","StepIndicator","data","type","backgroundColorBall","textColorDescription","titleColor","titleNumberColor","StepDefault","createElement","Fragment","length","map","history","index","View","testID","style","styles","containerIndicator","key","id","containerBall","width","height","marginTop","position","backgroundColor","Text","titleNumber","containerMain","title","descricao","data_inicio","titleDescription","data_fim","duracao_segundos","formHoursMinute","StepCustom","paddingHorizontal","display","flexDirection","step","indexCustom","getIconKeyByValue","borderRadius","alignItems","justifyContent","borderWidth","borderColor","Icons","icon","top","fontWeight","fontSize","lineHeight","textAlign","color","handleRenderComponent","stepType","exports"],"sources":["index.tsx"],"sourcesContent":["/**\n * IMPORTS\n */\nimport React from \"react\";\nimport { View, Text } from \"react-native\";\n\nimport { getIconKeyByValue } from \"./helpers/get-icon-by-status\";\n\n// typings\nimport { IStepIndicator } from \"./interface\";\n\n// styles\nimport { styles } from \"./styles\";\nimport { Icons } from \"../../common/icons-svg\";\nimport { formHoursMinute } from \"../../utils/format-data\";\n\n/**\n * Componente StepIndicator para a interação da ui.\n */\n\nconst StepIndicator: React.FC<IStepIndicator> = ({\n data = [],\n type,\n backgroundColorBall,\n textColorDescription,\n titleColor,\n titleNumberColor,\n}) => {\n const StepDefault = () => {\n return (\n <>\n {data!.length > 0 &&\n data!.map((history, index) => (\n <View testID=\"step-indicator\" style={styles({}).containerIndicator} key={history.id}>\n <View style={styles({ backgroundColorBall }).containerBall}>\n {data!?.length > 1 && index < data!?.length - 1 && (\n <View\n style={{\n width: 2,\n height: 84,\n marginTop: 116,\n position: \"relative\",\n backgroundColor: \"#050022\",\n }}\n />\n )}\n <Text style={styles({ titleNumberColor }).titleNumber}>\n {data!?.length - index}\n </Text>\n </View>\n\n <View style={styles({}).containerMain}>\n <Text style={styles({ titleColor }).title}>{history?.descricao}</Text>\n\n {history?.data_inicio && (\n <Text style={styles({ textColorDescription }).titleDescription}>\n {`Inicio: ${history.data_inicio} ás ${history.data_fim}`}\n </Text>\n )}\n\n {history.duracao_segundos && (\n <Text style={styles({ textColorDescription }).titleDescription}>\n Duração: {formHoursMinute(history?.duracao_segundos as string)}\n </Text>\n )}\n </View>\n </View>\n ))}\n </>\n );\n };\n\n const StepCustom = () => {\n return (\n <View\n style={{\n width: \"100%\",\n height: 84,\n paddingHorizontal: 24,\n display: \"flex\",\n flexDirection: \"row\",\n }}\n >\n {data.map((step, indexCustom) => {\n const descricao = getIconKeyByValue(step.descricao);\n\n return (\n <React.Fragment key={`step-${indexCustom}`}>\n <View\n style={{\n width: 45,\n height: 45,\n backgroundColor: indexCustom <= 3 ? \"orange\" : \"transparent\",\n borderRadius: 50,\n alignItems: \"center\",\n justifyContent: \"center\",\n borderWidth: 1,\n borderColor: \"#fff\",\n }}\n >\n <View\n style={{\n width: 45,\n height: 45,\n backgroundColor: \"transparent\",\n borderRadius: 50,\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {descricao && <Icons icon={descricao} />}\n </View>\n <Text\n style={{\n position: \"absolute\",\n top: 56,\n fontWeight: \"600\",\n fontSize: 10,\n lineHeight: 14,\n textAlign: \"center\",\n color: \"#fff\",\n width: 75,\n }}\n >\n {step.descricao}\n </Text>\n </View>\n\n {data?.length > 1 && indexCustom < data?.length - 1 && (\n <View\n style={{\n width: 35,\n height: 2,\n marginTop: 24,\n position: \"relative\",\n backgroundColor: \"orange\",\n }}\n />\n )}\n </React.Fragment>\n );\n })}\n </View>\n );\n };\n\n const handleRenderComponent = (stepType: \"default\" | \"custom\") => {\n switch (stepType) {\n case \"default\":\n return <StepDefault />;\n case \"custom\":\n return <StepCustom />;\n default:\n return <View />;\n }\n };\n\n return <>{handleRenderComponent(type!)}</>;\n};\n\n/**\n * EXPORTS\n */\nexport { StepIndicator };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,gBAAA,GAAAF,OAAA;AAMA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAL,OAAA;AAA0D,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAd1D;AACA;AACA;;AAMA;;AAGA;;AAKA;AACA;AACA;;AAEA,MAAMG,aAAuC,GAAGA,CAAC;EAC/CC,IAAI,GAAG,EAAE;EACTC,IAA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,KAAK,EAAE;QACT;MAAE,GAEDmB,IAAI,CAACV,SACF,CACF,CAAC,EAEN,CAAA9B,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAES,MAAM,IAAG,CAAC,IAAIgC,WAAW,GAAG,CAAAzC,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAES,MAAM,IAAG,CAAC,iBACjDrB,MAAA,CAAAU,OAAA,CAAAS,aAAA,CAAChB,YAAA,CAAAsB,IAAI;QACHE,KAAK,EAAE;UACLM,KAAK,EAAE,EAAE;UACTC,MAAM,EAAE,CAAC;UACTC,SAAS,EAAE,EAAE;UACbC,QAAQ,EAAE,UAAU;UACpBC,eAAe,EAAE;QACnB;MAAE,CACH,CAEW,CAAC;IAErB,CAAC,CACG,CAAC;EAEX,CAAC;EAED,MAAM+B,qBAAqB,GAAIC,QAA8B,IAAK;IAChE,QAAQA,QAAQ;MACd,KAAK,SAAS;QACZ,oBAAOrE,MAAA,CAAAU,OAAA,CAAAS,aAAA,CAACD,WAAW,MAAE,CAAC;MACxB,KAAK,QAAQ;QACX,oBAAOlB,MAAA,CAAAU,OAAA,CAAAS,aAAA,CAAC6B,UAAU,MAAE,CAAC;MACvB;QACE,oBAAOhD,MAAA,CAAAU,OAAA,CAAAS,aAAA,CAAChB,YAAA,CAAAsB,IAAI,MAAE,CAAC;IACnB;EACF,CAAC;EAED,oBAAOzB,MAAA,CAAAU,OAAA,CAAAS,aAAA,CAAAnB,MAAA,CAAAU,OAAA,CAAAU,QAAA,QAAGgD,qBAAqB,CAACvD,IAAK,CAAI,CAAC;AAC5C,CAAC;;AAED;AACA;AACA;AAFAyD,OAAA,CAAA3D,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":[],"sources":["interface.d.ts"],"sourcesContent":["/**\n * IMPORTS\n */\n\ntype IData = {\n id: number;\n duracao_segundos: string | number;\n data_inicio: string;\n data_fim: string;\n descricao: string;\n};\ninterface IStepIndicator {\n /**dados que vão ser renderizados */\n data?: IData[];\n\n /**tupo de renderização padrão ou customizada */\n type?: \"default\" | \"custom\";\n\n /**tamanho do step indicator */\n backgroundColorBall?: string;\n\n /**cor do texto */\n titleColor?: string;\n\n /**cor do numero do step indicator */\n titleNumberColor?: string;\n\n /**cor do texto da descrição */\n textColorDescription?: string;\n}\n/**\n * EXPORTS\n */\nexport { type IStepIndicator };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.styles = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
var _theme = require("../../styles/theme/theme");
|
|
9
|
-
/**
|
|
10
|
-
* IMPORTS
|
|
9
|
+
/**
|
|
10
|
+
* IMPORTS
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
// typings
|
|
@@ -36,7 +36,7 @@ const styles = props => {
|
|
|
36
36
|
title: {
|
|
37
37
|
color: (_props$titleColor = props.titleColor) !== null && _props$titleColor !== void 0 ? _props$titleColor : "black",
|
|
38
38
|
textAlign: "center",
|
|
39
|
-
lineHeight:
|
|
39
|
+
lineHeight: 20,
|
|
40
40
|
fontSize: _theme.theme.fontSizes["sm"],
|
|
41
41
|
fontWeight: "500",
|
|
42
42
|
marginLeft: 8
|
|
@@ -44,7 +44,7 @@ const styles = props => {
|
|
|
44
44
|
titleNumber: {
|
|
45
45
|
color: (_props$titleNumberCol = props.titleNumberColor) !== null && _props$titleNumberCol !== void 0 ? _props$titleNumberCol : _theme.theme.colors.neutral[25],
|
|
46
46
|
textAlign: "center",
|
|
47
|
-
lineHeight:
|
|
47
|
+
lineHeight: 16,
|
|
48
48
|
fontFamily: _theme.theme.fonts.inter_regular_400,
|
|
49
49
|
fontSize: _theme.theme.fontSizes["xs"],
|
|
50
50
|
position: "absolute"
|
|
@@ -53,8 +53,9 @@ const styles = props => {
|
|
|
53
53
|
color: (_props$textColorDescr = props.textColorDescription) !== null && _props$textColorDescr !== void 0 ? _props$textColorDescr : _theme.theme.colors.gray[700],
|
|
54
54
|
textAlign: "center",
|
|
55
55
|
lineHeight: 16,
|
|
56
|
-
fontSize:
|
|
57
|
-
fontFamily: _theme.theme.fonts.
|
|
56
|
+
fontSize: _theme.theme.fontSizes["xs"],
|
|
57
|
+
fontFamily: _theme.theme.fonts.inter_regular_400,
|
|
58
|
+
fontWeight: "400",
|
|
58
59
|
marginLeft: 8
|
|
59
60
|
},
|
|
60
61
|
containerMain: {
|
|
@@ -67,8 +68,8 @@ const styles = props => {
|
|
|
67
68
|
});
|
|
68
69
|
};
|
|
69
70
|
|
|
70
|
-
/**
|
|
71
|
-
* EXPORTS
|
|
71
|
+
/**
|
|
72
|
+
* EXPORTS
|
|
72
73
|
*/
|
|
73
74
|
exports.styles = styles;
|
|
74
75
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_theme","styles","props","_props$backgroundColo","_props$titleColor","_props$titleNumberCol","_props$textColorDescr","StyleSheet","create","containerIndicator","width","height","flexDirection","justifyContent","containerBall","backgroundColor","backgroundColorBall","theme","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","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_theme","styles","props","_props$backgroundColo","_props$titleColor","_props$titleNumberCol","_props$textColorDescr","StyleSheet","create","containerIndicator","width","height","flexDirection","justifyContent","containerBall","backgroundColor","backgroundColorBall","theme","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","exports"],"sources":["styles.ts"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\n\r\nimport { StyleSheet } from \"react-native\";\r\n\r\n// typings\r\nimport { IStepIndicator } from \"./interface\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\nconst styles = (props: IStepIndicator) =>\r\n StyleSheet.create({\r\n containerIndicator: {\r\n width: \"100%\",\r\n height: 86,\r\n flexDirection: \"row\",\r\n justifyContent: \"flex-start\",\r\n // backgroundColor: theme.colors.gray[300],\r\n },\r\n containerBall: {\r\n width: 32,\r\n height: 32,\r\n backgroundColor: props.backgroundColorBall ?? theme.colors.blue[500],\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n borderRadius: 16,\r\n },\r\n title: {\r\n color: props.titleColor ?? \"black\",\r\n textAlign: \"center\",\r\n lineHeight: 20,\r\n fontSize: theme.fontSizes[\"sm\"],\r\n fontWeight: \"500\",\r\n marginLeft: 8,\r\n },\r\n titleNumber: {\r\n color: props.titleNumberColor ?? theme.colors.neutral[25],\r\n textAlign: \"center\",\r\n lineHeight: 16,\r\n fontFamily: theme.fonts.inter_regular_400,\r\n fontSize: theme.fontSizes[\"xs\"],\r\n position: \"absolute\",\r\n },\r\n titleDescription: {\r\n color: props.textColorDescription ?? theme.colors.gray[700],\r\n textAlign: \"center\",\r\n lineHeight: 16,\r\n fontSize: theme.fontSizes[\"xs\"],\r\n fontFamily: theme.fonts.inter_regular_400,\r\n fontWeight: \"400\",\r\n marginLeft: 8,\r\n },\r\n containerMain: {\r\n width: \"100%\",\r\n height: 56,\r\n flexDirection: \"column\",\r\n alignItems: \"flex-start\",\r\n marginLeft: 2,\r\n },\r\n });\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { styles };\r\n"],"mappings":";;;;;;AAIA,IAAAA,YAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AAVA;AACA;AACA;;AAIA;;AAGA;;AAGA,MAAME,MAAM,GAAIC,KAAqB;EA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AAA,GAAEJ,KAAK,CAACqC,oBAAoB,cAAAjC,qBAAA,cAAAA,qBAAA,GAAIW,YAAK,CAACC,MAAM,CAACsB,IAAI,CAAC,GAAG,CAAC;MAC3Df,SAAS,EAAE,QAAQ;MACnBC,UAAU,EAAE,EAAE;MACdC,QAAQ,EAAEV,YAAK,CAACW,SAAS,CAAC,IAAI,CAAC;MAC/BM,UAAU,EAAEjB,YAAK,CAACkB,KAAK,CAACC,iBAAiB;MACzCP,UAAU,EAAE,KAAK;MACjBC,UAAU,EAAE;IACd,CAAC;IACDW,aAAa,EAAE;MACb/B,KAAK,EAAE,MAAM;MACbC,MAAM,EAAE,EAAE;MACVC,aAAa,EAAE,QAAQ;MACvBQ,UAAU,EAAE,YAAY;MACxBU,UAAU,EAAE;IACd;EACF,CAAC,CAAC;AAAA;;AAEJ;AACA;AACA;AAFAY,OAAA,CAAAzC,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -11,8 +11,8 @@ var _typography = require("../typography");
|
|
|
11
11
|
var _constants = require("../../common/constants");
|
|
12
12
|
var _theme = require("../../styles/theme/theme");
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
/**
|
|
15
|
-
* IMPORTS
|
|
14
|
+
/**
|
|
15
|
+
* IMPORTS
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
// components
|
|
@@ -23,8 +23,8 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
23
23
|
|
|
24
24
|
// styles
|
|
25
25
|
|
|
26
|
-
/**
|
|
27
|
-
* Componente Header para a interação do usuário com ui.
|
|
26
|
+
/**
|
|
27
|
+
* Componente Header para a interação do usuário com ui.
|
|
28
28
|
*/
|
|
29
29
|
const UserProfile = ({
|
|
30
30
|
nome,
|
|
@@ -195,8 +195,8 @@ const UserProfile = ({
|
|
|
195
195
|
})));
|
|
196
196
|
};
|
|
197
197
|
|
|
198
|
-
/**
|
|
199
|
-
* EXPORTS
|
|
198
|
+
/**
|
|
199
|
+
* EXPORTS
|
|
200
200
|
*/
|
|
201
201
|
exports.UserProfile = UserProfile;
|
|
202
202
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_constants","_theme","e","__esModule","default","UserProfile","nome","avatar","cpf","placa_cavalo","bluetoothIsConnected","app_version","color","width","height","handleProfileView","testID","_color$colorText","_theme$fontSizes$lg","_color$colorText2","_theme$fontSizes$lg2","_color$colorText3","_theme$fontSizes$lg3","_color$colorText4","_theme$fontSizes$lg4","_color$colorText5","_theme$fontSizes$lg5","_theme$fontSizes$lg6","_color$colorText6","_theme$fontSizes$lg7","_color$colorText7","_theme$fontSizes$lg8","createElement","Box","backgroundColor","theme","colors","blue","paddingStyle","paddingLeft","paddings","md","paddingRight","paddingBottom","flexStyle","flexDirection","alignItems","justifyContent","marginStyle","marginTop","margins","TouchableOpacity","activeOpacity","onPress","Image","source","uri","IMAGES","IMAGE_ANONIMA","style","borderRadius","borderWidth","borderWidths","thin_medium","borderColor","green","textAlign","paddingTop","Typography","text","colorText","neutral","size","fontSizes","fontFamily","fonts","inter_regular_400","fontWeight","lineHeight","lg","letterSpacing","sm","ellipsizeMode","numberOfLines","inter_semi_bold_600","inter_medium_500","inter_bold_700","inter_light_300","exports"],"sources":["index.tsx"],"sourcesContent":["/**\r\n * IMPORTS\r\n */\r\nimport React from \"react\";\r\nimport { Image, TouchableOpacity } from \"react-native\";\r\n\r\n// components\r\nimport { Box } from \"../box\";\r\nimport { Typography } from \"../typography\";\r\n\r\n// comons / constants\r\nimport { IMAGES } from \"../../common/constants\";\r\n\r\n// typings\r\nimport { IUserProfile } from \"./interface\";\r\n\r\n// styles\r\nimport { theme } from \"../../styles/theme/theme\";\r\n\r\n/**\r\n * Componente Header para a interação do usuário com ui.\r\n */\r\nconst UserProfile: React.FC<IUserProfile> = ({\r\n nome,\r\n avatar,\r\n cpf,\r\n placa_cavalo,\r\n bluetoothIsConnected,\r\n app_version,\r\n color,\r\n width,\r\n height,\r\n handleProfileView,\r\n testID,\r\n}: IUserProfile) => {\r\n return (\r\n <Box\r\n testID={testID}\r\n width={width ?? \"100%\"}\r\n height={height}\r\n backgroundColor={theme.colors.blue[525]}\r\n paddingStyle={{\r\n paddingLeft: theme.paddings.md,\r\n paddingRight: theme.paddings.md,\r\n paddingBottom: theme.paddings[\"2xs\"],\r\n }}\r\n >\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"center\" }}\r\n marginStyle={{ marginTop: theme.margins.md }}\r\n >\r\n <TouchableOpacity activeOpacity={0.7} onPress={handleProfileView}>\r\n <Image\r\n testID=\"user-profile-avatar\"\r\n source={{\r\n uri: avatar || IMAGES.IMAGE_ANONIMA,\r\n }}\r\n style={{\r\n width: 120,\r\n height: 120,\r\n borderRadius: 60,\r\n borderWidth: theme.borderWidths.thin_medium,\r\n borderColor: theme.colors.green[400],\r\n }}\r\n />\r\n </TouchableOpacity>\r\n </Box>\r\n\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{ flexDirection: \"column\", alignItems: \"center\", justifyContent: \"center\" }}\r\n >\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n textAlign: \"center\",\r\n }}\r\n paddingStyle={{ paddingTop: theme.paddings[\"2xs\"] }}\r\n >\r\n <Typography\r\n text={\"Olá, \"}\r\n color={color?.colorText ?? theme.colors.neutral[25]}\r\n size={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n fontWeight=\"400\"\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n letterSpacing={\"regular\"}\r\n />\r\n <Box width={\"89%\"}>\r\n <Typography\r\n text={nome}\r\n color={color?.colorText ?? theme.colors.neutral[25]}\r\n size={theme.fontSizes.sm}\r\n fontFamily=\"inter_medium_500\"\r\n fontWeight=\"500\"\r\n ellipsizeMode=\"tail\"\r\n numberOfLines={1}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n </Box>\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n textAlign: \"center\",\r\n }}\r\n paddingStyle={{ paddingTop: 5 }}\r\n >\r\n <Typography\r\n text={\"CPF: \"}\r\n color={color?.colorText ?? theme.colors.neutral[25]}\r\n size={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n letterSpacing={\"regular\"}\r\n />\r\n\r\n <Typography\r\n text={cpf}\r\n color={color?.colorText ?? theme.colors.neutral[25]}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_semi_bold_600}\r\n fontWeight=\"600\"\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-start\",\r\n textAlign: \"center\",\r\n }}\r\n paddingStyle={{ paddingTop: 5 }}\r\n >\r\n <Typography\r\n text={\"CONECTADO: \"}\r\n color={color?.colorText ?? theme.colors.neutral[25]}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_medium_500}\r\n fontWeight=\"500\"\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n letterSpacing={\"regular\"}\r\n />\r\n\r\n <Typography\r\n text={bluetoothIsConnected ? placa_cavalo : \"\"}\r\n color={theme.colors.green[400]}\r\n size={theme.fontSizes.sm}\r\n fontFamily={theme.fonts.inter_bold_700}\r\n fontWeight=\"700\"\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n </Box>\r\n\r\n <Box\r\n width={\"100%\"}\r\n flexStyle={{\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-end\",\r\n }}\r\n marginStyle={{ marginTop: theme.margins.md }}\r\n >\r\n <Typography\r\n text={\"Versão: \"}\r\n color={color?.colorText ?? theme.colors.neutral[25]}\r\n size={theme.fontSizes.md}\r\n fontFamily={theme.fonts.inter_regular_400}\r\n fontWeight=\"400\"\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n letterSpacing={\"regular\"}\r\n />\r\n\r\n <Typography\r\n text={app_version}\r\n color={color?.colorText ?? theme.colors.neutral[25]}\r\n size={theme.fontSizes.sm}\r\n fontWeight=\"300\"\r\n fontFamily={theme.fonts.inter_light_300}\r\n lineHeight={theme.fontSizes.lg ?? 18}\r\n letterSpacing={\"regular\"}\r\n />\r\n </Box>\r\n </Box>\r\n );\r\n};\r\n\r\n/**\r\n * EXPORTS\r\n */\r\nexport { UserProfile };\r\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAGA,IAAAI,UAAA,GAAAJ,OAAA;AAMA,IAAAK,MAAA,GAAAL,OAAA;AAAiD,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAjBjD;AACA;AACA;;AAIA;;AAIA;;AAGA;;AAGA;;AAGA;AACA;AACA;AACA,MAAMG,WAAmC,GAAGA,CAAC;EAC3CC,IAAI;EACJC,MAAM;EACNC,GAAG;EACHC,YAAY;EACZC,oBAAoB;EACpBC,WAAW;EACXC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,iBAAiB;EACjBC;AACY,CAAC,KAAK;EAAA,IAAAC,gBAAA,EAA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AAA4B,aAAA,CAACjC,WAAA,CAAAqE,UAAU;IACTC,IAAI,EAAE,UAAW;IACjBzD,KAAK,GAAAgB,iBAAA,GAAEhB,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAE0D,SAAS,cAAA1C,iBAAA,cAAAA,iBAAA,GAAIO,YAAK,CAACC,MAAM,CAACmC,OAAO,CAAC,EAAE,CAAE;IACpDC,IAAI,EAAErC,YAAK,CAACsC,SAAS,CAAChC,EAAG;IACzBiC,UAAU,EAAEvC,YAAK,CAACwC,KAAK,CAACC,iBAAkB;IAC1CC,UAAU,EAAC,KAAK;IAChBC,UAAU,GAAAjD,oBAAA,GAAEM,YAAK,CAACsC,SAAS,CAACM,EAAE,cAAAlD,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrCmD,aAAa,EAAE;EAAU,CAC1B,CAAC,eAEFtF,MAAA,CAAAU,OAAA,CAAA4B,aAAA,CAACjC,WAAA,CAAAqE,UAAU;IACTC,IAAI,EAAE1D,WAAY;IAClBC,KAAK,GAAAkB,iBAAA,GAAElB,KAAK,aAALA,KAAK,uBAALA,KAAK,CAAE0D,SAAS,cAAAxC,iBAAA,cAAAA,iBAAA,GAAIK,YAAK,CAACC,MAAM,CAACmC,OAAO,CAAC,EAAE,CAAE;IACpDC,IAAI,EAAErC,YAAK,CAACsC,SAAS,CAACQ,EAAG;IACzBJ,UAAU,EAAC,KAAK;IAChBH,UAAU,EAAEvC,YAAK,CAACwC,KAAK,CAACY,eAAgB;IACxCT,UAAU,GAAA/C,oBAAA,GAAEI,YAAK,CAACsC,SAAS,CAACM,EAAE,cAAAhD,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrCiD,aAAa,EAAE;EAAU,CAC1B,CACE,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAQ,OAAA,CAAAnF,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_box","_typography","_constants","_theme","e","__esModule","default","UserProfile","nome","avatar","cpf","placa_cavalo","bluetoothIsConnected","app_version","color","width","height","handleProfileView","testID","_color$colorText","_theme$fontSizes$lg","_color$colorText2","_theme$fontSizes$lg2","_color$colorText3","_theme$fontSizes$lg3","_color$colorText4","_theme$fontSizes$lg4","_color$colorText5","_theme$fontSizes$lg5","_theme$fontSizes$lg6","_color$colorText6","_theme$fontSizes$lg7","_color$colorText7","_theme$fontSizes$lg8","createElement","Box","backgroundColor","theme","colors","blue","paddingStyle","paddingLeft","paddings","md","paddingRight","paddingBottom","flexStyle","flexDirection","alignItems","justifyContent","marginStyle","marginTop","margins","TouchableOpacity","activeOpacity","onPress","Image","source","uri","IMAGES","IMAGE_ANONIMA","style","borderRadius","borderWidth","borderWidths","thin_medium","borderColor","green","textAlign","paddingTop","Typography","text","colorText","neutral","size","fontSizes","fontFamily","fonts","inter_regular_400","fontWeight","lineHeight","lg","letterSpacing","sm","ellipsizeMode","numberOfLines","inter_semi_bold_600","inter_medium_500","inter_bold_700","inter_light_300","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\";\nimport { Typography } from \"../typography\";\n\n// comons / constants\nimport { IMAGES } from \"../../common/constants\";\n\n// typings\nimport { IUserProfile } from \"./interface\";\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 UserProfile: React.FC<IUserProfile> = ({\n nome,\n avatar,\n cpf,\n placa_cavalo,\n bluetoothIsConnected,\n app_version,\n color,\n width,\n height,\n handleProfileView,\n testID,\n}: IUserProfile) => {\n return (\n <Box\n testID={testID}\n width={width ?? \"100%\"}\n height={height}\n backgroundColor={theme.colors.blue[525]}\n paddingStyle={{\n paddingLeft: theme.paddings.md,\n paddingRight: theme.paddings.md,\n paddingBottom: theme.paddings[\"2xs\"],\n }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"row\", alignItems: \"center\", justifyContent: \"center\" }}\n marginStyle={{ marginTop: theme.margins.md }}\n >\n <TouchableOpacity activeOpacity={0.7} onPress={handleProfileView}>\n <Image\n testID=\"user-profile-avatar\"\n source={{\n uri: avatar || IMAGES.IMAGE_ANONIMA,\n }}\n style={{\n width: 120,\n height: 120,\n borderRadius: 60,\n borderWidth: theme.borderWidths.thin_medium,\n borderColor: theme.colors.green[400],\n }}\n />\n </TouchableOpacity>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{ flexDirection: \"column\", alignItems: \"center\", justifyContent: \"center\" }}\n >\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: theme.paddings[\"2xs\"] }}\n >\n <Typography\n text={\"Olá, \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n <Box width={\"89%\"}>\n <Typography\n text={nome}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily=\"inter_medium_500\"\n fontWeight=\"500\"\n ellipsizeMode=\"tail\"\n numberOfLines={1}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: 5 }}\n >\n <Typography\n text={\"CPF: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={cpf}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_semi_bold_600}\n fontWeight=\"600\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n textAlign: \"center\",\n }}\n paddingStyle={{ paddingTop: 5 }}\n >\n <Typography\n text={\"CONECTADO: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_medium_500}\n fontWeight=\"500\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={bluetoothIsConnected ? placa_cavalo : \"\"}\n color={theme.colors.green[400]}\n size={theme.fontSizes.sm}\n fontFamily={theme.fonts.inter_bold_700}\n fontWeight=\"700\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n\n <Box\n width={\"100%\"}\n flexStyle={{\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n }}\n marginStyle={{ marginTop: theme.margins.md }}\n >\n <Typography\n text={\"Versão: \"}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.md}\n fontFamily={theme.fonts.inter_regular_400}\n fontWeight=\"400\"\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n\n <Typography\n text={app_version}\n color={color?.colorText ?? theme.colors.neutral[25]}\n size={theme.fontSizes.sm}\n fontWeight=\"300\"\n fontFamily={theme.fonts.inter_light_300}\n lineHeight={theme.fontSizes.lg ?? 18}\n letterSpacing={\"regular\"}\n />\n </Box>\n </Box>\n );\n};\n\n/**\n * EXPORTS\n */\nexport { UserProfile };\n"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,G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BAAA,cAAAA,iBAAA,GAAIK,YAAK,CAACC,MAAM,CAACmC,OAAO,CAAC,EAAE,CAAE;IACpDC,IAAI,EAAErC,YAAK,CAACsC,SAAS,CAACQ,EAAG;IACzBJ,UAAU,EAAC,KAAK;IAChBH,UAAU,EAAEvC,YAAK,CAACwC,KAAK,CAACY,eAAgB;IACxCT,UAAU,GAAA/C,oBAAA,GAAEI,YAAK,CAACsC,SAAS,CAACM,EAAE,cAAAhD,oBAAA,cAAAA,oBAAA,GAAI,EAAG;IACrCiD,aAAa,EAAE;EAAU,CAC1B,CACE,CACF,CAAC;AAEV,CAAC;;AAED;AACA;AACA;AAFAQ,OAAA,CAAAnF,WAAA,GAAAA,WAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_box","require","_button","_stepIndicator","_typography","_input","_capturePhoto","_cardHours","_selectOption","_headerProfile","_scheduledJourneyIndicators","_cardScheduledJourney","_userProfile","_menuItem","_cardLoading","_cardWorkSession","_loadingProgress","_noData","_filterJourney","_coil","_filterDateSelector","_cardHistory","_notificationLoading","_checkBox","_imageCaptureWithRemove","_loadingDetails","_avatarProfile","_historyDetails","_activitiesDaily","_activitiesProgress","_profileMenuOption","_mutiply","_formatData","_theme"],"sources":["index.ts"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["_box","require","_button","_stepIndicator","_typography","_input","_capturePhoto","_cardHours","_selectOption","_headerProfile","_scheduledJourneyIndicators","_cardScheduledJourney","_userProfile","_menuItem","_cardLoading","_cardWorkSession","_loadingProgress","_noData","_filterJourney","_coil","_filterDateSelector","_cardHistory","_notificationLoading","_checkBox","_imageCaptureWithRemove","_loadingDetails","_avatarProfile","_historyDetails","_activitiesDaily","_activitiesProgress","_profileMenuOption","_mutiply","_formatData","_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\";\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,IAAAA,IAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,2BAAA,GAAAT,OAAA;AACA,IAAAU,qBAAA,GAAAV,OAAA;AACA,IAAAW,YAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,YAAA,GAAAb,OAAA;AACA,IAAAc,gBAAA,GAAAd,OAAA;AACA,IAAAe,gBAAA,GAAAf,OAAA;AACA,IAAAgB,OAAA,GAAAhB,OAAA;AACA,IAAAiB,cAAA,GAAAjB,OAAA;AACA,IAAAkB,KAAA,GAAAlB,OAAA;AACA,IAAAmB,mBAAA,GAAAnB,OAAA;AACA,IAAAoB,YAAA,GAAApB,OAAA;AACA,IAAAqB,oBAAA,GAAArB,OAAA;AACA,IAAAsB,SAAA,GAAAtB,OAAA;AACA,IAAAuB,uBAAA,GAAAvB,OAAA;AACA,IAAAwB,eAAA,GAAAxB,OAAA;AACA,IAAAyB,cAAA,GAAAzB,OAAA;AACA,IAAA0B,eAAA,GAAA1B,OAAA;AACA,IAAA2B,gBAAA,GAAA3B,OAAA;AACA,IAAA4B,mBAAA,GAAA5B,OAAA;AACA,IAAA6B,kBAAA,GAAA7B,OAAA;AAGA,IAAA8B,QAAA,GAAA9B,OAAA;AACA,IAAA+B,WAAA,GAAA/B,OAAA;AAGA,IAAAgC,MAAA,GAAAhC,OAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_activitiesDaily","require","meta","title","component","ActivitiesDaily","args","handleActivity","typeActivity","parameters","notes","_default","exports","default","ActivitiesDailySimples","name","alert"],"sources":["activities-daily.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\
|
|
1
|
+
{"version":3,"names":["_activitiesDaily","require","meta","title","component","ActivitiesDaily","args","handleActivity","typeActivity","parameters","notes","_default","exports","default","ActivitiesDailySimples","name","alert"],"sources":["activities-daily.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\n\nimport { ActivitiesDaily } from \"../../components/activities-daily\";\n\nconst meta: Meta<typeof ActivitiesDaily> = {\n title: \"componente/ActivitiesDaily\",\n component: ActivitiesDaily,\n args: {\n handleActivity: (typeActivity) => {\n return typeActivity;\n },\n },\n parameters: {\n notes: `\n# ActivitiesDaily\n\nEste é um componente de Card de atividades diárias.\nVocê usa assim:\n\\`\\`\\`tsx\n<ActivitiesDaily\nhandleActivity={handleActivity}\n />\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const ActivitiesDailySimples: Story = {\n name: \"activities-daily\",\n args: {\n handleActivity: (typeActivity: any) => {\n /* global alert */\n alert(typeActivity);\n },\n },\n};\n"],"mappings":";;;;;;AAEA,IAAAA,gBAAA,GAAAC,OAAA;AAEA,MAAMC,IAAkC,GAAG;EACzCC,KAAK,EAAE,4BAA4B;EACnCC,SAAS,EAAEC,gCAAe;EAC1BC,IAAI,EAAE;IACJC,cAAc,EAAGC,YAAY,IAAK;MAChC,OAAOA,YAAY;IACrB;EACF,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaX,IAAI;AAIZ,MAAMY,sBAA6B,GAAAF,OAAA,CAAAE,sBAAA,GAAG;EAC3CC,IAAI,EAAE,kBAAkB;EACxBT,IAAI,EAAE;IACJC,cAAc,EAAGC,YAAiB,IAAK;MACrC;MACAQ,KAAK,CAACR,YAAY,CAAC;IACrB;EACF;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_activitiesProgress","require","meta","title","component","ActivitiesProgress","args","data_fim","duracao","data_inicio","titleLabel","parameters","notes","_default","exports","default","ActivitiesProgressPadrao","name","ActivitiesProgressTrabalho","situation","ActivitiesProgressDescanso"],"sources":["activities-progress.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\
|
|
1
|
+
{"version":3,"names":["_activitiesProgress","require","meta","title","component","ActivitiesProgress","args","data_fim","duracao","data_inicio","titleLabel","parameters","notes","_default","exports","default","ActivitiesProgressPadrao","name","ActivitiesProgressTrabalho","situation","ActivitiesProgressDescanso"],"sources":["activities-progress.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\n\nimport { ActivitiesProgress } from \"../../components/activities-progress\";\n\nconst meta: Meta<typeof ActivitiesProgress> = {\n title: \"componente/ActivitiesProgress\",\n component: ActivitiesProgress,\n args: {\n data_fim: \"11/05/2025\",\n duracao: \"00:30\",\n data_inicio: \"17:20\",\n titleLabel: \"Descanso\",\n },\n parameters: {\n notes: `\n# ActivitiesProgress\n\nEste é um componente de progresso de atividades.\nVocê usa assim:\n\\`\\`\\`tsx\n<ActivitiesProgress\n data_fim=\"11/05/2025\"\n duracao=\"00:30\"\n data_inicio=\"17:20\"\n titleLabel=\"Descanso\"\n/>\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const ActivitiesProgressPadrao: Story = {\n name: \"activities-progress-padrao\",\n args: {},\n};\n\nexport const ActivitiesProgressTrabalho: Story = {\n name: \"activities-progress-trabalho\",\n args: {\n data_fim: \"15/06/2023\",\n duracao: \"01:45\",\n data_inicio: \"14:30\",\n titleLabel: \"Trabalho\",\n situation: true,\n },\n};\n\nexport const ActivitiesProgressDescanso: Story = {\n name: \"activities-progress-descanso\",\n args: {\n data_fim: \"20/07/2023\",\n duracao: \"00:15\",\n data_inicio: \"12:00\",\n titleLabel: \"Descanso\",\n situation: true,\n },\n};\n"],"mappings":";;;;;;AAEA,IAAAA,mBAAA,GAAAC,OAAA;AAEA,MAAMC,IAAqC,GAAG;EAC5CC,KAAK,EAAE,+BAA+B;EACtCC,SAAS,EAAEC,sCAAkB;EAC7BC,IAAI,EAAE;IACJC,QAAQ,EAAE,YAAY;IACtBC,OAAO,EAAE,OAAO;IAChBC,WAAW,EAAE,OAAO;IACpBC,UAAU,EAAE;EACd,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEab,IAAI;AAIZ,MAAMc,wBAA+B,GAAAF,OAAA,CAAAE,wBAAA,GAAG;EAC7CC,IAAI,EAAE,4BAA4B;EAClCX,IAAI,EAAE,CAAC;AACT,CAAC;AAEM,MAAMY,0BAAiC,GAAAJ,OAAA,CAAAI,0BAAA,GAAG;EAC/CD,IAAI,EAAE,8BAA8B;EACpCX,IAAI,EAAE;IACJC,QAAQ,EAAE,YAAY;IACtBC,OAAO,EAAE,OAAO;IAChBC,WAAW,EAAE,OAAO;IACpBC,UAAU,EAAE,UAAU;IACtBS,SAAS,EAAE;EACb;AACF,CAAC;AAEM,MAAMC,0BAAiC,GAAAN,OAAA,CAAAM,0BAAA,GAAG;EAC/CH,IAAI,EAAE,8BAA8B;EACpCX,IAAI,EAAE;IACJC,QAAQ,EAAE,YAAY;IACtBC,OAAO,EAAE,OAAO;IAChBC,WAAW,EAAE,OAAO;IACpBC,UAAU,EAAE,UAAU;IACtBS,SAAS,EAAE;EACb;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_avatarProfile","require","meta","title","component","AvatarProfile","args","name","avatar","email","isEdit","handleTakePicker","parameters","notes","_default","exports","default","Default","Editable"],"sources":["avatar-profile.stories.tsx"],"sourcesContent":["import { Meta, StoryObj } from \"@storybook/react\";\
|
|
1
|
+
{"version":3,"names":["_avatarProfile","require","meta","title","component","AvatarProfile","args","name","avatar","email","isEdit","handleTakePicker","parameters","notes","_default","exports","default","Default","Editable"],"sources":["avatar-profile.stories.tsx"],"sourcesContent":["import { Meta, StoryObj } from \"@storybook/react\";\nimport { AvatarProfile } from \"../../components/avatar-profile\";\n\nconst meta: Meta<typeof AvatarProfile> = {\n title: \"Componente/AvatarProfile\",\n component: AvatarProfile,\n args: {\n name: \"Everton\",\n avatar: \"https://randomuser.me/api/portraits/men/1.jpg\",\n email: \"teste@gmail.com\",\n isEdit: false,\n handleTakePicker: () => {},\n },\n parameters: {\n notes: ` AvatarProfile Componente de avatar de perfil com edição opcional.`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const Default: Story = {\n name: \"default\",\n};\n\nexport const Editable: Story = {\n name: \"editable\",\n args: {\n isEdit: true,\n },\n};\n"],"mappings":";;;;;;AACA,IAAAA,cAAA,GAAAC,OAAA;AAEA,MAAMC,IAAgC,GAAG;EACvCC,KAAK,EAAE,0BAA0B;EACjCC,SAAS,EAAEC,4BAAa;EACxBC,IAAI,EAAE;IACJC,IAAI,EAAE,SAAS;IACfC,MAAM,EAAE,+CAA+C;IACvDC,KAAK,EAAE,iBAAiB;IACxBC,MAAM,EAAE,KAAK;IACbC,gBAAgB,EAAEA,CAAA,KAAM,CAAC;EAC3B,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;EACT;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEad,IAAI;AAIZ,MAAMe,OAAc,GAAAF,OAAA,CAAAE,OAAA,GAAG;EAC5BV,IAAI,EAAE;AACR,CAAC;AAEM,MAAMW,QAAe,GAAAH,OAAA,CAAAG,QAAA,GAAG;EAC7BX,IAAI,EAAE,UAAU;EAChBD,IAAI,EAAE;IACJI,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cardLoading","require","_theme","meta","title","component","CardLoading","args","width","height","backgroundColor","theme","colors","blue","handleNavigation","parameters","notes","_default","exports","default","CardLoadingAprovado","name","local","vehicle","prevision","kg","qtdCoils","status","CardLoadingPendente","CardLoadingReprovado"],"sources":["card-loading.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\
|
|
1
|
+
{"version":3,"names":["_cardLoading","require","_theme","meta","title","component","CardLoading","args","width","height","backgroundColor","theme","colors","blue","handleNavigation","parameters","notes","_default","exports","default","CardLoadingAprovado","name","local","vehicle","prevision","kg","qtdCoils","status","CardLoadingPendente","CardLoadingReprovado"],"sources":["card-loading.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\n\nimport { CardLoading } from \"../../components/card-loading\";\nimport { theme } from \"../../styles/theme/theme\";\n\nconst meta: Meta<typeof CardLoading> = {\n title: \"componente/CardLoading\",\n component: CardLoading,\n args: {\n width: 120,\n height: 90,\n title: \"Carregamento #01020304050607\",\n backgroundColor: theme.colors.blue[400],\n handleNavigation: () => {},\n },\n parameters: {\n notes: `\n# CardLoading\n\nEste é um componente de CardLoading.\nVocê usa assim:\n\\`\\`\\`tsx\n <CardLoading\n width={\"100%\"}\n title=\"Carregamento #01020304050607\"\n local=\"Doca 1, Patío 03 - Usiminas Ipatinga\"\n vehicle=\"EXP-0000\"\n prevision=\"12:37 10/03/2025\"\n kg={40}\n qtdCoils={15}\n status=\"Pendente\"\n handleNavigation={() => {}}\n/>\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const CardLoadingAprovado: Story = {\n name: \"card-carregamento-aprovado\",\n args: {\n width: \"100%\",\n title: \"Carregamento #01020304050607\",\n local: \"Doca 1, Patío 03 - Usiminas Ipatinga\",\n vehicle: \"EXP-0000\",\n prevision: \"12:37 10/03/2025\",\n kg: 40,\n qtdCoils: 15,\n status: \"Concluido\",\n handleNavigation: () => {},\n },\n};\n\nexport const CardLoadingPendente: Story = {\n name: \"card-carregamento-pendente\",\n args: {\n width: \"100%\",\n title: \"Carregamento #01020304050607\",\n local: \"Doca 1, Patío 03 - Usiminas Ipatinga\",\n vehicle: \"EXP-0000\",\n prevision: \"12:37 10/03/2025\",\n kg: 40,\n qtdCoils: 15,\n status: \"Pendente\",\n handleNavigation: () => {},\n },\n};\nexport const CardLoadingReprovado: Story = {\n name: \"card-carregamento-reprovado\",\n args: {\n width: \"100%\",\n title: \"Carregamento #01020304050607\",\n local: \"Doca 1, Patío 03 - Usiminas Ipatinga\",\n vehicle: \"EXP-0000\",\n prevision: \"12:37 10/03/2025\",\n kg: 40,\n qtdCoils: 15,\n status: \"Cancelado\",\n handleNavigation: () => {},\n },\n};\n"],"mappings":";;;;;;AAEA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,IAA8B,GAAG;EACrCC,KAAK,EAAE,wBAAwB;EAC/BC,SAAS,EAAEC,wBAAW;EACtBC,IAAI,EAAE;IACJC,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE,EAAE;IACVL,KAAK,EAAE,8BAA8B;IACrCM,eAAe,EAAEC,YAAK,CAACC,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IACvCC,gBAAgB,EAAEA,CAAA,KAAM,CAAC;EAC3B,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEahB,IAAI;AAIZ,MAAMiB,mBAA0B,GAAAF,OAAA,CAAAE,mBAAA,GAAG;EACxCC,IAAI,EAAE,4BAA4B;EAClCd,IAAI,EAAE;IACJC,KAAK,EAAE,MAAM;IACbJ,KAAK,EAAE,8BAA8B;IACrCkB,KAAK,EAAE,sCAAsC;IAC7CC,OAAO,EAAE,UAAU;IACnBC,SAAS,EAAE,kBAAkB;IAC7BC,EAAE,EAAE,EAAE;IACNC,QAAQ,EAAE,EAAE;IACZC,MAAM,EAAE,WAAW;IACnBb,gBAAgB,EAAEA,CAAA,KAAM,CAAC;EAC3B;AACF,CAAC;AAEM,MAAMc,mBAA0B,GAAAV,OAAA,CAAAU,mBAAA,GAAG;EACxCP,IAAI,EAAE,4BAA4B;EAClCd,IAAI,EAAE;IACJC,KAAK,EAAE,MAAM;IACbJ,KAAK,EAAE,8BAA8B;IACrCkB,KAAK,EAAE,sCAAsC;IAC7CC,OAAO,EAAE,UAAU;IACnBC,SAAS,EAAE,kBAAkB;IAC7BC,EAAE,EAAE,EAAE;IACNC,QAAQ,EAAE,EAAE;IACZC,MAAM,EAAE,UAAU;IAClBb,gBAAgB,EAAEA,CAAA,KAAM,CAAC;EAC3B;AACF,CAAC;AACM,MAAMe,oBAA2B,GAAAX,OAAA,CAAAW,oBAAA,GAAG;EACzCR,IAAI,EAAE,6BAA6B;EACnCd,IAAI,EAAE;IACJC,KAAK,EAAE,MAAM;IACbJ,KAAK,EAAE,8BAA8B;IACrCkB,KAAK,EAAE,sCAAsC;IAC7CC,OAAO,EAAE,UAAU;IACnBC,SAAS,EAAE,kBAAkB;IAC7BC,EAAE,EAAE,EAAE;IACNC,QAAQ,EAAE,EAAE;IACZC,MAAM,EAAE,WAAW;IACnBb,gBAAgB,EAAEA,CAAA,KAAM,CAAC;EAC3B;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_checkBox","require","_theme","meta","title","component","CheckBox","args","onPress","isChecked","backgroundColorCheck","theme","colors","blue","parameters","notes","_default","exports","default","CheckBoxDisable","name","CheckBoxAble","widthBoxCheckIcon","CheckBoxDisableWithLabel","backgroundBoxCheckIcon","textLabel","textSizeLabel","colorTextLabel","neutral","CheckBoxAbleWithLabel"],"sources":["check-box.stories.tsx"],"sourcesContent":["import React from \"react\";\
|
|
1
|
+
{"version":3,"names":["_checkBox","require","_theme","meta","title","component","CheckBox","args","onPress","isChecked","backgroundColorCheck","theme","colors","blue","parameters","notes","_default","exports","default","CheckBoxDisable","name","CheckBoxAble","widthBoxCheckIcon","CheckBoxDisableWithLabel","backgroundBoxCheckIcon","textLabel","textSizeLabel","colorTextLabel","neutral","CheckBoxAbleWithLabel"],"sources":["check-box.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport type { StoryObj, Meta } from \"@storybook/react\";\n\nimport { CheckBox } from \"../../components/check-box\";\nimport { theme } from \"../../styles/theme/theme\";\n\nconst meta: Meta<typeof CheckBox> = {\n title: \"componente/CheckBox\",\n component: CheckBox as React.FC,\n args: {\n onPress: () => {},\n isChecked: false,\n backgroundColorCheck: theme.colors.blue[375],\n },\n parameters: {\n notes: `\n# CheckBox\n\nComponente de caixa de seleção customizável com ou sem texto.\n\nExemplo de uso:\n\n\\`\\`\\`tsx\n<CheckBox\n isChecked={false}\n widthBoxCheckIcon={30}\n backgroundColorCheck={theme.colors.blue[400]}\n textSizeLabel={16}\n textLabel=\"Eu concordo com a Política de privacidade da ExpFig e dou consentimento para a coleta, e processamento e uso dos meus dados pessoais.\"\n colorTextLabel={theme.colors.gray[600]}\n backgroundBoxCheckIcon={\"transparent\"}\n/>\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const CheckBoxDisable: Story = {\n name: \"checkbox-desmarcado\",\n args: {\n isChecked: false,\n },\n};\n\nexport const CheckBoxAble: Story = {\n name: \"checkbox-marcado\",\n args: {\n widthBoxCheckIcon: 40,\n isChecked: true,\n backgroundColorCheck: theme.colors.blue[50],\n },\n};\n\nexport const CheckBoxDisableWithLabel: Story = {\n name: \"checkbox-desmarcado-com-label\",\n args: {\n widthBoxCheckIcon: 30,\n backgroundBoxCheckIcon: \"transparent\",\n textLabel:\n \"Eu concordo com a Política de privacidade da ExpFig e dou consentimento para a coleta, e processamento e uso dos meus dados pessoais.\",\n textSizeLabel: 17,\n colorTextLabel: theme.colors.neutral[25],\n isChecked: false,\n backgroundColorCheck: theme.colors.blue[375],\n },\n};\n\nexport const CheckBoxAbleWithLabel: Story = {\n name: \"checkbox-marcado-com-label\",\n args: {\n textLabel: \"Label Checked\",\n textSizeLabel: 17,\n colorTextLabel: theme.colors.neutral[25],\n isChecked: true,\n backgroundColorCheck: theme.colors.blue[375],\n },\n};\n"],"mappings":";;;;;;AAGA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,IAA2B,GAAG;EAClCC,KAAK,EAAE,qBAAqB;EAC5BC,SAAS,EAAEC,kBAAoB;EAC/BC,IAAI,EAAE;IACJC,OAAO,EAAEA,CAAA,KAAM,CAAC,CAAC;IACjBC,SAAS,EAAE,KAAK;IAChBC,oBAAoB,EAAEC,YAAK,CAACC,MAAM,CAACC,IAAI,CAAC,GAAG;EAC7C,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaf,IAAI;AAIZ,MAAMgB,eAAsB,GAAAF,OAAA,CAAAE,eAAA,GAAG;EACpCC,IAAI,EAAE,qBAAqB;EAC3Bb,IAAI,EAAE;IACJE,SAAS,EAAE;EACb;AACF,CAAC;AAEM,MAAMY,YAAmB,GAAAJ,OAAA,CAAAI,YAAA,GAAG;EACjCD,IAAI,EAAE,kBAAkB;EACxBb,IAAI,EAAE;IACJe,iBAAiB,EAAE,EAAE;IACrBb,SAAS,EAAE,IAAI;IACfC,oBAAoB,EAAEC,YAAK,CAACC,MAAM,CAACC,IAAI,CAAC,EAAE;EAC5C;AACF,CAAC;AAEM,MAAMU,wBAA+B,GAAAN,OAAA,CAAAM,wBAAA,GAAG;EAC7CH,IAAI,EAAE,+BAA+B;EACrCb,IAAI,EAAE;IACJe,iBAAiB,EAAE,EAAE;IACrBE,sBAAsB,EAAE,aAAa;IACrCC,SAAS,EACP,uIAAuI;IACzIC,aAAa,EAAE,EAAE;IACjBC,cAAc,EAAEhB,YAAK,CAACC,MAAM,CAACgB,OAAO,CAAC,EAAE,CAAC;IACxCnB,SAAS,EAAE,KAAK;IAChBC,oBAAoB,EAAEC,YAAK,CAACC,MAAM,CAACC,IAAI,CAAC,GAAG;EAC7C;AACF,CAAC;AAEM,MAAMgB,qBAA4B,GAAAZ,OAAA,CAAAY,qBAAA,GAAG;EAC1CT,IAAI,EAAE,4BAA4B;EAClCb,IAAI,EAAE;IACJkB,SAAS,EAAE,eAAe;IAC1BC,aAAa,EAAE,EAAE;IACjBC,cAAc,EAAEhB,YAAK,CAACC,MAAM,CAACgB,OAAO,CAAC,EAAE,CAAC;IACxCnB,SAAS,EAAE,IAAI;IACfC,oBAAoB,EAAEC,YAAK,CAACC,MAAM,CAACC,IAAI,CAAC,GAAG;EAC7C;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_coil","require","meta","title","component","Coil","args","description","handleNavigation","status","parameters","notes","_default","exports","default","CoilPending","name","CoilApproved","CoilRecused","CoilAndamento","CoilNoStatus","backgroundColor","disabled","CoilOff","backgroundColorIcon"],"sources":["coil.stories.tsx"],"sourcesContent":["import React from \"react\";\
|
|
1
|
+
{"version":3,"names":["_coil","require","meta","title","component","Coil","args","description","handleNavigation","status","parameters","notes","_default","exports","default","CoilPending","name","CoilApproved","CoilRecused","CoilAndamento","CoilNoStatus","backgroundColor","disabled","CoilOff","backgroundColorIcon"],"sources":["coil.stories.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { StoryObj, Meta } from \"@storybook/react\";\nimport { Coil } from \"../../components/coil\";\n\nconst meta: Meta<typeof Coil> = {\n title: \"componente/Coil\",\n component: Coil as React.FC,\n args: {\n title: \"HUTY-9754\",\n description: \"04 de 02 fotos pendentes\",\n handleNavigation: () => {},\n status: \"Cancelado\",\n },\n parameters: {\n notes: `\n# Coil\n\nEste é um componente de Card da bobina.\nVocê usa assim:\n\\`\\`\\`tsx\n<Coil\n title=''\n description=''\n handleNavigation={() => {}}\n status=''\n/>\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const CoilPending: Story = {\n name: \"coil-pending\",\n args: {\n title: \"HUTY-9754\",\n description: \"04 de 02 fotos pendentes\",\n handleNavigation: () => {},\n status: \"Pendente\",\n },\n};\n\nexport const CoilApproved: Story = {\n name: \"coil-approved\",\n args: {\n title: \"HUTY-9754\",\n description: \"04 de 02 fotos pendentes\",\n handleNavigation: () => {},\n status: \"Concluido\",\n },\n};\n\nexport const CoilRecused: Story = {\n name: \"coil-recused\",\n args: {\n title: \"HUTY-9754\",\n description: \"04 de 02 fotos pendentes\",\n handleNavigation: () => {},\n status: \"Cancelado\",\n },\n};\n\nexport const CoilAndamento: Story = {\n name: \"coil-andamento\",\n args: {\n title: \"HUTY-9754\",\n description: \"background color diferente\",\n handleNavigation: () => {},\n status: \"Andamento\",\n },\n};\n\nexport const CoilNoStatus: Story = {\n name: \"coil-no-status\",\n args: {\n title: \"HUTY-9754\",\n description: \"background color diferente\",\n handleNavigation: () => {},\n backgroundColor: \"green\",\n status: \"Andamento\",\n disabled: true,\n },\n};\n\nexport const CoilOff: Story = {\n name: \"coil-off\",\n args: {\n title: \"HUTY-9823\",\n description: \"background color diferente\",\n handleNavigation: () => {},\n status: \"Pendente\",\n backgroundColorIcon: \"#fff\",\n },\n};\n"],"mappings":";;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AAEA,MAAMC,IAAuB,GAAG;EAC9BC,KAAK,EAAE,iBAAiB;EACxBC,SAAS,EAAEC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IAC1BC,MAAM,EAAE;EACV;AACF,CAAC;AAEM,MAAMW,YAAmB,GAAAP,OAAA,CAAAO,YAAA,GAAG;EACjCJ,IAAI,EAAE,gBAAgB;EACtBV,IAAI,EAAE;IACJH,KAAK,EAAE,WAAW;IAClBI,WAAW,EAAE,4BAA4B;IACzCC,gBAAgB,EAAEA,CAAA,KAAM,CAAC,CAAC;IAC1Ba,eAAe,EAAE,OAAO;IACxBZ,MAAM,EAAE,WAAW;IACnBa,QAAQ,EAAE;EACZ;AACF,CAAC;AAEM,MAAMC,OAAc,GAAAV,OAAA,CAAAU,OAAA,GAAG;EAC5BP,IAAI,EAAE,UAAU;EAChBV,IAAI,EAAE;IACJH,KAAK,EAAE,WAAW;IAClBI,WAAW,EAAE,4BAA4B;IACzCC,gBAAgB,EAAEA,CAAA,KAAM,CAAC,CAAC;IAC1BC,MAAM,EAAE,UAAU;IAClBe,mBAAmB,EAAE;EACvB;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_filterDateSelector","_formatData","e","__esModule","default","meta","title","component","FilterDateSelector","args","selectedDay","date","dayName","fullDate","Date","handleSelectedDay","days","parameters","notes","_default","exports","FilterDateSelectorSimples","name","render","isLoading","setIsLoading","React","useState","setSelectedDay","getLastSevenDays","useEffect","today","find","day","getDate","getMonth","setTimeout","createElement","FilterDateSelectorTodos"],"sources":["filter-date-selector.stories.tsx"],"sourcesContent":["import React from \"react\";\
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_filterDateSelector","_formatData","e","__esModule","default","meta","title","component","FilterDateSelector","args","selectedDay","date","dayName","fullDate","Date","handleSelectedDay","days","parameters","notes","_default","exports","FilterDateSelectorSimples","name","render","isLoading","setIsLoading","React","useState","setSelectedDay","getLastSevenDays","useEffect","today","find","day","getDate","getMonth","setTimeout","createElement","FilterDateSelectorTodos"],"sources":["filter-date-selector.stories.tsx"],"sourcesContent":["import React from \"react\";\nimport type { StoryObj, Meta } from \"@storybook/react\";\nimport { FilterDateSelector } from \"../../components/filter-date-selector\";\nimport { getLastSevenDays } from \"../../utils/format-data\";\nimport { ISelectedDay } from \"../../components/filter-date-selector/interface\";\n\nconst meta: Meta<typeof FilterDateSelector> = {\n title: \"componente/FilterDateSelector\",\n component: FilterDateSelector as React.FC,\n args: {\n selectedDay: {\n date: \"\",\n dayName: \"\",\n fullDate: new Date(\"\"),\n },\n handleSelectedDay: (date: ISelectedDay) => {\n return date;\n },\n days: [],\n },\n parameters: {\n notes: `\n# FilterDateSelector\n\nEste é um componente de filtro do dias .\nVocê usa assim:\n\\`\\`\\`tsx\n <FilterDateSelector\n selectedDay={selectedDay as any}\n handleSelectedDay={setSelectedDay as any}\n days={days as []}\n isLoading={false}\n/>\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const FilterDateSelectorSimples: Story = {\n name: \"filter-journey\",\n render: () => {\n const [isLoading, setIsLoading] = React.useState(false);\n const [selectedDay, setSelectedDay] = React.useState<ISelectedDay>({\n date: \"\",\n dayName: \"\",\n fullDate: new Date(\"\"),\n });\n const days = getLastSevenDays();\n\n React.useEffect(() => {\n const today = new Date();\n\n setSelectedDay(\n days.find(\n (day) => day.date === today.getDate() && day.fullDate.getMonth() === today.getMonth()\n ) as any\n );\n }, []);\n\n const handleSelectedDay = (day: ISelectedDay) => {\n setSelectedDay(day);\n setIsLoading(true);\n\n /* global setTimeout */\n setTimeout(() => {\n setIsLoading(false);\n }, 1000);\n };\n return (\n <FilterDateSelector\n selectedDay={selectedDay as any}\n handleSelectedDay={handleSelectedDay as any}\n days={days as []}\n isLoading={isLoading}\n />\n );\n },\n args: {\n selectedDay: {\n date: \"\",\n dayName: \"\",\n fullDate: new Date(\"\"),\n },\n handleSelectedDay: (date: ISelectedDay) => {\n return date;\n },\n days: [],\n },\n};\n\nexport const FilterDateSelectorTodos: Story = {\n name: \"filter-journey-todos\",\n render: () => {\n const [isLoading, setIsLoading] = React.useState(false);\n\n const days = getLastSevenDays() as ISelectedDay[];\n\n const [selectedDay, setSelectedDay] = React.useState<any>(days[0]);\n\n // Função para lidar com a seleção de um dia\n const handleSelectedDay = (day: ISelectedDay) => {\n setSelectedDay(day);\n setIsLoading(true);\n // Simula um carregamento de 1 segundo\n setTimeout(() => setIsLoading(false), 1000);\n };\n\n return (\n <FilterDateSelector\n selectedDay={selectedDay}\n handleSelectedDay={handleSelectedDay as any}\n days={days}\n isLoading={isLoading}\n />\n );\n },\n args: {}, // <- NÃO defina selectedDay/days aqui\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAA2D,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG3D,MAAMG,IAAqC,GAAG;EAC5CC,KAAK,EAAE,+BAA+B;EACtCC,SAAS,EAAEC,sCAA8B;EACzCC,IAAI,EAAE;IACJC,WAAW,EAAE;MACXC,IAAI,EAAE,EAAE;MACRC,OAAO,EAAE,EAAE;MACXC,QAAQ,EAAE,IAAIC,IAAI,CAAC,EAAE;IACvB,CAAC;IACDC,iBAAiB,EAAGJ,IAAkB,IAAK;MACzC,OAAOA,IAAI;IACb,CAAC;IACDK,IAAI,EAAE;EACR,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAhB,OAAA,GAEaC,IAAI;AAIZ,MAAMgB,yBAAgC,GAAAD,OAAA,CAAAC,yBAAA,GAAG;EAC9CC,IAAI,EAAE,gBAAgB;EACtBC,MAAM,EAAEA,CAAA,KAAM;IACZ,MA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C,iBAAiB,EAAGJ,IAAkB,IAAK;MACzC,OAAOA,IAAI;IACb,CAAC;IACDK,IAAI,EAAE;EACR;AACF,CAAC;AAEM,MAAMsB,uBAA8B,GAAAlB,OAAA,CAAAkB,uBAAA,GAAG;EAC5ChB,IAAI,EAAE,sBAAsB;EAC5BC,MAAM,EAAEA,CAAA,KAAM;IACZ,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAC,KAAK,CAAC;IAEvD,MAAMX,IAAI,GAAG,IAAAa,4BAAgB,EAAC,CAAmB;IAEjD,MAAM,CAACnB,WAAW,EAAEkB,cAAc,CAAC,GAAGF,cAAK,CAACC,QAAQ,CAAMX,IAAI,CAAC,CAAC,CAAC,CAAC;;IAElE;IACA,MAAMD,iBAAiB,GAAIkB,GAAiB,IAAK;MAC/CL,cAAc,CAACK,GAAG,CAAC;MACnBR,YAAY,CAAC,IAAI,CAAC;MAClB;MACAW,UAAU,CAAC,MAAMX,YAAY,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;IAC7C,CAAC;IAED,oBACE5B,MAAA,CAAAO,OAAA,CAAAiC,aAAA,CAACrC,mBAAA,CAAAQ,kBAAkB;MACjBE,WAAW,EAAEA,WAAY;MACzBK,iBAAiB,EAAEA,iBAAyB;MAC5CC,IAAI,EAAEA,IAAK;MACXQ,SAAS,EAAEA;IAAU,CACtB,CAAC;EAEN,CAAC;EACDf,IAAI,EAAE,CAAC,CAAC,CAAE;AACZ,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_historyDetails","require","meta","title","component","HistoryDetails","args","numero","local","date","duracao","parameters","notes","_default","exports","default","Padrao","name"],"sources":["history-details.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\
|
|
1
|
+
{"version":3,"names":["_historyDetails","require","meta","title","component","HistoryDetails","args","numero","local","date","duracao","parameters","notes","_default","exports","default","Padrao","name"],"sources":["history-details.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\nimport { HistoryDetails } from \"../../components/history-details\";\n\nconst meta: Meta<typeof HistoryDetails> = {\n title: \"componente/HistoryDetails\",\n component: HistoryDetails,\n args: {\n numero: \"01020304050607\",\n local: \"Doca 1, Pátio 02 - Usimais (Ipatinga)\",\n date: \"24/03/2025\",\n duracao: \"00:30\",\n },\n parameters: {\n notes: ` HistoryDetails Este é um componente de detalhe do histórico.Você usa assim:\n <HistoryDetails\n numero=\"999999\"\n local=\"Doca 3, Pátio 05 - Usiminas (Ipatinga)\"\n date=\"2026-01-01\"\n duracao=\"01:15\"\n />`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const Padrao: Story = {\n name: \"history-details-padrao\",\n args: {\n numero: \"01020304050607\",\n local: \"Doca 1, Pátio 02 - Usimais (Ipatinga)\",\n date: \"2025-03-24\",\n duracao: \"00:30\",\n },\n};\n"],"mappings":";;;;;;AACA,IAAAA,eAAA,GAAAC,OAAA;AAEA,MAAMC,IAAiC,GAAG;EACxCC,KAAK,EAAE,2BAA2B;EAClCC,SAAS,EAAEC,8BAAc;EACzBC,IAAI,EAAE;IACJC,MAAM,EAAE,gBAAgB;IACxBC,KAAK,EAAE,uCAAuC;IAC9CC,IAAI,EAAE,YAAY;IAClBC,OAAO,EAAE;EACX,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEab,IAAI;AAIZ,MAAMc,MAAa,GAAAF,OAAA,CAAAE,MAAA,GAAG;EAC3BC,IAAI,EAAE,wBAAwB;EAC9BX,IAAI,EAAE;IACJC,MAAM,EAAE,gBAAgB;IACxBC,KAAK,EAAE,uCAAuC;IAC9CC,IAAI,EAAE,YAAY;IAClBC,OAAO,EAAE;EACX;AACF,CAAC","ignoreList":[]}
|
package/lib/commonjs/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_imageCaptureWithRemove","require","meta","title","component","ImageCaptureWithRemove","args","foto","status","parameters","notes","_default","exports","default","ImageCapture","name","handleTakePhoto","onRemove","ImageCaptureWithDelete","ImageCaptureWithStatus"],"sources":["image-capture-with-remove.stories.tsx"],"sourcesContent":["import React from \"react\";\
|
|
1
|
+
{"version":3,"names":["_imageCaptureWithRemove","require","meta","title","component","ImageCaptureWithRemove","args","foto","status","parameters","notes","_default","exports","default","ImageCapture","name","handleTakePhoto","onRemove","ImageCaptureWithDelete","ImageCaptureWithStatus"],"sources":["image-capture-with-remove.stories.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { StoryObj, Meta } from \"@storybook/react\";\nimport { ImageCaptureWithRemove } from \"../../components/image-capture-with-remove\";\n\nconst meta: Meta<typeof ImageCaptureWithRemove> = {\n title: \"componente/ImageCaptureWithRemove\",\n component: ImageCaptureWithRemove as React.FC,\n args: {\n foto: \"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6OOy_GKxjzabOOBo22zHfg4TdWhubwnU7GQ&s\",\n status: \"Cancelado\",\n },\n parameters: {\n notes: `\n# ImageCaptureWithRemove\n\nEste é um componente de ImageCaptureWithRemove.\nVocê usa assim:\n\\`\\`\\`tsx\n<ImageCaptureWithRemove\n\n />\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const ImageCapture: Story = {\n name: \"image-capture-with\",\n args: {\n foto: null,\n handleTakePhoto: () => {},\n onRemove: () => {},\n },\n};\n\nexport const ImageCaptureWithDelete: Story = {\n name: \"image-capture-with-delete\",\n args: {\n foto: \"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6OOy_GKxjzabOOBo22zHfg4TdWhubwnU7GQ&s\",\n handleTakePhoto: () => {},\n onRemove: () => {},\n },\n};\nexport const ImageCaptureWithStatus: Story = {\n name: \"image-capture-with-status\",\n args: {\n foto: \"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6OOy_GKxjzabOOBo22zHfg4TdWhubwnU7GQ&s\",\n handleTakePhoto: () => {},\n onRemove: () => {},\n status: \"Pendente\",\n },\n};\n"],"mappings":";;;;;;AAGA,IAAAA,uBAAA,GAAAC,OAAA;AAEA,MAAMC,IAAyC,GAAG;EAChDC,KAAK,EAAE,mCAAmC;EAC1CC,SAAS,EAAEC,8CAAkC;EAC7CC,IAAI,EAAE;IACJC,IAAI,EAAE,8FAA8F;IACpGC,MAAM,EAAE;EACV,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaX,IAAI;AAIZ,MAAMY,YAAmB,GAAAF,OAAA,CAAAE,YAAA,GAAG;EACjCC,IAAI,EAAE,oBAAoB;EAC1BT,IAAI,EAAE;IACJC,IAAI,EAAE,IAAI;IACVS,eAAe,EAAEA,CAAA,KAAM,CAAC,CAAC;IACzBC,QAAQ,EAAEA,CAAA,KAAM,CAAC;EACnB;AACF,CAAC;AAEM,MAAMC,sBAA6B,GAAAN,OAAA,CAAAM,sBAAA,GAAG;EAC3CH,IAAI,EAAE,2BAA2B;EACjCT,IAAI,EAAE;IACJC,IAAI,EAAE,8FAA8F;IACpGS,eAAe,EAAEA,CAAA,KAAM,CAAC,CAAC;IACzBC,QAAQ,EAAEA,CAAA,KAAM,CAAC;EACnB;AACF,CAAC;AACM,MAAME,sBAA6B,GAAAP,OAAA,CAAAO,sBAAA,GAAG;EAC3CJ,IAAI,EAAE,2BAA2B;EACjCT,IAAI,EAAE;IACJC,IAAI,EAAE,8FAA8F;IACpGS,eAAe,EAAEA,CAAA,KAAM,CAAC,CAAC;IACzBC,QAAQ,EAAEA,CAAA,KAAM,CAAC,CAAC;IAClBT,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_notificationLoading","require","meta","title","component","NotificationLoading","args","date","handleNavigation","notification","statusNotify","dataStart","readonly","parameters","notes","_default","exports","default","NotificationLoadingPending","name","NotificationLoadingApproved","NotificationLoadingRecused","NotificationLoadingReadonly"],"sources":["notification-loading.stories.tsx"],"sourcesContent":["import React from \"react\";\
|
|
1
|
+
{"version":3,"names":["_notificationLoading","require","meta","title","component","NotificationLoading","args","date","handleNavigation","notification","statusNotify","dataStart","readonly","parameters","notes","_default","exports","default","NotificationLoadingPending","name","NotificationLoadingApproved","NotificationLoadingRecused","NotificationLoadingReadonly"],"sources":["notification-loading.stories.tsx"],"sourcesContent":["import React from \"react\";\n\nimport type { StoryObj, Meta } from \"@storybook/react\";\nimport { NotificationLoading } from \"../../components/notification-loading\";\n\nconst meta: Meta<typeof NotificationLoading> = {\n title: \"componente/NotificationLoading\",\n component: NotificationLoading as React.FC,\n args: {\n title: \"Carregamento - #013200400456\",\n date: \"12:30 07/05/2025\",\n handleNavigation: () => {},\n notification: \"Hoje você tem um carregamento agendamento\",\n statusNotify: \"pending\",\n dataStart: \"Hoje\",\n readonly: false,\n },\n parameters: {\n notes: `\n# NotificationLoading\n\nEste é um componente de Card de notificação.\nVocê usa assim:\n\\`\\`\\`tsx\n<NotificationLoading\n title=\"\"\n date=\"\"\n handleNavigation={() => {}}\n notification=\"\"\n statusNotify=\"\"\n dataStart: \"Hoje\",\n readonly: false,\n/>\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const NotificationLoadingPending: Story = {\n name: \"Notification-pending\",\n args: {\n title: \"#013200400456\",\n date: \"12:30 07/05/2025\",\n handleNavigation: () => {},\n notification: \"Hoje você tem um carregamento agendamento\",\n statusNotify: \"Pendente\",\n dataStart: \"Ontem\",\n },\n};\nexport const NotificationLoadingApproved: Story = {\n name: \"Notification-Approved\",\n args: {\n title: \"#013200400456\",\n date: \"12:30 07/05/2025\",\n handleNavigation: () => {},\n notification: \"Hoje você tem um carregamento agendamento\",\n statusNotify: \"Aprovado\",\n dataStart: \"Hoje\",\n },\n};\nexport const NotificationLoadingRecused: Story = {\n name: \"Notification-recused\",\n args: {\n title: \"#013200400456\",\n date: \"12:30 07/05/2025\",\n handleNavigation: () => {},\n notification: \"Hoje você tem um carregamento agendamento\",\n statusNotify: \"Reprovado\",\n dataStart: \"25 abril 2025\",\n },\n};\n\nexport const NotificationLoadingReadonly: Story = {\n name: \"Notification-readonly\",\n args: {\n title: \"#013200400456\",\n date: \"12:30 07/05/2025\",\n handleNavigation: () => {},\n notification: \"Hoje você tem um carregamento agendamento\",\n statusNotify: \"Reprovado\",\n dataStart: \"25 abril 2025\",\n readonly: true,\n },\n};\n"],"mappings":";;;;;;AAGA,IAAAA,oBAAA,GAAAC,OAAA;AAEA,MAAMC,IAAsC,GAAG;EAC7CC,KAAK,EAAE,gCAAgC;EACvCC,SAAS,EAAEC,wCAA+B;EAC1CC,IAAI,EAAE;IACJH,KAAK,EAAE,8BAA8B;IACrCI,IAAI,EAAE,kBAAkB;IACxBC,gBAAgB,EAAEA,CAAA,KAAM,CAAC,CAAC;IAC1BC,YAAY,EAAE,2CAA2C;IACzDC,YAAY,EAAE,SAAS;IACvBC,SAAS,EAAE,MAAM;IACjBC,QAAQ,EAAE;EACZ,CAAC;EACDC,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaf,IAAI;AAIZ,MAAMgB,0BAAiC,GAAAF,OAAA,CAAAE,0BAAA,GAAG;EAC/CC,IAAI,EAAE,sBAAsB;EAC5Bb,IAAI,EAAE;IACJH,KAAK,EAAE,eAAe;IACtBI,IAAI,EAAE,kBAAkB;IACxBC,gBAAgB,EAAEA,CAAA,KAAM,CAAC,CAAC;IAC1BC,YAAY,EAAE,2CAA2C;IACzDC,YAAY,EAAE,UAAU;IACxBC,SAAS,EAAE;EACb;AACF,CAAC;AACM,MAAMS,2BAAkC,GAAAJ,OAAA,CAAAI,2BAAA,GAAG;EAChDD,IAAI,EAAE,uBAAuB;EAC7Bb,IAAI,EAAE;IACJH,KAAK,EAAE,eAAe;IACtBI,IAAI,EAAE,kBAAkB;IACxBC,gBAAgB,EAAEA,CAAA,KAAM,CAAC,CAAC;IAC1BC,YAAY,EAAE,2CAA2C;IACzDC,YAAY,EAAE,UAAU;IACxBC,SAAS,EAAE;EACb;AACF,CAAC;AACM,MAAMU,0BAAiC,GAAAL,OAAA,CAAAK,0BAAA,GAAG;EAC/CF,IAAI,EAAE,sBAAsB;EAC5Bb,IAAI,EAAE;IACJH,KAAK,EAAE,eAAe;IACtBI,IAAI,EAAE,kBAAkB;IACxBC,gBAAgB,EAAEA,CAAA,KAAM,CAAC,CAAC;IAC1BC,YAAY,EAAE,2CAA2C;IACzDC,YAAY,EAAE,WAAW;IACzBC,SAAS,EAAE;EACb;AACF,CAAC;AAEM,MAAMW,2BAAkC,GAAAN,OAAA,CAAAM,2BAAA,GAAG;EAChDH,IAAI,EAAE,uBAAuB;EAC7Bb,IAAI,EAAE;IACJH,KAAK,EAAE,eAAe;IACtBI,IAAI,EAAE,kBAAkB;IACxBC,gBAAgB,EAAEA,CAAA,KAAM,CAAC,CAAC;IAC1BC,YAAY,EAAE,2CAA2C;IACzDC,YAAY,EAAE,WAAW;IACzBC,SAAS,EAAE,eAAe;IAC1BC,QAAQ,EAAE;EACZ;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_profileMenuOption","require","_theme","meta","title","component","ProfileMenuOption","args","text","icon","backgroundColor","theme","colors","blue","colorIcon","neutral","handleNavigation","parameters","notes","_default","exports","default","Default","name","CustomColor","Support"],"sources":["profile-menu-option.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\
|
|
1
|
+
{"version":3,"names":["_profileMenuOption","require","_theme","meta","title","component","ProfileMenuOption","args","text","icon","backgroundColor","theme","colors","blue","colorIcon","neutral","handleNavigation","parameters","notes","_default","exports","default","Default","name","CustomColor","Support"],"sources":["profile-menu-option.stories.tsx"],"sourcesContent":["import type { StoryObj, Meta } from \"@storybook/react\";\n\nimport { ProfileMenuOption } from \"../../components/profile-menu-option\";\nimport { theme } from \"../../styles/theme/theme\";\n\nconst meta: Meta<typeof ProfileMenuOption> = {\n title: \"componente/ProfileMenuOption\",\n component: ProfileMenuOption,\n args: {\n text: \"Perfil\",\n icon: \"AGENT\",\n backgroundColor: theme.colors.blue[400],\n colorIcon: theme.colors.neutral[25],\n handleNavigation: () => {},\n },\n parameters: {\n notes: `\n# ProfileMenuOption\n\nEste é um componente de opção de menu para perfil.\nVocê usa assim:\n\\`\\`\\`tsx\n<ProfileMenuOption\n text=\"Perfil\"\n icon=\"AGENT\"\n backgroundColor={theme.colors.blue[400]}\n colorIcon={theme.colors.neutral[25]}\n handleNavigation={() => {}}\n/>\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nexport const Default: Story = {\n name: \"profile-menu-option\",\n args: {\n text: \"Perfil\",\n icon: \"AGENT\",\n backgroundColor: theme.colors.blue[400],\n colorIcon: theme.colors.neutral[25],\n handleNavigation: () => {},\n },\n};\n\nexport const CustomColor: Story = {\n name: \"profile-menu-option-custom-color\",\n args: {\n text: \"Configurações\",\n icon: \"GEAR\",\n backgroundColor: theme.colors.blue[500],\n colorIcon: theme.colors.neutral[25],\n handleNavigation: () => {},\n },\n};\n\nexport const Support: Story = {\n name: \"profile-menu-option-support\",\n args: {\n text: \"Suporte\",\n icon: \"LIFEBUOY\",\n backgroundColor: theme.colors.blue[400],\n colorIcon: theme.colors.neutral[25],\n handleNavigation: () => {},\n },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EAAE,CAAC;IACnCC,gBAAgB,EAAEA,CAAA,KAAM,CAAC;EAC3B;AACF,CAAC;AAEM,MAAMS,OAAc,GAAAL,OAAA,CAAAK,OAAA,GAAG;EAC5BF,IAAI,EAAE,6BAA6B;EACnChB,IAAI,EAAE;IACJC,IAAI,EAAE,SAAS;IACfC,IAAI,EAAE,UAAU;IAChBC,eAAe,EAAEC,YAAK,CAACC,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IACvCC,SAAS,EAAEH,YAAK,CAACC,MAAM,CAACG,OAAO,CAAC,EAAE,CAAC;IACnCC,gBAAgB,EAAEA,CAAA,KAAM,CAAC;EAC3B;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_stepIndicator","require","_theme","meta","title","component","StepIndicator","args","data","id","descricao","data_inicio","data_fim","duracao_segundos","backgroundColorBall","theme","colors","blue","titleColor","neutral","titleNumberColor","parameters","notes","_default","exports","default","dataMock","dataMockCustom","StepIndicatorDefault","name","type","textColorDescription","gray","StepIndicationCustom","orange"],"sources":["step-indicator.stories.tsx"],"sourcesContent":["import { Meta, StoryObj } from \"@storybook/react\";\
|
|
1
|
+
{"version":3,"names":["_stepIndicator","require","_theme","meta","title","component","StepIndicator","args","data","id","descricao","data_inicio","data_fim","duracao_segundos","backgroundColorBall","theme","colors","blue","titleColor","neutral","titleNumberColor","parameters","notes","_default","exports","default","dataMock","dataMockCustom","StepIndicatorDefault","name","type","textColorDescription","gray","StepIndicationCustom","orange"],"sources":["step-indicator.stories.tsx"],"sourcesContent":["import { Meta, StoryObj } from \"@storybook/react\";\n\n// components\nimport { StepIndicator } from \"../../components/step-indicator\";\n\n// styles\nimport { theme } from \"../../styles/theme/theme\";\n\nconst meta: Meta<typeof StepIndicator> = {\n title: \"Componente/StepIndicator\",\n component: StepIndicator,\n args: {\n data: [\n {\n id: 1,\n descricao: \"Repouso Noturno\",\n data_inicio: \"07/03/2024 14:52\",\n data_fim: \"07/03/2024 17:52\",\n duracao_segundos: \"3601\",\n },\n ],\n backgroundColorBall: theme.colors.blue[500],\n titleColor: theme.colors.neutral[25],\n titleNumberColor: theme.colors.neutral[25],\n },\n parameters: {\n notes: `\n# StepIndicator\n\nEste é um componente de step indicator.\nVocê usa assim:\n\\`\\`\\`tsx\n<StepIndicator\n backgroundColorBall=\"#050022\"\n type=\"default\"\n data={dataMock}\n />\n\\`\\`\\`\n`,\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof meta>;\n\nconst dataMock = [\n {\n id: 1,\n descricao: \"Repouso Noturno\",\n data_inicio: \"07/03/2024 14:52\",\n data_fim: \"07/03/2024 17:52\",\n duracao_segundos: \"3601\",\n },\n {\n id: 2,\n descricao: \"Descarga\",\n data_inicio: \"06/03/2024 14:52\",\n data_fim: \"06/03/2024 16:52\",\n duracao_segundos: \"7200\",\n },\n];\n\nconst dataMockCustom = [\n {\n id: 1,\n descricao: \"Pedido Realizado\",\n data_inicio: \"\",\n data_fim: \"\",\n duracao_segundos: \"\",\n },\n {\n id: 2,\n descricao: \"Pagamento Aprovado\",\n data_inicio: \"07/03/2024 14:52\",\n data_fim: \"07/03/2024 17:52\",\n duracao_segundos: \"3601\",\n },\n {\n id: 3,\n descricao: \"Pedido Faturado\",\n data_inicio: \"\",\n data_fim: \"\",\n duracao_segundos: \"\",\n },\n {\n id: 4,\n descricao: \"Pedido Enviado\",\n data_inicio: \"\",\n data_fim: \"\",\n duracao_segundos: \"\",\n },\n {\n id: 4,\n descricao: \"Pedido Entregue\",\n data_inicio: \"07/03/2024 14:52\",\n data_fim: \"07/03/2024 17:52\",\n duracao_segundos: \"3601\",\n },\n];\n\nexport const StepIndicatorDefault: Story = {\n name: \"step-indicator-default\",\n args: {\n data: dataMock,\n type: \"default\",\n backgroundColorBall: theme.colors.blue[500],\n titleColor: theme.colors.neutral[25],\n textColorDescription: theme.colors.gray[300],\n titleNumberColor: theme.colors.neutral[25],\n },\n};\n\nexport const StepIndicationCustom: Story = {\n name: \"step-indicator-custom\",\n args: {\n data: dataMockCustom,\n type: \"custom\",\n backgroundColorBall: theme.colors.orange[150],\n titleColor: theme.colors.blue[500],\n textColorDescription: theme.colors.gray[300],\n titleNumberColor: theme.colors.neutral[25],\n },\n};\n"],"mappings":";;;;;;AAGA,IAAAA,cAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AAJA;;AAGA;;AAGA,MAAME,IAAgC,GAAG;EACvCC,KAAK,EAAE,0BAA0B;EACjCC,SAAS,EAAEC,4BAAa;EACxBC,IAAI,EAAE;IACJC,IAAI,EAAE,CACJ;MACEC,EAAE,EAAE,CAAC;MACLC,SAAS,EAAE,iBAAiB;MAC5BC,WAAW,EAAE,kBAAkB;MAC/BC,QAAQ,EAAE,kBAAkB;MAC5BC,gBAAgB,EAAE;IACpB,CAAC,CACF;IACDC,mBAAmB,EAAEC,YAAK,CAACC,MAAM,CAACC,IAAI,CAAC,GAAG,CAAC;IAC3CC,UAAU,EAAEH,YAAK,CAACC,MAAM,CAACG,OAAO,CAAC,EAAE,CAAC;IACpCC,gBAAgB,EAAEL,YAAK,CAACC,MAAM,CAACG,OAAO,CAAC,EAAE;EAC3C,CAAC;EACDE,UAAU,EAAE;IACVC,KAAK,EAAE;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACE;AACF,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEatB,IAAI;AAInB,MAAMuB,QAAQ,GAAG,CACf;EACEjB,EAAE,EAAE,CAAC;EACLC,SAAS,EAAE,iBAAiB;EAC5BC,WAAW,EAAE,kBAAkB;EAC/BC,QAAQ,EAAE,kBAAkB;EAC5BC,gBAAgB,EAAE;AACpB,CAAC,EACD;EACEJ,EAAE,EAAE,CAAC;EACLC,SAAS,EAAE,UAAU;EACrBC,WAAW,EAAE,kBAAkB;EAC/BC,QAAQ,EAAE,kBAAkB;EAC5BC,gBAAgB,EAAE;AACp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