react-native-exp-fig 0.1.3 → 0.1.4
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/check-box-fill/index.js +1 -1
- package/lib/commonjs/common/icons-svg/check-box-fill/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/check-box-outline/index.js +1 -1
- package/lib/commonjs/common/icons-svg/check-box-outline/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/check-circle/index.js +23 -10
- package/lib/commonjs/common/icons-svg/check-circle/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/closed/index.js +4 -3
- package/lib/commonjs/common/icons-svg/closed/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/constants/index.js +8 -1
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/ellipse/index.js +43 -0
- package/lib/commonjs/common/icons-svg/ellipse/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/exclamation-circle/index.js +47 -0
- package/lib/commonjs/common/icons-svg/exclamation-circle/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/files/index.js +35 -0
- package/lib/commonjs/common/icons-svg/files/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/index.js +50 -1
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/lifebuoy/index.js +39 -0
- package/lib/commonjs/common/icons-svg/lifebuoy/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/plus/index.js +55 -0
- package/lib/commonjs/common/icons-svg/plus/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/recused/index.js +48 -0
- package/lib/commonjs/common/icons-svg/recused/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/x-circle/index.js +56 -0
- package/lib/commonjs/common/icons-svg/x-circle/index.js.map +1 -0
- package/lib/commonjs/components/button/index.js +12 -10
- package/lib/commonjs/components/button/index.js.map +1 -1
- package/lib/commonjs/components/button/styles.js +2 -2
- package/lib/commonjs/components/button/styles.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +158 -0
- package/lib/commonjs/components/card-history/index.js.map +1 -0
- package/lib/commonjs/components/card-history/interface.d.js +6 -0
- package/lib/commonjs/components/card-history/interface.d.js.map +1 -0
- package/lib/commonjs/components/card-loading/index.js +21 -23
- package/lib/commonjs/components/card-loading/index.js.map +1 -1
- package/lib/commonjs/components/card-work-session/index.js +10 -7
- package/lib/commonjs/components/card-work-session/index.js.map +1 -1
- package/lib/commonjs/components/check-box/index.js +137 -0
- package/lib/commonjs/components/check-box/index.js.map +1 -0
- package/lib/commonjs/components/check-box/interface.d.js +6 -0
- package/lib/commonjs/components/check-box/interface.d.js.map +1 -0
- package/lib/commonjs/components/coil/index.js +119 -0
- package/lib/commonjs/components/coil/index.js.map +1 -0
- package/lib/commonjs/components/coil/interface.d.js +6 -0
- package/lib/commonjs/components/coil/interface.d.js.map +1 -0
- package/lib/commonjs/components/filter-journey/index.js +67 -0
- package/lib/commonjs/components/filter-journey/index.js.map +1 -0
- package/lib/commonjs/components/filter-journey/interface.d.js +6 -0
- package/lib/commonjs/components/filter-journey/interface.d.js.map +1 -0
- package/lib/commonjs/components/image-capture-with-remove/index.js +96 -0
- package/lib/commonjs/components/image-capture-with-remove/index.js.map +1 -0
- package/lib/commonjs/components/image-capture-with-remove/interface.d.js +6 -0
- package/lib/commonjs/components/image-capture-with-remove/interface.d.js.map +1 -0
- package/lib/commonjs/components/input/index.js +5 -4
- package/lib/commonjs/components/input/index.js.map +1 -1
- package/lib/commonjs/components/loading-details/index.js +170 -0
- package/lib/commonjs/components/loading-details/index.js.map +1 -0
- package/lib/commonjs/components/loading-details/interface.d.js +6 -0
- package/lib/commonjs/components/loading-details/interface.d.js.map +1 -0
- package/lib/commonjs/components/loading-progress/index.js +108 -0
- package/lib/commonjs/components/loading-progress/index.js.map +1 -0
- package/lib/commonjs/components/loading-progress/interface.d.js +6 -0
- package/lib/commonjs/components/loading-progress/interface.d.js.map +1 -0
- package/lib/commonjs/components/menu-item/index.js +2 -6
- package/lib/commonjs/components/menu-item/index.js.map +1 -1
- package/lib/commonjs/components/no-data/index.js +47 -0
- package/lib/commonjs/components/no-data/index.js.map +1 -0
- package/lib/commonjs/components/no-data/interface.d.js +6 -0
- package/lib/{module/components/card-loading/styles.js.map → commonjs/components/no-data/interface.d.js.map} +1 -1
- package/lib/commonjs/components/notification-loading/index.js +157 -0
- package/lib/commonjs/components/notification-loading/index.js.map +1 -0
- package/lib/commonjs/components/notification-loading/interface.d.js +6 -0
- package/lib/commonjs/components/notification-loading/interface.d.js.map +1 -0
- package/lib/commonjs/components/scheduled-journey-indicators/index.js +3 -1
- package/lib/commonjs/components/scheduled-journey-indicators/index.js.map +1 -1
- package/lib/commonjs/index.js +67 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/box/box.stories.js +1 -1
- package/lib/commonjs/stories/box/box.stories.js.map +1 -1
- package/lib/commonjs/stories/button/button.stories.js +67 -2
- package/lib/commonjs/stories/button/button.stories.js.map +1 -1
- package/lib/commonjs/stories/card-history/card-history.stories.js +50 -0
- package/lib/commonjs/stories/card-history/card-history.stories.js.map +1 -0
- package/lib/commonjs/stories/check-box/check-box.stories.js +78 -0
- package/lib/commonjs/stories/check-box/check-box.stories.js.map +1 -0
- package/lib/commonjs/stories/coil/coil.stories.js +62 -0
- package/lib/commonjs/stories/coil/coil.stories.js.map +1 -0
- package/lib/commonjs/stories/filter-journey/filter-journey.stories.js +79 -0
- package/lib/commonjs/stories/filter-journey/filter-journey.stories.js.map +1 -0
- package/lib/commonjs/stories/image-capture-with-remove/image-capture-with-remove.stories.js +45 -0
- package/lib/commonjs/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -0
- package/lib/commonjs/stories/input/input.stories.js +1 -1
- package/lib/commonjs/stories/input/input.stories.js.map +1 -1
- package/lib/commonjs/stories/loading-details/loading-details.stories.js +47 -0
- package/lib/commonjs/stories/loading-details/loading-details.stories.js.map +1 -0
- package/lib/commonjs/stories/loading-progress/loading-progress.stories.js +34 -0
- package/lib/commonjs/stories/loading-progress/loading-progress.stories.js.map +1 -0
- package/lib/commonjs/stories/no-data/no-data.stories.js +35 -0
- package/lib/commonjs/stories/no-data/no-data.stories.js.map +1 -0
- package/lib/commonjs/stories/notification-loading/notification-loading.stories.js +72 -0
- package/lib/commonjs/stories/notification-loading/notification-loading.stories.js.map +1 -0
- package/lib/commonjs/stories/user-profile/user-profile.stories.js +1 -1
- package/lib/commonjs/styles/theme/theme.js +9 -2
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/commonjs/{components/card-loading/helpers/return-colors.js → utils/status-color/return-color.js} +2 -2
- package/lib/commonjs/utils/status-color/return-color.js.map +1 -0
- package/lib/module/common/icons-svg/check-box-fill/index.js +1 -1
- package/lib/module/common/icons-svg/check-box-fill/index.js.map +1 -1
- package/lib/module/common/icons-svg/check-box-outline/index.js +1 -1
- package/lib/module/common/icons-svg/check-box-outline/index.js.map +1 -1
- package/lib/module/common/icons-svg/check-circle/index.js +24 -11
- package/lib/module/common/icons-svg/check-circle/index.js.map +1 -1
- package/lib/module/common/icons-svg/closed/index.js +4 -3
- package/lib/module/common/icons-svg/closed/index.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +8 -1
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/ellipse/index.js +36 -0
- package/lib/module/common/icons-svg/ellipse/index.js.map +1 -0
- package/lib/module/common/icons-svg/exclamation-circle/index.js +40 -0
- package/lib/module/common/icons-svg/exclamation-circle/index.js.map +1 -0
- package/lib/module/common/icons-svg/files/index.js +28 -0
- package/lib/module/common/icons-svg/files/index.js.map +1 -0
- package/lib/module/common/icons-svg/index.js +50 -1
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/lifebuoy/index.js +32 -0
- package/lib/module/common/icons-svg/lifebuoy/index.js.map +1 -0
- package/lib/module/common/icons-svg/plus/index.js +48 -0
- package/lib/module/common/icons-svg/plus/index.js.map +1 -0
- package/lib/module/common/icons-svg/recused/index.js +41 -0
- package/lib/module/common/icons-svg/recused/index.js.map +1 -0
- package/lib/module/common/icons-svg/x-circle/index.js +47 -0
- package/lib/module/common/icons-svg/x-circle/index.js.map +1 -0
- package/lib/module/components/button/index.js +13 -11
- package/lib/module/components/button/index.js.map +1 -1
- package/lib/module/components/button/styles.js +2 -2
- package/lib/module/components/button/styles.js.map +1 -1
- package/lib/module/components/card-history/index.js +154 -0
- package/lib/module/components/card-history/index.js.map +1 -0
- package/lib/module/components/card-history/interface.d.js +4 -0
- package/lib/module/components/card-history/interface.d.js.map +1 -0
- package/lib/module/components/card-loading/index.js +21 -23
- package/lib/module/components/card-loading/index.js.map +1 -1
- package/lib/module/components/card-work-session/index.js +10 -7
- package/lib/module/components/card-work-session/index.js.map +1 -1
- package/lib/module/components/check-box/index.js +133 -0
- package/lib/module/components/check-box/index.js.map +1 -0
- package/lib/module/components/check-box/interface.d.js +4 -0
- package/lib/module/components/check-box/interface.d.js.map +1 -0
- package/lib/module/components/coil/index.js +113 -0
- package/lib/module/components/coil/index.js.map +1 -0
- package/lib/module/components/coil/interface.d.js +4 -0
- package/lib/module/components/coil/interface.d.js.map +1 -0
- package/lib/module/components/filter-journey/index.js +62 -0
- package/lib/module/components/filter-journey/index.js.map +1 -0
- package/lib/module/components/filter-journey/interface.d.js +4 -0
- package/lib/module/components/filter-journey/interface.d.js.map +1 -0
- package/lib/module/components/image-capture-with-remove/index.js +92 -0
- package/lib/module/components/image-capture-with-remove/index.js.map +1 -0
- package/lib/module/components/image-capture-with-remove/interface.d.js +4 -0
- package/lib/module/components/image-capture-with-remove/interface.d.js.map +1 -0
- package/lib/module/components/input/index.js +6 -5
- package/lib/module/components/input/index.js.map +1 -1
- package/lib/module/components/loading-details/index.js +164 -0
- package/lib/module/components/loading-details/index.js.map +1 -0
- package/lib/module/components/loading-details/interface.d.js +4 -0
- package/lib/module/components/loading-details/interface.d.js.map +1 -0
- package/lib/module/components/loading-progress/index.js +104 -0
- package/lib/module/components/loading-progress/index.js.map +1 -0
- package/lib/module/components/loading-progress/interface.d.js +4 -0
- package/lib/module/components/loading-progress/interface.d.js.map +1 -0
- package/lib/module/components/menu-item/index.js +3 -7
- package/lib/module/components/menu-item/index.js.map +1 -1
- package/lib/module/components/no-data/index.js +41 -0
- package/lib/module/components/no-data/index.js.map +1 -0
- package/lib/module/components/no-data/interface.d.js +4 -0
- package/lib/{commonjs/components/card-loading/styles.js.map → module/components/no-data/interface.d.js.map} +1 -1
- package/lib/module/components/notification-loading/index.js +151 -0
- package/lib/module/components/notification-loading/index.js.map +1 -0
- package/lib/module/components/notification-loading/interface.d.js +4 -0
- package/lib/module/components/notification-loading/interface.d.js.map +1 -0
- package/lib/module/components/scheduled-journey-indicators/index.js +3 -1
- package/lib/module/components/scheduled-journey-indicators/index.js.map +1 -1
- package/lib/module/index.js +9 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/box/box.stories.js +1 -1
- package/lib/module/stories/box/box.stories.js.map +1 -1
- package/lib/module/stories/button/button.stories.js +65 -1
- package/lib/module/stories/button/button.stories.js.map +1 -1
- package/lib/module/stories/card-history/card-history.stories.js +46 -0
- package/lib/module/stories/card-history/card-history.stories.js.map +1 -0
- package/lib/module/stories/check-box/check-box.stories.js +74 -0
- package/lib/module/stories/check-box/check-box.stories.js.map +1 -0
- package/lib/module/stories/coil/coil.stories.js +58 -0
- package/lib/module/stories/coil/coil.stories.js.map +1 -0
- package/lib/module/stories/filter-journey/filter-journey.stories.js +74 -0
- package/lib/module/stories/filter-journey/filter-journey.stories.js.map +1 -0
- package/lib/module/stories/image-capture-with-remove/image-capture-with-remove.stories.js +41 -0
- package/lib/module/stories/image-capture-with-remove/image-capture-with-remove.stories.js.map +1 -0
- package/lib/module/stories/input/input.stories.js +1 -1
- package/lib/module/stories/input/input.stories.js.map +1 -1
- package/lib/module/stories/loading-details/loading-details.stories.js +43 -0
- package/lib/module/stories/loading-details/loading-details.stories.js.map +1 -0
- package/lib/module/stories/loading-progress/loading-progress.stories.js +30 -0
- package/lib/module/stories/loading-progress/loading-progress.stories.js.map +1 -0
- package/lib/module/stories/no-data/no-data.stories.js +31 -0
- package/lib/module/stories/no-data/no-data.stories.js.map +1 -0
- package/lib/module/stories/notification-loading/notification-loading.stories.js +68 -0
- package/lib/module/stories/notification-loading/notification-loading.stories.js.map +1 -0
- package/lib/module/stories/user-profile/user-profile.stories.js +1 -1
- package/lib/module/styles/theme/theme.js +9 -2
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/module/{components/card-loading/helpers/return-colors.js → utils/status-color/return-color.js} +2 -2
- package/lib/module/utils/status-color/return-color.js.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/check-circle/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/ellipse/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/common/icons-svg/ellipse/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/exclamation-circle/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/common/icons-svg/exclamation-circle/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/files/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/common/icons-svg/files/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/lifebuoy/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/lifebuoy/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/plus/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/plus/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/recused/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/recused/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/x-circle/index.d.ts +14 -0
- package/lib/typescript/commonjs/src/common/icons-svg/x-circle/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/button/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/card-history/index.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/card-history/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/card-loading/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/card-work-session/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/check-box/index.d.ts +14 -0
- package/lib/typescript/commonjs/src/components/check-box/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/coil/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/coil/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/filter-journey/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/filter-journey/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/image-capture-with-remove/index.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/image-capture-with-remove/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/input/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/loading-details/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/loading-details/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/loading-progress/index.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/loading-progress/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/menu-item/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/no-data/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/no-data/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/notification-loading/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/notification-loading/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/scheduled-journey-indicators/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/box/box.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/button/button.stories.d.ts +1 -0
- package/lib/typescript/commonjs/src/stories/button/button.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/card-history/card-history.stories.d.ts +7 -0
- package/lib/typescript/commonjs/src/stories/card-history/card-history.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/check-box/check-box.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/check-box/check-box.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/coil/coil.stories.d.ts +9 -0
- package/lib/typescript/commonjs/src/stories/coil/coil.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/filter-journey/filter-journey.stories.d.ts +7 -0
- package/lib/typescript/commonjs/src/stories/filter-journey/filter-journey.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/image-capture-with-remove/image-capture-with-remove.stories.d.ts +8 -0
- package/lib/typescript/commonjs/src/stories/image-capture-with-remove/image-capture-with-remove.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/input/input.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/loading-details/loading-details.stories.d.ts +7 -0
- package/lib/typescript/commonjs/src/stories/loading-details/loading-details.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/loading-progress/loading-progress.stories.d.ts +7 -0
- package/lib/typescript/commonjs/src/stories/loading-progress/loading-progress.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/no-data/no-data.stories.d.ts +7 -0
- package/lib/typescript/commonjs/src/stories/no-data/no-data.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/notification-loading/notification-loading.stories.d.ts +9 -0
- package/lib/typescript/commonjs/src/stories/notification-loading/notification-loading.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +7 -0
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +7 -0
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/{components/card-loading/helpers/return-colors.d.ts → utils/status-color/return-color.d.ts} +1 -1
- package/lib/typescript/commonjs/src/utils/status-color/return-color.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/check-circle/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +7 -0
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/ellipse/index.d.ts +5 -0
- package/lib/typescript/module/src/common/icons-svg/ellipse/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/exclamation-circle/index.d.ts +8 -0
- package/lib/typescript/module/src/common/icons-svg/exclamation-circle/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/files/index.d.ts +8 -0
- package/lib/typescript/module/src/common/icons-svg/files/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/lifebuoy/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/lifebuoy/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/plus/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/plus/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/recused/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/recused/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/x-circle/index.d.ts +14 -0
- package/lib/typescript/module/src/common/icons-svg/x-circle/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/button/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/card-history/index.d.ts +15 -0
- package/lib/typescript/module/src/components/card-history/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/card-loading/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/card-work-session/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/check-box/index.d.ts +14 -0
- package/lib/typescript/module/src/components/check-box/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/coil/index.d.ts +11 -0
- package/lib/typescript/module/src/components/coil/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/filter-journey/index.d.ts +8 -0
- package/lib/typescript/module/src/components/filter-journey/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/image-capture-with-remove/index.d.ts +15 -0
- package/lib/typescript/module/src/components/image-capture-with-remove/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/input/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/loading-details/index.d.ts +11 -0
- package/lib/typescript/module/src/components/loading-details/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/loading-progress/index.d.ts +15 -0
- package/lib/typescript/module/src/components/loading-progress/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/menu-item/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/no-data/index.d.ts +8 -0
- package/lib/typescript/module/src/components/no-data/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/notification-loading/index.d.ts +11 -0
- package/lib/typescript/module/src/components/notification-loading/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/scheduled-journey-indicators/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +9 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/box/box.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/button/button.stories.d.ts +1 -0
- package/lib/typescript/module/src/stories/button/button.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/card-history/card-history.stories.d.ts +7 -0
- package/lib/typescript/module/src/stories/card-history/card-history.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/check-box/check-box.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/check-box/check-box.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/coil/coil.stories.d.ts +9 -0
- package/lib/typescript/module/src/stories/coil/coil.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/filter-journey/filter-journey.stories.d.ts +7 -0
- package/lib/typescript/module/src/stories/filter-journey/filter-journey.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/image-capture-with-remove/image-capture-with-remove.stories.d.ts +8 -0
- package/lib/typescript/module/src/stories/image-capture-with-remove/image-capture-with-remove.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/input/input.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/loading-details/loading-details.stories.d.ts +7 -0
- package/lib/typescript/module/src/stories/loading-details/loading-details.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/loading-progress/loading-progress.stories.d.ts +7 -0
- package/lib/typescript/module/src/stories/loading-progress/loading-progress.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/no-data/no-data.stories.d.ts +7 -0
- package/lib/typescript/module/src/stories/no-data/no-data.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/notification-loading/notification-loading.stories.d.ts +9 -0
- package/lib/typescript/module/src/stories/notification-loading/notification-loading.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts +7 -0
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/theme/theme.d.ts +7 -0
- package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
- package/lib/typescript/module/src/{components/card-loading/helpers/return-colors.d.ts → utils/status-color/return-color.d.ts} +1 -1
- package/lib/typescript/module/src/utils/status-color/return-color.d.ts.map +1 -0
- package/package.json +2 -3
- package/src/common/icons-svg/check-box-fill/index.tsx +1 -1
- package/src/common/icons-svg/check-box-outline/index.tsx +1 -1
- package/src/common/icons-svg/check-circle/index.tsx +20 -7
- package/src/common/icons-svg/closed/index.tsx +2 -2
- package/src/common/icons-svg/constants/index.ts +7 -0
- package/src/common/icons-svg/ellipse/index.tsx +27 -0
- package/src/common/icons-svg/exclamation-circle/index.tsx +33 -0
- package/src/common/icons-svg/files/index.tsx +26 -0
- package/src/common/icons-svg/index.tsx +29 -1
- package/src/common/icons-svg/interface.d.ts +1 -0
- package/src/common/icons-svg/lifebuoy/index.tsx +29 -0
- package/src/common/icons-svg/plus/index.tsx +40 -0
- package/src/common/icons-svg/recused/index.tsx +33 -0
- package/src/common/icons-svg/x-circle/index.tsx +40 -0
- package/src/components/button/index.tsx +13 -11
- package/src/components/button/interface.d.ts +9 -0
- package/src/components/button/styles.ts +2 -2
- package/src/components/card-history/index.tsx +150 -0
- package/src/components/card-history/interface.d.ts +28 -0
- package/src/components/card-loading/index.tsx +19 -21
- package/src/components/card-loading/interface.d.ts +15 -8
- package/src/components/card-work-session/index.tsx +10 -4
- package/src/components/check-box/index.tsx +125 -0
- package/src/components/check-box/interface.d.ts +27 -0
- package/src/components/coil/index.tsx +82 -0
- package/src/components/coil/interface.d.ts +26 -0
- package/src/components/filter-date-selector/index.tsx +89 -0
- package/src/components/filter-date-selector/interface.d.ts +43 -0
- package/src/components/filter-journey/index.tsx +60 -0
- package/src/components/filter-journey/interface.d.ts +37 -0
- package/src/components/image-capture-with-remove/index.tsx +83 -0
- package/src/components/image-capture-with-remove/interface.d.ts +22 -0
- package/src/components/input/index.tsx +10 -6
- package/src/components/loading-details/index.tsx +154 -0
- package/src/components/loading-details/interface.d.ts +28 -0
- package/src/components/loading-progress/index.tsx +91 -0
- package/src/components/loading-progress/interface.d.ts +22 -0
- package/src/components/menu-item/index.tsx +3 -7
- package/src/components/no-data/index.tsx +40 -0
- package/src/components/no-data/interface.d.ts +16 -0
- package/src/components/notification-loading/index.tsx +144 -0
- package/src/components/notification-loading/interface.d.ts +31 -0
- package/src/components/scheduled-journey-indicators/index.tsx +3 -1
- package/src/index.ts +37 -27
- package/src/stories/box/box.stories.tsx +1 -1
- package/src/stories/button/button.stories.tsx +65 -0
- package/src/stories/card-history/card-history.stories.tsx +50 -0
- package/src/stories/check-box/check-box.stories.tsx +83 -0
- package/src/stories/coil/coil.stories.tsx +64 -0
- package/src/stories/filter-date-selector/filter-date-selector.stories.tsx +93 -0
- package/src/stories/filter-journey/filter-journey.stories.tsx +64 -0
- package/src/stories/image-capture-with-remove/image-capture-with-remove.stories.tsx +47 -0
- package/src/stories/input/input.stories.tsx +1 -1
- package/src/stories/loading-details/loading-details.stories.tsx +48 -0
- package/src/stories/loading-progress/loading-progress.stories.tsx +35 -0
- package/src/stories/no-data/no-data.stories.tsx +35 -0
- package/src/stories/notification-loading/notification-loading.stories.tsx +73 -0
- package/src/stories/user-profile/user-profile.stories.tsx +1 -1
- package/src/styles/theme/theme.ts +7 -0
- package/src/utils/format-data/index.ts +40 -14
- package/src/{components/card-loading/helpers/return-colors.ts → utils/status-color/return-color.ts} +1 -1
- package/lib/commonjs/components/card-loading/helpers/return-colors.js.map +0 -1
- package/lib/commonjs/components/card-loading/styles.js +0 -2
- package/lib/module/components/card-loading/helpers/return-colors.js.map +0 -1
- package/lib/module/components/card-loading/styles.js +0 -2
- package/lib/typescript/commonjs/src/components/card-loading/helpers/return-colors.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/card-loading/styles.d.ts +0 -1
- package/lib/typescript/commonjs/src/components/card-loading/styles.d.ts.map +0 -1
- package/lib/typescript/module/src/components/card-loading/helpers/return-colors.d.ts.map +0 -1
- package/lib/typescript/module/src/components/card-loading/styles.d.ts +0 -1
- package/lib/typescript/module/src/components/card-loading/styles.d.ts.map +0 -1
- package/src/components/card-loading/styles.ts +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* IMPORTS
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { Image, TouchableOpacity } from "react-native";
|
|
6
6
|
|
|
7
7
|
// components
|
|
8
8
|
import { Box } from "../box";
|
|
@@ -16,7 +16,7 @@ import { ICardLoading } from "./interface";
|
|
|
16
16
|
|
|
17
17
|
// styles
|
|
18
18
|
import { theme } from "../../styles/theme/theme";
|
|
19
|
-
import { getStatusColor, StatusType } from "
|
|
19
|
+
import { getStatusColor, StatusType } from "../../utils/status-color/return-color";
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
@@ -32,18 +32,16 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
32
32
|
qtdCoils = 10,
|
|
33
33
|
status = "Pendente",
|
|
34
34
|
handleNavigation,
|
|
35
|
+
testID,
|
|
35
36
|
}: ICardLoading) => {
|
|
36
37
|
return (
|
|
37
|
-
<
|
|
38
|
-
onPress={handleNavigation}
|
|
39
|
-
style={({ pressed }) => [{ opacity: pressed ? 0.75 : 1.0 }]}
|
|
40
|
-
>
|
|
38
|
+
<TouchableOpacity onPress={handleNavigation} activeOpacity={0.7}>
|
|
41
39
|
<Box
|
|
42
|
-
testID={
|
|
40
|
+
testID={testID}
|
|
43
41
|
width={width ?? "100%"}
|
|
44
42
|
backgroundColor={theme.colors.blue[400]}
|
|
45
|
-
marginStyle={{ marginBottom:
|
|
46
|
-
paddingStyle={{ padding:
|
|
43
|
+
marginStyle={{ marginBottom: theme.margins.md }}
|
|
44
|
+
paddingStyle={{ padding: theme.paddings["2xs"] }}
|
|
47
45
|
borderStyled={{
|
|
48
46
|
borderWidth: theme.borderWidths.thin,
|
|
49
47
|
borderColor: theme.colors.blue[400],
|
|
@@ -64,7 +62,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
64
62
|
/>
|
|
65
63
|
</Box>
|
|
66
64
|
|
|
67
|
-
<Box width={"
|
|
65
|
+
<Box width={"74%"} marginStyle={{ marginLeft: 5 }} height={120}>
|
|
68
66
|
<Typography
|
|
69
67
|
text={title}
|
|
70
68
|
ellipsizeMode="tail"
|
|
@@ -81,7 +79,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
81
79
|
color={theme.colors.neutral[25]}
|
|
82
80
|
size={theme.fontSizes.xs}
|
|
83
81
|
fontFamily={theme.fonts.inter_regular_400}
|
|
84
|
-
lineHeight={theme.fontSizes.
|
|
82
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
85
83
|
letterSpacing={"regular"}
|
|
86
84
|
/>
|
|
87
85
|
|
|
@@ -108,7 +106,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
108
106
|
color={theme.colors.neutral[25]}
|
|
109
107
|
size={theme.fontSizes.xs}
|
|
110
108
|
fontFamily={theme.fonts.inter_bold_700}
|
|
111
|
-
lineHeight={theme.fontSizes.
|
|
109
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
112
110
|
letterSpacing={"regular"}
|
|
113
111
|
marginLeft={2}
|
|
114
112
|
/>
|
|
@@ -130,7 +128,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
130
128
|
color={theme.colors.neutral[25]}
|
|
131
129
|
size={theme.fontSizes.xs}
|
|
132
130
|
fontFamily={theme.fonts.inter_bold_700}
|
|
133
|
-
lineHeight={theme.fontSizes.
|
|
131
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
134
132
|
letterSpacing={"regular"}
|
|
135
133
|
marginLeft={2}
|
|
136
134
|
/>
|
|
@@ -149,7 +147,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
149
147
|
color={theme.colors.neutral[25]}
|
|
150
148
|
size={theme.fontSizes.xs}
|
|
151
149
|
fontFamily={theme.fonts.inter_bold_700}
|
|
152
|
-
lineHeight={theme.fontSizes.
|
|
150
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
153
151
|
letterSpacing={"regular"}
|
|
154
152
|
marginLeft={2}
|
|
155
153
|
/>
|
|
@@ -169,7 +167,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
169
167
|
color={theme.colors.neutral[25]}
|
|
170
168
|
size={theme.fontSizes.xs}
|
|
171
169
|
fontFamily={theme.fonts.inter_regular_400}
|
|
172
|
-
lineHeight={theme.fontSizes.
|
|
170
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
173
171
|
letterSpacing={"regular"}
|
|
174
172
|
/>
|
|
175
173
|
<Typography
|
|
@@ -177,7 +175,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
177
175
|
color={theme.colors.neutral[25]}
|
|
178
176
|
size={theme.fontSizes.xs}
|
|
179
177
|
fontFamily={theme.fonts.inter_bold_700}
|
|
180
|
-
lineHeight={theme.fontSizes.
|
|
178
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
181
179
|
letterSpacing={"regular"}
|
|
182
180
|
marginLeft={4}
|
|
183
181
|
/>
|
|
@@ -204,7 +202,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
204
202
|
color={theme.colors.neutral[25]}
|
|
205
203
|
size={theme.fontSizes.xs}
|
|
206
204
|
fontFamily={theme.fonts.inter_regular_400}
|
|
207
|
-
lineHeight={theme.fontSizes.
|
|
205
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
208
206
|
letterSpacing={"regular"}
|
|
209
207
|
/>
|
|
210
208
|
<Typography
|
|
@@ -212,7 +210,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
212
210
|
color={theme.colors.neutral[25]}
|
|
213
211
|
size={theme.fontSizes.xs}
|
|
214
212
|
fontFamily={theme.fonts.inter_bold_700}
|
|
215
|
-
lineHeight={theme.fontSizes.
|
|
213
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
216
214
|
letterSpacing={"regular"}
|
|
217
215
|
marginLeft={4}
|
|
218
216
|
/>
|
|
@@ -239,7 +237,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
239
237
|
color={theme.colors.neutral[25]}
|
|
240
238
|
size={theme.fontSizes.xs}
|
|
241
239
|
fontFamily={theme.fonts.inter_regular_400}
|
|
242
|
-
lineHeight={theme.fontSizes.
|
|
240
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
243
241
|
letterSpacing={"regular"}
|
|
244
242
|
/>
|
|
245
243
|
<Typography
|
|
@@ -247,7 +245,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
247
245
|
color={getStatusColor(status as StatusType)}
|
|
248
246
|
size={theme.fontSizes.xs}
|
|
249
247
|
fontFamily={theme.fonts.inter_bold_700}
|
|
250
|
-
lineHeight={theme.fontSizes.
|
|
248
|
+
lineHeight={theme.fontSizes.md ?? 16}
|
|
251
249
|
letterSpacing={"regular"}
|
|
252
250
|
marginLeft={4}
|
|
253
251
|
/>
|
|
@@ -255,7 +253,7 @@ const CardLoading: React.FC<ICardLoading> = ({
|
|
|
255
253
|
</Box>
|
|
256
254
|
</Box>
|
|
257
255
|
</Box>
|
|
258
|
-
</
|
|
256
|
+
</TouchableOpacity>
|
|
259
257
|
);
|
|
260
258
|
};
|
|
261
259
|
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* IMPORTS
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { TouchableOpacityProps } from "react-native";
|
|
5
5
|
|
|
6
6
|
// typing
|
|
7
7
|
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
8
|
|
|
9
|
-
interface ICardLoading extends
|
|
9
|
+
interface ICardLoading extends TouchableOpacityProps, IGlobalCss {
|
|
10
|
+
/**propriedade que indica o título do carregamento */
|
|
10
11
|
title?: string;
|
|
11
|
-
|
|
12
|
+
|
|
13
|
+
/**propriedade que indica o local do carregamento */
|
|
12
14
|
local?: string;
|
|
13
|
-
|
|
15
|
+
|
|
16
|
+
/**propriedade que indica o veiculo */
|
|
14
17
|
vehicle?: string;
|
|
15
|
-
|
|
18
|
+
|
|
19
|
+
/**propriedade que indica a previsão do carregamento */
|
|
16
20
|
prevision?: string;
|
|
17
|
-
|
|
21
|
+
|
|
22
|
+
/**propriedade que indica o peso do carregamento */
|
|
18
23
|
kg: number;
|
|
19
|
-
|
|
24
|
+
|
|
25
|
+
/**propriedade que indica a quantidade de bobinas do carregamento */
|
|
20
26
|
qtdCoils: number;
|
|
21
|
-
|
|
27
|
+
|
|
28
|
+
/**propriedade que indica o status do carregamento */
|
|
22
29
|
status?: string;
|
|
23
30
|
|
|
24
31
|
handleNavigation: () => void;
|
|
@@ -25,14 +25,18 @@ const CardWorkSession: React.FC<ICardWorkSession> = ({
|
|
|
25
25
|
initialTime = "11:40",
|
|
26
26
|
duration = "05:20",
|
|
27
27
|
avatar = "",
|
|
28
|
+
backgroundColor,
|
|
28
29
|
width,
|
|
29
30
|
}) => {
|
|
30
31
|
return (
|
|
31
32
|
<Box
|
|
32
33
|
width={width}
|
|
33
|
-
paddingStyle={{ padding:
|
|
34
|
-
borderStyled={{
|
|
35
|
-
|
|
34
|
+
paddingStyle={{ padding: theme.paddings.md }}
|
|
35
|
+
borderStyled={{
|
|
36
|
+
borderBottomWidth: theme.borderWidths.thin,
|
|
37
|
+
borderColor: theme.colors.neutral[200],
|
|
38
|
+
}}
|
|
39
|
+
backgroundColor={backgroundColor ?? theme.colors.neutral[25]}
|
|
36
40
|
style={{
|
|
37
41
|
position: "relative",
|
|
38
42
|
}}
|
|
@@ -46,7 +50,7 @@ const CardWorkSession: React.FC<ICardWorkSession> = ({
|
|
|
46
50
|
width: 50,
|
|
47
51
|
height: 50,
|
|
48
52
|
borderRadius: 25,
|
|
49
|
-
borderWidth:
|
|
53
|
+
borderWidth: theme.borderWidths.thin_medium,
|
|
50
54
|
borderColor: theme.colors.blue[500],
|
|
51
55
|
}}
|
|
52
56
|
source={{ uri: avatar || IMAGES.IMAGE_ANONIMA }}
|
|
@@ -73,6 +77,7 @@ const CardWorkSession: React.FC<ICardWorkSession> = ({
|
|
|
73
77
|
size={11}
|
|
74
78
|
color={theme.colors.black[100]}
|
|
75
79
|
fontFamily={theme.fonts.inter_bold_700}
|
|
80
|
+
letterSpacing={"regular"}
|
|
76
81
|
/>
|
|
77
82
|
|
|
78
83
|
<Typography
|
|
@@ -80,6 +85,7 @@ const CardWorkSession: React.FC<ICardWorkSession> = ({
|
|
|
80
85
|
size={11}
|
|
81
86
|
fontFamily={theme.fonts.inter_regular_400}
|
|
82
87
|
color={theme.colors.gray[800]}
|
|
88
|
+
letterSpacing={"regular"}
|
|
83
89
|
/>
|
|
84
90
|
</Box>
|
|
85
91
|
</Box>
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { TouchableOpacity } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import { Typography } from "../typography";
|
|
9
|
+
|
|
10
|
+
// commons icons-svg
|
|
11
|
+
import { Icons } from "../../common/icons-svg";
|
|
12
|
+
|
|
13
|
+
// typings
|
|
14
|
+
import { ICheckBoxProps } from "./interface";
|
|
15
|
+
|
|
16
|
+
// styles
|
|
17
|
+
import { Box } from "../box";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Componente CheckBox para a interação da ui.
|
|
21
|
+
*/
|
|
22
|
+
const CheckBox: React.FC<ICheckBoxProps> = ({
|
|
23
|
+
widthBoxCheckIcon,
|
|
24
|
+
heightWrapperTextLabel,
|
|
25
|
+
isChecked,
|
|
26
|
+
backgroundColorCheck,
|
|
27
|
+
backgroundBoxCheckIcon,
|
|
28
|
+
textLabel,
|
|
29
|
+
textSizeLabel,
|
|
30
|
+
colorTextLabel,
|
|
31
|
+
onPress,
|
|
32
|
+
...res
|
|
33
|
+
}: ICheckBoxProps) => {
|
|
34
|
+
return (
|
|
35
|
+
<TouchableOpacity testID="checkbox-button" onPress={onPress} {...res}>
|
|
36
|
+
{isChecked ? (
|
|
37
|
+
<Box
|
|
38
|
+
width={"100%"}
|
|
39
|
+
paddingStyle={{ paddingLeft: 16, paddingRight: 16 }}
|
|
40
|
+
flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "center" }}
|
|
41
|
+
>
|
|
42
|
+
<Box
|
|
43
|
+
testID="check-box-true"
|
|
44
|
+
width={widthBoxCheckIcon ? widthBoxCheckIcon : 30}
|
|
45
|
+
height={40}
|
|
46
|
+
backgroundColor={backgroundBoxCheckIcon ? backgroundBoxCheckIcon : "transparent"}
|
|
47
|
+
flexStyle={{
|
|
48
|
+
flexDirection: "column",
|
|
49
|
+
alignItems: "flex-start",
|
|
50
|
+
justifyContent: "flex-start",
|
|
51
|
+
}}
|
|
52
|
+
>
|
|
53
|
+
<Icons size={24} color={backgroundColorCheck} icon="CHECK_BOX_OUTLINE" />
|
|
54
|
+
</Box>
|
|
55
|
+
|
|
56
|
+
<Box
|
|
57
|
+
width={"100%"}
|
|
58
|
+
height={heightWrapperTextLabel ? heightWrapperTextLabel : 40}
|
|
59
|
+
backgroundColor="transparent"
|
|
60
|
+
flexStyle={{
|
|
61
|
+
flexDirection: "column",
|
|
62
|
+
alignItems: "flex-start",
|
|
63
|
+
justifyContent: "flex-start",
|
|
64
|
+
}}
|
|
65
|
+
>
|
|
66
|
+
{textLabel && (
|
|
67
|
+
<Typography
|
|
68
|
+
text={textLabel ? textLabel : "Label"}
|
|
69
|
+
color={colorTextLabel ? colorTextLabel : "white"}
|
|
70
|
+
size={textLabel ? textSizeLabel : 16}
|
|
71
|
+
lineHeight={18}
|
|
72
|
+
letterSpacing={"regular"}
|
|
73
|
+
/>
|
|
74
|
+
)}
|
|
75
|
+
</Box>
|
|
76
|
+
</Box>
|
|
77
|
+
) : (
|
|
78
|
+
<Box
|
|
79
|
+
width={"100%"}
|
|
80
|
+
paddingStyle={{ paddingLeft: 16, paddingRight: 16 }}
|
|
81
|
+
flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "center" }}
|
|
82
|
+
testID="check-box-falso"
|
|
83
|
+
>
|
|
84
|
+
<Box
|
|
85
|
+
width={widthBoxCheckIcon ? widthBoxCheckIcon : 30}
|
|
86
|
+
height={40}
|
|
87
|
+
backgroundColor={backgroundBoxCheckIcon ? backgroundBoxCheckIcon : "transparent"}
|
|
88
|
+
flexStyle={{
|
|
89
|
+
flexDirection: "column",
|
|
90
|
+
alignItems: "flex-start",
|
|
91
|
+
justifyContent: "flex-start",
|
|
92
|
+
}}
|
|
93
|
+
>
|
|
94
|
+
<Icons size={24} color={backgroundColorCheck} icon="CHECK_BOX_FILL" />
|
|
95
|
+
</Box>
|
|
96
|
+
|
|
97
|
+
<Box
|
|
98
|
+
width={"100%"}
|
|
99
|
+
height={heightWrapperTextLabel ? heightWrapperTextLabel : 40}
|
|
100
|
+
backgroundColor="transparent"
|
|
101
|
+
flexStyle={{
|
|
102
|
+
flexDirection: "column",
|
|
103
|
+
alignItems: "flex-start",
|
|
104
|
+
justifyContent: "flex-start",
|
|
105
|
+
}}
|
|
106
|
+
>
|
|
107
|
+
{textLabel && (
|
|
108
|
+
<Typography
|
|
109
|
+
text={textLabel ? textLabel : "Label"}
|
|
110
|
+
color={colorTextLabel ? colorTextLabel : "white"}
|
|
111
|
+
size={textLabel ? textSizeLabel : 16}
|
|
112
|
+
lineHeight={18}
|
|
113
|
+
letterSpacing={"regular"}
|
|
114
|
+
/>
|
|
115
|
+
)}
|
|
116
|
+
</Box>
|
|
117
|
+
</Box>
|
|
118
|
+
)}
|
|
119
|
+
</TouchableOpacity>
|
|
120
|
+
);
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* EXPORTS
|
|
124
|
+
*/
|
|
125
|
+
export { CheckBox };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { TouchableOpacityProps } from "react-native";
|
|
5
|
+
|
|
6
|
+
export interface ICheckBoxProps extends TouchableOpacityProps {
|
|
7
|
+
/**Propriedade do tamanho do box do icon-check-outline */
|
|
8
|
+
widthBoxCheckIcon?: number;
|
|
9
|
+
/**Propriedade da altura do wrapper do textLabel */
|
|
10
|
+
heightWrapperTextLabel?: number;
|
|
11
|
+
/**Propriedade para saber se o checkbox esta marcado */
|
|
12
|
+
isChecked: boolean;
|
|
13
|
+
/**Propriedade para mudar a cor do icon quando for marcado */
|
|
14
|
+
backgroundColorCheck?: string;
|
|
15
|
+
/**Propriedade para mudar a cor do icon quando for marcado */
|
|
16
|
+
backgroundBoxCheckIcon?: string;
|
|
17
|
+
/**Propriedade do textLabel */
|
|
18
|
+
textLabel?: string;
|
|
19
|
+
/**Propriedade do tamanho do textLabel */
|
|
20
|
+
textSizeLabel?: number;
|
|
21
|
+
/**Propriedade da cor do textLabel */
|
|
22
|
+
colorTextLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* EXPORTS
|
|
26
|
+
*/
|
|
27
|
+
export type { ICheckBoxProps };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { TouchableOpacity } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import { Box } from "../box";
|
|
9
|
+
import { Typography } from "../typography";
|
|
10
|
+
|
|
11
|
+
// icons
|
|
12
|
+
import { Icons } from "../../common/icons-svg";
|
|
13
|
+
|
|
14
|
+
// theme
|
|
15
|
+
import { theme } from "../../styles/theme/theme";
|
|
16
|
+
|
|
17
|
+
import { ICoil } from "./interface";
|
|
18
|
+
|
|
19
|
+
const Coil: React.FC<ICoil> = ({ description, handleNavigation, title, testID, status }) => {
|
|
20
|
+
return (
|
|
21
|
+
<TouchableOpacity activeOpacity={0.7} testID={testID} onPress={handleNavigation}>
|
|
22
|
+
<Box
|
|
23
|
+
width={"100%"}
|
|
24
|
+
flexStyle={{ flexDirection: "row", alignItems: "center" }}
|
|
25
|
+
height={70}
|
|
26
|
+
backgroundColor={theme.colors.blue[400]}
|
|
27
|
+
borderStyled={{
|
|
28
|
+
borderWidth: 1,
|
|
29
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
30
|
+
borderColor: theme.colors.blue[400],
|
|
31
|
+
}}
|
|
32
|
+
paddingStyle={{ padding: theme.paddings["2xs"] }}
|
|
33
|
+
marginStyle={{ marginBottom: theme.margins.md }}
|
|
34
|
+
style={{ elevation: 5 }}
|
|
35
|
+
>
|
|
36
|
+
<Box
|
|
37
|
+
width={"80%"}
|
|
38
|
+
height={70}
|
|
39
|
+
flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-start" }}
|
|
40
|
+
>
|
|
41
|
+
<Icons icon={"LIFEBUOY"} size={32} />
|
|
42
|
+
|
|
43
|
+
<Box
|
|
44
|
+
flexStyle={{ flexDirection: "column", flexWrap: "wrap" }}
|
|
45
|
+
marginStyle={{ marginLeft: 18 }}
|
|
46
|
+
>
|
|
47
|
+
<Typography
|
|
48
|
+
text={title}
|
|
49
|
+
size={theme.fontSizes["2xl"]}
|
|
50
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
51
|
+
color={theme.colors.neutral[25]}
|
|
52
|
+
letterSpacing={"regular"}
|
|
53
|
+
paddingTop={theme.paddings.md}
|
|
54
|
+
/>
|
|
55
|
+
<Typography
|
|
56
|
+
text={description}
|
|
57
|
+
size={theme.fontSizes["2xs"]}
|
|
58
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
59
|
+
color={theme.colors.neutral[25]}
|
|
60
|
+
letterSpacing={"regular"}
|
|
61
|
+
/>
|
|
62
|
+
</Box>
|
|
63
|
+
</Box>
|
|
64
|
+
|
|
65
|
+
<Box
|
|
66
|
+
width={"20%"}
|
|
67
|
+
flexStyle={{ flexDirection: "row", alignItems: "center", justifyContent: "flex-end" }}
|
|
68
|
+
height={70}
|
|
69
|
+
>
|
|
70
|
+
{status == "recused" && <Icons icon={"RECUSED"} size={32} />}
|
|
71
|
+
{status == "approved" && <Icons icon={"CHECK_CIRCLE"} size={32} />}
|
|
72
|
+
{status == "pending" && <Icons icon={"EXCLAMATION_CIRCLE"} size={32} />}
|
|
73
|
+
</Box>
|
|
74
|
+
</Box>
|
|
75
|
+
</TouchableOpacity>
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* EXPORTS
|
|
81
|
+
*/
|
|
82
|
+
export { Coil };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { ViewProps } from "react-native";
|
|
5
|
+
|
|
6
|
+
// typing
|
|
7
|
+
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
+
|
|
9
|
+
interface ICoil extends ViewProps, IGlobalCss {
|
|
10
|
+
/**propriedade que indica o título da bobina */
|
|
11
|
+
title: string;
|
|
12
|
+
|
|
13
|
+
/**propriedade que indica a descrição da bobina */
|
|
14
|
+
description: string;
|
|
15
|
+
|
|
16
|
+
/**propriedade que indica que levar para tela da bobina */
|
|
17
|
+
handleNavigation: () => void;
|
|
18
|
+
|
|
19
|
+
/**propriedade que indica status da bobina */
|
|
20
|
+
status: "recused" | "pending" | "approved";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* EXPORTS
|
|
25
|
+
*/
|
|
26
|
+
export { ICoil };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { TouchableOpacity, ActivityIndicator, FlatList } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import { Box } from "../box";
|
|
9
|
+
import { Typography } from "../typography";
|
|
10
|
+
|
|
11
|
+
// styles
|
|
12
|
+
import { theme } from "../../styles/theme/theme";
|
|
13
|
+
|
|
14
|
+
//typing
|
|
15
|
+
import { IFilterDateSelector, ISelectedDay } from "./interface";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* Componente FilterDateSelector para a interação do usuário com ui.
|
|
20
|
+
*/
|
|
21
|
+
const FilterDateSelector: React.FC<IFilterDateSelector> = ({
|
|
22
|
+
selectedDay,
|
|
23
|
+
handleSelectedDay,
|
|
24
|
+
days,
|
|
25
|
+
isLoading,
|
|
26
|
+
testID,
|
|
27
|
+
}) => {
|
|
28
|
+
const renderDayBlock = ({ item: day, index }: { item: ISelectedDay; index: number }) => {
|
|
29
|
+
const isSelected = selectedDay && selectedDay.date === day.date;
|
|
30
|
+
return (
|
|
31
|
+
<TouchableOpacity
|
|
32
|
+
disabled={isSelected}
|
|
33
|
+
key={index}
|
|
34
|
+
activeOpacity={0.7}
|
|
35
|
+
onPress={() => handleSelectedDay(day)}
|
|
36
|
+
>
|
|
37
|
+
<Box
|
|
38
|
+
testID={testID}
|
|
39
|
+
width={60}
|
|
40
|
+
height={75}
|
|
41
|
+
flexStyle={{ alignItems: "center", justifyContent: "center" }}
|
|
42
|
+
backgroundColor={isSelected ? theme.colors.blue[400] : theme.colors.gray[350]}
|
|
43
|
+
borderStyled={{
|
|
44
|
+
borderRadius: theme.borderWidths.thick_large,
|
|
45
|
+
borderColor: isSelected ? theme.colors.blue[400] : theme.colors.gray[350],
|
|
46
|
+
borderWidth: theme.borderWidths.thin,
|
|
47
|
+
}}
|
|
48
|
+
marginStyle={{ marginRight: theme.margins["2xs"] }}
|
|
49
|
+
>
|
|
50
|
+
{isSelected && isLoading ? (
|
|
51
|
+
<ActivityIndicator size="small" color="white" />
|
|
52
|
+
) : (
|
|
53
|
+
<>
|
|
54
|
+
<Typography
|
|
55
|
+
text={day.date.toString().padStart(2, "0")}
|
|
56
|
+
size={theme.fontSizes.lg}
|
|
57
|
+
color={theme.colors.neutral[25]}
|
|
58
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
59
|
+
/>
|
|
60
|
+
<Typography
|
|
61
|
+
text={day.dayName.slice(0, 3)}
|
|
62
|
+
size={theme.fontSizes.lg}
|
|
63
|
+
color={theme.colors.neutral[25]}
|
|
64
|
+
fontFamily={theme.fonts.inter_bold_700}
|
|
65
|
+
letterSpacing="o_16"
|
|
66
|
+
/>
|
|
67
|
+
</>
|
|
68
|
+
)}
|
|
69
|
+
</Box>
|
|
70
|
+
</TouchableOpacity>
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
const daySorted = days.sort(
|
|
74
|
+
(a, b) => new Date(b.fullDate).getTime() - new Date(a.fullDate).getTime()
|
|
75
|
+
);
|
|
76
|
+
return (
|
|
77
|
+
<FlatList
|
|
78
|
+
horizontal
|
|
79
|
+
data={daySorted}
|
|
80
|
+
showsHorizontalScrollIndicator={false}
|
|
81
|
+
renderItem={renderDayBlock}
|
|
82
|
+
/>
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* EXPORTS
|
|
88
|
+
*/
|
|
89
|
+
export { FilterDateSelector };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { TouchableOpacityProps } from "react-native";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* INTERFACE
|
|
8
|
+
*/
|
|
9
|
+
import { IGlobalCss } from "../../styles/global/interface";
|
|
10
|
+
|
|
11
|
+
interface ISelectedDay {
|
|
12
|
+
date: string | number;
|
|
13
|
+
dayName: string;
|
|
14
|
+
fullDate: Date;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface IFilterDateSelector extends TouchableOpacityProps, IGlobalCss {
|
|
18
|
+
/**
|
|
19
|
+
* prop que mostra o dia selecionado
|
|
20
|
+
*/
|
|
21
|
+
selectedDay: ISelectedDay;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* função que seleciona a data
|
|
25
|
+
*/
|
|
26
|
+
// eslint-disable-next-line no-unused-vars
|
|
27
|
+
handleSelectedDay: (date: ISelectedDay) => {};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* * Retorna as sete últimas datas dos dias
|
|
31
|
+
*/
|
|
32
|
+
days: ISelectedDay[];
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Retorna o loading do componente
|
|
36
|
+
*/
|
|
37
|
+
isLoading: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* EXPORTS
|
|
42
|
+
*/
|
|
43
|
+
export type { IFilterDateSelector, ISelectedDay };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { FlatList } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import { Button } from "../button";
|
|
9
|
+
|
|
10
|
+
// typing
|
|
11
|
+
import { IFilterJourneyProps } from "./interface";
|
|
12
|
+
|
|
13
|
+
// styles
|
|
14
|
+
import { theme } from "../../styles/theme/theme";
|
|
15
|
+
|
|
16
|
+
const FilterJourney: React.FC<IFilterJourneyProps> = ({
|
|
17
|
+
filters,
|
|
18
|
+
handleFilterSelect,
|
|
19
|
+
selectedFilter,
|
|
20
|
+
isLoading,
|
|
21
|
+
}) => {
|
|
22
|
+
return (
|
|
23
|
+
<FlatList
|
|
24
|
+
horizontal
|
|
25
|
+
data={filters}
|
|
26
|
+
showsHorizontalScrollIndicator={false}
|
|
27
|
+
renderItem={({ item }) => (
|
|
28
|
+
<Button
|
|
29
|
+
isLoading={isLoading || false}
|
|
30
|
+
disabled={isLoading}
|
|
31
|
+
paddingStyle={{ paddingLeft: theme.paddings.sm, paddingRight: theme.paddings.sm }}
|
|
32
|
+
onPress={() => handleFilterSelect(item.descricao)}
|
|
33
|
+
title={item.descricao}
|
|
34
|
+
flexStyle={{ textAlign: "center", alignItems: "center", justifyContent: "center" }}
|
|
35
|
+
marginStyle={{ marginRight: theme.margins["2xs"] }}
|
|
36
|
+
borderStyled={{
|
|
37
|
+
borderWidth: theme.borderWidths.thin,
|
|
38
|
+
borderColor:
|
|
39
|
+
selectedFilter === item.descricao ? theme.colors.blue[400] : theme.colors.gray[800],
|
|
40
|
+
borderRadius: theme.borderWidths.thick_bold,
|
|
41
|
+
}}
|
|
42
|
+
backgroundColor={
|
|
43
|
+
selectedFilter === item.descricao ? theme.colors.blue[400] : theme.colors.neutral[25]
|
|
44
|
+
}
|
|
45
|
+
buttonTextStyle={{
|
|
46
|
+
color:
|
|
47
|
+
selectedFilter === item.descricao ? theme.colors.neutral[25] : theme.colors.gray[800],
|
|
48
|
+
fontFamily: theme.fonts.inter_semi_bold_600,
|
|
49
|
+
fontSize: theme.fontSizes.sm,
|
|
50
|
+
}}
|
|
51
|
+
/>
|
|
52
|
+
)}
|
|
53
|
+
/>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* EXPORTS
|
|
59
|
+
*/
|
|
60
|
+
export { FilterJourney };
|