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
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import { SVG_NAME } from "../../../common/icons-svg/constants/index.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Função que mapeará os ícones correspondentes em SVG 🛠️.
|
|
10
|
+
* @param propertyType
|
|
11
|
+
* @returns SVG
|
|
12
|
+
*/
|
|
13
|
+
const getIconKeyByValue = propertyType => {
|
|
14
|
+
return Object.keys(SVG_NAME).find(key => SVG_NAME[key] === propertyType);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* EXPORTS
|
|
19
|
+
*/
|
|
20
|
+
export { getIconKeyByValue };
|
|
21
|
+
//# sourceMappingURL=get-icon-by-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SVG_NAME","getIconKeyByValue","propertyType","Object","keys","find","key"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/list-devices/helpers/get-icon-by-status.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,8CAAqC;;AAE9D;AACA;AACA;AACA;AACA;AACA,MAAMC,iBAAiB,GAAIC,YAAoB,IAAwC;EACrF,OAAQC,MAAM,CAACC,IAAI,CAACJ,QAAQ,CAAC,CAAkCK,IAAI,CAChEC,GAAG,IAAKN,QAAQ,CAACM,GAAG,CAAC,KAAKJ,YAC7B,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA,SAASD,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React, { forwardRef } from "react";
|
|
7
|
+
import { View, Text, TouchableOpacity } from "react-native";
|
|
8
|
+
|
|
9
|
+
// components
|
|
10
|
+
import Box from "../box/index.js";
|
|
11
|
+
|
|
12
|
+
// icons
|
|
13
|
+
import { Icons } from "../../common/icons-svg/index.js";
|
|
14
|
+
|
|
15
|
+
// typings
|
|
16
|
+
|
|
17
|
+
import { asBaseComponent } from "../../@types/as-base-component.js";
|
|
18
|
+
|
|
19
|
+
// styles
|
|
20
|
+
import { styles as makeStyles } from "./styles.js";
|
|
21
|
+
import { theme } from "../../styles/theme/theme.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Componente ListDevices para a interação da ui.
|
|
25
|
+
*/
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
27
|
+
const ListDevices = /*#__PURE__*/forwardRef(({
|
|
28
|
+
data,
|
|
29
|
+
textColorDescription,
|
|
30
|
+
titleColor,
|
|
31
|
+
selectedId,
|
|
32
|
+
onSelect,
|
|
33
|
+
defaultSelectedId,
|
|
34
|
+
disabled
|
|
35
|
+
}, ref) => {
|
|
36
|
+
const isControlled = selectedId !== undefined;
|
|
37
|
+
const [internalSelected, setInternalSelected] = React.useState(defaultSelectedId);
|
|
38
|
+
const currentSelected = isControlled ? selectedId ?? null : internalSelected;
|
|
39
|
+
const handlePress = device => {
|
|
40
|
+
if (disabled) return;
|
|
41
|
+
if (!isControlled) setInternalSelected(device.id);
|
|
42
|
+
onSelect?.(device);
|
|
43
|
+
};
|
|
44
|
+
if (!data?.length) return /*#__PURE__*/_jsx(Box, {});
|
|
45
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
46
|
+
children: data.map((history, index) => {
|
|
47
|
+
const isLast = index === data.length - 1;
|
|
48
|
+
const isSelected = currentSelected === history.id;
|
|
49
|
+
const s = makeStyles({
|
|
50
|
+
titleColor,
|
|
51
|
+
textColorDescription,
|
|
52
|
+
disabled,
|
|
53
|
+
isSelected
|
|
54
|
+
});
|
|
55
|
+
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
56
|
+
ref: ref,
|
|
57
|
+
activeOpacity: 0.7,
|
|
58
|
+
testID: "list-devices",
|
|
59
|
+
onPress: () => handlePress(history),
|
|
60
|
+
disabled: disabled,
|
|
61
|
+
accessibilityRole: "button",
|
|
62
|
+
accessibilityState: {
|
|
63
|
+
selected: isSelected,
|
|
64
|
+
disabled
|
|
65
|
+
},
|
|
66
|
+
accessibilityLabel: `Dispositivo ${history.nameDevice}`,
|
|
67
|
+
style: [s.containerIndicator, !isLast && s.separator, isSelected && s.containerIndicatorSelected],
|
|
68
|
+
children: [/*#__PURE__*/_jsx(Icons, {
|
|
69
|
+
icon: "BLUETOOTH",
|
|
70
|
+
size: 26,
|
|
71
|
+
background: theme.colors.gray[600],
|
|
72
|
+
color: theme.colors.gray[300]
|
|
73
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
74
|
+
style: s.containerMain,
|
|
75
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
76
|
+
style: [s.title, isSelected && s.titleSelected],
|
|
77
|
+
children: history.nameDevice
|
|
78
|
+
}), !!history.macDevice && /*#__PURE__*/_jsx(Text, {
|
|
79
|
+
style: [s.titleDescription, isSelected && s.descSelected],
|
|
80
|
+
children: history.macDevice
|
|
81
|
+
})]
|
|
82
|
+
})]
|
|
83
|
+
}, history.id);
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
ListDevices.displayName = "ListDevices";
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* EXPORTS
|
|
91
|
+
*/
|
|
92
|
+
export default asBaseComponent(ListDevices);
|
|
93
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","View","Text","TouchableOpacity","Box","Icons","asBaseComponent","styles","makeStyles","theme","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","ListDevices","data","textColorDescription","titleColor","selectedId","onSelect","defaultSelectedId","disabled","ref","isControlled","undefined","internalSelected","setInternalSelected","useState","currentSelected","handlePress","device","id","length","children","map","history","index","isLast","isSelected","s","activeOpacity","testID","onPress","accessibilityRole","accessibilityState","selected","accessibilityLabel","nameDevice","style","containerIndicator","separator","containerIndicatorSelected","icon","size","background","colors","gray","color","containerMain","title","titleSelected","macDevice","titleDescription","descSelected","displayName"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-devices/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;;AAE3D;AACA,OAAOC,GAAG,MAAM,iBAAQ;;AAExB;AACA,SAASC,KAAK,QAAQ,iCAAwB;;AAE9C;;AAEA,SAASC,eAAe,QAAQ,mCAAgC;;AAEhE;AACA,SAASC,MAAM,IAAIC,UAAU,QAAQ,aAAU;AAC/C,SAASC,KAAK,QAAQ,6BAA0B;;AAEhD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAGA,MAAMC,WAAW,gBAAGhB,UAAU,CAC5B,CACE;EAAEiB,IAAI;EAAEC,oBAAoB;EAAEC,UAAU;EAAEC,UAAU;EAAEC,QAAQ;EAAEC,iBAAiB;EAAEC;AAAS,CAAC,EAC7FC,GAAG,KACoB;EACvB,MAAMC,YAAY,GAAGL,UAAU,KAAKM,SAAS;EAC7C,MAAM,CAACC,gBAAgB,EAAEC,mBAAmB,CAAC,GAAG7B,KAAK,CAAC8B,QAAQ,CAC5DP,iBACF,CAAC;EAED,MAAMQ,eAAe,GAAGL,YAAY,GAAIL,UAAU,IAAI,IAAI,GAAIO,gBAAgB;EAE9E,MAAMI,WAAW,GAAIC,MAAa,IAAK;IACrC,IAAIT,QAAQ,EAAE;IACd,IAAI,CAACE,YAAY,EAAEG,mBAAmB,CAACI,MAAM,CAACC,EAAE,CAAC;IACjDZ,QAAQ,GAAGW,MAAM,CAAC;EACpB,CAAC;EAED,IAAI,CAACf,IAAI,EAAEiB,MAAM,EAAE,oBAAOvB,IAAA,CAACP,GAAG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CAACT,CAAC,CAACoB,KAAK,EAAErB,UAAU,IAAIC,CAAC,CAACqB,aAAa,CAAE;YAAA3B,QAAA,EAAEE,OAAO,CAACY;UAAU,CAAO,CAAC,EACjF,CAAC,CAACZ,OAAO,CAAC0B,SAAS,iBAClBpD,IAAA,CAACT,IAAI;YAACgD,KAAK,EAAE,CAACT,CAAC,CAACuB,gBAAgB,EAAExB,UAAU,IAAIC,CAAC,CAACwB,YAAY,CAAE;YAAA9B,QAAA,EAC7DE,OAAO,CAAC0B;UAAS,CACd,CACP;QAAA,CACG,CAAC;MAAA,GA1BF1B,OAAO,CAACJ,EA2BG,CAAC;IAEvB,CAAC;EAAC,CACF,CAAC;AAEP,CACF,CAAC;AAEDjB,WAAW,CAACkD,WAAW,GAAG,aAAa;;AAEvC;AACA;AACA;AACA,eAAe5D,eAAe,CAACU,WAAW,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-devices/interface.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from "react-native";
|
|
4
|
+
import { theme } from "../../styles/theme/theme.js";
|
|
5
|
+
const styles = (props = {}) => StyleSheet.create({
|
|
6
|
+
containerIndicator: {
|
|
7
|
+
width: "100%",
|
|
8
|
+
flexDirection: "row",
|
|
9
|
+
justifyContent: "flex-start",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
marginTop: 8,
|
|
12
|
+
paddingVertical: 8,
|
|
13
|
+
paddingHorizontal: 8,
|
|
14
|
+
opacity: props.disabled ? 0.6 : 1
|
|
15
|
+
},
|
|
16
|
+
containerIndicatorSelected: {
|
|
17
|
+
backgroundColor: theme.colors.green[250],
|
|
18
|
+
borderRadius: 30
|
|
19
|
+
},
|
|
20
|
+
separator: {
|
|
21
|
+
borderBottomWidth: 1,
|
|
22
|
+
borderBottomColor: props.isSelected ? "transparent" : theme.colors.gray[700]
|
|
23
|
+
},
|
|
24
|
+
title: {
|
|
25
|
+
color: props.titleColor ?? theme.colors.black[10],
|
|
26
|
+
textAlign: "center",
|
|
27
|
+
lineHeight: 20,
|
|
28
|
+
fontSize: theme.fontSizes.sm,
|
|
29
|
+
fontWeight: "500",
|
|
30
|
+
marginLeft: theme.margins.xs
|
|
31
|
+
},
|
|
32
|
+
titleSelected: {
|
|
33
|
+
color: theme.colors.neutral[25],
|
|
34
|
+
fontWeight: "600"
|
|
35
|
+
},
|
|
36
|
+
titleDescription: {
|
|
37
|
+
color: props.textColorDescription ?? theme.colors.gray[600],
|
|
38
|
+
textAlign: "center",
|
|
39
|
+
lineHeight: 16,
|
|
40
|
+
fontSize: 18,
|
|
41
|
+
fontFamily: theme.fonts.inter_light_300,
|
|
42
|
+
marginLeft: theme.margins.xs
|
|
43
|
+
},
|
|
44
|
+
descSelected: {
|
|
45
|
+
color: theme.colors.neutral[25]
|
|
46
|
+
},
|
|
47
|
+
containerMain: {
|
|
48
|
+
width: "100%",
|
|
49
|
+
flexDirection: "column",
|
|
50
|
+
alignItems: "flex-start",
|
|
51
|
+
marginLeft: 2,
|
|
52
|
+
justifyContent: "center"
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export { styles };
|
|
56
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","styles","props","create","containerIndicator","width","flexDirection","justifyContent","alignItems","marginTop","paddingVertical","paddingHorizontal","opacity","disabled","containerIndicatorSelected","backgroundColor","colors","green","borderRadius","separator","borderBottomWidth","borderBottomColor","isSelected","gray","title","color","titleColor","black","textAlign","lineHeight","fontSize","fontSizes","sm","fontWeight","marginLeft","margins","xs","titleSelected","neutral","titleDescription","textColorDescription","fontFamily","fonts","inter_light_300","descSelected","containerMain"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-devices/styles.ts"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AAK,CAACgB,MAAM,CAACO,IAAI,CAAC,GAAG,CAAC;IAC3DK,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,EAAE;IACdC,QAAQ,EAAE,EAAE;IACZW,UAAU,EAAEzC,KAAK,CAAC0C,KAAK,CAACC,eAAe;IACvCT,UAAU,EAAElC,KAAK,CAACmC,OAAO,CAACC;EAC5B,CAAC;EAEDQ,YAAY,EAAE;IACZnB,KAAK,EAAEzB,KAAK,CAACgB,MAAM,CAACsB,OAAO,CAAC,EAAE;EAChC,CAAC;EAEDO,aAAa,EAAE;IACbxC,KAAK,EAAE,MAAM;IACbC,aAAa,EAAE,QAAQ;IACvBE,UAAU,EAAE,YAAY;IACxB0B,UAAU,EAAE,CAAC;IACb3B,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAEJ,SAASN,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React, { useEffect } from "react";
|
|
7
|
+
import { Image, View, UIManager, Platform } from "react-native";
|
|
8
|
+
|
|
9
|
+
// components
|
|
10
|
+
import Box from "../../components/box/index.js";
|
|
11
|
+
import Typography from "../../components/typography/index.js";
|
|
12
|
+
|
|
13
|
+
// style
|
|
14
|
+
import { theme } from "../../styles/theme/theme.js";
|
|
15
|
+
|
|
16
|
+
// typings
|
|
17
|
+
|
|
18
|
+
import { asBaseComponent } from "../../@types/as-base-component.js";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
const ListSupplies = ({
|
|
21
|
+
dataRegistro,
|
|
22
|
+
namePosto,
|
|
23
|
+
litragem,
|
|
24
|
+
valor,
|
|
25
|
+
imagemUrl,
|
|
26
|
+
corBarra
|
|
27
|
+
}) => {
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
if (Platform.OS === "android" && UIManager.setLayoutAnimationEnabledExperimental) {
|
|
30
|
+
UIManager.setLayoutAnimationEnabledExperimental(true);
|
|
31
|
+
}
|
|
32
|
+
}, []);
|
|
33
|
+
return /*#__PURE__*/_jsxs(Box, {
|
|
34
|
+
width: "100%",
|
|
35
|
+
flexStyle: {
|
|
36
|
+
flexDirection: "row"
|
|
37
|
+
},
|
|
38
|
+
backgroundColor: theme.colors.neutral[25],
|
|
39
|
+
borderStyled: {
|
|
40
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
41
|
+
},
|
|
42
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
43
|
+
style: {
|
|
44
|
+
width: 15,
|
|
45
|
+
backgroundColor: corBarra ?? theme.colors.blue[375],
|
|
46
|
+
borderTopLeftRadius: theme.borderWidths.thick_medium,
|
|
47
|
+
borderBottomLeftRadius: theme.borderWidths.thick_medium
|
|
48
|
+
}
|
|
49
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
50
|
+
flexStyle: {
|
|
51
|
+
flex: 1
|
|
52
|
+
},
|
|
53
|
+
paddingStyle: {
|
|
54
|
+
padding: theme.paddings["2xs"]
|
|
55
|
+
},
|
|
56
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
57
|
+
marginStyle: {
|
|
58
|
+
marginBottom: theme.margins.fn
|
|
59
|
+
},
|
|
60
|
+
flexStyle: {
|
|
61
|
+
flexDirection: "row",
|
|
62
|
+
justifyContent: "flex-start"
|
|
63
|
+
},
|
|
64
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
65
|
+
text: `${namePosto || "Não informado"}`,
|
|
66
|
+
color: theme.colors.black[25],
|
|
67
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
68
|
+
size: theme.fontSizes.sm
|
|
69
|
+
})
|
|
70
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
71
|
+
marginStyle: {
|
|
72
|
+
marginBottom: theme.margins.fn
|
|
73
|
+
},
|
|
74
|
+
flexStyle: {
|
|
75
|
+
flexDirection: "row",
|
|
76
|
+
justifyContent: "flex-start"
|
|
77
|
+
},
|
|
78
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
79
|
+
text: "Litragem: ",
|
|
80
|
+
color: theme.colors.black[25],
|
|
81
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
82
|
+
size: theme.fontSizes.sm
|
|
83
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
84
|
+
flexStyle: {
|
|
85
|
+
flexDirection: "row",
|
|
86
|
+
justifyContent: "flex-start"
|
|
87
|
+
},
|
|
88
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
89
|
+
text: `${litragem || "Não informado"}`,
|
|
90
|
+
color: theme.colors.black[25],
|
|
91
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
92
|
+
size: theme.fontSizes.sm
|
|
93
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
94
|
+
text: ` LT`,
|
|
95
|
+
color: theme.colors.red[400],
|
|
96
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
97
|
+
size: theme.fontSizes.sm
|
|
98
|
+
})]
|
|
99
|
+
})]
|
|
100
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
101
|
+
marginStyle: {
|
|
102
|
+
marginBottom: theme.margins.fn
|
|
103
|
+
},
|
|
104
|
+
flexStyle: {
|
|
105
|
+
flexDirection: "row",
|
|
106
|
+
justifyContent: "flex-start"
|
|
107
|
+
},
|
|
108
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
109
|
+
text: "Valor: ",
|
|
110
|
+
color: theme.colors.black[25],
|
|
111
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
112
|
+
size: theme.fontSizes.sm
|
|
113
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
114
|
+
text: `R$ ${valor || "Não informado"}`,
|
|
115
|
+
color: theme.colors.gray[700],
|
|
116
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
117
|
+
size: theme.fontSizes.sm
|
|
118
|
+
})]
|
|
119
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
120
|
+
marginStyle: {
|
|
121
|
+
marginBottom: theme.margins.fn
|
|
122
|
+
},
|
|
123
|
+
flexStyle: {
|
|
124
|
+
flexDirection: "row",
|
|
125
|
+
justifyContent: "flex-start"
|
|
126
|
+
},
|
|
127
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
128
|
+
text: "Data: ",
|
|
129
|
+
color: theme.colors.black[25],
|
|
130
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
131
|
+
size: theme.fontSizes.sm
|
|
132
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
133
|
+
text: `${dataRegistro || "Não informado"}`,
|
|
134
|
+
color: theme.colors.gray[700],
|
|
135
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
136
|
+
size: theme.fontSizes.sm
|
|
137
|
+
})]
|
|
138
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
139
|
+
borderStyled: {
|
|
140
|
+
borderWidth: 1,
|
|
141
|
+
borderColor: theme.colors.black[25],
|
|
142
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
143
|
+
},
|
|
144
|
+
flexStyle: {
|
|
145
|
+
justifyContent: "center",
|
|
146
|
+
alignItems: "center"
|
|
147
|
+
},
|
|
148
|
+
children: /*#__PURE__*/_jsx(Image, {
|
|
149
|
+
source: {
|
|
150
|
+
uri: imagemUrl ?? "https://placehold.co/300x300"
|
|
151
|
+
},
|
|
152
|
+
style: {
|
|
153
|
+
width: "100%",
|
|
154
|
+
height: 139,
|
|
155
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
156
|
+
},
|
|
157
|
+
resizeMode: "cover"
|
|
158
|
+
})
|
|
159
|
+
})]
|
|
160
|
+
})]
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
ListSupplies.displayName = "ListSupplies";
|
|
164
|
+
export default asBaseComponent(ListSupplies);
|
|
165
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","Image","View","UIManager","Platform","Box","Typography","theme","asBaseComponent","jsx","_jsx","jsxs","_jsxs","ListSupplies","dataRegistro","namePosto","litragem","valor","imagemUrl","corBarra","OS","setLayoutAnimationEnabledExperimental","width","flexStyle","flexDirection","backgroundColor","colors","neutral","borderStyled","borderRadius","borderWidths","thick_medium","children","style","blue","borderTopLeftRadius","borderBottomLeftRadius","flex","paddingStyle","padding","paddings","marginStyle","marginBottom","margins","fn","justifyContent","text","color","black","fontFamily","fonts","inter_medium_500","size","fontSizes","sm","inter_regular_400","red","gray","borderWidth","borderColor","alignItems","source","uri","height","resizeMode","displayName"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-supplies/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,KAAK,EAAEC,IAAI,EAAEC,SAAS,EAAEC,QAAQ,QAAQ,cAAc;;AAE/D;AACA,OAAOC,GAAG,MAAM,+BAAsB;AACtC,OAAOC,UAAU,MAAM,sCAA6B;;AAEpD;AACA,SAASC,KAAK,QAAQ,6BAA0B;;AAEhD;;AAEA,SAASC,eAAe,QAAQ,mCAAgC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEjE,MAAMC,YAAqC,GAAGA,CAAC;EAC7CC,YAAY;EACZC,SAAS;EACTC,QAAQ;EACRC,KAAK;EACLC,SAAS;EACTC;AACF,CAAC,KAAK;EAEJnB,SAAS,CAAC,MAAM;IACd,IAAII,QAAQ,CAACgB,EAAE,KAAK,SAAS,IAAIjB,SAAS,CAACkB,qCAAqC,EAAE;MAChFlB,SAAS,CAACkB,qCAAqC,CAAC,IAAI,CAAC;IACvD;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,oBACET,KAAA,CAACP,GAAG;IACFiB,KAAK,EAAE,MAAO;IACdC,SAAS,EAAE;MAAEC,aAAa,EAAE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;QAAG,CAC1B,CAAC;MAAA,CACC,CAAC,eACN5C,IAAA,CAACL,GAAG;QACFuB,YAAY,EAAE;UACZ8B,WAAW,EAAE,CAAC;UACdC,WAAW,EAAEpD,KAAK,CAACmB,MAAM,CAACsB,KAAK,CAAC,EAAE,CAAC;UACnCnB,YAAY,EAAEtB,KAAK,CAACuB,YAAY,CAACC;QACnC,CAAE;QACFR,SAAS,EAAE;UACTsB,cAAc,EAAE,QAAQ;UACxBe,UAAU,EAAE;QACd,CAAE;QAAA5B,QAAA,eAEFtB,IAAA,CAACT,KAAK;UACJ4D,MAAM,EAAE;YAAEC,GAAG,EAAE5C,SAAS,IAAI;UAA+B,CAAE;UAC7De,KAAK,EAAE;YACLX,KAAK,EAAE,MAAM;YACbyC,MAAM,EAAE,GAAG;YACXlC,YAAY,EAAEtB,KAAK,CAACuB,YAAY,CAACC;UACnC,CAAE;UACFiC,UAAU,EAAC;QAAO,CACnB;MAAC,CACC,CAAC;IAAA,CACP,CAAC;EAAA,CACH,CAAC;AAEV,CAAC;AAEDnD,YAAY,CAACoD,WAAW,GAAG,cAAc;AACzC,eAAezD,eAAe,CAACK,YAAY,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-supplies/interface.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -48,6 +48,9 @@ const MaintenanceDescriptionInput = /*#__PURE__*/forwardRef(({
|
|
|
48
48
|
flexDirection: "row",
|
|
49
49
|
justifyContent: error ? "space-between" : "flex-end"
|
|
50
50
|
},
|
|
51
|
+
marginStyle: {
|
|
52
|
+
marginBottom: 16
|
|
53
|
+
},
|
|
51
54
|
children: [error && /*#__PURE__*/_jsx(Text, {
|
|
52
55
|
style: stylesInput.errorText,
|
|
53
56
|
children: error
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useState","View","Text","TextInput","asBaseComponent","stylesInput","Box","jsx","_jsx","jsxs","_jsxs","MAX_LENGTH","MaintenanceDescriptionInput","label","onChangeText","error","props","ref","text","setText","handleChangeText","value","sliced","slice","children","style","inputWrapper","multiline","input","placeholderTextColor","maxLength","flexStyle","flexDirection","justifyContent","errorText","charCount","length","memo"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/maintenance-description-input/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,IAAI,EAAEC,IAAI,EAAEC,SAAS,QAAQ,cAAc;;AAEpD;;AAEA,SAASC,eAAe,QAAQ,mCAAgC;;AAEhE;AACA,SAASC,WAAW,QAAQ,aAAU;AACtC,OAAOC,GAAG,MAAM,iBAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEzB,MAAMC,UAAU,GAAG,GAAG;AAEtB,MAAMC,2BAA2B,gBAAGb,UAAU,CAC5C,CAAC;EAAEc,KAAK;EAAEC,YAAY;EAAEC,KAAK,GAAG,IAAI;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAyB;EAC5E,MAAM,CAACC,IAAI,EAAEC,OAAO,CAAC,GAAGnB,QAAQ,CAAC,EAAE,CAAC;EAEpC,MAAMoB,gBAAgB,GAAIC,KAAa,IAAK;IAC1C,MAAMC,MAAM,GAAGD,KAAK,CAACE,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC;IAClCJ,OAAO,CAACG,MAAM,CAAC;IACfR,YAAY,GAAGQ,MAAM,CAAC;EACxB,CAAC;EAED,oBACEZ,KAAA,CAACT,IAAI;IAAAuB,QAAA,gBACHhB,IAAA,CAACN,IAAI;MAACuB,KAAK,EAAEpB,WAAW,CAACQ,KAAM;MAAAW,QAAA,EAAEX;IAAK,CAAO,CAAC,eAE9CL,IAAA,CAACP,IAAI;MAACwB,KAAK,EAAEpB,WAAW,CAACqB,YAAa;MAAAF,QAAA,eACpChB,IAAA,CAACL,SAAS;QACRc,GAAG,EAAEA,GAAI;QACTU,SAAS;QACTF,KAAK,EAAEpB,WAAW,CAACuB,KAAM;QACzBC,oBAAoB,EAAC,MAAM;QAC3BC,SAAS,EAAEnB,UAAW;QACtBU,KAAK,EAAEH,IAAK;QACZJ,YAAY,EAAEM,gBAAiB;QAAA,GAC3BJ;MAAK,CACV;IAAC,CACE,CAAC,eAEPN,KAAA,CAACJ,GAAG;MACFyB,SAAS,EAAE;QAAEC,aAAa,EAAE,KAAK;QAAEC,cAAc,EAAElB,KAAK,GAAG,eAAe,GAAG;MAAW,CAAE;
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useState","View","Text","TextInput","asBaseComponent","stylesInput","Box","jsx","_jsx","jsxs","_jsxs","MAX_LENGTH","MaintenanceDescriptionInput","label","onChangeText","error","props","ref","text","setText","handleChangeText","value","sliced","slice","children","style","inputWrapper","multiline","input","placeholderTextColor","maxLength","flexStyle","flexDirection","justifyContent","marginStyle","marginBottom","errorText","charCount","length","memo"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/maintenance-description-input/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,IAAI,EAAEC,IAAI,EAAEC,SAAS,QAAQ,cAAc;;AAEpD;;AAEA,SAASC,eAAe,QAAQ,mCAAgC;;AAEhE;AACA,SAASC,WAAW,QAAQ,aAAU;AACtC,OAAOC,GAAG,MAAM,iBAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEzB,MAAMC,UAAU,GAAG,GAAG;AAEtB,MAAMC,2BAA2B,gBAAGb,UAAU,CAC5C,CAAC;EAAEc,KAAK;EAAEC,YAAY;EAAEC,KAAK,GAAG,IAAI;EAAE,GAAGC;AAAM,CAAC,EAAEC,GAAG,KAAyB;EAC5E,MAAM,CAACC,IAAI,EAAEC,OAAO,C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AAC;AAED,eAAeP,eAAe,cAACN,KAAK,CAACyC,IAAI,CAAC3B,2BAA2B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ import { StyleSheet } from "react-native";
|
|
|
4
4
|
import { theme } from "../../styles/theme/theme.js";
|
|
5
5
|
const stylesInput = StyleSheet.create({
|
|
6
6
|
label: {
|
|
7
|
-
fontFamily: theme.fonts.
|
|
7
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
8
8
|
fontSize: theme.fontSizes.md,
|
|
9
9
|
color: theme.colors.black[100],
|
|
10
10
|
marginBottom: theme.margins["1xs"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","theme","stylesInput","create","label","fontFamily","fonts","
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","stylesInput","create","label","fontFamily","fonts","inter_medium_500","fontSize","fontSizes","md","color","colors","black","marginBottom","margins","fontWeight","inputWrapper","borderColor","gray","borderWidth","borderWidths","thin","borderRadius","thick","input","inter_regular_400","sm","padding","paddings","textAlignVertical","minHeight","charCount","alignSelf","marginTop","errorText","red"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/maintenance-description-input/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,6BAA0B;AAEhD,MAAMC,WAAW,GAAGF,UAAU,CAACG,MAAM,CAAC;EACpCC,KAAK,EAAE;IACLC,UAAU,EAAEJ,KAAK,CAACK,KAAK,CAACC,gBAAgB;IACxCC,QAAQ,EAAEP,KAAK,CAACQ,SAAS,CAACC,EAAE;IAC5BC,KAAK,EAAEV,KAAK,CAACW,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC;IAC9BC,YAAY,EAAEb,KAAK,CAACc,OAAO,CAAC,KAAK,CAAC;IAClCC,UAAU,EAAE;EACd,CAAC;EACDC,YAAY,EAAE;IACZC,WAAW,EAAEjB,KAAK,CAACW,MAAM,CAACO,IAAI,CAAC,GAAG,CAAC;IACnCC,WAAW,EAAEnB,KAAK,CAACoB,YAAY,CAACC,IAAI;IACpCC,YAAY,EAAEtB,KAAK,CAACoB,YAAY,CAACG;EACnC,CAAC;EACDC,KAAK,EAAE;IACLpB,UAAU,EAAEJ,KAAK,CAACK,KAAK,CAACoB,iBAAiB;IACzClB,QAAQ,EAAEP,KAAK,CAACQ,SAAS,CAACkB,EAAE;IAC5BhB,KAAK,EAAEV,KAAK,CAACW,MAAM,CAACO,IAAI,CAAC,GAAG,CAAC;IAC7BS,OAAO,EAAE3B,KAAK,CAAC4B,QAAQ,CAAC,KAAK,CAAC;IAC9BC,iBAAiB,EAAE,KAAK;IACxBC,SAAS,EAAE;EACb,CAAC;EACDC,SAAS,EAAE;IACTC,SAAS,EAAE,UAAU;IACrBC,SAAS,EAAEjC,KAAK,CAACc,OAAO,CAAC,KAAK,CAAC;IAC/BJ,KAAK,EAAEV,KAAK,CAACW,MAAM,CAACO,IAAI,CAAC,GAAG,CAAC;IAC7BX,QAAQ,EAAEP,KAAK,CAACQ,SAAS,CAACkB;EAC5B,CAAC;EACDQ,SAAS,EAAE;IACTxB,KAAK,EAAEV,KAAK,CAACW,MAAM,CAACwB,GAAG,CAAC,GAAG,CAAC;IAC5B5B,QAAQ,EAAEP,KAAK,CAACQ,SAAS,CAACkB,EAAE;IAC5BO,SAAS,EAAEjC,KAAK,CAACc,OAAO,CAAC,KAAK;EAChC;AACF,CAAC,CAAC;AAEF,SAASb,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { Modal, View } from "react-native";
|
|
8
|
+
|
|
9
|
+
// components
|
|
10
|
+
import Box from "../../box/index.js";
|
|
11
|
+
import Typography from "../../typography/index.js";
|
|
12
|
+
import Button from "../../button/index.js";
|
|
13
|
+
import MaintenanceDescriptionInput from "../../maintenance-description-input/index.js";
|
|
14
|
+
|
|
15
|
+
// commons / svg
|
|
16
|
+
import { Icons } from "../../../common/icons-svg/index.js";
|
|
17
|
+
|
|
18
|
+
// typings
|
|
19
|
+
|
|
20
|
+
import { asBaseComponent } from "../../../@types/as-base-component.js";
|
|
21
|
+
|
|
22
|
+
// styles
|
|
23
|
+
import { theme } from "../../../styles/theme/theme.js";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
|
+
const MAX_LEN = 150;
|
|
26
|
+
const ModalActivityReason = ({
|
|
27
|
+
visible,
|
|
28
|
+
onClose,
|
|
29
|
+
modalConfirm,
|
|
30
|
+
textTitle
|
|
31
|
+
}) => {
|
|
32
|
+
const [textInput, setTextInput] = React.useState("");
|
|
33
|
+
const messaError = textInput.length >= MAX_LEN ? `Limite máximo de ${MAX_LEN} caracteres atingido!` : "";
|
|
34
|
+
return /*#__PURE__*/_jsx(Modal, {
|
|
35
|
+
animationType: "fade",
|
|
36
|
+
transparent: true,
|
|
37
|
+
visible: visible,
|
|
38
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
39
|
+
style: {
|
|
40
|
+
flex: 1,
|
|
41
|
+
justifyContent: "center",
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
backgroundColor: theme.shadows.z1
|
|
44
|
+
},
|
|
45
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
46
|
+
width: "90%",
|
|
47
|
+
backgroundColor: theme.colors.orange[500],
|
|
48
|
+
borderStyled: {
|
|
49
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
50
|
+
},
|
|
51
|
+
paddingStyle: {
|
|
52
|
+
paddingLeft: theme.paddings["2xs"],
|
|
53
|
+
paddingRight: theme.paddings["2xs"],
|
|
54
|
+
paddingTop: theme.paddings.sm,
|
|
55
|
+
paddingBottom: theme.paddings.sm
|
|
56
|
+
},
|
|
57
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
|
58
|
+
marginStyle: {
|
|
59
|
+
marginBottom: 10,
|
|
60
|
+
marginLeft: 4
|
|
61
|
+
},
|
|
62
|
+
flexStyle: {
|
|
63
|
+
flexDirection: "row",
|
|
64
|
+
alignItems: "center"
|
|
65
|
+
},
|
|
66
|
+
children: [/*#__PURE__*/_jsx(Icons, {
|
|
67
|
+
icon: "EXCLAMATION_TRIANGLE",
|
|
68
|
+
color: theme.colors.orange[500],
|
|
69
|
+
background: theme.colors.neutral[300],
|
|
70
|
+
size: 22
|
|
71
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
72
|
+
text: `${textTitle ?? "Motivo da exclusão"}`,
|
|
73
|
+
color: theme.colors.neutral[25],
|
|
74
|
+
marginLeft: theme.margins["2xs"],
|
|
75
|
+
fontFamily: theme.fonts.inter_bold_700,
|
|
76
|
+
size: theme.fontSizes.lg
|
|
77
|
+
})]
|
|
78
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
79
|
+
backgroundColor: theme.colors.neutral[300],
|
|
80
|
+
paddingStyle: {
|
|
81
|
+
padding: theme.paddings.xs
|
|
82
|
+
},
|
|
83
|
+
borderStyled: {
|
|
84
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
85
|
+
},
|
|
86
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
87
|
+
width: "100%",
|
|
88
|
+
children: /*#__PURE__*/_jsx(MaintenanceDescriptionInput, {
|
|
89
|
+
label: `${textTitle || "Motivo da exclusão"}`,
|
|
90
|
+
placeholderTextColor: theme.colors.gray[700],
|
|
91
|
+
placeholder: "Motivo da exclus\xE3o",
|
|
92
|
+
onChangeText: setTextInput,
|
|
93
|
+
error: messaError
|
|
94
|
+
})
|
|
95
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
96
|
+
marginStyle: {
|
|
97
|
+
marginTop: 4
|
|
98
|
+
},
|
|
99
|
+
flexStyle: {
|
|
100
|
+
flexDirection: "row",
|
|
101
|
+
justifyContent: "space-between"
|
|
102
|
+
},
|
|
103
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
104
|
+
title: "CANCELAR",
|
|
105
|
+
onPress: onClose,
|
|
106
|
+
width: "48%",
|
|
107
|
+
height: 40,
|
|
108
|
+
isLoading: false,
|
|
109
|
+
disabled: false,
|
|
110
|
+
backgroundColor: theme.colors.neutral[300],
|
|
111
|
+
buttonTextStyle: {
|
|
112
|
+
color: theme.colors.blue[100],
|
|
113
|
+
fontFamily: "Inter-Medium",
|
|
114
|
+
fontSize: theme.fontSizes.xs,
|
|
115
|
+
fontWeight: "500"
|
|
116
|
+
},
|
|
117
|
+
flexStyle: {
|
|
118
|
+
flexDirection: "row",
|
|
119
|
+
alignItems: "center",
|
|
120
|
+
justifyContent: "center",
|
|
121
|
+
textAlign: "center"
|
|
122
|
+
},
|
|
123
|
+
borderStyled: {
|
|
124
|
+
borderWidth: theme.borderWidths.thin,
|
|
125
|
+
borderColor: theme.colors.blue[100],
|
|
126
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
127
|
+
}
|
|
128
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
129
|
+
title: "CONFIRMAR",
|
|
130
|
+
onPress: () => {
|
|
131
|
+
modalConfirm(textInput);
|
|
132
|
+
onClose();
|
|
133
|
+
},
|
|
134
|
+
width: "48%",
|
|
135
|
+
height: 40,
|
|
136
|
+
isLoading: false,
|
|
137
|
+
disabled: false,
|
|
138
|
+
backgroundColor: theme.colors.blue[500],
|
|
139
|
+
buttonTextStyle: {
|
|
140
|
+
color: theme.colors.neutral[25],
|
|
141
|
+
fontFamily: "Inter-Medium",
|
|
142
|
+
fontSize: theme.fontSizes.xs,
|
|
143
|
+
fontWeight: "500"
|
|
144
|
+
},
|
|
145
|
+
flexStyle: {
|
|
146
|
+
flexDirection: "row",
|
|
147
|
+
alignItems: "center",
|
|
148
|
+
justifyContent: "center",
|
|
149
|
+
textAlign: "center"
|
|
150
|
+
},
|
|
151
|
+
borderStyled: {
|
|
152
|
+
borderWidth: theme.borderWidths.thin,
|
|
153
|
+
borderColor: theme.colors.blue[100],
|
|
154
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
155
|
+
}
|
|
156
|
+
})]
|
|
157
|
+
})]
|
|
158
|
+
})]
|
|
159
|
+
})
|
|
160
|
+
})
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
ModalActivityReason.displayName = "ModalActivityReason";
|
|
164
|
+
export default asBaseComponent(ModalActivityReason);
|
|
165
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Modal","View","Box","Typography","Button","MaintenanceDescriptionInput","Icons","asBaseComponent","theme","jsx","_jsx","jsxs","_jsxs","MAX_LEN","ModalActivityReason","visible","onClose","modalConfirm","textTitle","textInput","setTextInput","useState","messaError","length","animationType","transparent","children","style","flex","justifyContent","alignItems","backgroundColor","shadows","z1","width","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","marginLeft","flexStyle","flexDirection","icon","color","background","neutral","size","text","margins","fontFamily","fonts","inter_bold_700","fontSizes","lg","padding","xs","label","placeholderTextColor","gray","placeholder","onChangeText","error","marginTop","title","onPress","height","isLoading","disabled","buttonTextStyle","blue","fontSize","fontWeight","textAlign","borderWidth","thin","borderColor","displayName"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-activity-reason/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,QAAQ,cAAc;;AAE1C;AACA,OAAOC,GAAG,MAAM,oBAAW;AAC3B,OAAOC,UAAU,MAAM,2BAAkB;AACzC,OAAOC,MAAM,MAAM,uBAAc;AACjC,OAAOC,2BAA2B,MAAM,8CAAqC;;AAE7E;AACA,SAASC,KAAK,QAAQ,oCAA2B;;AAEjD;;AAEA,SAASC,eAAe,QAAQ,sCAAmC;;AAE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AC;gBACvBH,OAAO,CAAC,CAAC;cACX,CAAE;cACFkB,KAAK,EAAE,KAAM;cACb0C,MAAM,EAAE,EAAG;cACXC,SAAS,EAAE,KAAM;cACjBC,QAAQ,EAAE,KAAM;cAChB/C,eAAe,EAAEvB,KAAK,CAAC2B,MAAM,CAAC6C,IAAI,CAAC,GAAG,CAAE;cACxCD,eAAe,EAAE;gBACfzB,KAAK,EAAE9C,KAAK,CAAC2B,MAAM,CAACqB,OAAO,CAAC,EAAE,CAAC;gBAC/BI,UAAU,EAAE,cAAc;gBAC1BqB,QAAQ,EAAEzE,KAAK,CAACuD,SAAS,CAACG,EAAE;gBAC5BgB,UAAU,EAAE;cACd,CAAE;cACF/B,SAAS,EAAE;gBACTC,aAAa,EAAE,KAAK;gBACpBtB,UAAU,EAAE,QAAQ;gBACpBD,cAAc,EAAE,QAAQ;gBACxBsD,SAAS,EAAE;cACb,CAAE;cACF9C,YAAY,EAAE;gBACZ+C,WAAW,EAAE5E,KAAK,CAAC+B,YAAY,CAAC8C,IAAI;gBACpCC,WAAW,EAAE9E,KAAK,CAAC2B,MAAM,CAAC6C,IAAI,CAAC,GAAG,CAAC;gBACnC1C,YAAY,EAAE9B,KAAK,CAAC+B,YAAY,CAACC;cACnC;YAAE,CACH,CAAC;UAAA,CACC,CAAC;QAAA,CACH,CAAC;MAAA,CACH;IAAC,CACF;EAAC,CACF,CAAC;AAEZ,CAAC;AAED1B,mBAAmB,CAACyE,WAAW,GAAG,qBAAqB;AAEvD,eAAehF,eAAe,CAACO,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-activity-reason/interface.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
const OPTIONS = [{
|
|
7
|
+
label: "Disp com veículo parado",
|
|
8
|
+
value: "option1"
|
|
9
|
+
}, {
|
|
10
|
+
label: "Operação com veículo",
|
|
11
|
+
value: "option2"
|
|
12
|
+
}, {
|
|
13
|
+
label: "Em carga",
|
|
14
|
+
value: "option3"
|
|
15
|
+
}, {
|
|
16
|
+
label: "Em descarga",
|
|
17
|
+
value: "option4"
|
|
18
|
+
}];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* EXPORTS
|
|
22
|
+
*/
|
|
23
|
+
export { OPTIONS };
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["OPTIONS","label","value"],"sourceRoot":"..\\..\\..\\..\\..\\..\\src","sources":["components/modals/modal-create-activitie/helpers/index.ts"],"mappings":";;AAAA;AACA;AACA;AACA,MAAMA,OAAO,GAAG,CACd;EAAEC,KAAK,EAAE,yBAAyB;EAAEC,KAAK,EAAE;AAAU,CAAC,EACtD;EAAED,KAAK,EAAE,sBAAsB;EAAEC,KAAK,EAAE;AAAU,CAAC,EACnD;EAAED,KAAK,EAAE,UAAU;EAAEC,KAAK,EAAE;AAAU,CAAC,EACvC;EAAED,KAAK,EAAE,aAAa;EAAEC,KAAK,EAAE;AAAU,CAAC,CAClC;;AAEV;AACA;AACA;AACA,SAASF,OAAO","ignoreList":[]}
|