jornada-ui 0.4.11 → 0.4.13
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/coil-removel-code/index.js +4 -3
- package/lib/commonjs/components/coil-removel-code/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 +104 -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 +26 -9
- 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/step-indicator/index.js +54 -40
- package/lib/commonjs/components/step-indicator/index.js.map +1 -1
- package/lib/commonjs/components/step-indicator/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 +102 -22
- 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/step-indicator/step-indicator.stories.js +1 -0
- package/lib/commonjs/stories/step-indicator/step-indicator.stories.js.map +1 -1
- 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/commonjs/utils/text-limit/index.js +37 -0
- package/lib/commonjs/utils/text-limit/index.js.map +1 -0
- 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/coil-removel-code/index.js +4 -3
- package/lib/module/components/coil-removel-code/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 +100 -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 +26 -9
- 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/step-indicator/index.js +55 -41
- package/lib/module/components/step-indicator/index.js.map +1 -1
- package/lib/module/components/step-indicator/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 +105 -24
- 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/step-indicator/step-indicator.stories.js +1 -0
- package/lib/module/stories/step-indicator/step-indicator.stories.js.map +1 -1
- 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/module/utils/text-limit/index.js +32 -0
- package/lib/module/utils/text-limit/index.js.map +1 -0
- 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/coil-removel-code/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/step-indicator/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/step-indicator/styles.d.ts +2 -2
- package/lib/typescript/commonjs/src/components/step-indicator/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/step-indicator/step-indicator.stories.d.ts.map +1 -1
- 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/commonjs/src/utils/text-limit/index.d.ts +14 -0
- package/lib/typescript/commonjs/src/utils/text-limit/index.d.ts.map +1 -0
- 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/coil-removel-code/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/step-indicator/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/step-indicator/styles.d.ts +2 -2
- package/lib/typescript/module/src/components/step-indicator/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/step-indicator/step-indicator.stories.d.ts.map +1 -1
- 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/lib/typescript/module/src/utils/text-limit/index.d.ts +14 -0
- package/lib/typescript/module/src/utils/text-limit/index.d.ts.map +1 -0
- 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/coil-removel-code/index.tsx +8 -3
- package/src/components/coil-removel-code/interface.d.ts +14 -13
- 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 +103 -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 +124 -94
- package/src/components/selects/select-option/interface.d.ts +1 -1
- package/src/components/selects/select-option/styles.ts +74 -75
- package/src/components/step-indicator/index.tsx +56 -36
- package/src/components/step-indicator/interface.d.ts +14 -3
- package/src/components/step-indicator/styles.ts +2 -2
- 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 +267 -193
- 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/step-indicator/step-indicator.stories.tsx +1 -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
- package/src/utils/text-limit/index.ts +28 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = _interopRequireDefault(require("../../box/index.js"));
|
|
10
|
+
var _index2 = _interopRequireDefault(require("../../button/index.js"));
|
|
11
|
+
var _index3 = _interopRequireDefault(require("../../typography/index.js"));
|
|
12
|
+
var _index4 = require("../../../common/icons-svg/index.js");
|
|
13
|
+
var _asBaseComponent = require("../../../@types/as-base-component.js");
|
|
14
|
+
var _theme = require("../../../styles/theme/theme.js");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
/**
|
|
18
|
+
* IMPORTS
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
// components
|
|
22
|
+
|
|
23
|
+
// commons / svg
|
|
24
|
+
|
|
25
|
+
// typings
|
|
26
|
+
|
|
27
|
+
// styles
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Componente ModalToConfirmations para a interação da ui.
|
|
31
|
+
*/const ModalToConfirmations = ({
|
|
32
|
+
visible,
|
|
33
|
+
onClose,
|
|
34
|
+
onPressConfirm,
|
|
35
|
+
textTitle,
|
|
36
|
+
text1,
|
|
37
|
+
text2,
|
|
38
|
+
titleButtonCancel,
|
|
39
|
+
titleButtonConfirm,
|
|
40
|
+
backgroundColor
|
|
41
|
+
}) => {
|
|
42
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Modal, {
|
|
43
|
+
animationType: "fade",
|
|
44
|
+
transparent: true,
|
|
45
|
+
visible: visible,
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
47
|
+
style: {
|
|
48
|
+
flex: 1,
|
|
49
|
+
justifyContent: "center",
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
backgroundColor: _theme.theme.shadows.z1
|
|
52
|
+
},
|
|
53
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.default, {
|
|
54
|
+
width: "90%",
|
|
55
|
+
backgroundColor: _theme.theme.colors.orange[500],
|
|
56
|
+
borderStyled: {
|
|
57
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
58
|
+
},
|
|
59
|
+
paddingStyle: {
|
|
60
|
+
paddingLeft: _theme.theme.paddings["2xs"],
|
|
61
|
+
paddingRight: _theme.theme.paddings["2xs"],
|
|
62
|
+
paddingTop: _theme.theme.paddings.sm,
|
|
63
|
+
paddingBottom: _theme.theme.paddings.sm
|
|
64
|
+
},
|
|
65
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.default, {
|
|
66
|
+
marginStyle: {
|
|
67
|
+
marginBottom: 10,
|
|
68
|
+
marginLeft: 4
|
|
69
|
+
},
|
|
70
|
+
flexStyle: {
|
|
71
|
+
flexDirection: "row",
|
|
72
|
+
alignItems: "center"
|
|
73
|
+
},
|
|
74
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.Icons, {
|
|
75
|
+
icon: "EXCLAMATION_TRIANGLE",
|
|
76
|
+
color: _theme.theme.colors.orange[500],
|
|
77
|
+
background: _theme.theme.colors.neutral[300],
|
|
78
|
+
size: 22
|
|
79
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
|
|
80
|
+
text: `${textTitle ?? "TITULO NÃO INFORMADO"}`,
|
|
81
|
+
color: _theme.theme.colors.neutral[25],
|
|
82
|
+
marginLeft: _theme.theme.margins["2xs"],
|
|
83
|
+
fontFamily: _theme.theme.fonts.inter_bold_700,
|
|
84
|
+
size: _theme.theme.fontSizes.lg
|
|
85
|
+
})]
|
|
86
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.default, {
|
|
87
|
+
backgroundColor: _theme.theme.colors.neutral[300],
|
|
88
|
+
paddingStyle: {
|
|
89
|
+
padding: _theme.theme.paddings.xs
|
|
90
|
+
},
|
|
91
|
+
borderStyled: {
|
|
92
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
93
|
+
},
|
|
94
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
|
|
95
|
+
flexStyle: {
|
|
96
|
+
flexDirection: "row",
|
|
97
|
+
alignItems: "center"
|
|
98
|
+
},
|
|
99
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
100
|
+
style: {
|
|
101
|
+
color: _theme.theme.colors.orange[150],
|
|
102
|
+
fontFamily: _theme.theme.fonts.inter_semi_bold_600,
|
|
103
|
+
marginBottom: text2 ? 16 : 8
|
|
104
|
+
},
|
|
105
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.default, {
|
|
106
|
+
text: `${text1} `,
|
|
107
|
+
size: _theme.theme.fontSizes.sm,
|
|
108
|
+
fontFamily: _theme.theme.fonts.inter_regular_400,
|
|
109
|
+
fontWeight: "400",
|
|
110
|
+
color: _theme.theme.colors.black[180],
|
|
111
|
+
lineHeight: 24,
|
|
112
|
+
letterSpacing: "regular"
|
|
113
|
+
}), text2]
|
|
114
|
+
})
|
|
115
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_index.default, {
|
|
116
|
+
flexStyle: {
|
|
117
|
+
flexDirection: "row",
|
|
118
|
+
justifyContent: "space-between"
|
|
119
|
+
},
|
|
120
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.default, {
|
|
121
|
+
title: titleButtonCancel ?? "CANCELAR",
|
|
122
|
+
onPress: onClose,
|
|
123
|
+
width: text2 ? "48%" : "100%",
|
|
124
|
+
height: 40,
|
|
125
|
+
isLoading: false,
|
|
126
|
+
disabled: false,
|
|
127
|
+
backgroundColor: backgroundColor ?? _theme.theme.colors.neutral[300],
|
|
128
|
+
buttonTextStyle: {
|
|
129
|
+
color: backgroundColor ? _theme.theme.colors.neutral[25] : _theme.theme.colors.blue[100],
|
|
130
|
+
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
131
|
+
fontSize: _theme.theme.fontSizes.xs,
|
|
132
|
+
fontWeight: "500"
|
|
133
|
+
},
|
|
134
|
+
flexStyle: {
|
|
135
|
+
flexDirection: "row",
|
|
136
|
+
alignItems: "center",
|
|
137
|
+
justifyContent: "center",
|
|
138
|
+
textAlign: "center"
|
|
139
|
+
},
|
|
140
|
+
borderStyled: {
|
|
141
|
+
borderWidth: _theme.theme.borderWidths.thin,
|
|
142
|
+
borderColor: _theme.theme.colors.blue[100],
|
|
143
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
144
|
+
}
|
|
145
|
+
}), text2 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.default, {
|
|
146
|
+
title: titleButtonConfirm ?? "CONFIRMAR",
|
|
147
|
+
onPress: () => {
|
|
148
|
+
onPressConfirm();
|
|
149
|
+
onClose();
|
|
150
|
+
},
|
|
151
|
+
width: "48%",
|
|
152
|
+
height: 40,
|
|
153
|
+
isLoading: false,
|
|
154
|
+
disabled: false,
|
|
155
|
+
backgroundColor: _theme.theme.colors.blue[500],
|
|
156
|
+
buttonTextStyle: {
|
|
157
|
+
color: _theme.theme.colors.neutral[25],
|
|
158
|
+
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
159
|
+
fontSize: _theme.theme.fontSizes.xs,
|
|
160
|
+
fontWeight: "500"
|
|
161
|
+
},
|
|
162
|
+
flexStyle: {
|
|
163
|
+
flexDirection: "row",
|
|
164
|
+
alignItems: "center",
|
|
165
|
+
justifyContent: "center",
|
|
166
|
+
textAlign: "center"
|
|
167
|
+
},
|
|
168
|
+
borderStyled: {
|
|
169
|
+
borderWidth: _theme.theme.borderWidths.thin,
|
|
170
|
+
borderColor: _theme.theme.colors.blue[100],
|
|
171
|
+
borderRadius: _theme.theme.borderWidths.thick_medium
|
|
172
|
+
}
|
|
173
|
+
})]
|
|
174
|
+
})]
|
|
175
|
+
})]
|
|
176
|
+
})
|
|
177
|
+
})
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
ModalToConfirmations.displayName = "ModalToConfirmations";
|
|
181
|
+
var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(ModalToConfirmations);
|
|
182
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_index","_index2","_index3","_index4","_asBaseComponent","_theme","_jsxRuntime","e","__esModule","default","ModalToConfirmations","visible","onClose","onPressConfirm","textTitle","text1","text2","titleButtonCancel","titleButtonConfirm","backgroundColor","jsx","Modal","animationType","transparent","children","View","style","flex","justifyContent","alignItems","theme","shadows","z1","jsxs","width","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","marginLeft","flexStyle","flexDirection","Icons","icon","color","background","neutral","size","text","margins","fontFamily","fonts","inter_bold_700","fontSizes","lg","padding","xs","Text","inter_semi_bold_600","inter_regular_400","fontWeight","black","lineHeight","letterSpacing","title","onPress","height","isLoading","disabled","buttonTextStyle","blue","inter_medium_500","fontSize","textAlign","borderWidth","thin","borderColor","displayName","_default","exports","asBaseComponent"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-to-confimations/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAA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,KAAK,EAAE,KAAM;cACb2C,MAAM,EAAE,EAAG;cACXC,SAAS,EAAE,KAAM;cACjBC,QAAQ,EAAE,KAAM;cAChB5D,eAAe,EAAEW,YAAK,CAACK,MAAM,CAAC8C,IAAI,CAAC,GAAG,CAAE;cACxCD,eAAe,EAAE;gBACfzB,KAAK,EAAEzB,YAAK,CAACK,MAAM,CAACsB,OAAO,CAAC,EAAE,CAAC;gBAC/BI,UAAU,EAAE/B,YAAK,CAACgC,KAAK,CAACoB,gBAAgB;gBACxCC,QAAQ,EAAErD,YAAK,CAACkC,SAAS,CAACG,EAAE;gBAC5BI,UAAU,EAAE;cACd,CAAE;cACFpB,SAAS,EAAE;gBACTC,aAAa,EAAE,KAAK;gBACpBvB,UAAU,EAAE,QAAQ;gBACpBD,cAAc,EAAE,QAAQ;gBACxBwD,SAAS,EAAE;cACb,CAAE;cACF/C,YAAY,EAAE;gBACZgD,WAAW,EAAEvD,YAAK,CAACS,YAAY,CAAC+C,IAAI;gBACpCC,WAAW,EAAEzD,YAAK,CAACK,MAAM,CAAC8C,IAAI,CAAC,GAAG,CAAC;gBACnC3C,YAAY,EAAER,YAAK,CAACS,YAAY,CAACC;cACnC;YAAE,CACH,CACF;UAAA,CACE,CAAC;QAAA,CACH,CAAC;MAAA,CACH;IAAC,CACF;EAAC,CACF,CAAC;AAEZ,CAAC;AAED9B,oBAAoB,CAAC8E,WAAW,GAAG,sBAAsB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAjF,OAAA,GAE3C,IAAAkF,gCAAe,EAACjF,oBAAoB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-to-confimations/interface.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _index = _interopRequireDefault(require("../../box/index.js"));
|
|
10
|
+
var _index2 = _interopRequireDefault(require("../../typography/index.js"));
|
|
11
|
+
var _index3 = require("../../../common/icons-svg/index.js");
|
|
12
|
+
var _asBaseComponent = require("../../../@types/as-base-component.js");
|
|
13
|
+
var _theme = require("../../../styles/theme/theme.js");
|
|
14
|
+
var _styles = require("./styles.js");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
18
|
+
/**
|
|
19
|
+
* IMPORTS
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
// seus componentes
|
|
23
|
+
|
|
24
|
+
// commons / svg
|
|
25
|
+
|
|
26
|
+
// typings
|
|
27
|
+
|
|
28
|
+
// styles
|
|
29
|
+
|
|
30
|
+
const ActivityFields = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
31
|
+
value,
|
|
32
|
+
icon,
|
|
33
|
+
onPressConfirm,
|
|
34
|
+
disabled = false
|
|
35
|
+
}, ref) => {
|
|
36
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
37
|
+
ref: ref,
|
|
38
|
+
activeOpacity: 0.7,
|
|
39
|
+
style: [_styles.styles.field, {
|
|
40
|
+
borderColor: _theme.theme.colors.gray[700],
|
|
41
|
+
backgroundColor: _theme.theme.colors.neutral[300],
|
|
42
|
+
opacity: disabled ? 0.7 : 1
|
|
43
|
+
}],
|
|
44
|
+
onPress: () => onPressConfirm(value),
|
|
45
|
+
disabled: disabled,
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
47
|
+
style: _styles.styles.row,
|
|
48
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
|
|
49
|
+
width: "10%",
|
|
50
|
+
height: 45,
|
|
51
|
+
flexStyle: {
|
|
52
|
+
alignItems: "center",
|
|
53
|
+
justifyContent: "center"
|
|
54
|
+
},
|
|
55
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.Icons, {
|
|
56
|
+
icon: icon ? icon : "CALENDAR",
|
|
57
|
+
color: _theme.theme.colors.black[100],
|
|
58
|
+
size: 18
|
|
59
|
+
})
|
|
60
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.default, {
|
|
61
|
+
width: "90%",
|
|
62
|
+
height: 45,
|
|
63
|
+
flexStyle: {
|
|
64
|
+
alignItems: "center",
|
|
65
|
+
justifyContent: "center"
|
|
66
|
+
},
|
|
67
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.default, {
|
|
68
|
+
text: String(value),
|
|
69
|
+
color: _theme.theme.colors.blue[500],
|
|
70
|
+
fontFamily: _theme.theme.fonts.inter_medium_500,
|
|
71
|
+
size: _theme.theme.fontSizes.md,
|
|
72
|
+
marginRight: 44
|
|
73
|
+
})
|
|
74
|
+
})]
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
ActivityFields.displayName = "ActivityFields";
|
|
79
|
+
var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(ActivityFields);
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_interopRequireDefault","_index2","_index3","_asBaseComponent","_theme","_styles","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ActivityFields","forwardRef","value","icon","onPressConfirm","disabled","ref","jsx","TouchableOpacity","activeOpacity","style","styles","field","borderColor","theme","colors","gray","backgroundColor","neutral","opacity","onPress","children","jsxs","View","row","width","height","flexStyle","alignItems","justifyContent","Icons","color","black","size","text","String","blue","fontFamily","fonts","inter_medium_500","fontSizes","md","marginRight","displayName","_default","exports","asBaseComponent"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/selects/select-date-and-hours/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAD,sBAAA,CAAAH,OAAA;AAGA,IAAAK,OAAA,GAAAL,OAAA;AAIA,IAAAM,gBAAA,GAAAN,OAAA;AAGA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AAAkC,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAf,uBAAA,YAAAA,CAAAW,CAAA,EAAAG,CAAA,SAAAA,CAAA,IAAAH,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,MAAAO,CAAA,EAAAC,CAAA,EAAAC,CA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C,CACS,CAAC;AAEvB,CACF,CAAC;AAED1C,cAAc,CAAC2C,WAAW,GAAG,gBAAgB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA9D,OAAA,GAE/B,IAAA+D,gCAAe,EAAC9C,cAAc,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/selects/select-date-and-hours/interface.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.styles = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
/**
|
|
9
|
+
* IMPORTS
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
const styles = exports.styles = _reactNative.StyleSheet.create({
|
|
13
|
+
field: {
|
|
14
|
+
width: "100%",
|
|
15
|
+
height: 45,
|
|
16
|
+
borderRadius: 12,
|
|
17
|
+
borderWidth: 1,
|
|
18
|
+
paddingHorizontal: 12,
|
|
19
|
+
justifyContent: "center",
|
|
20
|
+
marginTop: 10,
|
|
21
|
+
marginBottom: 16
|
|
22
|
+
},
|
|
23
|
+
row: {
|
|
24
|
+
flexDirection: "row",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
gap: 8,
|
|
27
|
+
justifyContent: "space-around"
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* EXPORTS
|
|
33
|
+
*/
|
|
34
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","styles","exports","StyleSheet","create","field","width","height","borderRadius","borderWidth","paddingHorizontal","justifyContent","marginTop","marginBottom","row","flexDirection","alignItems","gap"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/selects/select-date-and-hours/styles.ts"],"mappings":";;;;;;AAIA,IAAAA,YAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIA,MAAMC,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/BC,KAAK,EAAE;IACLC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE,CAAC;IACdC,iBAAiB,EAAE,EAAE;IACrBC,cAAc,EAAE,QAAQ;IACxBC,SAAS,EAAE,EAAE;IACbC,YAAY,EAAE;EAChB,CAAC;EACDC,GAAG,EAAE;IAAEC,aAAa,EAAE,KAAK;IAAEC,UAAU,EAAE,QAAQ;IAAEC,GAAG,EAAE,CAAC;IAAEN,cAAc,EAAE;EAAe;AAC5F,CAAC,CAAC;;AAEF;AACA;AACA","ignoreList":[]}
|
|
@@ -7,17 +7,20 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _index = require("../../../common/icons-svg/index.js");
|
|
10
|
+
var _index2 = require("../../../utils/text-limit/index.js");
|
|
10
11
|
var _asBaseComponent = require("../../../@types/as-base-component.js");
|
|
11
12
|
var _styles = require("./styles.js");
|
|
12
13
|
var _theme = require("../../../styles/theme/theme.js");
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
-
/**
|
|
16
|
-
* IMPORTS
|
|
16
|
+
/**
|
|
17
|
+
* IMPORTS
|
|
17
18
|
*/
|
|
18
19
|
|
|
19
20
|
// commons / svg
|
|
20
21
|
|
|
22
|
+
// utils
|
|
23
|
+
|
|
21
24
|
// typings
|
|
22
25
|
|
|
23
26
|
// styles
|
|
@@ -28,7 +31,8 @@ const SelectOption = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
28
31
|
handleSelectDown,
|
|
29
32
|
titleLabel,
|
|
30
33
|
sizeTitleLabel,
|
|
31
|
-
colortitleLabel
|
|
34
|
+
colortitleLabel,
|
|
35
|
+
backgroundColor
|
|
32
36
|
} = props;
|
|
33
37
|
const [selectedValue, setSelectedValue] = (0, _react.useState)(dataOption[0]?.value || "");
|
|
34
38
|
const [modalVisible, setModalVisible] = (0, _react.useState)(false);
|
|
@@ -42,7 +46,8 @@ const SelectOption = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
42
46
|
handleSelectDown,
|
|
43
47
|
titleLabel,
|
|
44
48
|
sizeTitleLabel,
|
|
45
|
-
colortitleLabel
|
|
49
|
+
colortitleLabel,
|
|
50
|
+
backgroundColor
|
|
46
51
|
};
|
|
47
52
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
48
53
|
ref: ref,
|
|
@@ -56,9 +61,13 @@ const SelectOption = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
56
61
|
onPress: () => setModalVisible(true),
|
|
57
62
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
58
63
|
style: (0, _styles.styles)(styleProps).selectedText,
|
|
59
|
-
|
|
64
|
+
numberOfLines: 1,
|
|
65
|
+
children: `${(0, _index2.handleLimitTextdisplayByAmount)({
|
|
66
|
+
limit: 42,
|
|
67
|
+
text: dataOption.find(item => item.value === selectedValue)?.label
|
|
68
|
+
})}`
|
|
60
69
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icons, {
|
|
61
|
-
size: _theme.theme.fontSizes["
|
|
70
|
+
size: _theme.theme.fontSizes["xs"],
|
|
62
71
|
color: _theme.theme.colors.blue[500],
|
|
63
72
|
icon: "ARROW_DROP_DOWN"
|
|
64
73
|
})]
|
|
@@ -74,11 +83,19 @@ const SelectOption = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
74
83
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
75
84
|
style: {
|
|
76
85
|
width: "100%",
|
|
77
|
-
alignItems: "flex-end"
|
|
86
|
+
alignItems: "flex-end",
|
|
87
|
+
height: 40,
|
|
88
|
+
paddingRight: 8
|
|
78
89
|
},
|
|
79
90
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
|
|
80
91
|
testID: "close-icon",
|
|
81
92
|
onPress: () => setModalVisible(false),
|
|
93
|
+
style: {
|
|
94
|
+
width: 40,
|
|
95
|
+
height: 45,
|
|
96
|
+
alignItems: "center",
|
|
97
|
+
justifyContent: "center"
|
|
98
|
+
},
|
|
82
99
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Icons, {
|
|
83
100
|
size: _theme.theme.fontSizes["md"],
|
|
84
101
|
color: _theme.theme.colors.blue[500],
|
|
@@ -105,8 +122,8 @@ const SelectOption = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
|
105
122
|
});
|
|
106
123
|
});
|
|
107
124
|
|
|
108
|
-
/**
|
|
109
|
-
* Componente SelectOption para a interação da ui.
|
|
125
|
+
/**
|
|
126
|
+
* Componente SelectOption para a interação da ui.
|
|
110
127
|
*/
|
|
111
128
|
var _default = exports.default = (0, _asBaseComponent.asBaseComponent)(SelectOption);
|
|
112
129
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_asBaseComponent","_styles","_theme","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SelectOption","forwardRef","props","ref","dataOption","handleSelectDown","titleLabel","sizeTitleLabel","colortitleLabel","selectedValue","setSelectedValue","useState","value","modalVisible","setModalVisible","handleSelect","styleProps","jsxs","View","style","styles","container","children","Text","label","TouchableOpacity","testID","selectBox","onPress","jsx","selectedText","find","item","Icons","size","theme","fontSizes","color","colors","blue","icon","Modal","visible","transparent","animationType","modalOverlay","modalContainer","width","alignItems","FlatList","data","keyExtractor","renderItem","option","optionText","_default","exports","asBaseComponent"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/selects/select-option/index.tsx"],"mappings":";;;;;;AAGA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AAGA,IAAAG,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_index","_index2","_asBaseComponent","_styles","_theme","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SelectOption","forwardRef","props","ref","dataOption","handleSelectDown","titleLabel","sizeTitleLabel","colortitleLabel","backgroundColor","selectedValue","setSelectedValue","useState","value","modalVisible","setModalVisible","handleSelect","styleProps","jsxs","View","style","styles","container","children","Text","label","TouchableOpacity","testID","selectBox","onPress","jsx","selectedText","numberOfLines","handleLimitTextdisplayByAmount","limit","text","find","item","Icons","size","theme","fontSizes","color","colors","blue","icon","Modal","visible","transparent","animationType","modalOverlay","modalContainer","width","alignItems","height","paddingRight","justifyContent","FlatList","data","keyExtractor","renderItem","option","optionText","_default","exports","asBaseComponent"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/selects/select-option/index.tsx"],"m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AA,EAAEc,IAAI,CAACZ;cAAK,CAAO;YAAC,CAC/C;UAClB,CACH,CAAC;QAAA,CACE;MAAC,CACH;IAAC,CACF,CAAC;EAAA,CACJ,CAAC;AAEX,CAAC,CAAC;;AAEF;AACA;AACA;AAFA,IAAAsC,QAAA,GAAAC,OAAA,CAAAzE,OAAA,GAGe,IAAA0E,gCAAe,EAACjE,YAAY,CAAC","ignoreList":[]}
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.styles = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
8
|
var _theme = require("../../../styles/theme/theme.js");
|
|
9
|
-
/**
|
|
10
|
-
* IMPORTS
|
|
9
|
+
/**
|
|
10
|
+
* IMPORTS
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
// typings
|
|
@@ -34,7 +34,7 @@ const styles = props => _reactNative.StyleSheet.create({
|
|
|
34
34
|
borderWidth: 1,
|
|
35
35
|
borderColor: _theme.theme.colors.gray[700],
|
|
36
36
|
borderRadius: 10,
|
|
37
|
-
backgroundColor: _theme.theme.colors.neutral[25],
|
|
37
|
+
backgroundColor: props.backgroundColor ?? _theme.theme.colors.neutral[25],
|
|
38
38
|
paddingHorizontal: 10
|
|
39
39
|
},
|
|
40
40
|
selectedText: {
|
|
@@ -52,8 +52,7 @@ const styles = props => _reactNative.StyleSheet.create({
|
|
|
52
52
|
width: "100%",
|
|
53
53
|
backgroundColor: _theme.theme.colors.neutral[25],
|
|
54
54
|
borderRadius: 10,
|
|
55
|
-
padding: 15
|
|
56
|
-
alignItems: "center"
|
|
55
|
+
padding: 15
|
|
57
56
|
},
|
|
58
57
|
option: {
|
|
59
58
|
width: "100%",
|
|
@@ -73,8 +72,8 @@ const styles = props => _reactNative.StyleSheet.create({
|
|
|
73
72
|
}
|
|
74
73
|
});
|
|
75
74
|
|
|
76
|
-
/**
|
|
77
|
-
* EXPORTS
|
|
75
|
+
/**
|
|
76
|
+
* EXPORTS
|
|
78
77
|
*/
|
|
79
78
|
exports.styles = styles;
|
|
80
79
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_theme","styles","props","StyleSheet","create","container","width","marginBottom","label","fontSize","sizeTitleLabel","fontWeight","color","colortitleLabel","theme","colors","black","selectBox","flexDirection","alignItems","justifyContent","height","borderWidth","borderColor","gray","borderRadius","backgroundColor","neutral","paddingHorizontal","selectedText","modalOverlay","flex","padding","modalContainer","option","borderBottomWidth","borderBottomColor","optionText","closeButtonText","exports"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/selects/select-option/styles.ts"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AATA;AACA;AACA;;AAGA;;AAGA;;AAGA,MAAME,MAAM,GAAIC,KAA2B,IACzCC,uBAAU,CAACC,MAAM,CAAC;EAChBC,SAAS,EAAE;IACTC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE;EAChB,CAAC;EACDC,KAAK,EAAE;IACLC,QAAQ,EAAEP,KAAK,CAACQ,cAAc,IAAI,EAAE;IACpCC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAEV,KAAK,CAACW,eAAe,IAAIC,YAAK,CAACC,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC;IACvDT,YAAY,EAAE;EAChB,CAAC;EACDU,SAAS,EAAE;IACTC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/Bd,KAAK,EAAE,MAAM;IACbe,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAET,YAAK,CAACC,MAAM,CAACS,IAAI,CAAC,GAAG,CAAC;IACnCC,YAAY,EAAE,EAAE;IAChBC,eAAe,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_theme","styles","props","StyleSheet","create","container","width","marginBottom","label","fontSize","sizeTitleLabel","fontWeight","color","colortitleLabel","theme","colors","black","selectBox","flexDirection","alignItems","justifyContent","height","borderWidth","borderColor","gray","borderRadius","backgroundColor","neutral","paddingHorizontal","selectedText","modalOverlay","flex","padding","modalContainer","option","borderBottomWidth","borderBottomColor","optionText","closeButtonText","exports"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/selects/select-option/styles.ts"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AATA;AACA;AACA;;AAGA;;AAGA;;AAGA,MAAME,MAAM,GAAIC,KAA2B,IACzCC,uBAAU,CAACC,MAAM,CAAC;EAChBC,SAAS,EAAE;IACTC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE;EAChB,CAAC;EACDC,KAAK,EAAE;IACLC,QAAQ,EAAEP,KAAK,CAACQ,cAAc,IAAI,EAAE;IACpCC,UAAU,EAAE,MAAM;IAClBC,KAAK,EAAEV,KAAK,CAACW,eAAe,IAAIC,YAAK,CAACC,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC;IACvDT,YAAY,EAAE;EAChB,CAAC;EACDU,SAAS,EAAE;IACTC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,eAAe;IAC/Bd,KAAK,EAAE,MAAM;IACbe,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAET,YAAK,CAACC,MAAM,CAACS,IAAI,CAAC,GAAG,CAAC;IACnCC,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAExB,KAAK,CAACwB,eAAe,IAAIZ,YAAK,CAACC,MAAM,CAACY,OAAO,CAAC,EAAE,CAAC;IAClEC,iBAAiB,EAAE;EACrB,CAAC;EACDC,YAAY,EAAE;IACZpB,QAAQ,EAAE,EAAE;IACZG,KAAK,EAAE;EACT,CAAC;EACDkB,YAAY,EAAE;IACZC,IAAI,EAAE,CAAC;IACPL,eAAe,EAAE,iBAAiB;IAClCN,cAAc,EAAE,QAAQ;IACxBD,UAAU,EAAE,QAAQ;IACpBa,OAAO,EAAE;EACX,CAAC;EACDC,cAAc,EAAE;IACd3B,KAAK,EAAE,MAAM;IACboB,eAAe,EAAEZ,YAAK,CAACC,MAAM,CAACY,OAAO,CAAC,EAAE,CAAC;IACzCF,YAAY,EAAE,EAAE;IAChBO,OAAO,EAAE;EACX,CAAC;EACDE,MAAM,EAAE;IACN5B,KAAK,EAAE,MAAM;IACb0B,OAAO,EAAE,EAAE;IACXb,UAAU,EAAE,YAAY;IACxBgB,iBAAiB,EAAE,CAAC;IACpBC,iBAAiB,EAAEtB,YAAK,CAACC,MAAM,CAACS,IAAI,CAAC,GAAG;EAC1C,CAAC;EACDa,UAAU,EAAE;IACV5B,QAAQ,EAAE,EAAE;IACZG,KAAK,EAAEE,YAAK,CAACC,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC;IAC9BL,UAAU,EAAE;EACd,CAAC;EACD2B,eAAe,EAAE;IACf1B,KAAK,EAAEE,YAAK,CAACC,MAAM,CAACY,OAAO,CAAC,EAAE,CAAC;IAC/BhB,UAAU,EAAE;EACd;AACF,CAAC,CAAC;;AAEJ;AACA;AACA;AAFA4B,OAAA,CAAAtC,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -34,51 +34,65 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
34
34
|
type,
|
|
35
35
|
textColorDescription,
|
|
36
36
|
titleColor,
|
|
37
|
-
titleNumberColor
|
|
37
|
+
titleNumberColor,
|
|
38
|
+
handleOnPressActivitie
|
|
38
39
|
}) => {
|
|
39
40
|
const StepDefault = () => {
|
|
40
41
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
41
|
-
children: data.length > 0 && data.map((history, index) =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
style: (0, _styles.styles)({
|
|
58
|
-
titleNumberColor
|
|
59
|
-
}).titleNumber,
|
|
60
|
-
children: data?.length - index
|
|
61
|
-
})]
|
|
62
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
63
|
-
style: (0, _styles.styles)({}).containerMain,
|
|
64
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
65
|
-
style: (0, _styles.styles)({
|
|
66
|
-
titleColor
|
|
67
|
-
}).title,
|
|
68
|
-
children: history?.descricao
|
|
69
|
-
}), history?.data_inicio && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
70
|
-
style: (0, _styles.styles)({
|
|
71
|
-
textColorDescription
|
|
72
|
-
}).titleDescription,
|
|
73
|
-
children: `Inicio: ${history.data_inicio} ás ${history.data_fim}`
|
|
74
|
-
}), history.duracao_segundos && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
42
|
+
children: data.length > 0 && data.map((history, index) => {
|
|
43
|
+
// pegando primeira atividade pelo index
|
|
44
|
+
const isFirst = index === 0;
|
|
45
|
+
//pegando o tipo de atividade
|
|
46
|
+
const isEditableType = history.tipo === "descanso";
|
|
47
|
+
|
|
48
|
+
// pegando o valor para saber se atividade ta ou não sincronizada
|
|
49
|
+
const isSynced = history?.sincronizado === true;
|
|
50
|
+
const canEdit = isFirst && isEditableType && isSynced;
|
|
51
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
|
|
52
|
+
testID: "step-indicator",
|
|
53
|
+
activeOpacity: 0.7,
|
|
54
|
+
style: (0, _styles.styles)({}).containerIndicator,
|
|
55
|
+
disabled: !canEdit,
|
|
56
|
+
onPress: () => handleOnPressActivitie(history),
|
|
57
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
75
58
|
style: (0, _styles.styles)({
|
|
76
|
-
|
|
77
|
-
}).
|
|
78
|
-
children: [
|
|
59
|
+
sincronizado: history.sincronizado
|
|
60
|
+
}).containerBall,
|
|
61
|
+
children: [data?.length > 1 && index < data?.length - 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
62
|
+
style: {
|
|
63
|
+
width: 2,
|
|
64
|
+
height: 84,
|
|
65
|
+
marginTop: 116,
|
|
66
|
+
position: "relative",
|
|
67
|
+
backgroundColor: history.sincronizado ? _theme.theme.colors.blue[500] : _theme.theme.colors.orange[150]
|
|
68
|
+
}
|
|
69
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
70
|
+
style: (0, _styles.styles)({
|
|
71
|
+
titleNumberColor
|
|
72
|
+
}).titleNumber,
|
|
73
|
+
children: data?.length - index
|
|
74
|
+
})]
|
|
75
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
76
|
+
style: (0, _styles.styles)({}).containerMain,
|
|
77
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
78
|
+
style: (0, _styles.styles)({
|
|
79
|
+
titleColor
|
|
80
|
+
}).title,
|
|
81
|
+
children: history?.descricao
|
|
82
|
+
}), history?.data_inicio && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
83
|
+
style: (0, _styles.styles)({
|
|
84
|
+
textColorDescription
|
|
85
|
+
}).titleDescription,
|
|
86
|
+
children: `Inicio: ${history.data_inicio} ás ${history.data_fim}`
|
|
87
|
+
}), history.duracao_segundos && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
88
|
+
style: (0, _styles.styles)({
|
|
89
|
+
textColorDescription
|
|
90
|
+
}).titleDescription,
|
|
91
|
+
children: ["Dura\xE7\xE3o: ", (0, _index2.formHoursMinute)(history?.duracao_segundos)]
|
|
92
|
+
})]
|
|
79
93
|
})]
|
|
80
|
-
})
|
|
81
|
-
}
|
|
94
|
+
}, history.id);
|
|
95
|
+
})
|
|
82
96
|
});
|
|
83
97
|
};
|
|
84
98
|
const StepCustom = () => {
|