jornada-ui 0.4.11 → 0.4.12
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/README.md +31 -31
- package/lib/commonjs/common/icons-svg/bluetooth/index.js +45 -27
- package/lib/commonjs/common/icons-svg/bluetooth/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/constants/index.js +7 -5
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/index.js +19 -4
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/plus-container/index.js +42 -0
- package/lib/commonjs/common/icons-svg/plus-container/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/trash/index.js +41 -0
- package/lib/commonjs/common/icons-svg/trash/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/components/activite-row/index.js +137 -0
- package/lib/commonjs/components/activity-step/components/activite-row/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/index.js +77 -0
- package/lib/commonjs/components/activity-step/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/interface.js +6 -0
- package/lib/commonjs/components/activity-step/interface.js.map +1 -0
- package/lib/commonjs/components/activity-step/styles.js +86 -0
- package/lib/commonjs/components/activity-step/styles.js.map +1 -0
- package/lib/commonjs/components/card-scheduled-journey/index.js +8 -6
- package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/commonjs/components/inputs/input-date-time/index.js +136 -0
- package/lib/commonjs/components/inputs/input-date-time/index.js.map +1 -0
- package/lib/commonjs/components/inputs/input-date-time/interface.d.js +2 -0
- package/lib/commonjs/components/inputs/input-date-time/interface.d.js.map +1 -0
- package/lib/commonjs/components/inputs/input-date-time/styles.js +66 -0
- package/lib/commonjs/components/inputs/input-date-time/styles.js.map +1 -0
- package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js +25 -0
- package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
- package/lib/commonjs/components/list-devices/index.js +97 -0
- package/lib/commonjs/components/list-devices/index.js.map +1 -0
- package/lib/commonjs/components/list-devices/interface.d.js +2 -0
- package/lib/commonjs/components/list-devices/interface.d.js.map +1 -0
- package/lib/commonjs/components/list-devices/styles.js +60 -0
- package/lib/commonjs/components/list-devices/styles.js.map +1 -0
- package/lib/commonjs/components/list-supplies/index.js +171 -0
- package/lib/commonjs/components/list-supplies/index.js.map +1 -0
- package/lib/commonjs/components/list-supplies/interface.d.js +2 -0
- package/lib/commonjs/components/list-supplies/interface.d.js.map +1 -0
- package/lib/commonjs/components/maintenance-description-input/index.js +3 -0
- package/lib/commonjs/components/maintenance-description-input/index.js.map +1 -1
- package/lib/commonjs/components/maintenance-description-input/styles.js +1 -1
- package/lib/commonjs/components/maintenance-description-input/styles.js.map +1 -1
- package/lib/commonjs/components/modals/modal-activity-reason/index.js +170 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js +27 -0
- package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/index.js +203 -0
- package/lib/commonjs/components/modals/modal-create-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/interface.js +2 -0
- package/lib/commonjs/components/modals/modal-create-activitie/interface.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/styles.js +42 -0
- package/lib/commonjs/components/modals/modal-create-activitie/styles.js.map +1 -0
- package/lib/commonjs/components/modals/modal-exclude-activitie/index.js +2 -0
- package/lib/commonjs/components/modals/modal-exclude-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/index.js +242 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-to-confimations/index.js +182 -0
- package/lib/commonjs/components/modals/modal-to-confimations/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-to-confimations/interface.js +2 -0
- package/lib/commonjs/components/modals/modal-to-confimations/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js +80 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js +34 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/commonjs/components/selects/select-option/index.js +4 -2
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/styles.js +6 -7
- package/lib/commonjs/components/selects/select-option/styles.js.map +1 -1
- package/lib/commonjs/components/supply-error-card/index.js +6 -6
- package/lib/commonjs/components/toast-message/index.js +8 -7
- package/lib/commonjs/components/toast-message/index.js.map +1 -1
- package/lib/commonjs/components/travel-history/index.js +7 -7
- package/lib/commonjs/components/travel-history/index.js.map +1 -1
- package/lib/commonjs/components/trip-details-card/index.js +94 -13
- package/lib/commonjs/components/trip-details-card/index.js.map +1 -1
- package/lib/commonjs/components/typography/index.js +5 -5
- package/lib/commonjs/components/typography/index.js.map +1 -1
- package/lib/commonjs/index.js +53 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/list-devices/list-devices.stories.js +146 -0
- package/lib/commonjs/stories/list-devices/list-devices.stories.js.map +1 -0
- package/lib/commonjs/stories/list-supplies/list-supplies.stories.js +69 -0
- package/lib/commonjs/stories/list-supplies/list-supplies.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +63 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +63 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/commonjs/stories/supply-error-card/supply-error-card.stories.js +2 -2
- package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js +39 -6
- package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +1 -0
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/module/common/icons-svg/bluetooth/index.js +45 -27
- package/lib/module/common/icons-svg/bluetooth/index.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +7 -5
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/index.js +19 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/plus-container/index.js +36 -0
- package/lib/module/common/icons-svg/plus-container/index.js.map +1 -0
- package/lib/module/common/icons-svg/trash/index.js +34 -0
- package/lib/module/common/icons-svg/trash/index.js.map +1 -0
- package/lib/module/components/activity-step/components/activite-row/index.js +134 -0
- package/lib/module/components/activity-step/components/activite-row/index.js.map +1 -0
- package/lib/module/components/activity-step/index.js +73 -0
- package/lib/module/components/activity-step/index.js.map +1 -0
- package/lib/module/components/activity-step/interface.js +4 -0
- package/lib/module/components/activity-step/interface.js.map +1 -0
- package/lib/module/components/activity-step/styles.js +83 -0
- package/lib/module/components/activity-step/styles.js.map +1 -0
- package/lib/module/components/card-scheduled-journey/index.js +8 -6
- package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/module/components/inputs/input-date-time/index.js +130 -0
- package/lib/module/components/inputs/input-date-time/index.js.map +1 -0
- package/lib/module/components/inputs/input-date-time/interface.d.js +2 -0
- package/lib/module/components/inputs/input-date-time/interface.d.js.map +1 -0
- package/lib/module/components/inputs/input-date-time/styles.js +62 -0
- package/lib/module/components/inputs/input-date-time/styles.js.map +1 -0
- package/lib/module/components/list-devices/helpers/get-icon-by-status.js +21 -0
- package/lib/module/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
- package/lib/module/components/list-devices/index.js +93 -0
- package/lib/module/components/list-devices/index.js.map +1 -0
- package/lib/module/components/list-devices/interface.d.js +2 -0
- package/lib/module/components/list-devices/interface.d.js.map +1 -0
- package/lib/module/components/list-devices/styles.js +56 -0
- package/lib/module/components/list-devices/styles.js.map +1 -0
- package/lib/module/components/list-supplies/index.js +165 -0
- package/lib/module/components/list-supplies/index.js.map +1 -0
- package/lib/module/components/list-supplies/interface.d.js +2 -0
- package/lib/module/components/list-supplies/interface.d.js.map +1 -0
- package/lib/module/components/maintenance-description-input/index.js +3 -0
- package/lib/module/components/maintenance-description-input/index.js.map +1 -1
- package/lib/module/components/maintenance-description-input/styles.js +1 -1
- package/lib/module/components/maintenance-description-input/styles.js.map +1 -1
- package/lib/module/components/modals/modal-activity-reason/index.js +165 -0
- package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/helpers/index.js +24 -0
- package/lib/module/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/index.js +196 -0
- package/lib/module/components/modals/modal-create-activitie/index.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/interface.js +2 -0
- package/lib/module/components/modals/modal-create-activitie/interface.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/styles.js +39 -0
- package/lib/module/components/modals/modal-create-activitie/styles.js.map +1 -0
- package/lib/module/components/modals/modal-exclude-activitie/index.js +2 -0
- package/lib/module/components/modals/modal-exclude-activitie/index.js.map +1 -0
- package/lib/module/components/modals/modal-journey-rectification/index.js +236 -0
- package/lib/module/components/modals/modal-journey-rectification/index.js.map +1 -0
- package/lib/module/components/modals/modal-journey-rectification/interface.d.js +2 -0
- package/lib/module/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-to-confimations/index.js +179 -0
- package/lib/module/components/modals/modal-to-confimations/index.js.map +1 -0
- package/lib/module/components/modals/modal-to-confimations/interface.js +2 -0
- package/lib/module/components/modals/modal-to-confimations/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/index.js +74 -0
- package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js +4 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js +31 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/module/components/selects/select-option/index.js +4 -2
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/selects/select-option/styles.js +6 -7
- package/lib/module/components/selects/select-option/styles.js.map +1 -1
- package/lib/module/components/supply-error-card/index.js +6 -6
- package/lib/module/components/toast-message/index.js +8 -7
- package/lib/module/components/toast-message/index.js.map +1 -1
- package/lib/module/components/travel-history/index.js +7 -7
- package/lib/module/components/travel-history/index.js.map +1 -1
- package/lib/module/components/trip-details-card/index.js +94 -13
- package/lib/module/components/trip-details-card/index.js.map +1 -1
- package/lib/module/components/typography/index.js +5 -5
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/list-devices/list-devices.stories.js +140 -0
- package/lib/module/stories/list-devices/list-devices.stories.js.map +1 -0
- package/lib/module/stories/list-supplies/list-supplies.stories.js +63 -0
- package/lib/module/stories/list-supplies/list-supplies.stories.js.map +1 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +57 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +57 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/module/stories/supply-error-card/supply-error-card.stories.js +2 -2
- package/lib/module/stories/trip-details-card/trip-details-card.stories.js +39 -6
- package/lib/module/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +1 -0
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts +5 -1
- package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/index.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/activity-step/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts +40 -0
- package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts +75 -0
- package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts +59 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/list-devices/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts +57 -0
- package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/maintenance-description-input/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts +0 -1
- package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/supply-error-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/toast-message/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/trip-details-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts +22 -0
- package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -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 +1 -0
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts +5 -1
- package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +2 -0
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts +11 -0
- package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/index.d.ts +17 -0
- package/lib/typescript/module/src/components/activity-step/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/interface.d.ts +40 -0
- package/lib/typescript/module/src/components/activity-step/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/styles.d.ts +75 -0
- package/lib/typescript/module/src/components/activity-step/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +2 -1
- package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts +8 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts +59 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
- package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/index.d.ts +11 -0
- package/lib/typescript/module/src/components/list-devices/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/styles.d.ts +57 -0
- package/lib/typescript/module/src/components/list-devices/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-supplies/index.d.ts +8 -0
- package/lib/typescript/module/src/components/list-supplies/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/maintenance-description-input/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
- package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts +13 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-option/index.d.ts +1 -0
- package/lib/typescript/module/src/components/selects/select-option/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/selects/select-option/styles.d.ts +0 -1
- package/lib/typescript/module/src/components/selects/select-option/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/supply-error-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/toast-message/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/trip-details-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +7 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts +22 -0
- package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -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 +1 -0
- package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/common/icons-svg/bluetooth/index.tsx +51 -24
- package/src/common/icons-svg/constants/index.ts +67 -65
- package/src/common/icons-svg/index.tsx +289 -280
- package/src/common/icons-svg/plus-container/index.tsx +32 -0
- package/src/common/icons-svg/trash/index.tsx +31 -0
- package/src/components/activity-step/components/activite-row/index.tsx +141 -0
- package/src/components/activity-step/index.tsx +73 -0
- package/src/components/activity-step/interface.ts +54 -0
- package/src/components/activity-step/styles.ts +72 -0
- package/src/components/card-scheduled-journey/index.tsx +140 -138
- package/src/components/card-scheduled-journey/interface.d.ts +145 -140
- package/src/components/inputs/input-date-time/index.tsx +133 -0
- package/src/components/inputs/input-date-time/interface.d.ts +25 -0
- package/src/components/inputs/input-date-time/styles.ts +63 -0
- package/src/components/list-devices/helpers/get-icon-by-status.tsx +20 -0
- package/src/components/list-devices/index.tsx +102 -0
- package/src/components/list-devices/interface.d.ts +36 -0
- package/src/components/list-devices/styles.ts +68 -0
- package/src/components/list-supplies/index.tsx +153 -0
- package/src/components/list-supplies/interface.d.ts +9 -0
- package/src/components/maintenance-description-input/index.tsx +1 -0
- package/src/components/maintenance-description-input/styles.ts +1 -1
- package/src/components/modals/modal-activity-reason/index.tsx +168 -0
- package/src/components/modals/modal-activity-reason/interface.d.ts +9 -0
- package/src/components/modals/modal-create-activitie/helpers/index.ts +14 -0
- package/src/components/modals/modal-create-activitie/index.tsx +210 -0
- package/src/components/modals/modal-create-activitie/interface.ts +22 -0
- package/src/components/modals/modal-create-activitie/styles.ts +24 -0
- package/src/components/modals/modal-exclude-activitie/index.ts +0 -0
- package/src/components/modals/modal-journey-rectification/index.tsx +236 -0
- package/src/components/modals/modal-journey-rectification/interface.d.ts +10 -0
- package/src/components/modals/modal-to-confimations/index.tsx +182 -0
- package/src/components/modals/modal-to-confimations/interface.ts +36 -0
- package/src/components/selects/select-date-and-hours/index.tsx +70 -0
- package/src/components/selects/select-date-and-hours/interface.ts +31 -0
- package/src/components/selects/select-date-and-hours/styles.ts +24 -0
- package/src/components/selects/select-option/index.tsx +2 -1
- package/src/components/selects/select-option/interface.d.ts +1 -1
- package/src/components/selects/select-option/styles.ts +74 -75
- package/src/components/supply-error-card/index.tsx +109 -109
- package/src/components/supply-error-card/interface.d.ts +133 -133
- package/src/components/toast-message/index.tsx +75 -74
- package/src/components/travel-history/index.tsx +7 -7
- package/src/components/trip-details-card/index.tsx +89 -12
- package/src/components/trip-details-card/interface.d.ts +4 -1
- package/src/components/typography/index.tsx +78 -78
- package/src/index.tsx +7 -0
- package/src/stories/list-devices/list-devices.stories.tsx +114 -0
- package/src/stories/list-supplies/list-supplies.stories.tsx +66 -0
- package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +60 -0
- package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +60 -0
- package/src/stories/supply-error-card/supply-error-card.stories.tsx +72 -72
- package/src/stories/trip-details-card/trip-details-card.stories.tsx +38 -5
- package/src/styles/theme/theme.ts +1 -0
|
@@ -1,74 +1,75 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import React, { forwardRef, useMemo } from "react";
|
|
6
|
-
import { View } from "react-native";
|
|
7
|
-
|
|
8
|
-
// components
|
|
9
|
-
import Typography from "../typography";
|
|
10
|
-
|
|
11
|
-
// typings
|
|
12
|
-
import type { ToastMessageCustoProps } from "./interface";
|
|
13
|
-
import { asBaseComponent } from "../../@types/as-base-component";
|
|
14
|
-
|
|
15
|
-
import { styles } from "./styles";
|
|
16
|
-
import { theme } from "../../styles/theme/theme";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Componente ToastMessage para a exibição de mensagens de conexão.
|
|
20
|
-
*/
|
|
21
|
-
const ToastMessage = forwardRef<any, ToastMessageCustoProps>(
|
|
22
|
-
({ text1, text2, options }, ref): React.ReactElement => {
|
|
23
|
-
const borderColor = useMemo(() => {
|
|
24
|
-
const map = {
|
|
25
|
-
success: theme.colors?.green[400] ?? "#69C779",
|
|
26
|
-
alert: theme.colors?.blue[800] ?? "#87CEFA",
|
|
27
|
-
error: theme.colors?.red[500] ?? "#ef4444",
|
|
28
|
-
} as const;
|
|
29
|
-
return map[options];
|
|
30
|
-
}, [options, theme]);
|
|
31
|
-
|
|
32
|
-
return (
|
|
33
|
-
<View ref={ref} style={styles.wrapperToash}>
|
|
34
|
-
<View style={styles.wrapperBorder}>
|
|
35
|
-
<View
|
|
36
|
-
testID="border-custom"
|
|
37
|
-
style={[styles.borderCustom, { backgroundColor: borderColor }]}
|
|
38
|
-
/>
|
|
39
|
-
</View>
|
|
40
|
-
|
|
41
|
-
<View style={styles.wrapperText}>
|
|
42
|
-
{!!text1 && (
|
|
43
|
-
<Typography
|
|
44
|
-
text={String(text1)}
|
|
45
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
46
|
-
color={"blue500"}
|
|
47
|
-
size={theme.fontSizes.xs}
|
|
48
|
-
lineHeight={theme.lineHeight["2xl"]}
|
|
49
|
-
letterSpacing={"regular"}
|
|
50
|
-
/>
|
|
51
|
-
)}
|
|
52
|
-
|
|
53
|
-
{!!text2 && (
|
|
54
|
-
<Typography
|
|
55
|
-
text={String(text2)}
|
|
56
|
-
fontFamily="inter_regular_400"
|
|
57
|
-
color={"black25"}
|
|
58
|
-
size={theme.fontSizes.xs}
|
|
59
|
-
lineHeight={theme.lineHeight["2xl"]}
|
|
60
|
-
letterSpacing={"regular"}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import React, { forwardRef, useMemo } from "react";
|
|
6
|
+
import { View } from "react-native";
|
|
7
|
+
|
|
8
|
+
// components
|
|
9
|
+
import Typography from "../typography";
|
|
10
|
+
|
|
11
|
+
// typings
|
|
12
|
+
import type { ToastMessageCustoProps } from "./interface";
|
|
13
|
+
import { asBaseComponent } from "../../@types/as-base-component";
|
|
14
|
+
|
|
15
|
+
import { styles } from "./styles";
|
|
16
|
+
import { theme } from "../../styles/theme/theme";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Componente ToastMessage para a exibição de mensagens de conexão.
|
|
20
|
+
*/
|
|
21
|
+
const ToastMessage = forwardRef<any, ToastMessageCustoProps>(
|
|
22
|
+
({ text1, text2, options }, ref): React.ReactElement => {
|
|
23
|
+
const borderColor = useMemo(() => {
|
|
24
|
+
const map = {
|
|
25
|
+
success: theme.colors?.green[400] ?? "#69C779",
|
|
26
|
+
alert: theme.colors?.blue[800] ?? "#87CEFA",
|
|
27
|
+
error: theme.colors?.red[500] ?? "#ef4444",
|
|
28
|
+
} as const;
|
|
29
|
+
return map[options];
|
|
30
|
+
}, [options, theme]);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<View ref={ref} style={styles.wrapperToash}>
|
|
34
|
+
<View style={styles.wrapperBorder}>
|
|
35
|
+
<View
|
|
36
|
+
testID="border-custom"
|
|
37
|
+
style={[styles.borderCustom, { backgroundColor: borderColor }]}
|
|
38
|
+
/>
|
|
39
|
+
</View>
|
|
40
|
+
|
|
41
|
+
<View style={styles.wrapperText}>
|
|
42
|
+
{!!text1 && (
|
|
43
|
+
<Typography
|
|
44
|
+
text={String(text1)}
|
|
45
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
46
|
+
color={"blue500"}
|
|
47
|
+
size={theme.fontSizes.xs}
|
|
48
|
+
lineHeight={theme.lineHeight["2xl"]}
|
|
49
|
+
letterSpacing={"regular"}
|
|
50
|
+
/>
|
|
51
|
+
)}
|
|
52
|
+
|
|
53
|
+
{!!text2 && (
|
|
54
|
+
<Typography
|
|
55
|
+
text={String(text2)}
|
|
56
|
+
fontFamily="inter_regular_400"
|
|
57
|
+
color={"black25"}
|
|
58
|
+
size={theme.fontSizes.xs}
|
|
59
|
+
lineHeight={theme.lineHeight["2xl"]}
|
|
60
|
+
letterSpacing={"regular"}
|
|
61
|
+
marginBottom={4}
|
|
62
|
+
/>
|
|
63
|
+
)}
|
|
64
|
+
</View>
|
|
65
|
+
</View>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
ToastMessage.displayName = "ToastMessage";
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* EXPORT
|
|
74
|
+
*/
|
|
75
|
+
export default asBaseComponent(ToastMessage);
|
|
@@ -210,7 +210,7 @@ const TravelHistory = forwardRef<any, ITravelHistory>((props, ref): React.ReactE
|
|
|
210
210
|
text={`${status ?? "ABERTA"}`}
|
|
211
211
|
size={theme.fontSizes.xs}
|
|
212
212
|
color={backgroundColor ?? theme.colors.black[180]}
|
|
213
|
-
fontFamily={theme.fonts.
|
|
213
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
214
214
|
/>
|
|
215
215
|
</Box>
|
|
216
216
|
|
|
@@ -223,16 +223,16 @@ const TravelHistory = forwardRef<any, ITravelHistory>((props, ref): React.ReactE
|
|
|
223
223
|
>
|
|
224
224
|
<Typography
|
|
225
225
|
style={{ flexShrink: 1 }}
|
|
226
|
-
text={`
|
|
226
|
+
text={`Próxima viagem: `}
|
|
227
227
|
size={theme.fontSizes.sm}
|
|
228
228
|
color={theme.colors.black[10]}
|
|
229
229
|
fontFamily={theme.fonts.inter_medium_500}
|
|
230
230
|
/>
|
|
231
231
|
<Typography
|
|
232
|
-
text={`${
|
|
232
|
+
text={`${nextTrip ?? "Não especificado"}`}
|
|
233
233
|
size={theme.fontSizes.xs}
|
|
234
234
|
color={backgroundColor ?? theme.colors.black[180]}
|
|
235
|
-
fontFamily={theme.fonts.
|
|
235
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
236
236
|
/>
|
|
237
237
|
</Box>
|
|
238
238
|
|
|
@@ -245,16 +245,16 @@ const TravelHistory = forwardRef<any, ITravelHistory>((props, ref): React.ReactE
|
|
|
245
245
|
>
|
|
246
246
|
<Typography
|
|
247
247
|
style={{ flexShrink: 1 }}
|
|
248
|
-
text={`
|
|
248
|
+
text={`Abastecimentos: `}
|
|
249
249
|
size={theme.fontSizes.sm}
|
|
250
250
|
color={theme.colors.black[10]}
|
|
251
251
|
fontFamily={theme.fonts.inter_medium_500}
|
|
252
252
|
/>
|
|
253
253
|
<Typography
|
|
254
|
-
text={`${
|
|
254
|
+
text={`${supply ?? "0"}`}
|
|
255
255
|
size={theme.fontSizes.xs}
|
|
256
256
|
color={backgroundColor ?? theme.colors.black[180]}
|
|
257
|
-
fontFamily={theme.fonts.
|
|
257
|
+
fontFamily={theme.fonts.inter_semi_bold_600}
|
|
258
258
|
/>
|
|
259
259
|
</Box>
|
|
260
260
|
</Box>
|
|
@@ -17,11 +17,16 @@ import type { ITripDetailsCard } from "./interface";
|
|
|
17
17
|
import { asBaseComponent } from "../../@types/as-base-component";
|
|
18
18
|
|
|
19
19
|
const TripDetailsCard: React.FC<ITripDetailsCard> = ({
|
|
20
|
+
dataRegistro,
|
|
21
|
+
numeroCte,
|
|
20
22
|
origem,
|
|
21
23
|
destino,
|
|
22
24
|
proximoCarregamento,
|
|
23
25
|
peso,
|
|
24
26
|
baseCalculo,
|
|
27
|
+
corBarra,
|
|
28
|
+
kmCarregado,
|
|
29
|
+
kmVazio,
|
|
25
30
|
}) => {
|
|
26
31
|
const [expanded, setExpanded] = useState(false);
|
|
27
32
|
|
|
@@ -53,7 +58,7 @@ const TripDetailsCard: React.FC<ITripDetailsCard> = ({
|
|
|
53
58
|
<View
|
|
54
59
|
style={{
|
|
55
60
|
width: 15,
|
|
56
|
-
backgroundColor: theme.colors.orange[150],
|
|
61
|
+
backgroundColor: corBarra ?? theme.colors.orange[150],
|
|
57
62
|
borderTopLeftRadius: theme.borderWidths.thick_medium,
|
|
58
63
|
borderBottomLeftRadius: theme.borderWidths.thick_medium,
|
|
59
64
|
}}
|
|
@@ -98,16 +103,16 @@ const TripDetailsCard: React.FC<ITripDetailsCard> = ({
|
|
|
98
103
|
flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
|
|
99
104
|
>
|
|
100
105
|
<Typography
|
|
101
|
-
text="
|
|
106
|
+
text={"Número CTE: "}
|
|
102
107
|
color={theme.colors.black[25]}
|
|
103
108
|
fontFamily={theme.fonts.inter_medium_500}
|
|
104
109
|
size={theme.fontSizes.sm}
|
|
105
110
|
/>
|
|
106
111
|
<Typography
|
|
107
|
-
text={`${
|
|
112
|
+
text={`${numeroCte || "Não informado"}`}
|
|
108
113
|
color={theme.colors.gray[700]}
|
|
109
114
|
fontFamily={theme.fonts.inter_regular_400}
|
|
110
|
-
size={theme.fontSizes.
|
|
115
|
+
size={theme.fontSizes.xs}
|
|
111
116
|
/>
|
|
112
117
|
</Box>
|
|
113
118
|
|
|
@@ -116,17 +121,53 @@ const TripDetailsCard: React.FC<ITripDetailsCard> = ({
|
|
|
116
121
|
flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
|
|
117
122
|
>
|
|
118
123
|
<Typography
|
|
119
|
-
text="
|
|
124
|
+
text="Data carregamento: "
|
|
120
125
|
color={theme.colors.black[25]}
|
|
121
126
|
fontFamily={theme.fonts.inter_medium_500}
|
|
122
127
|
size={theme.fontSizes.sm}
|
|
123
128
|
/>
|
|
124
129
|
<Typography
|
|
125
|
-
text={`${
|
|
130
|
+
text={`${dataRegistro || "Não informado"}`}
|
|
126
131
|
color={theme.colors.gray[700]}
|
|
127
132
|
fontFamily={theme.fonts.inter_regular_400}
|
|
133
|
+
size={theme.fontSizes.xs}
|
|
134
|
+
/>
|
|
135
|
+
</Box>
|
|
136
|
+
|
|
137
|
+
<Box
|
|
138
|
+
marginStyle={{ marginTop: theme.margins["1xs"] }}
|
|
139
|
+
flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
|
|
140
|
+
>
|
|
141
|
+
<Typography
|
|
142
|
+
text="Origem: "
|
|
143
|
+
color={theme.colors.black[25]}
|
|
144
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
128
145
|
size={theme.fontSizes.sm}
|
|
129
146
|
/>
|
|
147
|
+
<Typography
|
|
148
|
+
text={`${origem || "Não informado"}`}
|
|
149
|
+
color={theme.colors.gray[700]}
|
|
150
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
151
|
+
size={theme.fontSizes.xs}
|
|
152
|
+
/>
|
|
153
|
+
</Box>
|
|
154
|
+
|
|
155
|
+
<Box
|
|
156
|
+
marginStyle={{ marginTop: theme.margins["1xs"] }}
|
|
157
|
+
flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
|
|
158
|
+
>
|
|
159
|
+
<Typography
|
|
160
|
+
text="Destino: "
|
|
161
|
+
color={theme.colors.black[25]}
|
|
162
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
163
|
+
size={theme.fontSizes.xs}
|
|
164
|
+
/>
|
|
165
|
+
<Typography
|
|
166
|
+
text={`${destino || "Não informado"}`}
|
|
167
|
+
color={theme.colors.gray[700]}
|
|
168
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
169
|
+
size={theme.fontSizes.xs}
|
|
170
|
+
/>
|
|
130
171
|
</Box>
|
|
131
172
|
|
|
132
173
|
<Box
|
|
@@ -137,13 +178,13 @@ const TripDetailsCard: React.FC<ITripDetailsCard> = ({
|
|
|
137
178
|
text="Próximo carregamento: "
|
|
138
179
|
color={theme.colors.black[25]}
|
|
139
180
|
fontFamily={theme.fonts.inter_medium_500}
|
|
140
|
-
size={theme.fontSizes.
|
|
181
|
+
size={theme.fontSizes.xs}
|
|
141
182
|
/>
|
|
142
183
|
<Typography
|
|
143
184
|
text={`${proximoCarregamento || "Não informado"}`}
|
|
144
185
|
color={theme.colors.gray[700]}
|
|
145
186
|
fontFamily={theme.fonts.inter_regular_400}
|
|
146
|
-
size={theme.fontSizes.
|
|
187
|
+
size={theme.fontSizes.xs}
|
|
147
188
|
/>
|
|
148
189
|
</Box>
|
|
149
190
|
|
|
@@ -155,13 +196,49 @@ const TripDetailsCard: React.FC<ITripDetailsCard> = ({
|
|
|
155
196
|
text={"Peso: "}
|
|
156
197
|
color={theme.colors.black[25]}
|
|
157
198
|
fontFamily={theme.fonts.inter_medium_500}
|
|
158
|
-
size={theme.fontSizes.
|
|
199
|
+
size={theme.fontSizes.xs}
|
|
159
200
|
/>
|
|
160
201
|
<Typography
|
|
161
202
|
text={`${formatPeso(peso) || "Não informado"}`}
|
|
162
203
|
color={theme.colors.gray[700]}
|
|
163
204
|
fontFamily={theme.fonts.inter_regular_400}
|
|
164
|
-
size={theme.fontSizes.
|
|
205
|
+
size={theme.fontSizes.xs}
|
|
206
|
+
/>
|
|
207
|
+
</Box>
|
|
208
|
+
|
|
209
|
+
<Box
|
|
210
|
+
marginStyle={{ marginTop: theme.margins["1xs"] }}
|
|
211
|
+
flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
|
|
212
|
+
>
|
|
213
|
+
<Typography
|
|
214
|
+
text={"Km carregado: "}
|
|
215
|
+
color={theme.colors.black[25]}
|
|
216
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
217
|
+
size={theme.fontSizes.xs}
|
|
218
|
+
/>
|
|
219
|
+
<Typography
|
|
220
|
+
text={`${kmCarregado || "Não informado"}`}
|
|
221
|
+
color={theme.colors.gray[700]}
|
|
222
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
223
|
+
size={theme.fontSizes.xs}
|
|
224
|
+
/>
|
|
225
|
+
</Box>
|
|
226
|
+
|
|
227
|
+
<Box
|
|
228
|
+
marginStyle={{ marginTop: theme.margins["1xs"] }}
|
|
229
|
+
flexStyle={{ flexDirection: "row", justifyContent: "flex-start" }}
|
|
230
|
+
>
|
|
231
|
+
<Typography
|
|
232
|
+
text={"Km vazio: "}
|
|
233
|
+
color={theme.colors.black[25]}
|
|
234
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
235
|
+
size={theme.fontSizes.xs}
|
|
236
|
+
/>
|
|
237
|
+
<Typography
|
|
238
|
+
text={`${kmVazio || "Não informado"}`}
|
|
239
|
+
color={theme.colors.gray[700]}
|
|
240
|
+
fontFamily={theme.fonts.inter_regular_400}
|
|
241
|
+
size={theme.fontSizes.xs}
|
|
165
242
|
/>
|
|
166
243
|
</Box>
|
|
167
244
|
|
|
@@ -173,13 +250,13 @@ const TripDetailsCard: React.FC<ITripDetailsCard> = ({
|
|
|
173
250
|
text="Base para cálculo do PRO: "
|
|
174
251
|
color={theme.colors.black[25]}
|
|
175
252
|
fontFamily={theme.fonts.inter_medium_500}
|
|
176
|
-
size={theme.fontSizes.
|
|
253
|
+
size={theme.fontSizes.xs}
|
|
177
254
|
/>
|
|
178
255
|
<Typography
|
|
179
256
|
text={`${formatBase(baseCalculo) || "Não informado"}`}
|
|
180
257
|
color={theme.colors.gray[700]}
|
|
181
258
|
fontFamily={theme.fonts.inter_regular_400}
|
|
182
|
-
size={theme.fontSizes.
|
|
259
|
+
size={theme.fontSizes.xs}
|
|
183
260
|
/>
|
|
184
261
|
</Box>
|
|
185
262
|
</>
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React, { forwardRef } from "react";
|
|
5
|
-
import { Text } from "react-native";
|
|
6
|
-
|
|
7
|
-
// typings
|
|
8
|
-
import { asBaseComponent } from "../../@types/as-base-component";
|
|
9
|
-
|
|
10
|
-
//styles
|
|
11
|
-
import { styles } from "./styles";
|
|
12
|
-
|
|
13
|
-
import type { ITextInterface } from "./interface";
|
|
14
|
-
|
|
15
|
-
const Typography = forwardRef<any, ITextInterface>((props, ref): React.ReactElement => {
|
|
16
|
-
// desestruturando as propiedades do componente
|
|
17
|
-
const {
|
|
18
|
-
text = "Hello Dev",
|
|
19
|
-
color = "#1E1E1E",
|
|
20
|
-
size = 23,
|
|
21
|
-
lineHeight = 24,
|
|
22
|
-
align = "left",
|
|
23
|
-
textDecoration,
|
|
24
|
-
fontWeight
|
|
25
|
-
fontFamily,
|
|
26
|
-
margin,
|
|
27
|
-
marginLeft,
|
|
28
|
-
marginRight,
|
|
29
|
-
marginTop,
|
|
30
|
-
marginBottom,
|
|
31
|
-
padding,
|
|
32
|
-
paddingLeft,
|
|
33
|
-
paddingRight,
|
|
34
|
-
paddingTop,
|
|
35
|
-
paddingBottom,
|
|
36
|
-
numberOfLines,
|
|
37
|
-
ellipsizeMode,
|
|
38
|
-
} = props;
|
|
39
|
-
|
|
40
|
-
// montando os dados que estão vindo via props para o componente
|
|
41
|
-
const data = {
|
|
42
|
-
color,
|
|
43
|
-
size,
|
|
44
|
-
lineHeight,
|
|
45
|
-
align,
|
|
46
|
-
textDecoration,
|
|
47
|
-
fontWeight,
|
|
48
|
-
fontFamily,
|
|
49
|
-
margin,
|
|
50
|
-
marginLeft,
|
|
51
|
-
marginRight,
|
|
52
|
-
marginTop,
|
|
53
|
-
marginBottom,
|
|
54
|
-
padding,
|
|
55
|
-
paddingLeft,
|
|
56
|
-
paddingRight,
|
|
57
|
-
paddingTop,
|
|
58
|
-
paddingBottom,
|
|
59
|
-
} as ITextInterface;
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<Text
|
|
63
|
-
ref={ref}
|
|
64
|
-
numberOfLines={numberOfLines}
|
|
65
|
-
ellipsizeMode={ellipsizeMode}
|
|
66
|
-
style={styles(data).text}
|
|
67
|
-
>
|
|
68
|
-
{text}
|
|
69
|
-
</Text>
|
|
70
|
-
);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
Typography.displayName = "Text";
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Componente Typography para a interação da ui.
|
|
77
|
-
*/
|
|
78
|
-
export default asBaseComponent(Typography);
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React, { forwardRef } from "react";
|
|
5
|
+
import { Text } from "react-native";
|
|
6
|
+
|
|
7
|
+
// typings
|
|
8
|
+
import { asBaseComponent } from "../../@types/as-base-component";
|
|
9
|
+
|
|
10
|
+
//styles
|
|
11
|
+
import { styles } from "./styles";
|
|
12
|
+
|
|
13
|
+
import type { ITextInterface } from "./interface";
|
|
14
|
+
|
|
15
|
+
const Typography = forwardRef<any, ITextInterface>((props, ref): React.ReactElement => {
|
|
16
|
+
// desestruturando as propiedades do componente
|
|
17
|
+
const {
|
|
18
|
+
text = "Hello Dev",
|
|
19
|
+
color = "#1E1E1E",
|
|
20
|
+
size = 23,
|
|
21
|
+
lineHeight = 24,
|
|
22
|
+
align = "left",
|
|
23
|
+
textDecoration,
|
|
24
|
+
fontWeight,
|
|
25
|
+
fontFamily,
|
|
26
|
+
margin,
|
|
27
|
+
marginLeft,
|
|
28
|
+
marginRight,
|
|
29
|
+
marginTop,
|
|
30
|
+
marginBottom,
|
|
31
|
+
padding,
|
|
32
|
+
paddingLeft,
|
|
33
|
+
paddingRight,
|
|
34
|
+
paddingTop,
|
|
35
|
+
paddingBottom,
|
|
36
|
+
numberOfLines,
|
|
37
|
+
ellipsizeMode,
|
|
38
|
+
} = props;
|
|
39
|
+
|
|
40
|
+
// montando os dados que estão vindo via props para o componente
|
|
41
|
+
const data = {
|
|
42
|
+
color,
|
|
43
|
+
size,
|
|
44
|
+
lineHeight,
|
|
45
|
+
align,
|
|
46
|
+
textDecoration,
|
|
47
|
+
fontWeight,
|
|
48
|
+
fontFamily,
|
|
49
|
+
margin,
|
|
50
|
+
marginLeft,
|
|
51
|
+
marginRight,
|
|
52
|
+
marginTop,
|
|
53
|
+
marginBottom,
|
|
54
|
+
padding,
|
|
55
|
+
paddingLeft,
|
|
56
|
+
paddingRight,
|
|
57
|
+
paddingTop,
|
|
58
|
+
paddingBottom,
|
|
59
|
+
} as ITextInterface;
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<Text
|
|
63
|
+
ref={ref}
|
|
64
|
+
numberOfLines={numberOfLines}
|
|
65
|
+
ellipsizeMode={ellipsizeMode}
|
|
66
|
+
style={styles(data).text}
|
|
67
|
+
>
|
|
68
|
+
{text}
|
|
69
|
+
</Text>
|
|
70
|
+
);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
Typography.displayName = "Text";
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Componente Typography para a interação da ui.
|
|
77
|
+
*/
|
|
78
|
+
export default asBaseComponent(Typography);
|
package/src/index.tsx
CHANGED
|
@@ -40,6 +40,13 @@ export { default as BottomMessageConexion } from "./components/bottom-message-co
|
|
|
40
40
|
export { default as ToastMessage } from "./components/toast-message";
|
|
41
41
|
export { default as ModalTypeActivities } from "./components/modal-type-activities";
|
|
42
42
|
export { default as ResumeRaking } from "./components/resume-raking";
|
|
43
|
+
export { default as ListSupplies } from "./components/list-supplies";
|
|
44
|
+
export { default as ListDevices } from "./components/list-devices";
|
|
45
|
+
export { default as ModalActivityReason } from "./components/modals/modal-activity-reason";
|
|
46
|
+
export { default as ModalJourneyRectification } from "./components/modals/modal-journey-rectification";
|
|
47
|
+
export { default as ModalCreteActivitie } from "./components/modals/modal-create-activitie";
|
|
48
|
+
export { default as ModalToConfirmations } from "./components/modals/modal-to-confimations";
|
|
49
|
+
export { default as ActivityTimeline } from "./components/activity-step";
|
|
43
50
|
|
|
44
51
|
// adicionar o storybook + teste
|
|
45
52
|
export { default as WeeklyHoursBalance } from "./components/weekly-hours-balance";
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React from "react";
|
|
5
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
6
|
+
import { View } from "react-native";
|
|
7
|
+
|
|
8
|
+
// components
|
|
9
|
+
import ListDevices from "../../components/list-devices";
|
|
10
|
+
|
|
11
|
+
// styles
|
|
12
|
+
import { theme } from "../../styles/theme/theme";
|
|
13
|
+
|
|
14
|
+
const meta: Meta<typeof ListDevices> = {
|
|
15
|
+
title: "componente/ListDevices",
|
|
16
|
+
component: ListDevices,
|
|
17
|
+
parameters: {
|
|
18
|
+
docs: {
|
|
19
|
+
description: {
|
|
20
|
+
component: `
|
|
21
|
+
### ListDevices
|
|
22
|
+
|
|
23
|
+
Exibe uma lista de dispositivos Bluetooth. **Não há mudança visual** ao clicar/selecionar.
|
|
24
|
+
A seleção é apenas lógica (armazenada via \`onSelect\` e/ou \`selectedId/defaultSelectedId\`).
|
|
25
|
+
|
|
26
|
+
**Props**
|
|
27
|
+
- \`data: { id: number; nameDevice: string; macDevice?: string }\`[]
|
|
28
|
+
- \`titleColor?: string\`
|
|
29
|
+
- \`textColorDescription?: string\`
|
|
30
|
+
- \`selectedId?: number | null\` (controlado, sem efeito visual)
|
|
31
|
+
- \`defaultSelectedId?: number | null\` (não-controlado)
|
|
32
|
+
- \`onSelect?: (device) => void\`
|
|
33
|
+
- \`disabled?: boolean\`
|
|
34
|
+
`,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
argTypes: {
|
|
40
|
+
titleColor: { control: "color", description: "Cor do título (nameDevice)" },
|
|
41
|
+
textColorDescription: { control: "color", description: "Cor da descrição (MAC)" },
|
|
42
|
+
selectedId: { control: "number", description: "ID selecionado (controlado)" },
|
|
43
|
+
defaultSelectedId: { control: "number", description: "ID inicial (não-controlado)" },
|
|
44
|
+
disabled: { control: "boolean", description: "Desabilita interação" },
|
|
45
|
+
onSelect: { action: "onSelect", description: "Callback ao selecionar" },
|
|
46
|
+
data: { control: "object", description: "Itens da lista" },
|
|
47
|
+
},
|
|
48
|
+
decorators: [
|
|
49
|
+
(Story) => (
|
|
50
|
+
<View style={{ padding: 16, backgroundColor: theme.colors.neutral[400] }}>
|
|
51
|
+
<Story />
|
|
52
|
+
</View>
|
|
53
|
+
),
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
export default meta;
|
|
57
|
+
|
|
58
|
+
type Story = StoryObj<typeof meta>;
|
|
59
|
+
|
|
60
|
+
const sampleData = [
|
|
61
|
+
{ id: 1, nameDevice: "Dispositivo X", macDevice: "AA:BB:CC:DD:EE:01" },
|
|
62
|
+
{ id: 2, nameDevice: "Celular Y Exemplo", macDevice: "AA:BB:CC:DD:EE:02" },
|
|
63
|
+
{ id: 3, nameDevice: "Celular A Exemplo", macDevice: "AA:BB:CC:DD:EE:03" },
|
|
64
|
+
{ id: 4, nameDevice: "Celular B Exemplo", macDevice: "AA:BB:CC:DD:EE:04" },
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
export const NaoControlado = {
|
|
68
|
+
name: "Não-controlado (memória interna, sem visual)",
|
|
69
|
+
args: {
|
|
70
|
+
data: sampleData,
|
|
71
|
+
defaultSelectedId: 2,
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const Controlado: Story = {
|
|
76
|
+
name: "Controlado (selectedId + onSelect, sem visual)",
|
|
77
|
+
args: { data: sampleData },
|
|
78
|
+
render: (args: React.ComponentProps<typeof ListDevices> = {}) => {
|
|
79
|
+
const [selectedId, setSelectedId] = React.useState<number | null>(1);
|
|
80
|
+
|
|
81
|
+
return (
|
|
82
|
+
<ListDevices
|
|
83
|
+
{...args}
|
|
84
|
+
selectedId={selectedId}
|
|
85
|
+
onSelect={(device) => {
|
|
86
|
+
setSelectedId(device.id);
|
|
87
|
+
args.onSelect?.(device);
|
|
88
|
+
}}
|
|
89
|
+
/>
|
|
90
|
+
);
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/** Sem seleção inicial, apenas demonstrativo */
|
|
96
|
+
export const Basico: Story = {
|
|
97
|
+
name: "Básico (sem seleção inicial)",
|
|
98
|
+
args: {
|
|
99
|
+
data: sampleData,
|
|
100
|
+
titleColor: theme.colors.black[25],
|
|
101
|
+
textColorDescription: theme.colors.gray[700],
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/** Interação desabilitada */
|
|
106
|
+
export const Desabilitado: Story = {
|
|
107
|
+
name: "Desabilitado",
|
|
108
|
+
args: {
|
|
109
|
+
data: sampleData,
|
|
110
|
+
disabled: true,
|
|
111
|
+
titleColor: theme.colors.black[25],
|
|
112
|
+
textColorDescription: theme.colors.gray[700],
|
|
113
|
+
},
|
|
114
|
+
};
|