@expressms/smartapp-ui 2.9.4-alpha.1 → 2.9.4-alpha.2
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/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 +158 -0
- package/build/main/constants/constants.js +178 -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 +150 -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 +65 -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 +64 -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 +63 -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 +20 -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 +132 -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,178 @@
|
|
|
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 || (COLORS = {}));
|
|
28
|
+
export var INPUT_TYPE_PASSWORD = 'password';
|
|
29
|
+
export var INPUT_TYPE_TEXT = 'text';
|
|
30
|
+
export var DEFAULT_INPUT_PADDING = 16;
|
|
31
|
+
export var MASK_INPUT_PL = 24;
|
|
32
|
+
export var ADDITIONAL_INPUT_PR = 32;
|
|
33
|
+
export var ENTER_KEY = 'Enter';
|
|
34
|
+
export var BACKSPACE_KEY = 'Backspace';
|
|
35
|
+
export var INPUT_COUNTER_TIMEOUT = 5000;
|
|
36
|
+
export var ADDITIONAL_MAX_CHARACTERS = 4;
|
|
37
|
+
export var INPUT_COUNTER_TYPE;
|
|
38
|
+
(function (INPUT_COUNTER_TYPE) {
|
|
39
|
+
INPUT_COUNTER_TYPE["title"] = "title";
|
|
40
|
+
INPUT_COUNTER_TYPE["text"] = "text";
|
|
41
|
+
})(INPUT_COUNTER_TYPE || (INPUT_COUNTER_TYPE = {}));
|
|
42
|
+
export var FONT_SIZE;
|
|
43
|
+
(function (FONT_SIZE) {
|
|
44
|
+
FONT_SIZE["small"] = "14px";
|
|
45
|
+
FONT_SIZE["default"] = "16px";
|
|
46
|
+
FONT_SIZE["large"] = "22px";
|
|
47
|
+
})(FONT_SIZE || (FONT_SIZE = {}));
|
|
48
|
+
export var LINE_HEIGHT;
|
|
49
|
+
(function (LINE_HEIGHT) {
|
|
50
|
+
LINE_HEIGHT["small"] = "19px";
|
|
51
|
+
LINE_HEIGHT["default"] = "22px";
|
|
52
|
+
LINE_HEIGHT["large"] = "30px";
|
|
53
|
+
})(LINE_HEIGHT || (LINE_HEIGHT = {}));
|
|
54
|
+
export var TITLE_SIZE;
|
|
55
|
+
(function (TITLE_SIZE) {
|
|
56
|
+
TITLE_SIZE["small"] = "small";
|
|
57
|
+
TITLE_SIZE["major"] = "major";
|
|
58
|
+
})(TITLE_SIZE || (TITLE_SIZE = {}));
|
|
59
|
+
export var PLATFORM;
|
|
60
|
+
(function (PLATFORM) {
|
|
61
|
+
PLATFORM["web"] = "web";
|
|
62
|
+
PLATFORM["ios"] = "ios";
|
|
63
|
+
PLATFORM["android"] = "android";
|
|
64
|
+
})(PLATFORM || (PLATFORM = {}));
|
|
65
|
+
export var THEME;
|
|
66
|
+
(function (THEME) {
|
|
67
|
+
THEME["default"] = "default";
|
|
68
|
+
THEME["dark"] = "dark";
|
|
69
|
+
})(THEME || (THEME = {}));
|
|
70
|
+
export var FONT_FAMILY;
|
|
71
|
+
(function (FONT_FAMILY) {
|
|
72
|
+
FONT_FAMILY["openSans"] = "Open Sans";
|
|
73
|
+
FONT_FAMILY["caveat"] = "Caveat";
|
|
74
|
+
FONT_FAMILY["oswald"] = "Oswald";
|
|
75
|
+
FONT_FAMILY["roboto"] = "Roboto";
|
|
76
|
+
})(FONT_FAMILY || (FONT_FAMILY = {}));
|
|
77
|
+
export var CANCEL_ACTION_TEXT = 'Отменить';
|
|
78
|
+
export var NUMBER_OF_STORIES_FOR_ROUND_INDICATORS = 5;
|
|
79
|
+
export var MIN_TEXTAREA_HEIGHT = '120px';
|
|
80
|
+
export var CONTEXT_MENU_SAFE_SPACE = 15;
|
|
81
|
+
export var WEB_NOTIFICATION_DISTANCE_FROM_BOTTOM = 8;
|
|
82
|
+
export var MOBILE_NOTIFICATION_DISTANCE_FROM_BOTTOM = 40;
|
|
83
|
+
export var DEFAULT_HEADER_AVATAR_INDEX = 4;
|
|
84
|
+
export var AVATAR_DEGREES = [180, 178.34, 180, 180, 180, 180];
|
|
85
|
+
export var AVATAR_COLOR_TOP = ['#FBDA43', '#FFA285', '#FC93FF', '#ACB3FF', '#58EAFD', '#93E847'];
|
|
86
|
+
export var AVATAR_COLOR_TOP_PERCENTS = [-18.75, -3.03, 0, 0, -4.46, -8.04];
|
|
87
|
+
export var AVATAR_COLOR_MIDDLE = [null, '#FC6B6B', '#ED6EE1', null, null, null];
|
|
88
|
+
export var AVATAR_COLOR_MIDDLE_PERCENTS = [null, 65.88, 60.45, null, null, null];
|
|
89
|
+
export var AVATAR_COLOR_BOTTOM = ['#F57953', '#F446B2', '#B446A2', '#706AE6', '#2587E2', '#40A330'];
|
|
90
|
+
export var AVATAR_COLOR_BOTTOM_PERCENTS = [108.93, 116.81, 120.91, 100, 100, 112.5];
|
|
91
|
+
export var COLOR_CHIP = 'var(--color-chip)';
|
|
92
|
+
export var MAX_NUMBER_OF_CHARACTERS_IN_INITIALS = 2;
|
|
93
|
+
export var LAYOUT_TYPE;
|
|
94
|
+
(function (LAYOUT_TYPE) {
|
|
95
|
+
LAYOUT_TYPE["minimal"] = "minimal";
|
|
96
|
+
LAYOUT_TYPE["half"] = "half";
|
|
97
|
+
LAYOUT_TYPE["full"] = "full";
|
|
98
|
+
})(LAYOUT_TYPE || (LAYOUT_TYPE = {}));
|
|
99
|
+
export var VIEWPORTS;
|
|
100
|
+
(function (VIEWPORTS) {
|
|
101
|
+
VIEWPORTS["webCollapsed"] = "webCollapsed";
|
|
102
|
+
VIEWPORTS["webExpanded"] = "webExpanded";
|
|
103
|
+
VIEWPORTS["iphone6"] = "iphone6";
|
|
104
|
+
VIEWPORTS["iphone12"] = "iphone12";
|
|
105
|
+
VIEWPORTS["galaxys5"] = "galaxys5";
|
|
106
|
+
VIEWPORTS["reset"] = "reset";
|
|
107
|
+
})(VIEWPORTS || (VIEWPORTS = {}));
|
|
108
|
+
export var FILL_TYPE;
|
|
109
|
+
(function (FILL_TYPE) {
|
|
110
|
+
FILL_TYPE["primary"] = "primary";
|
|
111
|
+
FILL_TYPE["secondary"] = "secondary";
|
|
112
|
+
})(FILL_TYPE || (FILL_TYPE = {}));
|
|
113
|
+
export var INPUT_FIELD_TYPE;
|
|
114
|
+
(function (INPUT_FIELD_TYPE) {
|
|
115
|
+
INPUT_FIELD_TYPE["text"] = "text";
|
|
116
|
+
INPUT_FIELD_TYPE["search"] = "search";
|
|
117
|
+
})(INPUT_FIELD_TYPE || (INPUT_FIELD_TYPE = {}));
|
|
118
|
+
export var MENU_POSITIONS;
|
|
119
|
+
(function (MENU_POSITIONS) {
|
|
120
|
+
MENU_POSITIONS["bottom"] = "bottom";
|
|
121
|
+
MENU_POSITIONS["auto"] = "auto";
|
|
122
|
+
MENU_POSITIONS["top"] = "top";
|
|
123
|
+
})(MENU_POSITIONS || (MENU_POSITIONS = {}));
|
|
124
|
+
export var MENU_LOCATION;
|
|
125
|
+
(function (MENU_LOCATION) {
|
|
126
|
+
MENU_LOCATION["absolute"] = "absolute";
|
|
127
|
+
MENU_LOCATION["fixed"] = "fixed";
|
|
128
|
+
})(MENU_LOCATION || (MENU_LOCATION = {}));
|
|
129
|
+
export var CREATABLE_MENU_LIST_MAX_HEIGHT = 248;
|
|
130
|
+
export var MENU_LIST_MAX_HEIGHT = 292;
|
|
131
|
+
export var DEFAULT_SCROLL_BAR_HIDE_DURATION = 2000;
|
|
132
|
+
export var LANGUAGES;
|
|
133
|
+
(function (LANGUAGES) {
|
|
134
|
+
LANGUAGES["ru"] = "ru";
|
|
135
|
+
LANGUAGES["en"] = "en";
|
|
136
|
+
LANGUAGES["de"] = "de";
|
|
137
|
+
LANGUAGES["es"] = "es";
|
|
138
|
+
LANGUAGES["fr"] = "fr";
|
|
139
|
+
LANGUAGES["ar"] = "ar";
|
|
140
|
+
LANGUAGES["ms"] = "ms";
|
|
141
|
+
LANGUAGES["tr"] = "tr";
|
|
142
|
+
LANGUAGES["id"] = "id";
|
|
143
|
+
})(LANGUAGES || (LANGUAGES = {}));
|
|
144
|
+
export var HEADER_COLOR_BG;
|
|
145
|
+
(function (HEADER_COLOR_BG) {
|
|
146
|
+
HEADER_COLOR_BG["grey"] = "grey";
|
|
147
|
+
HEADER_COLOR_BG["blue"] = "blue";
|
|
148
|
+
})(HEADER_COLOR_BG || (HEADER_COLOR_BG = {}));
|
|
149
|
+
export var MODAL_BUTTONS_DIRECTION;
|
|
150
|
+
(function (MODAL_BUTTONS_DIRECTION) {
|
|
151
|
+
MODAL_BUTTONS_DIRECTION["row"] = "row";
|
|
152
|
+
MODAL_BUTTONS_DIRECTION["column"] = "column";
|
|
153
|
+
})(MODAL_BUTTONS_DIRECTION || (MODAL_BUTTONS_DIRECTION = {}));
|
|
154
|
+
export var THEME_ARRAY = Object.keys(THEME);
|
|
155
|
+
export var PLATFORM_ARRAY = Object.keys(PLATFORM);
|
|
156
|
+
export var LAYOUT_TYPE_ARRAY = Object.keys(LAYOUT_TYPE);
|
|
157
|
+
export var FILL_TYPE_ARRAY = Object.keys(FILL_TYPE);
|
|
158
|
+
export var MODAL_BUTTONS_DIRECTION_ARRAY = Object.keys(MODAL_BUTTONS_DIRECTION);
|
|
159
|
+
export var WIDTH_TYPE_SUMMARY = '1 | 2 | 3 | 4 | 5 | ... | 100';
|
|
160
|
+
export var STYLES_TYPE_DETAIL = 'type TStyles = { [key: string]: number | string }';
|
|
161
|
+
export var AVATAR_TYPE_SUMMARY = 'string | ReactElement | null';
|
|
162
|
+
export var USER_TYPE_DETAILS = 'group | distribution | meeting-roms | meeting-roms-list | user';
|
|
163
|
+
export var CENTER = 'center';
|
|
164
|
+
export var BOTTOM_SHEET = 'bottom-sheet';
|
|
165
|
+
export var DIRECTION = 'direction';
|
|
166
|
+
export var ROW = 'row';
|
|
167
|
+
export var EVENT_LISTENER_TYPES;
|
|
168
|
+
(function (EVENT_LISTENER_TYPES) {
|
|
169
|
+
EVENT_LISTENER_TYPES["mousedown"] = "mousedown";
|
|
170
|
+
EVENT_LISTENER_TYPES["click"] = "click";
|
|
171
|
+
})(EVENT_LISTENER_TYPES || (EVENT_LISTENER_TYPES = {}));
|
|
172
|
+
export var POPUP_ON_EVENT_TYPE;
|
|
173
|
+
(function (POPUP_ON_EVENT_TYPE) {
|
|
174
|
+
POPUP_ON_EVENT_TYPE["hover"] = "hover";
|
|
175
|
+
})(POPUP_ON_EVENT_TYPE || (POPUP_ON_EVENT_TYPE = {}));
|
|
176
|
+
export var SPACE = ' ';
|
|
177
|
+
export var FIT_CONTENT = 'fit-content';
|
|
178
|
+
//# 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,MAyBX;AAzBD,WAAY,MAAM;IAChB,mCAAyB,CAAA;IACzB,0BAAgB,CAAA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AA;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, {});
|
|
100
|
+
case USER_TYPES.distribution:
|
|
101
|
+
return _jsx(DistributionIcon, {});
|
|
102
|
+
case USER_TYPES.meetingRoms:
|
|
103
|
+
return _jsx(MeetingRoomIcon, {});
|
|
104
|
+
case USER_TYPES.meetingRomsList:
|
|
105
|
+
return _jsx(MeetingRoomsListIcon, {});
|
|
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 @@
|
|
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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: start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,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 {};
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { useLayoutEffect, useState, useCallback } from 'react';
|
|
14
|
+
import Popup from 'reactjs-popup';
|
|
15
|
+
import { BottomSheet } from 'alex.chus-react-spring-bottom-sheet';
|
|
16
|
+
import 'alex.chus-react-spring-bottom-sheet/dist/style.css';
|
|
17
|
+
import { isMobilePlatform } from '../helpers';
|
|
18
|
+
import { BOTTOM_SHEET, PLATFORM } from '../constants';
|
|
19
|
+
var MAX_MODAL_MOBILE_HEIGHT = 360;
|
|
20
|
+
var MODAL_ANIMATION = 'modalFadeIn 0.25s ease-in-out forwards';
|
|
21
|
+
var BOTTOM_SHEET_BORDER_RADIUS = '24px';
|
|
22
|
+
export var useModal = function (_a) {
|
|
23
|
+
var isModalOpen = _a.isModalOpen, _b = _a.platform, platform = _b === void 0 ? PLATFORM.web : _b, _c = _a.isDisabledBottomSheet, isDisabledBottomSheet = _c === void 0 ? false : _c, _d = _a.initialIsBottomSheet, initialIsBottomSheet = _d === void 0 ? false : _d, modalRef = _a.modalRef, isClosableOutside = _a.isClosableOutside, handleCloseModal = _a.handleCloseModal, popupClassName = _a.popupClassName, popupStyles = _a.popupStyles, bottomSheetProps = _a.bottomSheetProps, scrollRef = _a.scrollRef;
|
|
24
|
+
var _e = useState(initialIsBottomSheet), shouldUseBottomSheet = _e[0], setShouldUseBottomSheet = _e[1];
|
|
25
|
+
var updateModalState = useCallback(function () {
|
|
26
|
+
var modalElement = modalRef.current;
|
|
27
|
+
if (!modalElement)
|
|
28
|
+
return;
|
|
29
|
+
var modalHeight = modalElement.getBoundingClientRect().height;
|
|
30
|
+
var shouldShowBottomSheet = !isDisabledBottomSheet && isMobilePlatform(platform) && (initialIsBottomSheet || modalHeight > MAX_MODAL_MOBILE_HEIGHT);
|
|
31
|
+
setShouldUseBottomSheet(shouldShowBottomSheet);
|
|
32
|
+
}, [platform, isDisabledBottomSheet, initialIsBottomSheet, modalRef]);
|
|
33
|
+
useLayoutEffect(function () {
|
|
34
|
+
if (!isModalOpen)
|
|
35
|
+
return;
|
|
36
|
+
// Даем время для рендера контента
|
|
37
|
+
var updateModalTimeout = setTimeout(updateModalState, 0);
|
|
38
|
+
return function () {
|
|
39
|
+
clearTimeout(updateModalTimeout);
|
|
40
|
+
setShouldUseBottomSheet(initialIsBottomSheet);
|
|
41
|
+
};
|
|
42
|
+
}, [isModalOpen, updateModalState, modalRef, initialIsBottomSheet]);
|
|
43
|
+
var renderModal = function (children) {
|
|
44
|
+
if (!isModalOpen)
|
|
45
|
+
return null;
|
|
46
|
+
var handleOutsideClick = function (event) {
|
|
47
|
+
event.preventDefault();
|
|
48
|
+
event.stopPropagation();
|
|
49
|
+
handleCloseModal();
|
|
50
|
+
};
|
|
51
|
+
var BottomSheetModal = (_jsx(BottomSheet, __assign({ id: BOTTOM_SHEET, open: isModalOpen, onDismiss: handleCloseModal, expandOnContentDrag: true, sibling: _jsx("div", { "data-rsbs-backdrop": "true", onClick: handleOutsideClick }), style: { '--rsbs-overlay-rounded': BOTTOM_SHEET_BORDER_RADIUS }, externalScrollContainer: scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current }, bottomSheetProps, { children: children })));
|
|
52
|
+
var Modal = (_jsx(Popup, __assign({ className: popupClassName, overlayStyle: __assign(__assign({}, popupStyles), { opacity: 0, animation: MODAL_ANIMATION }), closeOnDocumentClick: isClosableOutside, modal: true, open: isModalOpen, closeOnEscape: isClosableOutside, onClose: handleCloseModal }, { children: children })));
|
|
53
|
+
return shouldUseBottomSheet ? BottomSheetModal : Modal;
|
|
54
|
+
};
|
|
55
|
+
return {
|
|
56
|
+
shouldUseBottomSheet: shouldUseBottomSheet,
|
|
57
|
+
renderModal: renderModal,
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=useModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useModal.js","sourceR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S,EAAE,eAAe,KAE5B,oBAAoB,EAAE,iBAAiB,EACvC,KAAK,QACL,IAAI,EAAE,WAAW,EACjB,aAAa,EAAE,iBAAiB,EAChC,OAAO,EAAE,gBAAgB,gBAExB,QAAQ,IACH,CACT,CAAA;QAED,OAAO,oBAAoB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAA;IACxD,CAAC,CAAA;IAED,OAAO;QACL,oBAAoB,sBAAA;QACpB,WAAW,aAAA;KACZ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from './styles';
|
|
2
|
+
export * from './сomponents/types';
|
|
3
|
+
export { default as Button } from './сomponents/Button';
|
|
4
|
+
export { default as Header } from './сomponents/Header';
|
|
5
|
+
export { default as ActionModal } from './сomponents/ActionModal';
|
|
6
|
+
export { default as AttachedFile } from './сomponents/AttachedFile';
|
|
7
|
+
export { default as Avatar } from './сomponents/Avatar';
|
|
8
|
+
export { default as Calendar } from './сomponents/Calendar';
|
|
9
|
+
export { default as Checkbox } from './сomponents/Checkbox';
|
|
10
|
+
export { default as Chip } from './сomponents/Chip';
|
|
11
|
+
export { default as ConfirmationModal } from './сomponents/ConfirmationModal';
|
|
12
|
+
export { default as CustomSelect } from './сomponents/CustomSelect';
|
|
13
|
+
export { default as CustomSelectProfiles } from './сomponents/CustomSelectProfiles';
|
|
14
|
+
export { default as DragAndDrop } from './сomponents/DragAndDrop';
|
|
15
|
+
export { default as DraggablePopup } from './сomponents/DraggablePopup';
|
|
16
|
+
export { default as Error } from './сomponents/Error';
|
|
17
|
+
export { default as Input } from './сomponents/Input';
|
|
18
|
+
export { default as Loader } from './сomponents/Loader';
|
|
19
|
+
export { default as Profile } from './сomponents/Profile';
|
|
20
|
+
export { default as Switcher } from './сomponents/Switcher';
|
|
21
|
+
export { default as ScrollBar } from './сomponents/ScrollBar';
|
|
22
|
+
export { default as Toggle } from './сomponents/Toggle';
|
|
23
|
+
export { default as Stories } from './сomponents/Stories';
|
|
24
|
+
export { default as SyncLoader } from './сomponents/SyncLoader';
|
|
25
|
+
export { default as Modal } from './сomponents/Modal';
|
|
26
|
+
export { default as Notification } from './сomponents/Notification';
|
|
27
|
+
export { default as RadioButton } from './сomponents/RadioButton';
|
|
28
|
+
export { default as Textarea } from './сomponents/Textarea';
|
|
29
|
+
export { default as ContextMenu } from './сomponents/ContextMenu';
|
|
30
|
+
export { default as UserDropdown } from './сomponents/UserDropdown';
|
|
31
|
+
export { Skeleton } from './сomponents/Skeleton';
|
|
32
|
+
export { default as ListItem } from './сomponents/ListItem';
|
|
33
|
+
export { default as CachedImage } from './сomponents/CachedImage';
|
|
34
|
+
export { default as ProgressBar } from './сomponents/ProgressBar';
|
|
35
|
+
export { ChartBar, ChartLine, ChartPie } from './сomponents/Charts';
|
|
36
|
+
export { Flex, VFlex, HFlex } from './сomponents/Flex';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export * from './styles';
|
|
2
|
+
export * from './сomponents/types';
|
|
3
|
+
export { default as Button } from './сomponents/Button';
|
|
4
|
+
export { default as Header } from './сomponents/Header';
|
|
5
|
+
export { default as ActionModal } from './сomponents/ActionModal';
|
|
6
|
+
export { default as AttachedFile } from './сomponents/AttachedFile';
|
|
7
|
+
export { default as Avatar } from './сomponents/Avatar';
|
|
8
|
+
export { default as Calendar } from './сomponents/Calendar';
|
|
9
|
+
export { default as Checkbox } from './сomponents/Checkbox';
|
|
10
|
+
export { default as Chip } from './сomponents/Chip';
|
|
11
|
+
export { default as ConfirmationModal } from './сomponents/ConfirmationModal';
|
|
12
|
+
export { default as CustomSelect } from './сomponents/CustomSelect';
|
|
13
|
+
export { default as CustomSelectProfiles } from './сomponents/CustomSelectProfiles';
|
|
14
|
+
export { default as DragAndDrop } from './сomponents/DragAndDrop';
|
|
15
|
+
export { default as DraggablePopup } from './сomponents/DraggablePopup';
|
|
16
|
+
export { default as Error } from './сomponents/Error';
|
|
17
|
+
export { default as Input } from './сomponents/Input';
|
|
18
|
+
export { default as Loader } from './сomponents/Loader';
|
|
19
|
+
export { default as Profile } from './сomponents/Profile';
|
|
20
|
+
export { default as Switcher } from './сomponents/Switcher';
|
|
21
|
+
export { default as ScrollBar } from './сomponents/ScrollBar';
|
|
22
|
+
export { default as Toggle } from './сomponents/Toggle';
|
|
23
|
+
export { default as Stories } from './сomponents/Stories';
|
|
24
|
+
export { default as SyncLoader } from './сomponents/SyncLoader';
|
|
25
|
+
export { default as Modal } from './сomponents/Modal';
|
|
26
|
+
export { default as Notification } from './сomponents/Notification';
|
|
27
|
+
export { default as RadioButton } from './сomponents/RadioButton';
|
|
28
|
+
export { default as Textarea } from './сomponents/Textarea';
|
|
29
|
+
export { default as ContextMenu } from './сomponents/ContextMenu';
|
|
30
|
+
export { default as UserDropdown } from './сomponents/UserDropdown';
|
|
31
|
+
export { Skeleton } from './сomponents/Skeleton';
|
|
32
|
+
export { default as ListItem } from './сomponents/ListItem';
|
|
33
|
+
export { default as CachedImage } from './сomponents/CachedImage';
|
|
34
|
+
export { default as ProgressBar } from './сomponents/ProgressBar';
|
|
35
|
+
export { ChartBar, ChartLine, ChartPie } from './сomponents/Charts';
|
|
36
|
+
export { Flex, VFlex, HFlex } from './сomponents/Flex';
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,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AAA;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './styles.scss';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
File without changes
|