jornada-ui 0.4.11 → 0.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -31
- package/lib/commonjs/common/icons-svg/bluetooth/index.js +45 -27
- package/lib/commonjs/common/icons-svg/bluetooth/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/constants/index.js +7 -5
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/index.js +19 -4
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/plus-container/index.js +42 -0
- package/lib/commonjs/common/icons-svg/plus-container/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/trash/index.js +41 -0
- package/lib/commonjs/common/icons-svg/trash/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/components/activite-row/index.js +137 -0
- package/lib/commonjs/components/activity-step/components/activite-row/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/index.js +77 -0
- package/lib/commonjs/components/activity-step/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/interface.js +6 -0
- package/lib/commonjs/components/activity-step/interface.js.map +1 -0
- package/lib/commonjs/components/activity-step/styles.js +86 -0
- package/lib/commonjs/components/activity-step/styles.js.map +1 -0
- package/lib/commonjs/components/card-scheduled-journey/index.js +8 -6
- package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/commonjs/components/inputs/input-date-time/index.js +136 -0
- package/lib/commonjs/components/inputs/input-date-time/index.js.map +1 -0
- package/lib/commonjs/components/inputs/input-date-time/interface.d.js +2 -0
- package/lib/commonjs/components/inputs/input-date-time/interface.d.js.map +1 -0
- package/lib/commonjs/components/inputs/input-date-time/styles.js +66 -0
- package/lib/commonjs/components/inputs/input-date-time/styles.js.map +1 -0
- package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js +25 -0
- package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
- package/lib/commonjs/components/list-devices/index.js +97 -0
- package/lib/commonjs/components/list-devices/index.js.map +1 -0
- package/lib/commonjs/components/list-devices/interface.d.js +2 -0
- package/lib/commonjs/components/list-devices/interface.d.js.map +1 -0
- package/lib/commonjs/components/list-devices/styles.js +60 -0
- package/lib/commonjs/components/list-devices/styles.js.map +1 -0
- package/lib/commonjs/components/list-supplies/index.js +171 -0
- package/lib/commonjs/components/list-supplies/index.js.map +1 -0
- package/lib/commonjs/components/list-supplies/interface.d.js +2 -0
- package/lib/commonjs/components/list-supplies/interface.d.js.map +1 -0
- package/lib/commonjs/components/maintenance-description-input/index.js +3 -0
- package/lib/commonjs/components/maintenance-description-input/index.js.map +1 -1
- package/lib/commonjs/components/maintenance-description-input/styles.js +1 -1
- package/lib/commonjs/components/maintenance-description-input/styles.js.map +1 -1
- package/lib/commonjs/components/modals/modal-activity-reason/index.js +170 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js +27 -0
- package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/index.js +203 -0
- package/lib/commonjs/components/modals/modal-create-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/interface.js +2 -0
- package/lib/commonjs/components/modals/modal-create-activitie/interface.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/styles.js +42 -0
- package/lib/commonjs/components/modals/modal-create-activitie/styles.js.map +1 -0
- package/lib/commonjs/components/modals/modal-exclude-activitie/index.js +2 -0
- package/lib/commonjs/components/modals/modal-exclude-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/index.js +242 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-to-confimations/index.js +182 -0
- package/lib/commonjs/components/modals/modal-to-confimations/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-to-confimations/interface.js +2 -0
- package/lib/commonjs/components/modals/modal-to-confimations/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js +80 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js +34 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/commonjs/components/selects/select-option/index.js +4 -2
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/styles.js +6 -7
- package/lib/commonjs/components/selects/select-option/styles.js.map +1 -1
- package/lib/commonjs/components/supply-error-card/index.js +6 -6
- package/lib/commonjs/components/toast-message/index.js +8 -7
- package/lib/commonjs/components/toast-message/index.js.map +1 -1
- package/lib/commonjs/components/travel-history/index.js +7 -7
- package/lib/commonjs/components/travel-history/index.js.map +1 -1
- package/lib/commonjs/components/trip-details-card/index.js +94 -13
- package/lib/commonjs/components/trip-details-card/index.js.map +1 -1
- package/lib/commonjs/components/typography/index.js +5 -5
- package/lib/commonjs/components/typography/index.js.map +1 -1
- package/lib/commonjs/index.js +53 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/list-devices/list-devices.stories.js +146 -0
- package/lib/commonjs/stories/list-devices/list-devices.stories.js.map +1 -0
- package/lib/commonjs/stories/list-supplies/list-supplies.stories.js +69 -0
- package/lib/commonjs/stories/list-supplies/list-supplies.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +63 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +63 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/commonjs/stories/supply-error-card/supply-error-card.stories.js +2 -2
- package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js +39 -6
- package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +1 -0
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/module/common/icons-svg/bluetooth/index.js +45 -27
- package/lib/module/common/icons-svg/bluetooth/index.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +7 -5
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/index.js +19 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/plus-container/index.js +36 -0
- package/lib/module/common/icons-svg/plus-container/index.js.map +1 -0
- package/lib/module/common/icons-svg/trash/index.js +34 -0
- package/lib/module/common/icons-svg/trash/index.js.map +1 -0
- package/lib/module/components/activity-step/components/activite-row/index.js +134 -0
- package/lib/module/components/activity-step/components/activite-row/index.js.map +1 -0
- package/lib/module/components/activity-step/index.js +73 -0
- package/lib/module/components/activity-step/index.js.map +1 -0
- package/lib/module/components/activity-step/interface.js +4 -0
- package/lib/module/components/activity-step/interface.js.map +1 -0
- package/lib/module/components/activity-step/styles.js +83 -0
- package/lib/module/components/activity-step/styles.js.map +1 -0
- package/lib/module/components/card-scheduled-journey/index.js +8 -6
- package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/module/components/inputs/input-date-time/index.js +130 -0
- package/lib/module/components/inputs/input-date-time/index.js.map +1 -0
- package/lib/module/components/inputs/input-date-time/interface.d.js +2 -0
- package/lib/module/components/inputs/input-date-time/interface.d.js.map +1 -0
- package/lib/module/components/inputs/input-date-time/styles.js +62 -0
- package/lib/module/components/inputs/input-date-time/styles.js.map +1 -0
- package/lib/module/components/list-devices/helpers/get-icon-by-status.js +21 -0
- package/lib/module/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
- package/lib/module/components/list-devices/index.js +93 -0
- package/lib/module/components/list-devices/index.js.map +1 -0
- package/lib/module/components/list-devices/interface.d.js +2 -0
- package/lib/module/components/list-devices/interface.d.js.map +1 -0
- package/lib/module/components/list-devices/styles.js +56 -0
- package/lib/module/components/list-devices/styles.js.map +1 -0
- package/lib/module/components/list-supplies/index.js +165 -0
- package/lib/module/components/list-supplies/index.js.map +1 -0
- package/lib/module/components/list-supplies/interface.d.js +2 -0
- package/lib/module/components/list-supplies/interface.d.js.map +1 -0
- package/lib/module/components/maintenance-description-input/index.js +3 -0
- package/lib/module/components/maintenance-description-input/index.js.map +1 -1
- package/lib/module/components/maintenance-description-input/styles.js +1 -1
- package/lib/module/components/maintenance-description-input/styles.js.map +1 -1
- package/lib/module/components/modals/modal-activity-reason/index.js +165 -0
- package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/helpers/index.js +24 -0
- package/lib/module/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/index.js +196 -0
- package/lib/module/components/modals/modal-create-activitie/index.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/interface.js +2 -0
- package/lib/module/components/modals/modal-create-activitie/interface.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/styles.js +39 -0
- package/lib/module/components/modals/modal-create-activitie/styles.js.map +1 -0
- package/lib/module/components/modals/modal-exclude-activitie/index.js +2 -0
- package/lib/module/components/modals/modal-exclude-activitie/index.js.map +1 -0
- package/lib/module/components/modals/modal-journey-rectification/index.js +236 -0
- package/lib/module/components/modals/modal-journey-rectification/index.js.map +1 -0
- package/lib/module/components/modals/modal-journey-rectification/interface.d.js +2 -0
- package/lib/module/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-to-confimations/index.js +179 -0
- package/lib/module/components/modals/modal-to-confimations/index.js.map +1 -0
- package/lib/module/components/modals/modal-to-confimations/interface.js +2 -0
- package/lib/module/components/modals/modal-to-confimations/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/index.js +74 -0
- package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js +4 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js +31 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/module/components/selects/select-option/index.js +4 -2
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/selects/select-option/styles.js +6 -7
- package/lib/module/components/selects/select-option/styles.js.map +1 -1
- package/lib/module/components/supply-error-card/index.js +6 -6
- package/lib/module/components/toast-message/index.js +8 -7
- package/lib/module/components/toast-message/index.js.map +1 -1
- package/lib/module/components/travel-history/index.js +7 -7
- package/lib/module/components/travel-history/index.js.map +1 -1
- package/lib/module/components/trip-details-card/index.js +94 -13
- package/lib/module/components/trip-details-card/index.js.map +1 -1
- package/lib/module/components/typography/index.js +5 -5
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/list-devices/list-devices.stories.js +140 -0
- package/lib/module/stories/list-devices/list-devices.stories.js.map +1 -0
- package/lib/module/stories/list-supplies/list-supplies.stories.js +63 -0
- package/lib/module/stories/list-supplies/list-supplies.stories.js.map +1 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +57 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +57 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/module/stories/supply-error-card/supply-error-card.stories.js +2 -2
- package/lib/module/stories/trip-details-card/trip-details-card.stories.js +39 -6
- package/lib/module/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +1 -0
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts +5 -1
- package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/index.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/activity-step/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts +40 -0
- package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts +75 -0
- package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts +59 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/list-devices/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts +57 -0
- package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/maintenance-description-input/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts +0 -1
- package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/supply-error-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/toast-message/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/trip-details-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts +22 -0
- package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts +5 -1
- package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +2 -0
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts +11 -0
- package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/index.d.ts +17 -0
- package/lib/typescript/module/src/components/activity-step/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/interface.d.ts +40 -0
- package/lib/typescript/module/src/components/activity-step/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/styles.d.ts +75 -0
- package/lib/typescript/module/src/components/activity-step/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +2 -1
- package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts +8 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts +59 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
- package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/index.d.ts +11 -0
- package/lib/typescript/module/src/components/list-devices/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/styles.d.ts +57 -0
- package/lib/typescript/module/src/components/list-devices/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-supplies/index.d.ts +8 -0
- package/lib/typescript/module/src/components/list-supplies/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/maintenance-description-input/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
- package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts +13 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-option/index.d.ts +1 -0
- package/lib/typescript/module/src/components/selects/select-option/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/selects/select-option/styles.d.ts +0 -1
- package/lib/typescript/module/src/components/selects/select-option/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/supply-error-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/toast-message/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/trip-details-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +7 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts +22 -0
- package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/common/icons-svg/bluetooth/index.tsx +51 -24
- package/src/common/icons-svg/constants/index.ts +67 -65
- package/src/common/icons-svg/index.tsx +289 -280
- package/src/common/icons-svg/plus-container/index.tsx +32 -0
- package/src/common/icons-svg/trash/index.tsx +31 -0
- package/src/components/activity-step/components/activite-row/index.tsx +141 -0
- package/src/components/activity-step/index.tsx +73 -0
- package/src/components/activity-step/interface.ts +54 -0
- package/src/components/activity-step/styles.ts +72 -0
- package/src/components/card-scheduled-journey/index.tsx +140 -138
- package/src/components/card-scheduled-journey/interface.d.ts +145 -140
- package/src/components/inputs/input-date-time/index.tsx +133 -0
- package/src/components/inputs/input-date-time/interface.d.ts +25 -0
- package/src/components/inputs/input-date-time/styles.ts +63 -0
- package/src/components/list-devices/helpers/get-icon-by-status.tsx +20 -0
- package/src/components/list-devices/index.tsx +102 -0
- package/src/components/list-devices/interface.d.ts +36 -0
- package/src/components/list-devices/styles.ts +68 -0
- package/src/components/list-supplies/index.tsx +153 -0
- package/src/components/list-supplies/interface.d.ts +9 -0
- package/src/components/maintenance-description-input/index.tsx +1 -0
- package/src/components/maintenance-description-input/styles.ts +1 -1
- package/src/components/modals/modal-activity-reason/index.tsx +168 -0
- package/src/components/modals/modal-activity-reason/interface.d.ts +9 -0
- package/src/components/modals/modal-create-activitie/helpers/index.ts +14 -0
- package/src/components/modals/modal-create-activitie/index.tsx +210 -0
- package/src/components/modals/modal-create-activitie/interface.ts +22 -0
- package/src/components/modals/modal-create-activitie/styles.ts +24 -0
- package/src/components/modals/modal-exclude-activitie/index.ts +0 -0
- package/src/components/modals/modal-journey-rectification/index.tsx +236 -0
- package/src/components/modals/modal-journey-rectification/interface.d.ts +10 -0
- package/src/components/modals/modal-to-confimations/index.tsx +182 -0
- package/src/components/modals/modal-to-confimations/interface.ts +36 -0
- package/src/components/selects/select-date-and-hours/index.tsx +70 -0
- package/src/components/selects/select-date-and-hours/interface.ts +31 -0
- package/src/components/selects/select-date-and-hours/styles.ts +24 -0
- package/src/components/selects/select-option/index.tsx +2 -1
- package/src/components/selects/select-option/interface.d.ts +1 -1
- package/src/components/selects/select-option/styles.ts +74 -75
- package/src/components/supply-error-card/index.tsx +109 -109
- package/src/components/supply-error-card/interface.d.ts +133 -133
- package/src/components/toast-message/index.tsx +75 -74
- package/src/components/travel-history/index.tsx +7 -7
- package/src/components/trip-details-card/index.tsx +89 -12
- package/src/components/trip-details-card/interface.d.ts +4 -1
- package/src/components/typography/index.tsx +78 -78
- package/src/index.tsx +7 -0
- package/src/stories/list-devices/list-devices.stories.tsx +114 -0
- package/src/stories/list-supplies/list-supplies.stories.tsx +66 -0
- package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +60 -0
- package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +60 -0
- package/src/stories/supply-error-card/supply-error-card.stories.tsx +72 -72
- package/src/stories/trip-details-card/trip-details-card.stories.tsx +38 -5
- package/src/styles/theme/theme.ts +1 -0
|
@@ -1,75 +1,74 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import { StyleSheet } from "react-native";
|
|
5
|
-
|
|
6
|
-
// typings
|
|
7
|
-
import { type ISelectDropDownProps } from "./interface";
|
|
8
|
-
|
|
9
|
-
// theme
|
|
10
|
-
import { theme } from "../../../styles/theme/theme";
|
|
11
|
-
|
|
12
|
-
const styles = (props: ISelectDropDownProps) =>
|
|
13
|
-
StyleSheet.create({
|
|
14
|
-
container: {
|
|
15
|
-
width: "100%",
|
|
16
|
-
marginBottom: 16,
|
|
17
|
-
},
|
|
18
|
-
label: {
|
|
19
|
-
fontSize: props.sizeTitleLabel ?? 16,
|
|
20
|
-
fontWeight: "bold",
|
|
21
|
-
color: props.colortitleLabel ?? theme.colors.black[100],
|
|
22
|
-
marginBottom: 5,
|
|
23
|
-
},
|
|
24
|
-
selectBox: {
|
|
25
|
-
flexDirection: "row",
|
|
26
|
-
alignItems: "center",
|
|
27
|
-
justifyContent: "space-between",
|
|
28
|
-
width: "100%",
|
|
29
|
-
height: 45,
|
|
30
|
-
borderWidth: 1,
|
|
31
|
-
borderColor: theme.colors.gray[700],
|
|
32
|
-
borderRadius: 10,
|
|
33
|
-
backgroundColor: theme.colors.neutral[25],
|
|
34
|
-
paddingHorizontal: 10,
|
|
35
|
-
},
|
|
36
|
-
selectedText: {
|
|
37
|
-
fontSize: 14,
|
|
38
|
-
color: "#666",
|
|
39
|
-
},
|
|
40
|
-
modalOverlay: {
|
|
41
|
-
flex: 1,
|
|
42
|
-
backgroundColor: "rgba(0,0,0,0.5)",
|
|
43
|
-
justifyContent: "center",
|
|
44
|
-
alignItems: "center",
|
|
45
|
-
padding: 24,
|
|
46
|
-
},
|
|
47
|
-
modalContainer: {
|
|
48
|
-
width: "100%",
|
|
49
|
-
backgroundColor: theme.colors.neutral[25],
|
|
50
|
-
borderRadius: 10,
|
|
51
|
-
padding: 15,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export { styles };
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import { StyleSheet } from "react-native";
|
|
5
|
+
|
|
6
|
+
// typings
|
|
7
|
+
import { type ISelectDropDownProps } from "./interface";
|
|
8
|
+
|
|
9
|
+
// theme
|
|
10
|
+
import { theme } from "../../../styles/theme/theme";
|
|
11
|
+
|
|
12
|
+
const styles = (props: ISelectDropDownProps) =>
|
|
13
|
+
StyleSheet.create({
|
|
14
|
+
container: {
|
|
15
|
+
width: "100%",
|
|
16
|
+
marginBottom: 16,
|
|
17
|
+
},
|
|
18
|
+
label: {
|
|
19
|
+
fontSize: props.sizeTitleLabel ?? 16,
|
|
20
|
+
fontWeight: "bold",
|
|
21
|
+
color: props.colortitleLabel ?? theme.colors.black[100],
|
|
22
|
+
marginBottom: 5,
|
|
23
|
+
},
|
|
24
|
+
selectBox: {
|
|
25
|
+
flexDirection: "row",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
justifyContent: "space-between",
|
|
28
|
+
width: "100%",
|
|
29
|
+
height: 45,
|
|
30
|
+
borderWidth: 1,
|
|
31
|
+
borderColor: theme.colors.gray[700],
|
|
32
|
+
borderRadius: 10,
|
|
33
|
+
backgroundColor: props.backgroundColor ?? theme.colors.neutral[25],
|
|
34
|
+
paddingHorizontal: 10,
|
|
35
|
+
},
|
|
36
|
+
selectedText: {
|
|
37
|
+
fontSize: 14,
|
|
38
|
+
color: "#666",
|
|
39
|
+
},
|
|
40
|
+
modalOverlay: {
|
|
41
|
+
flex: 1,
|
|
42
|
+
backgroundColor: "rgba(0,0,0,0.5)",
|
|
43
|
+
justifyContent: "center",
|
|
44
|
+
alignItems: "center",
|
|
45
|
+
padding: 24,
|
|
46
|
+
},
|
|
47
|
+
modalContainer: {
|
|
48
|
+
width: "100%",
|
|
49
|
+
backgroundColor: theme.colors.neutral[25],
|
|
50
|
+
borderRadius: 10,
|
|
51
|
+
padding: 15,
|
|
52
|
+
},
|
|
53
|
+
option: {
|
|
54
|
+
width: "100%",
|
|
55
|
+
padding: 10,
|
|
56
|
+
alignItems: "flex-start",
|
|
57
|
+
borderBottomWidth: 1,
|
|
58
|
+
borderBottomColor: theme.colors.gray[300],
|
|
59
|
+
},
|
|
60
|
+
optionText: {
|
|
61
|
+
fontSize: 14,
|
|
62
|
+
color: theme.colors.black[100],
|
|
63
|
+
fontWeight: "500",
|
|
64
|
+
},
|
|
65
|
+
closeButtonText: {
|
|
66
|
+
color: theme.colors.neutral[25],
|
|
67
|
+
fontWeight: "bold",
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* EXPORTS
|
|
73
|
+
*/
|
|
74
|
+
export { styles };
|
|
@@ -1,109 +1,109 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IMPORTS
|
|
3
|
-
*/
|
|
4
|
-
import React, { forwardRef, useState } from "react";
|
|
5
|
-
import { TouchableOpacity } from "react-native";
|
|
6
|
-
|
|
7
|
-
// componentes
|
|
8
|
-
import Box from "../box";
|
|
9
|
-
import Typography from "../typography";
|
|
10
|
-
|
|
11
|
-
// commons / icons
|
|
12
|
-
import { Icons } from "../../common/icons-svg";
|
|
13
|
-
|
|
14
|
-
// typings
|
|
15
|
-
import type { SupplyErrorCardProps } from "./interface";
|
|
16
|
-
import { asBaseComponent } from "../../@types/as-base-component";
|
|
17
|
-
|
|
18
|
-
// styles / theme
|
|
19
|
-
import { theme } from "../../styles/theme/theme";
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Componente SupplyErrorCard para a interação da ui.
|
|
23
|
-
*/
|
|
24
|
-
const SupplyErrorCard = forwardRef<any, SupplyErrorCardProps>((props, ref): React.ReactElement => {
|
|
25
|
-
const { backgroundColor, errors, handleOnPress } = props;
|
|
26
|
-
const [isExpanded, setIsExpanded] = useState(false);
|
|
27
|
-
|
|
28
|
-
/**Função para alternar a expansão do card */
|
|
29
|
-
const handleToggleExpand = () => setIsExpanded((prev) => !prev);
|
|
30
|
-
|
|
31
|
-
const firstMessage = errors?.[0];
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
<TouchableOpacity onPress={handleToggleExpand} activeOpacity={0.9}>
|
|
35
|
-
<Box
|
|
36
|
-
ref={ref}
|
|
37
|
-
width={"100%"}
|
|
38
|
-
borderStyled={{
|
|
39
|
-
borderRadius: theme.borderWidths.thick_medium,
|
|
40
|
-
borderWidth: theme.borderWidths.thin_medium,
|
|
41
|
-
borderColor: theme.colors.orange[150],
|
|
42
|
-
}}
|
|
43
|
-
>
|
|
44
|
-
<Box
|
|
45
|
-
width={"100%"}
|
|
46
|
-
backgroundColor={backgroundColor ?? theme.colors.yellow[120]}
|
|
47
|
-
borderStyled={{ borderRadius: theme.borderWidths.thin_bold }}
|
|
48
|
-
flexStyle={{ flexDirection: "row", justifyContent: "space-between" }}
|
|
49
|
-
paddingStyle={{ padding: theme.paddings.xs }}
|
|
50
|
-
>
|
|
51
|
-
<Box width={"10%"}>
|
|
52
|
-
<Icons icon={"EXCLAMATION_TRIANGLE"} size={32} />
|
|
53
|
-
</Box>
|
|
54
|
-
|
|
55
|
-
<Box width={"70%"} flexStyle={{ justifyContent: "center" }}>
|
|
56
|
-
{isExpanded ? (
|
|
57
|
-
errors?.map((error, index) => (
|
|
58
|
-
<TouchableOpacity
|
|
59
|
-
key={error?.id}
|
|
60
|
-
activeOpacity={0.7}
|
|
61
|
-
onPress={() => handleOnPress(error)}
|
|
62
|
-
>
|
|
63
|
-
<Typography
|
|
64
|
-
text={`${index + 1}. ${error.descricao ?? "Sem mensagens de erro"}`}
|
|
65
|
-
color={theme.colors.red[900]}
|
|
66
|
-
size={theme.fontSizes.sm}
|
|
67
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
68
|
-
lineHeight={theme.fontSizes.lg}
|
|
69
|
-
marginBottom={theme.margins.xs}
|
|
70
|
-
/>
|
|
71
|
-
</TouchableOpacity>
|
|
72
|
-
))
|
|
73
|
-
) : (
|
|
74
|
-
<Typography
|
|
75
|
-
text={firstMessage ? `1. ${firstMessage.descricao}` : "Nenhum erro disponível"}
|
|
76
|
-
color={theme.colors.red[900]}
|
|
77
|
-
size={theme.fontSizes.sm}
|
|
78
|
-
fontFamily={theme.fonts.inter_medium_500}
|
|
79
|
-
lineHeight={theme.fontSizes.lg}
|
|
80
|
-
/>
|
|
81
|
-
)}
|
|
82
|
-
</Box>
|
|
83
|
-
|
|
84
|
-
<Box
|
|
85
|
-
width={"10%"}
|
|
86
|
-
flexStyle={{
|
|
87
|
-
alignItems: "flex-end",
|
|
88
|
-
justifyContent: "flex-start",
|
|
89
|
-
textAlign: "center",
|
|
90
|
-
}}
|
|
91
|
-
>
|
|
92
|
-
<Icons
|
|
93
|
-
icon={isExpanded ? "ARROW_CHEVRON_UP" : "ARROW_CHEVRON_DOWN"}
|
|
94
|
-
size={32}
|
|
95
|
-
color={theme.colors.gray[800]}
|
|
96
|
-
/>
|
|
97
|
-
</Box>
|
|
98
|
-
</Box>
|
|
99
|
-
</Box>
|
|
100
|
-
</TouchableOpacity>
|
|
101
|
-
);
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
SupplyErrorCard.displayName = "SupplyErrorCard";
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* EXPORTS
|
|
108
|
-
*/
|
|
109
|
-
export default asBaseComponent(SupplyErrorCard);
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTS
|
|
3
|
+
*/
|
|
4
|
+
import React, { forwardRef, useState } from "react";
|
|
5
|
+
import { TouchableOpacity } from "react-native";
|
|
6
|
+
|
|
7
|
+
// componentes
|
|
8
|
+
import Box from "../box";
|
|
9
|
+
import Typography from "../typography";
|
|
10
|
+
|
|
11
|
+
// commons / icons
|
|
12
|
+
import { Icons } from "../../common/icons-svg";
|
|
13
|
+
|
|
14
|
+
// typings
|
|
15
|
+
import type { SupplyErrorCardProps } from "./interface";
|
|
16
|
+
import { asBaseComponent } from "../../@types/as-base-component";
|
|
17
|
+
|
|
18
|
+
// styles / theme
|
|
19
|
+
import { theme } from "../../styles/theme/theme";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Componente SupplyErrorCard para a interação da ui.
|
|
23
|
+
*/
|
|
24
|
+
const SupplyErrorCard = forwardRef<any, SupplyErrorCardProps>((props, ref): React.ReactElement => {
|
|
25
|
+
const { backgroundColor, errors, handleOnPress } = props;
|
|
26
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
27
|
+
|
|
28
|
+
/**Função para alternar a expansão do card */
|
|
29
|
+
const handleToggleExpand = () => setIsExpanded((prev) => !prev);
|
|
30
|
+
|
|
31
|
+
const firstMessage = errors?.[0];
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<TouchableOpacity onPress={handleToggleExpand} activeOpacity={0.9}>
|
|
35
|
+
<Box
|
|
36
|
+
ref={ref}
|
|
37
|
+
width={"100%"}
|
|
38
|
+
borderStyled={{
|
|
39
|
+
borderRadius: theme.borderWidths.thick_medium,
|
|
40
|
+
borderWidth: theme.borderWidths.thin_medium,
|
|
41
|
+
borderColor: theme.colors.orange[150],
|
|
42
|
+
}}
|
|
43
|
+
>
|
|
44
|
+
<Box
|
|
45
|
+
width={"100%"}
|
|
46
|
+
backgroundColor={backgroundColor ?? theme.colors.yellow[120]}
|
|
47
|
+
borderStyled={{ borderRadius: theme.borderWidths.thin_bold }}
|
|
48
|
+
flexStyle={{ flexDirection: "row", justifyContent: "space-between" }}
|
|
49
|
+
paddingStyle={{ padding: theme.paddings.xs }}
|
|
50
|
+
>
|
|
51
|
+
<Box width={"10%"}>
|
|
52
|
+
<Icons icon={"EXCLAMATION_TRIANGLE"} size={32} />
|
|
53
|
+
</Box>
|
|
54
|
+
|
|
55
|
+
<Box width={"70%"} flexStyle={{ justifyContent: "center" }}>
|
|
56
|
+
{isExpanded ? (
|
|
57
|
+
errors?.map((error, index) => (
|
|
58
|
+
<TouchableOpacity
|
|
59
|
+
key={error?.id}
|
|
60
|
+
activeOpacity={0.7}
|
|
61
|
+
onPress={() => handleOnPress(error)}
|
|
62
|
+
>
|
|
63
|
+
<Typography
|
|
64
|
+
text={`${index + 1}. ${error.descricao ?? "Sem mensagens de erro"}`}
|
|
65
|
+
color={theme.colors.red[900]}
|
|
66
|
+
size={theme.fontSizes.sm}
|
|
67
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
68
|
+
lineHeight={theme.fontSizes.lg}
|
|
69
|
+
marginBottom={theme.margins.xs}
|
|
70
|
+
/>
|
|
71
|
+
</TouchableOpacity>
|
|
72
|
+
))
|
|
73
|
+
) : (
|
|
74
|
+
<Typography
|
|
75
|
+
text={firstMessage ? `1. ${firstMessage.descricao}` : "Nenhum erro disponível"}
|
|
76
|
+
color={theme.colors.red[900]}
|
|
77
|
+
size={theme.fontSizes.sm}
|
|
78
|
+
fontFamily={theme.fonts.inter_medium_500}
|
|
79
|
+
lineHeight={theme.fontSizes.lg}
|
|
80
|
+
/>
|
|
81
|
+
)}
|
|
82
|
+
</Box>
|
|
83
|
+
|
|
84
|
+
<Box
|
|
85
|
+
width={"10%"}
|
|
86
|
+
flexStyle={{
|
|
87
|
+
alignItems: "flex-end",
|
|
88
|
+
justifyContent: "flex-start",
|
|
89
|
+
textAlign: "center",
|
|
90
|
+
}}
|
|
91
|
+
>
|
|
92
|
+
<Icons
|
|
93
|
+
icon={isExpanded ? "ARROW_CHEVRON_UP" : "ARROW_CHEVRON_DOWN"}
|
|
94
|
+
size={32}
|
|
95
|
+
color={theme.colors.gray[800]}
|
|
96
|
+
/>
|
|
97
|
+
</Box>
|
|
98
|
+
</Box>
|
|
99
|
+
</Box>
|
|
100
|
+
</TouchableOpacity>
|
|
101
|
+
);
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
SupplyErrorCard.displayName = "SupplyErrorCard";
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* EXPORTS
|
|
108
|
+
*/
|
|
109
|
+
export default asBaseComponent(SupplyErrorCard);
|
|
@@ -1,133 +1,133 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
2
|
-
/**
|
|
3
|
-
* IMPORTS
|
|
4
|
-
*/
|
|
5
|
-
import { type DimensionValue, type ViewProps } from "react-native";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* INTERFACE
|
|
9
|
-
*/
|
|
10
|
-
type SupplyErrorCardProps = ViewProps & {
|
|
11
|
-
/**Propiedade responsavel por armazenar os error */
|
|
12
|
-
errors?: any[];
|
|
13
|
-
|
|
14
|
-
handleOnPress: (data: any) => void;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* TestID para testes automático e identificação
|
|
18
|
-
*/
|
|
19
|
-
testID?: string;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.
|
|
23
|
-
*/
|
|
24
|
-
borderStyled?: {
|
|
25
|
-
borderStyle?: "solid" | "dotted" | "dashed";
|
|
26
|
-
|
|
27
|
-
borderRadius?: number | DimensionValue;
|
|
28
|
-
borderTopRightRadius?: number | DimensionValue;
|
|
29
|
-
borderTopLeftRadius?: number | DimensionValue;
|
|
30
|
-
borderBottomRightRadius?: number | DimensionValue;
|
|
31
|
-
borderBottomLeftRadius?: number | DimensionValue;
|
|
32
|
-
|
|
33
|
-
borderWidth?: number | DimensionValue;
|
|
34
|
-
borderLeftWidth?: number | DimensionValue;
|
|
35
|
-
borderRightWidth?: number | DimensionValue;
|
|
36
|
-
borderTopWidth?: number | DimensionValue;
|
|
37
|
-
borderBottomWidth?: number | DimensionValue;
|
|
38
|
-
|
|
39
|
-
borderColor?: string;
|
|
40
|
-
borderBottomColor?: string;
|
|
41
|
-
borderLeftColor?: string;
|
|
42
|
-
borderRightColor?: string;
|
|
43
|
-
borderTopColor?: string;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.
|
|
48
|
-
*/
|
|
49
|
-
flexStyle?: {
|
|
50
|
-
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
51
|
-
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
52
|
-
flex?: string | number;
|
|
53
|
-
flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
|
|
54
|
-
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
55
|
-
textAlign?: "auto" | "center" | "left" | "right" | "justify";
|
|
56
|
-
justifyContent?:
|
|
57
|
-
| "flex-start"
|
|
58
|
-
| "flex-end"
|
|
59
|
-
| "center"
|
|
60
|
-
| "space-between"
|
|
61
|
-
| "space-around"
|
|
62
|
-
| "space-evenly";
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).
|
|
67
|
-
*/
|
|
68
|
-
marginStyle?: {
|
|
69
|
-
margin?: number | DimensionValue;
|
|
70
|
-
marginLeft?: number | DimensionValue;
|
|
71
|
-
marginRight?: number | DimensionValue;
|
|
72
|
-
marginTop?: number | DimensionValue;
|
|
73
|
-
marginBottom?: number | DimensionValue;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).
|
|
78
|
-
*/
|
|
79
|
-
paddingStyle?: {
|
|
80
|
-
padding?: number | DimensionValue;
|
|
81
|
-
paddingLeft?: number | DimensionValue;
|
|
82
|
-
paddingRight?: number | DimensionValue;
|
|
83
|
-
paddingTop?: number | DimensionValue;
|
|
84
|
-
paddingBottom?: number | DimensionValue;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.
|
|
89
|
-
*/
|
|
90
|
-
height?: number | DimensionValue;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.
|
|
94
|
-
*/
|
|
95
|
-
width?: number | DimensionValue;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..
|
|
99
|
-
* A Propriedade Background está sendo utilizada para definir a cor de fundo do cabeçalho do card e do ícone check.
|
|
100
|
-
*/
|
|
101
|
-
backgroundColor?: string;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Propriedade texto que sera renderizado pro usuário final
|
|
105
|
-
*/
|
|
106
|
-
text?: string;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.
|
|
110
|
-
*/
|
|
111
|
-
color?: {
|
|
112
|
-
colorSvg?: string;
|
|
113
|
-
colorText?: string;
|
|
114
|
-
colorTextBold?: string;
|
|
115
|
-
colorTextData?: string;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* Propriedade que define o valor a ser pago
|
|
120
|
-
*/
|
|
121
|
-
valor?: number;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Lista de mensagens de erro (renderizadas uma abaixo da outra)
|
|
125
|
-
*/
|
|
126
|
-
messages?: string[];
|
|
127
|
-
erroIds?: number[];
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* EXPORT
|
|
132
|
-
*/
|
|
133
|
-
export type { SupplyErrorCardProps };
|
|
1
|
+
/* eslint-disable no-unused-vars */
|
|
2
|
+
/**
|
|
3
|
+
* IMPORTS
|
|
4
|
+
*/
|
|
5
|
+
import { type DimensionValue, type ViewProps } from "react-native";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* INTERFACE
|
|
9
|
+
*/
|
|
10
|
+
type SupplyErrorCardProps = ViewProps & {
|
|
11
|
+
/**Propiedade responsavel por armazenar os error */
|
|
12
|
+
errors?: any[];
|
|
13
|
+
|
|
14
|
+
handleOnPress: (data: any) => void;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* TestID para testes automático e identificação
|
|
18
|
+
*/
|
|
19
|
+
testID?: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A propriedade CSS abreviada border define a borda de um elemento. Ele define os valores de largura da borda, estilo da borda e cor da borda.
|
|
23
|
+
*/
|
|
24
|
+
borderStyled?: {
|
|
25
|
+
borderStyle?: "solid" | "dotted" | "dashed";
|
|
26
|
+
|
|
27
|
+
borderRadius?: number | DimensionValue;
|
|
28
|
+
borderTopRightRadius?: number | DimensionValue;
|
|
29
|
+
borderTopLeftRadius?: number | DimensionValue;
|
|
30
|
+
borderBottomRightRadius?: number | DimensionValue;
|
|
31
|
+
borderBottomLeftRadius?: number | DimensionValue;
|
|
32
|
+
|
|
33
|
+
borderWidth?: number | DimensionValue;
|
|
34
|
+
borderLeftWidth?: number | DimensionValue;
|
|
35
|
+
borderRightWidth?: number | DimensionValue;
|
|
36
|
+
borderTopWidth?: number | DimensionValue;
|
|
37
|
+
borderBottomWidth?: number | DimensionValue;
|
|
38
|
+
|
|
39
|
+
borderColor?: string;
|
|
40
|
+
borderBottomColor?: string;
|
|
41
|
+
borderLeftColor?: string;
|
|
42
|
+
borderRightColor?: string;
|
|
43
|
+
borderTopColor?: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Propriedades que define a orientação do button que é usada para representar uma página. Na maioria das vezes, esse valores corresponde ao posicionamento alvo da página impressa, se aplicável.
|
|
48
|
+
*/
|
|
49
|
+
flexStyle?: {
|
|
50
|
+
alignItems?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
51
|
+
alignSelf?: "auto" | "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
|
|
52
|
+
flex?: string | number;
|
|
53
|
+
flexDirection?: "column" | "column-reverse" | "row" | "row-reverse";
|
|
54
|
+
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
55
|
+
textAlign?: "auto" | "center" | "left" | "right" | "justify";
|
|
56
|
+
justifyContent?:
|
|
57
|
+
| "flex-start"
|
|
58
|
+
| "flex-end"
|
|
59
|
+
| "center"
|
|
60
|
+
| "space-between"
|
|
61
|
+
| "space-around"
|
|
62
|
+
| "space-evenly";
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* A propriedade margin do CSS define a área de margem nos quatro lados do elemento. É uma abreviação que define todas as margens individuais de uma só vez: margin-top, margin-right (en-US), margin-bottom, e margin-left (en-US).
|
|
67
|
+
*/
|
|
68
|
+
marginStyle?: {
|
|
69
|
+
margin?: number | DimensionValue;
|
|
70
|
+
marginLeft?: number | DimensionValue;
|
|
71
|
+
marginRight?: number | DimensionValue;
|
|
72
|
+
marginTop?: number | DimensionValue;
|
|
73
|
+
marginBottom?: number | DimensionValue;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* A propriedade padding define uma a distância entre o conteúdo de um elemento e suas bordas. É um atalho que evita definir uma distância para cada lado separadamente (padding-top, padding-right, padding-bottom, padding-left).
|
|
78
|
+
*/
|
|
79
|
+
paddingStyle?: {
|
|
80
|
+
padding?: number | DimensionValue;
|
|
81
|
+
paddingLeft?: number | DimensionValue;
|
|
82
|
+
paddingRight?: number | DimensionValue;
|
|
83
|
+
paddingTop?: number | DimensionValue;
|
|
84
|
+
paddingBottom?: number | DimensionValue;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* A propriedade CSS height define a altura de um elemento. A altura de um elemento é a distância do topo da borda superior do elemento ao fundo da borda inferior.
|
|
89
|
+
*/
|
|
90
|
+
height?: number | DimensionValue;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* A propriedade CSS width define a largura de um elemento. A largura de um elemento é a distância do topo da borda esquerda do elemento ao fundo da borda direita.
|
|
94
|
+
*/
|
|
95
|
+
width?: number | DimensionValue;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* O fundo abreviado CSS Propriedade define todas as propriedades do estilo de fundo de uma só vez, como cor, imagem, origem e tamanho ou método de repetição. As propriedades dos componentes não definidas no fundo da declaração de valor da propriedade abreviada são definidas como seus valores padrão..
|
|
99
|
+
* A Propriedade Background está sendo utilizada para definir a cor de fundo do cabeçalho do card e do ícone check.
|
|
100
|
+
*/
|
|
101
|
+
backgroundColor?: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Propriedade texto que sera renderizado pro usuário final
|
|
105
|
+
*/
|
|
106
|
+
text?: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* A propriedade CSS color define o valor da cor de primeiro plano do texto e das decorações de texto de um elemento e define o valor currentcolor. currentcolor pode ser usado como um valor indireto em outras propriedades e é o padrão para outras propriedades de cores, como border-color.
|
|
110
|
+
*/
|
|
111
|
+
color?: {
|
|
112
|
+
colorSvg?: string;
|
|
113
|
+
colorText?: string;
|
|
114
|
+
colorTextBold?: string;
|
|
115
|
+
colorTextData?: string;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Propriedade que define o valor a ser pago
|
|
120
|
+
*/
|
|
121
|
+
valor?: number;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Lista de mensagens de erro (renderizadas uma abaixo da outra)
|
|
125
|
+
*/
|
|
126
|
+
messages?: string[];
|
|
127
|
+
erroIds?: number[];
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* EXPORT
|
|
132
|
+
*/
|
|
133
|
+
export type { SupplyErrorCardProps };
|