@expressms/smartapp-ui 3.0.0-alpha.20 → 3.0.0-alpha.22
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/package.json +1 -1
- package/build/main/assets/icons/arrow-back.svg +0 -3
- package/build/main/assets/icons/arrow-down.svg +0 -3
- package/build/main/assets/icons/arrow-up.svg +0 -3
- package/build/main/assets/icons/attachment-loader.svg +0 -3
- package/build/main/assets/icons/avatar-arrow-down.svg +0 -3
- package/build/main/assets/icons/avatar-arrow-up.svg +0 -3
- package/build/main/assets/icons/avatar-loader.svg +0 -3
- package/build/main/assets/icons/button-loader.svg +0 -3
- package/build/main/assets/icons/calendar-arrow-next.svg +0 -3
- package/build/main/assets/icons/calendar-arrow-prev.svg +0 -3
- package/build/main/assets/icons/check-mark-square.svg +0 -4
- package/build/main/assets/icons/check-mark.svg +0 -4
- package/build/main/assets/icons/chip-info.svg +0 -5
- package/build/main/assets/icons/clear.svg +0 -3
- package/build/main/assets/icons/close-modal.svg +0 -3
- package/build/main/assets/icons/close-stories.svg +0 -4
- package/build/main/assets/icons/close.svg +0 -3
- package/build/main/assets/icons/contact-info.svg +0 -5
- package/build/main/assets/icons/corporate-user.svg +0 -3
- package/build/main/assets/icons/crown.svg +0 -5
- package/build/main/assets/icons/delete-chip.svg +0 -3
- package/build/main/assets/icons/distribution.svg +0 -12
- package/build/main/assets/icons/doc-small.svg +0 -11
- package/build/main/assets/icons/doc.svg +0 -11
- package/build/main/assets/icons/error.svg +0 -5
- package/build/main/assets/icons/external-link.svg +0 -3
- package/build/main/assets/icons/eye-off.svg +0 -5
- package/build/main/assets/icons/eye-on.svg +0 -4
- package/build/main/assets/icons/file-small.svg +0 -11
- package/build/main/assets/icons/file.svg +0 -11
- package/build/main/assets/icons/global-address-book-user.svg +0 -4
- package/build/main/assets/icons/group.svg +0 -3
- package/build/main/assets/icons/indeterminate-check-mark-square.svg +0 -4
- package/build/main/assets/icons/info.svg +0 -5
- package/build/main/assets/icons/input-arrow-down.svg +0 -3
- package/build/main/assets/icons/input-arrow-up.svg +0 -3
- package/build/main/assets/icons/loader.svg +0 -3
- package/build/main/assets/icons/logout.svg +0 -4
- package/build/main/assets/icons/magnifying-glass.svg +0 -3
- package/build/main/assets/icons/mail.svg +0 -3
- package/build/main/assets/icons/meeting-room.svg +0 -3
- package/build/main/assets/icons/more.svg +0 -3
- package/build/main/assets/icons/my-contacts-user.svg +0 -3
- package/build/main/assets/icons/notification-close.svg +0 -3
- package/build/main/assets/icons/notification-failure.svg +0 -3
- package/build/main/assets/icons/notification-info.svg +0 -5
- package/build/main/assets/icons/notification-success.svg +0 -4
- package/build/main/assets/icons/order.svg +0 -6
- package/build/main/assets/icons/pdf-small.svg +0 -11
- package/build/main/assets/icons/pdf.svg +0 -11
- package/build/main/assets/icons/play-small.svg +0 -3
- package/build/main/assets/icons/play.svg +0 -3
- package/build/main/assets/icons/plus.svg +0 -4
- package/build/main/assets/icons/ppt-small.svg +0 -11
- package/build/main/assets/icons/ppt.svg +0 -11
- package/build/main/assets/icons/private.svg +0 -12
- package/build/main/assets/icons/refresh.svg +0 -3
- package/build/main/assets/icons/search.svg +0 -3
- package/build/main/assets/icons/story-loader.svg +0 -3
- package/build/main/assets/icons/tick.svg +0 -10
- package/build/main/assets/icons/trash.svg +0 -3
- package/build/main/assets/icons/txt-small.svg +0 -11
- package/build/main/assets/icons/txt.svg +0 -11
- package/build/main/assets/icons/unread-mails.svg +0 -4
- package/build/main/assets/icons/warning-avatar.svg +0 -4
- package/build/main/assets/icons/xls-small.svg +0 -11
- package/build/main/assets/icons/xls.svg +0 -11
- package/build/main/assets/storybook/index.d.ts +0 -24
- package/build/main/assets/storybook/index.js +0 -25
- package/build/main/assets/storybook/index.js.map +0 -1
- package/build/main/constants/constants.d.ts +0 -197
- package/build/main/constants/constants.js +0 -217
- package/build/main/constants/constants.js.map +0 -1
- package/build/main/constants/index.d.ts +0 -2
- package/build/main/constants/index.js +0 -3
- package/build/main/constants/index.js.map +0 -1
- package/build/main/constants/types.d.ts +0 -58
- package/build/main/constants/types.js +0 -2
- package/build/main/constants/types.js.map +0 -1
- package/build/main/helpers/index.d.ts +0 -31
- package/build/main/helpers/index.js +0 -183
- package/build/main/helpers/index.js.map +0 -1
- package/build/main/hooks/useLongTap.d.ts +0 -12
- package/build/main/hooks/useLongTap.js +0 -29
- package/build/main/hooks/useLongTap.js.map +0 -1
- package/build/main/hooks/useModal.d.ts +0 -22
- package/build/main/hooks/useModal.js +0 -61
- package/build/main/hooks/useModal.js.map +0 -1
- package/build/main/index.d.ts +0 -36
- package/build/main/index.js +0 -37
- package/build/main/index.js.map +0 -1
- package/build/main/styles/index.d.ts +0 -1
- package/build/main/styles/index.js +0 -2
- package/build/main/styles/index.js.map +0 -1
- package/build/main/styles/main.js +0 -0
- package/build/main/styles/styles.scss +0 -14
- package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +0 -4
- package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -53
- package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
- package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
- package/build/main//321/201omponents/ActionModal/index.js +0 -2
- package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
- package/build/main//321/201omponents/ActionModal/types.d.ts +0 -23
- package/build/main//321/201omponents/ActionModal/types.js +0 -2
- package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -146
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
- package/build/main//321/201omponents/AttachedFile/index.js +0 -2
- package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -22
- package/build/main//321/201omponents/AttachedFile/types.js +0 -2
- package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
- package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
- package/build/main//321/201omponents/Avatar/Avatar.js +0 -226
- package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
- package/build/main//321/201omponents/Avatar/index.d.ts +0 -1
- package/build/main//321/201omponents/Avatar/index.js +0 -2
- package/build/main//321/201omponents/Avatar/index.js.map +0 -1
- package/build/main//321/201omponents/Avatar/types.d.ts +0 -60
- package/build/main//321/201omponents/Avatar/types.js +0 -29
- package/build/main//321/201omponents/Avatar/types.js.map +0 -1
- package/build/main//321/201omponents/Button/Button.d.ts +0 -4
- package/build/main//321/201omponents/Button/Button.js +0 -62
- package/build/main//321/201omponents/Button/Button.js.map +0 -1
- package/build/main//321/201omponents/Button/index.d.ts +0 -1
- package/build/main//321/201omponents/Button/index.js +0 -2
- package/build/main//321/201omponents/Button/index.js.map +0 -1
- package/build/main//321/201omponents/Button/types.d.ts +0 -24
- package/build/main//321/201omponents/Button/types.js +0 -12
- package/build/main//321/201omponents/Button/types.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
- package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
- package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
- package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
- package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
- package/build/main//321/201omponents/CachedImage/index.js +0 -2
- package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/types.d.ts +0 -10
- package/build/main//321/201omponents/CachedImage/types.js +0 -2
- package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
- package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
- package/build/main//321/201omponents/Calendar/Calendar.js +0 -154
- package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
- package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
- package/build/main//321/201omponents/Calendar/index.js +0 -2
- package/build/main//321/201omponents/Calendar/index.js.map +0 -1
- package/build/main//321/201omponents/Calendar/types.d.ts +0 -15
- package/build/main//321/201omponents/Calendar/types.js +0 -2
- package/build/main//321/201omponents/Calendar/types.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -47
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -42
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -64
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
- package/build/main//321/201omponents/Charts/colors.d.ts +0 -3
- package/build/main//321/201omponents/Charts/colors.js +0 -4
- package/build/main//321/201omponents/Charts/colors.js.map +0 -1
- package/build/main//321/201omponents/Charts/constants.d.ts +0 -42
- package/build/main//321/201omponents/Charts/constants.js +0 -42
- package/build/main//321/201omponents/Charts/constants.js.map +0 -1
- package/build/main//321/201omponents/Charts/helpers.d.ts +0 -17
- package/build/main//321/201omponents/Charts/helpers.js +0 -73
- package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
- package/build/main//321/201omponents/Charts/index.d.ts +0 -3
- package/build/main//321/201omponents/Charts/index.js +0 -4
- package/build/main//321/201omponents/Charts/index.js.map +0 -1
- package/build/main//321/201omponents/Charts/types.d.ts +0 -89
- package/build/main//321/201omponents/Charts/types.js +0 -2
- package/build/main//321/201omponents/Charts/types.js.map +0 -1
- package/build/main//321/201omponents/Charts/useEvents.d.ts +0 -5
- package/build/main//321/201omponents/Charts/useEvents.js +0 -45
- package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
- package/build/main//321/201omponents/Charts/usePieEvents.d.ts +0 -6
- package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
- package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -8
- package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -48
- package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
- package/build/main//321/201omponents/Checkbox/index.js +0 -2
- package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/types.d.ts +0 -14
- package/build/main//321/201omponents/Checkbox/types.js +0 -2
- package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
- package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
- package/build/main//321/201omponents/Chip/Chip.js +0 -118
- package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
- package/build/main//321/201omponents/Chip/index.d.ts +0 -1
- package/build/main//321/201omponents/Chip/index.js +0 -2
- package/build/main//321/201omponents/Chip/index.js.map +0 -1
- package/build/main//321/201omponents/Chip/types.d.ts +0 -27
- package/build/main//321/201omponents/Chip/types.js +0 -2
- package/build/main//321/201omponents/Chip/types.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -63
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
- package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
- package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -28
- package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
- package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -81
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
- package/build/main//321/201omponents/ContextMenu/index.js +0 -2
- package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -34
- package/build/main//321/201omponents/ContextMenu/types.js +0 -2
- package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -12
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -248
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
- package/build/main//321/201omponents/CustomSelect/index.js +0 -2
- package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
- package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -70
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -69
- package/build/main//321/201omponents/CustomSelect/types.js +0 -2
- package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -58
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
- package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
- package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
- package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
- package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
- package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
- package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
- package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +0 -4
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +0 -222
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/index.d.ts +0 -1
- package/build/main//321/201omponents/DraggablePopup/index.js +0 -2
- package/build/main//321/201omponents/DraggablePopup/index.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/types.d.ts +0 -90
- package/build/main//321/201omponents/DraggablePopup/types.js +0 -2
- package/build/main//321/201omponents/DraggablePopup/types.js.map +0 -1
- package/build/main//321/201omponents/Error/Error.d.ts +0 -4
- package/build/main//321/201omponents/Error/Error.js +0 -23
- package/build/main//321/201omponents/Error/Error.js.map +0 -1
- package/build/main//321/201omponents/Error/index.d.ts +0 -1
- package/build/main//321/201omponents/Error/index.js +0 -2
- package/build/main//321/201omponents/Error/index.js.map +0 -1
- package/build/main//321/201omponents/Error/types.d.ts +0 -10
- package/build/main//321/201omponents/Error/types.js +0 -2
- package/build/main//321/201omponents/Error/types.js.map +0 -1
- package/build/main//321/201omponents/Flex/Flex.d.ts +0 -2
- package/build/main//321/201omponents/Flex/Flex.js +0 -35
- package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
- package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +0 -5
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
- package/build/main//321/201omponents/Flex/HFlex/index.d.ts +0 -1
- package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
- package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +0 -5
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
- package/build/main//321/201omponents/Flex/VFlex/index.d.ts +0 -1
- package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
- package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/index.d.ts +0 -3
- package/build/main//321/201omponents/Flex/index.js +0 -4
- package/build/main//321/201omponents/Flex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/types.d.ts +0 -19
- package/build/main//321/201omponents/Flex/types.js +0 -2
- package/build/main//321/201omponents/Flex/types.js.map +0 -1
- package/build/main//321/201omponents/Header/Header.d.ts +0 -5
- package/build/main//321/201omponents/Header/Header.js +0 -125
- package/build/main//321/201omponents/Header/Header.js.map +0 -1
- package/build/main//321/201omponents/Header/index.d.ts +0 -1
- package/build/main//321/201omponents/Header/index.js +0 -2
- package/build/main//321/201omponents/Header/index.js.map +0 -1
- package/build/main//321/201omponents/Header/types.d.ts +0 -47
- package/build/main//321/201omponents/Header/types.js +0 -2
- package/build/main//321/201omponents/Header/types.js.map +0 -1
- package/build/main//321/201omponents/Input/Input.d.ts +0 -4
- package/build/main//321/201omponents/Input/Input.js +0 -182
- package/build/main//321/201omponents/Input/Input.js.map +0 -1
- package/build/main//321/201omponents/Input/index.d.ts +0 -1
- package/build/main//321/201omponents/Input/index.js +0 -2
- package/build/main//321/201omponents/Input/index.js.map +0 -1
- package/build/main//321/201omponents/Input/types.d.ts +0 -27
- package/build/main//321/201omponents/Input/types.js +0 -2
- package/build/main//321/201omponents/Input/types.js.map +0 -1
- package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
- package/build/main//321/201omponents/ListItem/ListItem.js +0 -203
- package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
- package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
- package/build/main//321/201omponents/ListItem/index.js +0 -2
- package/build/main//321/201omponents/ListItem/index.js.map +0 -1
- package/build/main//321/201omponents/ListItem/types.d.ts +0 -41
- package/build/main//321/201omponents/ListItem/types.js +0 -2
- package/build/main//321/201omponents/ListItem/types.js.map +0 -1
- package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
- package/build/main//321/201omponents/Loader/Loader.js +0 -44
- package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
- package/build/main//321/201omponents/Loader/index.d.ts +0 -1
- package/build/main//321/201omponents/Loader/index.js +0 -2
- package/build/main//321/201omponents/Loader/index.js.map +0 -1
- package/build/main//321/201omponents/Loader/types.d.ts +0 -18
- package/build/main//321/201omponents/Loader/types.js +0 -2
- package/build/main//321/201omponents/Loader/types.js.map +0 -1
- package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
- package/build/main//321/201omponents/Modal/Modal.js +0 -259
- package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
- package/build/main//321/201omponents/Modal/index.d.ts +0 -1
- package/build/main//321/201omponents/Modal/index.js +0 -2
- package/build/main//321/201omponents/Modal/index.js.map +0 -1
- package/build/main//321/201omponents/Modal/types.d.ts +0 -41
- package/build/main//321/201omponents/Modal/types.js +0 -2
- package/build/main//321/201omponents/Modal/types.js.map +0 -1
- package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
- package/build/main//321/201omponents/Notification/Notification.js +0 -199
- package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
- package/build/main//321/201omponents/Notification/index.d.ts +0 -1
- package/build/main//321/201omponents/Notification/index.js +0 -2
- package/build/main//321/201omponents/Notification/index.js.map +0 -1
- package/build/main//321/201omponents/Notification/types.d.ts +0 -44
- package/build/main//321/201omponents/Notification/types.js +0 -2
- package/build/main//321/201omponents/Notification/types.js.map +0 -1
- package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
- package/build/main//321/201omponents/Profile/Profile.js +0 -42
- package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
- package/build/main//321/201omponents/Profile/index.d.ts +0 -1
- package/build/main//321/201omponents/Profile/index.js +0 -2
- package/build/main//321/201omponents/Profile/index.js.map +0 -1
- package/build/main//321/201omponents/Profile/types.d.ts +0 -14
- package/build/main//321/201omponents/Profile/types.js +0 -2
- package/build/main//321/201omponents/Profile/types.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
- package/build/main//321/201omponents/ProgressBar/index.js +0 -2
- package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -7
- package/build/main//321/201omponents/ProgressBar/types.js +0 -2
- package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
- package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -33
- package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
- package/build/main//321/201omponents/RadioButton/index.js +0 -2
- package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/types.d.ts +0 -12
- package/build/main//321/201omponents/RadioButton/types.js +0 -2
- package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -5
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -140
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
- package/build/main//321/201omponents/ScrollBar/index.js +0 -2
- package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -24
- package/build/main//321/201omponents/ScrollBar/types.js +0 -2
- package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -4
- package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -59
- package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
- package/build/main//321/201omponents/Skeleton/index.js +0 -2
- package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/types.d.ts +0 -17
- package/build/main//321/201omponents/Skeleton/types.js +0 -2
- package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
- package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
- package/build/main//321/201omponents/Stories/Stories.js +0 -338
- package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
- package/build/main//321/201omponents/Stories/index.d.ts +0 -1
- package/build/main//321/201omponents/Stories/index.js +0 -2
- package/build/main//321/201omponents/Stories/index.js.map +0 -1
- package/build/main//321/201omponents/Stories/types.d.ts +0 -71
- package/build/main//321/201omponents/Stories/types.js +0 -16
- package/build/main//321/201omponents/Stories/types.js.map +0 -1
- package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
- package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
- package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
- package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
- package/build/main//321/201omponents/Switcher/index.js +0 -2
- package/build/main//321/201omponents/Switcher/index.js.map +0 -1
- package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
- package/build/main//321/201omponents/Switcher/types.js +0 -2
- package/build/main//321/201omponents/Switcher/types.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
- package/build/main//321/201omponents/SyncLoader/index.js +0 -2
- package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -8
- package/build/main//321/201omponents/SyncLoader/types.js +0 -2
- package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
- package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
- package/build/main//321/201omponents/Textarea/Textarea.js +0 -59
- package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
- package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
- package/build/main//321/201omponents/Textarea/index.js +0 -2
- package/build/main//321/201omponents/Textarea/index.js.map +0 -1
- package/build/main//321/201omponents/Textarea/types.d.ts +0 -13
- package/build/main//321/201omponents/Textarea/types.js +0 -2
- package/build/main//321/201omponents/Textarea/types.js.map +0 -1
- package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
- package/build/main//321/201omponents/Toggle/Toggle.js +0 -35
- package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
- package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
- package/build/main//321/201omponents/Toggle/index.js +0 -2
- package/build/main//321/201omponents/Toggle/index.js.map +0 -1
- package/build/main//321/201omponents/Toggle/types.d.ts +0 -12
- package/build/main//321/201omponents/Toggle/types.js +0 -2
- package/build/main//321/201omponents/Toggle/types.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -88
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -129
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +0 -3
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -137
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -80
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +0 -44
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -5
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -549
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/constants.d.ts +0 -8
- package/build/main//321/201omponents/UserDropdown/constants.js +0 -10
- package/build/main//321/201omponents/UserDropdown/constants.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -105
- package/build/main//321/201omponents/UserDropdown/helpers.js +0 -143
- package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
- package/build/main//321/201omponents/UserDropdown/index.js +0 -2
- package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
- package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -69
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -269
- package/build/main//321/201omponents/UserDropdown/types.js +0 -9
- package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
- package/build/main//321/201omponents/types.d.ts +0 -2
- package/build/main//321/201omponents/types.js +0 -2
- package/build/main//321/201omponents/types.js.map +0 -1
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IActionModalProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
declare const ActionModal: ({ isModalOpen, isClosableOutside, isCloseIconHidden, title, buttonName, confirmButtonFunction, cancelButtonFunction, platform, fontFamily, placeholder, defaultValue, isWaitingResponse, isButtonDisabled, popupClassName, className, popupStyles, styles, titleStyles, iconColor, buttonWidth, backgroundColor, }: IActionModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default ActionModal;
|
|
@@ -1,53 +0,0 @@
|
|
|
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 { useEffect, useRef, useState } from 'react';
|
|
14
|
-
import Popup from 'reactjs-popup';
|
|
15
|
-
import classNames from 'classnames';
|
|
16
|
-
import Button from '../Button';
|
|
17
|
-
import Input from '../Input';
|
|
18
|
-
import { generateClassNames, generateColor, generateFontFamilyStyle, generateIsCloseIconHidden, renderCloseIconSpace } from '../../helpers';
|
|
19
|
-
import { COLORS, EVENT_LISTENER_TYPES, PLATFORM } from '../../constants';
|
|
20
|
-
import { ReactComponent as CloseIcon } from '../../assets/icons/close-modal.svg';
|
|
21
|
-
import '../../styles/styles.scss';
|
|
22
|
-
var ActionModal = function (_a) {
|
|
23
|
-
var isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? true : _b, isCloseIconHidden = _a.isCloseIconHidden, title = _a.title, buttonName = _a.buttonName, confirmButtonFunction = _a.confirmButtonFunction, cancelButtonFunction = _a.cancelButtonFunction, _c = _a.platform, platform = _c === void 0 ? PLATFORM.web : _c, fontFamily = _a.fontFamily, placeholder = _a.placeholder, _d = _a.defaultValue, defaultValue = _d === void 0 ? '' : _d, isWaitingResponse = _a.isWaitingResponse, isButtonDisabled = _a.isButtonDisabled, popupClassName = _a.popupClassName, className = _a.className, popupStyles = _a.popupStyles, styles = _a.styles, titleStyles = _a.titleStyles, iconColor = _a.iconColor, _e = _a.buttonWidth, buttonWidth = _e === void 0 ? 100 : _e, backgroundColor = _a.backgroundColor;
|
|
24
|
-
var isCloseIconInvisible = generateIsCloseIconHidden(platform, isCloseIconHidden);
|
|
25
|
-
var ref = useRef(null);
|
|
26
|
-
var titleRef = useRef(null);
|
|
27
|
-
var closeIconRef = useRef(null);
|
|
28
|
-
var _f = useState(defaultValue), value = _f[0], setValue = _f[1];
|
|
29
|
-
var popupOverlayStyle = __assign({ '--action-modal-background': generateColor(backgroundColor, COLORS.colorBgBlackoutTransparent) }, popupStyles);
|
|
30
|
-
var handleConfirmClick = function () {
|
|
31
|
-
confirmButtonFunction(value);
|
|
32
|
-
setValue('');
|
|
33
|
-
};
|
|
34
|
-
var handleCloseModal = function () {
|
|
35
|
-
setValue('');
|
|
36
|
-
cancelButtonFunction();
|
|
37
|
-
};
|
|
38
|
-
var handleChange = function (value) { return setValue(value); };
|
|
39
|
-
useEffect(function () {
|
|
40
|
-
var checkIfClickedOutside = function (_a) {
|
|
41
|
-
var target = _a.target;
|
|
42
|
-
var refCurrent = ref.current;
|
|
43
|
-
if (isModalOpen && isClosableOutside && refCurrent && !refCurrent.contains(target) && !(value === null || value === void 0 ? void 0 : value.length))
|
|
44
|
-
handleCloseModal();
|
|
45
|
-
};
|
|
46
|
-
document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true);
|
|
47
|
-
return function () { return document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, checkIfClickedOutside, true); };
|
|
48
|
-
// eslint-disable-next-line
|
|
49
|
-
}, [isModalOpen, isClosableOutside, cancelButtonFunction, value]);
|
|
50
|
-
return (_jsx(Popup, __assign({ className: classNames('action-modal', popupClassName), overlayStyle: popupOverlayStyle, closeOnDocumentClick: isClosableOutside, modal: true, open: isModalOpen, closeOnEscape: isClosableOutside, onClose: handleCloseModal }, { children: _jsx("div", __assign({ ref: ref, className: classNames('smartapp-action-modal', className), style: __assign(__assign({}, generateFontFamilyStyle(fontFamily)), styles) }, { children: _jsxs("div", __assign({ className: "smartapp-action-modal__content" }, { children: [_jsxs("div", { children: [!isCloseIconInvisible && renderCloseIconSpace({ elementRef: titleRef, closeIconRef: closeIconRef }), _jsx("p", __assign({ ref: titleRef, className: generateClassNames({ className: 'smartapp-action-modal__content--title', delimiter: '__', additionalClassName: platform }), style: titleStyles }, { children: title }))] }), !isCloseIconInvisible && (_jsx("div", __assign({ ref: closeIconRef, onClick: handleCloseModal, className: "smartapp-close-modal-icon" }, { children: _jsx(CloseIcon, { style: { color: generateColor(iconColor) } }) }))), _jsx("div", __assign({ className: "smartapp-action-modal__content--input" }, { children: _jsx(Input, { fontFamily: fontFamily, defaultValue: value, placeholder: placeholder, disabled: isWaitingResponse, onChange: handleChange }) })), _jsx("div", __assign({ className: "smartapp-action-modal__content--buttons" }, { children: _jsx(Button, { fontFamily: fontFamily, width: buttonWidth, isWaitingResponse: isWaitingResponse, disabled: isButtonDisabled, title: buttonName, onClick: handleConfirmClick }) }))] })) })) })));
|
|
51
|
-
};
|
|
52
|
-
export default ActionModal;
|
|
53
|
-
//# sourceMappingURL=ActionModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ActionModal.js","sourceRoot":"","sources":["../../../../src/сomponents/ActionModal/ActionModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACzE,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAC3I,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,QAAQ,EAAW,MAAM,iBAAiB,CAAA;AAEjF,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,oCAAoC,CAAA;AAChF,OAAO,0BAA0B,CAAA;AAEjC,IAAM,WAAW,GAAG,UAAC,EAsBD;QArBlB,WAAW,iBAAA,EACX,yBAAwB,EAAxB,iBAAiB,mBAAG,IAAI,KAAA,EACxB,iBAAi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AG,EAAE,QAAQ,EACb,SAAS,EAAE,kBAAkB,CAAC,EAAE,SAAS,EAAE,uCAAuC,EAAE,SAAS,EAAE,IAAI,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAC,EACrI,KAAK,EAAE,WAAW,gBAEjB,KAAK,IACJ,IACA,EACL,CAAC,oBAAoB,IAAI,CACxB,uBAAK,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAC,2BAA2B,gBACtF,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,EAAE,GAAI,IACrD,CACP,EACD,uBAAK,SAAS,EAAC,uCAAuC,gBACpD,KAAC,KAAK,IAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,iBAAiB,EAAE,QAAQ,EAAE,YAAY,GAAI,IACjI,EACN,uBAAK,SAAS,EAAC,yCAAyC,gBACtD,KAAC,MAAM,IACL,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,WAAW,EAClB,iBAAiB,EAAE,iBAAiB,EACpC,QAAQ,EAAE,gBAAgB,EAC1B,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,kBAAkB,GAC3B,IACE,KACF,IACF,IACA,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ActionModal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ActionModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { IFontFamilyProps, IPlatformProps, TStyles } from '../../constants';
|
|
2
|
-
import { IntRange } from '../types';
|
|
3
|
-
export interface IActionModalProps extends IPlatformProps, IFontFamilyProps {
|
|
4
|
-
isModalOpen: boolean;
|
|
5
|
-
isClosableOutside?: boolean;
|
|
6
|
-
isCloseIconHidden?: boolean;
|
|
7
|
-
title: string;
|
|
8
|
-
buttonName: string;
|
|
9
|
-
confirmButtonFunction: (str: string) => void;
|
|
10
|
-
cancelButtonFunction: () => void;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
defaultValue?: string;
|
|
13
|
-
isWaitingResponse?: boolean;
|
|
14
|
-
isButtonDisabled?: boolean;
|
|
15
|
-
popupClassName?: string;
|
|
16
|
-
className?: string;
|
|
17
|
-
popupStyles?: TStyles;
|
|
18
|
-
styles?: TStyles;
|
|
19
|
-
titleStyles?: TStyles;
|
|
20
|
-
iconColor?: string;
|
|
21
|
-
buttonWidth?: IntRange<1, 101>;
|
|
22
|
-
backgroundColor?: string;
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ActionModal/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IAttachedFileProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
export declare enum DISPLAY_SIZE {
|
|
4
|
-
small = "small",
|
|
5
|
-
normal = "normal"
|
|
6
|
-
}
|
|
7
|
-
declare const AttachedFile: ({ id, fontFamily, language, fileName, weight, weightType, isSpaceBetween, isRemovable, isDisabled, isLoading, width, displaySize, className, styles, removeColor, fileIcon, mediaFilePreview, onClick, onRemove, }: IAttachedFileProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default AttachedFile;
|
|
@@ -1,146 +0,0 @@
|
|
|
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 _a, _b, _c;
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { useEffect, useLayoutEffect, useRef } from 'react';
|
|
15
|
-
import classNames from 'classnames';
|
|
16
|
-
import { isEmpty } from 'lodash';
|
|
17
|
-
import { extractFileExtensionRegex, generateColor, generateFileIcon, generateFontFamilyStyle } from '../../helpers';
|
|
18
|
-
import { EVENT_LISTENER_TYPES, FIT_CONTENT, LANGUAGES, VIDEO_FORMATS } from '../../constants';
|
|
19
|
-
import { ReactComponent as LoaderIcon } from '../../assets/icons/attachment-loader.svg';
|
|
20
|
-
import { ReactComponent as RemoveIcon } from '../../assets/icons/close.svg';
|
|
21
|
-
import { ReactComponent as PlaySmallIcon } from '../../assets/icons/play-small.svg';
|
|
22
|
-
import { ReactComponent as PlayIcon } from '../../assets/icons/play.svg';
|
|
23
|
-
import '../../styles/styles.scss';
|
|
24
|
-
export var DISPLAY_SIZE;
|
|
25
|
-
(function (DISPLAY_SIZE) {
|
|
26
|
-
DISPLAY_SIZE["small"] = "small";
|
|
27
|
-
DISPLAY_SIZE["normal"] = "normal";
|
|
28
|
-
})(DISPLAY_SIZE || (DISPLAY_SIZE = {}));
|
|
29
|
-
var ATTACHED_FILE_PADDINGS = '20px';
|
|
30
|
-
var SMALL_ATTACHED_FILE_PADDINGS = '16px';
|
|
31
|
-
var DEFAULT_LINE_HEIGHT = '16';
|
|
32
|
-
var ELLIPSIS = '...';
|
|
33
|
-
var PRESSED_CLASS_NAME = 'smartapp-attached-file__pressed';
|
|
34
|
-
var BYTES_TEXT = (_a = {},
|
|
35
|
-
_a[LANGUAGES.ru] = 'байт',
|
|
36
|
-
_a[LANGUAGES.en] = 'bytes',
|
|
37
|
-
_a[LANGUAGES.de] = 'Byte',
|
|
38
|
-
_a[LANGUAGES.es] = 'byte',
|
|
39
|
-
_a[LANGUAGES.fr] = 'Octet',
|
|
40
|
-
_a[LANGUAGES.ar] = 'bytes',
|
|
41
|
-
_a[LANGUAGES.ms] = 'bait',
|
|
42
|
-
_a[LANGUAGES.tr] = 'bayt',
|
|
43
|
-
_a[LANGUAGES.id] = 'bytes',
|
|
44
|
-
_a[LANGUAGES.uz] = 'bayt',
|
|
45
|
-
_a);
|
|
46
|
-
var KB_TEXT = (_b = {},
|
|
47
|
-
_b[LANGUAGES.ru] = 'КБ',
|
|
48
|
-
_b[LANGUAGES.en] = 'KB',
|
|
49
|
-
_b[LANGUAGES.de] = 'kB',
|
|
50
|
-
_b[LANGUAGES.es] = 'KB',
|
|
51
|
-
_b[LANGUAGES.fr] = 'Ko',
|
|
52
|
-
_b[LANGUAGES.ar] = 'KB',
|
|
53
|
-
_b[LANGUAGES.ms] = 'KB',
|
|
54
|
-
_b[LANGUAGES.tr] = 'KB',
|
|
55
|
-
_b[LANGUAGES.id] = 'KB',
|
|
56
|
-
_b[LANGUAGES.uz] = 'KB',
|
|
57
|
-
_b);
|
|
58
|
-
var MB_TEXT = (_c = {},
|
|
59
|
-
_c[LANGUAGES.ru] = 'МБ',
|
|
60
|
-
_c[LANGUAGES.en] = 'MB',
|
|
61
|
-
_c[LANGUAGES.de] = 'MB',
|
|
62
|
-
_c[LANGUAGES.es] = 'MB',
|
|
63
|
-
_c[LANGUAGES.fr] = 'Mo',
|
|
64
|
-
_c[LANGUAGES.ar] = 'MB',
|
|
65
|
-
_c[LANGUAGES.ms] = 'MB',
|
|
66
|
-
_c[LANGUAGES.tr] = 'MB',
|
|
67
|
-
_c[LANGUAGES.id] = 'MB',
|
|
68
|
-
_c[LANGUAGES.uz] = 'MB',
|
|
69
|
-
_c);
|
|
70
|
-
var generateFileSize = function (_a) {
|
|
71
|
-
var weight = _a.weight, weightType = _a.weightType, language = _a.language;
|
|
72
|
-
var KB = 1024;
|
|
73
|
-
var MB = 1024 * 1024;
|
|
74
|
-
if (weightType)
|
|
75
|
-
return "".concat(weight, " ").concat(weightType);
|
|
76
|
-
if (weight < KB)
|
|
77
|
-
return "".concat(Math.round(weight), " ").concat(BYTES_TEXT[language]);
|
|
78
|
-
if (weight < MB)
|
|
79
|
-
return "".concat(Math.round(weight / KB), " ").concat(KB_TEXT[language]);
|
|
80
|
-
return "".concat((weight / MB).toFixed(1), " ").concat(MB_TEXT[language]);
|
|
81
|
-
};
|
|
82
|
-
var AttachedFile = function (_a) {
|
|
83
|
-
var id = _a.id, fontFamily = _a.fontFamily, _b = _a.language, language = _b === void 0 ? LANGUAGES.ru : _b, fileName = _a.fileName, weight = _a.weight, weightType = _a.weightType, _c = _a.isSpaceBetween, isSpaceBetween = _c === void 0 ? false : _c, _d = _a.isRemovable, isRemovable = _d === void 0 ? false : _d, _e = _a.isDisabled, isDisabled = _e === void 0 ? false : _e, _f = _a.isLoading, isLoading = _f === void 0 ? false : _f, width = _a.width, _g = _a.displaySize, displaySize = _g === void 0 ? DISPLAY_SIZE.normal : _g, className = _a.className, styles = _a.styles, removeColor = _a.removeColor, fileIcon = _a.fileIcon, mediaFilePreview = _a.mediaFilePreview, onClick = _a.onClick, onRemove = _a.onRemove;
|
|
84
|
-
var attachedFileRef = useRef(null);
|
|
85
|
-
var fileNameRef = useRef(null);
|
|
86
|
-
var fileSize = generateFileSize({ weight: weight, weightType: weightType, language: language });
|
|
87
|
-
var fileExtension = extractFileExtensionRegex(fileName);
|
|
88
|
-
var isMediaFilePreview = !isEmpty(mediaFilePreview);
|
|
89
|
-
var isVideoFilePreview = VIDEO_FORMATS.includes(fileExtension);
|
|
90
|
-
var isNormalDisplaySize = displaySize === DISPLAY_SIZE.normal;
|
|
91
|
-
var attachedFilePaddings = isNormalDisplaySize ? ATTACHED_FILE_PADDINGS : SMALL_ATTACHED_FILE_PADDINGS;
|
|
92
|
-
var attachedFileClassName = classNames('smartapp-attached-file', "smartapp-attached-file__".concat(displaySize), {
|
|
93
|
-
'smartapp-attached-file__clickable': onClick,
|
|
94
|
-
'smartapp-attached-file__disabled': isDisabled,
|
|
95
|
-
'smartapp-attached-file__loading': isLoading,
|
|
96
|
-
}, className);
|
|
97
|
-
var attachedFileStyles = __assign(__assign({ '--attached-file-width': width ? "calc(".concat(width, "% - ").concat(attachedFilePaddings, ")") : FIT_CONTENT }, generateFontFamilyStyle(fontFamily)), styles);
|
|
98
|
-
var handleMouseDown = function () { var _a; return (_a = attachedFileRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(PRESSED_CLASS_NAME); };
|
|
99
|
-
var handleMouseUp = function () { var _a; return (_a = attachedFileRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(PRESSED_CLASS_NAME); };
|
|
100
|
-
var handleAttachmentClick = function () { return !isLoading && !isDisabled && (onClick === null || onClick === void 0 ? void 0 : onClick(id)); };
|
|
101
|
-
var handleAttachmentRemove = function (event) {
|
|
102
|
-
event.stopPropagation();
|
|
103
|
-
onRemove === null || onRemove === void 0 ? void 0 : onRemove(id);
|
|
104
|
-
};
|
|
105
|
-
var renderFileIcon = function () { return (mediaFilePreview ? _jsx("img", { src: mediaFilePreview, alt: "preview" }) : generateFileIcon(fileName, displaySize)); };
|
|
106
|
-
var renderLoaderIcon = function () {
|
|
107
|
-
return isLoading && (_jsx("div", __assign({ className: classNames('smartapp-attached-file__icon--loader', {
|
|
108
|
-
'smartapp-attached-file__icon--loader__image-preview': isMediaFilePreview && !isVideoFilePreview,
|
|
109
|
-
}) }, { children: _jsx(LoaderIcon, {}) })));
|
|
110
|
-
};
|
|
111
|
-
var renderRemoveIcon = function () {
|
|
112
|
-
return isRemovable && (_jsx("div", __assign({ onClick: handleAttachmentRemove, className: "smartapp-attached-file__value--close-icon" }, { children: _jsx(RemoveIcon, { style: { color: generateColor(removeColor) } }) })));
|
|
113
|
-
};
|
|
114
|
-
var renderPlayIcon = function () { return !isLoading && (isNormalDisplaySize ? _jsx(PlayIcon, {}) : _jsx(PlaySmallIcon, {})); };
|
|
115
|
-
useEffect(function () {
|
|
116
|
-
window.addEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp);
|
|
117
|
-
return function () { return window.removeEventListener(EVENT_LISTENER_TYPES.mouseup, handleMouseUp); };
|
|
118
|
-
}, []);
|
|
119
|
-
useLayoutEffect(function () {
|
|
120
|
-
var attachedFileRefCurrent = attachedFileRef.current;
|
|
121
|
-
var fileNameRefCurrent = fileNameRef.current;
|
|
122
|
-
if (!attachedFileRefCurrent || !fileNameRefCurrent)
|
|
123
|
-
return;
|
|
124
|
-
var resizeObserver = new ResizeObserver(function () {
|
|
125
|
-
var fileExtensionLength = fileExtension.length;
|
|
126
|
-
var endIndex = fileExtensionLength ? -fileExtensionLength : fileName.length;
|
|
127
|
-
var truncatedFileName = fileName.slice(0, endIndex);
|
|
128
|
-
fileNameRefCurrent.textContent = fileName;
|
|
129
|
-
var isMultiline = function () {
|
|
130
|
-
var height = fileNameRefCurrent.getBoundingClientRect().height;
|
|
131
|
-
var lineHeight = parseFloat(getComputedStyle(fileNameRefCurrent).lineHeight || DEFAULT_LINE_HEIGHT);
|
|
132
|
-
return height > lineHeight;
|
|
133
|
-
};
|
|
134
|
-
while (isMultiline() && truncatedFileName.length > 0) {
|
|
135
|
-
truncatedFileName = truncatedFileName.slice(0, -1);
|
|
136
|
-
var truncatedFileNameWithoutLastSpace = truncatedFileName.replace(/\s+$/, '');
|
|
137
|
-
fileNameRefCurrent.textContent = "".concat(truncatedFileNameWithoutLastSpace).concat(ELLIPSIS).concat(fileExtension);
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
resizeObserver.observe(attachedFileRefCurrent);
|
|
141
|
-
return function () { return resizeObserver.disconnect(); };
|
|
142
|
-
}, [fileExtension, fileName, fontFamily]);
|
|
143
|
-
return (_jsxs("div", __assign({ ref: attachedFileRef, style: attachedFileStyles, className: attachedFileClassName, onClick: handleAttachmentClick, onMouseDown: handleMouseDown }, { children: [_jsxs("div", __assign({ className: classNames('smartapp-attached-file__icon', { 'smartapp-attached-file__icon--preview': isMediaFilePreview }) }, { children: [fileIcon || renderFileIcon(), isMediaFilePreview && isVideoFilePreview && _jsx("div", __assign({ className: "smartapp-attached-file__icon--play" }, { children: renderPlayIcon() })), renderLoaderIcon()] })), _jsxs("div", __assign({ className: classNames('smartapp-attached-file__value', { 'smartapp-attached-file__value--justify-space-between': isSpaceBetween }) }, { children: [_jsxs("div", __assign({ className: "smartapp-attached-file__value--info" }, { children: [_jsx("p", __assign({ ref: fileNameRef, className: "smartapp-attached-file__value--info__name" }, { children: fileName })), _jsx("p", __assign({ className: "smartapp-attached-file__value--info__weight" }, { children: fileSize }))] })), renderRemoveIcon()] }))] }), id));
|
|
144
|
-
};
|
|
145
|
-
export default AttachedFile;
|
|
146
|
-
//# sourceMappingURL=AttachedFile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AttachedFile.js","sourceRoot":"","sources":["../../../../src/сomponents/AttachedFile/AttachedFile.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAc,EAAiB,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,yBAAyB,EAAE,aAAa,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AACnH,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,SAAS,EAAmB,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE9G,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,0CAA0C,CAAA;AACvF,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACnF,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,6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AC,2CAA2C,gBACvE,QAAQ,IACP,EACJ,qBAAG,SAAS,EAAC,6CAA6C,gBAAE,QAAQ,IAAK,KACrE,EACL,gBAAgB,EAAE,KACf,MApBD,EAAE,CAqBH,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './AttachedFile';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/AttachedFile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { IFontFamilyProps, ILanguageProps, TStyles } from '../../constants';
|
|
3
|
-
import { IntRange } from '../types';
|
|
4
|
-
export interface IAttachedFileProps extends IFontFamilyProps, ILanguageProps {
|
|
5
|
-
id: string;
|
|
6
|
-
fileName: string;
|
|
7
|
-
weight: number;
|
|
8
|
-
weightType?: string;
|
|
9
|
-
isSpaceBetween?: boolean;
|
|
10
|
-
isRemovable?: boolean;
|
|
11
|
-
isDisabled?: boolean;
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
width?: IntRange<1, 101>;
|
|
14
|
-
displaySize?: 'small' | 'normal';
|
|
15
|
-
className?: string;
|
|
16
|
-
styles?: TStyles;
|
|
17
|
-
removeColor?: string;
|
|
18
|
-
fileIcon?: ReactElement;
|
|
19
|
-
mediaFilePreview?: string;
|
|
20
|
-
onClick?: (fileId: string) => void;
|
|
21
|
-
onRemove?: (fileId: string) => void;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/AttachedFile/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IAvatarProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
declare const Avatar: ({ theme, language, fontFamily, className, styles, avatarRef, isSelected, isHighlighted, isInactive, isSpam, isWarning, isCrown, isEye, isTooltipAvailableOnEye, size, username, initials, avatar, counter, icon, outlineDefaultBackground, outlineDarkBackground, onClick, onMouseDown, }: IAvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default Avatar;
|
|
@@ -1,226 +0,0 @@
|
|
|
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 _a;
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { useEffect, useRef, useState } from 'react';
|
|
15
|
-
import Popup from 'reactjs-popup';
|
|
16
|
-
import classNames from 'classnames';
|
|
17
|
-
import { isString } from 'lodash';
|
|
18
|
-
import { calculatePercentageOfValue, createInitials, generateFontFamilyStyle, isDarkTheme, userNameToColor } from '../../helpers';
|
|
19
|
-
import { COLORS, LANGUAGES, MAX_NUMBER_OF_CHARACTERS_IN_INITIALS, POPUP_ON_EVENT_TYPE, POPUP_VERTICAL_POSITION, THEME, } from '../../constants';
|
|
20
|
-
import { AVATAR_SIZES, AvatarFontSizes } from './types';
|
|
21
|
-
import { ReactComponent as CrownIcon } from '../../assets/icons/crown.svg';
|
|
22
|
-
import { ReactComponent as InfoIcon } from '../../assets/icons/info.svg';
|
|
23
|
-
import { ReactComponent as PrivateIcon } from '../../assets/icons/private.svg';
|
|
24
|
-
import { ReactComponent as TickIcon } from '../../assets/icons/tick.svg';
|
|
25
|
-
import { ReactComponent as WarningIcon } from '../../assets/icons/warning-avatar.svg';
|
|
26
|
-
import '../../styles/styles.scss';
|
|
27
|
-
var PERCENTS;
|
|
28
|
-
(function (PERCENTS) {
|
|
29
|
-
PERCENTS[PERCENTS["pct_5"] = 5] = "pct_5";
|
|
30
|
-
PERCENTS[PERCENTS["pct_8"] = 8] = "pct_8";
|
|
31
|
-
PERCENTS[PERCENTS["pct_10"] = 10] = "pct_10";
|
|
32
|
-
PERCENTS[PERCENTS["pct_15"] = 15] = "pct_15";
|
|
33
|
-
PERCENTS[PERCENTS["pct_25"] = 25] = "pct_25";
|
|
34
|
-
PERCENTS[PERCENTS["pct_40"] = 40] = "pct_40";
|
|
35
|
-
PERCENTS[PERCENTS["pct_50"] = 50] = "pct_50";
|
|
36
|
-
PERCENTS[PERCENTS["pct_57"] = 57] = "pct_57";
|
|
37
|
-
PERCENTS[PERCENTS["pct_60"] = 60] = "pct_60";
|
|
38
|
-
PERCENTS[PERCENTS["pct_62_5"] = 62.5] = "pct_62_5";
|
|
39
|
-
PERCENTS[PERCENTS["pct_65"] = 65] = "pct_65";
|
|
40
|
-
PERCENTS[PERCENTS["pct_75"] = 75] = "pct_75";
|
|
41
|
-
PERCENTS[PERCENTS["pct_90"] = 90] = "pct_90";
|
|
42
|
-
PERCENTS[PERCENTS["pct_100"] = 100] = "pct_100";
|
|
43
|
-
})(PERCENTS || (PERCENTS = {}));
|
|
44
|
-
var AVATAR_OPACITY = 0.5;
|
|
45
|
-
var USER_INITIALS_OPACITY = 0.3;
|
|
46
|
-
var POPUP_APPEARANCE_DELAY = 500;
|
|
47
|
-
var POPUP_HIDDEN_CLASSNAME = 'private-icon-hidden';
|
|
48
|
-
var POPUP_PADDINGS = 16;
|
|
49
|
-
var POPUP_INDENTS = 24; // paddings + margins
|
|
50
|
-
var POPUP_LEFT_OFFSET = 36;
|
|
51
|
-
var CHIP_TOP_PADDING = 7;
|
|
52
|
-
var POPUP_VERTICAL_OFFSET = 4;
|
|
53
|
-
var POPUP_TEXT = (_a = {},
|
|
54
|
-
_a[LANGUAGES.ru] = 'Невозможно отобразить расписание участника',
|
|
55
|
-
_a[LANGUAGES.en] = 'Unable to display the schedule of participant',
|
|
56
|
-
_a[LANGUAGES.de] = 'Der Zeitplan des Teilnehmers kann nicht angezeigt werden',
|
|
57
|
-
_a[LANGUAGES.es] = 'No se puede mostrar el calendario de participantes',
|
|
58
|
-
_a[LANGUAGES.fr] = "Impossible d'afficher l'horaire du participant",
|
|
59
|
-
_a[LANGUAGES.ar] = 'غير قادر على عرض جدول المشاركين',
|
|
60
|
-
_a[LANGUAGES.ms] = 'Tidak dapat memapar jadual peserta',
|
|
61
|
-
_a[LANGUAGES.tr] = 'Katılımcının programı görüntülenemiyor',
|
|
62
|
-
_a[LANGUAGES.id] = 'Tidak dapat menampilkan jadwal peserta',
|
|
63
|
-
_a[LANGUAGES.uz] = 'Ishtirokchi jadvalini ko‘rsatib bo‘lmadi',
|
|
64
|
-
_a);
|
|
65
|
-
var Avatar = function (_a) {
|
|
66
|
-
var _b = _a.theme, theme = _b === void 0 ? THEME.default : _b, _c = _a.language, language = _c === void 0 ? LANGUAGES.ru : _c, fontFamily = _a.fontFamily, className = _a.className, styles = _a.styles, avatarRef = _a.avatarRef, isSelected = _a.isSelected, isHighlighted = _a.isHighlighted, isInactive = _a.isInactive, isSpam = _a.isSpam, isWarning = _a.isWarning, isCrown = _a.isCrown, isEye = _a.isEye, _d = _a.isTooltipAvailableOnEye, isTooltipAvailableOnEye = _d === void 0 ? false : _d, _e = _a.size, size = _e === void 0 ? 44 : _e, _f = _a.username, username = _f === void 0 ? '' : _f, initials = _a.initials, avatar = _a.avatar, _g = _a.counter, counter = _g === void 0 ? 0 : _g, icon = _a.icon, _h = _a.outlineDefaultBackground, outlineDefaultBackground = _h === void 0 ? COLORS.white : _h, _j = _a.outlineDarkBackground, outlineDarkBackground = _j === void 0 ? COLORS.brightBlack : _j, _k = _a.onClick, onClick = _k === void 0 ? function () { return undefined; } : _k, onMouseDown = _a.onMouseDown;
|
|
67
|
-
var popupRef = useRef(null);
|
|
68
|
-
var popupContentRef = useRef(null);
|
|
69
|
-
var avatarLocalRef = useRef(null);
|
|
70
|
-
var _l = useState(-1), popupLeft = _l[0], setPopupLeft = _l[1];
|
|
71
|
-
var _m = useState(-1), popupArrowLeft = _m[0], setPopupArrowLeft = _m[1];
|
|
72
|
-
var _o = useState(-1), popupTop = _o[0], setPopupTop = _o[1];
|
|
73
|
-
var _p = useState(POPUP_VERTICAL_POSITION.top), popupVerticalPosition = _p[0], setPopupVerticalPosition = _p[1];
|
|
74
|
-
var _q = useState(0), popupMaxWidth = _q[0], setPopupMaxWidth = _q[1];
|
|
75
|
-
var _r = useState(null), timeoutId = _r[0], setTimeoutId = _r[1];
|
|
76
|
-
var _s = useState(POPUP_HIDDEN_CLASSNAME), hiddenClassName = _s[0], setHiddenClassName = _s[1];
|
|
77
|
-
var inactiveOpacity = avatar ? AVATAR_OPACITY : USER_INITIALS_OPACITY;
|
|
78
|
-
var outlineBackground = isDarkTheme(theme) ? outlineDarkBackground : outlineDefaultBackground;
|
|
79
|
-
var outlineWidth = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_5, shouldBeRounded: false });
|
|
80
|
-
var generateFontSizeAvatar = function () {
|
|
81
|
-
switch (size) {
|
|
82
|
-
case AVATAR_SIZES.size_16:
|
|
83
|
-
return AvatarFontSizes.xSmall;
|
|
84
|
-
case AVATAR_SIZES.size_20:
|
|
85
|
-
case AVATAR_SIZES.size_24:
|
|
86
|
-
return AvatarFontSizes.small;
|
|
87
|
-
case AVATAR_SIZES.size_32:
|
|
88
|
-
case AVATAR_SIZES.size_36:
|
|
89
|
-
case AVATAR_SIZES.size_40:
|
|
90
|
-
return AvatarFontSizes.normal;
|
|
91
|
-
case AVATAR_SIZES.size_44:
|
|
92
|
-
case AVATAR_SIZES.size_48:
|
|
93
|
-
return AvatarFontSizes.medium;
|
|
94
|
-
case AVATAR_SIZES.size_56:
|
|
95
|
-
case AVATAR_SIZES.size_64:
|
|
96
|
-
case AVATAR_SIZES.size_80:
|
|
97
|
-
return AvatarFontSizes.large;
|
|
98
|
-
case AVATAR_SIZES.size_100:
|
|
99
|
-
return AvatarFontSizes.xLarge;
|
|
100
|
-
case AVATAR_SIZES.size_160:
|
|
101
|
-
return AvatarFontSizes.xxLarge;
|
|
102
|
-
case AVATAR_SIZES.size_200:
|
|
103
|
-
return AvatarFontSizes.xxxLarge;
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
var renderUserInitials = function () { return (initials === null || initials === void 0 ? void 0 : initials.slice(0, MAX_NUMBER_OF_CHARACTERS_IN_INITIALS).toUpperCase()) || createInitials(username); };
|
|
107
|
-
var renderAvatarImage = function () {
|
|
108
|
-
if (avatar)
|
|
109
|
-
return isString(avatar) ? _jsx("img", { src: avatar, alt: "avatar" }) : avatar;
|
|
110
|
-
else
|
|
111
|
-
return renderUserInitials();
|
|
112
|
-
};
|
|
113
|
-
var renderContent = function () {
|
|
114
|
-
if (isWarning) {
|
|
115
|
-
var warningSize = calculatePercentageOfValue({ value: size, percentage: size === AVATAR_SIZES.size_32 ? PERCENTS.pct_90 : PERCENTS.pct_100 });
|
|
116
|
-
return _jsx(WarningIcon, { color: COLORS.iconNegative, width: warningSize, height: warningSize });
|
|
117
|
-
}
|
|
118
|
-
if (isSelected) {
|
|
119
|
-
var tickSize = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_57 });
|
|
120
|
-
return _jsx(TickIcon, { width: tickSize, height: tickSize });
|
|
121
|
-
}
|
|
122
|
-
if (isSpam) {
|
|
123
|
-
var infoSize = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_60 });
|
|
124
|
-
return _jsx(InfoIcon, { width: infoSize, height: infoSize });
|
|
125
|
-
}
|
|
126
|
-
if (icon) {
|
|
127
|
-
var iconSize = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_62_5 });
|
|
128
|
-
var iconSizeInPx = "".concat(iconSize, "px");
|
|
129
|
-
return (_jsx("div", __assign({ className: "smartapp-avatar__content--icon", style: { width: iconSizeInPx, height: iconSizeInPx } }, { children: icon })));
|
|
130
|
-
}
|
|
131
|
-
return renderAvatarImage();
|
|
132
|
-
};
|
|
133
|
-
var renderCounter = function () {
|
|
134
|
-
var isSingleDigitNumber = counter <= 9;
|
|
135
|
-
var counterText = isSingleDigitNumber ? counter : '9+';
|
|
136
|
-
var width = calculatePercentageOfValue({ value: size, percentage: isSingleDigitNumber ? PERCENTS.pct_40 : PERCENTS.pct_50 });
|
|
137
|
-
var height = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_40 });
|
|
138
|
-
var fontSize = calculatePercentageOfValue({ value: height, percentage: PERCENTS.pct_75 });
|
|
139
|
-
var top = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_10 });
|
|
140
|
-
var right = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_15 });
|
|
141
|
-
var borderWidth = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_5, shouldBeRounded: false });
|
|
142
|
-
var borderRadius = isSingleDigitNumber ? '50%' : "".concat(height * 1.5625, "px");
|
|
143
|
-
return (_jsx("div", __assign({ className: "smartapp-avatar__content--counter", style: {
|
|
144
|
-
width: "".concat(width, "px"),
|
|
145
|
-
height: "".concat(height, "px"),
|
|
146
|
-
top: "-".concat(top, "px"),
|
|
147
|
-
right: "-".concat(right, "px"),
|
|
148
|
-
fontSize: "".concat(fontSize, "px"),
|
|
149
|
-
border: "".concat(borderWidth, "px solid ").concat(outlineBackground),
|
|
150
|
-
borderRadius: borderRadius,
|
|
151
|
-
} }, { children: counterText })));
|
|
152
|
-
};
|
|
153
|
-
useEffect(function () {
|
|
154
|
-
setPopupMaxWidth(window.innerWidth - POPUP_INDENTS);
|
|
155
|
-
setPopupVerticalPosition(POPUP_VERTICAL_POSITION.top);
|
|
156
|
-
setPopupLeft(-1);
|
|
157
|
-
setPopupTop(-1);
|
|
158
|
-
setPopupArrowLeft(-1);
|
|
159
|
-
setHiddenClassName(POPUP_HIDDEN_CLASSNAME);
|
|
160
|
-
}, [language, size]);
|
|
161
|
-
var handleOpenPopup = function (privateIconRight) {
|
|
162
|
-
var popupRefCurrent = popupRef.current;
|
|
163
|
-
var popupContentRefCurrent = popupContentRef.current;
|
|
164
|
-
var avatarRefCurrent = (avatarRef === null || avatarRef === void 0 ? void 0 : avatarRef.current) || avatarLocalRef.current;
|
|
165
|
-
if (popupRefCurrent && popupContentRefCurrent && avatarRefCurrent) {
|
|
166
|
-
var _a = avatarRefCurrent.getBoundingClientRect(), avatarLeft = _a.left, top_1 = _a.top, right = _a.right;
|
|
167
|
-
var _b = popupContentRefCurrent.getBoundingClientRect(), popupContentWidth = _b.width, height = _b.height;
|
|
168
|
-
var popupContentWidthWithIndents = popupContentWidth + POPUP_INDENTS;
|
|
169
|
-
var nextLeft = avatarLeft - POPUP_LEFT_OFFSET;
|
|
170
|
-
var popupContentRightmostPosition = nextLeft + popupContentWidthWithIndents;
|
|
171
|
-
var popupContentOutsideScreen = popupContentRightmostPosition - window.innerWidth;
|
|
172
|
-
var finalNextLeftValue = Math.max(nextLeft - Math.max(popupContentOutsideScreen, 0), 0);
|
|
173
|
-
var popupHeight = height + POPUP_PADDINGS;
|
|
174
|
-
var nextTop = top_1 - popupHeight - CHIP_TOP_PADDING;
|
|
175
|
-
var isBottomPosition = nextTop < 0;
|
|
176
|
-
var nextTopValue = isBottomPosition ? top_1 + size + POPUP_VERTICAL_OFFSET : nextTop;
|
|
177
|
-
var nextPopupArrowLeft = right - finalNextLeftValue - privateIconRight / 2;
|
|
178
|
-
if (popupLeft !== finalNextLeftValue || popupTop !== nextTopValue || popupMaxWidth !== popupContentWidth) {
|
|
179
|
-
popupRefCurrent.close();
|
|
180
|
-
setPopupVerticalPosition(isBottomPosition ? POPUP_VERTICAL_POSITION.bottom : POPUP_VERTICAL_POSITION.top);
|
|
181
|
-
setPopupLeft(finalNextLeftValue);
|
|
182
|
-
setPopupTop(nextTopValue);
|
|
183
|
-
setPopupArrowLeft(nextPopupArrowLeft);
|
|
184
|
-
setPopupMaxWidth(popupContentWidth);
|
|
185
|
-
var nextTimeoutId = setTimeout(function () { var _a; return (_a = popupRef.current) === null || _a === void 0 ? void 0 : _a.open(); }, 0);
|
|
186
|
-
setTimeoutId(nextTimeoutId);
|
|
187
|
-
}
|
|
188
|
-
setHiddenClassName('');
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
var handleClosePopup = function () { return timeoutId && clearTimeout(timeoutId); };
|
|
192
|
-
var generatePopupContentStyle = function () { return (__assign({ '--private-icon-content-top': "".concat(popupTop, "px"), '--private-icon-content-left': "".concat(popupLeft, "px"), '--private-icon-arrow-left': "".concat(popupArrowLeft, "px"), '--private-icon-content-max-width': "".concat(popupMaxWidth, "px") }, generateFontFamilyStyle(fontFamily))); };
|
|
193
|
-
var renderEye = function () {
|
|
194
|
-
var top = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_8 });
|
|
195
|
-
var right = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_25 });
|
|
196
|
-
var eyeSize = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_65 });
|
|
197
|
-
return (_jsx(Popup, __assign({ ref: popupRef, arrow: false, disabled: !isTooltipAvailableOnEye, onOpen: function () { return handleOpenPopup(right); }, onClose: handleClosePopup, className: classNames('private-icon', hiddenClassName), position: "".concat(popupVerticalPosition, " center"), contentStyle: generatePopupContentStyle(), on: [POPUP_ON_EVENT_TYPE.hover], mouseEnterDelay: POPUP_APPEARANCE_DELAY, trigger: function () { return (_jsx(PrivateIcon, { className: "smartapp-avatar__content--eye", width: eyeSize, height: eyeSize, color: outlineBackground, style: { top: "-".concat(top, "px"), right: "-".concat(right, "px") } })); } }, { children: _jsx("span", __assign({ ref: popupContentRef }, { children: POPUP_TEXT[language] })) })));
|
|
198
|
-
};
|
|
199
|
-
var renderCrown = function () {
|
|
200
|
-
var bottom = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_10 });
|
|
201
|
-
var right = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_15 });
|
|
202
|
-
var crownSize = calculatePercentageOfValue({ value: size, percentage: PERCENTS.pct_50 });
|
|
203
|
-
return (_jsx(CrownIcon, { className: "smartapp-avatar__content--crown", width: crownSize, height: crownSize, color: outlineBackground, style: { bottom: "-".concat(bottom, "px"), right: "-".concat(right, "px") } }));
|
|
204
|
-
};
|
|
205
|
-
var generateBackgroundValueForStyles = function () { return (isWarning ? COLORS.iconTransparentPressed : userNameToColor(initials || username)); };
|
|
206
|
-
var generateAvatarContentStyles = function () {
|
|
207
|
-
var fontSize = generateFontSizeAvatar();
|
|
208
|
-
return {
|
|
209
|
-
width: "".concat(size, "px"),
|
|
210
|
-
minWidth: "".concat(size, "px"),
|
|
211
|
-
height: "".concat(size, "px"),
|
|
212
|
-
fontSize: fontSize,
|
|
213
|
-
lineHeight: fontSize,
|
|
214
|
-
background: isInactive
|
|
215
|
-
? "linear-gradient(180deg, ".concat(COLORS.inactiveAvatarGradientStart, " 0%, ").concat(COLORS.inactiveAvatarGradientEnd, " 100%)")
|
|
216
|
-
: generateBackgroundValueForStyles(),
|
|
217
|
-
opacity: isInactive ? inactiveOpacity : 1,
|
|
218
|
-
};
|
|
219
|
-
};
|
|
220
|
-
return (_jsx("div", __assign({ ref: avatarRef || avatarLocalRef, className: classNames('smartapp-avatar', "smartapp-avatar__".concat(theme), { 'smartapp-avatar__outline': isHighlighted }, className), style: __assign(__assign({ '--avatar-outline-width': "".concat(outlineWidth, "px") }, generateFontFamilyStyle(fontFamily)), styles), onClick: onClick, onMouseDown: onMouseDown }, { children: _jsxs("div", __assign({ style: generateAvatarContentStyles(), className: classNames('smartapp-avatar__content', {
|
|
221
|
-
'smartapp-avatar__content--spam': isSpam,
|
|
222
|
-
'smartapp-avatar__content--inactive': isInactive,
|
|
223
|
-
}) }, { children: [!!counter && renderCounter(), isEye && renderEye(), renderContent(), isCrown && renderCrown()] })) })));
|
|
224
|
-
};
|
|
225
|
-
export default Avatar;
|
|
226
|
-
//# sourceMappingURL=Avatar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.js","sourceRoot":"","sources":["../../../../src/сomponents/Avatar/Avatar.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAc,EAAiB,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AACzE,OAAO,KAAK,MAAM,eAAe,CAAA;AAEjC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,EAAE,0BAA0B,EAAE,cAAc,EAAE,uBAAuB,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AACjI,OAAO,EACL,MAAM,EACN,SAAS,EACT,oCAAoC,EACpC,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,GAEN,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,YAAY,EAAE,eAAe,EAAgB,MAAM,SAAS,CAAA;AACrE,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC9E,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,EAAE,cAAc,IAAI,WAAW,EAAE,MAAM,uCAAuC,CAAA;AACrF,OAAO,0BAA0B,CAAA;AAEjC,IAAK,QAeJ;AAfD,WAAK,QAAQ;IACX,yCAAS,CAAA;IACT,yCAAS,CAAA;IACT,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX,4CAAW,CAAA;IACX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,EAAE,UAAU,CAAC,0BAA0B,EAAE;gBAChD,gCAAgC,EAAE,MAAM;gBACxC,oCAAoC,EAAE,UAAU;aACjD,CAAC,iBAED,CAAC,CAAC,OAAO,IAAI,aAAa,EAAE,EAC5B,KAAK,IAAI,SAAS,EAAE,EACpB,aAAa,EAAE,EACf,OAAO,IAAI,WAAW,EAAE,KACrB,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Avatar';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
|