jornada-ui 0.4.10 → 0.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -31
- package/lib/commonjs/common/icons-svg/bluetooth/index.js +45 -27
- package/lib/commonjs/common/icons-svg/bluetooth/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/constants/index.js +7 -5
- package/lib/commonjs/common/icons-svg/constants/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/index.js +19 -4
- package/lib/commonjs/common/icons-svg/index.js.map +1 -1
- package/lib/commonjs/common/icons-svg/plus-container/index.js +42 -0
- package/lib/commonjs/common/icons-svg/plus-container/index.js.map +1 -0
- package/lib/commonjs/common/icons-svg/trash/index.js +41 -0
- package/lib/commonjs/common/icons-svg/trash/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/components/activite-row/index.js +137 -0
- package/lib/commonjs/components/activity-step/components/activite-row/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/index.js +77 -0
- package/lib/commonjs/components/activity-step/index.js.map +1 -0
- package/lib/commonjs/components/activity-step/interface.js +6 -0
- package/lib/commonjs/components/activity-step/interface.js.map +1 -0
- package/lib/commonjs/components/activity-step/styles.js +86 -0
- package/lib/commonjs/components/activity-step/styles.js.map +1 -0
- package/lib/commonjs/components/card-scheduled-journey/index.js +8 -6
- package/lib/commonjs/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/commonjs/components/inputs/input-date-time/index.js +136 -0
- package/lib/commonjs/components/inputs/input-date-time/index.js.map +1 -0
- package/lib/commonjs/components/inputs/input-date-time/interface.d.js +2 -0
- package/lib/commonjs/components/inputs/input-date-time/interface.d.js.map +1 -0
- package/lib/commonjs/components/inputs/input-date-time/styles.js +66 -0
- package/lib/commonjs/components/inputs/input-date-time/styles.js.map +1 -0
- package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js +25 -0
- package/lib/commonjs/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
- package/lib/commonjs/components/list-devices/index.js +97 -0
- package/lib/commonjs/components/list-devices/index.js.map +1 -0
- package/lib/commonjs/components/list-devices/interface.d.js +2 -0
- package/lib/commonjs/components/list-devices/interface.d.js.map +1 -0
- package/lib/commonjs/components/list-devices/styles.js +60 -0
- package/lib/commonjs/components/list-devices/styles.js.map +1 -0
- package/lib/commonjs/components/list-supplies/index.js +171 -0
- package/lib/commonjs/components/list-supplies/index.js.map +1 -0
- package/lib/commonjs/components/list-supplies/interface.d.js +2 -0
- package/lib/commonjs/components/list-supplies/interface.d.js.map +1 -0
- package/lib/commonjs/components/maintenance-description-input/index.js +3 -0
- package/lib/commonjs/components/maintenance-description-input/index.js.map +1 -1
- package/lib/commonjs/components/maintenance-description-input/styles.js +1 -1
- package/lib/commonjs/components/maintenance-description-input/styles.js.map +1 -1
- package/lib/commonjs/components/modals/modal-activity-reason/index.js +170 -0
- package/lib/commonjs/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js +27 -0
- package/lib/commonjs/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/index.js +203 -0
- package/lib/commonjs/components/modals/modal-create-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/interface.js +2 -0
- package/lib/commonjs/components/modals/modal-create-activitie/interface.js.map +1 -0
- package/lib/commonjs/components/modals/modal-create-activitie/styles.js +42 -0
- package/lib/commonjs/components/modals/modal-create-activitie/styles.js.map +1 -0
- package/lib/commonjs/components/modals/modal-exclude-activitie/index.js +2 -0
- package/lib/commonjs/components/modals/modal-exclude-activitie/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/index.js +242 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js +2 -0
- package/lib/commonjs/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/commonjs/components/modals/modal-to-confimations/index.js +182 -0
- package/lib/commonjs/components/modals/modal-to-confimations/index.js.map +1 -0
- package/lib/commonjs/components/modals/modal-to-confimations/interface.js +2 -0
- package/lib/commonjs/components/modals/modal-to-confimations/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js +80 -0
- package/lib/commonjs/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js +6 -0
- package/lib/commonjs/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js +34 -0
- package/lib/commonjs/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/commonjs/components/selects/select-option/index.js +4 -2
- package/lib/commonjs/components/selects/select-option/index.js.map +1 -1
- package/lib/commonjs/components/selects/select-option/styles.js +6 -7
- package/lib/commonjs/components/selects/select-option/styles.js.map +1 -1
- package/lib/commonjs/components/supply-error-card/index.js +7 -6
- package/lib/commonjs/components/supply-error-card/index.js.map +1 -1
- package/lib/commonjs/components/toast-message/index.js +8 -7
- package/lib/commonjs/components/toast-message/index.js.map +1 -1
- package/lib/commonjs/components/travel-history/index.js +7 -7
- package/lib/commonjs/components/travel-history/index.js.map +1 -1
- package/lib/commonjs/components/trip-details-card/index.js +94 -13
- package/lib/commonjs/components/trip-details-card/index.js.map +1 -1
- package/lib/commonjs/components/typography/index.js +5 -5
- package/lib/commonjs/components/typography/index.js.map +1 -1
- package/lib/commonjs/index.js +53 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/stories/list-devices/list-devices.stories.js +146 -0
- package/lib/commonjs/stories/list-devices/list-devices.stories.js.map +1 -0
- package/lib/commonjs/stories/list-supplies/list-supplies.stories.js +69 -0
- package/lib/commonjs/stories/list-supplies/list-supplies.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js +63 -0
- package/lib/commonjs/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js +63 -0
- package/lib/commonjs/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/commonjs/stories/supply-error-card/supply-error-card.stories.js +12 -12
- package/lib/commonjs/stories/supply-error-card/supply-error-card.stories.js.map +1 -1
- package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js +39 -6
- package/lib/commonjs/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
- package/lib/commonjs/styles/theme/theme.js +1 -0
- package/lib/commonjs/styles/theme/theme.js.map +1 -1
- package/lib/module/common/icons-svg/bluetooth/index.js +45 -27
- package/lib/module/common/icons-svg/bluetooth/index.js.map +1 -1
- package/lib/module/common/icons-svg/constants/index.js +7 -5
- package/lib/module/common/icons-svg/constants/index.js.map +1 -1
- package/lib/module/common/icons-svg/index.js +19 -4
- package/lib/module/common/icons-svg/index.js.map +1 -1
- package/lib/module/common/icons-svg/plus-container/index.js +36 -0
- package/lib/module/common/icons-svg/plus-container/index.js.map +1 -0
- package/lib/module/common/icons-svg/trash/index.js +34 -0
- package/lib/module/common/icons-svg/trash/index.js.map +1 -0
- package/lib/module/components/activity-step/components/activite-row/index.js +134 -0
- package/lib/module/components/activity-step/components/activite-row/index.js.map +1 -0
- package/lib/module/components/activity-step/index.js +73 -0
- package/lib/module/components/activity-step/index.js.map +1 -0
- package/lib/module/components/activity-step/interface.js +4 -0
- package/lib/module/components/activity-step/interface.js.map +1 -0
- package/lib/module/components/activity-step/styles.js +83 -0
- package/lib/module/components/activity-step/styles.js.map +1 -0
- package/lib/module/components/card-scheduled-journey/index.js +8 -6
- package/lib/module/components/card-scheduled-journey/index.js.map +1 -1
- package/lib/module/components/inputs/input-date-time/index.js +130 -0
- package/lib/module/components/inputs/input-date-time/index.js.map +1 -0
- package/lib/module/components/inputs/input-date-time/interface.d.js +2 -0
- package/lib/module/components/inputs/input-date-time/interface.d.js.map +1 -0
- package/lib/module/components/inputs/input-date-time/styles.js +62 -0
- package/lib/module/components/inputs/input-date-time/styles.js.map +1 -0
- package/lib/module/components/list-devices/helpers/get-icon-by-status.js +21 -0
- package/lib/module/components/list-devices/helpers/get-icon-by-status.js.map +1 -0
- package/lib/module/components/list-devices/index.js +93 -0
- package/lib/module/components/list-devices/index.js.map +1 -0
- package/lib/module/components/list-devices/interface.d.js +2 -0
- package/lib/module/components/list-devices/interface.d.js.map +1 -0
- package/lib/module/components/list-devices/styles.js +56 -0
- package/lib/module/components/list-devices/styles.js.map +1 -0
- package/lib/module/components/list-supplies/index.js +165 -0
- package/lib/module/components/list-supplies/index.js.map +1 -0
- package/lib/module/components/list-supplies/interface.d.js +2 -0
- package/lib/module/components/list-supplies/interface.d.js.map +1 -0
- package/lib/module/components/maintenance-description-input/index.js +3 -0
- package/lib/module/components/maintenance-description-input/index.js.map +1 -1
- package/lib/module/components/maintenance-description-input/styles.js +1 -1
- package/lib/module/components/maintenance-description-input/styles.js.map +1 -1
- package/lib/module/components/modals/modal-activity-reason/index.js +165 -0
- package/lib/module/components/modals/modal-activity-reason/index.js.map +1 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js +2 -0
- package/lib/module/components/modals/modal-activity-reason/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/helpers/index.js +24 -0
- package/lib/module/components/modals/modal-create-activitie/helpers/index.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/index.js +196 -0
- package/lib/module/components/modals/modal-create-activitie/index.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/interface.js +2 -0
- package/lib/module/components/modals/modal-create-activitie/interface.js.map +1 -0
- package/lib/module/components/modals/modal-create-activitie/styles.js +39 -0
- package/lib/module/components/modals/modal-create-activitie/styles.js.map +1 -0
- package/lib/module/components/modals/modal-exclude-activitie/index.js +2 -0
- package/lib/module/components/modals/modal-exclude-activitie/index.js.map +1 -0
- package/lib/module/components/modals/modal-journey-rectification/index.js +236 -0
- package/lib/module/components/modals/modal-journey-rectification/index.js.map +1 -0
- package/lib/module/components/modals/modal-journey-rectification/interface.d.js +2 -0
- package/lib/module/components/modals/modal-journey-rectification/interface.d.js.map +1 -0
- package/lib/module/components/modals/modal-to-confimations/index.js +179 -0
- package/lib/module/components/modals/modal-to-confimations/index.js.map +1 -0
- package/lib/module/components/modals/modal-to-confimations/interface.js +2 -0
- package/lib/module/components/modals/modal-to-confimations/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/index.js +74 -0
- package/lib/module/components/selects/select-date-and-hours/index.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js +4 -0
- package/lib/module/components/selects/select-date-and-hours/interface.js.map +1 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js +31 -0
- package/lib/module/components/selects/select-date-and-hours/styles.js.map +1 -0
- package/lib/module/components/selects/select-option/index.js +4 -2
- package/lib/module/components/selects/select-option/index.js.map +1 -1
- package/lib/module/components/selects/select-option/styles.js +6 -7
- package/lib/module/components/selects/select-option/styles.js.map +1 -1
- package/lib/module/components/supply-error-card/index.js +7 -6
- package/lib/module/components/supply-error-card/index.js.map +1 -1
- package/lib/module/components/toast-message/index.js +8 -7
- package/lib/module/components/toast-message/index.js.map +1 -1
- package/lib/module/components/travel-history/index.js +7 -7
- package/lib/module/components/travel-history/index.js.map +1 -1
- package/lib/module/components/trip-details-card/index.js +94 -13
- package/lib/module/components/trip-details-card/index.js.map +1 -1
- package/lib/module/components/typography/index.js +5 -5
- package/lib/module/components/typography/index.js.map +1 -1
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/stories/list-devices/list-devices.stories.js +140 -0
- package/lib/module/stories/list-devices/list-devices.stories.js.map +1 -0
- package/lib/module/stories/list-supplies/list-supplies.stories.js +63 -0
- package/lib/module/stories/list-supplies/list-supplies.stories.js.map +1 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js +57 -0
- package/lib/module/stories/modal-activity-reason/modal-activity-reason.stories.js.map +1 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js +57 -0
- package/lib/module/stories/modal-journey-rectification/modal-journey-rectification.stories.js.map +1 -0
- package/lib/module/stories/supply-error-card/supply-error-card.stories.js +12 -12
- package/lib/module/stories/supply-error-card/supply-error-card.stories.js.map +1 -1
- package/lib/module/stories/trip-details-card/trip-details-card.stories.js +39 -6
- package/lib/module/stories/trip-details-card/trip-details-card.stories.js.map +1 -1
- package/lib/module/styles/theme/theme.js +1 -0
- package/lib/module/styles/theme/theme.js.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts +5 -1
- package/lib/typescript/commonjs/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts +2 -0
- package/lib/typescript/commonjs/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/common/icons-svg/trash/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/index.d.ts +17 -0
- package/lib/typescript/commonjs/src/components/activity-step/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts +40 -0
- package/lib/typescript/commonjs/src/components/activity-step/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts +75 -0
- package/lib/typescript/commonjs/src/components/activity-step/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts +2 -1
- package/lib/typescript/commonjs/src/components/card-scheduled-journey/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts +59 -0
- package/lib/typescript/commonjs/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
- package/lib/typescript/commonjs/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/components/list-devices/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts +57 -0
- package/lib/typescript/commonjs/src/components/list-devices/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/list-supplies/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/maintenance-description-input/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
- package/lib/typescript/commonjs/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
- package/lib/typescript/commonjs/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
- package/lib/typescript/commonjs/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/components/selects/select-option/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts +0 -1
- package/lib/typescript/commonjs/src/components/selects/select-option/styles.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/supply-error-card/index.d.ts +3 -8
- package/lib/typescript/commonjs/src/components/supply-error-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/toast-message/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/trip-details-card/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts +22 -0
- package/lib/typescript/commonjs/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
- package/lib/typescript/commonjs/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/commonjs/src/styles/theme/theme.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts +5 -1
- package/lib/typescript/module/src/common/icons-svg/bluetooth/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts +2 -0
- package/lib/typescript/module/src/common/icons-svg/constants/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/index.d.ts.map +1 -1
- package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/plus-container/index.d.ts.map +1 -0
- package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts +11 -0
- package/lib/typescript/module/src/common/icons-svg/trash/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts +11 -0
- package/lib/typescript/module/src/components/activity-step/components/activite-row/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/index.d.ts +17 -0
- package/lib/typescript/module/src/components/activity-step/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/interface.d.ts +40 -0
- package/lib/typescript/module/src/components/activity-step/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/activity-step/styles.d.ts +75 -0
- package/lib/typescript/module/src/components/activity-step/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts +2 -1
- package/lib/typescript/module/src/components/card-scheduled-journey/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts +8 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts +59 -0
- package/lib/typescript/module/src/components/inputs/input-date-time/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts +15 -0
- package/lib/typescript/module/src/components/list-devices/helpers/get-icon-by-status.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/index.d.ts +11 -0
- package/lib/typescript/module/src/components/list-devices/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-devices/styles.d.ts +57 -0
- package/lib/typescript/module/src/components/list-devices/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/list-supplies/index.d.ts +8 -0
- package/lib/typescript/module/src/components/list-supplies/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/maintenance-description-input/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-activity-reason/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts +21 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/helpers/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts +19 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts +33 -0
- package/lib/typescript/module/src/components/modals/modal-create-activitie/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts +1 -0
- package/lib/typescript/module/src/components/modals/modal-exclude-activitie/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-journey-rectification/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts +8 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts +28 -0
- package/lib/typescript/module/src/components/modals/modal-to-confimations/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts +13 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/index.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts +22 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/interface.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts +26 -0
- package/lib/typescript/module/src/components/selects/select-date-and-hours/styles.d.ts.map +1 -0
- package/lib/typescript/module/src/components/selects/select-option/index.d.ts +1 -0
- package/lib/typescript/module/src/components/selects/select-option/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/selects/select-option/styles.d.ts +0 -1
- package/lib/typescript/module/src/components/selects/select-option/styles.d.ts.map +1 -1
- package/lib/typescript/module/src/components/supply-error-card/index.d.ts +3 -8
- package/lib/typescript/module/src/components/supply-error-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/toast-message/index.d.ts.map +1 -1
- package/lib/typescript/module/src/components/trip-details-card/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +7 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts +22 -0
- package/lib/typescript/module/src/stories/list-devices/list-devices.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/list-supplies/list-supplies.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/modal-activity-reason/modal-activity-reason.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts +10 -0
- package/lib/typescript/module/src/stories/modal-journey-rectification/modal-journey-rectification.stories.d.ts.map +1 -0
- package/lib/typescript/module/src/stories/trip-details-card/trip-details-card.stories.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts +1 -0
- package/lib/typescript/module/src/styles/global/theme-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/styles/theme/theme.d.ts +1 -0
- package/lib/typescript/module/src/styles/theme/theme.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/common/icons-svg/bluetooth/index.tsx +51 -24
- package/src/common/icons-svg/constants/index.ts +67 -65
- package/src/common/icons-svg/index.tsx +289 -280
- package/src/common/icons-svg/plus-container/index.tsx +32 -0
- package/src/common/icons-svg/trash/index.tsx +31 -0
- package/src/components/activity-step/components/activite-row/index.tsx +141 -0
- package/src/components/activity-step/index.tsx +73 -0
- package/src/components/activity-step/interface.ts +54 -0
- package/src/components/activity-step/styles.ts +72 -0
- package/src/components/card-scheduled-journey/index.tsx +140 -138
- package/src/components/card-scheduled-journey/interface.d.ts +145 -140
- package/src/components/inputs/input-date-time/index.tsx +133 -0
- package/src/components/inputs/input-date-time/interface.d.ts +25 -0
- package/src/components/inputs/input-date-time/styles.ts +63 -0
- package/src/components/list-devices/helpers/get-icon-by-status.tsx +20 -0
- package/src/components/list-devices/index.tsx +102 -0
- package/src/components/list-devices/interface.d.ts +36 -0
- package/src/components/list-devices/styles.ts +68 -0
- package/src/components/list-supplies/index.tsx +153 -0
- package/src/components/list-supplies/interface.d.ts +9 -0
- package/src/components/maintenance-description-input/index.tsx +1 -0
- package/src/components/maintenance-description-input/styles.ts +1 -1
- package/src/components/modals/modal-activity-reason/index.tsx +168 -0
- package/src/components/modals/modal-activity-reason/interface.d.ts +9 -0
- package/src/components/modals/modal-create-activitie/helpers/index.ts +14 -0
- package/src/components/modals/modal-create-activitie/index.tsx +210 -0
- package/src/components/modals/modal-create-activitie/interface.ts +22 -0
- package/src/components/modals/modal-create-activitie/styles.ts +24 -0
- package/src/components/modals/modal-exclude-activitie/index.ts +0 -0
- package/src/components/modals/modal-journey-rectification/index.tsx +236 -0
- package/src/components/modals/modal-journey-rectification/interface.d.ts +10 -0
- package/src/components/modals/modal-to-confimations/index.tsx +182 -0
- package/src/components/modals/modal-to-confimations/interface.ts +36 -0
- package/src/components/selects/select-date-and-hours/index.tsx +70 -0
- package/src/components/selects/select-date-and-hours/interface.ts +31 -0
- package/src/components/selects/select-date-and-hours/styles.ts +24 -0
- package/src/components/selects/select-option/index.tsx +2 -1
- package/src/components/selects/select-option/interface.d.ts +1 -1
- package/src/components/selects/select-option/styles.ts +74 -75
- package/src/components/supply-error-card/index.tsx +10 -6
- package/src/components/supply-error-card/interface.d.ts +3 -9
- package/src/components/toast-message/index.tsx +75 -74
- package/src/components/travel-history/index.tsx +7 -7
- package/src/components/trip-details-card/index.tsx +89 -12
- package/src/components/trip-details-card/interface.d.ts +4 -1
- package/src/components/typography/index.tsx +78 -78
- package/src/index.tsx +7 -0
- package/src/stories/list-devices/list-devices.stories.tsx +114 -0
- package/src/stories/list-supplies/list-supplies.stories.tsx +66 -0
- package/src/stories/modal-activity-reason/modal-activity-reason.stories.tsx +60 -0
- package/src/stories/modal-journey-rectification/modal-journey-rectification.stories.tsx +60 -0
- package/src/stories/supply-error-card/supply-error-card.stories.tsx +12 -12
- package/src/stories/trip-details-card/trip-details-card.stories.tsx +38 -5
- package/src/styles/theme/theme.ts +1 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React, { useState } from "react";
|
|
7
|
+
import { Modal, View } from "react-native";
|
|
8
|
+
|
|
9
|
+
// components
|
|
10
|
+
import Box from "../../box/index.js";
|
|
11
|
+
import Typography from "../../typography/index.js";
|
|
12
|
+
import Button from "../../button/index.js";
|
|
13
|
+
import SelectOption from "../../selects/select-option/index.js";
|
|
14
|
+
import InputDateTime from "../../inputs/input-date-time/index.js";
|
|
15
|
+
|
|
16
|
+
// commons / svg
|
|
17
|
+
import { Icons } from "../../../common/icons-svg/index.js";
|
|
18
|
+
|
|
19
|
+
// typings
|
|
20
|
+
|
|
21
|
+
import { asBaseComponent } from "../../../@types/as-base-component.js";
|
|
22
|
+
|
|
23
|
+
// styles
|
|
24
|
+
import { theme } from "../../../styles/theme/theme.js";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
const options = [{
|
|
27
|
+
label: "Disp com veículo parado",
|
|
28
|
+
value: "option1"
|
|
29
|
+
}, {
|
|
30
|
+
label: "Operação com veículo",
|
|
31
|
+
value: "option2"
|
|
32
|
+
}, {
|
|
33
|
+
label: "Em carga",
|
|
34
|
+
value: "option3"
|
|
35
|
+
}, {
|
|
36
|
+
label: "Em descarga",
|
|
37
|
+
value: "option4"
|
|
38
|
+
}];
|
|
39
|
+
const ModalJourneyRectification = ({
|
|
40
|
+
visible,
|
|
41
|
+
onClose,
|
|
42
|
+
modalConfirm,
|
|
43
|
+
textTitle
|
|
44
|
+
}) => {
|
|
45
|
+
const [isLoading] = React.useState(false);
|
|
46
|
+
|
|
47
|
+
// *** DEFAULTS: já começa com um motivo, data e hora atuais
|
|
48
|
+
const defaultReason = options[0]?.value ?? null;
|
|
49
|
+
const [selectedReason, setSelectedReason] = useState(defaultReason); // ***
|
|
50
|
+
const [selectedDate, setSelectedDate] = useState(new Date()); // ***
|
|
51
|
+
const [selectedTime, setSelectedTime] = useState(new Date()); // ***
|
|
52
|
+
|
|
53
|
+
// helpers de formatação
|
|
54
|
+
const fmtDate = d => `${String(d.getDate()).padStart(2, "0")}/${String(d.getMonth() + 1).padStart(2, "0")}/${d.getFullYear()}`;
|
|
55
|
+
const fmtTime = d => `${String(d.getHours()).padStart(2, "0")}:${String(d.getMinutes()).padStart(2, "0")}`;
|
|
56
|
+
|
|
57
|
+
// junta data + hora
|
|
58
|
+
const mergeDateTime = (date, time) => {
|
|
59
|
+
if (!date) return null;
|
|
60
|
+
const out = new Date(date);
|
|
61
|
+
if (time) {
|
|
62
|
+
out.setHours(time.getHours());
|
|
63
|
+
out.setMinutes(time.getMinutes());
|
|
64
|
+
out.setSeconds(0);
|
|
65
|
+
out.setMilliseconds(0);
|
|
66
|
+
}
|
|
67
|
+
return out;
|
|
68
|
+
};
|
|
69
|
+
return /*#__PURE__*/_jsx(Modal, {
|
|
70
|
+
animationType: "fade",
|
|
71
|
+
transparent: true,
|
|
72
|
+
visible: visible,
|
|
73
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
74
|
+
style: {
|
|
75
|
+
flex: 1,
|
|
76
|
+
justifyContent: "center",
|
|
77
|
+
alignItems: "center",
|
|
78
|
+
backgroundColor: "rgba(0,0,0,0.6)"
|
|
79
|
+
},
|
|
80
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
81
|
+
width: "90%",
|
|
82
|
+
backgroundColor: theme.colors.orange[500],
|
|
83
|
+
borderStyled: {
|
|
84
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
85
|
+
},
|
|
86
|
+
paddingStyle: {
|
|
87
|
+
paddingLeft: theme.paddings["2xs"],
|
|
88
|
+
paddingRight: theme.paddings["2xs"],
|
|
89
|
+
paddingTop: theme.paddings.sm,
|
|
90
|
+
paddingBottom: theme.paddings.sm
|
|
91
|
+
},
|
|
92
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
|
93
|
+
marginStyle: {
|
|
94
|
+
marginBottom: 10,
|
|
95
|
+
marginLeft: 4
|
|
96
|
+
},
|
|
97
|
+
flexStyle: {
|
|
98
|
+
flexDirection: "row",
|
|
99
|
+
alignItems: "center"
|
|
100
|
+
},
|
|
101
|
+
children: [/*#__PURE__*/_jsx(Icons, {
|
|
102
|
+
icon: "EXCLAMATION_TRIANGLE",
|
|
103
|
+
color: theme.colors.orange[500],
|
|
104
|
+
background: theme.colors.neutral[300],
|
|
105
|
+
size: 22
|
|
106
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
107
|
+
text: `${textTitle ?? "Incluir atividade"}`,
|
|
108
|
+
color: theme.colors.neutral[25],
|
|
109
|
+
marginLeft: theme.margins["2xs"],
|
|
110
|
+
fontFamily: theme.fonts.inter_bold_700,
|
|
111
|
+
size: theme.fontSizes.lg
|
|
112
|
+
})]
|
|
113
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
114
|
+
backgroundColor: theme.colors.neutral[300],
|
|
115
|
+
paddingStyle: {
|
|
116
|
+
padding: theme.paddings.xs
|
|
117
|
+
},
|
|
118
|
+
borderStyled: {
|
|
119
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
120
|
+
},
|
|
121
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
122
|
+
text: "Confirme as alterações antes de salvar.",
|
|
123
|
+
color: theme.colors.black[25],
|
|
124
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
125
|
+
size: theme.fontSizes.md,
|
|
126
|
+
marginBottom: 16
|
|
127
|
+
}), /*#__PURE__*/_jsx(SelectOption, {
|
|
128
|
+
titleLabel: "Selecione atividade",
|
|
129
|
+
sizeTitleLabel: 18,
|
|
130
|
+
dataOption: options
|
|
131
|
+
// Onde o motivo é RECEBIDO: aqui no callback
|
|
132
|
+
,
|
|
133
|
+
handleSelectDown: value => setSelectedReason(value) // ***
|
|
134
|
+
,
|
|
135
|
+
backgroundColor: theme.colors.neutral[300]
|
|
136
|
+
}), /*#__PURE__*/_jsx(InputDateTime, {
|
|
137
|
+
mode: "date",
|
|
138
|
+
titleLabel: "Data"
|
|
139
|
+
// Onde a data é RECEBIDA: no onChange abaixo
|
|
140
|
+
,
|
|
141
|
+
value: selectedDate // *** controlado
|
|
142
|
+
,
|
|
143
|
+
onChange: d => setSelectedDate(d) // ***
|
|
144
|
+
,
|
|
145
|
+
backgroundColor: "#f5f5f5",
|
|
146
|
+
colortitleLabel: "#333"
|
|
147
|
+
}), /*#__PURE__*/_jsx(InputDateTime, {
|
|
148
|
+
mode: "time",
|
|
149
|
+
titleLabel: "Hor\xE1rio"
|
|
150
|
+
// Onde a hora é RECEBIDA: no onChange abaixo
|
|
151
|
+
,
|
|
152
|
+
value: selectedTime // *** controlado
|
|
153
|
+
,
|
|
154
|
+
onChange: d => setSelectedTime(d) // ***
|
|
155
|
+
,
|
|
156
|
+
backgroundColor: "#f5f5f5",
|
|
157
|
+
colortitleLabel: "#333"
|
|
158
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
159
|
+
marginStyle: {
|
|
160
|
+
marginTop: 4
|
|
161
|
+
},
|
|
162
|
+
flexStyle: {
|
|
163
|
+
flexDirection: "row",
|
|
164
|
+
justifyContent: "space-between"
|
|
165
|
+
},
|
|
166
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
167
|
+
title: "CANCELAR",
|
|
168
|
+
onPress: onClose,
|
|
169
|
+
width: "48%",
|
|
170
|
+
height: 40,
|
|
171
|
+
isLoading: isLoading,
|
|
172
|
+
disabled: isLoading,
|
|
173
|
+
backgroundColor: theme.colors.neutral[300],
|
|
174
|
+
buttonTextStyle: {
|
|
175
|
+
color: theme.colors.blue[100],
|
|
176
|
+
fontFamily: "Inter-Medium",
|
|
177
|
+
fontSize: theme.fontSizes.xs,
|
|
178
|
+
fontWeight: "500"
|
|
179
|
+
},
|
|
180
|
+
flexStyle: {
|
|
181
|
+
flexDirection: "row",
|
|
182
|
+
alignItems: "center",
|
|
183
|
+
justifyContent: "center",
|
|
184
|
+
textAlign: "center"
|
|
185
|
+
},
|
|
186
|
+
borderStyled: {
|
|
187
|
+
borderWidth: theme.borderWidths.thin,
|
|
188
|
+
borderColor: theme.colors.blue[100],
|
|
189
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
190
|
+
}
|
|
191
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
192
|
+
title: "CONFIRMAR",
|
|
193
|
+
onPress: () => {
|
|
194
|
+
const merged = mergeDateTime(selectedDate, selectedTime);
|
|
195
|
+
const payload = {
|
|
196
|
+
reasonValue: selectedReason,
|
|
197
|
+
reasonLabel: options.find(o => o.value === selectedReason)?.label ?? null,
|
|
198
|
+
date: selectedDate ? fmtDate(selectedDate) : null,
|
|
199
|
+
time: selectedTime ? fmtTime(selectedTime) : null,
|
|
200
|
+
dateTimeISO: merged ? merged.toISOString() : null
|
|
201
|
+
};
|
|
202
|
+
modalConfirm(payload);
|
|
203
|
+
onClose();
|
|
204
|
+
},
|
|
205
|
+
width: "48%",
|
|
206
|
+
height: 40,
|
|
207
|
+
isLoading: isLoading,
|
|
208
|
+
disabled: isLoading,
|
|
209
|
+
backgroundColor: theme.colors.blue[500],
|
|
210
|
+
buttonTextStyle: {
|
|
211
|
+
color: theme.colors.neutral[25],
|
|
212
|
+
fontFamily: "Inter-Medium",
|
|
213
|
+
fontSize: theme.fontSizes.xs,
|
|
214
|
+
fontWeight: "500"
|
|
215
|
+
},
|
|
216
|
+
flexStyle: {
|
|
217
|
+
flexDirection: "row",
|
|
218
|
+
alignItems: "center",
|
|
219
|
+
justifyContent: "center",
|
|
220
|
+
textAlign: "center"
|
|
221
|
+
},
|
|
222
|
+
borderStyled: {
|
|
223
|
+
borderWidth: theme.borderWidths.thin,
|
|
224
|
+
borderColor: theme.colors.blue[100],
|
|
225
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
226
|
+
}
|
|
227
|
+
})]
|
|
228
|
+
})]
|
|
229
|
+
})]
|
|
230
|
+
})
|
|
231
|
+
})
|
|
232
|
+
});
|
|
233
|
+
};
|
|
234
|
+
ModalJourneyRectification.displayName = "ModalJourneyRectification";
|
|
235
|
+
export default asBaseComponent(ModalJourneyRectification);
|
|
236
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","Modal","View","Box","Typography","Button","SelectOption","InputDateTime","Icons","asBaseComponent","theme","jsx","_jsx","jsxs","_jsxs","options","label","value","ModalJourneyRectification","visible","onClose","modalConfirm","textTitle","isLoading","defaultReason","selectedReason","setSelectedReason","selectedDate","setSelectedDate","Date","selectedTime","setSelectedTime","fmtDate","d","String","getDate","padStart","getMonth","getFullYear","fmtTime","getHours","getMinutes","mergeDateTime","date","time","out","setHours","setMinutes","setSeconds","setMilliseconds","animationType","transparent","children","style","flex","justifyContent","alignItems","backgroundColor","width","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","marginLeft","flexStyle","flexDirection","icon","color","background","neutral","size","text","margins","fontFamily","fonts","inter_bold_700","fontSizes","lg","padding","xs","black","inter_regular_400","md","titleLabel","sizeTitleLabel","dataOption","handleSelectDown","mode","onChange","colortitleLabel","marginTop","title","onPress","height","disabled","buttonTextStyle","blue","fontSize","fontWeight","textAlign","borderWidth","thin","borderColor","merged","payload","reasonValue","reasonLabel","find","o","dateTimeISO","toISOString","displayName"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-journey-rectification/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACv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vG,KAAK,CAACiD,MAAM,CAACgD,IAAI,CAAC,GAAG,CAAC;gBACnC7C,YAAY,EAAEpD,KAAK,CAACqD,YAAY,CAACC;cACnC;YAAE,CACH,CAAC;UAAA,CACC,CAAC;QAAA,CACH,CAAC;MAAA,CACH;IAAC,CACF;EAAC,CACF,CAAC;AAEZ,CAAC;AAED9C,yBAAyB,CAACwG,WAAW,GAAG,2BAA2B;AAEnE,eAAejH,eAAe,CAACS,yBAAyB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-journey-rectification/interface.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { Modal, Text, View } from "react-native";
|
|
8
|
+
|
|
9
|
+
// components
|
|
10
|
+
import Box from "../../box/index.js";
|
|
11
|
+
import Button from "../../button/index.js";
|
|
12
|
+
import Typography from "../../typography/index.js";
|
|
13
|
+
|
|
14
|
+
// commons / svg
|
|
15
|
+
import { Icons } from "../../../common/icons-svg/index.js";
|
|
16
|
+
|
|
17
|
+
// typings
|
|
18
|
+
|
|
19
|
+
import { asBaseComponent } from "../../../@types/as-base-component.js";
|
|
20
|
+
|
|
21
|
+
// styles
|
|
22
|
+
import { theme } from "../../../styles/theme/theme.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Componente ModalToConfirmations para a interação da ui.
|
|
26
|
+
*/
|
|
27
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
+
const ModalToConfirmations = ({
|
|
29
|
+
visible,
|
|
30
|
+
onClose,
|
|
31
|
+
onPressConfirm,
|
|
32
|
+
textTitle,
|
|
33
|
+
text1,
|
|
34
|
+
text2,
|
|
35
|
+
titleButtonCancel,
|
|
36
|
+
titleButtonConfirm,
|
|
37
|
+
backgroundColor
|
|
38
|
+
}) => {
|
|
39
|
+
return /*#__PURE__*/_jsx(Modal, {
|
|
40
|
+
animationType: "fade",
|
|
41
|
+
transparent: true,
|
|
42
|
+
visible: visible,
|
|
43
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
44
|
+
style: {
|
|
45
|
+
flex: 1,
|
|
46
|
+
justifyContent: "center",
|
|
47
|
+
alignItems: "center",
|
|
48
|
+
backgroundColor: theme.shadows.z1
|
|
49
|
+
},
|
|
50
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
51
|
+
width: "90%",
|
|
52
|
+
backgroundColor: theme.colors.orange[500],
|
|
53
|
+
borderStyled: {
|
|
54
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
55
|
+
},
|
|
56
|
+
paddingStyle: {
|
|
57
|
+
paddingLeft: theme.paddings["2xs"],
|
|
58
|
+
paddingRight: theme.paddings["2xs"],
|
|
59
|
+
paddingTop: theme.paddings.sm,
|
|
60
|
+
paddingBottom: theme.paddings.sm
|
|
61
|
+
},
|
|
62
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
|
63
|
+
marginStyle: {
|
|
64
|
+
marginBottom: 10,
|
|
65
|
+
marginLeft: 4
|
|
66
|
+
},
|
|
67
|
+
flexStyle: {
|
|
68
|
+
flexDirection: "row",
|
|
69
|
+
alignItems: "center"
|
|
70
|
+
},
|
|
71
|
+
children: [/*#__PURE__*/_jsx(Icons, {
|
|
72
|
+
icon: "EXCLAMATION_TRIANGLE",
|
|
73
|
+
color: theme.colors.orange[500],
|
|
74
|
+
background: theme.colors.neutral[300],
|
|
75
|
+
size: 22
|
|
76
|
+
}), /*#__PURE__*/_jsx(Typography, {
|
|
77
|
+
text: `${textTitle ?? "TITULO NÃO INFORMADO"}`,
|
|
78
|
+
color: theme.colors.neutral[25],
|
|
79
|
+
marginLeft: theme.margins["2xs"],
|
|
80
|
+
fontFamily: theme.fonts.inter_bold_700,
|
|
81
|
+
size: theme.fontSizes.lg
|
|
82
|
+
})]
|
|
83
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
84
|
+
backgroundColor: theme.colors.neutral[300],
|
|
85
|
+
paddingStyle: {
|
|
86
|
+
padding: theme.paddings.xs
|
|
87
|
+
},
|
|
88
|
+
borderStyled: {
|
|
89
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
90
|
+
},
|
|
91
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
92
|
+
flexStyle: {
|
|
93
|
+
flexDirection: "row",
|
|
94
|
+
alignItems: "center"
|
|
95
|
+
},
|
|
96
|
+
children: /*#__PURE__*/_jsxs(Text, {
|
|
97
|
+
style: {
|
|
98
|
+
color: theme.colors.orange[150],
|
|
99
|
+
fontFamily: theme.fonts.inter_semi_bold_600,
|
|
100
|
+
marginBottom: text2 ? 16 : 8
|
|
101
|
+
},
|
|
102
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
103
|
+
text: `${text1} `,
|
|
104
|
+
size: theme.fontSizes.sm,
|
|
105
|
+
fontFamily: theme.fonts.inter_regular_400,
|
|
106
|
+
fontWeight: "400",
|
|
107
|
+
color: theme.colors.black[180],
|
|
108
|
+
lineHeight: 24,
|
|
109
|
+
letterSpacing: "regular"
|
|
110
|
+
}), text2 ?? "Alterar?"]
|
|
111
|
+
})
|
|
112
|
+
}), /*#__PURE__*/_jsxs(Box, {
|
|
113
|
+
flexStyle: {
|
|
114
|
+
flexDirection: "row",
|
|
115
|
+
justifyContent: "space-between"
|
|
116
|
+
},
|
|
117
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
118
|
+
title: titleButtonCancel ?? "CANCELAR",
|
|
119
|
+
onPress: onClose,
|
|
120
|
+
width: text2 ? "48%" : "100%",
|
|
121
|
+
height: 40,
|
|
122
|
+
isLoading: false,
|
|
123
|
+
disabled: false,
|
|
124
|
+
backgroundColor: backgroundColor ?? theme.colors.neutral[300],
|
|
125
|
+
buttonTextStyle: {
|
|
126
|
+
color: backgroundColor ? theme.colors.neutral[25] : theme.colors.blue[100],
|
|
127
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
128
|
+
fontSize: theme.fontSizes.xs,
|
|
129
|
+
fontWeight: "500"
|
|
130
|
+
},
|
|
131
|
+
flexStyle: {
|
|
132
|
+
flexDirection: "row",
|
|
133
|
+
alignItems: "center",
|
|
134
|
+
justifyContent: "center",
|
|
135
|
+
textAlign: "center"
|
|
136
|
+
},
|
|
137
|
+
borderStyled: {
|
|
138
|
+
borderWidth: theme.borderWidths.thin,
|
|
139
|
+
borderColor: theme.colors.blue[100],
|
|
140
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
141
|
+
}
|
|
142
|
+
}), text2 && /*#__PURE__*/_jsx(Button, {
|
|
143
|
+
title: titleButtonConfirm ?? "CONFIRMAR",
|
|
144
|
+
onPress: () => {
|
|
145
|
+
onPressConfirm();
|
|
146
|
+
onClose();
|
|
147
|
+
},
|
|
148
|
+
width: "48%",
|
|
149
|
+
height: 40,
|
|
150
|
+
isLoading: false,
|
|
151
|
+
disabled: false,
|
|
152
|
+
backgroundColor: theme.colors.blue[500],
|
|
153
|
+
buttonTextStyle: {
|
|
154
|
+
color: theme.colors.neutral[25],
|
|
155
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
156
|
+
fontSize: theme.fontSizes.xs,
|
|
157
|
+
fontWeight: "500"
|
|
158
|
+
},
|
|
159
|
+
flexStyle: {
|
|
160
|
+
flexDirection: "row",
|
|
161
|
+
alignItems: "center",
|
|
162
|
+
justifyContent: "center",
|
|
163
|
+
textAlign: "center"
|
|
164
|
+
},
|
|
165
|
+
borderStyled: {
|
|
166
|
+
borderWidth: theme.borderWidths.thin,
|
|
167
|
+
borderColor: theme.colors.blue[100],
|
|
168
|
+
borderRadius: theme.borderWidths.thick_medium
|
|
169
|
+
}
|
|
170
|
+
})]
|
|
171
|
+
})]
|
|
172
|
+
})]
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
});
|
|
176
|
+
};
|
|
177
|
+
ModalToConfirmations.displayName = "ModalToConfirmations";
|
|
178
|
+
export default asBaseComponent(ModalToConfirmations);
|
|
179
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Modal","Text","View","Box","Button","Typography","Icons","asBaseComponent","theme","jsx","_jsx","jsxs","_jsxs","ModalToConfirmations","visible","onClose","onPressConfirm","textTitle","text1","text2","titleButtonCancel","titleButtonConfirm","backgroundColor","animationType","transparent","children","style","flex","justifyContent","alignItems","shadows","z1","width","colors","orange","borderStyled","borderRadius","borderWidths","thick_medium","paddingStyle","paddingLeft","paddings","paddingRight","paddingTop","sm","paddingBottom","marginStyle","marginBottom","marginLeft","flexStyle","flexDirection","icon","color","background","neutral","size","text","margins","fontFamily","fonts","inter_bold_700","fontSizes","lg","padding","xs","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"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-to-confimations/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;;AAEhD;AACA,OAAOC,GAAG,MAAM,oBAAW;AAC3B,OAAOC,MAAM,MAAM,uBAAc;AACjC,OAAOC,UAAU,MAAM,2BAAkB;;AAEzC;AACA,SAASC,KAAK,QAAQ,oCAA2B;;AAEjD;;AAEA,SAASC,eAAe,QAAQ,sCAAmC;;AAEnE;AACA,SAASC,KAAK,QAAQ,gCAA6B;;AAEnD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGA,MAAMC,oBAA0D,GAAGA,CAAC;EAClEC,OAAO;EACPC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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/modals/modal-to-confimations/interface.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React, { forwardRef } from "react";
|
|
7
|
+
import { View, TouchableOpacity } from "react-native";
|
|
8
|
+
|
|
9
|
+
// seus componentes
|
|
10
|
+
import Box from "../../box/index.js";
|
|
11
|
+
import Typography from "../../typography/index.js";
|
|
12
|
+
|
|
13
|
+
// commons / svg
|
|
14
|
+
import { Icons } from "../../../common/icons-svg/index.js";
|
|
15
|
+
|
|
16
|
+
// typings
|
|
17
|
+
|
|
18
|
+
import { asBaseComponent } from "../../../@types/as-base-component.js";
|
|
19
|
+
|
|
20
|
+
// styles
|
|
21
|
+
import { theme } from "../../../styles/theme/theme.js";
|
|
22
|
+
import { styles } from "./styles.js";
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
const ActivityFields = /*#__PURE__*/forwardRef(({
|
|
25
|
+
value,
|
|
26
|
+
icon,
|
|
27
|
+
onPressConfirm,
|
|
28
|
+
disabled = false
|
|
29
|
+
}, ref) => {
|
|
30
|
+
return /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
31
|
+
ref: ref,
|
|
32
|
+
activeOpacity: 0.7,
|
|
33
|
+
style: [styles.field, {
|
|
34
|
+
borderColor: theme.colors.gray[700],
|
|
35
|
+
backgroundColor: theme.colors.neutral[300],
|
|
36
|
+
opacity: disabled ? 0.7 : 1
|
|
37
|
+
}],
|
|
38
|
+
onPress: () => onPressConfirm(value),
|
|
39
|
+
disabled: disabled,
|
|
40
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
41
|
+
style: styles.row,
|
|
42
|
+
children: [/*#__PURE__*/_jsx(Box, {
|
|
43
|
+
width: "10%",
|
|
44
|
+
height: 45,
|
|
45
|
+
flexStyle: {
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
justifyContent: "center"
|
|
48
|
+
},
|
|
49
|
+
children: /*#__PURE__*/_jsx(Icons, {
|
|
50
|
+
icon: icon ? icon : "CALENDAR",
|
|
51
|
+
color: theme.colors.black[100],
|
|
52
|
+
size: 18
|
|
53
|
+
})
|
|
54
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
55
|
+
width: "90%",
|
|
56
|
+
height: 45,
|
|
57
|
+
flexStyle: {
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
justifyContent: "center"
|
|
60
|
+
},
|
|
61
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
|
62
|
+
text: String(value),
|
|
63
|
+
color: theme.colors.blue[500],
|
|
64
|
+
fontFamily: theme.fonts.inter_medium_500,
|
|
65
|
+
size: theme.fontSizes.md,
|
|
66
|
+
marginRight: 44
|
|
67
|
+
})
|
|
68
|
+
})]
|
|
69
|
+
})
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
ActivityFields.displayName = "ActivityFields";
|
|
73
|
+
export default asBaseComponent(ActivityFields);
|
|
74
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","View","TouchableOpacity","Box","Typography","Icons","asBaseComponent","theme","styles","jsx","_jsx","jsxs","_jsxs","ActivityFields","value","icon","onPressConfirm","disabled","ref","activeOpacity","style","field","borderColor","colors","gray","backgroundColor","neutral","opacity","onPress","children","row","width","height","flexStyle","alignItems","justifyContent","color","black","size","text","String","blue","fontFamily","fonts","inter_medium_500","fontSizes","md","marginRight","displayName"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/selects/select-date-and-hours/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AAEzC,SAASC,IAAI,EAAEC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7B,KAAK,CAACgB,MAAM,CAACc,KAAK,CAAC,GAAG,CAAE;UAACC,IAAI,EAAE;QAAG,CAAE;MAAC,CAChF,CAAC,eAEN5B,IAAA,CAACP,GAAG;QACF4B,KAAK,EAAE,KAAM;QACbC,MAAM,EAAE,EAAG;QACXC,SAAS,EAAE;UAAEC,UAAU,EAAE,QAAQ;UAAEC,cAAc,EAAE;QAAS,CAAE;QAAAN,QAAA,eAE9DnB,IAAA,CAACN,UAAU;UACTmC,IAAI,EAAEC,MAAM,CAAC1B,KAAK,CAAE;UACpBsB,KAAK,EAAE7B,KAAK,CAACgB,MAAM,CAACkB,IAAI,CAAC,GAAG,CAAE;UAC9BC,UAAU,EAAEnC,KAAK,CAACoC,KAAK,CAACC,gBAAiB;UACzCN,IAAI,EAAE/B,KAAK,CAACsC,SAAS,CAACC,EAAG;UACzBC,WAAW,EAAE;QAAG,CACjB;MAAC,CACC,CAAC;IAAA,CACF;EAAC,CACS,CAAC;AAEvB,CACF,CAAC;AAEDlC,cAAc,CAACmC,WAAW,GAAG,gBAAgB;AAE7C,eAAe1C,eAAe,CAACO,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,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { StyleSheet } from "react-native";
|
|
8
|
+
const styles = StyleSheet.create({
|
|
9
|
+
field: {
|
|
10
|
+
width: "100%",
|
|
11
|
+
height: 45,
|
|
12
|
+
borderRadius: 12,
|
|
13
|
+
borderWidth: 1,
|
|
14
|
+
paddingHorizontal: 12,
|
|
15
|
+
justifyContent: "center",
|
|
16
|
+
marginTop: 10,
|
|
17
|
+
marginBottom: 16
|
|
18
|
+
},
|
|
19
|
+
row: {
|
|
20
|
+
flexDirection: "row",
|
|
21
|
+
alignItems: "center",
|
|
22
|
+
gap: 8,
|
|
23
|
+
justifyContent: "space-around"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* EXPORTS
|
|
29
|
+
*/
|
|
30
|
+
export { styles };
|
|
31
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","styles","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":";;AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,cAAc;AAEzC,MAAMC,MAAM,GAAGD,UAAU,CAACE,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;AACA,SAASR,MAAM","ignoreList":[]}
|
|
@@ -21,7 +21,8 @@ const SelectOption = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
21
21
|
handleSelectDown,
|
|
22
22
|
titleLabel,
|
|
23
23
|
sizeTitleLabel,
|
|
24
|
-
colortitleLabel
|
|
24
|
+
colortitleLabel,
|
|
25
|
+
backgroundColor
|
|
25
26
|
} = props;
|
|
26
27
|
const [selectedValue, setSelectedValue] = useState(dataOption[0]?.value || "");
|
|
27
28
|
const [modalVisible, setModalVisible] = useState(false);
|
|
@@ -35,7 +36,8 @@ const SelectOption = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
35
36
|
handleSelectDown,
|
|
36
37
|
titleLabel,
|
|
37
38
|
sizeTitleLabel,
|
|
38
|
-
colortitleLabel
|
|
39
|
+
colortitleLabel,
|
|
40
|
+
backgroundColor
|
|
39
41
|
};
|
|
40
42
|
return /*#__PURE__*/_jsxs(View, {
|
|
41
43
|
ref: ref,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useState","View","Text","TouchableOpacity","Modal","FlatList","Icons","asBaseComponent","styles","theme","jsxs","_jsxs","jsx","_jsx","SelectOption","props","ref","dataOption","handleSelectDown","titleLabel","sizeTitleLabel","colortitleLabel","selectedValue","setSelectedValue","value","modalVisible","setModalVisible","handleSelect","styleProps","style","container","children","label","testID","selectBox","onPress","selectedText","find","item","size","fontSizes","color","colors","blue","icon","visible","transparent","animationType","modalOverlay","modalContainer","width","alignItems","data","keyExtractor","renderItem","option","optionText"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/selects/select-option/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;;AAE5E;AACA,SAASC,KAAK,QAAQ,oCAA2B;;AAEjD;AACA,SAASC,eAAe,QAAQ,sCAAmC;AAGnE;AACA,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,KAAK,QAAQ,gCAA6B;AAAC,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA;AAEpD,MAAMC,YAAY,gBAAGf,UAAU,CAA4B,CAACgB,KAAK,EAAEC,GAAG,KAAyB;EAC7F,MAAM;IAAEC,UAAU;IAAEC,gBAAgB;IAAEC,UAAU;IAAEC,cAAc;IAAEC;EAAgB,CAAC,
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useState","View","Text","TouchableOpacity","Modal","FlatList","Icons","asBaseComponent","styles","theme","jsxs","_jsxs","jsx","_jsx","SelectOption","props","ref","dataOption","handleSelectDown","titleLabel","sizeTitleLabel","colortitleLabel","backgroundColor","selectedValue","setSelectedValue","value","modalVisible","setModalVisible","handleSelect","styleProps","style","container","children","label","testID","selectBox","onPress","selectedText","find","item","size","fontSizes","color","colors","blue","icon","visible","transparent","animationType","modalOverlay","modalContainer","width","alignItems","data","keyExtractor","renderItem","option","optionText"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/selects/select-option/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AACnD,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,QAAQ,QAAQ,cAAc;;AAE5E;AACA,SAASC,KAAK,QAAQ,oCAA2B;;AAEjD;AACA,SAASC,eAAe,QAAQ,sCAAmC;AAGnE;AACA,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,KAAK,QAAQ,gCAA6B;AAAC,SAAAC,IAAA,IAAAC,KAAA,EAAAC,GAAA,IAAAC,IAAA;AAEpD,MAAMC,YAAY,gBAAGf,UAAU,CAA4B,CAACgB,KAAK,EAAEC,GAAG,KAAyB;EAC7F,MAAM;IAAEC,UAAU;IAAEC,gBAAgB;IAAEC,UAAU;IAAEC,cAAc;IAAEC,eAAe;IAAEC;EAAgB,CAAC,GAAGP,KAAK;EAE5G,MAAM,CAACQ,aAAa,EAAEC,gBAAgB,CAAC,GAAGxB,QAAQ,CAACiB,UAAU,CAAC,CAAC,CAAC,EAAEQ,KAAK,IAAI,EAAE,CAAC;EAC9E,MAAM,CAACC,YAAY,EAAEC,eAAe,CAAC,GAAG3B,QAAQ,CAAC,KAAK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