@expressms/smartapp-ui 3.0.0-alpha.22 → 3.0.0-alpha.221
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/build/main/assets/icons/accepted-invite-status.svg +4 -0
- package/build/main/assets/icons/arrow-back.svg +3 -0
- package/build/main/assets/icons/arrow-down.svg +3 -0
- package/build/main/assets/icons/arrow-up.svg +3 -0
- package/build/main/assets/icons/attachment-loader.svg +3 -0
- package/build/main/assets/icons/avatar-loader.svg +3 -0
- package/build/main/assets/icons/button-loader.svg +3 -0
- package/build/main/assets/icons/calendar-arrow-next.svg +3 -0
- package/build/main/assets/icons/calendar-arrow-prev.svg +3 -0
- package/build/main/assets/icons/check-mark-square.svg +4 -0
- package/build/main/assets/icons/check-mark.svg +4 -0
- package/build/main/assets/icons/chevron.svg +3 -0
- package/build/main/assets/icons/chip-info.svg +5 -0
- package/build/main/assets/icons/clear.svg +3 -0
- package/build/main/assets/icons/close-modal.svg +3 -0
- package/build/main/assets/icons/close-stories.svg +4 -0
- package/build/main/assets/icons/close.svg +3 -0
- package/build/main/assets/icons/contact-info.svg +5 -0
- package/build/main/assets/icons/copy.svg +3 -0
- package/build/main/assets/icons/corporate-user.svg +3 -0
- package/build/main/assets/icons/crown.svg +5 -0
- package/build/main/assets/icons/declined-invite-status.svg +4 -0
- package/build/main/assets/icons/delete-chip.svg +3 -0
- package/build/main/assets/icons/department.svg +3 -0
- package/build/main/assets/icons/distribution.svg +12 -0
- package/build/main/assets/icons/doc-small.svg +11 -0
- package/build/main/assets/icons/doc.svg +11 -0
- package/build/main/assets/icons/download.svg +3 -0
- package/build/main/assets/icons/error.svg +5 -0
- package/build/main/assets/icons/external-link.svg +3 -0
- package/build/main/assets/icons/eye-off.svg +5 -0
- package/build/main/assets/icons/eye-on.svg +4 -0
- package/build/main/assets/icons/file-small.svg +11 -0
- package/build/main/assets/icons/file.svg +11 -0
- package/build/main/assets/icons/global-address-book-user.svg +4 -0
- package/build/main/assets/icons/group.svg +3 -0
- package/build/main/assets/icons/image-no-preview-small.svg +11 -0
- package/build/main/assets/icons/image-no-preview.svg +11 -0
- package/build/main/assets/icons/indeterminate-check-mark-square.svg +4 -0
- package/build/main/assets/icons/info.svg +5 -0
- package/build/main/assets/icons/input-arrow-down.svg +3 -0
- package/build/main/assets/icons/input-arrow-up.svg +3 -0
- package/build/main/assets/icons/job-position.svg +3 -0
- package/build/main/assets/icons/loader.svg +3 -0
- package/build/main/assets/icons/logout.svg +4 -0
- package/build/main/assets/icons/magnifying-glass.svg +3 -0
- package/build/main/assets/icons/mail.svg +3 -0
- package/build/main/assets/icons/meeting-room.svg +3 -0
- package/build/main/assets/icons/more.svg +3 -0
- package/build/main/assets/icons/my-contacts-user.svg +3 -0
- package/build/main/assets/icons/needs-action-invite-status.svg +4 -0
- package/build/main/assets/icons/notification-close.svg +3 -0
- package/build/main/assets/icons/notification-error.svg +5 -0
- package/build/main/assets/icons/notification-failure-filled.svg +3 -0
- package/build/main/assets/icons/notification-failure.svg +3 -0
- package/build/main/assets/icons/notification-info-filled.svg +5 -0
- package/build/main/assets/icons/notification-info.svg +5 -0
- package/build/main/assets/icons/notification-success-filled.svg +4 -0
- package/build/main/assets/icons/notification-success.svg +4 -0
- package/build/main/assets/icons/office.svg +3 -0
- package/build/main/assets/icons/order.svg +6 -0
- package/build/main/assets/icons/pdf-small.svg +11 -0
- package/build/main/assets/icons/pdf.svg +11 -0
- package/build/main/assets/icons/play-small.svg +3 -0
- package/build/main/assets/icons/play.svg +3 -0
- package/build/main/assets/icons/plus.svg +4 -0
- package/build/main/assets/icons/ppt-small.svg +11 -0
- package/build/main/assets/icons/ppt.svg +11 -0
- package/build/main/assets/icons/private.svg +5 -0
- package/build/main/assets/icons/refresh.svg +3 -0
- package/build/main/assets/icons/remove.svg +3 -0
- package/build/main/assets/icons/search.svg +3 -0
- package/build/main/assets/icons/select-arrow-down.svg +3 -0
- package/build/main/assets/icons/select-arrow-up.svg +3 -0
- package/build/main/assets/icons/server.svg +3 -0
- package/build/main/assets/icons/story-loader.svg +3 -0
- package/build/main/assets/icons/tick.svg +10 -0
- package/build/main/assets/icons/trash.svg +3 -0
- package/build/main/assets/icons/txt-small.svg +11 -0
- package/build/main/assets/icons/txt.svg +11 -0
- package/build/main/assets/icons/video-no-preview-small.svg +11 -0
- package/build/main/assets/icons/video-no-preview.svg +11 -0
- package/build/main/assets/icons/warning-avatar.svg +4 -0
- package/build/main/assets/icons/xls-small.svg +11 -0
- package/build/main/assets/icons/xls.svg +11 -0
- package/build/main/assets/storybook/index.d.ts +27 -0
- package/build/main/assets/storybook/index.js +28 -0
- package/build/main/assets/storybook/index.js.map +1 -0
- package/build/main/constants/constants.d.ts +243 -0
- package/build/main/constants/constants.js +301 -0
- package/build/main/constants/constants.js.map +1 -0
- package/build/main/constants/index.d.ts +2 -0
- package/build/main/constants/index.js +3 -0
- package/build/main/constants/index.js.map +1 -0
- package/build/main/constants/types.d.ts +69 -0
- package/build/main/constants/types.js +2 -0
- package/build/main/constants/types.js.map +1 -0
- package/build/main/helpers/index.d.ts +33 -0
- package/build/main/helpers/index.js +204 -0
- package/build/main/helpers/index.js.map +1 -0
- package/build/main/hooks/useCharHintDisplay.d.ts +10 -0
- package/build/main/hooks/useCharHintDisplay.js +57 -0
- package/build/main/hooks/useCharHintDisplay.js.map +1 -0
- package/build/main/hooks/useMobileLongTap.d.ts +16 -0
- package/build/main/hooks/useMobileLongTap.js +65 -0
- package/build/main/hooks/useMobileLongTap.js.map +1 -0
- package/build/main/hooks/useModal.d.ts +30 -0
- package/build/main/hooks/useModal.js +275 -0
- package/build/main/hooks/useModal.js.map +1 -0
- package/build/main/index.d.ts +38 -0
- package/build/main/index.js +39 -0
- package/build/main/index.js.map +1 -0
- package/build/main/styles/index.d.ts +1 -0
- package/build/main/styles/index.js +2 -0
- package/build/main/styles/index.js.map +1 -0
- package/build/main/styles/main.js +0 -0
- package/build/main/styles/styles.scss +14 -0
- package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +4 -0
- package/build/main//321/201omponents/ActionModal/ActionModal.js +53 -0
- package/build/main//321/201omponents/ActionModal/ActionModal.js.map +1 -0
- package/build/main//321/201omponents/ActionModal/index.d.ts +1 -0
- package/build/main//321/201omponents/ActionModal/index.js +2 -0
- package/build/main//321/201omponents/ActionModal/index.js.map +1 -0
- package/build/main//321/201omponents/ActionModal/types.d.ts +23 -0
- package/build/main//321/201omponents/ActionModal/types.js +2 -0
- package/build/main//321/201omponents/ActionModal/types.js.map +1 -0
- package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +8 -0
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js +201 -0
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +1 -0
- package/build/main//321/201omponents/AttachedFile/index.d.ts +1 -0
- package/build/main//321/201omponents/AttachedFile/index.js +2 -0
- package/build/main//321/201omponents/AttachedFile/index.js.map +1 -0
- package/build/main//321/201omponents/AttachedFile/types.d.ts +23 -0
- package/build/main//321/201omponents/AttachedFile/types.js +2 -0
- package/build/main//321/201omponents/AttachedFile/types.js.map +1 -0
- package/build/main//321/201omponents/Avatar/Avatar.d.ts +5 -0
- package/build/main//321/201omponents/Avatar/Avatar.js +254 -0
- package/build/main//321/201omponents/Avatar/Avatar.js.map +1 -0
- package/build/main//321/201omponents/Avatar/index.d.ts +1 -0
- package/build/main//321/201omponents/Avatar/index.js +2 -0
- package/build/main//321/201omponents/Avatar/index.js.map +1 -0
- package/build/main//321/201omponents/Avatar/types.d.ts +64 -0
- package/build/main//321/201omponents/Avatar/types.js +32 -0
- package/build/main//321/201omponents/Avatar/types.js.map +1 -0
- package/build/main//321/201omponents/Button/Button.d.ts +4 -0
- package/build/main//321/201omponents/Button/Button.js +68 -0
- package/build/main//321/201omponents/Button/Button.js.map +1 -0
- package/build/main//321/201omponents/Button/index.d.ts +1 -0
- package/build/main//321/201omponents/Button/index.js +2 -0
- package/build/main//321/201omponents/Button/index.js.map +1 -0
- package/build/main//321/201omponents/Button/types.d.ts +31 -0
- package/build/main//321/201omponents/Button/types.js +15 -0
- package/build/main//321/201omponents/Button/types.js.map +1 -0
- package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +4 -0
- package/build/main//321/201omponents/CachedImage/CachedImage.js +59 -0
- package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
- package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
- package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
- package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
- package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
- package/build/main//321/201omponents/CachedImage/index.js +2 -0
- package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
- package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
- package/build/main//321/201omponents/CachedImage/types.js +2 -0
- package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
- package/build/main//321/201omponents/Calendar/Calendar.d.ts +16 -0
- package/build/main//321/201omponents/Calendar/Calendar.js +294 -0
- package/build/main//321/201omponents/Calendar/Calendar.js.map +1 -0
- package/build/main//321/201omponents/Calendar/index.d.ts +1 -0
- package/build/main//321/201omponents/Calendar/index.js +2 -0
- package/build/main//321/201omponents/Calendar/index.js.map +1 -0
- package/build/main//321/201omponents/Calendar/types.d.ts +28 -0
- package/build/main//321/201omponents/Calendar/types.js +2 -0
- package/build/main//321/201omponents/Calendar/types.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +47 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +42 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +64 -0
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
- package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
- package/build/main//321/201omponents/Charts/colors.js +4 -0
- package/build/main//321/201omponents/Charts/colors.js.map +1 -0
- package/build/main//321/201omponents/Charts/constants.d.ts +42 -0
- package/build/main//321/201omponents/Charts/constants.js +42 -0
- package/build/main//321/201omponents/Charts/constants.js.map +1 -0
- package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
- package/build/main//321/201omponents/Charts/helpers.js +73 -0
- package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
- package/build/main//321/201omponents/Charts/index.d.ts +3 -0
- package/build/main//321/201omponents/Charts/index.js +4 -0
- package/build/main//321/201omponents/Charts/index.js.map +1 -0
- package/build/main//321/201omponents/Charts/types.d.ts +89 -0
- package/build/main//321/201omponents/Charts/types.js +2 -0
- package/build/main//321/201omponents/Charts/types.js.map +1 -0
- package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
- package/build/main//321/201omponents/Charts/useEvents.js +45 -0
- package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
- package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
- package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
- package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +8 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.js +48 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.js.map +1 -0
- package/build/main//321/201omponents/Checkbox/index.d.ts +1 -0
- package/build/main//321/201omponents/Checkbox/index.js +2 -0
- package/build/main//321/201omponents/Checkbox/index.js.map +1 -0
- package/build/main//321/201omponents/Checkbox/types.d.ts +14 -0
- package/build/main//321/201omponents/Checkbox/types.js +2 -0
- package/build/main//321/201omponents/Checkbox/types.js.map +1 -0
- package/build/main//321/201omponents/Chip/Chip.d.ts +5 -0
- package/build/main//321/201omponents/Chip/Chip.js +288 -0
- package/build/main//321/201omponents/Chip/Chip.js.map +1 -0
- package/build/main//321/201omponents/Chip/index.d.ts +1 -0
- package/build/main//321/201omponents/Chip/index.js +2 -0
- package/build/main//321/201omponents/Chip/index.js.map +1 -0
- package/build/main//321/201omponents/Chip/types.d.ts +39 -0
- package/build/main//321/201omponents/Chip/types.js +2 -0
- package/build/main//321/201omponents/Chip/types.js.map +1 -0
- package/build/main//321/201omponents/ChipDndContext/ChipDndContext.d.ts +13 -0
- package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js +76 -0
- package/build/main//321/201omponents/ChipDndContext/ChipDndContext.js.map +1 -0
- package/build/main//321/201omponents/ChipDndContext/index.d.ts +1 -0
- package/build/main//321/201omponents/ChipDndContext/index.js +2 -0
- package/build/main//321/201omponents/ChipDndContext/index.js.map +1 -0
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +4 -0
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +64 -0
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +1 -0
- package/build/main//321/201omponents/ConfirmationModal/index.d.ts +1 -0
- package/build/main//321/201omponents/ConfirmationModal/index.js +2 -0
- package/build/main//321/201omponents/ConfirmationModal/index.js.map +1 -0
- package/build/main//321/201omponents/ConfirmationModal/types.d.ts +31 -0
- package/build/main//321/201omponents/ConfirmationModal/types.js +2 -0
- package/build/main//321/201omponents/ConfirmationModal/types.js.map +1 -0
- package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +4 -0
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js +122 -0
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +1 -0
- package/build/main//321/201omponents/ContextMenu/index.d.ts +1 -0
- package/build/main//321/201omponents/ContextMenu/index.js +2 -0
- package/build/main//321/201omponents/ContextMenu/index.js.map +1 -0
- package/build/main//321/201omponents/ContextMenu/types.d.ts +41 -0
- package/build/main//321/201omponents/ContextMenu/types.js +2 -0
- package/build/main//321/201omponents/ContextMenu/types.js.map +1 -0
- package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.d.ts +4 -0
- package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js +49 -0
- package/build/main//321/201omponents/ContextMenuItem/ContextMenuItem.js.map +1 -0
- package/build/main//321/201omponents/ContextMenuItem/index.d.ts +1 -0
- package/build/main//321/201omponents/ContextMenuItem/index.js +2 -0
- package/build/main//321/201omponents/ContextMenuItem/index.js.map +1 -0
- package/build/main//321/201omponents/ContextMenuItem/types.d.ts +28 -0
- package/build/main//321/201omponents/ContextMenuItem/types.js +6 -0
- package/build/main//321/201omponents/ContextMenuItem/types.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +12 -0
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +281 -0
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/index.d.ts +1 -0
- package/build/main//321/201omponents/CustomSelect/index.js +2 -0
- package/build/main//321/201omponents/CustomSelect/index.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +16 -0
- package/build/main//321/201omponents/CustomSelect/selectStyles.js +77 -0
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/types.d.ts +86 -0
- package/build/main//321/201omponents/CustomSelect/types.js +2 -0
- package/build/main//321/201omponents/CustomSelect/types.js.map +1 -0
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +4 -0
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +67 -0
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +1 -0
- package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +1 -0
- package/build/main//321/201omponents/CustomSelectProfiles/index.js +2 -0
- package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +1 -0
- package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.d.ts +12 -0
- package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js +41 -0
- package/build/main//321/201omponents/CustomSelectProfiles/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +13 -0
- package/build/main//321/201omponents/CustomSelectProfiles/types.js +2 -0
- package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +1 -0
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +4 -0
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +57 -0
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +1 -0
- package/build/main//321/201omponents/DragAndDrop/index.d.ts +1 -0
- package/build/main//321/201omponents/DragAndDrop/index.js +2 -0
- package/build/main//321/201omponents/DragAndDrop/index.js.map +1 -0
- package/build/main//321/201omponents/DragAndDrop/types.d.ts +24 -0
- package/build/main//321/201omponents/DragAndDrop/types.js +2 -0
- package/build/main//321/201omponents/DragAndDrop/types.js.map +1 -0
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +4 -0
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +228 -0
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
- package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
- package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
- package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
- package/build/main//321/201omponents/DraggablePopup/types.d.ts +90 -0
- package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
- package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
- package/build/main//321/201omponents/Error/Error.d.ts +4 -0
- package/build/main//321/201omponents/Error/Error.js +23 -0
- package/build/main//321/201omponents/Error/Error.js.map +1 -0
- package/build/main//321/201omponents/Error/index.d.ts +1 -0
- package/build/main//321/201omponents/Error/index.js +2 -0
- package/build/main//321/201omponents/Error/index.js.map +1 -0
- package/build/main//321/201omponents/Error/types.d.ts +10 -0
- package/build/main//321/201omponents/Error/types.js +2 -0
- package/build/main//321/201omponents/Error/types.js.map +1 -0
- package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
- package/build/main//321/201omponents/Flex/Flex.js +35 -0
- package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
- package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
- package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
- package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
- package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
- package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
- package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
- package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
- package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
- package/build/main//321/201omponents/Flex/index.d.ts +3 -0
- package/build/main//321/201omponents/Flex/index.js +4 -0
- package/build/main//321/201omponents/Flex/index.js.map +1 -0
- package/build/main//321/201omponents/Flex/types.d.ts +21 -0
- package/build/main//321/201omponents/Flex/types.js +2 -0
- package/build/main//321/201omponents/Flex/types.js.map +1 -0
- package/build/main//321/201omponents/Header/Header.d.ts +5 -0
- package/build/main//321/201omponents/Header/Header.js +125 -0
- package/build/main//321/201omponents/Header/Header.js.map +1 -0
- package/build/main//321/201omponents/Header/index.d.ts +1 -0
- package/build/main//321/201omponents/Header/index.js +2 -0
- package/build/main//321/201omponents/Header/index.js.map +1 -0
- package/build/main//321/201omponents/Header/types.d.ts +47 -0
- package/build/main//321/201omponents/Header/types.js +2 -0
- package/build/main//321/201omponents/Header/types.js.map +1 -0
- package/build/main//321/201omponents/Input/Input.d.ts +4 -0
- package/build/main//321/201omponents/Input/Input.js +256 -0
- package/build/main//321/201omponents/Input/Input.js.map +1 -0
- package/build/main//321/201omponents/Input/index.d.ts +1 -0
- package/build/main//321/201omponents/Input/index.js +2 -0
- package/build/main//321/201omponents/Input/index.js.map +1 -0
- package/build/main//321/201omponents/Input/types.d.ts +37 -0
- package/build/main//321/201omponents/Input/types.js +2 -0
- package/build/main//321/201omponents/Input/types.js.map +1 -0
- package/build/main//321/201omponents/ListItem/ListItem.d.ts +23 -0
- package/build/main//321/201omponents/ListItem/ListItem.js +214 -0
- package/build/main//321/201omponents/ListItem/ListItem.js.map +1 -0
- package/build/main//321/201omponents/ListItem/index.d.ts +1 -0
- package/build/main//321/201omponents/ListItem/index.js +2 -0
- package/build/main//321/201omponents/ListItem/index.js.map +1 -0
- package/build/main//321/201omponents/ListItem/types.d.ts +47 -0
- package/build/main//321/201omponents/ListItem/types.js +2 -0
- package/build/main//321/201omponents/ListItem/types.js.map +1 -0
- package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
- package/build/main//321/201omponents/Loader/Loader.js +44 -0
- package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
- package/build/main//321/201omponents/Loader/index.d.ts +1 -0
- package/build/main//321/201omponents/Loader/index.js +2 -0
- package/build/main//321/201omponents/Loader/index.js.map +1 -0
- package/build/main//321/201omponents/Loader/types.d.ts +18 -0
- package/build/main//321/201omponents/Loader/types.js +2 -0
- package/build/main//321/201omponents/Loader/types.js.map +1 -0
- package/build/main//321/201omponents/Modal/Modal.d.ts +5 -0
- package/build/main//321/201omponents/Modal/Modal.js +397 -0
- package/build/main//321/201omponents/Modal/Modal.js.map +1 -0
- package/build/main//321/201omponents/Modal/index.d.ts +1 -0
- package/build/main//321/201omponents/Modal/index.js +2 -0
- package/build/main//321/201omponents/Modal/index.js.map +1 -0
- package/build/main//321/201omponents/Modal/types.d.ts +77 -0
- package/build/main//321/201omponents/Modal/types.js +2 -0
- package/build/main//321/201omponents/Modal/types.js.map +1 -0
- package/build/main//321/201omponents/Notification/Notification.d.ts +4 -0
- package/build/main//321/201omponents/Notification/Notification.js +208 -0
- package/build/main//321/201omponents/Notification/Notification.js.map +1 -0
- package/build/main//321/201omponents/Notification/constants.d.ts +34 -0
- package/build/main//321/201omponents/Notification/constants.js +59 -0
- package/build/main//321/201omponents/Notification/constants.js.map +1 -0
- package/build/main//321/201omponents/Notification/index.d.ts +1 -0
- package/build/main//321/201omponents/Notification/index.js +2 -0
- package/build/main//321/201omponents/Notification/index.js.map +1 -0
- package/build/main//321/201omponents/Notification/types.d.ts +64 -0
- package/build/main//321/201omponents/Notification/types.js +2 -0
- package/build/main//321/201omponents/Notification/types.js.map +1 -0
- package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
- package/build/main//321/201omponents/Profile/Profile.js +42 -0
- package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
- package/build/main//321/201omponents/Profile/index.d.ts +1 -0
- package/build/main//321/201omponents/Profile/index.js +2 -0
- package/build/main//321/201omponents/Profile/index.js.map +1 -0
- package/build/main//321/201omponents/Profile/types.d.ts +14 -0
- package/build/main//321/201omponents/Profile/types.js +2 -0
- package/build/main//321/201omponents/Profile/types.js.map +1 -0
- package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
- package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
- package/build/main//321/201omponents/ProgressBar/index.js +2 -0
- package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
- package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
- package/build/main//321/201omponents/ProgressBar/types.js +2 -0
- package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
- package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
- package/build/main//321/201omponents/RadioButton/RadioButton.js +33 -0
- package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
- package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
- package/build/main//321/201omponents/RadioButton/index.js +2 -0
- package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
- package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
- package/build/main//321/201omponents/RadioButton/types.js +2 -0
- package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
- package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +140 -0
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +1 -0
- package/build/main//321/201omponents/ScrollBar/index.d.ts +1 -0
- package/build/main//321/201omponents/ScrollBar/index.js +2 -0
- package/build/main//321/201omponents/ScrollBar/index.js.map +1 -0
- package/build/main//321/201omponents/ScrollBar/types.d.ts +24 -0
- package/build/main//321/201omponents/ScrollBar/types.js +2 -0
- package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
- package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
- package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
- package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
- package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
- package/build/main//321/201omponents/Skeleton/index.js +2 -0
- package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
- package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
- package/build/main//321/201omponents/Skeleton/types.js +2 -0
- package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
- package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
- package/build/main//321/201omponents/Stories/Stories.js +406 -0
- package/build/main//321/201omponents/Stories/Stories.js.map +1 -0
- package/build/main//321/201omponents/Stories/index.d.ts +1 -0
- package/build/main//321/201omponents/Stories/index.js +2 -0
- package/build/main//321/201omponents/Stories/index.js.map +1 -0
- package/build/main//321/201omponents/Stories/types.d.ts +71 -0
- package/build/main//321/201omponents/Stories/types.js +16 -0
- package/build/main//321/201omponents/Stories/types.js.map +1 -0
- package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
- package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
- package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
- package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
- package/build/main//321/201omponents/Switcher/index.js +2 -0
- package/build/main//321/201omponents/Switcher/index.js.map +1 -0
- package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
- package/build/main//321/201omponents/Switcher/types.js +2 -0
- package/build/main//321/201omponents/Switcher/types.js.map +1 -0
- package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
- package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
- package/build/main//321/201omponents/SyncLoader/index.js +2 -0
- package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
- package/build/main//321/201omponents/SyncLoader/types.d.ts +8 -0
- package/build/main//321/201omponents/SyncLoader/types.js +2 -0
- package/build/main//321/201omponents/SyncLoader/types.js.map +1 -0
- package/build/main//321/201omponents/Textarea/Textarea.d.ts +4 -0
- package/build/main//321/201omponents/Textarea/Textarea.js +59 -0
- package/build/main//321/201omponents/Textarea/Textarea.js.map +1 -0
- package/build/main//321/201omponents/Textarea/index.d.ts +1 -0
- package/build/main//321/201omponents/Textarea/index.js +2 -0
- package/build/main//321/201omponents/Textarea/index.js.map +1 -0
- package/build/main//321/201omponents/Textarea/types.d.ts +13 -0
- package/build/main//321/201omponents/Textarea/types.js +2 -0
- package/build/main//321/201omponents/Textarea/types.js.map +1 -0
- package/build/main//321/201omponents/Toggle/Toggle.d.ts +4 -0
- package/build/main//321/201omponents/Toggle/Toggle.js +35 -0
- package/build/main//321/201omponents/Toggle/Toggle.js.map +1 -0
- package/build/main//321/201omponents/Toggle/index.d.ts +1 -0
- package/build/main//321/201omponents/Toggle/index.js +2 -0
- package/build/main//321/201omponents/Toggle/index.js.map +1 -0
- package/build/main//321/201omponents/Toggle/types.d.ts +12 -0
- package/build/main//321/201omponents/Toggle/types.js +2 -0
- package/build/main//321/201omponents/Toggle/types.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +40 -0
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +98 -0
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +5 -0
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +24 -0
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +104 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +133 -0
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/Option/Option.js +85 -0
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +41 -0
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +527 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Delimiter.d.ts +8 -0
- package/build/main//321/201omponents/UserDropdown/components/Delimiter.js +10 -0
- package/build/main//321/201omponents/UserDropdown/components/Delimiter.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Hint.d.ts +6 -0
- package/build/main//321/201omponents/UserDropdown/components/Hint.js +21 -0
- package/build/main//321/201omponents/UserDropdown/components/Hint.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Input.d.ts +2 -0
- package/build/main//321/201omponents/UserDropdown/components/Input.js +24 -0
- package/build/main//321/201omponents/UserDropdown/components/Input.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Mask.d.ts +8 -0
- package/build/main//321/201omponents/UserDropdown/components/Mask.js +19 -0
- package/build/main//321/201omponents/UserDropdown/components/Mask.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/components/Title.d.ts +5 -0
- package/build/main//321/201omponents/UserDropdown/components/Title.js +18 -0
- package/build/main//321/201omponents/UserDropdown/components/Title.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/constants.d.ts +65 -0
- package/build/main//321/201omponents/UserDropdown/constants.js +83 -0
- package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +148 -0
- package/build/main//321/201omponents/UserDropdown/helpers.js +313 -0
- package/build/main//321/201omponents/UserDropdown/helpers.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/index.d.ts +1 -0
- package/build/main//321/201omponents/UserDropdown/index.js +2 -0
- package/build/main//321/201omponents/UserDropdown/index.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +15 -0
- package/build/main//321/201omponents/UserDropdown/selectStyles.js +99 -0
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/types.d.ts +356 -0
- package/build/main//321/201omponents/UserDropdown/types.js +2 -0
- package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
- package/build/main//321/201omponents/types.d.ts +2 -0
- package/build/main//321/201omponents/types.js +2 -0
- package/build/main//321/201omponents/types.js.map +1 -0
- package/package.json +13 -8
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ReactElement, RefObject } from 'react';
|
|
2
|
+
import { IFontFamilyProps, IPlatformProps, TAvatar, TStyles } from '../../constants';
|
|
3
|
+
export type TInteractivePosition = 'left' | 'right';
|
|
4
|
+
export type TInteractiveElement = 'radio-button' | 'checkbox' | 'toggle';
|
|
5
|
+
export type TNotInteractiveElement = 'icon' | 'indicator' | 'no-element';
|
|
6
|
+
export type TIndicatorColor = 'blue' | 'pink' | 'orange' | 'violet' | 'cactus' | 'lime' | 'grey' | 'red';
|
|
7
|
+
export interface InteractiveItemProps {
|
|
8
|
+
type: 'interactive';
|
|
9
|
+
position?: TInteractivePosition;
|
|
10
|
+
element: TInteractiveElement;
|
|
11
|
+
isSelected?: boolean;
|
|
12
|
+
isIndicator?: boolean;
|
|
13
|
+
color?: TIndicatorColor;
|
|
14
|
+
onChange: () => void;
|
|
15
|
+
}
|
|
16
|
+
export interface NotInteractiveIconItemProps {
|
|
17
|
+
element: 'icon';
|
|
18
|
+
icon: ReactElement;
|
|
19
|
+
}
|
|
20
|
+
export interface NotInteractiveIndicatorItemProps {
|
|
21
|
+
element: 'indicator';
|
|
22
|
+
color?: TIndicatorColor;
|
|
23
|
+
}
|
|
24
|
+
export interface NotInteractiveNoElementItemProps {
|
|
25
|
+
element: 'no-element';
|
|
26
|
+
secondaryText?: string;
|
|
27
|
+
secondaryTextColor?: string;
|
|
28
|
+
secondaryTextStyles?: TStyles;
|
|
29
|
+
secondaryTextClassName?: string;
|
|
30
|
+
}
|
|
31
|
+
export type NotInteractiveItemProps = (NotInteractiveIconItemProps | NotInteractiveIndicatorItemProps | NotInteractiveNoElementItemProps) & {
|
|
32
|
+
type: 'not-interactive';
|
|
33
|
+
isSelected?: boolean;
|
|
34
|
+
};
|
|
35
|
+
export type IListItemProps = IFontFamilyProps & IPlatformProps & (InteractiveItemProps | NotInteractiveItemProps) & {
|
|
36
|
+
text: string;
|
|
37
|
+
isDisabled?: boolean;
|
|
38
|
+
isTextTruncated?: boolean;
|
|
39
|
+
className?: string;
|
|
40
|
+
styles?: TStyles;
|
|
41
|
+
textStyles?: TStyles;
|
|
42
|
+
primaryTextStyles?: TStyles;
|
|
43
|
+
primaryTextClassName?: string;
|
|
44
|
+
interactiveElementStyles?: TStyles;
|
|
45
|
+
textRef?: RefObject<HTMLDivElement | null>;
|
|
46
|
+
avatar?: TAvatar;
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ListItem/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ILoaderProps } from './types';
|
|
2
|
+
import '../../styles/styles.scss';
|
|
3
|
+
declare const Loader: ({ fontFamily, isLoader, isFullScreen, isTextItalic, title, textSize, width, iconSize, containerClassName, className, containerStyles, styles, color, backgroundColor, theme, icon, }: ILoaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
export default Loader;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { cloneElement } from 'react';
|
|
14
|
+
import classNames from 'classnames';
|
|
15
|
+
import { generateColor, generateFontFamilyStyle, isDarkTheme } from '../../helpers';
|
|
16
|
+
import { COLORS, FONT_SIZE, LINE_HEIGHT, THEME } from '../../constants';
|
|
17
|
+
import { ReactComponent as LoaderIcon } from '../../assets/icons/loader.svg';
|
|
18
|
+
import '../../styles/styles.scss';
|
|
19
|
+
var Loader = function (_a) {
|
|
20
|
+
var fontFamily = _a.fontFamily, isLoader = _a.isLoader, _b = _a.isFullScreen, isFullScreen = _b === void 0 ? true : _b, _c = _a.isTextItalic, isTextItalic = _c === void 0 ? false : _c, title = _a.title, _d = _a.textSize, textSize = _d === void 0 ? 'small' : _d, _e = _a.width, width = _e === void 0 ? 150 : _e, _f = _a.iconSize, iconSize = _f === void 0 ? 25 : _f, containerClassName = _a.containerClassName, className = _a.className, containerStyles = _a.containerStyles, styles = _a.styles, color = _a.color, backgroundColor = _a.backgroundColor, _g = _a.theme, theme = _g === void 0 ? THEME.default : _g, _h = _a.icon, icon = _h === void 0 ? _jsx(LoaderIcon, {}) : _h;
|
|
21
|
+
var loaderColor = generateColor(color, COLORS.blue);
|
|
22
|
+
var generateTextStyles = function () { return ({
|
|
23
|
+
fontSize: FONT_SIZE[textSize],
|
|
24
|
+
fontStyle: isTextItalic ? 'italic' : 'normal',
|
|
25
|
+
lineHeight: LINE_HEIGHT[textSize],
|
|
26
|
+
}); };
|
|
27
|
+
var generateBackgroundColor = function () {
|
|
28
|
+
var colorForDefaultTheme = isFullScreen ? COLORS.lighterGray : COLORS.white;
|
|
29
|
+
var defaultColor = isDarkTheme(theme) ? COLORS.white3 : colorForDefaultTheme;
|
|
30
|
+
return generateColor(backgroundColor, defaultColor);
|
|
31
|
+
};
|
|
32
|
+
if (!isLoader) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
var iconProps = {
|
|
36
|
+
className: 'smartapp-loader__icon',
|
|
37
|
+
width: iconSize,
|
|
38
|
+
height: iconSize,
|
|
39
|
+
style: { color: loaderColor },
|
|
40
|
+
};
|
|
41
|
+
return (_jsx("div", __assign({ className: classNames('smartapp-loader-wrapper', { 'smartapp-loader-wrapper__full-screen': isFullScreen }, containerClassName), style: __assign(__assign({ background: generateBackgroundColor() }, generateFontFamilyStyle(fontFamily)), containerStyles) }, { children: _jsxs("div", __assign({ className: classNames('smartapp-loader', className), style: __assign({ width: "".concat(width, "px") }, styles) }, { children: [cloneElement(icon, iconProps), title && (_jsx("p", __assign({ className: "smartapp-loader__title", style: generateTextStyles() }, { children: title })))] })) })));
|
|
42
|
+
};
|
|
43
|
+
export default Loader;
|
|
44
|
+
//# sourceMappingURL=Loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/Loader.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACnF,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEvE,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,0BAA0B,CAAA;AAEjC,IAAM,MAAM,GAAG,UAAC,EAiBD;QAhBb,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,oBAAmB,EAAnB,YAAY,m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EAAE,QAAQ;QAChB,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;KAC9B,CAAA;IAED,OAAO,CACL,uBACE,SAAS,EAAE,UAAU,CAAC,yBAAyB,EAAE,EAAE,sCAAsC,EAAE,YAAY,EAAE,EAAE,kBAAkB,CAAC,EAC9H,KAAK,sBAAI,UAAU,EAAE,uBAAuB,EAAE,IAAK,uBAAuB,CAAC,UAAU,CAAC,GAAK,eAAe,iBAE1G,wBAAK,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,SAAS,CAAC,EAAE,KAAK,aAAI,KAAK,EAAE,UAAG,KAAK,OAAI,IAAK,MAAM,kBAC9F,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,EAC7B,KAAK,IAAI,CACR,qBAAG,SAAS,EAAC,wBAAwB,EAAC,KAAK,EAAE,kBAAkB,EAAE,gBAC9D,KAAK,IACJ,CACL,KACG,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Loader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IFontFamilyProps, IThemeProps, TStyles } from '../../constants';
|
|
3
|
+
export interface ILoaderProps extends IThemeProps, IFontFamilyProps {
|
|
4
|
+
isLoader: boolean;
|
|
5
|
+
isFullScreen?: boolean;
|
|
6
|
+
isTextItalic?: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
textSize?: 'small' | 'default' | 'large';
|
|
9
|
+
width?: number;
|
|
10
|
+
iconSize?: number;
|
|
11
|
+
containerClassName?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
containerStyles?: TStyles;
|
|
14
|
+
styles?: TStyles;
|
|
15
|
+
color?: string;
|
|
16
|
+
backgroundColor?: string;
|
|
17
|
+
icon?: ReactElement;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IModalProps, TBottomSheetScrollMobileConfig } from './types';
|
|
2
|
+
import '../../styles/styles.scss';
|
|
3
|
+
export declare const DEFAULT_BOTTOM_SHEET_SCROLL_MOBILE_CONFIG: TBottomSheetScrollMobileConfig;
|
|
4
|
+
declare const Modal: ({ fontFamily, isModalOpen, isClosableOutside, isCloseIconHidden, isPopup, isBottomSheet, isDisabledBottomSheet, isCloseButtonDisabled, isResetPaddingBottom, isScrollBordersVisible, isDisableTitleCollapsing, isBottomContentBorderShown, isNeedToScrollUp, isDisablePopupDragging, modalId, contentId, mobileContentId, modalRef: outerModalRef, content, bottomContent, title, titleIcons, platform, popupClassName, className, titleClassName, iconsClassName, popupStyles, styles, titleStyles, contentStyles, scrollableContentStyles, iconColor, backgroundColor, modalMaxHeight, bottomSheetProps, bottomSheetDetent, bottomSheetStyles, externalBottomSheetScrollContainer, contextMenuProps, bottomSheetScrollMobileConfig, handleChangeTitleBorderDisplayed, handleClickOutside, handleCloseModal, handleBottomSheetInitialized, onScroll: externalHandleScroll, }: IModalProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
export default Modal;
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
24
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
25
|
+
if (ar || !(i in from)) {
|
|
26
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
27
|
+
ar[i] = from[i];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
31
|
+
};
|
|
32
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
|
+
/* eslint-disable max-lines */
|
|
34
|
+
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
35
|
+
import classNames from 'classnames';
|
|
36
|
+
import { isArray, isNil, isNull, isNumber } from 'lodash';
|
|
37
|
+
import { useModal } from '../../hooks/useModal';
|
|
38
|
+
import ContextMenu from '../ContextMenu';
|
|
39
|
+
import ScrollBar from '../ScrollBar';
|
|
40
|
+
import { DEFAULT_SCROLL_BAR_SIZE } from '../ScrollBar/ScrollBar';
|
|
41
|
+
import { checkIfContentIsCentered, checkIsAndroidPlatform, checkIsIosPlatform, checkIsMobilePlatform, clickOutsideTheModal, generateBottomSheetClassName, generateClassNames, generateColor, generateFontFamilyStyle, generateIsCloseIconHidden, } from '../../helpers';
|
|
42
|
+
import { BOTTOM_SHEET, BOTTOM_SHEET_SCROLL_POSITION, COLORS, DRAGGABLE_KEY, EVENT_LISTENER_TYPES, FULL_HEIGHT_BOTTOM_SHEET_TOP_MARGIN, MODAL_ICONS_PADDING_LEFT, PLATFORM, SMARTAPP_MODAL_ID, } from '../../constants';
|
|
43
|
+
import { ReactComponent as CloseIcon } from '../../assets/icons/close-modal.svg';
|
|
44
|
+
import { ReactComponent as MoreIcon } from '../../assets/icons/more.svg';
|
|
45
|
+
import '../../styles/styles.scss';
|
|
46
|
+
var SCROLL_BAR_HEIGHT_WITH_PADDING = 'calc(100% - 20px)';
|
|
47
|
+
var MODAL_MARGIN_SIZE_WEB = 165;
|
|
48
|
+
var CONTENT_PADDING_TOP = 20;
|
|
49
|
+
var BOTTOM_SHEET_CONTENT_PADDING_TOP = 16;
|
|
50
|
+
var MODAL_MARGIN_SIZE_MOBILE = 136;
|
|
51
|
+
var POPUP_CLASS_NAME = 'popup';
|
|
52
|
+
var MIN_SCROLL_TOP = 5;
|
|
53
|
+
var MODAL_PADDING_RIGHT = 20;
|
|
54
|
+
var CONTAINER_EDGE_MARGIN = 4;
|
|
55
|
+
var FULL_HEIGHT_SCROLL_BAR_HEIGHT = 'auto';
|
|
56
|
+
export var DEFAULT_BOTTOM_SHEET_SCROLL_MOBILE_CONFIG = {
|
|
57
|
+
scrollTo: BOTTOM_SHEET_SCROLL_POSITION.bottom,
|
|
58
|
+
extraPaddingFocusedElement: 0,
|
|
59
|
+
topCursorEdge: 0,
|
|
60
|
+
upperVisibilityThreshold: 0,
|
|
61
|
+
shouldDoScrollToFocusedElement: true,
|
|
62
|
+
};
|
|
63
|
+
var TITLE_CLASS_NAMES = {
|
|
64
|
+
border: 'smartapp-modal__content--title__border',
|
|
65
|
+
ellipsis: 'smartapp-modal__content--title__ellipsis',
|
|
66
|
+
ellipsisContainer: 'smartapp-modal__content--title__ellipsis-container',
|
|
67
|
+
};
|
|
68
|
+
var checkIsBottomContentBorderVisible = function (_a) {
|
|
69
|
+
var scrollTop = _a.scrollTop, clientHeight = _a.clientHeight, scrollHeight = _a.scrollHeight;
|
|
70
|
+
return scrollTop + clientHeight < scrollHeight - 1;
|
|
71
|
+
};
|
|
72
|
+
var generateBottomSheetHeightConfig = function (_a) {
|
|
73
|
+
var bottomSheetProps = _a.bottomSheetProps, containerHeight = _a.containerHeight, shouldUseBottomSheet = _a.shouldUseBottomSheet;
|
|
74
|
+
var _b = bottomSheetProps || {}, bottomSheetHeight = _b.height, _c = _b.isFullHeightWithTopMargin, isFullHeightWithTopMargin = _c === void 0 ? false : _c;
|
|
75
|
+
var isBottomSheetHeightAvailable = isNumber(bottomSheetHeight) && bottomSheetHeight > 0;
|
|
76
|
+
var isFullHeightBottomSheet = shouldUseBottomSheet && !isBottomSheetHeightAvailable && isFullHeightWithTopMargin;
|
|
77
|
+
var scrollBarContainerHeight = isFullHeightBottomSheet ? FULL_HEIGHT_SCROLL_BAR_HEIGHT : containerHeight;
|
|
78
|
+
return { bottomSheetHeight: bottomSheetHeight, isFullHeightBottomSheet: isFullHeightBottomSheet, scrollBarContainerHeight: scrollBarContainerHeight };
|
|
79
|
+
};
|
|
80
|
+
var Modal = function (_a) {
|
|
81
|
+
var fontFamily = _a.fontFamily, isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? true : _b, isCloseIconHidden = _a.isCloseIconHidden, _c = _a.isPopup, isPopup = _c === void 0 ? false : _c, _d = _a.isBottomSheet, isBottomSheet = _d === void 0 ? false : _d, _e = _a.isDisabledBottomSheet, isDisabledBottomSheet = _e === void 0 ? false : _e, _f = _a.isCloseButtonDisabled, isCloseButtonDisabled = _f === void 0 ? false : _f, _g = _a.isResetPaddingBottom, isResetPaddingBottom = _g === void 0 ? false : _g, _h = _a.isScrollBordersVisible, isScrollBordersVisible = _h === void 0 ? false : _h, _j = _a.isDisableTitleCollapsing, isDisableTitleCollapsing = _j === void 0 ? false : _j, _k = _a.isBottomContentBorderShown, isBottomContentBorderShown = _k === void 0 ? false : _k, _l = _a.isNeedToScrollUp, isNeedToScrollUp = _l === void 0 ? false : _l, _m = _a.isDisablePopupDragging, isDisablePopupDragging = _m === void 0 ? false : _m, modalId = _a.modalId, contentId = _a.contentId, mobileContentId = _a.mobileContentId, outerModalRef = _a.modalRef, content = _a.content, bottomContent = _a.bottomContent, title = _a.title, titleIcons = _a.titleIcons, _o = _a.platform, platform = _o === void 0 ? PLATFORM.web : _o, popupClassName = _a.popupClassName, className = _a.className, titleClassName = _a.titleClassName, iconsClassName = _a.iconsClassName, popupStyles = _a.popupStyles, styles = _a.styles, titleStyles = _a.titleStyles, contentStyles = _a.contentStyles, scrollableContentStyles = _a.scrollableContentStyles, iconColor = _a.iconColor, backgroundColor = _a.backgroundColor, modalMaxHeight = _a.modalMaxHeight, bottomSheetProps = _a.bottomSheetProps, bottomSheetDetent = _a.bottomSheetDetent, bottomSheetStyles = _a.bottomSheetStyles, externalBottomSheetScrollContainer = _a.externalBottomSheetScrollContainer, contextMenuProps = _a.contextMenuProps, _p = _a.bottomSheetScrollMobileConfig, bottomSheetScrollMobileConfig = _p === void 0 ? DEFAULT_BOTTOM_SHEET_SCROLL_MOBILE_CONFIG : _p, handleChangeTitleBorderDisplayed = _a.handleChangeTitleBorderDisplayed, handleClickOutside = _a.handleClickOutside, handleCloseModal = _a.handleCloseModal, handleBottomSheetInitialized = _a.handleBottomSheetInitialized, externalHandleScroll = _a.onScroll;
|
|
82
|
+
var localModalRef = useRef(null);
|
|
83
|
+
var titleRef = useRef(null);
|
|
84
|
+
var titleTextElementRef = useRef(null);
|
|
85
|
+
var scrollableContentRef = useRef(null);
|
|
86
|
+
var contentRef = useRef(null);
|
|
87
|
+
var scrollerRef = useRef(null);
|
|
88
|
+
var bottomContentRef = useRef(null);
|
|
89
|
+
var scrollbarRef = useRef(null);
|
|
90
|
+
var isAndroidContainerHeightInitializedRef = useRef(false);
|
|
91
|
+
var androidContainerHeightContentIdRef = useRef(mobileContentId);
|
|
92
|
+
var elementRefResizeObserver = useRef(null);
|
|
93
|
+
var titleIconsRefResizeObserver = useRef(null);
|
|
94
|
+
var _q = useState(''), containerHeight = _q[0], setContainerHeight = _q[1];
|
|
95
|
+
var _r = useState(0), iconsWidth = _r[0], setIconsWidth = _r[1];
|
|
96
|
+
var _s = useState(false), isTitleBorderVisible = _s[0], setIsTitleBorderVisible = _s[1];
|
|
97
|
+
var _t = useState(false), isBottomContentBorderVisible = _t[0], setIsBottomContentBorderVisible = _t[1];
|
|
98
|
+
var modalRef = outerModalRef || localModalRef;
|
|
99
|
+
var background = generateColor(backgroundColor, COLORS.colorBgBlackoutTransparent);
|
|
100
|
+
var isScrollBordersAvailable = isPopup || isScrollBordersVisible;
|
|
101
|
+
var isTitleBorderDisplayed = isScrollBordersAvailable && isTitleBorderVisible;
|
|
102
|
+
var isBottomContentBorderDisplayed = (isScrollBordersAvailable && isBottomContentBorderVisible) || isBottomContentBorderShown;
|
|
103
|
+
var _u = bottomSheetScrollMobileConfig.shouldDoScrollToFocusedElement, shouldDoScrollToFocusedElement = _u === void 0 ? true : _u;
|
|
104
|
+
var popupOverlayStyle = __assign({ '--modal-background': background }, popupStyles);
|
|
105
|
+
var _v = useModal({
|
|
106
|
+
isModalOpen: isModalOpen,
|
|
107
|
+
isDisabledBottomSheet: isDisabledBottomSheet,
|
|
108
|
+
isClosableOutside: isClosableOutside,
|
|
109
|
+
initialIsBottomSheet: isBottomSheet,
|
|
110
|
+
platform: platform,
|
|
111
|
+
modalRef: modalRef,
|
|
112
|
+
scrollRef: externalBottomSheetScrollContainer || scrollerRef,
|
|
113
|
+
popupClassName: classNames('modal', popupClassName),
|
|
114
|
+
popupStyles: popupOverlayStyle,
|
|
115
|
+
bottomSheetStyles: bottomSheetStyles,
|
|
116
|
+
bottomSheetProps: bottomSheetProps,
|
|
117
|
+
bottomSheetDetent: bottomSheetDetent,
|
|
118
|
+
bottomSheetScrollMobileConfig: bottomSheetScrollMobileConfig,
|
|
119
|
+
handleCloseModal: handleCloseModal,
|
|
120
|
+
handleClickOutside: handleClickOutside,
|
|
121
|
+
handleBottomSheetInitialized: handleBottomSheetInitialized,
|
|
122
|
+
}), shouldUseBottomSheet = _v.shouldUseBottomSheet, renderModal = _v.renderModal, offsetScrollY = _v.offsetScrollY, offsetScrollYKey = _v.offsetScrollYKey, bottomKeyboardPadding = _v.bottomKeyboardPadding;
|
|
123
|
+
var isIos = checkIsIosPlatform(platform);
|
|
124
|
+
var isAndroid = checkIsAndroidPlatform(platform);
|
|
125
|
+
var _w = generateBottomSheetHeightConfig({
|
|
126
|
+
bottomSheetProps: bottomSheetProps,
|
|
127
|
+
containerHeight: containerHeight,
|
|
128
|
+
shouldUseBottomSheet: shouldUseBottomSheet,
|
|
129
|
+
}), bottomSheetHeight = _w.bottomSheetHeight, isFullHeightBottomSheet = _w.isFullHeightBottomSheet, scrollBarContainerHeight = _w.scrollBarContainerHeight;
|
|
130
|
+
var findElementWithText = function (root, isButtonExcluded) {
|
|
131
|
+
if (isButtonExcluded === void 0) { isButtonExcluded = false; }
|
|
132
|
+
if (isNull(root))
|
|
133
|
+
return null;
|
|
134
|
+
var stack = [root];
|
|
135
|
+
while (stack.length) {
|
|
136
|
+
// take the first element from the stack
|
|
137
|
+
var node = stack.shift();
|
|
138
|
+
if (!node)
|
|
139
|
+
continue;
|
|
140
|
+
var childNodes = node.childNodes, children = node.children, classList = node.classList;
|
|
141
|
+
if (isButtonExcluded && classList.contains('smartapp-button'))
|
|
142
|
+
continue;
|
|
143
|
+
// check if the current node has any direct text nodes
|
|
144
|
+
// if it does, return this node immediately
|
|
145
|
+
if (Array.from(childNodes).some(function (_a) {
|
|
146
|
+
var nodeType = _a.nodeType, textContent = _a.textContent;
|
|
147
|
+
return nodeType === Node.TEXT_NODE && (textContent === null || textContent === void 0 ? void 0 : textContent.trim());
|
|
148
|
+
}))
|
|
149
|
+
return node;
|
|
150
|
+
// otherwise, add all children of the current node to the stack for further search
|
|
151
|
+
// only include elements that are actual HTMLElements
|
|
152
|
+
stack.push.apply(stack, Array.from(children).filter(function (child) { return child instanceof HTMLElement; }));
|
|
153
|
+
}
|
|
154
|
+
return null;
|
|
155
|
+
};
|
|
156
|
+
var generateAdditionalClassName = useCallback(function () {
|
|
157
|
+
var bottomSheetClassName = generateBottomSheetClassName(platform, shouldUseBottomSheet);
|
|
158
|
+
return isPopup ? __spreadArray(__spreadArray([], bottomSheetClassName, true), [POPUP_CLASS_NAME], false) : bottomSheetClassName;
|
|
159
|
+
}, [isPopup, platform, shouldUseBottomSheet]);
|
|
160
|
+
var isCloseIconInvisible = generateIsCloseIconHidden(platform, isCloseIconHidden);
|
|
161
|
+
var isCloseIconLocatedOnTheLeft = !isCloseIconInvisible && shouldUseBottomSheet;
|
|
162
|
+
var areThereTitleIcons = (!isCloseIconLocatedOnTheLeft && !isCloseIconInvisible) || !isNil(titleIcons);
|
|
163
|
+
var modalMargins = checkIsMobilePlatform(platform) ? MODAL_MARGIN_SIZE_MOBILE : 2 * MODAL_MARGIN_SIZE_WEB;
|
|
164
|
+
var MAX_MODAL_HEIGHT_WEB = modalMaxHeight || window.innerHeight - modalMargins;
|
|
165
|
+
var isMobileModalWithoutContent = checkIsMobilePlatform(platform) && !shouldUseBottomSheet && isNull(findElementWithText(contentRef.current, true));
|
|
166
|
+
var handleMouseDown = function (event) {
|
|
167
|
+
var target = event.target;
|
|
168
|
+
if (target instanceof HTMLElement || target instanceof SVGElement) {
|
|
169
|
+
target.closest('.smartapp-custom-select__dropdown-indicator') && event.stopPropagation();
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
var handleSetContainerHeight = useCallback(function (elementRef, maxModalHeight) {
|
|
173
|
+
var _a, _b;
|
|
174
|
+
if (!elementRef)
|
|
175
|
+
return false;
|
|
176
|
+
var height = elementRef.getBoundingClientRect().height;
|
|
177
|
+
var titleHeight = ((_a = titleRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().height) || 0;
|
|
178
|
+
var bottomContentHeight = ((_b = bottomContentRef.current) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().height) || 0;
|
|
179
|
+
var contentAdditionalClassName = generateAdditionalClassName();
|
|
180
|
+
var contentPaddingTop = contentAdditionalClassName.includes(BOTTOM_SHEET) ? BOTTOM_SHEET_CONTENT_PADDING_TOP : CONTENT_PADDING_TOP;
|
|
181
|
+
var defaultContentHeight = maxModalHeight - titleHeight - contentPaddingTop;
|
|
182
|
+
var maxContentHeightValue = defaultContentHeight - bottomContentHeight;
|
|
183
|
+
var nextContainerHeight = isFullHeightBottomSheet ? maxContentHeightValue : Math.min(height, maxContentHeightValue);
|
|
184
|
+
// Если пересчет на андроиде выдает 0, оставляем как есть
|
|
185
|
+
if (isAndroid && nextContainerHeight <= 0)
|
|
186
|
+
return false;
|
|
187
|
+
setContainerHeight("".concat(nextContainerHeight, "px"));
|
|
188
|
+
return true;
|
|
189
|
+
}, [generateAdditionalClassName, isAndroid, isFullHeightBottomSheet]);
|
|
190
|
+
var handleSetContainerHeightWeb = useCallback(function (contentRef) {
|
|
191
|
+
var maxModalHeight = isFullHeightBottomSheet ? window.innerHeight - FULL_HEIGHT_BOTTOM_SHEET_TOP_MARGIN : MAX_MODAL_HEIGHT_WEB;
|
|
192
|
+
return handleSetContainerHeight(contentRef, maxModalHeight);
|
|
193
|
+
},
|
|
194
|
+
//eslint-disable-next-line
|
|
195
|
+
[contentId, modalMaxHeight, isFullHeightBottomSheet]);
|
|
196
|
+
var handleSetContainerHeightMobile = useCallback(function (elementRef) {
|
|
197
|
+
var isAndroidContentChanged = isAndroid && androidContainerHeightContentIdRef.current !== mobileContentId;
|
|
198
|
+
if (isAndroidContentChanged)
|
|
199
|
+
isAndroidContainerHeightInitializedRef.current = false;
|
|
200
|
+
// Для Android BottomSheet повторный замер запрещаем после первого успешного расчета.
|
|
201
|
+
if (isAndroid && isAndroidContainerHeightInitializedRef.current)
|
|
202
|
+
return;
|
|
203
|
+
var visualViewport = window.visualViewport, innerHeight = window.innerHeight;
|
|
204
|
+
var currentHeight = (visualViewport === null || visualViewport === void 0 ? void 0 : visualViewport.height) || innerHeight;
|
|
205
|
+
var maxFullHeightBottomSheetHeight = currentHeight - FULL_HEIGHT_BOTTOM_SHEET_TOP_MARGIN;
|
|
206
|
+
var MAX_MODAL_HEIGHT_MOBILE = isFullHeightBottomSheet ? maxFullHeightBottomSheetHeight : modalMaxHeight || currentHeight - modalMargins;
|
|
207
|
+
contentRef.current = elementRef;
|
|
208
|
+
var isContainerHeightUpdated = handleSetContainerHeight(elementRef, MAX_MODAL_HEIGHT_MOBILE);
|
|
209
|
+
if (isAndroid && isContainerHeightUpdated) {
|
|
210
|
+
isAndroidContainerHeightInitializedRef.current = true;
|
|
211
|
+
androidContainerHeightContentIdRef.current = mobileContentId;
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
/* eslint-disable-next-line */
|
|
215
|
+
[isAndroid, mobileContentId, handleSetContainerHeight, isFullHeightBottomSheet]);
|
|
216
|
+
useLayoutEffect(function () {
|
|
217
|
+
if (!isModalOpen || isFullHeightBottomSheet)
|
|
218
|
+
return;
|
|
219
|
+
if (isAndroid)
|
|
220
|
+
isAndroidContainerHeightInitializedRef.current = false;
|
|
221
|
+
var contentRefCurrent = contentRef.current;
|
|
222
|
+
if (checkIsMobilePlatform(platform)) {
|
|
223
|
+
handleSetContainerHeightMobile(contentRefCurrent);
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
handleSetContainerHeightWeb(contentRefCurrent);
|
|
227
|
+
}, [
|
|
228
|
+
bottomSheetHeight,
|
|
229
|
+
handleSetContainerHeightMobile,
|
|
230
|
+
handleSetContainerHeightWeb,
|
|
231
|
+
isAndroid,
|
|
232
|
+
isFullHeightBottomSheet,
|
|
233
|
+
isModalOpen,
|
|
234
|
+
platform,
|
|
235
|
+
shouldUseBottomSheet,
|
|
236
|
+
]);
|
|
237
|
+
var changeIsTitleBorderVisible = function (scrollTop) {
|
|
238
|
+
var isTitleBorderShown = scrollTop > MIN_SCROLL_TOP;
|
|
239
|
+
setIsTitleBorderVisible(isTitleBorderShown);
|
|
240
|
+
handleChangeTitleBorderDisplayed === null || handleChangeTitleBorderDisplayed === void 0 ? void 0 : handleChangeTitleBorderDisplayed(isTitleBorderShown);
|
|
241
|
+
};
|
|
242
|
+
var handleScroll = function (event) {
|
|
243
|
+
var scrollHeight = event.contentScrollHeight, clientHeight = event.clientHeight, scrollTop = event.scrollTop;
|
|
244
|
+
changeIsTitleBorderVisible(scrollTop);
|
|
245
|
+
setIsBottomContentBorderVisible(checkIsBottomContentBorderVisible({ scrollTop: scrollTop, clientHeight: clientHeight, scrollHeight: scrollHeight }));
|
|
246
|
+
externalHandleScroll === null || externalHandleScroll === void 0 ? void 0 : externalHandleScroll(event);
|
|
247
|
+
};
|
|
248
|
+
var handleScrollerRef = function (element) {
|
|
249
|
+
if (elementRefResizeObserver.current)
|
|
250
|
+
elementRefResizeObserver.current.disconnect();
|
|
251
|
+
scrollerRef.current = element;
|
|
252
|
+
if (element) {
|
|
253
|
+
var firstElementChild = element.firstElementChild;
|
|
254
|
+
var observer = new ResizeObserver(function () {
|
|
255
|
+
var scrollTop = element.scrollTop, scrollHeight = element.scrollHeight, clientHeight = element.clientHeight;
|
|
256
|
+
changeIsTitleBorderVisible(scrollTop);
|
|
257
|
+
if (bottomContent && clientHeight > 0)
|
|
258
|
+
setIsBottomContentBorderVisible(checkIsBottomContentBorderVisible({ scrollTop: scrollTop, clientHeight: clientHeight, scrollHeight: scrollHeight }));
|
|
259
|
+
});
|
|
260
|
+
if (firstElementChild)
|
|
261
|
+
observer.observe(firstElementChild);
|
|
262
|
+
elementRefResizeObserver.current = observer;
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
var handleTitleIconsRef = function (element) {
|
|
266
|
+
if (titleIconsRefResizeObserver.current)
|
|
267
|
+
titleIconsRefResizeObserver.current.disconnect();
|
|
268
|
+
if (element) {
|
|
269
|
+
var observer = new ResizeObserver(function () {
|
|
270
|
+
var width = element.getBoundingClientRect().width;
|
|
271
|
+
setIconsWidth(width);
|
|
272
|
+
});
|
|
273
|
+
observer.observe(element);
|
|
274
|
+
titleIconsRefResizeObserver.current = observer;
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
var handleTitleRef = useCallback(function (element) {
|
|
278
|
+
var titleTextElementRefCurrent = titleTextElementRef.current;
|
|
279
|
+
titleRef.current = element;
|
|
280
|
+
if (isNull(titleTextElementRefCurrent) || !(element === null || element === void 0 ? void 0 : element.contains(titleTextElementRefCurrent)))
|
|
281
|
+
titleTextElementRef.current = findElementWithText(element);
|
|
282
|
+
},
|
|
283
|
+
// eslint-disable-next-line
|
|
284
|
+
[modalId]);
|
|
285
|
+
useEffect(function () {
|
|
286
|
+
return function () {
|
|
287
|
+
if (elementRefResizeObserver.current)
|
|
288
|
+
elementRefResizeObserver.current.disconnect();
|
|
289
|
+
if (titleIconsRefResizeObserver.current)
|
|
290
|
+
titleIconsRefResizeObserver.current.disconnect();
|
|
291
|
+
};
|
|
292
|
+
}, []);
|
|
293
|
+
useEffect(function () {
|
|
294
|
+
var handleWindowResize = function () { return handleSetContainerHeightMobile(contentRef.current); };
|
|
295
|
+
isIos && window.addEventListener(EVENT_LISTENER_TYPES.resize, handleWindowResize);
|
|
296
|
+
return function () { return window.removeEventListener(EVENT_LISTENER_TYPES.resize, handleWindowResize); };
|
|
297
|
+
}, [handleSetContainerHeightMobile, isIos]);
|
|
298
|
+
useEffect(function () {
|
|
299
|
+
if (!isAndroid || !isModalOpen)
|
|
300
|
+
return;
|
|
301
|
+
isAndroidContainerHeightInitializedRef.current = false;
|
|
302
|
+
handleSetContainerHeightMobile(contentRef.current);
|
|
303
|
+
}, [modalId, mobileContentId, isAndroid, isModalOpen, handleSetContainerHeightMobile]);
|
|
304
|
+
useEffect(function () {
|
|
305
|
+
var checkIfClickedOutside = function (event) {
|
|
306
|
+
var target = event.target;
|
|
307
|
+
var modalRefCurrent = modalRef.current;
|
|
308
|
+
// this check is necessary to prevent the modal from closing when user clicks on a notification
|
|
309
|
+
if (target.closest('.Toastify__toast'))
|
|
310
|
+
return event.stopPropagation();
|
|
311
|
+
if (isModalOpen && isClosableOutside && modalRefCurrent && !modalRefCurrent.contains(target))
|
|
312
|
+
// this check is necessary to prevent the popup from closing when user interacts with the context menu
|
|
313
|
+
!target.closest('.smartapp-context-menu') && clickOutsideTheModal(handleCloseModal, handleClickOutside);
|
|
314
|
+
};
|
|
315
|
+
!isPopup && !shouldUseBottomSheet && (document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true));
|
|
316
|
+
return function () { return document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true); };
|
|
317
|
+
}, [handleClickOutside, handleCloseModal, isClosableOutside, isModalOpen, isPopup, modalRef, shouldUseBottomSheet]);
|
|
318
|
+
useEffect(function () {
|
|
319
|
+
var _a;
|
|
320
|
+
if (isDisableTitleCollapsing)
|
|
321
|
+
return;
|
|
322
|
+
var titleTextElementRefCurrent = titleTextElementRef.current;
|
|
323
|
+
var parentClassList = (_a = titleTextElementRefCurrent === null || titleTextElementRefCurrent === void 0 ? void 0 : titleTextElementRefCurrent.parentElement) === null || _a === void 0 ? void 0 : _a.classList;
|
|
324
|
+
titleTextElementRefCurrent === null || titleTextElementRefCurrent === void 0 ? void 0 : titleTextElementRefCurrent.classList.toggle(TITLE_CLASS_NAMES.ellipsis, isTitleBorderDisplayed);
|
|
325
|
+
!(parentClassList === null || parentClassList === void 0 ? void 0 : parentClassList.contains(TITLE_CLASS_NAMES.border)) && (parentClassList === null || parentClassList === void 0 ? void 0 : parentClassList.toggle(TITLE_CLASS_NAMES.ellipsisContainer, isTitleBorderDisplayed));
|
|
326
|
+
}, [isDisableTitleCollapsing, isTitleBorderDisplayed]);
|
|
327
|
+
useEffect(function () {
|
|
328
|
+
var scrollbarRefCurrent = scrollbarRef.current;
|
|
329
|
+
if (isNeedToScrollUp && scrollbarRefCurrent)
|
|
330
|
+
scrollbarRefCurrent.scrollTop = 0;
|
|
331
|
+
}, [isNeedToScrollUp]);
|
|
332
|
+
useEffect(function () {
|
|
333
|
+
var scrollbarRefCurrent = scrollbarRef.current;
|
|
334
|
+
if (scrollbarRefCurrent && offsetScrollY)
|
|
335
|
+
scrollbarRefCurrent.scrollTop += offsetScrollY;
|
|
336
|
+
// The "offsetScrollYKey" is required in the useEffect dependency array
|
|
337
|
+
// because sometimes we have to scroll to the same "offsetScrollY" position multiple times consecutively
|
|
338
|
+
}, [offsetScrollY, offsetScrollYKey]);
|
|
339
|
+
var renderTitle = function () {
|
|
340
|
+
var isPaddingIncreased = shouldUseBottomSheet && isCloseIconLocatedOnTheLeft;
|
|
341
|
+
return (title && (_jsxs("div", __assign({ className: classNames({ 'smartapp-modal__content--title__border': isTitleBorderDisplayed }) }, { children: [isPopup && (_jsx("div", { className: classNames("smartapp-modal__content--title__draggable-zone ".concat(DRAGGABLE_KEY), { cd: isDisablePopupDragging }) })), areThereTitleIcons && renderCloseIconSpace({ elementRef: titleRef }), _jsx("div", __assign({ ref: handleTitleRef, className: classNames('smartapp-modal__content--title', titleClassName, {
|
|
342
|
+
'smartapp-modal__content--title__reduced': isMobileModalWithoutContent,
|
|
343
|
+
'smartapp-modal__content--title__bottom-sheet': shouldUseBottomSheet,
|
|
344
|
+
'smartapp-modal__content--title__bottom-sheet--increased-pt': isPaddingIncreased && (!isTitleBorderDisplayed || isDisableTitleCollapsing),
|
|
345
|
+
'smartapp-modal__content--title__bottom-sheet--increased-pl': isPaddingIncreased && isTitleBorderDisplayed && !isDisableTitleCollapsing,
|
|
346
|
+
'smartapp-modal__content--title__with-title-icons': areThereTitleIcons,
|
|
347
|
+
}), style: titleStyles }, { children: title }))] }))));
|
|
348
|
+
};
|
|
349
|
+
var renderCloseIcon = function () {
|
|
350
|
+
return !isCloseIconInvisible && (_jsx("div", __assign({ onClick: !isCloseButtonDisabled ? handleCloseModal : function () { }, className: classNames('smartapp-modal__content--close-icon', {
|
|
351
|
+
'smartapp-modal__content--close-icon__disabled': isCloseButtonDisabled,
|
|
352
|
+
'smartapp-modal__content--close-icon__located-on-left': isCloseIconLocatedOnTheLeft,
|
|
353
|
+
}) }, { children: _jsx(CloseIcon, { style: { color: generateColor(iconColor) } }) })));
|
|
354
|
+
};
|
|
355
|
+
var renderCloseIconSpace = function (_a) {
|
|
356
|
+
var elementRef = _a.elementRef, _b = _a.isContent, isContent = _b === void 0 ? false : _b;
|
|
357
|
+
var isContentCentered = checkIfContentIsCentered(elementRef);
|
|
358
|
+
var baseWidth = iconsWidth + MODAL_ICONS_PADDING_LEFT;
|
|
359
|
+
var spaceWidth = isContent ? baseWidth : baseWidth + MODAL_PADDING_RIGHT;
|
|
360
|
+
return (_jsx("div", { style: { '--close-icon-space-width': "".concat(spaceWidth, "px") }, className: classNames('close-icon-space', {
|
|
361
|
+
'close-icon-space__content': isContent,
|
|
362
|
+
'close-icon-space__centered': isContentCentered,
|
|
363
|
+
}) }));
|
|
364
|
+
};
|
|
365
|
+
var renderTitleIcons = function () {
|
|
366
|
+
return (isArray(titleIcons) ? titleIcons : [titleIcons]).map(function (titleIcon, index) { return (_jsx("div", __assign({ className: "smartapp-modal__content--title-icon" }, { children: titleIcon }), index)); });
|
|
367
|
+
};
|
|
368
|
+
var renderContextMenuIcon = function () {
|
|
369
|
+
if (contextMenuProps) {
|
|
370
|
+
var openMenu = contextMenuProps.openMenu, isMenuOpen = contextMenuProps.isMenuOpen, contextMenuFontFamily = contextMenuProps.fontFamily, remainingProps = __rest(contextMenuProps, ["openMenu", "isMenuOpen", "fontFamily"]);
|
|
371
|
+
return (_jsxs("div", __assign({ className: classNames('smartapp-modal__content--context-menu-icon', { 'smartapp-modal__content--context-menu-icon__active': isMenuOpen }), onClick: openMenu }, { children: [_jsx(MoreIcon, {}), _jsx(ContextMenu, __assign({ isMenuOpen: isMenuOpen }, remainingProps, { fontFamily: contextMenuFontFamily || fontFamily }))] })));
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
var renderBottomContent = function () {
|
|
375
|
+
return bottomContent && (_jsx("div", __assign({ ref: bottomContentRef, className: classNames('smartapp-modal__content--bottom', { 'smartapp-modal__content--bottom__border': isBottomContentBorderDisplayed }) }, { children: bottomContent })));
|
|
376
|
+
};
|
|
377
|
+
var modalContent = (_jsx("div", __assign({ ref: modalRef, id: SMARTAPP_MODAL_ID, className: classNames('smartapp-modal', {
|
|
378
|
+
'smartapp-modal__bottom-sheet': shouldUseBottomSheet,
|
|
379
|
+
'smartapp-modal__bottom-sheet--full-height': isFullHeightBottomSheet,
|
|
380
|
+
'smartapp-modal__popup': isPopup,
|
|
381
|
+
}, className), style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles), onMouseDown: handleMouseDown, onTouchStart: handleMouseDown }, { children: _jsxs("div", __assign({ className: generateClassNames({
|
|
382
|
+
className: 'smartapp-modal__content',
|
|
383
|
+
delimiter: '--',
|
|
384
|
+
additionalClassName: generateAdditionalClassName(),
|
|
385
|
+
}), style: contentStyles }, { children: [isCloseIconLocatedOnTheLeft && renderCloseIcon(), renderTitle(), _jsxs("div", __assign({ ref: handleTitleIconsRef, className: classNames('smartapp-modal__content--icons', iconsClassName, {
|
|
386
|
+
'smartapp-modal__content--icons__bottom-sheet': shouldUseBottomSheet,
|
|
387
|
+
}) }, { children: [titleIcons && renderTitleIcons(), renderContextMenuIcon(), !isCloseIconLocatedOnTheLeft && renderCloseIcon()] })), _jsx(ScrollBar, { scrollbarRef: scrollbarRef, contentId: modalId, containerEdgeMargin: CONTAINER_EDGE_MARGIN, scrollerProps: { elementRef: handleScrollerRef }, content: _jsxs("div", __assign({ ref: checkIsMobilePlatform(platform) ? handleSetContainerHeightMobile : handleSetContainerHeightWeb, className: classNames('smartapp-modal__content--scrollable', {
|
|
388
|
+
'smartapp-modal__content--scrollable__bottom-sheet': shouldUseBottomSheet,
|
|
389
|
+
'smartapp-modal__content--scrollable__pb': !bottomContent && !isResetPaddingBottom,
|
|
390
|
+
'smartapp-modal__content--scrollable__bottom-sheet--pb': shouldUseBottomSheet && !bottomContent && !isResetPaddingBottom,
|
|
391
|
+
}), style: scrollableContentStyles }, { children: [!title && areThereTitleIcons && renderCloseIconSpace({ elementRef: scrollableContentRef, isContent: true }), _jsx("div", __assign({ style: {
|
|
392
|
+
paddingBottom: shouldDoScrollToFocusedElement ? bottomKeyboardPadding : undefined,
|
|
393
|
+
}, ref: scrollableContentRef }, { children: content }))] })), containerHeight: scrollBarContainerHeight, trackYHeight: bottomContent ? DEFAULT_SCROLL_BAR_SIZE : SCROLL_BAR_HEIGHT_WITH_PADDING, handleScroll: handleScroll }), renderBottomContent()] })) })));
|
|
394
|
+
return isPopup ? modalContent : renderModal(modalContent);
|
|
395
|
+
};
|
|
396
|
+
export default Modal;
|
|
397
|
+
//# sourceMappingURL=Modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/Modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8BAA8B;AAC9B,OAAc,EAA4B,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClH,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAChE,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB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H,CAAC,EACF,KAAK,EAAE,uBAAuB,iBAE7B,CAAC,KAAK,IAAI,kBAAkB,IAAI,oBAAoB,CAAC,EAAE,UAAU,EAAE,oBAAoB,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAC5G,uBACE,KAAK,EAAE;oCACL,aAAa,EAAE,8BAA8B,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS;iCAClF,EACD,GAAG,EAAE,oBAAoB,gBAExB,OAAO,IACJ,KACF,EAER,eAAe,EAAE,wBAAwB,EACzC,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,8BAA8B,EACtF,YAAY,EAAE,YAAY,GAC1B,EACD,mBAAmB,EAAE,KAClB,IACF,CACP,CAAA;IAED,OAAO,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAA;AAC3D,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Modal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
|