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,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { StyleSheet } from "react-native";
|
|
8
|
+
|
|
9
|
+
// styles
|
|
10
|
+
import { theme } from "../../styles/theme/theme.js";
|
|
11
|
+
export const ROW_HEIGHT = 72;
|
|
12
|
+
const styles = StyleSheet.create({
|
|
13
|
+
listContainer: {
|
|
14
|
+
paddingVertical: 8
|
|
15
|
+
},
|
|
16
|
+
row: {
|
|
17
|
+
width: "100%",
|
|
18
|
+
minHeight: ROW_HEIGHT,
|
|
19
|
+
paddingVertical: 8,
|
|
20
|
+
paddingHorizontal: 8,
|
|
21
|
+
flexDirection: "row",
|
|
22
|
+
alignItems: "center",
|
|
23
|
+
justifyContent: "center",
|
|
24
|
+
gap: 6
|
|
25
|
+
},
|
|
26
|
+
badge: {
|
|
27
|
+
width: 28,
|
|
28
|
+
height: 28,
|
|
29
|
+
borderRadius: 14,
|
|
30
|
+
backgroundColor: theme.colors.blue[500],
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
justifyContent: "center"
|
|
33
|
+
},
|
|
34
|
+
card: {
|
|
35
|
+
flex: 1,
|
|
36
|
+
borderRadius: 10
|
|
37
|
+
},
|
|
38
|
+
title: {
|
|
39
|
+
marginBottom: 6
|
|
40
|
+
},
|
|
41
|
+
pill: {
|
|
42
|
+
flexDirection: "row",
|
|
43
|
+
alignItems: "center",
|
|
44
|
+
borderWidth: 1,
|
|
45
|
+
borderRadius: 10,
|
|
46
|
+
paddingHorizontal: 10,
|
|
47
|
+
paddingVertical: 8,
|
|
48
|
+
gap: 4
|
|
49
|
+
},
|
|
50
|
+
pillOk: {
|
|
51
|
+
backgroundColor: "#F3F3F5",
|
|
52
|
+
borderColor: "#C4D4E5"
|
|
53
|
+
},
|
|
54
|
+
pillInvalid: {
|
|
55
|
+
backgroundColor: "#FDE7E7",
|
|
56
|
+
borderColor: theme.colors.red[900]
|
|
57
|
+
},
|
|
58
|
+
sep: {
|
|
59
|
+
marginHorizontal: 8,
|
|
60
|
+
opacity: 0.5
|
|
61
|
+
},
|
|
62
|
+
actions: {
|
|
63
|
+
flexDirection: "row",
|
|
64
|
+
gap: 8
|
|
65
|
+
},
|
|
66
|
+
iconButton: {
|
|
67
|
+
width: 36,
|
|
68
|
+
height: 36,
|
|
69
|
+
borderRadius: 8,
|
|
70
|
+
backgroundColor: theme.colors.neutral[25],
|
|
71
|
+
borderWidth: 1,
|
|
72
|
+
borderColor: theme.colors.neutral[200],
|
|
73
|
+
alignItems: "center",
|
|
74
|
+
justifyContent: "center",
|
|
75
|
+
marginTop: 36
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* EXPORTS
|
|
81
|
+
*/
|
|
82
|
+
export { styles };
|
|
83
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","ROW_HEIGHT","styles","create","listContainer","paddingVertical","row","width","minHeight","paddingHorizontal","flexDirection","alignItems","justifyContent","gap","badge","height","borderRadius","backgroundColor","colors","blue","card","flex","title","marginBottom","pill","borderWidth","pillOk","borderColor","pillInvalid","red","sep","marginHorizontal","opacity","actions","iconButton","neutral","marginTop"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/activity-step/styles.ts"],"mappings":";;AAAA;AACA;AACA;;AAEA,SAASA,UAAU,QAAQ,cAAc;;AAEzC;AACA,SAASC,KAAK,QAAQ,6BAA0B;AAEhD,OAAO,MAAMC,UAAU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EAAE,CAAC;EACzCqB,UAAU,EAAE;IACV3B,KAAK,EAAE,EAAE;IACTQ,MAAM,EAAE,EAAE;IACVC,YAAY,EAAE,CAAC;IACfC,eAAe,EAAEjB,KAAK,CAACkB,MAAM,CAACiB,OAAO,CAAC,EAAE,CAAC;IACzCV,WAAW,EAAE,CAAC;IACdE,WAAW,EAAE3B,KAAK,CAACkB,MAAM,CAACiB,OAAO,CAAC,GAAG,CAAC;IACtCxB,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBwB,SAAS,EAAE;EACb;AACF,CAAC,CAAC;;AAEF;AACA;AACA;AACA,SAASlC,MAAM","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* IMPORTS
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
5
|
*/
|
|
6
6
|
import React, { forwardRef } from "react";
|
|
7
7
|
import { Dimensions } from "react-native";
|
|
@@ -21,6 +21,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
21
21
|
const CardScheduledJourney = /*#__PURE__*/forwardRef((props, ref) => {
|
|
22
22
|
const {
|
|
23
23
|
title,
|
|
24
|
+
subTitle,
|
|
24
25
|
duracao,
|
|
25
26
|
color = {},
|
|
26
27
|
backgroundColor,
|
|
@@ -97,13 +98,14 @@ const CardScheduledJourney = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
97
98
|
lineHeight: theme.fontSizes.lg,
|
|
98
99
|
letterSpacing: "regular"
|
|
99
100
|
}), /*#__PURE__*/_jsx(Typography, {
|
|
100
|
-
text:
|
|
101
|
+
text: `${subTitle ?? "Duração"}: ${duracao}`,
|
|
101
102
|
size: theme.fontSizes.xs,
|
|
102
103
|
fontWeight: "300",
|
|
103
104
|
fontFamily: theme.fonts.inter_light_300,
|
|
104
105
|
color: color.colorText ?? theme.colors.black[25],
|
|
105
106
|
lineHeight: theme.fontSizes.lg,
|
|
106
|
-
letterSpacing: "regular"
|
|
107
|
+
letterSpacing: "regular",
|
|
108
|
+
marginTop: 4
|
|
107
109
|
})]
|
|
108
110
|
}), /*#__PURE__*/_jsx(Box, {
|
|
109
111
|
width: 12,
|
|
@@ -120,8 +122,8 @@ const CardScheduledJourney = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
120
122
|
});
|
|
121
123
|
});
|
|
122
124
|
|
|
123
|
-
/**
|
|
124
|
-
* Componente CardScheduledJourney para a interação da ui.
|
|
125
|
+
/**
|
|
126
|
+
* Componente CardScheduledJourney para a interação da ui.
|
|
125
127
|
*/
|
|
126
128
|
export default asBaseComponent(CardScheduledJourney);
|
|
127
129
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","Dimensions","Box","Typography","asBaseComponent","theme","Icons","jsx","_jsx","jsxs","_jsxs","CardScheduledJourney","props","ref","title","duracao","color","backgroundColor","borderStyled","paddingStyle","marginStyle","flexStyle","style","width","widthChildren","icon","borderRight","widthScreen","get","isMobile","height","colors","neutral","borderWidth","borderWidths","thin","borderRadius","thin_bold","borderColor","gray","children","flexDirection","justifyContent","alignItems","thick","paddingLeft","size","fontSizes","marginTop","text","sm","fontFamily","fonts","inter_bold_700","fontWeight","colorText","black","lineHeight","lg","letterSpacing","xs","inter_light_300","green","borderTopRightRadius","borderBottomRightRadius"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/card-scheduled-journey/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,UAAU,QAAQ,cAAc;;AAEzC;AACA,OAAOC,GAAG,MAAM,iBAAQ;AACxB,OAAOC,UAAU,MAAM,wBAAe;;AAEtC;AACA,SAASC,eAAe,QAAQ,mCAAgC;AAGhE;AACA,SAASC,KAAK,QAAQ,6BAA0B;;AAEhD;AACA,SAASC,KAAK,QAAQ,iCAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,MAAMC,oBAAoB,gBAAGX,UAAU,CACrC,CAACY,KAAK,EAAEC,GAAG,KAAyB;EAClC,MAAM;IACJC,KAAK;IACLC,OAAO;IACPC,KAAK,GAAG,CAAC,CAAC;IACVC,eAAe;IACfC,YAAY;IACZC,YAAY;IACZC,WAAW;IACXC,SAAS;IACTC,KAAK;IACLC,KAAK;IACLC,aAAa;IACbC,IAAI;IACJC;EACF,CAAC,
|
|
1
|
+
{"version":3,"names":["React","forwardRef","Dimensions","Box","Typography","asBaseComponent","theme","Icons","jsx","_jsx","jsxs","_jsxs","CardScheduledJourney","props","ref","title","subTitle","duracao","color","backgroundColor","borderStyled","paddingStyle","marginStyle","flexStyle","style","width","widthChildren","icon","borderRight","widthScreen","get","isMobile","height","colors","neutral","borderWidth","borderWidths","thin","borderRadius","thin_bold","borderColor","gray","children","flexDirection","justifyContent","alignItems","thick","paddingLeft","size","fontSizes","marginTop","text","sm","fontFamily","fonts","inter_bold_700","fontWeight","colorText","black","lineHeight","lg","letterSpacing","xs","inter_light_300","green","borderTopRightRadius","borderBottomRightRadius"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/card-scheduled-journey/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,UAAU,QAAQ,cAAc;;AAEzC;AACA,OAAOC,GAAG,MAAM,iBAAQ;AACxB,OAAOC,UAAU,MAAM,wBAAe;;AAEtC;AACA,SAASC,eAAe,QAAQ,mCAAgC;AAGhE;AACA,SAASC,KAAK,QAAQ,6BAA0B;;AAEhD;AACA,SAASC,KAAK,QAAQ,iCAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,MAAMC,oBAAoB,gBAAGX,UAAU,CACrC,CAACY,KAAK,EAAEC,GAAG,KAAyB;EACl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
19
19
|
export const CoilRemovalCode = ({
|
|
20
20
|
code,
|
|
21
21
|
width,
|
|
22
|
-
height
|
|
22
|
+
height,
|
|
23
|
+
backgroundColor
|
|
23
24
|
}) => {
|
|
24
25
|
return /*#__PURE__*/_jsx(Box, {
|
|
25
26
|
width: width ?? "100%",
|
|
@@ -30,7 +31,7 @@ export const CoilRemovalCode = ({
|
|
|
30
31
|
borderColor: theme.colors.orange[150],
|
|
31
32
|
borderStyle: "dotted"
|
|
32
33
|
},
|
|
33
|
-
backgroundColor: theme.colors.gray[300],
|
|
34
|
+
backgroundColor: backgroundColor ?? theme.colors.gray[300],
|
|
34
35
|
flexStyle: {
|
|
35
36
|
justifyContent: "center",
|
|
36
37
|
alignItems: "center"
|
|
@@ -41,7 +42,7 @@ export const CoilRemovalCode = ({
|
|
|
41
42
|
fontFamily: theme.fonts.inter_medium_500,
|
|
42
43
|
fontWeight: "500",
|
|
43
44
|
size: theme.fontSizes["5xl"],
|
|
44
|
-
lineHeight: theme.lineHeight["
|
|
45
|
+
lineHeight: theme.lineHeight["6xl"]
|
|
45
46
|
})
|
|
46
47
|
});
|
|
47
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Box","Typography","asBaseComponent","theme","jsx","_jsx","CoilRemovalCode","code","width","height","borderStyled","borderWidth","borderWidths","thin_medium","borderRadius","thick_medium","borderColor","colors","orange","borderStyle","
|
|
1
|
+
{"version":3,"names":["React","Box","Typography","asBaseComponent","theme","jsx","_jsx","CoilRemovalCode","code","width","height","backgroundColor","borderStyled","borderWidth","borderWidths","thin_medium","borderRadius","thick_medium","borderColor","colors","orange","borderStyle","gray","flexStyle","justifyContent","alignItems","children","text","color","fontFamily","fonts","inter_medium_500","fontWeight","size","fontSizes","lineHeight","displayName"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/coil-removel-code/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,OAAO;;AAEzB;AACA,OAAOC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AAe,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React, { forwardRef, useMemo, useState } from "react";
|
|
7
|
+
import { View, Text, TouchableOpacity, Modal } from "react-native";
|
|
8
|
+
import DateTimePicker from "@react-native-community/datetimepicker";
|
|
9
|
+
|
|
10
|
+
// commons / svg
|
|
11
|
+
import { Icons } from "../../../common/icons-svg/index.js";
|
|
12
|
+
|
|
13
|
+
// typings
|
|
14
|
+
import { asBaseComponent } from "../../../@types/as-base-component.js";
|
|
15
|
+
// styles
|
|
16
|
+
import { styles } from "./styles.js";
|
|
17
|
+
import { theme } from "../../../styles/theme/theme.js";
|
|
18
|
+
|
|
19
|
+
/** formatadores no mesmo estilo simples dos seus componentes */
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
+
function fmtDate(d) {
|
|
22
|
+
const dd = String(d.getDate()).padStart(2, "0");
|
|
23
|
+
const mm = String(d.getMonth() + 1).padStart(2, "0");
|
|
24
|
+
const yyyy = d.getFullYear();
|
|
25
|
+
return `${dd}/${mm}/${yyyy}`;
|
|
26
|
+
}
|
|
27
|
+
function fmtTime(d) {
|
|
28
|
+
const hh = String(d.getHours()).padStart(2, "0");
|
|
29
|
+
const mi = String(d.getMinutes()).padStart(2, "0");
|
|
30
|
+
return `${hh}:${mi}`;
|
|
31
|
+
}
|
|
32
|
+
const InputDateTime = /*#__PURE__*/forwardRef((props, ref) => {
|
|
33
|
+
const {
|
|
34
|
+
mode,
|
|
35
|
+
titleLabel,
|
|
36
|
+
sizeTitleLabel,
|
|
37
|
+
colortitleLabel,
|
|
38
|
+
backgroundColor,
|
|
39
|
+
value,
|
|
40
|
+
onChange,
|
|
41
|
+
placeholder = mode === "date" ? "Selecione uma data" : "Selecione um horário",
|
|
42
|
+
minimumDate,
|
|
43
|
+
maximumDate,
|
|
44
|
+
disabled,
|
|
45
|
+
formatDate,
|
|
46
|
+
formatTime,
|
|
47
|
+
testID
|
|
48
|
+
} = props;
|
|
49
|
+
|
|
50
|
+
// estado interno quando o componente não é controlado
|
|
51
|
+
const [inner, setInner] = useState(value ?? new Date());
|
|
52
|
+
const [visible, setVisible] = useState(false);
|
|
53
|
+
const current = value ?? inner;
|
|
54
|
+
const human = useMemo(() => {
|
|
55
|
+
if (!current) return "";
|
|
56
|
+
return mode === "date" ? (formatDate ?? fmtDate)(current) : (formatTime ?? fmtTime)(current);
|
|
57
|
+
}, [current, mode, formatDate, formatTime]);
|
|
58
|
+
const styleProps = {
|
|
59
|
+
...props,
|
|
60
|
+
titleLabel,
|
|
61
|
+
sizeTitleLabel,
|
|
62
|
+
colortitleLabel,
|
|
63
|
+
backgroundColor
|
|
64
|
+
};
|
|
65
|
+
function commit(next) {
|
|
66
|
+
if (!value) setInner(next);
|
|
67
|
+
onChange?.(next);
|
|
68
|
+
setVisible(false);
|
|
69
|
+
}
|
|
70
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
71
|
+
ref: ref,
|
|
72
|
+
style: styles(styleProps).container,
|
|
73
|
+
children: [titleLabel ? /*#__PURE__*/_jsx(Text, {
|
|
74
|
+
style: styles(styleProps).label,
|
|
75
|
+
children: titleLabel
|
|
76
|
+
}) : null, /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
77
|
+
testID: testID ?? "input-date-time",
|
|
78
|
+
style: styles(styleProps).selectBox,
|
|
79
|
+
onPress: () => !disabled && setVisible(true),
|
|
80
|
+
disabled: disabled,
|
|
81
|
+
children: [/*#__PURE__*/_jsx(Icons, {
|
|
82
|
+
size: theme.fontSizes["md"],
|
|
83
|
+
color: theme.colors.blue[500],
|
|
84
|
+
icon: mode === "date" ? "CALENDAR" : "CALENDAR",
|
|
85
|
+
style: styles(styleProps).iconStandard
|
|
86
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
87
|
+
style: human ? styles(styleProps).selectedText : styles(styleProps).placeholderText,
|
|
88
|
+
children: human || placeholder
|
|
89
|
+
})]
|
|
90
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
91
|
+
testID: "modal-container",
|
|
92
|
+
visible: visible,
|
|
93
|
+
transparent: true,
|
|
94
|
+
animationType: "fade",
|
|
95
|
+
onRequestClose: () => setVisible(false),
|
|
96
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
97
|
+
style: styles(styleProps).modalOverlay,
|
|
98
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
99
|
+
style: styles(styleProps).modalContainer,
|
|
100
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
101
|
+
style: {
|
|
102
|
+
width: "100%",
|
|
103
|
+
alignItems: "flex-end"
|
|
104
|
+
},
|
|
105
|
+
children: /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
106
|
+
testID: "close-icon",
|
|
107
|
+
onPress: () => setVisible(false),
|
|
108
|
+
children: /*#__PURE__*/_jsx(Icons, {
|
|
109
|
+
size: theme.fontSizes["md"],
|
|
110
|
+
color: theme.colors.blue[500],
|
|
111
|
+
icon: "CLOSED"
|
|
112
|
+
})
|
|
113
|
+
})
|
|
114
|
+
}), /*#__PURE__*/_jsx(DateTimePicker, {
|
|
115
|
+
value: current ?? new Date(),
|
|
116
|
+
mode: mode,
|
|
117
|
+
display: "default",
|
|
118
|
+
onChange: (_e, selected) => {
|
|
119
|
+
if (selected) commit(selected);else setVisible(false);
|
|
120
|
+
},
|
|
121
|
+
minimumDate: minimumDate,
|
|
122
|
+
maximumDate: maximumDate
|
|
123
|
+
})]
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
export default asBaseComponent(InputDateTime);
|
|
130
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useMemo","useState","View","Text","TouchableOpacity","Modal","DateTimePicker","Icons","asBaseComponent","styles","theme","jsx","_jsx","jsxs","_jsxs","fmtDate","d","dd","String","getDate","padStart","mm","getMonth","yyyy","getFullYear","fmtTime","hh","getHours","mi","getMinutes","InputDateTime","props","ref","mode","titleLabel","sizeTitleLabel","colortitleLabel","backgroundColor","value","onChange","placeholder","minimumDate","maximumDate","disabled","formatDate","formatTime","testID","inner","setInner","Date","visible","setVisible","current","human","styleProps","commit","next","style","container","children","label","selectBox","onPress","size","fontSizes","color","colors","blue","icon","iconStandard","selectedText","placeholderText","transparent","animationType","onRequestClose","modalOverlay","modalContainer","width","alignItems","display","_e","selected"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC5D,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,KAAK,QAAQ,cAAc;AAClE,OAAOC,cAAc,MAAM,wCAAwC;;AAEnE;AACA,SAASC,KAAK,QAAQ,oCAA2B;;AAEjD;AACA,SAASC,eAAe,QAAQ,sCAAmC;AAGnE;AACA,SAASC,MAAM,QAAQ,aAAU;AACjC,SAASC,KAAK,QAAQ,gCAA6B;;AAEnD;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,SAASC,OAAOA,CAACC,CAAO,EAAE;EACxB,MAAMC,EAAE,GAAGC,MAAM,CAACF,CAAC,CAACG,OAAO,CAAC,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;EAC/C,MAAMC,EAAE,GAAGH,MAAM,CAACF,CAAC,CAACM,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAACF,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC;EACpD,MAAMG,IAAI,GAAGP,CAAC,CAACQ,WAAW,CAAC,CAAC;EAC5B,OAAO,GAAGP,E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0B,QAAQ,CAAC,CAAC,KAC1B9B,UAAU,CAAC,KAAK,CAAC;YACxB,CAAE;YACFV,WAAW,EAAEA,WAAY;YACzBC,WAAW,EAAEA;UAAY,CAC1B,CAAC;QAAA,CACE;MAAC,CACH;IAAC,CACF,CAAC;EAAA,CACJ,CAAC;AAEX,CAAC,CAAC;AAEF,eAAelC,eAAe,CAACsB,aAAa,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/interface.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from "react-native";
|
|
4
|
+
import { theme } from "../../../styles/theme/theme.js";
|
|
5
|
+
const styles = props => StyleSheet.create({
|
|
6
|
+
container: {
|
|
7
|
+
width: "100%",
|
|
8
|
+
marginBottom: 16,
|
|
9
|
+
opacity: props.disabled ? 0.6 : 1
|
|
10
|
+
},
|
|
11
|
+
label: {
|
|
12
|
+
fontSize: props.sizeTitleLabel ?? 16,
|
|
13
|
+
fontWeight: "bold",
|
|
14
|
+
color: props.colortitleLabel ?? theme.colors.black[100],
|
|
15
|
+
marginBottom: 5
|
|
16
|
+
},
|
|
17
|
+
selectBox: {
|
|
18
|
+
flexDirection: "row",
|
|
19
|
+
alignItems: "center",
|
|
20
|
+
justifyContent: "center",
|
|
21
|
+
width: "100%",
|
|
22
|
+
height: 45,
|
|
23
|
+
borderWidth: 1,
|
|
24
|
+
borderColor: theme.colors.gray[700],
|
|
25
|
+
borderRadius: 10,
|
|
26
|
+
backgroundColor: props.backgroundColor ?? theme.colors.neutral[25],
|
|
27
|
+
paddingHorizontal: 10,
|
|
28
|
+
position: "relative"
|
|
29
|
+
},
|
|
30
|
+
selectedText: {
|
|
31
|
+
flex: 1,
|
|
32
|
+
fontSize: 14,
|
|
33
|
+
textAlign: "center",
|
|
34
|
+
color: theme.colors.gray[700]
|
|
35
|
+
},
|
|
36
|
+
placeholderText: {
|
|
37
|
+
flex: 1,
|
|
38
|
+
textAlign: "center",
|
|
39
|
+
fontSize: 14,
|
|
40
|
+
color: theme.colors.gray[700]
|
|
41
|
+
},
|
|
42
|
+
modalOverlay: {
|
|
43
|
+
flex: 1,
|
|
44
|
+
backgroundColor: "rgba(0,0,0,0.5)",
|
|
45
|
+
justifyContent: "center",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
padding: 24
|
|
48
|
+
},
|
|
49
|
+
modalContainer: {
|
|
50
|
+
width: "100%",
|
|
51
|
+
backgroundColor: theme.colors.neutral[25],
|
|
52
|
+
borderRadius: 10,
|
|
53
|
+
padding: 15,
|
|
54
|
+
alignItems: "center"
|
|
55
|
+
},
|
|
56
|
+
iconStandard: {
|
|
57
|
+
position: "absolute",
|
|
58
|
+
left: 10
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export { styles };
|
|
62
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","styles","props","create","container","width","marginBottom","opacity","disabled","label","fontSize","sizeTitleLabel","fontWeight","color","colortitleLabel","colors","black","selectBox","flexDirection","alignItems","justifyContent","height","borderWidth","borderColor","gray","borderRadius","backgroundColor","neutral","paddingHorizontal","position","selectedText","flex","textAlign","placeholderText","modalOverlay","padding","modalContainer","iconStandard","left"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/inputs/input-date-time/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AACzC,SAASC,KAAK,QAAQ,gCAA6B;AAGnD,MAAMC,MAAM,GAAIC,KAA0B,IACxCH,UAAU,CAACI,MAAM,CAAC;EAChBC,SAAS,EAAE;IACTC,KAAK,EAAE,MAAM;IACbC,YAAY,EAAE,EAAE;IAChBC,OAAO,EAAEL,KAAK,CAACM,QAAQ,GAAG,GAAG,GAA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Y,OAAO,CAAC,EAAE,CAAC;IACzCF,YAAY,EAAE,EAAE;IAChBU,OAAO,EAAE,EAAE;IACXhB,UAAU,EAAE;EACd,CAAC;EACDkB,YAAY,EAAE;IACZR,QAAQ,EAAE,UAAU;IACpBS,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEJ,SAASrC,MAAM","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import { SVG_NAME } from "../../../common/icons-svg/constants/index.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Função que mapeará os ícones correspondentes em SVG 🛠️.
|
|
10
|
+
* @param propertyType
|
|
11
|
+
* @returns SVG
|
|
12
|
+
*/
|
|
13
|
+
const getIconKeyByValue = propertyType => {
|
|
14
|
+
return Object.keys(SVG_NAME).find(key => SVG_NAME[key] === propertyType);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* EXPORTS
|
|
19
|
+
*/
|
|
20
|
+
export { getIconKeyByValue };
|
|
21
|
+
//# sourceMappingURL=get-icon-by-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SVG_NAME","getIconKeyByValue","propertyType","Object","keys","find","key"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["components/list-devices/helpers/get-icon-by-status.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,8CAAqC;;AAE9D;AACA;AACA;AACA;AACA;AACA,MAAMC,iBAAiB,GAAIC,YAAoB,IAAwC;EACrF,OAAQC,MAAM,CAACC,IAAI,CAACJ,QAAQ,CAAC,CAAkCK,IAAI,CAChEC,GAAG,IAAKN,QAAQ,CAACM,GAAG,CAAC,KAAKJ,YAC7B,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA,SAASD,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* IMPORTS
|
|
5
|
+
*/
|
|
6
|
+
import React, { forwardRef } from "react";
|
|
7
|
+
import { View, Text, TouchableOpacity, FlatList } from "react-native";
|
|
8
|
+
|
|
9
|
+
// components
|
|
10
|
+
import Box from "../box/index.js";
|
|
11
|
+
|
|
12
|
+
// icons
|
|
13
|
+
import { Icons } from "../../common/icons-svg/index.js";
|
|
14
|
+
|
|
15
|
+
// typings
|
|
16
|
+
|
|
17
|
+
import { asBaseComponent } from "../../@types/as-base-component.js";
|
|
18
|
+
|
|
19
|
+
// styles
|
|
20
|
+
import { styles as makeStyles } from "./styles.js";
|
|
21
|
+
import { theme } from "../../styles/theme/theme.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Componente ListDevices para a interação da ui.
|
|
25
|
+
*/
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
+
const ListDevices = /*#__PURE__*/forwardRef(({
|
|
28
|
+
data,
|
|
29
|
+
textColorDescription,
|
|
30
|
+
titleColor,
|
|
31
|
+
selectedId,
|
|
32
|
+
onSelect,
|
|
33
|
+
defaultSelectedId,
|
|
34
|
+
disabled
|
|
35
|
+
}, ref) => {
|
|
36
|
+
const isControlled = selectedId !== undefined;
|
|
37
|
+
const [internalSelected, setInternalSelected] = React.useState(defaultSelectedId);
|
|
38
|
+
const currentSelected = isControlled ? selectedId ?? null : internalSelected;
|
|
39
|
+
const handlePress = device => {
|
|
40
|
+
if (disabled) return;
|
|
41
|
+
if (!isControlled) setInternalSelected(device.id);
|
|
42
|
+
onSelect?.(device);
|
|
43
|
+
};
|
|
44
|
+
if (!data?.length) return /*#__PURE__*/_jsx(Box, {});
|
|
45
|
+
return /*#__PURE__*/_jsx(FlatList, {
|
|
46
|
+
data: data,
|
|
47
|
+
keyExtractor: ({
|
|
48
|
+
id
|
|
49
|
+
}) => String(id),
|
|
50
|
+
renderItem: ({
|
|
51
|
+
item: device,
|
|
52
|
+
index
|
|
53
|
+
}) => {
|
|
54
|
+
const isLast = index === data.length - 1;
|
|
55
|
+
const isSelected = currentSelected === device.id;
|
|
56
|
+
const s = makeStyles({
|
|
57
|
+
titleColor,
|
|
58
|
+
textColorDescription,
|
|
59
|
+
disabled,
|
|
60
|
+
isSelected
|
|
61
|
+
});
|
|
62
|
+
return /*#__PURE__*/_jsxs(TouchableOpacity, {
|
|
63
|
+
ref: ref,
|
|
64
|
+
activeOpacity: 0.7,
|
|
65
|
+
testID: "list-devices",
|
|
66
|
+
onPress: () => handlePress(device),
|
|
67
|
+
disabled: disabled,
|
|
68
|
+
accessibilityRole: "button",
|
|
69
|
+
accessibilityState: {
|
|
70
|
+
selected: isSelected,
|
|
71
|
+
disabled
|
|
72
|
+
},
|
|
73
|
+
accessibilityLabel: `Dispositivo ${device.nameDevice}`,
|
|
74
|
+
style: [s.containerIndicator, !isLast && s.separator, isSelected && s.containerIndicatorSelected],
|
|
75
|
+
children: [/*#__PURE__*/_jsx(Icons, {
|
|
76
|
+
icon: "BLUETOOTH",
|
|
77
|
+
size: 26,
|
|
78
|
+
background: theme.colors.gray[600],
|
|
79
|
+
color: theme.colors.gray[300]
|
|
80
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
81
|
+
style: s.containerMain,
|
|
82
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
83
|
+
style: [s.title, isSelected && s.titleSelected],
|
|
84
|
+
children: device.nameDevice
|
|
85
|
+
}), !!device.macDevice && /*#__PURE__*/_jsx(Text, {
|
|
86
|
+
style: [s.titleDescription, isSelected && s.descSelected],
|
|
87
|
+
children: device.macDevice
|
|
88
|
+
})]
|
|
89
|
+
})]
|
|
90
|
+
}, device.id);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
ListDevices.displayName = "ListDevices";
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* EXPORTS
|
|
98
|
+
*/
|
|
99
|
+
export default asBaseComponent(ListDevices);
|
|
100
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","forwardRef","View","Text","TouchableOpacity","FlatList","Box","Icons","asBaseComponent","styles","makeStyles","theme","jsx","_jsx","jsxs","_jsxs","ListDevices","data","textColorDescription","titleColor","selectedId","onSelect","defaultSelectedId","disabled","ref","isControlled","undefined","internalSelected","setInternalSelected","useState","currentSelected","handlePress","device","id","length","keyExtractor","String","renderItem","item","index","isLast","isSelected","s","activeOpacity","testID","onPress","accessibilityRole","accessibilityState","selected","accessibilityLabel","nameDevice","style","containerIndicator","separator","containerIndicatorSelected","children","icon","size","background","colors","gray","color","containerMain","title","titleSelected","macDevice","titleDescription","descSelected","displayName"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-devices/index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,QAAQ,QAAQ,cAAc;;AAErE;AACA,OAAOC,GAAG,MAAM,iBAAQ;;AAExB;AACA,SAASC,KAAK,QAAQ,iCAAwB;;AAE9C;;AAEA,SAASC,eAAe,QAAQ,mCAAgC;;AAEhE;AACA,SAASC,MAAM,IAAIC,UAAU,QAAQ,aAAU;AAC/C,SAASC,KAAK,QAAQ,6BAA0B;;AAEhD;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGA,MAAMC,WAAW,gBAAGf,UAAU,CAC5B,CACE;EAAEgB,IAAI;EAAEC,oBAAoB;EAAEC,UAAU;EAAEC,UAAU;EAAEC,QAAQ;EAAEC,iBAAiB;EAAEC;AAAS,CAAC,EAC7FC,GAAG,KACoB;EACvB,MAAMC,YAAY,GAAGL,UAAU,KAAKM,SAAS;EAC7C,MAAM,CAACC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AK,EAAE,CACLT,CAAC,CAACU,kBAAkB,EACpB,CAACZ,MAAM,IAAIE,CAAC,CAACW,SAAS,EACtBZ,UAAU,IAAIC,CAAC,CAACY,0BAA0B,CAC1C;QAAAC,QAAA,gBAEF1C,IAAA,CAACN,KAAK;UACJiD,IAAI,EAAE,WAAY;UAClBC,IAAI,EAAE,EAAG;UACTC,UAAU,EAAE/C,KAAK,CAACgD,MAAM,CAACC,IAAI,CAAC,GAAG,CAAE;UACnCC,KAAK,EAAElD,KAAK,CAACgD,MAAM,CAACC,IAAI,CAAC,GAAG;QAAE,CAC/B,CAAC,eAEF7C,KAAA,CAACb,IAAI;UAACiD,KAAK,EAAET,CAAC,CAACoB,aAAc;UAAAP,QAAA,gBAC3B1C,IAAA,CAACV,IAAI;YAACgD,KAAK,EAAE,CAACT,CAAC,CAACqB,KAAK,EAAEtB,UAAU,IAAIC,CAAC,CAACsB,aAAa,CAAE;YAAAT,QAAA,EAAEvB,MAAM,CAACkB;UAAU,CAAO,CAAC,EAChF,CAAC,CAAClB,MAAM,CAACiC,SAAS,iBACjBpD,IAAA,CAACV,IAAI;YAACgD,KAAK,EAAE,CAACT,CAAC,CAACwB,gBAAgB,EAAEzB,UAAU,IAAIC,CAAC,CAACyB,YAAY,CAAE;YAAAZ,QAAA,EAC7DvB,MAAM,CAACiC;UAAS,CACb,CACP;QAAA,CACG,CAAC;MAAA,GA1BFjC,MAAM,CAACC,EA2BI,CAAC;IAEvB;EAAE,CACH,CAAC;AAEN,CACF,CAAC;AAEDjB,WAAW,CAACoD,WAAW,GAAG,aAAa;;AAEvC;AACA;AACA;AACA,eAAe5D,eAAe,CAACQ,WAAW,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-devices/interface.d.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet } from "react-native";
|
|
4
|
+
import { theme } from "../../styles/theme/theme.js";
|
|
5
|
+
const styles = (props = {}) => StyleSheet.create({
|
|
6
|
+
containerIndicator: {
|
|
7
|
+
width: "100%",
|
|
8
|
+
flexDirection: "row",
|
|
9
|
+
justifyContent: "flex-start",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
marginTop: 8,
|
|
12
|
+
paddingVertical: 8,
|
|
13
|
+
paddingHorizontal: 8,
|
|
14
|
+
opacity: props.disabled ? 0.6 : 1
|
|
15
|
+
},
|
|
16
|
+
containerIndicatorSelected: {
|
|
17
|
+
backgroundColor: theme.colors.green[250],
|
|
18
|
+
borderRadius: 30
|
|
19
|
+
},
|
|
20
|
+
separator: {
|
|
21
|
+
borderBottomWidth: 1,
|
|
22
|
+
borderBottomColor: props.isSelected ? "transparent" : theme.colors.gray[700]
|
|
23
|
+
},
|
|
24
|
+
title: {
|
|
25
|
+
color: props.titleColor ?? theme.colors.black[10],
|
|
26
|
+
textAlign: "center",
|
|
27
|
+
lineHeight: 20,
|
|
28
|
+
fontSize: theme.fontSizes.sm,
|
|
29
|
+
fontWeight: "500",
|
|
30
|
+
marginLeft: theme.margins.xs
|
|
31
|
+
},
|
|
32
|
+
titleSelected: {
|
|
33
|
+
color: theme.colors.neutral[25],
|
|
34
|
+
fontWeight: "600"
|
|
35
|
+
},
|
|
36
|
+
titleDescription: {
|
|
37
|
+
color: props.textColorDescription ?? theme.colors.gray[600],
|
|
38
|
+
textAlign: "center",
|
|
39
|
+
lineHeight: 16,
|
|
40
|
+
fontSize: 18,
|
|
41
|
+
fontFamily: theme.fonts.inter_light_300,
|
|
42
|
+
marginLeft: theme.margins.xs
|
|
43
|
+
},
|
|
44
|
+
descSelected: {
|
|
45
|
+
color: theme.colors.neutral[25]
|
|
46
|
+
},
|
|
47
|
+
containerMain: {
|
|
48
|
+
width: "100%",
|
|
49
|
+
flexDirection: "column",
|
|
50
|
+
alignItems: "flex-start",
|
|
51
|
+
marginLeft: 2,
|
|
52
|
+
justifyContent: "center"
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export { styles };
|
|
56
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","theme","styles","props","create","containerIndicator","width","flexDirection","justifyContent","alignItems","marginTop","paddingVertical","paddingHorizontal","opacity","disabled","containerIndicatorSelected","backgroundColor","colors","green","borderRadius","separator","borderBottomWidth","borderBottomColor","isSelected","gray","title","color","titleColor","black","textAlign","lineHeight","fontSize","fontSizes","sm","fontWeight","marginLeft","margins","xs","titleSelected","neutral","titleDescription","textColorDescription","fontFamily","fonts","inter_light_300","descSelected","containerMain"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/list-devices/styles.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,KAAK,QAAQ,6BAA0B;AAIhD,MAAMC,MAAM,GAAGA,CAACC,KAAoC,GAAG,CAAC,CAAC,KACvDH,UAAU,CAACI,MAAM,CAAC;EAChBC,kBAAkB,EAAE;IAClBC,KAAK,EAAE,MAAM;IACbC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE,QAAQ;IACpBC,SAAS,EAAE,CAAC;IACZC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE,CAAC;IACpBC,OAAO,EAAEV,KAAK,CAACW,QAAQ,GAAG,GAAG,GAAG;EAClC,CAAC;EAEDC,0BAA0B,EAAE;IAC1BC,eAAe,EAAEf,KAAK,CAACgB,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC;IACxCC,YAAY,EAAE;EAChB,CAAC;EAEDC,SAAS,EAAE;IACTC,iBAAiB,EAAE,CAAC;IACpBC,iBAAiB,EAAEnB,KAAK,CAACoB,UAAU,GAC/B,aAAa,GACbtB,KAAK,CAACgB,MAAM,CAACO,IAAI,CAAC,GAAG;EAC3B,CAAC;EAEDC,K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