react-native-exp-fig 0.1.6 → 0.1.8
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/LICENSE +20 -20
- package/lib/commonjs/common/icons-svg/check-box/index.js +45 -0
- package/lib/commonjs/common/icons-svg/check-box/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/constants/index.js +5 -4
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/index.js +14 -5
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/components/card-history/index.js +7 -7
- package/lib/commonjs/components/card-work-session/index.js +4 -4
- package/lib/commonjs/components/check-box/index.js +9 -9
- package/lib/commonjs/components/check-box/index.js.map +1 -1
- package/lib/commonjs/components/coil/index.js +16 -14
- package/lib/commonjs/components/coil/index.js.map +1 -1
- package/lib/commonjs/components/header-profile/index.js +7 -6
- package/lib/commonjs/components/header-profile/index.js.map +1 -1
- package/lib/commonjs/components/input/index.js +7 -7
- package/lib/commonjs/components/notification-loading/index.js +4 -4
- package/lib/commonjs/index.js +0 -7
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/coil/coil.stories.js +11 -3
- package/lib/commonjs/stories/coil/coil.stories.js.map +1 -1
- package/lib/commonjs/stories/header-profile/header-profile.stories.js +17 -1
- package/lib/commonjs/stories/header-profile/header-profile.stories.js.map +1 -1
- package/lib/module/common/icons-svg/check-box/index.js +37 -0
- package/lib/module/common/icons-svg/check-box/index.js.map +1 -0
- package/lib/module/common/icons-svg/constants/index.js +5 -4
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/index.js +14 -5
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/components/card-history/index.js +7 -7
- package/lib/module/components/card-work-session/index.js +4 -4
- package/lib/module/components/check-box/index.js +9 -9
- package/lib/module/components/check-box/index.js.map +1 -1
- package/lib/module/components/coil/index.js +16 -14
- package/lib/module/components/coil/index.js.map +1 -1
- package/lib/module/components/header-profile/index.js +7 -6
- package/lib/module/components/header-profile/index.js.map +1 -1
- package/lib/module/components/input/index.js +7 -7
- package/lib/module/components/notification-loading/index.js +4 -4
- package/lib/module/index.js +0 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/coil/coil.stories.js +10 -2
- package/lib/module/stories/coil/coil.stories.js.map +1 -1
- package/lib/module/stories/header-profile/header-profile.stories.js +16 -0
- package/lib/module/stories/header-profile/header-profile.stories.js.map +1 -1
- package/lib/typescript/commonjs/src/common/constants/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/common/icons-svg/arrow-drop-down/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/common/icons-svg/arrow-left/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/bell/index.d.ts +7 -7
- package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/bluetooth-connected/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/calendar/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/call-bell/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/camera-plus/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/chart-bar/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/check-box/index.d.ts +14 -0
- package/lib/typescript/commonjs/src/common/icons-svg/check-box/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/check-box-fill/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/common/icons-svg/check-box-outline/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/common/icons-svg/check-circle/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/closed/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +52 -51
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/credit-card/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/common/icons-svg/currency/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/currency-circle-dollar/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/ellipse/index.d.ts +4 -4
- package/lib/typescript/commonjs/src/common/icons-svg/exclamation-circle/index.d.ts +7 -7
- package/lib/typescript/commonjs/src/common/icons-svg/eye/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/eye-slash/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/file-text/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/common/icons-svg/files/index.d.ts +7 -7
- package/lib/typescript/commonjs/src/common/icons-svg/gas-pump/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/gauge/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/gear/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts +11 -11
- 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 +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/list/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/moon-stars/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/note-pincel/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/package/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/package-check/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/common/icons-svg/plus/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/recused/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/shopping-cart/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/common/icons-svg/steering-wheel/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/steering-wheel-fill/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/timer/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/trophy/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/truck/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/common/icons-svg/truck-trailer/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/wifi-high/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/wifi-x/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/common/icons-svg/x-circle/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/components/box/index.d.ts +9 -9
- package/lib/typescript/commonjs/src/components/box/styles.d.ts +12 -12
- package/lib/typescript/commonjs/src/components/box/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/button/index.d.ts +9 -9
- package/lib/typescript/commonjs/src/components/button/styles.d.ts +23 -23
- package/lib/typescript/commonjs/src/components/button/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/capture-photo/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/components/capture-photo/styles.d.ts +11 -11
- package/lib/typescript/commonjs/src/components/capture-photo/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/card-history/index.d.ts +14 -14
- package/lib/typescript/commonjs/src/components/card-hours/index.d.ts +9 -9
- package/lib/typescript/commonjs/src/components/card-loading/index.d.ts +14 -14
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/interface.d.ts +32 -32
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/styles.d.ts +11 -11
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/card-work-session/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/components/check-box/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/components/coil/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/components/coil/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/filter-date-selector/index.d.ts +14 -14
- package/lib/typescript/commonjs/src/components/filter-journey/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/components/header-profile/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/components/header-profile/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/image-capture-with-remove/index.d.ts +14 -14
- package/lib/typescript/commonjs/src/components/input/index.d.ts +14 -14
- package/lib/typescript/commonjs/src/components/input/styles.d.ts +11 -11
- package/lib/typescript/commonjs/src/components/input/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/loading-details/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/components/loading-progress/index.d.ts +14 -14
- package/lib/typescript/commonjs/src/components/menu-item/index.d.ts +14 -14
- package/lib/typescript/commonjs/src/components/no-data/index.d.ts +7 -7
- package/lib/typescript/commonjs/src/components/notification-loading/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/components/scheduled-journey-indicators/index.d.ts +10 -10
- package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts +63 -63
- package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/step-indicator/helpers/get-icon-by-status.d.ts +14 -14
- package/lib/typescript/commonjs/src/components/step-indicator/helpers/get-icon-by-status.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/step-indicator/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/components/step-indicator/styles.d.ts +56 -56
- package/lib/typescript/commonjs/src/components/step-indicator/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/typography/index.d.ts +13 -13
- package/lib/typescript/commonjs/src/components/typography/styles.d.ts +29 -29
- package/lib/typescript/commonjs/src/components/typography/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/user-profile/index.d.ts +14 -14
- package/lib/typescript/commonjs/src/index.d.ts +31 -33
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/box/box.stories.d.ts +8 -8
- 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 +10 -10
- package/lib/typescript/commonjs/src/stories/button/button.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/capture-photo/capture-photo.stories.d.ts +9 -9
- package/lib/typescript/commonjs/src/stories/capture-photo/capture-photo.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/card-history/card-history.stories.d.ts +6 -6
- package/lib/typescript/commonjs/src/stories/card-history/card-history.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/card-hours/card-hours.stories.d.ts +7 -7
- package/lib/typescript/commonjs/src/stories/card-hours/card-hours.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/card-loading/card-loading.stories.d.ts +8 -8
- package/lib/typescript/commonjs/src/stories/card-loading/card-loading.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/card-scheduled-journey/card-scheduled-journey.stories.d.ts +10 -10
- package/lib/typescript/commonjs/src/stories/card-scheduled-journey/card-scheduled-journey.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/card-work-session/card-work-session.stories.d.ts +6 -6
- package/lib/typescript/commonjs/src/stories/card-work-session/card-work-session.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/check-box/check-box.stories.d.ts +9 -9
- package/lib/typescript/commonjs/src/stories/check-box/check-box.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/coil/coil.stories.d.ts +9 -8
- package/lib/typescript/commonjs/src/stories/coil/coil.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/filter-date-selector/filter-date-selector.stories.d.ts +6 -6
- package/lib/typescript/commonjs/src/stories/filter-date-selector/filter-date-selector.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/filter-journey/filter-journey.stories.d.ts +6 -6
- package/lib/typescript/commonjs/src/stories/filter-journey/filter-journey.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/header-profile/header-profile.stories.d.ts +10 -9
- package/lib/typescript/commonjs/src/stories/header-profile/header-profile.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/image-capture-with-remove/image-capture-with-remove.stories.d.ts +7 -7
- package/lib/typescript/commonjs/src/stories/image-capture-with-remove/image-capture-with-remove.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/input/input.stories.d.ts +14 -14
- 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 +6 -6
- package/lib/typescript/commonjs/src/stories/loading-details/loading-details.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/loading-progress/loading-progress.stories.d.ts +6 -6
- package/lib/typescript/commonjs/src/stories/loading-progress/loading-progress.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/menu-item/menu-item.stories.d.ts +8 -8
- package/lib/typescript/commonjs/src/stories/menu-item/menu-item.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/no-data/no-data.stories.d.ts +6 -6
- package/lib/typescript/commonjs/src/stories/no-data/no-data.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/notification-loading/notification-loading.stories.d.ts +8 -8
- package/lib/typescript/commonjs/src/stories/notification-loading/notification-loading.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/scheduled-journey-indicators/sheduled-journey-indicators.stories.d.ts +9 -9
- package/lib/typescript/commonjs/src/stories/scheduled-journey-indicators/sheduled-journey-indicators.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/select-option/select-option.stories.d.ts +6 -6
- package/lib/typescript/commonjs/src/stories/select-option/select-option.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/step-indicator/step-indicator.stories.d.ts +7 -7
- package/lib/typescript/commonjs/src/stories/step-indicator/step-indicator.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/typography/typography.stories.d.ts +15 -15
- package/lib/typescript/commonjs/src/stories/typography/typography.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/user-profile/user-profile.stories.d.ts +7 -7
- package/lib/typescript/commonjs/src/stories/user-profile/user-profile.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/global/styles.d.ts +46 -46
- package/lib/typescript/commonjs/src/styles/global/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +148 -148
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +150 -150
- package/lib/typescript/commonjs/src/utils/format-data/index.d.ts +17 -17
- package/lib/typescript/commonjs/src/utils/format-data/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/mutiply/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/status-color/return-color.d.ts +3 -3
- package/lib/typescript/commonjs/src/utils/status-color/return-color.d.ts.map +1 -1
- package/lib/typescript/module/src/common/constants/index.d.ts +4 -4
- package/lib/typescript/module/src/common/icons-svg/arrow-drop-down/index.d.ts +13 -13
- package/lib/typescript/module/src/common/icons-svg/arrow-left/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/bell/index.d.ts +7 -7
- package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/bluetooth-connected/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/calendar/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/call-bell/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/camera-plus/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/chart-bar/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/check-box/index.d.ts +14 -0
- package/lib/typescript/module/src/common/icons-svg/check-box/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/check-box-fill/index.d.ts +13 -13
- package/lib/typescript/module/src/common/icons-svg/check-box-outline/index.d.ts +13 -13
- package/lib/typescript/module/src/common/icons-svg/check-circle/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/closed/index.d.ts +13 -13
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +52 -51
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/credit-card/index.d.ts +13 -13
- package/lib/typescript/module/src/common/icons-svg/currency/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/currency-circle-dollar/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/ellipse/index.d.ts +4 -4
- package/lib/typescript/module/src/common/icons-svg/exclamation-circle/index.d.ts +7 -7
- package/lib/typescript/module/src/common/icons-svg/eye/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/eye-slash/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/file-text/index.d.ts +13 -13
- package/lib/typescript/module/src/common/icons-svg/files/index.d.ts +7 -7
- package/lib/typescript/module/src/common/icons-svg/gas-pump/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/gauge/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/gear/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/index.d.ts +11 -11
- 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 +10 -10
- package/lib/typescript/module/src/common/icons-svg/list/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/moon-stars/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/note-pincel/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/package/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/package-check/index.d.ts +13 -13
- package/lib/typescript/module/src/common/icons-svg/plus/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/recused/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/shopping-cart/index.d.ts +13 -13
- package/lib/typescript/module/src/common/icons-svg/steering-wheel/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/steering-wheel-fill/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/timer/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/trophy/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/truck/index.d.ts +13 -13
- package/lib/typescript/module/src/common/icons-svg/truck-trailer/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/wifi-high/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/wifi-x/index.d.ts +10 -10
- package/lib/typescript/module/src/common/icons-svg/x-circle/index.d.ts +13 -13
- package/lib/typescript/module/src/components/box/index.d.ts +9 -9
- package/lib/typescript/module/src/components/box/styles.d.ts +12 -12
- package/lib/typescript/module/src/components/box/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/button/index.d.ts +9 -9
- package/lib/typescript/module/src/components/button/styles.d.ts +23 -23
- package/lib/typescript/module/src/components/button/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/capture-photo/index.d.ts +13 -13
- package/lib/typescript/module/src/components/capture-photo/styles.d.ts +11 -11
- package/lib/typescript/module/src/components/capture-photo/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/card-history/index.d.ts +14 -14
- package/lib/typescript/module/src/components/card-hours/index.d.ts +9 -9
- package/lib/typescript/module/src/components/card-loading/index.d.ts +14 -14
- package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +13 -13
- package/lib/typescript/module/src/components/card-scheduled-journey/interface.d.ts +32 -32
- package/lib/typescript/module/src/components/card-scheduled-journey/styles.d.ts +11 -11
- package/lib/typescript/module/src/components/card-scheduled-journey/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/card-work-session/index.d.ts +10 -10
- package/lib/typescript/module/src/components/check-box/index.d.ts +13 -13
- package/lib/typescript/module/src/components/coil/index.d.ts +10 -10
- package/lib/typescript/module/src/components/coil/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/filter-date-selector/index.d.ts +14 -14
- package/lib/typescript/module/src/components/filter-journey/index.d.ts +10 -10
- package/lib/typescript/module/src/components/header-profile/index.d.ts +13 -13
- package/lib/typescript/module/src/components/header-profile/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/image-capture-with-remove/index.d.ts +14 -14
- package/lib/typescript/module/src/components/input/index.d.ts +14 -14
- package/lib/typescript/module/src/components/input/styles.d.ts +11 -11
- package/lib/typescript/module/src/components/input/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/loading-details/index.d.ts +10 -10
- package/lib/typescript/module/src/components/loading-progress/index.d.ts +14 -14
- package/lib/typescript/module/src/components/menu-item/index.d.ts +14 -14
- package/lib/typescript/module/src/components/no-data/index.d.ts +7 -7
- package/lib/typescript/module/src/components/notification-loading/index.d.ts +10 -10
- package/lib/typescript/module/src/components/scheduled-journey-indicators/index.d.ts +10 -10
- package/lib/typescript/module/src/components/selects/select-option/index.d.ts +13 -13
- package/lib/typescript/module/src/components/selects/select-option/styles.d.ts +63 -63
- package/lib/typescript/module/src/components/selects/select-option/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/step-indicator/helpers/get-icon-by-status.d.ts +14 -14
- package/lib/typescript/module/src/components/step-indicator/helpers/get-icon-by-status.d.ts.map +1 -1
- package/lib/typescript/module/src/components/step-indicator/index.d.ts +13 -13
- package/lib/typescript/module/src/components/step-indicator/styles.d.ts +56 -56
- package/lib/typescript/module/src/components/step-indicator/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/typography/index.d.ts +13 -13
- package/lib/typescript/module/src/components/typography/styles.d.ts +29 -29
- package/lib/typescript/module/src/components/typography/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/user-profile/index.d.ts +14 -14
- package/lib/typescript/module/src/index.d.ts +31 -33
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/box/box.stories.d.ts +8 -8
- 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 +10 -10
- package/lib/typescript/module/src/stories/button/button.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/capture-photo/capture-photo.stories.d.ts +9 -9
- package/lib/typescript/module/src/stories/capture-photo/capture-photo.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/card-history/card-history.stories.d.ts +6 -6
- package/lib/typescript/module/src/stories/card-history/card-history.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/card-hours/card-hours.stories.d.ts +7 -7
- package/lib/typescript/module/src/stories/card-hours/card-hours.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/card-loading/card-loading.stories.d.ts +8 -8
- package/lib/typescript/module/src/stories/card-loading/card-loading.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/card-scheduled-journey/card-scheduled-journey.stories.d.ts +10 -10
- package/lib/typescript/module/src/stories/card-scheduled-journey/card-scheduled-journey.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/card-work-session/card-work-session.stories.d.ts +6 -6
- package/lib/typescript/module/src/stories/card-work-session/card-work-session.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/check-box/check-box.stories.d.ts +9 -9
- package/lib/typescript/module/src/stories/check-box/check-box.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/coil/coil.stories.d.ts +9 -8
- package/lib/typescript/module/src/stories/coil/coil.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/filter-date-selector/filter-date-selector.stories.d.ts +6 -6
- package/lib/typescript/module/src/stories/filter-date-selector/filter-date-selector.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/filter-journey/filter-journey.stories.d.ts +6 -6
- package/lib/typescript/module/src/stories/filter-journey/filter-journey.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/header-profile/header-profile.stories.d.ts +10 -9
- package/lib/typescript/module/src/stories/header-profile/header-profile.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/image-capture-with-remove/image-capture-with-remove.stories.d.ts +7 -7
- package/lib/typescript/module/src/stories/image-capture-with-remove/image-capture-with-remove.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/input/input.stories.d.ts +14 -14
- 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 +6 -6
- package/lib/typescript/module/src/stories/loading-details/loading-details.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/loading-progress/loading-progress.stories.d.ts +6 -6
- package/lib/typescript/module/src/stories/loading-progress/loading-progress.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/menu-item/menu-item.stories.d.ts +8 -8
- package/lib/typescript/module/src/stories/menu-item/menu-item.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/no-data/no-data.stories.d.ts +6 -6
- package/lib/typescript/module/src/stories/no-data/no-data.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/notification-loading/notification-loading.stories.d.ts +8 -8
- package/lib/typescript/module/src/stories/notification-loading/notification-loading.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/scheduled-journey-indicators/sheduled-journey-indicators.stories.d.ts +9 -9
- package/lib/typescript/module/src/stories/scheduled-journey-indicators/sheduled-journey-indicators.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/select-option/select-option.stories.d.ts +6 -6
- package/lib/typescript/module/src/stories/select-option/select-option.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/step-indicator/step-indicator.stories.d.ts +7 -7
- package/lib/typescript/module/src/stories/step-indicator/step-indicator.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/typography/typography.stories.d.ts +15 -15
- package/lib/typescript/module/src/stories/typography/typography.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/user-profile/user-profile.stories.d.ts +7 -7
- package/lib/typescript/module/src/stories/user-profile/user-profile.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/global/styles.d.ts +46 -46
- package/lib/typescript/module/src/styles/global/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts +148 -148
- package/lib/typescript/module/src/styles/theme/theme.d.ts +150 -150
- package/lib/typescript/module/src/utils/format-data/index.d.ts +17 -17
- package/lib/typescript/module/src/utils/format-data/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/mutiply/index.d.ts +1 -1
- package/lib/typescript/module/src/utils/status-color/return-color.d.ts +3 -3
- package/lib/typescript/module/src/utils/status-color/return-color.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/common/icons-svg/check-box/index.tsx +28 -0
- package/src/common/icons-svg/constants/index.ts +55 -54
- package/src/common/icons-svg/index.tsx +203 -199
- package/src/components/card-history/index.tsx +150 -150
- package/src/components/card-work-session/index.tsx +161 -161
- package/src/components/card-work-session/interface.d.ts +48 -48
- package/src/components/check-box/index.tsx +125 -125
- package/src/components/coil/index.tsx +90 -82
- package/src/components/coil/interface.d.ts +26 -26
- package/src/components/header-profile/index.tsx +7 -6
- package/src/components/header-profile/interface.d.ts +57 -57
- package/src/components/input/index.tsx +181 -181
- package/src/components/notification-loading/index.tsx +144 -144
- package/src/index.ts +0 -2
- package/src/stories/coil/coil.stories.tsx +74 -64
- package/src/stories/header-profile/header-profile.stories.tsx +15 -0
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import { ViewProps } from "react-native";
|
|
5
|
-
|
|
6
|
-
// typing
|
|
7
|
-
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
-
|
|
9
|
-
interface IHeaderProps extends ViewProps, IGlobalCss {
|
|
10
|
-
title: string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* TestID para testes automático e identificação
|
|
14
|
-
*/
|
|
15
|
-
testID?: string;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* prop de navegação
|
|
19
|
-
*/
|
|
20
|
-
propsNav?: any;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* arrow para coloca o ícone da flecha ou lista
|
|
24
|
-
*/
|
|
25
|
-
arrow: boolean;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* permission boolean
|
|
29
|
-
*/
|
|
30
|
-
permission: boolean;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* isInternetReachable boolean que consta se está conectado a internet
|
|
34
|
-
*/
|
|
35
|
-
isInternetReachable: boolean;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* verifica se o bluetooth esta conectado
|
|
39
|
-
*/
|
|
40
|
-
bluetoothIsConnected: boolean;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* direciona para navegação correspondente
|
|
44
|
-
*/
|
|
45
|
-
// eslint-disable-next-line no-unused-vars
|
|
46
|
-
handleNavigation: (propsNav: any) => void;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* verifica se precisa do bluetooth na aplicação
|
|
50
|
-
*/
|
|
51
|
-
isBluetooth: boolean;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* EXPORTS
|
|
56
|
-
*/
|
|
57
|
-
export type { IHeaderProps };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { ViewProps } from "react-native";
|
|
5
|
+
|
|
6
|
+
// typing
|
|
7
|
+
import { IGlobalCss } from "../../styles/global/interface";
|
|
8
|
+
|
|
9
|
+
interface IHeaderProps extends ViewProps, IGlobalCss {
|
|
10
|
+
title: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* TestID para testes automático e identificação
|
|
14
|
+
*/
|
|
15
|
+
testID?: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* prop de navegação
|
|
19
|
+
*/
|
|
20
|
+
propsNav?: any;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* arrow para coloca o ícone da flecha ou lista
|
|
24
|
+
*/
|
|
25
|
+
arrow: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* permission boolean
|
|
29
|
+
*/
|
|
30
|
+
permission: boolean;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* isInternetReachable boolean que consta se está conectado a internet
|
|
34
|
+
*/
|
|
35
|
+
isInternetReachable: boolean;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* verifica se o bluetooth esta conectado
|
|
39
|
+
*/
|
|
40
|
+
bluetoothIsConnected: boolean;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* direciona para navegação correspondente
|
|
44
|
+
*/
|
|
45
|
+
// eslint-disable-next-line no-unused-vars
|
|
46
|
+
handleNavigation: (propsNav: any) => void;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* verifica se precisa do bluetooth na aplicação
|
|
50
|
+
*/
|
|
51
|
+
isBluetooth: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* EXPORTS
|
|
56
|
+
*/
|
|
57
|
+
export type { IHeaderProps };
|
|
@@ -1,181 +1,181 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React from "react";
|
|
5
|
-
import { Dimensions, TextInput, TouchableOpacity, ViewStyle } from "react-native";
|
|
6
|
-
|
|
7
|
-
// components
|
|
8
|
-
import { Box } from "../box";
|
|
9
|
-
import { Typography } from "../typography";
|
|
10
|
-
import { Icons } from "../../common/icons-svg";
|
|
11
|
-
|
|
12
|
-
// typings
|
|
13
|
-
import { type IInputProps } from "./interface";
|
|
14
|
-
|
|
15
|
-
// styles
|
|
16
|
-
import { theme } from "../../styles/theme/theme";
|
|
17
|
-
import { styles } from "./styles";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* Componente Input para a interação do usuário com ui.
|
|
22
|
-
*/
|
|
23
|
-
const Input: React.FC<IInputProps> = ({
|
|
24
|
-
name,
|
|
25
|
-
textLabel,
|
|
26
|
-
messageError,
|
|
27
|
-
width,
|
|
28
|
-
backgroundColor,
|
|
29
|
-
marginStyle,
|
|
30
|
-
paddingStyle,
|
|
31
|
-
borderStyled,
|
|
32
|
-
isVisiblyPassword, // password
|
|
33
|
-
testID,
|
|
34
|
-
opacity,
|
|
35
|
-
children,
|
|
36
|
-
fontStyle,
|
|
37
|
-
style,
|
|
38
|
-
flexStyle,
|
|
39
|
-
handlePressIsVisiblyPassword, // password
|
|
40
|
-
append,
|
|
41
|
-
color,
|
|
42
|
-
placeholder,
|
|
43
|
-
textLabelPlaceholder,
|
|
44
|
-
secureTextEntry,
|
|
45
|
-
...props
|
|
46
|
-
}) => {
|
|
47
|
-
const styleProps = {
|
|
48
|
-
width,
|
|
49
|
-
backgroundColor,
|
|
50
|
-
borderStyled,
|
|
51
|
-
flexStyle,
|
|
52
|
-
paddingStyle,
|
|
53
|
-
marginStyle,
|
|
54
|
-
testID,
|
|
55
|
-
opacity,
|
|
56
|
-
children,
|
|
57
|
-
fontStyle,
|
|
58
|
-
color,
|
|
59
|
-
style,
|
|
60
|
-
name,
|
|
61
|
-
} as IInputProps;
|
|
62
|
-
|
|
63
|
-
const { width: widthScreen } = Dimensions.get("window");
|
|
64
|
-
const isMobile = widthScreen < 768;
|
|
65
|
-
|
|
66
|
-
const positionIcon: ViewStyle = {
|
|
67
|
-
position: "absolute",
|
|
68
|
-
right: 15,
|
|
69
|
-
top: isMobile ? 65 : 40,
|
|
70
|
-
};
|
|
71
|
-
const positionIconPassword: ViewStyle = {
|
|
72
|
-
position: "absolute",
|
|
73
|
-
right: isMobile ? 5 : 32,
|
|
74
|
-
top: isMobile ? 65 : 38,
|
|
75
|
-
};
|
|
76
|
-
const positionLabel: ViewStyle = { position: "absolute", right: 35, top: 65 };
|
|
77
|
-
|
|
78
|
-
return (
|
|
79
|
-
<Box paddingStyle={paddingStyle} marginStyle={marginStyle} style={{ position: "relative" }}>
|
|
80
|
-
<Box>
|
|
81
|
-
<Typography
|
|
82
|
-
size={theme.fontSizes.md}
|
|
83
|
-
text={String(textLabel)}
|
|
84
|
-
color={color?.colorText ?? theme.colors.gray[900]}
|
|
85
|
-
/>
|
|
86
|
-
|
|
87
|
-
<TextInput
|
|
88
|
-
// @ts-ignore
|
|
89
|
-
style={[styles(styleProps).input, { backgroundColor }, style]}
|
|
90
|
-
placeholder={placeholder}
|
|
91
|
-
secureTextEntry={secureTextEntry}
|
|
92
|
-
color={theme.colors.gray[900]}
|
|
93
|
-
{...props}
|
|
94
|
-
/>
|
|
95
|
-
</Box>
|
|
96
|
-
{append && (
|
|
97
|
-
<Box>
|
|
98
|
-
<Typography
|
|
99
|
-
size={theme.fontSizes["lg"]}
|
|
100
|
-
text={append.appendText ?? ""}
|
|
101
|
-
color={append.appendColor ?? "#000"}
|
|
102
|
-
/>
|
|
103
|
-
</Box>
|
|
104
|
-
)}
|
|
105
|
-
|
|
106
|
-
{name === "label" && (
|
|
107
|
-
<Box backgroundColor={"transparent"} style={positionLabel}>
|
|
108
|
-
<Typography
|
|
109
|
-
text={textLabelPlaceholder ?? ""}
|
|
110
|
-
size={theme.fontSizes["sm"]}
|
|
111
|
-
fontWeight="400"
|
|
112
|
-
fontFamily={theme.fonts.inter_regular_400}
|
|
113
|
-
color={theme.colors.blue[500]}
|
|
114
|
-
lineHeight={24}
|
|
115
|
-
letterSpacing={"regular"}
|
|
116
|
-
/>
|
|
117
|
-
</Box>
|
|
118
|
-
)}
|
|
119
|
-
|
|
120
|
-
{name === "password" ||
|
|
121
|
-
(name === "senha" && (
|
|
122
|
-
<Box backgroundColor={"transparent"} style={positionIconPassword}>
|
|
123
|
-
<TouchableOpacity
|
|
124
|
-
activeOpacity={0.7}
|
|
125
|
-
testID="eye-icon"
|
|
126
|
-
onPress={handlePressIsVisiblyPassword}
|
|
127
|
-
>
|
|
128
|
-
<Icons
|
|
129
|
-
size={theme.fontSizes["3xl"]}
|
|
130
|
-
color={theme.colors.blue[500]}
|
|
131
|
-
icon={isVisiblyPassword ? "EYE" : "EYE_SLASH"}
|
|
132
|
-
/>
|
|
133
|
-
</TouchableOpacity>
|
|
134
|
-
</Box>
|
|
135
|
-
))}
|
|
136
|
-
{name === "data" && (
|
|
137
|
-
<Box width={40} height={70} backgroundColor={"transparent"} style={positionIcon}>
|
|
138
|
-
<Icons
|
|
139
|
-
testID="CALENDAR"
|
|
140
|
-
size={theme.fontSizes["lg"]}
|
|
141
|
-
color={theme.colors.gray[700]}
|
|
142
|
-
icon={"CALENDAR"}
|
|
143
|
-
/>
|
|
144
|
-
</Box>
|
|
145
|
-
)}
|
|
146
|
-
{name === "hours" && (
|
|
147
|
-
<Box width={40} height={70} backgroundColor={"transparent"} style={positionIcon}>
|
|
148
|
-
<Icons size={theme.fontSizes["lg"]} color={theme.colors.gray[700]} icon={"TIMER"} />
|
|
149
|
-
</Box>
|
|
150
|
-
)}
|
|
151
|
-
{name === "litragem" && (
|
|
152
|
-
<Box width={40} height={70} backgroundColor={"transparent"} style={positionIcon}>
|
|
153
|
-
<Icons size={theme.fontSizes["lg"]} color={theme.colors.gray[700]} icon={"GAS_PUMP"} />
|
|
154
|
-
</Box>
|
|
155
|
-
)}
|
|
156
|
-
{name === "value" && (
|
|
157
|
-
<Box width={40} height={70} backgroundColor={"transparent"} style={positionIcon}>
|
|
158
|
-
<Icons size={theme.fontSizes["lg"]} color={theme.colors.gray[700]} icon={"CURRENCY"} />
|
|
159
|
-
</Box>
|
|
160
|
-
)}
|
|
161
|
-
{Boolean(messageError) && (
|
|
162
|
-
<Box width={"100%"} backgroundColor={backgroundColor}>
|
|
163
|
-
<Typography
|
|
164
|
-
text={messageError ?? ""}
|
|
165
|
-
size={theme.fontSizes["sm"]}
|
|
166
|
-
fontFamily="inter_regular_400"
|
|
167
|
-
color={theme.colors.red[900] ?? "#9F0000"}
|
|
168
|
-
lineHeight={24}
|
|
169
|
-
letterSpacing={"regular"}
|
|
170
|
-
marginTop={2}
|
|
171
|
-
/>
|
|
172
|
-
</Box>
|
|
173
|
-
)}
|
|
174
|
-
</Box>
|
|
175
|
-
);
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* EXPORTS
|
|
180
|
-
*/
|
|
181
|
-
export { Input };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Dimensions, TextInput, TouchableOpacity, ViewStyle } from "react-native";
|
|
6
|
+
|
|
7
|
+
// components
|
|
8
|
+
import { Box } from "../box";
|
|
9
|
+
import { Typography } from "../typography";
|
|
10
|
+
import { Icons } from "../../common/icons-svg";
|
|
11
|
+
|
|
12
|
+
// typings
|
|
13
|
+
import { type IInputProps } from "./interface";
|
|
14
|
+
|
|
15
|
+
// styles
|
|
16
|
+
import { theme } from "../../styles/theme/theme";
|
|
17
|
+
import { styles } from "./styles";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* Componente Input para a interação do usuário com ui.
|
|
22
|
+
*/
|
|
23
|
+
const Input: React.FC<IInputProps> = ({
|
|
24
|
+
name,
|
|
25
|
+
textLabel,
|
|
26
|
+
messageError,
|
|
27
|
+
width,
|
|
28
|
+
backgroundColor,
|
|
29
|
+
marginStyle,
|
|
30
|
+
paddingStyle,
|
|
31
|
+
borderStyled,
|
|
32
|
+
isVisiblyPassword, // password
|
|
33
|
+
testID,
|
|
34
|
+
opacity,
|
|
35
|
+
children,
|
|
36
|
+
fontStyle,
|
|
37
|
+
style,
|
|
38
|
+
flexStyle,
|
|
39
|
+
handlePressIsVisiblyPassword, // password
|
|
40
|
+
append,
|
|
41
|
+
color,
|
|
42
|
+
placeholder,
|
|
43
|
+
textLabelPlaceholder,
|
|
44
|
+
secureTextEntry,
|
|
45
|
+
...props
|
|
46
|
+
}) => {
|
|
47
|
+
const styleProps = {
|
|
48
|
+
width,
|
|
49
|
+
backgroundColor,
|
|
50
|
+
borderStyled,
|
|
51
|
+
flexStyle,
|
|
52
|
+
paddingStyle,
|
|
53
|
+
marginStyle,
|
|
54
|
+
testID,
|
|
55
|
+
opacity,
|
|
56
|
+
children,
|
|
57
|
+
fontStyle,
|
|
58
|
+
color,
|
|
59
|
+
style,
|
|
60
|
+
name,
|
|
61
|
+
} as IInputProps;
|
|
62
|
+
|
|
63
|
+
const { width: widthScreen } = Dimensions.get("window");
|
|
64
|
+
const isMobile = widthScreen < 768;
|
|
65
|
+
|
|
66
|
+
const positionIcon: ViewStyle = {
|
|
67
|
+
position: "absolute",
|
|
68
|
+
right: 15,
|
|
69
|
+
top: isMobile ? 65 : 40,
|
|
70
|
+
};
|
|
71
|
+
const positionIconPassword: ViewStyle = {
|
|
72
|
+
position: "absolute",
|
|
73
|
+
right: isMobile ? 5 : 32,
|
|
74
|
+
top: isMobile ? 65 : 38,
|
|
75
|
+
};
|
|
76
|
+
const positionLabel: ViewStyle = { position: "absolute", right: 35, top: 65 };
|
|
77
|
+
|
|
78
|
+
return (
|
|
79
|
+
<Box paddingStyle={paddingStyle} marginStyle={marginStyle} style={{ position: "relative" }}>
|
|
80
|
+
<Box>
|
|
81
|
+
<Typography
|
|
82
|
+
size={theme.fontSizes.md}
|
|
83
|
+
text={String(textLabel)}
|
|
84
|
+
color={color?.colorText ?? theme.colors.gray[900]}
|
|
85
|
+
/>
|
|
86
|
+
|
|
87
|
+
<TextInput
|
|
88
|
+
// @ts-ignore
|
|
89
|
+
style={[styles(styleProps).input, { backgroundColor }, style]}
|
|
90
|
+
placeholder={placeholder}
|
|
91
|
+
secureTextEntry={secureTextEntry}
|
|
92
|
+
color={theme.colors.gray[900]}
|
|
93
|
+
{...props}
|
|
94
|
+
/>
|
|
95
|
+
</Box>
|
|
96
|
+
{append && (
|
|
97
|
+
<Box>
|
|
98
|
+
<Typography
|
|
99
|
+
size={theme.fontSizes["lg"]}
|
|
100
|
+
text={append.appendText ?? ""}
|
|
101
|
+
color={append.appendColor ?? "#000"}
|
|
102
|
+
/>
|
|
103
|
+
</Box>
|
|
104
|
+
)}
|
|
105
|
+
|
|
106
|
+
{name === "label" && (
|
|
107
|
+
<Box backgroundColor={"transparent"} style={positionLabel}>
|
|
108
|
+
<Typography
|
|
109
|
+
text={textLabelPlaceholder ?? ""}
|
|
110
|
+
size={theme.fontSizes["sm"]}
|
|
111
|
+
fontWeight="400"
|
|
112
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
113
|
+
color={theme.colors.blue[500]}
|
|
114
|
+
lineHeight={24}
|
|
115
|
+
letterSpacing={"regular"}
|
|
116
|
+
/>
|
|
117
|
+
</Box>
|
|
118
|
+
)}
|
|
119
|
+
|
|
120
|
+
{name === "password" ||
|
|
121
|
+
(name === "senha" && (
|
|
122
|
+
<Box backgroundColor={"transparent"} style={positionIconPassword}>
|
|
123
|
+
<TouchableOpacity
|
|
124
|
+
activeOpacity={0.7}
|
|
125
|
+
testID="eye-icon"
|
|
126
|
+
onPress={handlePressIsVisiblyPassword}
|
|
127
|
+
>
|
|
128
|
+
<Icons
|
|
129
|
+
size={theme.fontSizes["3xl"]}
|
|
130
|
+
color={theme.colors.blue[500]}
|
|
131
|
+
icon={isVisiblyPassword ? "EYE" : "EYE_SLASH"}
|
|
132
|
+
/>
|
|
133
|
+
</TouchableOpacity>
|
|
134
|
+
</Box>
|
|
135
|
+
))}
|
|
136
|
+
{name === "data" && (
|
|
137
|
+
<Box width={40} height={70} backgroundColor={"transparent"} style={positionIcon}>
|
|
138
|
+
<Icons
|
|
139
|
+
testID="CALENDAR"
|
|
140
|
+
size={theme.fontSizes["lg"]}
|
|
141
|
+
color={theme.colors.gray[700]}
|
|
142
|
+
icon={"CALENDAR"}
|
|
143
|
+
/>
|
|
144
|
+
</Box>
|
|
145
|
+
)}
|
|
146
|
+
{name === "hours" && (
|
|
147
|
+
<Box width={40} height={70} backgroundColor={"transparent"} style={positionIcon}>
|
|
148
|
+
<Icons size={theme.fontSizes["lg"]} color={theme.colors.gray[700]} icon={"TIMER"} />
|
|
149
|
+
</Box>
|
|
150
|
+
)}
|
|
151
|
+
{name === "litragem" && (
|
|
152
|
+
<Box width={40} height={70} backgroundColor={"transparent"} style={positionIcon}>
|
|
153
|
+
<Icons size={theme.fontSizes["lg"]} color={theme.colors.gray[700]} icon={"GAS_PUMP"} />
|
|
154
|
+
</Box>
|
|
155
|
+
)}
|
|
156
|
+
{name === "value" && (
|
|
157
|
+
<Box width={40} height={70} backgroundColor={"transparent"} style={positionIcon}>
|
|
158
|
+
<Icons size={theme.fontSizes["lg"]} color={theme.colors.gray[700]} icon={"CURRENCY"} />
|
|
159
|
+
</Box>
|
|
160
|
+
)}
|
|
161
|
+
{Boolean(messageError) && (
|
|
162
|
+
<Box width={"100%"} backgroundColor={backgroundColor}>
|
|
163
|
+
<Typography
|
|
164
|
+
text={messageError ?? ""}
|
|
165
|
+
size={theme.fontSizes["sm"]}
|
|
166
|
+
fontFamily="inter_regular_400"
|
|
167
|
+
color={theme.colors.red[900] ?? "#9F0000"}
|
|
168
|
+
lineHeight={24}
|
|
169
|
+
letterSpacing={"regular"}
|
|
170
|
+
marginTop={2}
|
|
171
|
+
/>
|
|
172
|
+
</Box>
|
|
173
|
+
)}
|
|
174
|
+
</Box>
|
|
175
|
+
);
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* EXPORTS
|
|
180
|
+
*/
|
|
181
|
+
export { Input };
|