jornada-ui 0.4.10 → 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 +7 -6
- package/lib/commonjs/components/supply-error-card/index.js.map +1 -1
- 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 +12 -12
- package/lib/commonjs/stories/supply-error-card/supply-error-card.stories.js.map +1 -1
- 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 +7 -6
- package/lib/module/components/supply-error-card/index.js.map +1 -1
- 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 +12 -12
- package/lib/module/stories/supply-error-card/supply-error-card.stories.js.map +1 -1
- 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 +3 -8
- 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 +3 -8
- 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 +10 -6
- package/src/components/supply-error-card/interface.d.ts +3 -9
- 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 +12 -12
- package/src/stories/trip-details-card/trip-details-card.stories.tsx +38 -5
- package/src/styles/theme/theme.ts +1 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React, { forwardRef, useMemo, useState } from "react";
|
|
7
|
+
import { View, Text, TouchableOpacity, Modal } from "react-native";
|
|
8
|
+
import DateTimePicker from "@react-native-community/datetimepicker";
|
|
9
|
+
|
|
10
|
+
// commons / svg
|
|
11
|
+
import { Icons } from "../../../common/icons-svg/index.js";
|
|
12
|
+
|
|
13
|
+
// typings
|
|
14
|
+
import { asBaseComponent } from "../../../@types/as-base-component.js";
|
|
15
|
+
// styles
|
|
16
|
+
import { styles } from "./styles.js";
|
|
17
|
+
import { theme } from "../../../styles/theme/theme.js";
|
|
18
|
+
|
|
19
|
+
/** formatadores no mesmo estilo simples dos seus componentes */
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
function fmtDate(d) {
|
|
22
|
+
const dd = String(d.getDate()).padStart(2, "0");
|
|
23
|
+
const mm = String(d.getMonth() + 1).padStart(2, "0");
|
|
24
|
+
const yyyy = d.getFullYear();
|
|
25
|
+
return `${dd}/${mm}/${yyyy}`;
|
|
26
|
+
}
|
|
27
|
+
function fmtTime(d) {
|
|
28
|
+
const hh = String(d.getHours()).padStart(2, "0");
|
|
29
|
+
const mi = String(d.getMinutes()).padStart(2, "0");
|
|
30
|
+
return `${hh}:${mi}`;
|
|
31
|
+
}
|
|
32
|
+
const InputDateTime = /*#__PURE__*/forwardRef((props, ref) => {
|
|
33
|
+
const {
|
|
34
|
+
mode,
|
|
35
|
+
titleLabel,
|
|
36
|
+
sizeTitleLabel,
|
|
37
|
+
colortitleLabel,
|
|
38
|
+
backgroundColor,
|
|
39
|
+
value,
|
|
40
|
+
onChange,
|
|
41
|
+
placeholder = mode === "date" ? "Selecione uma data" : "Selecione um horário",
|
|
42
|
+
minimumDate,
|
|
43
|
+
maximumDate,
|
|
44
|
+
disabled,
|
|
45
|
+
formatDate,
|
|
46
|
+
formatTime,
|
|
47
|
+
testID
|
|
48
|
+
} = props;
|
|
49
|
+
|
|
50
|
+
// estado interno quando o componente não é controlado
|
|
51
|
+
const [inner, setInner] = useState(value ?? new Date());
|
|
52
|
+
const [visible, setVisible] = useState(false);
|
|
53
|
+
const current = value ?? inner;
|
|
54
|
+
const human = useMemo(() => {
|
|
55
|
+
if (!current) return "";
|
|
56
|
+
return mode === "date" ? (formatDate ?? fmtDate)(current) : (formatTime ?? fmtTime)(current);
|
|
57
|
+
}, [current, mode, formatDate, formatTime]);
|
|
58
|
+
const styleProps = {
|
|
59
|
+
...props,
|
|
60
|
+
titleLabel,
|
|
61
|
+
sizeTitleLabel,
|
|
62
|
+
colortitleLabel,
|
|
63
|
+
backgroundColor
|
|
64
|
+
};
|
|
65
|
+
function commit(next) {
|
|
66
|
+
if (!value) setInner(next);
|
|
67
|
+
onChange?.(next);
|
|
68
|
+
setVisible(false);
|
|
69
|
+
}
|
|
70
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
71
|
+
ref: ref,
|
|
72
|
+
style: styles(styleProps).container,
|
|
73
|
+
children: [titleLabel ? /*#__PURE__*/_jsx(Text, {
|
|
74
|
+
style: styles(styleProps).label,
|
|
75
|
+
children: titleLabel
|
|
76
|
+
}) : null, /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
77
|
+
testID: testID ?? "input-date-time",
|
|
78
|
+
style: styles(styleProps).selectBox,
|
|
79
|
+
onPress: () => !disabled && setVisible(true),
|
|
80
|
+
disabled: disabled,
|
|
81
|
+
children: [/*#__PURE__*/_jsx(Icons, {
|
|
82
|
+
size: theme.fontSizes["md"],
|
|
83
|
+
color: theme.colors.blue[500],
|
|
84
|
+
icon: mode === "date" ? "CALENDAR" : "CALENDAR",
|
|
85
|
+
style: styles(styleProps).iconStandard
|
|
86
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
87
|
+
style: human ? styles(styleProps).selectedText : styles(styleProps).placeholderText,
|
|
88
|
+
children: human || placeholder
|
|
89
|
+
})]
|
|
90
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
91
|
+
testID: "modal-container",
|
|
92
|
+
visible: visible,
|
|
93
|
+
transparent: true,
|
|
94
|
+
animationType: "fade",
|
|
95
|
+
onRequestClose: () => setVisible(false),
|
|
96
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
97
|
+
style: styles(styleProps).modalOverlay,
|
|
98
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
99
|
+
style: styles(styleProps).modalContainer,
|
|
100
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
101
|
+
style: {
|
|
102
|
+
width: "100%",
|
|
103
|
+
alignItems: "flex-end"
|
|
104
|
+
},
|
|
105
|
+
children: /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
106
|
+
testID: "close-icon",
|
|
107
|
+
onPress: () => setVisible(false),
|
|
108
|
+
children: /*#__PURE__*/_jsx(Icons, {
|
|
109
|
+
size: theme.fontSizes["md"],
|
|
110
|
+
color: theme.colors.blue[500],
|
|
111
|
+
icon: "CLOSED"
|
|
112
|
+
})
|
|
113
|
+
})
|
|
114
|
+
}), /*#__PURE__*/_jsx(DateTimePicker, {
|
|
115
|
+
value: current ?? new Date(),
|
|
116
|
+
mode: mode,
|
|
117
|
+
display: "default",
|
|
118
|
+
onChange: (_e, selected) => {
|
|
119
|
+
if (selected) commit(selected);else setVisible(false);
|
|
120
|
+
},
|
|
121
|
+
minimumDate: minimumDate,
|
|
122
|
+
maximumDate: maximumDate
|
|
123
|
+
})]
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
export default asBaseComponent(InputDateTime);
|
|
130
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useMemo","useState","View","Text","TouchableOpacity","Modal","DateTimePicker","Icons","asBaseComponent","styles","theme","jsx","_jsx","jsxs","_jsxs","fmtDate","d","dd","String","getDate","padStart","mm","getMonth","yyyy","getFullYear","fmtTime","hh","getHours","mi","getMinutes","InputDateTime","props","ref","mode","titleLabel","sizeTitleLabel","colortitleLabel","backgroundColor","value","onChange","placeholder","minimumDate","maximumDate","disabled","formatDate","formatTime","testID","inner","setInner","Date","visible","setVisible","current","human","styleProps","commit","next","style","container","children","label","selectBox","onPress","size","fontSizes","color","colors","blue","icon","iconStandard","selectedText","placeholderText","transparent","animationType","onRequestClose","modalOverlay","modalContainer","width","alignItems","display","_e","selected"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC5D,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,QAAQ,cAAc;AAClE,OAAOC,cAAc,MAAM,wCAAwC;;AAEnE;AACA,SAASC,KAAK,QAAQ,oCAA2B;;AAEjD;AACA,SAASC,eAAe,QAAQ,sCAAmC;AAGnE;AACA,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,KAAK,QAAQ,gCAA6B;;AAEnD;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,SAASC,OAAOA,CAACC,CAAO,EAAE;EACxB,MAAMC,EAAE,GAAGC,MAAM,CAACF,CAAC,CAACG,OAAO,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;EAC/C,MAAMC,EAAE,GAAGH,MAAM,CAACF,CAAC,CAACM,QAAQ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AAE;YAC7BhB,IAAI,EAAEA,IAAK;YACX8C,OAAO,EAAC,SAAS;YACjBxC,QAAQ,EAAEA,CAACyC,EAAO,EAAEC,QAAe,KAAK;cACtC,IAAIA,QAAQ,EAAE1B,MAAM,CAAC0B,QAAQ,CAAC,CAAC,KAC1B9B,UAAU,CAAC,KAAK,CAAC;YACxB,CAAE;YACFV,WAAW,EAAEA,WAAY;YACzBC,WAAW,EAAEA;UAAY,CAC1B,CAAC;QAAA,CACE;MAAC,CACH;IAAC,CACF,CAAC;EAAA,CACJ,CAAC;AAEX,CAAC,CAAC;AAEF,eAAelC,eAAe,CAACsB,aAAa,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/interface.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
container: {
|
|
7
|
+
width: "100%",
|
|
8
|
+
marginBottom: 16,
|
|
9
|
+
opacity: props.disabled ? 0.6 : 1
|
|
10
|
+
},
|
|
11
|
+
label: {
|
|
12
|
+
fontSize: props.sizeTitleLabel ?? 16,
|
|
13
|
+
fontWeight: "bold",
|
|
14
|
+
color: props.colortitleLabel ?? theme.colors.black[100],
|
|
15
|
+
marginBottom: 5
|
|
16
|
+
},
|
|
17
|
+
selectBox: {
|
|
18
|
+
flexDirection: "row",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "center",
|
|
21
|
+
width: "100%",
|
|
22
|
+
height: 45,
|
|
23
|
+
borderWidth: 1,
|
|
24
|
+
borderColor: theme.colors.gray[700],
|
|
25
|
+
borderRadius: 10,
|
|
26
|
+
backgroundColor: props.backgroundColor ?? theme.colors.neutral[25],
|
|
27
|
+
paddingHorizontal: 10,
|
|
28
|
+
position: "relative"
|
|
29
|
+
},
|
|
30
|
+
selectedText: {
|
|
31
|
+
flex: 1,
|
|
32
|
+
fontSize: 14,
|
|
33
|
+
textAlign: "center",
|
|
34
|
+
color: theme.colors.gray[700]
|
|
35
|
+
},
|
|
36
|
+
placeholderText: {
|
|
37
|
+
flex: 1,
|
|
38
|
+
textAlign: "center",
|
|
39
|
+
fontSize: 14,
|
|
40
|
+
color: theme.colors.gray[700]
|
|
41
|
+
},
|
|
42
|
+
modalOverlay: {
|
|
43
|
+
flex: 1,
|
|
44
|
+
backgroundColor: "rgba(0,0,0,0.5)",
|
|
45
|
+
justifyContent: "center",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
padding: 24
|
|
48
|
+
},
|
|
49
|
+
modalContainer: {
|
|
50
|
+
width: "100%",
|
|
51
|
+
backgroundColor: theme.colors.neutral[25],
|
|
52
|
+
borderRadius: 10,
|
|
53
|
+
padding: 15,
|
|
54
|
+
alignItems: "center"
|
|
55
|
+
},
|
|
56
|
+
iconStandard: {
|
|
57
|
+
position: "absolute",
|
|
58
|
+
left: 10
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export { styles };
|
|
62
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","styles","props","create","container","width","marginBottom","opacity","disabled","label","fontSize","sizeTitleLabel","fontWeight","color","colortitleLabel","colors","black","selectBox","flexDirection","alignItems","justifyContent","height","borderWidth","borderColor","gray","borderRadius","backgroundColor","neutral","paddingHorizontal","position","selectedText","flex","textAlign","placeholderText","modalOverlay","padding","modalContainer","iconStandard","left"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,gCAA6B;AAGnD,MAAMC,MAAM,GAAIC,KAA0B,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E,QAAQ;IACxBD,UAAU,EAAE,QAAQ;IACpBgB,OAAO,EAAE;EACX,CAAC;EACDC,cAAc,EAAE;IACd/B,KAAK,EAAE,MAAM;IACbqB,eAAe,EAAE1B,KAAK,CAACe,MAAM,CAACY,OAAO,CAAC,EAAE,CAAC;IACzCF,YAAY,EAAE,EAAE;IAChBU,OAAO,EAAE,EAAE;IACXhB,UAAU,EAAE;EACd,CAAC;EACDkB,YAAY,EAAE;IACZR,QAAQ,EAAE,UAAU;IACpBS,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEJ,SAASrC,MAAM","ignoreList":[]}
|
|
@@ -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,YAA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AAM,IAAIE,CAAC,CAACW,SAAS,EACtBZ,UAAU,IAAIC,CAAC,CAACY,0BAA0B,CAC1C;QAAAlB,QAAA,gBAEFxB,IAAA,CAACN,KAAK;UACJiD,IAAI,EAAE,WAAY;UAClBC,IAAI,EAAE,EAAG;UACTC,UAAU,EAAE/C,KAAK,CAACgD,MAAM,CAACC,IAAI,CAAC,GAAG,CAAE;UACnCC,KAAK,EAAElD,KAAK,CAACgD,MAAM,CAACC,IAAI,CAAC,GAAG;QAAE,CAC/B,CAAC,eAEF7C,KAAA,CAACZ,IAAI;UAACiD,KAAK,EAAET,CAAC,CAACmB,aAAc;UAAAzB,QAAA,gBAC3BxB,IAAA,CAACT,IAAI;YAACgD,KAAK,EAAE,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"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,KAAK,QAAQ,6BAA0B;AAIhD,MAAMC,MAAM,GAAGA,CAACC,KAAoC,GAAG,CAAC,CAAC,KACvDH,UAAU,CAACI,MAAM,CAAC;EAChBC,kBAAkB,EAAE;IAClBC,KAAK,EAAE,MAAM;IACbC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE,CAAC;IACZC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE,CAAC;IACpBC,OAAO,EAAEV,KAAK,CAACW,QAAQ,GAAG,GAAG,GAAG;EAClC,CAAC;EAEDC,0BAA0B,EAAE;IAC1BC,eAAe,EAAEf,KAAK,CAACgB,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC;IACxCC,YAAY,EAAE;EAChB,CAAC;EAEDC,SAAS,EAAE;IACTC,iBAAiB,EAAE,CAAC;IACpBC,iBAAiB,EAAEnB,KAAK,CAACoB,UAAU,GAC/B,aAAa,GACbtB,KAAK,CAACgB,MAAM,CAACO,IAAI,CAAC,GAAG;EAC3B,CAAC;EAEDC,KAAK,EAAE;IACLC,KAAK,EAAEvB,KAAK,CAACwB,UAAU,IAAI1B,KAAK,CAACgB,MAAM,CAACW,KAAK,CAAC,EAAE,CAAC;IACjDC,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,EAAE;IACdC,QAAQ,EAAE9B,KAAK,CAAC+B,SAAS,CAACC,EAAE;IAC5BC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAElC,KAAK,CAACmC,OAAO,CAACC;EAC5B,CAAC;EAEDC,aAAa,EAAE;IACbZ,KAAK,EAAEzB,KAAK,CAACgB,MAAM,CAACsB,OAAO,CAAC,EAAE,CAAC;IAC/BL,UAAU,EAAE;EACd,CAAC;EAEDM,gBAAgB,EAAE;IAChBd,KAAK,EAAEvB,KAAK,CAACsC,oBAAoB,IAAIxC,KAAK,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,S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":[],"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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AAa,EAAE,KAAK;QAAEC,cAAc,EAAElB,KAAK,GAAG,eAAe,GAAG;MAAW,CAAE;MAC1FmB,WAAW,EAAE;QAAEC,YAAY,EAAE;MAAG,CAAE;MAAAX,QAAA,GAEjCT,KAAK,iBAAIP,IAAA,CAACN,IAAI;QAACuB,KAAK,EAAEpB,WAAW,CAAC+B,SAAU;QAAAZ,QAAA,EAAET;MAAK,CAAO,CAAC,eAC5DP,IAAA,CAACN,IAAI;QAACuB,KAAK,EAAEpB,WAAW,CAACgC,SAAU;QAAAb,QAAA,EAAE,GAAGN,IAAI,CAACoB,MAAM,IAAI3B,UAAU;MAAE,CAAO,CAAC;IAAA,CACxE,CAAC;EAAA,CACF,CAAC;AAEX,CACF,CAAC;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,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