@expressms/smartapp-ui 2.5.8 → 2.5.9
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/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/button-loader.svg +3 -0
- package/build/main/assets/icons/cancel-cross.svg +3 -0
- package/build/main/assets/icons/check-mark.svg +4 -0
- package/build/main/assets/icons/clear.svg +3 -0
- package/build/main/assets/icons/close-stories.svg +4 -0
- package/build/main/assets/icons/close.svg +10 -0
- package/build/main/assets/icons/contact-info.svg +12 -0
- package/build/main/assets/icons/corporate-user.svg +10 -0
- package/build/main/assets/icons/crown.svg +5 -0
- package/build/main/assets/icons/delete-chip.svg +3 -0
- package/build/main/assets/icons/download.svg +4 -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 +10 -0
- package/build/main/assets/icons/eye.svg +10 -0
- package/build/main/assets/icons/file.svg +3 -0
- package/build/main/assets/icons/info.svg +5 -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/my-contact-user.svg +10 -0
- package/build/main/assets/icons/notification-close.svg +3 -0
- package/build/main/assets/icons/notification-error.svg +3 -0
- package/build/main/assets/icons/notification-failure.svg +3 -0
- package/build/main/assets/icons/notification-info.svg +5 -0
- package/build/main/assets/icons/notification-success.svg +4 -0
- package/build/main/assets/icons/notification-warning.svg +5 -0
- package/build/main/assets/icons/order.svg +6 -0
- package/build/main/assets/icons/plus.svg +4 -0
- package/build/main/assets/icons/refresh.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/storybook/index.d.ts +12 -0
- package/build/main/assets/storybook/index.js +13 -0
- package/build/main/assets/storybook/index.js.map +1 -0
- package/build/main/constants/constants.d.ts +136 -0
- package/build/main/constants/constants.js +152 -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 +28 -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 +20 -0
- package/build/main/helpers/index.js +80 -0
- package/build/main/helpers/index.js.map +1 -0
- package/build/main/index.d.ts +3 -0
- package/build/main/index.js +4 -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 +56 -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 +20 -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 +60 -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 +4 -0
- package/build/main//321/201omponents/Avatar/Avatar.js +115 -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 +36 -0
- package/build/main//321/201omponents/Avatar/types.js +9 -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 +57 -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 +23 -0
- package/build/main//321/201omponents/Button/types.js +11 -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 +54 -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 +8 -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 +4 -0
- package/build/main//321/201omponents/Calendar/Calendar.js +48 -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 +14 -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 +3 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +39 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +3 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +30 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +3 -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 +2 -0
- package/build/main//321/201omponents/Charts/colors.js +3 -0
- package/build/main//321/201omponents/Charts/colors.js.map +1 -0
- package/build/main//321/201omponents/Charts/constants.d.ts +50 -0
- package/build/main//321/201omponents/Charts/constants.js +36 -0
- package/build/main//321/201omponents/Charts/constants.js.map +1 -0
- package/build/main//321/201omponents/Charts/helpers.d.ts +68 -0
- package/build/main//321/201omponents/Charts/helpers.js +91 -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 +51 -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/Checkbox/Checkbox.d.ts +4 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.js +36 -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 +9 -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 +4 -0
- package/build/main//321/201omponents/Chip/Chip.js +40 -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 +10 -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/ConfirmationModal/ConfirmationModal.d.ts +4 -0
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +44 -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 +16 -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 +55 -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 +24 -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/CustomSelect/CustomSelect.d.ts +4 -0
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +172 -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 +61 -0
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/types.d.ts +54 -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 +57 -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/types.d.ts +12 -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/Error/Error.d.ts +4 -0
- package/build/main//321/201omponents/Error/Error.js +22 -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 +7 -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/Header/Header.d.ts +5 -0
- package/build/main//321/201omponents/Header/Header.js +124 -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 +44 -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 +210 -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 +27 -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 +195 -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 +38 -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 +40 -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 +12 -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 +4 -0
- package/build/main//321/201omponents/Modal/Modal.js +53 -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 +15 -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 +8 -0
- package/build/main//321/201omponents/Notification/Notification.js +178 -0
- package/build/main//321/201omponents/Notification/Notification.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 +39 -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 +4 -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 +36 -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 +9 -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 +4 -0
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +50 -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 +9 -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 +66 -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 +16 -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 +281 -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 +54 -0
- package/build/main//321/201omponents/Stories/types.js +11 -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 +7 -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 +96 -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 +10 -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 +38 -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 +9 -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 +31 -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 +70 -0
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +23 -0
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +3 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +76 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +3 -0
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +40 -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 +55 -0
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +396 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +90 -0
- package/build/main//321/201omponents/UserDropdown/helpers.js +93 -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 +72 -0
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/types.d.ts +189 -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/index.d.ts +32 -0
- package/build/main//321/201omponents/index.js +33 -0
- package/build/main//321/201omponents/index.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 +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ScrollBar/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
import { useEffect, useRef, useState } from 'react';
|
|
7
|
+
import styled, { css, keyframes } from 'styled-components';
|
|
8
|
+
import { COLORS, THEME } from '../../constants';
|
|
9
|
+
import { getColor, isDarkTheme } from '../../helpers';
|
|
10
|
+
import '../../styles/styles.scss';
|
|
11
|
+
// animation gradient size
|
|
12
|
+
var startEdgeGradientSize = '8.26%';
|
|
13
|
+
var centerGradientSize = '39.24%';
|
|
14
|
+
var endEdgeGradientSize = '70.22%';
|
|
15
|
+
export var Skeleton = function (_a) {
|
|
16
|
+
var className = _a.className, baseColor = _a.baseColor, width = _a.width, height = _a.height, _b = _a.borderRadius, borderRadius = _b === void 0 ? 8 : _b, circle = _a.circle, _c = _a.theme, theme = _c === void 0 ? THEME.default : _c,
|
|
17
|
+
// needed to determine the offset, the left border must coincide with the left border of the skeletons (without padding in container)
|
|
18
|
+
containerRef = _a.containerRef,
|
|
19
|
+
// if not default, then it must be specified for all skeletons
|
|
20
|
+
_d = _a.animationDuration,
|
|
21
|
+
// if not default, then it must be specified for all skeletons
|
|
22
|
+
animationDuration = _d === void 0 ? 2 : _d,
|
|
23
|
+
// equal to gradient width
|
|
24
|
+
_e = _a.initialOffset,
|
|
25
|
+
// equal to gradient width
|
|
26
|
+
initialOffset = _e === void 0 ? -230 : _e;
|
|
27
|
+
var skeletonRef = useRef(null);
|
|
28
|
+
var _f = useState({ container: { left: 0, width: 0 }, item: { left: 0, width: 0 } }), position = _f[0], setPosition = _f[1];
|
|
29
|
+
//after mount set offset sizes
|
|
30
|
+
useEffect(function () {
|
|
31
|
+
var containerRefCurrent = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current;
|
|
32
|
+
var skeletonRefContainerCurrent = skeletonRef === null || skeletonRef === void 0 ? void 0 : skeletonRef.current;
|
|
33
|
+
if (containerRefCurrent && skeletonRefContainerCurrent) {
|
|
34
|
+
var containerLeft = containerRefCurrent.getBoundingClientRect().left || 0;
|
|
35
|
+
var containerWidth = containerRefCurrent.clientWidth || 0;
|
|
36
|
+
var itemLeft = skeletonRefContainerCurrent.getBoundingClientRect().left || 0;
|
|
37
|
+
var itemWidth = skeletonRefContainerCurrent.getBoundingClientRect().width || 0;
|
|
38
|
+
setPosition({ container: { left: containerLeft, width: containerWidth }, item: { left: itemLeft, width: itemWidth } });
|
|
39
|
+
}
|
|
40
|
+
}, [containerRef]);
|
|
41
|
+
var getOffset = function () {
|
|
42
|
+
var diff = position.item.left - position.container.left;
|
|
43
|
+
var startOffset = initialOffset - diff;
|
|
44
|
+
var finalOffset = position.container.width - diff;
|
|
45
|
+
return { startOffset: startOffset, finalOffset: finalOffset };
|
|
46
|
+
};
|
|
47
|
+
var skeletonBackgroundColor = getColor(baseColor, 'var(--color-input-primary)');
|
|
48
|
+
var skeletonGradientCenter = isDarkTheme(theme) ? COLORS.skeletonDarkGradientCenter : COLORS.skeletonGradientCenter;
|
|
49
|
+
var skeletonGradientEdge = COLORS.skeletonGradientEdge;
|
|
50
|
+
var skeletonCSS = {
|
|
51
|
+
width: width,
|
|
52
|
+
height: circle ? width : height,
|
|
53
|
+
minWidth: circle ? width : 0,
|
|
54
|
+
borderRadius: circle ? '50%' : borderRadius,
|
|
55
|
+
backgroundColor: skeletonBackgroundColor,
|
|
56
|
+
backgroundImage: "linear-gradient(\n 90deg,\n ".concat(skeletonGradientEdge, " ").concat(startEdgeGradientSize, ",\n ").concat(skeletonGradientCenter, " ").concat(centerGradientSize, ",\n ").concat(skeletonGradientEdge, " ").concat(endEdgeGradientSize, "\n );"),
|
|
57
|
+
};
|
|
58
|
+
return (_jsx(StyledSkeleton, { "$animationDuration": animationDuration, "$initialOffset": getOffset().startOffset, "$finalOffset": getOffset().finalOffset, "$CSS": skeletonCSS, ref: skeletonRef, className: className }));
|
|
59
|
+
};
|
|
60
|
+
var StyledSkeleton = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n overflow: hidden;\n background-size: 230px;\n background-repeat: no-repeat;\n ", ";\n"], ["\n position: relative;\n overflow: hidden;\n background-size: 230px;\n background-repeat: no-repeat;\n ", ";\n"])), function (_a) {
|
|
61
|
+
var $CSS = _a.$CSS, $animationDuration = _a.$animationDuration, $initialOffset = _a.$initialOffset, $finalOffset = _a.$finalOffset;
|
|
62
|
+
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n animation: ", " ", "s infinite linear;\n ", ";\n "], ["\n animation: ", " ", "s infinite linear;\n ", ";\n "])), flash($initialOffset, $finalOffset), $animationDuration, $CSS);
|
|
63
|
+
});
|
|
64
|
+
var flash = function (initialOffset, finalOffset) { return keyframes(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n 0% {\n background-position: ", "px;\n }\n\n 60%,\n 100% {\n background-position: ", "px;\n }\n"], ["\n 0% {\n background-position: ", "px;\n }\n\n 60%,\n 100% {\n background-position: ", "px;\n }\n"])), initialOffset, finalOffset); };
|
|
65
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
66
|
+
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skele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AAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Skeleton } from './Skeleton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { IThemeProps } from '../../constants';
|
|
3
|
+
type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
|
|
4
|
+
type IntRange<F extends number, T extends number> = Exclude<Enumerate<T>, Enumerate<F>>;
|
|
5
|
+
export interface ISkeletonProps extends IThemeProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
baseColor?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
borderRadius?: number;
|
|
11
|
+
circle?: boolean;
|
|
12
|
+
containerRef: RefObject<HTMLDivElement | null>;
|
|
13
|
+
animationDuration?: IntRange<1, 7>;
|
|
14
|
+
initialOffset?: number;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Skeleton/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IStoriesProps } from './types';
|
|
2
|
+
import '../../styles/styles.scss';
|
|
3
|
+
declare const StoriesComponent: ({ platform, fontFamily, groupStories, allGroupsStories, changeStoryToViewed, changeGroupStoriesToViewed, handleCloseGroupStories, }: IStoriesProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
export default StoriesComponent;
|
|
@@ -0,0 +1,281 @@
|
|
|
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 { useCallback, useEffect, useLayoutEffect, useState } from 'react';
|
|
14
|
+
import classNames from 'classnames';
|
|
15
|
+
import { isNull, sortBy, isEmpty } from 'lodash';
|
|
16
|
+
import Stories from 'react-insta-stories';
|
|
17
|
+
import Popup from 'reactjs-popup';
|
|
18
|
+
import { useSwipeable } from 'react-swipeable';
|
|
19
|
+
import { ReactComponent as CloseStoriesIcon } from '../../assets/icons/close-stories.svg';
|
|
20
|
+
import { ReactComponent as LoaderIcon } from '../../assets/icons/story-loader.svg';
|
|
21
|
+
import { ReactComponent as ExternalLinkIcon } from '../../assets/icons/external-link.svg';
|
|
22
|
+
import { STORY_BACKGROUND_TYPES, STORY_TYPE, } from './types';
|
|
23
|
+
import { COLORS, DEFAULT_FONT_FAMILY, NUMBER_OF_STORIES_FOR_ROUND_INDICATORS, PLATFORM } from '../../constants';
|
|
24
|
+
import { getColor, isIosPlatform, isWebPlatform } from '../../helpers';
|
|
25
|
+
import '../../styles/styles.scss';
|
|
26
|
+
var storyItemBaseStyles = {
|
|
27
|
+
height: '100%',
|
|
28
|
+
width: '100%',
|
|
29
|
+
};
|
|
30
|
+
var progressContainerStyles = function (platform, storiesCount) { return ({
|
|
31
|
+
gap: storiesCount >= NUMBER_OF_STORIES_FOR_ROUND_INDICATORS ? '8px' : '12px',
|
|
32
|
+
width: '100%',
|
|
33
|
+
filter: 'none',
|
|
34
|
+
paddingTop: isWebPlatform(platform) ? '22px' : isIosPlatform(platform) ? '21px' : '26px',
|
|
35
|
+
paddingLeft: '0',
|
|
36
|
+
paddingRight: '0',
|
|
37
|
+
paddingBottom: '0',
|
|
38
|
+
}); };
|
|
39
|
+
var progressWrapperStyles = {
|
|
40
|
+
height: '4px',
|
|
41
|
+
borderRadius: '51px',
|
|
42
|
+
background: 'rgba(255, 255, 255, 0.4)',
|
|
43
|
+
margin: 0,
|
|
44
|
+
overflow: 'hidden',
|
|
45
|
+
};
|
|
46
|
+
var progressStyles = {
|
|
47
|
+
height: '4px',
|
|
48
|
+
borderRadius: '51px',
|
|
49
|
+
background: 'rgba(255, 255, 255, 1)',
|
|
50
|
+
};
|
|
51
|
+
var DEFAULT_STORY_DURATION = 5000;
|
|
52
|
+
var IMAGE_PADDINGS = 48;
|
|
53
|
+
var PERCENTAGE_OF_IMAGE_WIDTH = 82.7;
|
|
54
|
+
var StoriesComponent = function (_a) {
|
|
55
|
+
var _b, _c;
|
|
56
|
+
var _d;
|
|
57
|
+
var _e = _a.platform, platform = _e === void 0 ? PLATFORM.web : _e, _f = _a.fontFamily, fontFamily = _f === void 0 ? DEFAULT_FONT_FAMILY : _f, groupStories = _a.groupStories, allGroupsStories = _a.allGroupsStories, changeStoryToViewed = _a.changeStoryToViewed, changeGroupStoriesToViewed = _a.changeGroupStoriesToViewed, handleCloseGroupStories = _a.handleCloseGroupStories;
|
|
58
|
+
var sortStoriesByOrder = function (stories) { return sortBy(stories, ['order']); };
|
|
59
|
+
var getActiveGroupStoriesIndex = function () { return allGroupsStories.findIndex(function (_a) {
|
|
60
|
+
var id = _a.id;
|
|
61
|
+
return id === (activeGroupStories === null || activeGroupStories === void 0 ? void 0 : activeGroupStories.id);
|
|
62
|
+
}); };
|
|
63
|
+
var _g = useState(groupStories), activeGroupStories = _g[0], setActiveGroupStories = _g[1];
|
|
64
|
+
var _h = useState(sortStoriesByOrder((groupStories === null || groupStories === void 0 ? void 0 : groupStories.stories) || [])), stories = _h[0], setStories = _h[1];
|
|
65
|
+
var _j = useState((_d = stories[0]) === null || _d === void 0 ? void 0 : _d.id), activeStoryId = _j[0], setActiveStoryId = _j[1];
|
|
66
|
+
var _k = useState(false), isAnimateToRight = _k[0], setIsAnimateToRight = _k[1];
|
|
67
|
+
var _l = useState(false), isAnimateToLeft = _l[0], setIsAnimateToLeft = _l[1];
|
|
68
|
+
var activeStory = stories.find(function (_a) {
|
|
69
|
+
var id = _a.id;
|
|
70
|
+
return id === activeStoryId;
|
|
71
|
+
});
|
|
72
|
+
var isColorOnBackground = function (type) { return type === STORY_BACKGROUND_TYPES.color; };
|
|
73
|
+
var isImageOnBackground = function (_a) {
|
|
74
|
+
var type = _a.type;
|
|
75
|
+
return type === STORY_BACKGROUND_TYPES.image;
|
|
76
|
+
};
|
|
77
|
+
var getStoryStyles = function (_a) {
|
|
78
|
+
var type = _a.type, value = _a.value;
|
|
79
|
+
return isColorOnBackground(type)
|
|
80
|
+
? __assign(__assign({}, storyItemBaseStyles), { background: value }) : __assign(__assign({}, storyItemBaseStyles), { backgroundImage: "url(".concat(value, ")"), backgroundSize: 'cover', backgroundPosition: 'center', backgroundRepeat: 'no-repeat' });
|
|
81
|
+
};
|
|
82
|
+
var changeActiveGroupStories = function (groupStoriesItem) {
|
|
83
|
+
setActiveGroupStories(groupStoriesItem);
|
|
84
|
+
setStories(sortStoriesByOrder(groupStoriesItem.stories));
|
|
85
|
+
setTimeout(function () {
|
|
86
|
+
setIsAnimateToLeft(false);
|
|
87
|
+
setIsAnimateToRight(false);
|
|
88
|
+
}, 500);
|
|
89
|
+
};
|
|
90
|
+
var handlePrevious = function () {
|
|
91
|
+
var prevGroupStories = allGroupsStories[getActiveGroupStoriesIndex() - 1];
|
|
92
|
+
if (prevGroupStories) {
|
|
93
|
+
setIsAnimateToLeft(true);
|
|
94
|
+
changeActiveGroupStories(prevGroupStories);
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
handleCloseGroupStories();
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
var handleNext = function () {
|
|
101
|
+
var nextGroupStories = allGroupsStories[getActiveGroupStoriesIndex() + 1];
|
|
102
|
+
if (nextGroupStories) {
|
|
103
|
+
setIsAnimateToRight(true);
|
|
104
|
+
changeActiveGroupStories(nextGroupStories);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
handleCloseGroupStories();
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
var onStoryStart = function (storyIndex) {
|
|
111
|
+
var isVideoStory = stories[storyIndex].type === STORY_TYPE.video;
|
|
112
|
+
isVideoStory && setActiveStoryId(stories[storyIndex].id);
|
|
113
|
+
var story = stories.find(function (_a) {
|
|
114
|
+
var id = _a.id;
|
|
115
|
+
return id === stories[storyIndex].id;
|
|
116
|
+
});
|
|
117
|
+
var isLastStory = stories.at(-1).id === story.id;
|
|
118
|
+
if (!story.viewed && changeStoryToViewed) {
|
|
119
|
+
changeStoryToViewed(story, activeGroupStories);
|
|
120
|
+
}
|
|
121
|
+
if (isLastStory && !activeGroupStories.viewed && changeGroupStoriesToViewed) {
|
|
122
|
+
changeGroupStoriesToViewed(activeGroupStories);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
var getCurrentStoryIndex = useCallback(function () { return stories.findIndex(function (_a) {
|
|
126
|
+
var id = _a.id;
|
|
127
|
+
return id === activeStoryId;
|
|
128
|
+
}); }, [stories, activeStoryId]);
|
|
129
|
+
var onPrevious = function () {
|
|
130
|
+
activeStoryId === stories[0].id ? handlePrevious() : onStoryStart(getCurrentStoryIndex() - 1);
|
|
131
|
+
};
|
|
132
|
+
var onNext = function () {
|
|
133
|
+
var currentStoryIndex = getCurrentStoryIndex();
|
|
134
|
+
currentStoryIndex !== stories.length - 1 && onStoryStart(currentStoryIndex + 1);
|
|
135
|
+
};
|
|
136
|
+
var getImageContent = function (_a) {
|
|
137
|
+
var id = _a.id, durationInMs = _a.durationInMs, title = _a.title, body = _a.body, backgroundSource = _a.backgroundSource, button = _a.button, image = _a.image;
|
|
138
|
+
return ({
|
|
139
|
+
duration: durationInMs || DEFAULT_STORY_DURATION,
|
|
140
|
+
content: function (_a) {
|
|
141
|
+
var action = _a.action;
|
|
142
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
143
|
+
var _b = useState(false), isImageLoaded = _b[0], setIsImageLoaded = _b[1];
|
|
144
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
145
|
+
var _c = useState(0), storyWidth = _c[0], setStoryWidth = _c[1];
|
|
146
|
+
var imageContainerWidth = storyWidth - IMAGE_PADDINGS;
|
|
147
|
+
var imageContainerHeight = (imageContainerWidth * PERCENTAGE_OF_IMAGE_WIDTH) / 100;
|
|
148
|
+
var isLoaderVisible = image && (!isImageLoaded || isAnimateToLeft || isAnimateToRight);
|
|
149
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
150
|
+
useLayoutEffect(function () {
|
|
151
|
+
setActiveStoryId(id);
|
|
152
|
+
setStoryElementWidth();
|
|
153
|
+
}, []);
|
|
154
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
155
|
+
useLayoutEffect(function () {
|
|
156
|
+
var timeoutId;
|
|
157
|
+
timeoutId = setTimeout(function () { return action(isLoaderVisible ? 'pause' : 'play'); }, 0);
|
|
158
|
+
return function () { return clearTimeout(timeoutId); };
|
|
159
|
+
// eslint-disable-next-line
|
|
160
|
+
}, [isLoaderVisible]);
|
|
161
|
+
var setStoryElementWidth = function () {
|
|
162
|
+
var storyElement = document.querySelector('.smartapp-stories__story');
|
|
163
|
+
var storyElementWidth = (storyElement === null || storyElement === void 0 ? void 0 : storyElement.getBoundingClientRect().width) || 0;
|
|
164
|
+
setStoryWidth(storyElementWidth);
|
|
165
|
+
};
|
|
166
|
+
var handleImageLoad = function () {
|
|
167
|
+
setTimeout(function () {
|
|
168
|
+
action('play');
|
|
169
|
+
setIsImageLoaded(true);
|
|
170
|
+
}, 0);
|
|
171
|
+
};
|
|
172
|
+
window.onresize = setStoryElementWidth;
|
|
173
|
+
return (_jsx("div", __assign({ style: getStoryStyles(backgroundSource) }, { children: _jsxs("div", __assign({ style: { fontFamily: "".concat(fontFamily, ", sans-serif") }, className: classNames('smartapp-stories__story', { 'smartapp-stories__story--image-bg': isImageOnBackground(backgroundSource) }) }, { children: [_jsxs("div", __assign({ style: { opacity: isLoaderVisible ? '0' : '1' } }, { children: [image && (_jsx("div", __assign({ className: "smartapp-stories__story--image", style: { width: "".concat(imageContainerWidth, "px"), height: "".concat(imageContainerHeight, "px") } }, { children: _jsx("img", { src: image, alt: "", onLoad: handleImageLoad, onError: handleImageLoad }) }))), title && _jsx("div", __assign({ className: "smartapp-stories__story--title" }, { children: title })), body && _jsx("div", __assign({ className: "smartapp-stories__story--body" }, { children: body })), button && (_jsxs("div", __assign({ style: {
|
|
174
|
+
color: getColor(button.textColor, COLORS.darkBlack),
|
|
175
|
+
background: getColor(button.backgroundColor, COLORS.white),
|
|
176
|
+
}, className: classNames('smartapp-stories__story--button', "smartapp-stories__story--button__".concat(platform), {
|
|
177
|
+
'smartapp-stories__story--button__with-icon': button.isTransitionToExternalSource,
|
|
178
|
+
}), onClick: button.action }, { children: [button.text, button.isTransitionToExternalSource && _jsx(ExternalLinkIcon, {})] })))] })), isLoaderVisible && (_jsx("div", __assign({ className: "smartapp-stories__story--loader" }, { children: _jsx(LoaderIcon, {}) })))] })) }), id));
|
|
179
|
+
},
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
var getVideoContent = function (_a) {
|
|
183
|
+
var url = _a.url;
|
|
184
|
+
return ({
|
|
185
|
+
type: STORY_TYPE.video,
|
|
186
|
+
url: url,
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
var getStories = function () { return stories.map(function (story) { return (story.type === STORY_TYPE.image ? getImageContent(story) : getVideoContent(story)); }); };
|
|
190
|
+
var swipeableHandlers = useSwipeable({
|
|
191
|
+
trackMouse: true,
|
|
192
|
+
onSwipedLeft: function () { return handleNext(); },
|
|
193
|
+
onSwipedRight: function () { return handlePrevious(); },
|
|
194
|
+
});
|
|
195
|
+
var createBackgroundVideo = function (id, url) {
|
|
196
|
+
var video = document.createElement('video');
|
|
197
|
+
video.id = "background_video_".concat(id);
|
|
198
|
+
video.src = url;
|
|
199
|
+
video.muted = true;
|
|
200
|
+
video.playsInline = true;
|
|
201
|
+
video.autoplay = true;
|
|
202
|
+
video.classList.add('smartapp-stories-content__background-video');
|
|
203
|
+
return video;
|
|
204
|
+
};
|
|
205
|
+
useEffect(function () {
|
|
206
|
+
var sortedStories = sortStoriesByOrder((groupStories === null || groupStories === void 0 ? void 0 : groupStories.stories) || []);
|
|
207
|
+
setActiveGroupStories(groupStories);
|
|
208
|
+
setStories(sortedStories);
|
|
209
|
+
}, [groupStories]);
|
|
210
|
+
useEffect(function () {
|
|
211
|
+
var video = document.querySelector('video');
|
|
212
|
+
var pauseVideosOnBackground = function () {
|
|
213
|
+
var backgroundVideos = document.querySelectorAll("#background_video_".concat(activeStoryId));
|
|
214
|
+
backgroundVideos.forEach(function (video) { return video.pause(); });
|
|
215
|
+
};
|
|
216
|
+
var playVideosOnBackground = function () {
|
|
217
|
+
var backgroundVideos = document.querySelectorAll("#background_video_".concat(activeStoryId));
|
|
218
|
+
backgroundVideos.forEach(function (video) { return video.play().catch(function () { }); });
|
|
219
|
+
};
|
|
220
|
+
video === null || video === void 0 ? void 0 : video.addEventListener('play', playVideosOnBackground);
|
|
221
|
+
video === null || video === void 0 ? void 0 : video.addEventListener('pause', pauseVideosOnBackground);
|
|
222
|
+
return function () {
|
|
223
|
+
video === null || video === void 0 ? void 0 : video.removeEventListener('play', playVideosOnBackground);
|
|
224
|
+
video === null || video === void 0 ? void 0 : video.removeEventListener('pause', pauseVideosOnBackground);
|
|
225
|
+
};
|
|
226
|
+
}, [activeStoryId]);
|
|
227
|
+
useEffect(function () {
|
|
228
|
+
var currentStoryIndex = getCurrentStoryIndex();
|
|
229
|
+
var indicatorsContainer = document.querySelector('.smartapp-stories > div:first-of-type > div:first-of-type');
|
|
230
|
+
var indicators = Array.from((indicatorsContainer === null || indicatorsContainer === void 0 ? void 0 : indicatorsContainer.children) || []);
|
|
231
|
+
indicators.forEach(function (indicator, index) {
|
|
232
|
+
if (indicators.length >= NUMBER_OF_STORIES_FOR_ROUND_INDICATORS) {
|
|
233
|
+
indicator.style.width = index !== currentStoryIndex ? '4px' : '48px';
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
indicator.style.width = '38px';
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}, [getCurrentStoryIndex]);
|
|
240
|
+
useEffect(function () {
|
|
241
|
+
var popupElement = document.querySelector('.smartapp-stories-content');
|
|
242
|
+
var videoWrapper = document.querySelector('.smartapp-stories-content > div > div > div:nth-child(2) > div');
|
|
243
|
+
if (activeStory) {
|
|
244
|
+
if (activeStory.type === STORY_TYPE.image) {
|
|
245
|
+
var _a = activeStory.backgroundSource, type = _a.type, value = _a.value;
|
|
246
|
+
var prevBackgroundVideos = document.querySelectorAll('.smartapp-stories-content__background-video');
|
|
247
|
+
var background = isColorOnBackground(type) ? value : "url(".concat(value, ")");
|
|
248
|
+
!isEmpty(prevBackgroundVideos) && prevBackgroundVideos.forEach(function (video) { return video.remove(); });
|
|
249
|
+
isWebPlatform(platform) && (popupElement === null || popupElement === void 0 ? void 0 : popupElement.style.setProperty('--background', background));
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
var id = activeStory.id, url = activeStory.url;
|
|
253
|
+
var prevBackgroundVideos = document.querySelectorAll('.smartapp-stories-content__background-video');
|
|
254
|
+
!isEmpty(prevBackgroundVideos) && prevBackgroundVideos.forEach(function (video) { return video.remove(); });
|
|
255
|
+
// eslint-disable-next-line max-depth
|
|
256
|
+
if (isWebPlatform(platform)) {
|
|
257
|
+
popupElement === null || popupElement === void 0 ? void 0 : popupElement.style.removeProperty('--background');
|
|
258
|
+
popupElement === null || popupElement === void 0 ? void 0 : popupElement.appendChild(createBackgroundVideo(id, url));
|
|
259
|
+
}
|
|
260
|
+
videoWrapper === null || videoWrapper === void 0 ? void 0 : videoWrapper.appendChild(createBackgroundVideo(id, url));
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}, [platform, activeStory]);
|
|
264
|
+
if (isNull(activeGroupStories)) {
|
|
265
|
+
return null;
|
|
266
|
+
}
|
|
267
|
+
return (_jsxs(Popup, __assign({ className: "smartapp-stories", open: true }, { children: [_jsx("div", __assign({ className: classNames((_b = {
|
|
268
|
+
'smartapp-stories': true
|
|
269
|
+
},
|
|
270
|
+
_b["smartapp-stories__".concat(platform)] = true,
|
|
271
|
+
_b['smartapp-stories__video'] = (activeStory === null || activeStory === void 0 ? void 0 : activeStory.type) === STORY_TYPE.video,
|
|
272
|
+
_b['smartapp-stories__animate-right'] = isAnimateToRight,
|
|
273
|
+
_b['smartapp-stories__animate-left'] = isAnimateToLeft,
|
|
274
|
+
_b)) }, swipeableHandlers, { children: _jsx(Stories, { defaultInterval: 6000, width: "100%", height: "100%", stories: getStories(), onStoryStart: onStoryStart, onPrevious: onPrevious, onNext: onNext, onAllStoriesEnd: handleNext, progressContainerStyles: progressContainerStyles(platform, stories.length), progressWrapperStyles: progressWrapperStyles, progressStyles: progressStyles }, activeGroupStories.id) })), _jsx(CloseStoriesIcon, { className: classNames((_c = {
|
|
275
|
+
'smartapp-stories__icon': true
|
|
276
|
+
},
|
|
277
|
+
_c["smartapp-stories__icon--".concat(platform)] = true,
|
|
278
|
+
_c)), onClick: handleCloseGroupStories })] })));
|
|
279
|
+
};
|
|
280
|
+
export default StoriesComponent;
|
|
281
|
+
//# sourceMappingURL=Stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stories.js","sourceRoot":"","sources":["../../../../src/сomponents/Stories/Stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,MAAM,EA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AAW,uBAAX,WAAW,CAAE,IAAI,MAAK,UAAU,CAAC,KAAK;oBACjE,qCAAiC,GAAE,gBAAgB;oBACnD,oCAAgC,GAAE,eAAe;wBACjD,IACE,iBAAiB,cAErB,KAAC,OAAO,IAEN,eAAe,EAAE,IAAI,EACrB,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,OAAO,EAAE,UAAU,EAAE,EACrB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,UAAU,EAC3B,uBAAuB,EAAE,uBAAuB,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,EAC1E,qBAAqB,EAAE,qBAAqB,EAC5C,cAAc,EAAE,cAAc,IAXzB,kBAAkB,CAAC,EAAE,CAY1B,IACE,EACN,KAAC,gBAAgB,IACf,SAAS,EAAE,UAAU;wBACnB,wBAAwB,EAAE,IAAI;;oBAC9B,GAAC,kCAA2B,QAAQ,CAAE,IAAG,IAAI;wBAC7C,EACF,OAAO,EAAE,uBAAuB,GAChC,KACI,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Stories';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Stories/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { IPlatformProps } from '../../constants';
|
|
3
|
+
export declare enum STORY_BACKGROUND_TYPES {
|
|
4
|
+
color = "color",
|
|
5
|
+
image = "image"
|
|
6
|
+
}
|
|
7
|
+
export declare enum STORY_TYPE {
|
|
8
|
+
image = "image",
|
|
9
|
+
video = "video"
|
|
10
|
+
}
|
|
11
|
+
export type TBackgroundType = 'color' | 'image';
|
|
12
|
+
export type TBackgroundSource = {
|
|
13
|
+
type: TBackgroundType;
|
|
14
|
+
value: string;
|
|
15
|
+
};
|
|
16
|
+
type TCommonStoryItem = {
|
|
17
|
+
id: number;
|
|
18
|
+
order: number;
|
|
19
|
+
viewed?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export interface TImageStoryItem extends TCommonStoryItem {
|
|
22
|
+
type: 'image';
|
|
23
|
+
durationInMs?: number;
|
|
24
|
+
title: string | null;
|
|
25
|
+
body: string | ReactElement | null;
|
|
26
|
+
backgroundSource: TBackgroundSource;
|
|
27
|
+
button: {
|
|
28
|
+
text: string;
|
|
29
|
+
isTransitionToExternalSource?: boolean;
|
|
30
|
+
textColor?: string;
|
|
31
|
+
backgroundColor?: string;
|
|
32
|
+
action: () => void;
|
|
33
|
+
} | null;
|
|
34
|
+
image: string | null;
|
|
35
|
+
}
|
|
36
|
+
export interface TVideoStoryItem extends TCommonStoryItem {
|
|
37
|
+
type: 'video';
|
|
38
|
+
url: string;
|
|
39
|
+
}
|
|
40
|
+
export type TStoryItem = TImageStoryItem | TVideoStoryItem;
|
|
41
|
+
export type TGroupStories = {
|
|
42
|
+
id: number;
|
|
43
|
+
viewed: boolean;
|
|
44
|
+
stories: TStoryItem[];
|
|
45
|
+
};
|
|
46
|
+
export interface IStoriesProps extends IPlatformProps {
|
|
47
|
+
fontFamily?: string;
|
|
48
|
+
groupStories: TGroupStories | null;
|
|
49
|
+
allGroupsStories: TGroupStories[];
|
|
50
|
+
changeStoryToViewed?: (story: TStoryItem, groupStories: TGroupStories) => void;
|
|
51
|
+
changeGroupStoriesToViewed?: (groupStories: TGroupStories) => void;
|
|
52
|
+
handleCloseGroupStories: () => void;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export var STORY_BACKGROUND_TYPES;
|
|
2
|
+
(function (STORY_BACKGROUND_TYPES) {
|
|
3
|
+
STORY_BACKGROUND_TYPES["color"] = "color";
|
|
4
|
+
STORY_BACKGROUND_TYPES["image"] = "image";
|
|
5
|
+
})(STORY_BACKGROUND_TYPES || (STORY_BACKGROUND_TYPES = {}));
|
|
6
|
+
export var STORY_TYPE;
|
|
7
|
+
(function (STORY_TYPE) {
|
|
8
|
+
STORY_TYPE["image"] = "image";
|
|
9
|
+
STORY_TYPE["video"] = "video";
|
|
10
|
+
})(STORY_TYPE || (STORY_TYPE = {}));
|
|
11
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Stories/types.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,yCAAe,CAAA;IACf,yCAAe,CAAA;AACjB,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,QAGjC;AAED,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,6BAAe,CAAA;IACf,6BAAe,CAAA;AACjB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
13
|
+
import Slider from 'react-slick';
|
|
14
|
+
import { NavLink } from 'react-router-dom';
|
|
15
|
+
import '../../styles/styles.scss';
|
|
16
|
+
var Switcher = function (_a) {
|
|
17
|
+
var pages = _a.pages;
|
|
18
|
+
var sliderSettings = {
|
|
19
|
+
variableWidth: true,
|
|
20
|
+
dots: false,
|
|
21
|
+
centerPadding: '60px',
|
|
22
|
+
swipeToSlide: true,
|
|
23
|
+
slidesToShow: 3,
|
|
24
|
+
arrows: false,
|
|
25
|
+
infinite: false,
|
|
26
|
+
speed: 300,
|
|
27
|
+
};
|
|
28
|
+
return (_jsx("div", __assign({ className: "smartapp-switcher" }, { children: _jsx(Slider, __assign({}, sliderSettings, { children: pages.map(function (page) { return (_jsx(NavLink, __assign({ className: function (_a) {
|
|
29
|
+
var isActive = _a.isActive;
|
|
30
|
+
return isActive ? ' smartapp-switcher__instance smartapp-switcher__instance--active' : 'smartapp-switcher__instance';
|
|
31
|
+
}, to: page.route }, { children: page.title }), page.route)); }) })) })));
|
|
32
|
+
};
|
|
33
|
+
export default Switcher;
|
|
34
|
+
//# sourceMappingURL=Switcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switcher.js","sourceRoot":"","sources":["../../../../src/сomponents/Switcher/Switcher.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,MAAM,MAAM,aAAa,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,OAAO,0BAA0B,CAAA;AAEjC,IAAM,QAAQ,GAAG,UAAC,EAAyB;QAAvB,KAAK,WAAA;IACvB,IAAM,cAAc,GAAG;QACrB,aAAa,EAAE,IAAI;QACnB,IAAI,EAAE,KAAK;QACX,aAAa,EAAE,MAAM;QACrB,YAAY,EAAE,IAAI;QAClB,YAAY,EAAE,CAAC;QACf,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,GAAG;KACX,CAAA;IAED,OAAO,CACL,uBAAK,SAAS,EAAC,mBAAmB,gBAChC,KAAC,MAAM,eAAK,cAAc,cACvB,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CACnB,KAAC,OAAO,aAEN,SAAS,EAAE,UAAC,EAAY;wBAAV,QAAQ,cAAA;oBACpB,OAAA,QAAQ,CAAC,CAAC,CAAC,kEAAkE,CAAC,CAAC,CAAC,6BAA6B;gBAA7G,CAA6G,EAE/G,EAAE,EAAE,IAAI,CAAC,KAAK,gBAEb,IAAI,CAAC,KAAK,KANN,IAAI,CAAC,KAAK,CAOP,CACX,EAVoB,CAUpB,CAAC,IACK,IACL,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Switcher';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Switcher/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Switcher/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ISyncLoaderProps } from './types';
|
|
2
|
+
import '../../styles/styles.scss';
|
|
3
|
+
export declare const DEFAULT_SYNC_LOADER_TEXT = "\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435";
|
|
4
|
+
declare const SyncLoader: ({ isLoading, text, theme, color, fontFamily, }: ISyncLoaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
export default SyncLoader;
|