@expressms/smartapp-ui 2.9.4-alpha.1 → 2.9.4
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/avatar-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/distribution.svg +12 -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/group.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/meeting-room.svg +3 -0
- package/build/main/assets/icons/meeting-rooms-list.svg +5 -0
- package/build/main/assets/icons/more.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/private.svg +12 -0
- package/build/main/assets/icons/refresh.svg +3 -0
- package/build/main/assets/icons/search.svg +3 -0
- package/build/main/assets/icons/story-loader.svg +3 -0
- package/build/main/assets/icons/tick.svg +10 -0
- package/build/main/assets/icons/trash.svg +3 -0
- package/build/main/assets/icons/unread-mails.svg +4 -0
- package/build/main/assets/icons/warning-avatar.svg +4 -0
- package/build/main/assets/storybook/index.d.ts +22 -0
- package/build/main/assets/storybook/index.js +23 -0
- package/build/main/assets/storybook/index.js.map +1 -0
- package/build/main/constants/constants.d.ts +164 -0
- package/build/main/constants/constants.js +184 -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 +29 -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 +25 -0
- package/build/main/helpers/index.js +113 -0
- package/build/main/helpers/index.js.map +1 -0
- package/build/main/hooks/useLongTap.d.ts +12 -0
- package/build/main/hooks/useLongTap.js +29 -0
- package/build/main/hooks/useLongTap.js.map +1 -0
- package/build/main/hooks/useModal.d.ts +21 -0
- package/build/main/hooks/useModal.js +60 -0
- package/build/main/hooks/useModal.js.map +1 -0
- package/build/main/index.d.ts +36 -0
- package/build/main/index.js +37 -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 +55 -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 +24 -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 +25 -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 +151 -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 +59 -0
- package/build/main//321/201omponents/Avatar/types.js +29 -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 +63 -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 +28 -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 +59 -0
- package/build/main//321/201omponents/CachedImage/CachedImage.js.map +1 -0
- package/build/main//321/201omponents/CachedImage/helpers.d.ts +3 -0
- package/build/main//321/201omponents/CachedImage/helpers.js +40 -0
- package/build/main//321/201omponents/CachedImage/helpers.js.map +1 -0
- package/build/main//321/201omponents/CachedImage/index.d.ts +1 -0
- package/build/main//321/201omponents/CachedImage/index.js +2 -0
- package/build/main//321/201omponents/CachedImage/index.js.map +1 -0
- package/build/main//321/201omponents/CachedImage/types.d.ts +10 -0
- package/build/main//321/201omponents/CachedImage/types.js +2 -0
- package/build/main//321/201omponents/CachedImage/types.js.map +1 -0
- package/build/main//321/201omponents/Calendar/Calendar.d.ts +4 -0
- package/build/main//321/201omponents/Calendar/Calendar.js +97 -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 +13 -0
- package/build/main//321/201omponents/Calendar/types.js +2 -0
- package/build/main//321/201omponents/Calendar/types.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +46 -0
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +71 -0
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +41 -0
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +1 -0
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +4 -0
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +63 -0
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +1 -0
- package/build/main//321/201omponents/Charts/colors.d.ts +3 -0
- package/build/main//321/201omponents/Charts/colors.js +4 -0
- package/build/main//321/201omponents/Charts/colors.js.map +1 -0
- package/build/main//321/201omponents/Charts/constants.d.ts +46 -0
- package/build/main//321/201omponents/Charts/constants.js +43 -0
- package/build/main//321/201omponents/Charts/constants.js.map +1 -0
- package/build/main//321/201omponents/Charts/helpers.d.ts +17 -0
- package/build/main//321/201omponents/Charts/helpers.js +73 -0
- package/build/main//321/201omponents/Charts/helpers.js.map +1 -0
- package/build/main//321/201omponents/Charts/index.d.ts +3 -0
- package/build/main//321/201omponents/Charts/index.js +4 -0
- package/build/main//321/201omponents/Charts/index.js.map +1 -0
- package/build/main//321/201omponents/Charts/types.d.ts +88 -0
- package/build/main//321/201omponents/Charts/types.js +2 -0
- package/build/main//321/201omponents/Charts/types.js.map +1 -0
- package/build/main//321/201omponents/Charts/useEvents.d.ts +5 -0
- package/build/main//321/201omponents/Charts/useEvents.js +45 -0
- package/build/main//321/201omponents/Charts/useEvents.js.map +1 -0
- package/build/main//321/201omponents/Charts/usePieEvents.d.ts +6 -0
- package/build/main//321/201omponents/Charts/usePieEvents.js +57 -0
- package/build/main//321/201omponents/Charts/usePieEvents.js.map +1 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +4 -0
- package/build/main//321/201omponents/Checkbox/Checkbox.js +38 -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 +12 -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 +74 -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 +21 -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 +70 -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 +28 -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 +81 -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 +34 -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 +12 -0
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +243 -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 +67 -0
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/CustomSelect/types.d.ts +65 -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 +58 -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/DraggablePopup/DraggablePopup.d.ts +4 -0
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +223 -0
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +1 -0
- package/build/main//321/201omponents/DraggablePopup/index.d.ts +1 -0
- package/build/main//321/201omponents/DraggablePopup/index.js +2 -0
- package/build/main//321/201omponents/DraggablePopup/index.js.map +1 -0
- package/build/main//321/201omponents/DraggablePopup/types.d.ts +88 -0
- package/build/main//321/201omponents/DraggablePopup/types.js +2 -0
- package/build/main//321/201omponents/DraggablePopup/types.js.map +1 -0
- package/build/main//321/201omponents/Error/Error.d.ts +4 -0
- package/build/main//321/201omponents/Error/Error.js +23 -0
- package/build/main//321/201omponents/Error/Error.js.map +1 -0
- package/build/main//321/201omponents/Error/index.d.ts +1 -0
- package/build/main//321/201omponents/Error/index.js +2 -0
- package/build/main//321/201omponents/Error/index.js.map +1 -0
- package/build/main//321/201omponents/Error/types.d.ts +10 -0
- package/build/main//321/201omponents/Error/types.js +2 -0
- package/build/main//321/201omponents/Error/types.js.map +1 -0
- package/build/main//321/201omponents/Flex/Flex.d.ts +2 -0
- package/build/main//321/201omponents/Flex/Flex.js +49 -0
- package/build/main//321/201omponents/Flex/Flex.js.map +1 -0
- package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +5 -0
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js +16 -0
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +1 -0
- package/build/main//321/201omponents/Flex/HFlex/index.d.ts +1 -0
- package/build/main//321/201omponents/Flex/HFlex/index.js +2 -0
- package/build/main//321/201omponents/Flex/HFlex/index.js.map +1 -0
- package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +5 -0
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js +16 -0
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +1 -0
- package/build/main//321/201omponents/Flex/VFlex/index.d.ts +1 -0
- package/build/main//321/201omponents/Flex/VFlex/index.js +2 -0
- package/build/main//321/201omponents/Flex/VFlex/index.js.map +1 -0
- package/build/main//321/201omponents/Flex/index.d.ts +3 -0
- package/build/main//321/201omponents/Flex/index.js +4 -0
- package/build/main//321/201omponents/Flex/index.js.map +1 -0
- package/build/main//321/201omponents/Flex/types.d.ts +15 -0
- package/build/main//321/201omponents/Flex/types.js +2 -0
- package/build/main//321/201omponents/Flex/types.js.map +1 -0
- package/build/main//321/201omponents/Header/Header.d.ts +5 -0
- package/build/main//321/201omponents/Header/Header.js +125 -0
- package/build/main//321/201omponents/Header/Header.js.map +1 -0
- package/build/main//321/201omponents/Header/index.d.ts +1 -0
- package/build/main//321/201omponents/Header/index.js +2 -0
- package/build/main//321/201omponents/Header/index.js.map +1 -0
- package/build/main//321/201omponents/Header/types.d.ts +46 -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 +207 -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 +29 -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 +208 -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 +42 -0
- package/build/main//321/201omponents/ListItem/types.js +2 -0
- package/build/main//321/201omponents/ListItem/types.js.map +1 -0
- package/build/main//321/201omponents/Loader/Loader.d.ts +4 -0
- package/build/main//321/201omponents/Loader/Loader.js +44 -0
- package/build/main//321/201omponents/Loader/Loader.js.map +1 -0
- package/build/main//321/201omponents/Loader/index.d.ts +1 -0
- package/build/main//321/201omponents/Loader/index.js +2 -0
- package/build/main//321/201omponents/Loader/index.js.map +1 -0
- package/build/main//321/201omponents/Loader/types.d.ts +18 -0
- package/build/main//321/201omponents/Loader/types.js +2 -0
- package/build/main//321/201omponents/Loader/types.js.map +1 -0
- package/build/main//321/201omponents/Modal/Modal.d.ts +4 -0
- package/build/main//321/201omponents/Modal/Modal.js +147 -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 +36 -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 +218 -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 +45 -0
- package/build/main//321/201omponents/Notification/types.js +2 -0
- package/build/main//321/201omponents/Notification/types.js.map +1 -0
- package/build/main//321/201omponents/Profile/Profile.d.ts +4 -0
- package/build/main//321/201omponents/Profile/Profile.js +42 -0
- package/build/main//321/201omponents/Profile/Profile.js.map +1 -0
- package/build/main//321/201omponents/Profile/index.d.ts +1 -0
- package/build/main//321/201omponents/Profile/index.js +2 -0
- package/build/main//321/201omponents/Profile/index.js.map +1 -0
- package/build/main//321/201omponents/Profile/types.d.ts +14 -0
- package/build/main//321/201omponents/Profile/types.js +2 -0
- package/build/main//321/201omponents/Profile/types.js.map +1 -0
- package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +4 -0
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js +66 -0
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +1 -0
- package/build/main//321/201omponents/ProgressBar/index.d.ts +1 -0
- package/build/main//321/201omponents/ProgressBar/index.js +2 -0
- package/build/main//321/201omponents/ProgressBar/index.js.map +1 -0
- package/build/main//321/201omponents/ProgressBar/types.d.ts +7 -0
- package/build/main//321/201omponents/ProgressBar/types.js +2 -0
- package/build/main//321/201omponents/ProgressBar/types.js.map +1 -0
- package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +4 -0
- package/build/main//321/201omponents/RadioButton/RadioButton.js +37 -0
- package/build/main//321/201omponents/RadioButton/RadioButton.js.map +1 -0
- package/build/main//321/201omponents/RadioButton/index.d.ts +1 -0
- package/build/main//321/201omponents/RadioButton/index.js +2 -0
- package/build/main//321/201omponents/RadioButton/index.js.map +1 -0
- package/build/main//321/201omponents/RadioButton/types.d.ts +12 -0
- package/build/main//321/201omponents/RadioButton/types.js +2 -0
- package/build/main//321/201omponents/RadioButton/types.js.map +1 -0
- package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +5 -0
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +138 -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 +23 -0
- package/build/main//321/201omponents/ScrollBar/types.js +2 -0
- package/build/main//321/201omponents/ScrollBar/types.js.map +1 -0
- package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +4 -0
- package/build/main//321/201omponents/Skeleton/Skeleton.js +59 -0
- package/build/main//321/201omponents/Skeleton/Skeleton.js.map +1 -0
- package/build/main//321/201omponents/Skeleton/index.d.ts +1 -0
- package/build/main//321/201omponents/Skeleton/index.js +2 -0
- package/build/main//321/201omponents/Skeleton/index.js.map +1 -0
- package/build/main//321/201omponents/Skeleton/types.d.ts +17 -0
- package/build/main//321/201omponents/Skeleton/types.js +2 -0
- package/build/main//321/201omponents/Skeleton/types.js.map +1 -0
- package/build/main//321/201omponents/Stories/Stories.d.ts +4 -0
- package/build/main//321/201omponents/Stories/Stories.js +300 -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 +70 -0
- package/build/main//321/201omponents/Stories/types.js +16 -0
- package/build/main//321/201omponents/Stories/types.js.map +1 -0
- package/build/main//321/201omponents/Switcher/Switcher.d.ts +4 -0
- package/build/main//321/201omponents/Switcher/Switcher.js +34 -0
- package/build/main//321/201omponents/Switcher/Switcher.js.map +1 -0
- package/build/main//321/201omponents/Switcher/index.d.ts +1 -0
- package/build/main//321/201omponents/Switcher/index.js +2 -0
- package/build/main//321/201omponents/Switcher/index.js.map +1 -0
- package/build/main//321/201omponents/Switcher/types.d.ts +8 -0
- package/build/main//321/201omponents/Switcher/types.js +2 -0
- package/build/main//321/201omponents/Switcher/types.js.map +1 -0
- package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +5 -0
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js +65 -0
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +1 -0
- package/build/main//321/201omponents/SyncLoader/index.d.ts +1 -0
- package/build/main//321/201omponents/SyncLoader/index.js +2 -0
- package/build/main//321/201omponents/SyncLoader/index.js.map +1 -0
- package/build/main//321/201omponents/SyncLoader/types.d.ts +9 -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 +12 -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 +12 -0
- package/build/main//321/201omponents/Toggle/types.js +2 -0
- package/build/main//321/201omponents/Toggle/types.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +32 -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 +82 -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 +4 -0
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +130 -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 +97 -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 +93 -0
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.d.ts +4 -0
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js +43 -0
- package/build/main//321/201omponents/UserDropdown/SearchInCatalogButton/SearchInCatalogButton.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +5 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +484 -0
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/constants.d.ts +7 -0
- package/build/main//321/201omponents/UserDropdown/constants.js +9 -0
- package/build/main//321/201omponents/UserDropdown/constants.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +98 -0
- package/build/main//321/201omponents/UserDropdown/helpers.js +146 -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 +80 -0
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +1 -0
- package/build/main//321/201omponents/UserDropdown/types.d.ts +251 -0
- package/build/main//321/201omponents/UserDropdown/types.js +9 -0
- package/build/main//321/201omponents/UserDropdown/types.js.map +1 -0
- package/build/main//321/201omponents/types.d.ts +2 -0
- package/build/main//321/201omponents/types.js +2 -0
- package/build/main//321/201omponents/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
export declare enum COLORS {
|
|
2
|
+
lighterBlue = "#4799E30D",
|
|
3
|
+
blue = "#4799E3",
|
|
4
|
+
darkBlue = "#408ACD",
|
|
5
|
+
darkerBlue = "#3C82C1",
|
|
6
|
+
darkestBlue = "#000276",
|
|
7
|
+
purple = "#9370db",
|
|
8
|
+
red = "#ED4747",
|
|
9
|
+
white = "#FFFFFF",
|
|
10
|
+
white3 = "#FFFFFF03",
|
|
11
|
+
white80 = "#FFFFFF80",
|
|
12
|
+
lightestGray = "#FCFCFC",
|
|
13
|
+
lighterGray = "#E0E4EC66",
|
|
14
|
+
gray = "#1111114D",
|
|
15
|
+
darkerGray = "#808080",
|
|
16
|
+
brightBlack = "#3D3D3D",
|
|
17
|
+
black = "#111111",
|
|
18
|
+
darkBlack = "#1A1A1A",
|
|
19
|
+
skeletonBg = "#F1F1F2",
|
|
20
|
+
skeletonDarkBg = "#313131",
|
|
21
|
+
inactiveAvatarGradientStart = "#C2C2C2",
|
|
22
|
+
inactiveAvatarGradientEnd = "#6F6F6F",
|
|
23
|
+
bgBlackoutTransparent = "rgba(0, 0, 0, 0.3)",
|
|
24
|
+
selectBoxShadow = "rgba(0, 0, 0, 0.1)",
|
|
25
|
+
transparent = "transparent",
|
|
26
|
+
iconAccent = "var(--color-icon-accent)",
|
|
27
|
+
iconContrast = "var(--color-icon-contrast)"
|
|
28
|
+
}
|
|
29
|
+
export declare const INPUT_TYPE_PASSWORD = "password";
|
|
30
|
+
export declare const INPUT_TYPE_TEXT = "text";
|
|
31
|
+
export declare const DEFAULT_INPUT_PADDING = 16;
|
|
32
|
+
export declare const MASK_INPUT_PL = 24;
|
|
33
|
+
export declare const ADDITIONAL_INPUT_PR = 32;
|
|
34
|
+
export declare const ENTER_KEY = "Enter";
|
|
35
|
+
export declare const BACKSPACE_KEY = "Backspace";
|
|
36
|
+
export declare const INPUT_COUNTER_TIMEOUT = 5000;
|
|
37
|
+
export declare const ADDITIONAL_MAX_CHARACTERS = 4;
|
|
38
|
+
export declare enum INPUT_COUNTER_TYPE {
|
|
39
|
+
title = "title",
|
|
40
|
+
text = "text"
|
|
41
|
+
}
|
|
42
|
+
export declare enum FONT_SIZE {
|
|
43
|
+
small = "14px",
|
|
44
|
+
default = "16px",
|
|
45
|
+
large = "22px"
|
|
46
|
+
}
|
|
47
|
+
export declare enum LINE_HEIGHT {
|
|
48
|
+
small = "19px",
|
|
49
|
+
default = "22px",
|
|
50
|
+
large = "30px"
|
|
51
|
+
}
|
|
52
|
+
export declare enum TITLE_SIZE {
|
|
53
|
+
small = "small",
|
|
54
|
+
major = "major"
|
|
55
|
+
}
|
|
56
|
+
export declare enum PLATFORM {
|
|
57
|
+
web = "web",
|
|
58
|
+
ios = "ios",
|
|
59
|
+
android = "android"
|
|
60
|
+
}
|
|
61
|
+
export declare enum THEME {
|
|
62
|
+
default = "default",
|
|
63
|
+
dark = "dark"
|
|
64
|
+
}
|
|
65
|
+
export declare enum FONT_FAMILY {
|
|
66
|
+
openSans = "Open Sans",
|
|
67
|
+
caveat = "Caveat",
|
|
68
|
+
oswald = "Oswald",
|
|
69
|
+
roboto = "Roboto"
|
|
70
|
+
}
|
|
71
|
+
export declare const CANCEL_ACTION_TEXT = "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C";
|
|
72
|
+
export declare const NUMBER_OF_STORIES_FOR_ROUND_INDICATORS = 5;
|
|
73
|
+
export declare const MIN_TEXTAREA_HEIGHT = "120px";
|
|
74
|
+
export declare const CONTEXT_MENU_SAFE_SPACE = 15;
|
|
75
|
+
export declare const WEB_NOTIFICATION_DISTANCE_FROM_BOTTOM = 8;
|
|
76
|
+
export declare const MOBILE_NOTIFICATION_DISTANCE_FROM_BOTTOM = 40;
|
|
77
|
+
export declare const DEFAULT_HEADER_AVATAR_INDEX = 4;
|
|
78
|
+
export declare const AVATAR_DEGREES: number[];
|
|
79
|
+
export declare const AVATAR_COLOR_TOP: string[];
|
|
80
|
+
export declare const AVATAR_COLOR_TOP_PERCENTS: number[];
|
|
81
|
+
export declare const AVATAR_COLOR_MIDDLE: (string | null)[];
|
|
82
|
+
export declare const AVATAR_COLOR_MIDDLE_PERCENTS: (number | null)[];
|
|
83
|
+
export declare const AVATAR_COLOR_BOTTOM: string[];
|
|
84
|
+
export declare const AVATAR_COLOR_BOTTOM_PERCENTS: number[];
|
|
85
|
+
export declare const COLOR_CHIP = "var(--color-chip)";
|
|
86
|
+
export declare const MAX_NUMBER_OF_CHARACTERS_IN_INITIALS = 2;
|
|
87
|
+
export declare enum LAYOUT_TYPE {
|
|
88
|
+
minimal = "minimal",
|
|
89
|
+
half = "half",
|
|
90
|
+
full = "full"
|
|
91
|
+
}
|
|
92
|
+
export declare enum VIEWPORTS {
|
|
93
|
+
webCollapsed = "webCollapsed",
|
|
94
|
+
webExpanded = "webExpanded",
|
|
95
|
+
iphone6 = "iphone6",
|
|
96
|
+
iphone12 = "iphone12",
|
|
97
|
+
galaxys5 = "galaxys5",
|
|
98
|
+
reset = "reset"
|
|
99
|
+
}
|
|
100
|
+
export declare enum FILL_TYPE {
|
|
101
|
+
primary = "primary",
|
|
102
|
+
secondary = "secondary"
|
|
103
|
+
}
|
|
104
|
+
export declare enum INPUT_FIELD_TYPE {
|
|
105
|
+
text = "text",
|
|
106
|
+
search = "search"
|
|
107
|
+
}
|
|
108
|
+
export declare enum MENU_POSITIONS {
|
|
109
|
+
bottom = "bottom",
|
|
110
|
+
auto = "auto",
|
|
111
|
+
top = "top"
|
|
112
|
+
}
|
|
113
|
+
export declare enum MENU_LOCATION {
|
|
114
|
+
absolute = "absolute",
|
|
115
|
+
fixed = "fixed"
|
|
116
|
+
}
|
|
117
|
+
export declare const CREATABLE_MENU_LIST_MAX_HEIGHT = 248;
|
|
118
|
+
export declare const MENU_LIST_MAX_HEIGHT = 292;
|
|
119
|
+
export declare const DEFAULT_SCROLL_BAR_HIDE_DURATION = 2000;
|
|
120
|
+
export declare enum LANGUAGES {
|
|
121
|
+
ru = "ru",
|
|
122
|
+
en = "en",
|
|
123
|
+
de = "de",
|
|
124
|
+
es = "es",
|
|
125
|
+
fr = "fr",
|
|
126
|
+
ar = "ar",
|
|
127
|
+
ms = "ms",
|
|
128
|
+
tr = "tr",
|
|
129
|
+
id = "id"
|
|
130
|
+
}
|
|
131
|
+
export declare enum HEADER_COLOR_BG {
|
|
132
|
+
grey = "grey",
|
|
133
|
+
blue = "blue"
|
|
134
|
+
}
|
|
135
|
+
export declare enum MODAL_BUTTONS_DIRECTION {
|
|
136
|
+
row = "row",
|
|
137
|
+
column = "column"
|
|
138
|
+
}
|
|
139
|
+
export declare const THEME_ARRAY: string[];
|
|
140
|
+
export declare const PLATFORM_ARRAY: string[];
|
|
141
|
+
export declare const LAYOUT_TYPE_ARRAY: string[];
|
|
142
|
+
export declare const FILL_TYPE_ARRAY: string[];
|
|
143
|
+
export declare const MODAL_BUTTONS_DIRECTION_ARRAY: string[];
|
|
144
|
+
export declare const WIDTH_TYPE_SUMMARY = "1 | 2 | 3 | 4 | 5 | ... | 100";
|
|
145
|
+
export declare const STYLES_TYPE_DETAIL = "type TStyles = { [key: string]: number | string }";
|
|
146
|
+
export declare const AVATAR_TYPE_SUMMARY = "string | ReactElement | null";
|
|
147
|
+
export declare const USER_TYPE_DETAILS = "group | distribution | meeting-roms | meeting-roms-list | user";
|
|
148
|
+
export declare const CENTER = "center";
|
|
149
|
+
export declare const BOTTOM_SHEET = "bottom-sheet";
|
|
150
|
+
export declare const DIRECTION = "direction";
|
|
151
|
+
export declare const ROW = "row";
|
|
152
|
+
export declare enum EVENT_LISTENER_TYPES {
|
|
153
|
+
mousedown = "mousedown",
|
|
154
|
+
click = "click",
|
|
155
|
+
pointerup = "pointerup",
|
|
156
|
+
mouseup = "mouseup",
|
|
157
|
+
touchend = "touchend",
|
|
158
|
+
touchcancel = "touchcancel"
|
|
159
|
+
}
|
|
160
|
+
export declare enum POPUP_ON_EVENT_TYPE {
|
|
161
|
+
hover = "hover"
|
|
162
|
+
}
|
|
163
|
+
export declare const SPACE = " ";
|
|
164
|
+
export declare const FIT_CONTENT = "fit-content";
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
export var COLORS;
|
|
2
|
+
(function (COLORS) {
|
|
3
|
+
COLORS["lighterBlue"] = "#4799E30D";
|
|
4
|
+
COLORS["blue"] = "#4799E3";
|
|
5
|
+
COLORS["darkBlue"] = "#408ACD";
|
|
6
|
+
COLORS["darkerBlue"] = "#3C82C1";
|
|
7
|
+
COLORS["darkestBlue"] = "#000276";
|
|
8
|
+
COLORS["purple"] = "#9370db";
|
|
9
|
+
COLORS["red"] = "#ED4747";
|
|
10
|
+
COLORS["white"] = "#FFFFFF";
|
|
11
|
+
COLORS["white3"] = "#FFFFFF03";
|
|
12
|
+
COLORS["white80"] = "#FFFFFF80";
|
|
13
|
+
COLORS["lightestGray"] = "#FCFCFC";
|
|
14
|
+
COLORS["lighterGray"] = "#E0E4EC66";
|
|
15
|
+
COLORS["gray"] = "#1111114D";
|
|
16
|
+
COLORS["darkerGray"] = "#808080";
|
|
17
|
+
COLORS["brightBlack"] = "#3D3D3D";
|
|
18
|
+
COLORS["black"] = "#111111";
|
|
19
|
+
COLORS["darkBlack"] = "#1A1A1A";
|
|
20
|
+
COLORS["skeletonBg"] = "#F1F1F2";
|
|
21
|
+
COLORS["skeletonDarkBg"] = "#313131";
|
|
22
|
+
COLORS["inactiveAvatarGradientStart"] = "#C2C2C2";
|
|
23
|
+
COLORS["inactiveAvatarGradientEnd"] = "#6F6F6F";
|
|
24
|
+
COLORS["bgBlackoutTransparent"] = "rgba(0, 0, 0, 0.3)";
|
|
25
|
+
COLORS["selectBoxShadow"] = "rgba(0, 0, 0, 0.1)";
|
|
26
|
+
COLORS["transparent"] = "transparent";
|
|
27
|
+
COLORS["iconAccent"] = "var(--color-icon-accent)";
|
|
28
|
+
COLORS["iconContrast"] = "var(--color-icon-contrast)";
|
|
29
|
+
})(COLORS || (COLORS = {}));
|
|
30
|
+
export var INPUT_TYPE_PASSWORD = 'password';
|
|
31
|
+
export var INPUT_TYPE_TEXT = 'text';
|
|
32
|
+
export var DEFAULT_INPUT_PADDING = 16;
|
|
33
|
+
export var MASK_INPUT_PL = 24;
|
|
34
|
+
export var ADDITIONAL_INPUT_PR = 32;
|
|
35
|
+
export var ENTER_KEY = 'Enter';
|
|
36
|
+
export var BACKSPACE_KEY = 'Backspace';
|
|
37
|
+
export var INPUT_COUNTER_TIMEOUT = 5000;
|
|
38
|
+
export var ADDITIONAL_MAX_CHARACTERS = 4;
|
|
39
|
+
export var INPUT_COUNTER_TYPE;
|
|
40
|
+
(function (INPUT_COUNTER_TYPE) {
|
|
41
|
+
INPUT_COUNTER_TYPE["title"] = "title";
|
|
42
|
+
INPUT_COUNTER_TYPE["text"] = "text";
|
|
43
|
+
})(INPUT_COUNTER_TYPE || (INPUT_COUNTER_TYPE = {}));
|
|
44
|
+
export var FONT_SIZE;
|
|
45
|
+
(function (FONT_SIZE) {
|
|
46
|
+
FONT_SIZE["small"] = "14px";
|
|
47
|
+
FONT_SIZE["default"] = "16px";
|
|
48
|
+
FONT_SIZE["large"] = "22px";
|
|
49
|
+
})(FONT_SIZE || (FONT_SIZE = {}));
|
|
50
|
+
export var LINE_HEIGHT;
|
|
51
|
+
(function (LINE_HEIGHT) {
|
|
52
|
+
LINE_HEIGHT["small"] = "19px";
|
|
53
|
+
LINE_HEIGHT["default"] = "22px";
|
|
54
|
+
LINE_HEIGHT["large"] = "30px";
|
|
55
|
+
})(LINE_HEIGHT || (LINE_HEIGHT = {}));
|
|
56
|
+
export var TITLE_SIZE;
|
|
57
|
+
(function (TITLE_SIZE) {
|
|
58
|
+
TITLE_SIZE["small"] = "small";
|
|
59
|
+
TITLE_SIZE["major"] = "major";
|
|
60
|
+
})(TITLE_SIZE || (TITLE_SIZE = {}));
|
|
61
|
+
export var PLATFORM;
|
|
62
|
+
(function (PLATFORM) {
|
|
63
|
+
PLATFORM["web"] = "web";
|
|
64
|
+
PLATFORM["ios"] = "ios";
|
|
65
|
+
PLATFORM["android"] = "android";
|
|
66
|
+
})(PLATFORM || (PLATFORM = {}));
|
|
67
|
+
export var THEME;
|
|
68
|
+
(function (THEME) {
|
|
69
|
+
THEME["default"] = "default";
|
|
70
|
+
THEME["dark"] = "dark";
|
|
71
|
+
})(THEME || (THEME = {}));
|
|
72
|
+
export var FONT_FAMILY;
|
|
73
|
+
(function (FONT_FAMILY) {
|
|
74
|
+
FONT_FAMILY["openSans"] = "Open Sans";
|
|
75
|
+
FONT_FAMILY["caveat"] = "Caveat";
|
|
76
|
+
FONT_FAMILY["oswald"] = "Oswald";
|
|
77
|
+
FONT_FAMILY["roboto"] = "Roboto";
|
|
78
|
+
})(FONT_FAMILY || (FONT_FAMILY = {}));
|
|
79
|
+
export var CANCEL_ACTION_TEXT = 'Отменить';
|
|
80
|
+
export var NUMBER_OF_STORIES_FOR_ROUND_INDICATORS = 5;
|
|
81
|
+
export var MIN_TEXTAREA_HEIGHT = '120px';
|
|
82
|
+
export var CONTEXT_MENU_SAFE_SPACE = 15;
|
|
83
|
+
export var WEB_NOTIFICATION_DISTANCE_FROM_BOTTOM = 8;
|
|
84
|
+
export var MOBILE_NOTIFICATION_DISTANCE_FROM_BOTTOM = 40;
|
|
85
|
+
export var DEFAULT_HEADER_AVATAR_INDEX = 4;
|
|
86
|
+
export var AVATAR_DEGREES = [180, 178.34, 180, 180, 180, 180];
|
|
87
|
+
export var AVATAR_COLOR_TOP = ['#FBDA43', '#FFA285', '#FC93FF', '#ACB3FF', '#58EAFD', '#93E847'];
|
|
88
|
+
export var AVATAR_COLOR_TOP_PERCENTS = [-18.75, -3.03, 0, 0, -4.46, -8.04];
|
|
89
|
+
export var AVATAR_COLOR_MIDDLE = [null, '#FC6B6B', '#ED6EE1', null, null, null];
|
|
90
|
+
export var AVATAR_COLOR_MIDDLE_PERCENTS = [null, 65.88, 60.45, null, null, null];
|
|
91
|
+
export var AVATAR_COLOR_BOTTOM = ['#F57953', '#F446B2', '#B446A2', '#706AE6', '#2587E2', '#40A330'];
|
|
92
|
+
export var AVATAR_COLOR_BOTTOM_PERCENTS = [108.93, 116.81, 120.91, 100, 100, 112.5];
|
|
93
|
+
export var COLOR_CHIP = 'var(--color-chip)';
|
|
94
|
+
export var MAX_NUMBER_OF_CHARACTERS_IN_INITIALS = 2;
|
|
95
|
+
export var LAYOUT_TYPE;
|
|
96
|
+
(function (LAYOUT_TYPE) {
|
|
97
|
+
LAYOUT_TYPE["minimal"] = "minimal";
|
|
98
|
+
LAYOUT_TYPE["half"] = "half";
|
|
99
|
+
LAYOUT_TYPE["full"] = "full";
|
|
100
|
+
})(LAYOUT_TYPE || (LAYOUT_TYPE = {}));
|
|
101
|
+
export var VIEWPORTS;
|
|
102
|
+
(function (VIEWPORTS) {
|
|
103
|
+
VIEWPORTS["webCollapsed"] = "webCollapsed";
|
|
104
|
+
VIEWPORTS["webExpanded"] = "webExpanded";
|
|
105
|
+
VIEWPORTS["iphone6"] = "iphone6";
|
|
106
|
+
VIEWPORTS["iphone12"] = "iphone12";
|
|
107
|
+
VIEWPORTS["galaxys5"] = "galaxys5";
|
|
108
|
+
VIEWPORTS["reset"] = "reset";
|
|
109
|
+
})(VIEWPORTS || (VIEWPORTS = {}));
|
|
110
|
+
export var FILL_TYPE;
|
|
111
|
+
(function (FILL_TYPE) {
|
|
112
|
+
FILL_TYPE["primary"] = "primary";
|
|
113
|
+
FILL_TYPE["secondary"] = "secondary";
|
|
114
|
+
})(FILL_TYPE || (FILL_TYPE = {}));
|
|
115
|
+
export var INPUT_FIELD_TYPE;
|
|
116
|
+
(function (INPUT_FIELD_TYPE) {
|
|
117
|
+
INPUT_FIELD_TYPE["text"] = "text";
|
|
118
|
+
INPUT_FIELD_TYPE["search"] = "search";
|
|
119
|
+
})(INPUT_FIELD_TYPE || (INPUT_FIELD_TYPE = {}));
|
|
120
|
+
export var MENU_POSITIONS;
|
|
121
|
+
(function (MENU_POSITIONS) {
|
|
122
|
+
MENU_POSITIONS["bottom"] = "bottom";
|
|
123
|
+
MENU_POSITIONS["auto"] = "auto";
|
|
124
|
+
MENU_POSITIONS["top"] = "top";
|
|
125
|
+
})(MENU_POSITIONS || (MENU_POSITIONS = {}));
|
|
126
|
+
export var MENU_LOCATION;
|
|
127
|
+
(function (MENU_LOCATION) {
|
|
128
|
+
MENU_LOCATION["absolute"] = "absolute";
|
|
129
|
+
MENU_LOCATION["fixed"] = "fixed";
|
|
130
|
+
})(MENU_LOCATION || (MENU_LOCATION = {}));
|
|
131
|
+
export var CREATABLE_MENU_LIST_MAX_HEIGHT = 248;
|
|
132
|
+
export var MENU_LIST_MAX_HEIGHT = 292;
|
|
133
|
+
export var DEFAULT_SCROLL_BAR_HIDE_DURATION = 2000;
|
|
134
|
+
export var LANGUAGES;
|
|
135
|
+
(function (LANGUAGES) {
|
|
136
|
+
LANGUAGES["ru"] = "ru";
|
|
137
|
+
LANGUAGES["en"] = "en";
|
|
138
|
+
LANGUAGES["de"] = "de";
|
|
139
|
+
LANGUAGES["es"] = "es";
|
|
140
|
+
LANGUAGES["fr"] = "fr";
|
|
141
|
+
LANGUAGES["ar"] = "ar";
|
|
142
|
+
LANGUAGES["ms"] = "ms";
|
|
143
|
+
LANGUAGES["tr"] = "tr";
|
|
144
|
+
LANGUAGES["id"] = "id";
|
|
145
|
+
})(LANGUAGES || (LANGUAGES = {}));
|
|
146
|
+
export var HEADER_COLOR_BG;
|
|
147
|
+
(function (HEADER_COLOR_BG) {
|
|
148
|
+
HEADER_COLOR_BG["grey"] = "grey";
|
|
149
|
+
HEADER_COLOR_BG["blue"] = "blue";
|
|
150
|
+
})(HEADER_COLOR_BG || (HEADER_COLOR_BG = {}));
|
|
151
|
+
export var MODAL_BUTTONS_DIRECTION;
|
|
152
|
+
(function (MODAL_BUTTONS_DIRECTION) {
|
|
153
|
+
MODAL_BUTTONS_DIRECTION["row"] = "row";
|
|
154
|
+
MODAL_BUTTONS_DIRECTION["column"] = "column";
|
|
155
|
+
})(MODAL_BUTTONS_DIRECTION || (MODAL_BUTTONS_DIRECTION = {}));
|
|
156
|
+
export var THEME_ARRAY = Object.keys(THEME);
|
|
157
|
+
export var PLATFORM_ARRAY = Object.keys(PLATFORM);
|
|
158
|
+
export var LAYOUT_TYPE_ARRAY = Object.keys(LAYOUT_TYPE);
|
|
159
|
+
export var FILL_TYPE_ARRAY = Object.keys(FILL_TYPE);
|
|
160
|
+
export var MODAL_BUTTONS_DIRECTION_ARRAY = Object.keys(MODAL_BUTTONS_DIRECTION);
|
|
161
|
+
export var WIDTH_TYPE_SUMMARY = '1 | 2 | 3 | 4 | 5 | ... | 100';
|
|
162
|
+
export var STYLES_TYPE_DETAIL = 'type TStyles = { [key: string]: number | string }';
|
|
163
|
+
export var AVATAR_TYPE_SUMMARY = 'string | ReactElement | null';
|
|
164
|
+
export var USER_TYPE_DETAILS = 'group | distribution | meeting-roms | meeting-roms-list | user';
|
|
165
|
+
export var CENTER = 'center';
|
|
166
|
+
export var BOTTOM_SHEET = 'bottom-sheet';
|
|
167
|
+
export var DIRECTION = 'direction';
|
|
168
|
+
export var ROW = 'row';
|
|
169
|
+
export var EVENT_LISTENER_TYPES;
|
|
170
|
+
(function (EVENT_LISTENER_TYPES) {
|
|
171
|
+
EVENT_LISTENER_TYPES["mousedown"] = "mousedown";
|
|
172
|
+
EVENT_LISTENER_TYPES["click"] = "click";
|
|
173
|
+
EVENT_LISTENER_TYPES["pointerup"] = "pointerup";
|
|
174
|
+
EVENT_LISTENER_TYPES["mouseup"] = "mouseup";
|
|
175
|
+
EVENT_LISTENER_TYPES["touchend"] = "touchend";
|
|
176
|
+
EVENT_LISTENER_TYPES["touchcancel"] = "touchcancel";
|
|
177
|
+
})(EVENT_LISTENER_TYPES || (EVENT_LISTENER_TYPES = {}));
|
|
178
|
+
export var POPUP_ON_EVENT_TYPE;
|
|
179
|
+
(function (POPUP_ON_EVENT_TYPE) {
|
|
180
|
+
POPUP_ON_EVENT_TYPE["hover"] = "hover";
|
|
181
|
+
})(POPUP_ON_EVENT_TYPE || (POPUP_ON_EVENT_TYPE = {}));
|
|
182
|
+
export var SPACE = ' ';
|
|
183
|
+
export var FIT_CONTENT = 'fit-content';
|
|
184
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/constants/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,MA2BX;AA3BD,WAAY,MAAM;IAChB,mCAAyB,CAAA;IACzB,0BAAgB,CAAA;IAChB,8BAAoB,CAAA;IACpB,gCAAsB,CAAA;IACtB,iCAAuB,CAAA;IACvB,4BAAkB,CAAA;IAClB,yBAAe,CAAA;IACf,2BAAiB,CAAA;IACjB,8BAAoB,CAAA;IACpB,+BAAqB,CAAA;IACrB,kCAAwB,CAAA;IACxB,mCAAyB,CAAA;IACzB,4BAAkB,CAAA;IAClB,gCAAsB,CAAA;IACtB,iCAAuB,CAAA;IACvB,2BAAiB,CAAA;IACjB,+BAAqB,CAAA;IACrB,gCAAsB,CAAA;IACtB,oCAA0B,CAAA;IAC1B,iDAAuC,CAAA;IACvC,+CAAqC,CAAA;IACrC,sDAA4C,CAAA;IAC5C,gDAAsC,CAAA;IACtC,qCAA2B,CAAA;IAC3B,iDAAuC,CAAA;IACvC,qDAA2C,CAAA;AAC7C,CAAC,EA3BW,MAAM,KAAN,MAAM,QA2BjB;AAED,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAU,CAAA;AAC7C,MAAM,CAAC,IAAM,eAAe,GAAG,MAAM,CAAA;AACrC,MAAM,CAAC,IAAM,qBAAqB,GAAG,EAAE,CAAA;AACvC,MAAM,CAAC,IAAM,aAAa,GAAG,EAAE,CAAA;AAC/B,MAAM,CAAC,IAAM,mBAAmB,GAAG,EAAE,CAAA;AACrC,MAAM,CAAC,IAAM,SAAS,GAAG,OAAO,CAAA;AAChC,MA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B;IAC9B,+CAAuB,CAAA;IACvB,uCAAe,CAAA;IACf,+CAAuB,CAAA;IACvB,2CAAmB,CAAA;IACnB,6CAAqB,CAAA;IACrB,mDAA2B,CAAA;AAC7B,CAAC,EAPW,oBAAoB,KAApB,oBAAoB,QAO/B;AAED,MAAM,CAAN,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,sCAAe,CAAA;AACjB,CAAC,EAFW,mBAAmB,KAAnB,mBAAmB,QAE9B;AAED,MAAM,CAAC,IAAM,KAAK,GAAG,GAAG,CAAA;AACxB,MAAM,CAAC,IAAM,WAAW,GAAG,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export type TStyles = {
|
|
3
|
+
[key: string]: number | string;
|
|
4
|
+
};
|
|
5
|
+
export interface IThemeProps {
|
|
6
|
+
theme?: 'default' | 'dark';
|
|
7
|
+
}
|
|
8
|
+
export interface IPlatformProps {
|
|
9
|
+
platform?: 'web' | 'ios' | 'android';
|
|
10
|
+
}
|
|
11
|
+
export interface ILayoutTypeProps {
|
|
12
|
+
layoutType?: 'minimal' | 'half' | 'full';
|
|
13
|
+
}
|
|
14
|
+
export interface ICommonProps extends IThemeProps, IPlatformProps {
|
|
15
|
+
}
|
|
16
|
+
export type TCalculatePercentageOfValue = {
|
|
17
|
+
value: number;
|
|
18
|
+
percentage: number;
|
|
19
|
+
shouldBeRounded?: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type TGenerateClassNames = {
|
|
22
|
+
className: string;
|
|
23
|
+
delimiter: string;
|
|
24
|
+
additionalClassName: string | string[];
|
|
25
|
+
};
|
|
26
|
+
export type TTextWithLocale = {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
29
|
+
export type TTimeout = number | NodeJS.Timeout | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/constants/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactElement, RefObject } from 'react';
|
|
2
|
+
import { COLORS, TCalculatePercentageOfValue, TGenerateClassNames } from '../constants';
|
|
3
|
+
import { USER_TYPES } from '../сomponents/UserDropdown/constants';
|
|
4
|
+
export declare const generateColor: (color?: string, defaultColor?: string) => string;
|
|
5
|
+
export declare const isWebPlatform: (platform: string) => boolean;
|
|
6
|
+
export declare const isIosPlatform: (platform: string) => boolean;
|
|
7
|
+
export declare const isAndroidPlatform: (platform: string) => boolean;
|
|
8
|
+
export declare const isMobilePlatform: (platform: string) => boolean;
|
|
9
|
+
export declare const isDarkTheme: (theme?: string) => boolean;
|
|
10
|
+
export declare const generateClassNames: ({ className, delimiter, additionalClassName }: TGenerateClassNames) => string;
|
|
11
|
+
export declare const generateDefaultGrayColorForIcon: (theme: string) => COLORS.white80 | COLORS.gray;
|
|
12
|
+
export declare const userNameToColor: (userName?: string) => string;
|
|
13
|
+
export declare const createInitials: (str: string) => string;
|
|
14
|
+
export declare const calculatePercentageOfValue: ({ value, percentage, shouldBeRounded }: TCalculatePercentageOfValue) => number;
|
|
15
|
+
export declare const isFullScreen: (layoutType: string) => boolean;
|
|
16
|
+
export declare const isPrimaryFillType: (fillType: string) => boolean;
|
|
17
|
+
export declare const isSecondaryFillType: (fillType: string) => boolean;
|
|
18
|
+
export declare const isValueEqualToZero: (value: number) => boolean;
|
|
19
|
+
export declare const renderStoryComponent: (component: ReactElement) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const generateIsCloseIconHidden: (platform: string, isCloseIconHidden?: boolean) => boolean;
|
|
21
|
+
export declare const checkIfContentIsCentered: (elementRef: RefObject<HTMLElement | null>) => boolean | undefined;
|
|
22
|
+
export declare const generateBottomSheetClassName: (platform: string, shouldUseBottomSheet: boolean) => string[];
|
|
23
|
+
export declare const generateId: () => string;
|
|
24
|
+
export declare const generateAvatarIcon: (userType: USER_TYPES) => import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
export declare const renderUserIcon: (isMyContacts?: boolean) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,113 @@
|
|
|
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 classNames from 'classnames';
|
|
14
|
+
import { isArray, isNil } from 'lodash';
|
|
15
|
+
import { v4 as uuidv4 } from 'uuid';
|
|
16
|
+
import { AVATAR_COLOR_BOTTOM, AVATAR_COLOR_BOTTOM_PERCENTS, AVATAR_COLOR_MIDDLE, AVATAR_COLOR_MIDDLE_PERCENTS, AVATAR_COLOR_TOP, AVATAR_COLOR_TOP_PERCENTS, AVATAR_DEGREES, BOTTOM_SHEET, CENTER, COLORS, DEFAULT_HEADER_AVATAR_INDEX, FILL_TYPE, LAYOUT_TYPE, PLATFORM, THEME, } from '../constants';
|
|
17
|
+
import { USER_TYPES } from '../сomponents/UserDropdown/constants';
|
|
18
|
+
import { ReactComponent as DistributionIcon } from '../assets/icons/distribution.svg';
|
|
19
|
+
import { ReactComponent as MeetingRoomIcon } from '../assets/icons/meeting-room.svg';
|
|
20
|
+
import { ReactComponent as MeetingRoomsListIcon } from '../assets/icons/meeting-rooms-list.svg';
|
|
21
|
+
import { ReactComponent as GroupIcon } from '../assets/icons/group.svg';
|
|
22
|
+
import { ReactComponent as CorporateUserIcon } from '../assets/icons/corporate-user.svg';
|
|
23
|
+
import { ReactComponent as MyContactUserIcon } from '../assets/icons/my-contact-user.svg';
|
|
24
|
+
export var generateColor = function (color, defaultColor) {
|
|
25
|
+
if (defaultColor === void 0) { defaultColor = ''; }
|
|
26
|
+
return (color && CSS.supports('color', color) ? color : defaultColor);
|
|
27
|
+
};
|
|
28
|
+
export var isWebPlatform = function (platform) { return platform === PLATFORM.web; };
|
|
29
|
+
export var isIosPlatform = function (platform) { return platform === PLATFORM.ios; };
|
|
30
|
+
export var isAndroidPlatform = function (platform) { return platform === PLATFORM.android; };
|
|
31
|
+
export var isMobilePlatform = function (platform) { return isAndroidPlatform(platform) || isIosPlatform(platform); };
|
|
32
|
+
export var isDarkTheme = function (theme) { return theme === THEME.dark; };
|
|
33
|
+
export var generateClassNames = function (_a) {
|
|
34
|
+
var className = _a.className, delimiter = _a.delimiter, additionalClassName = _a.additionalClassName;
|
|
35
|
+
return isArray(additionalClassName)
|
|
36
|
+
? classNames(className, additionalClassName.map(function (name) { return "".concat(className).concat(delimiter).concat(name); }))
|
|
37
|
+
: classNames(className, "".concat(className).concat(delimiter).concat(additionalClassName));
|
|
38
|
+
};
|
|
39
|
+
export var generateDefaultGrayColorForIcon = function (theme) { return (theme === THEME.default ? COLORS.gray : COLORS.white80); };
|
|
40
|
+
export var userNameToColor = function (userName) {
|
|
41
|
+
var _a = generateAvatarColor(userName), degrees = _a.degrees, top = _a.top, topPercent = _a.topPercent, middle = _a.middle, middlePercent = _a.middlePercent, bottom = _a.bottom, bottomPercent = _a.bottomPercent;
|
|
42
|
+
return middle
|
|
43
|
+
? "linear-gradient(".concat(degrees, "deg, ").concat(top, " ").concat(topPercent, "%, ").concat(middle, " ").concat(middlePercent, "%, ").concat(bottom, " ").concat(bottomPercent, "%)")
|
|
44
|
+
: "linear-gradient(".concat(degrees, "deg, ").concat(top, " ").concat(topPercent, "%, ").concat(bottom, " ").concat(bottomPercent, "%)");
|
|
45
|
+
};
|
|
46
|
+
var generateAvatarData = function (index) { return ({
|
|
47
|
+
degrees: AVATAR_DEGREES[index],
|
|
48
|
+
top: AVATAR_COLOR_TOP[index],
|
|
49
|
+
topPercent: AVATAR_COLOR_TOP_PERCENTS[index],
|
|
50
|
+
middle: AVATAR_COLOR_MIDDLE[index],
|
|
51
|
+
middlePercent: AVATAR_COLOR_MIDDLE_PERCENTS[index],
|
|
52
|
+
bottom: AVATAR_COLOR_BOTTOM[index],
|
|
53
|
+
bottomPercent: AVATAR_COLOR_BOTTOM_PERCENTS[index],
|
|
54
|
+
}); };
|
|
55
|
+
var generateAvatarColor = function (str) {
|
|
56
|
+
if (!str)
|
|
57
|
+
return generateAvatarData(DEFAULT_HEADER_AVATAR_INDEX);
|
|
58
|
+
var stylesIndex = calculateAvatarStylesIndex(str) || 0;
|
|
59
|
+
return generateAvatarData(stylesIndex);
|
|
60
|
+
};
|
|
61
|
+
var calculateAvatarStylesIndex = function (str) { return Math.abs(hashCode(str) % AVATAR_COLOR_TOP.length); };
|
|
62
|
+
var hashCode = function (str) {
|
|
63
|
+
return str.split('').reduce(function (a, b) {
|
|
64
|
+
a = (a << 5) - a + b.charCodeAt(0);
|
|
65
|
+
return a & a;
|
|
66
|
+
}, 0);
|
|
67
|
+
};
|
|
68
|
+
var generateFirstLetterOfWord = function (word) { return (word === null || word === void 0 ? void 0 : word[0]) || ''; };
|
|
69
|
+
export var createInitials = function (str) {
|
|
70
|
+
var _a = str.trim().toUpperCase().split(' '), firstWord = _a[0], secondWord = _a[1];
|
|
71
|
+
return "".concat(generateFirstLetterOfWord(firstWord)).concat(generateFirstLetterOfWord(secondWord));
|
|
72
|
+
};
|
|
73
|
+
export var calculatePercentageOfValue = function (_a) {
|
|
74
|
+
var value = _a.value, percentage = _a.percentage, _b = _a.shouldBeRounded, shouldBeRounded = _b === void 0 ? true : _b;
|
|
75
|
+
var result = (value * percentage) / 100;
|
|
76
|
+
return shouldBeRounded ? Math.ceil(result) : result;
|
|
77
|
+
};
|
|
78
|
+
export var isFullScreen = function (layoutType) { return layoutType === LAYOUT_TYPE.full; };
|
|
79
|
+
export var isPrimaryFillType = function (fillType) { return fillType === FILL_TYPE.primary; };
|
|
80
|
+
export var isSecondaryFillType = function (fillType) { return fillType === FILL_TYPE.secondary; };
|
|
81
|
+
export var isValueEqualToZero = function (value) { return value === 0; };
|
|
82
|
+
export var renderStoryComponent = function (component) { return (_jsxs("div", __assign({ style: { display: 'flex', flexDirection: 'column', gap: '16px' } }, { children: [_jsxs("div", __assign({ style: { border: '1px dashed #9747FF', borderRadius: '5px', padding: '0 16px 16px' } }, { children: [_jsx("h3", { children: "Light Theme" }), component] })), _jsxs("div", __assign({ style: { background: '#242424', borderRadius: '5px', padding: '0 16px 16px' } }, { children: [_jsx("h3", __assign({ style: { color: '#F9F9F9' } }, { children: "Dark Theme" })), _jsx("div", __assign({ "data-theme": "dark" }, { children: component }))] }))] }))); };
|
|
83
|
+
export var generateIsCloseIconHidden = function (platform, isCloseIconHidden) {
|
|
84
|
+
return isNil(isCloseIconHidden) ? isMobilePlatform(platform) : isCloseIconHidden;
|
|
85
|
+
};
|
|
86
|
+
var isTextAlignEqualToCenter = function (element) { return (element ? window.getComputedStyle(element).textAlign === CENTER : false); };
|
|
87
|
+
export var checkIfContentIsCentered = function (elementRef) {
|
|
88
|
+
var elementRefCurrent = elementRef.current;
|
|
89
|
+
if (elementRefCurrent)
|
|
90
|
+
return isTextAlignEqualToCenter(elementRefCurrent) || isTextAlignEqualToCenter(elementRefCurrent.firstElementChild);
|
|
91
|
+
};
|
|
92
|
+
export var generateBottomSheetClassName = function (platform, shouldUseBottomSheet) {
|
|
93
|
+
return [platform, shouldUseBottomSheet ? BOTTOM_SHEET : ''].filter(Boolean);
|
|
94
|
+
};
|
|
95
|
+
export var generateId = function () { return uuidv4(); };
|
|
96
|
+
export var generateAvatarIcon = function (userType) {
|
|
97
|
+
switch (userType) {
|
|
98
|
+
case USER_TYPES.group:
|
|
99
|
+
return _jsx(GroupIcon, { color: COLORS.iconContrast });
|
|
100
|
+
case USER_TYPES.distribution:
|
|
101
|
+
return _jsx(DistributionIcon, { color: COLORS.iconContrast });
|
|
102
|
+
case USER_TYPES.meetingRoms:
|
|
103
|
+
return _jsx(MeetingRoomIcon, { color: COLORS.iconContrast });
|
|
104
|
+
case USER_TYPES.meetingRomsList:
|
|
105
|
+
return _jsx(MeetingRoomsListIcon, { color: COLORS.iconContrast });
|
|
106
|
+
default:
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
export var renderUserIcon = function (isMyContacts) {
|
|
111
|
+
return isMyContacts ? _jsx(MyContactUserIcon, { color: "var(--color-icon-secondary)" }) : _jsx(CorporateUserIcon, {});
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAC5B,mBAAmB,EACnB,4BAA4B,EAC5B,gBAAgB,EAChB,yBAAyB,EACzB,cAAc,EACd,YAAY,EACZ,MAAM,EACN,MAAM,EACN,2BAA2B,EAC3B,SAAS,EACT,WAAW,EACX,QAAQ,EAGR,KAAK,GACN,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAA;AAEjE,OAAO,EAAE,cAAc,IAAI,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACrF,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACpF,OAAO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AAY,GAAI,CAAA;QAClD,KAAK,UAAU,CAAC,YAAY;YAC1B,OAAO,KAAC,gBAAgB,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,GAAI,CAAA;QACzD,KAAK,UAAU,CAAC,WAAW;YACzB,OAAO,KAAC,eAAe,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,GAAI,CAAA;QACxD,KAAK,UAAU,CAAC,eAAe;YAC7B,OAAO,KAAC,oBAAoB,IAAC,KAAK,EAAE,MAAM,CAAC,YAAY,GAAI,CAAA;QAC7D;YACE,OAAO,IAAI,CAAA;KACd;AACH,CAAC,CAAA;AAED,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,YAAsB;IACnD,OAAA,YAAY,CAAC,CAAC,CAAC,KAAC,iBAAiB,IAAC,KAAK,EAAC,6BAA6B,GAAG,CAAC,CAAC,CAAC,KAAC,iBAAiB,KAAG;AAAhG,CAAgG,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type TLongTapEvent = React.TouchEvent<HTMLElement> | React.MouseEvent<HTMLElement, MouseEvent>;
|
|
3
|
+
type TUseLongTap = {
|
|
4
|
+
onLongTap?: (e: TLongTapEvent) => void;
|
|
5
|
+
onCancelLongTap?: () => void;
|
|
6
|
+
longTapDelay?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const useLongTap: ({ onLongTap, onCancelLongTap, longTapDelay }: TUseLongTap) => {
|
|
9
|
+
cancelPressTimer: () => void;
|
|
10
|
+
startPressTimer: (e: TLongTapEvent) => void;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useEffect, useRef } from 'react';
|
|
2
|
+
var DEFAULT_LONG_TAP_DELAY = 500;
|
|
3
|
+
export var useLongTap = function (_a) {
|
|
4
|
+
var onLongTap = _a.onLongTap, onCancelLongTap = _a.onCancelLongTap, _b = _a.longTapDelay, longTapDelay = _b === void 0 ? DEFAULT_LONG_TAP_DELAY : _b;
|
|
5
|
+
var timerRef = useRef(null);
|
|
6
|
+
var isLongTapFulfilledRef = useRef(false);
|
|
7
|
+
var startPressTimer = function (e) {
|
|
8
|
+
e.stopPropagation();
|
|
9
|
+
isLongTapFulfilledRef.current = false;
|
|
10
|
+
timerRef.current = setTimeout(function () {
|
|
11
|
+
onLongTap === null || onLongTap === void 0 ? void 0 : onLongTap(e);
|
|
12
|
+
isLongTapFulfilledRef.current = true;
|
|
13
|
+
}, longTapDelay);
|
|
14
|
+
};
|
|
15
|
+
var cancelPressTimer = function () {
|
|
16
|
+
if (timerRef.current) {
|
|
17
|
+
clearTimeout(timerRef.current);
|
|
18
|
+
timerRef.current = null;
|
|
19
|
+
if (!isLongTapFulfilledRef.current)
|
|
20
|
+
onCancelLongTap === null || onCancelLongTap === void 0 ? void 0 : onCancelLongTap();
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
useEffect(function () { return function () {
|
|
24
|
+
if (timerRef.current)
|
|
25
|
+
clearTimeout(timerRef.current);
|
|
26
|
+
}; }, []);
|
|
27
|
+
return { cancelPressTimer: cancelPressTimer, startPressTimer: startPressTimer };
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=useLongTap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLongTap.js","sourceRoot":"","sources":["../../../src/hooks/useLongTap.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAWhD,IAAM,sBAAsB,GAAG,GAAG,CAAA;AAElC,MAAM,CAAC,IAAM,UAAU,GAAG,UAAC,EAAkF;QAAhF,SAAS,eAAA,EAAE,eAAe,qBAAA,EAAE,oBAAqC,EAArC,YAAY,mBAAG,sBAAsB,KAAA;IAC5F,IAAM,QAAQ,GAAG,MAAM,CAAkB,IAAI,CAAC,CAAA;IAC9C,IAAM,qBAAqB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;IAE3C,IAAM,eAAe,GAAG,UAAC,CAAgB;QACvC,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,qBAAqB,CAAC,OAAO,GAAG,KAAK,CAAA;QACrC,QAAQ,CAAC,OAAO,GAAG,UAAU,CAAC;YAC5B,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAG,CAAC,CAAC,CAAA;YACd,qBAAqB,CAAC,OAAO,GAAG,IAAI,CAAA;QACtC,CAAC,EAAE,YAAY,CAAC,CAAA;IAClB,CAAC,CAAA;IAED,IAAM,gBAAgB,GAAG;QACvB,IAAI,QAAQ,CAAC,OAAO,EAAE;YACpB,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;YAC9B,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAA;YACvB,IAAI,CAAC,qBAAqB,CAAC,OAAO;gBAAE,eAAe,aAAf,eAAe,uBAAf,eAAe,EAAI,CAAA;SACxD;IACH,CAAC,CAAA;IAED,SAAS,CACP,cAAM,OAAA;QACJ,IAAI,QAAQ,CAAC,OAAO;YAAE,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;IACtD,CAAC,EAFK,CAEL,EACD,EAAE,CACH,CAAA;IAED,OAAO,EAAE,gBAAgB,kBAAA,EAAE,eAAe,iBAAA,EAAE,CAAA;AAC9C,CAAC,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
|
+
import { BottomSheetProps } from 'alex.chus-react-spring-bottom-sheet';
|
|
3
|
+
import 'alex.chus-react-spring-bottom-sheet/dist/style.css';
|
|
4
|
+
interface UseModalProps {
|
|
5
|
+
isModalOpen: boolean;
|
|
6
|
+
platform?: string;
|
|
7
|
+
isDisabledBottomSheet?: boolean;
|
|
8
|
+
initialIsBottomSheet?: boolean;
|
|
9
|
+
modalRef: RefObject<HTMLDivElement | null>;
|
|
10
|
+
isClosableOutside: boolean;
|
|
11
|
+
handleCloseModal: () => void;
|
|
12
|
+
popupClassName?: string;
|
|
13
|
+
popupStyles?: React.CSSProperties;
|
|
14
|
+
bottomSheetProps?: Partial<Omit<BottomSheetProps, 'externalScrollContainer'>>;
|
|
15
|
+
scrollRef?: RefObject<HTMLDivElement | null>;
|
|
16
|
+
}
|
|
17
|
+
export declare const useModal: ({ isModalOpen, platform, isDisabledBottomSheet, initialIsBottomSheet, modalRef, isClosableOutside, handleCloseModal, popupClassName, popupStyles, bottomSheetProps, scrollRef, }: UseModalProps) => {
|
|
18
|
+
shouldUseBottomSheet: boolean;
|
|
19
|
+
renderModal: (children: React.ReactNode) => import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
+
};
|
|
21
|
+
export {};
|