@expressms/smartapp-ui 2.9.0 → 2.9.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/package.json +1 -1
- package/build/main/assets/icons/arrow-back.svg +0 -3
- package/build/main/assets/icons/arrow-down.svg +0 -3
- package/build/main/assets/icons/arrow-up.svg +0 -3
- package/build/main/assets/icons/attachment-loader.svg +0 -3
- package/build/main/assets/icons/button-loader.svg +0 -3
- package/build/main/assets/icons/cancel-cross.svg +0 -3
- package/build/main/assets/icons/check-mark.svg +0 -4
- package/build/main/assets/icons/clear.svg +0 -3
- package/build/main/assets/icons/close-stories.svg +0 -4
- package/build/main/assets/icons/close.svg +0 -10
- package/build/main/assets/icons/contact-info.svg +0 -12
- package/build/main/assets/icons/corporate-user.svg +0 -10
- package/build/main/assets/icons/crown.svg +0 -5
- package/build/main/assets/icons/delete-chip.svg +0 -3
- package/build/main/assets/icons/download.svg +0 -4
- package/build/main/assets/icons/error.svg +0 -5
- package/build/main/assets/icons/external-link.svg +0 -3
- package/build/main/assets/icons/eye-off.svg +0 -10
- package/build/main/assets/icons/eye.svg +0 -10
- package/build/main/assets/icons/file.svg +0 -3
- package/build/main/assets/icons/info.svg +0 -5
- package/build/main/assets/icons/loader.svg +0 -3
- package/build/main/assets/icons/logout.svg +0 -4
- package/build/main/assets/icons/magnifying-glass.svg +0 -3
- package/build/main/assets/icons/mail.svg +0 -3
- package/build/main/assets/icons/more.svg +0 -3
- package/build/main/assets/icons/my-contact-user.svg +0 -10
- package/build/main/assets/icons/notification-close.svg +0 -3
- package/build/main/assets/icons/notification-error.svg +0 -3
- package/build/main/assets/icons/notification-failure.svg +0 -3
- package/build/main/assets/icons/notification-info.svg +0 -5
- package/build/main/assets/icons/notification-success.svg +0 -4
- package/build/main/assets/icons/notification-warning.svg +0 -5
- package/build/main/assets/icons/order.svg +0 -6
- package/build/main/assets/icons/plus.svg +0 -4
- package/build/main/assets/icons/private.svg +0 -12
- package/build/main/assets/icons/refresh.svg +0 -3
- package/build/main/assets/icons/story-loader.svg +0 -3
- package/build/main/assets/icons/tick.svg +0 -10
- package/build/main/assets/icons/trash.svg +0 -3
- package/build/main/assets/icons/unread-mails.svg +0 -4
- package/build/main/assets/storybook/index.d.ts +0 -21
- package/build/main/assets/storybook/index.js +0 -22
- package/build/main/assets/storybook/index.js.map +0 -1
- package/build/main/constants/constants.d.ts +0 -152
- package/build/main/constants/constants.js +0 -172
- package/build/main/constants/constants.js.map +0 -1
- package/build/main/constants/index.d.ts +0 -2
- package/build/main/constants/index.js +0 -3
- package/build/main/constants/index.js.map +0 -1
- package/build/main/constants/types.d.ts +0 -24
- package/build/main/constants/types.js +0 -2
- package/build/main/constants/types.js.map +0 -1
- package/build/main/helpers/index.d.ts +0 -22
- package/build/main/helpers/index.js +0 -89
- package/build/main/helpers/index.js.map +0 -1
- package/build/main/hooks/useModal.d.ts +0 -21
- package/build/main/hooks/useModal.js +0 -60
- package/build/main/hooks/useModal.js.map +0 -1
- package/build/main/index.d.ts +0 -36
- package/build/main/index.js +0 -37
- package/build/main/index.js.map +0 -1
- package/build/main/styles/index.d.ts +0 -1
- package/build/main/styles/index.js +0 -2
- package/build/main/styles/index.js.map +0 -1
- package/build/main/styles/main.js +0 -0
- package/build/main/styles/styles.scss +0 -14
- package/build/main//321/201omponents/ActionModal/ActionModal.d.ts +0 -4
- package/build/main//321/201omponents/ActionModal/ActionModal.js +0 -55
- package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
- package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
- package/build/main//321/201omponents/ActionModal/index.js +0 -2
- package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
- package/build/main//321/201omponents/ActionModal/types.d.ts +0 -24
- package/build/main//321/201omponents/ActionModal/types.js +0 -2
- package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -60
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
- package/build/main//321/201omponents/AttachedFile/index.js +0 -2
- package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -25
- package/build/main//321/201omponents/AttachedFile/types.js +0 -2
- package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
- package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
- package/build/main//321/201omponents/Avatar/Avatar.js +0 -135
- package/build/main//321/201omponents/Avatar/Avatar.js.map +0 -1
- package/build/main//321/201omponents/Avatar/index.d.ts +0 -1
- package/build/main//321/201omponents/Avatar/index.js +0 -2
- package/build/main//321/201omponents/Avatar/index.js.map +0 -1
- package/build/main//321/201omponents/Avatar/types.d.ts +0 -58
- package/build/main//321/201omponents/Avatar/types.js +0 -29
- package/build/main//321/201omponents/Avatar/types.js.map +0 -1
- package/build/main//321/201omponents/Button/Button.d.ts +0 -4
- package/build/main//321/201omponents/Button/Button.js +0 -63
- package/build/main//321/201omponents/Button/Button.js.map +0 -1
- package/build/main//321/201omponents/Button/index.d.ts +0 -1
- package/build/main//321/201omponents/Button/index.js +0 -2
- package/build/main//321/201omponents/Button/index.js.map +0 -1
- package/build/main//321/201omponents/Button/types.d.ts +0 -28
- package/build/main//321/201omponents/Button/types.js +0 -11
- package/build/main//321/201omponents/Button/types.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
- package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
- package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
- package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
- package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
- package/build/main//321/201omponents/CachedImage/index.js +0 -2
- package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/types.d.ts +0 -10
- package/build/main//321/201omponents/CachedImage/types.js +0 -2
- package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
- package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
- package/build/main//321/201omponents/Calendar/Calendar.js +0 -97
- package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
- package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
- package/build/main//321/201omponents/Calendar/index.js +0 -2
- package/build/main//321/201omponents/Calendar/index.js.map +0 -1
- package/build/main//321/201omponents/Calendar/types.d.ts +0 -13
- package/build/main//321/201omponents/Calendar/types.js +0 -2
- package/build/main//321/201omponents/Calendar/types.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -46
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -41
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -63
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
- package/build/main//321/201omponents/Charts/colors.d.ts +0 -3
- package/build/main//321/201omponents/Charts/colors.js +0 -4
- package/build/main//321/201omponents/Charts/colors.js.map +0 -1
- package/build/main//321/201omponents/Charts/constants.d.ts +0 -46
- package/build/main//321/201omponents/Charts/constants.js +0 -43
- package/build/main//321/201omponents/Charts/constants.js.map +0 -1
- package/build/main//321/201omponents/Charts/helpers.d.ts +0 -17
- package/build/main//321/201omponents/Charts/helpers.js +0 -73
- package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
- package/build/main//321/201omponents/Charts/index.d.ts +0 -3
- package/build/main//321/201omponents/Charts/index.js +0 -4
- package/build/main//321/201omponents/Charts/index.js.map +0 -1
- package/build/main//321/201omponents/Charts/types.d.ts +0 -88
- package/build/main//321/201omponents/Charts/types.js +0 -2
- package/build/main//321/201omponents/Charts/types.js.map +0 -1
- package/build/main//321/201omponents/Charts/useEvents.d.ts +0 -5
- package/build/main//321/201omponents/Charts/useEvents.js +0 -45
- package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
- package/build/main//321/201omponents/Charts/usePieEvents.d.ts +0 -6
- package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
- package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -4
- package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -38
- package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
- package/build/main//321/201omponents/Checkbox/index.js +0 -2
- package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/types.d.ts +0 -12
- package/build/main//321/201omponents/Checkbox/types.js +0 -2
- package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
- package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
- package/build/main//321/201omponents/Chip/Chip.js +0 -35
- package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
- package/build/main//321/201omponents/Chip/index.d.ts +0 -1
- package/build/main//321/201omponents/Chip/index.js +0 -2
- package/build/main//321/201omponents/Chip/index.js.map +0 -1
- package/build/main//321/201omponents/Chip/types.d.ts +0 -13
- package/build/main//321/201omponents/Chip/types.js +0 -2
- package/build/main//321/201omponents/Chip/types.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -70
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
- package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
- package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -28
- package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
- package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -82
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
- package/build/main//321/201omponents/ContextMenu/index.js +0 -2
- package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -32
- package/build/main//321/201omponents/ContextMenu/types.js +0 -2
- package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -12
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -243
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
- package/build/main//321/201omponents/CustomSelect/index.js +0 -2
- package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
- package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -67
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -64
- package/build/main//321/201omponents/CustomSelect/types.js +0 -2
- package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -57
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
- package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
- package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
- package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
- package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
- package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
- package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
- package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +0 -4
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +0 -223
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/index.d.ts +0 -1
- package/build/main//321/201omponents/DraggablePopup/index.js +0 -2
- package/build/main//321/201omponents/DraggablePopup/index.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/types.d.ts +0 -87
- package/build/main//321/201omponents/DraggablePopup/types.js +0 -2
- package/build/main//321/201omponents/DraggablePopup/types.js.map +0 -1
- package/build/main//321/201omponents/Error/Error.d.ts +0 -4
- package/build/main//321/201omponents/Error/Error.js +0 -23
- package/build/main//321/201omponents/Error/Error.js.map +0 -1
- package/build/main//321/201omponents/Error/index.d.ts +0 -1
- package/build/main//321/201omponents/Error/index.js +0 -2
- package/build/main//321/201omponents/Error/index.js.map +0 -1
- package/build/main//321/201omponents/Error/types.d.ts +0 -10
- package/build/main//321/201omponents/Error/types.js +0 -2
- package/build/main//321/201omponents/Error/types.js.map +0 -1
- package/build/main//321/201omponents/Flex/Flex.d.ts +0 -2
- package/build/main//321/201omponents/Flex/Flex.js +0 -49
- package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
- package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +0 -5
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
- package/build/main//321/201omponents/Flex/HFlex/index.d.ts +0 -1
- package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
- package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +0 -5
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
- package/build/main//321/201omponents/Flex/VFlex/index.d.ts +0 -1
- package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
- package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/index.d.ts +0 -3
- package/build/main//321/201omponents/Flex/index.js +0 -4
- package/build/main//321/201omponents/Flex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/types.d.ts +0 -15
- package/build/main//321/201omponents/Flex/types.js +0 -2
- package/build/main//321/201omponents/Flex/types.js.map +0 -1
- package/build/main//321/201omponents/Header/Header.d.ts +0 -5
- package/build/main//321/201omponents/Header/Header.js +0 -124
- package/build/main//321/201omponents/Header/Header.js.map +0 -1
- package/build/main//321/201omponents/Header/index.d.ts +0 -1
- package/build/main//321/201omponents/Header/index.js +0 -2
- package/build/main//321/201omponents/Header/index.js.map +0 -1
- package/build/main//321/201omponents/Header/types.d.ts +0 -46
- package/build/main//321/201omponents/Header/types.js +0 -2
- package/build/main//321/201omponents/Header/types.js.map +0 -1
- package/build/main//321/201omponents/Input/Input.d.ts +0 -4
- package/build/main//321/201omponents/Input/Input.js +0 -207
- package/build/main//321/201omponents/Input/Input.js.map +0 -1
- package/build/main//321/201omponents/Input/index.d.ts +0 -1
- package/build/main//321/201omponents/Input/index.js +0 -2
- package/build/main//321/201omponents/Input/index.js.map +0 -1
- package/build/main//321/201omponents/Input/types.d.ts +0 -29
- package/build/main//321/201omponents/Input/types.js +0 -2
- package/build/main//321/201omponents/Input/types.js.map +0 -1
- package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
- package/build/main//321/201omponents/ListItem/ListItem.js +0 -208
- package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
- package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
- package/build/main//321/201omponents/ListItem/index.js +0 -2
- package/build/main//321/201omponents/ListItem/index.js.map +0 -1
- package/build/main//321/201omponents/ListItem/types.d.ts +0 -42
- package/build/main//321/201omponents/ListItem/types.js +0 -2
- package/build/main//321/201omponents/ListItem/types.js.map +0 -1
- package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
- package/build/main//321/201omponents/Loader/Loader.js +0 -44
- package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
- package/build/main//321/201omponents/Loader/index.d.ts +0 -1
- package/build/main//321/201omponents/Loader/index.js +0 -2
- package/build/main//321/201omponents/Loader/index.js.map +0 -1
- package/build/main//321/201omponents/Loader/types.d.ts +0 -18
- package/build/main//321/201omponents/Loader/types.js +0 -2
- package/build/main//321/201omponents/Loader/types.js.map +0 -1
- package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
- package/build/main//321/201omponents/Modal/Modal.js +0 -143
- package/build/main//321/201omponents/Modal/Modal.js.map +0 -1
- package/build/main//321/201omponents/Modal/index.d.ts +0 -1
- package/build/main//321/201omponents/Modal/index.js +0 -2
- package/build/main//321/201omponents/Modal/index.js.map +0 -1
- package/build/main//321/201omponents/Modal/types.d.ts +0 -34
- package/build/main//321/201omponents/Modal/types.js +0 -2
- package/build/main//321/201omponents/Modal/types.js.map +0 -1
- package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
- package/build/main//321/201omponents/Notification/Notification.js +0 -217
- package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
- package/build/main//321/201omponents/Notification/index.d.ts +0 -1
- package/build/main//321/201omponents/Notification/index.js +0 -2
- package/build/main//321/201omponents/Notification/index.js.map +0 -1
- package/build/main//321/201omponents/Notification/types.d.ts +0 -45
- package/build/main//321/201omponents/Notification/types.js +0 -2
- package/build/main//321/201omponents/Notification/types.js.map +0 -1
- package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
- package/build/main//321/201omponents/Profile/Profile.js +0 -42
- package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
- package/build/main//321/201omponents/Profile/index.d.ts +0 -1
- package/build/main//321/201omponents/Profile/index.js +0 -2
- package/build/main//321/201omponents/Profile/index.js.map +0 -1
- package/build/main//321/201omponents/Profile/types.d.ts +0 -14
- package/build/main//321/201omponents/Profile/types.js +0 -2
- package/build/main//321/201omponents/Profile/types.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
- package/build/main//321/201omponents/ProgressBar/index.js +0 -2
- package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -7
- package/build/main//321/201omponents/ProgressBar/types.js +0 -2
- package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
- package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -37
- package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
- package/build/main//321/201omponents/RadioButton/index.js +0 -2
- package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/types.d.ts +0 -12
- package/build/main//321/201omponents/RadioButton/types.js +0 -2
- package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -5
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -63
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
- package/build/main//321/201omponents/ScrollBar/index.js +0 -2
- package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -20
- package/build/main//321/201omponents/ScrollBar/types.js +0 -2
- package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -4
- package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -59
- package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
- package/build/main//321/201omponents/Skeleton/index.js +0 -2
- package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/types.d.ts +0 -17
- package/build/main//321/201omponents/Skeleton/types.js +0 -2
- package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
- package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
- package/build/main//321/201omponents/Stories/Stories.js +0 -300
- package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
- package/build/main//321/201omponents/Stories/index.d.ts +0 -1
- package/build/main//321/201omponents/Stories/index.js +0 -2
- package/build/main//321/201omponents/Stories/index.js.map +0 -1
- package/build/main//321/201omponents/Stories/types.d.ts +0 -70
- package/build/main//321/201omponents/Stories/types.js +0 -16
- package/build/main//321/201omponents/Stories/types.js.map +0 -1
- package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
- package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
- package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
- package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
- package/build/main//321/201omponents/Switcher/index.js +0 -2
- package/build/main//321/201omponents/Switcher/index.js.map +0 -1
- package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
- package/build/main//321/201omponents/Switcher/types.js +0 -2
- package/build/main//321/201omponents/Switcher/types.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
- package/build/main//321/201omponents/SyncLoader/index.js +0 -2
- package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -9
- package/build/main//321/201omponents/SyncLoader/types.js +0 -2
- package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
- package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
- package/build/main//321/201omponents/Textarea/Textarea.js +0 -96
- package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
- package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
- package/build/main//321/201omponents/Textarea/index.js +0 -2
- package/build/main//321/201omponents/Textarea/index.js.map +0 -1
- package/build/main//321/201omponents/Textarea/types.d.ts +0 -12
- package/build/main//321/201omponents/Textarea/types.js +0 -2
- package/build/main//321/201omponents/Textarea/types.js.map +0 -1
- package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
- package/build/main//321/201omponents/Toggle/Toggle.js +0 -38
- package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
- package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
- package/build/main//321/201omponents/Toggle/index.js +0 -2
- package/build/main//321/201omponents/Toggle/index.js.map +0 -1
- package/build/main//321/201omponents/Toggle/types.d.ts +0 -12
- package/build/main//321/201omponents/Toggle/types.js +0 -2
- package/build/main//321/201omponents/Toggle/types.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -82
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -121
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.d.ts +0 -3
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js +0 -100
- package/build/main//321/201omponents/UserDropdown/MultiValueLabel/MultiValueLabel.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/Option/Option.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/Option/Option.js +0 -91
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -5
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -447
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -98
- package/build/main//321/201omponents/UserDropdown/helpers.js +0 -93
- package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
- package/build/main//321/201omponents/UserDropdown/index.js +0 -2
- package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
- package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -80
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -200
- package/build/main//321/201omponents/UserDropdown/types.js +0 -2
- package/build/main//321/201omponents/UserDropdown/types.js.map +0 -1
- package/build/main//321/201omponents/types.d.ts +0 -2
- package/build/main//321/201omponents/types.js +0 -2
- package/build/main//321/201omponents/types.js.map +0 -1
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { useEffect, useRef, useState } from 'react';
|
|
14
|
-
import Draggable from 'react-draggable';
|
|
15
|
-
import classNames from 'classnames';
|
|
16
|
-
import Modal from '../Modal';
|
|
17
|
-
import { EVENT_LISTENER_TYPES } from '../../constants';
|
|
18
|
-
import '../../styles/styles.scss';
|
|
19
|
-
var DEFAULT_DRAGGABLE_PADDING = {
|
|
20
|
-
top: 20,
|
|
21
|
-
bottom: 20,
|
|
22
|
-
right: 20,
|
|
23
|
-
left: 20,
|
|
24
|
-
};
|
|
25
|
-
var OFFSET_POPUP_X_BY_CLICK = 30;
|
|
26
|
-
var OFFSET_POPUP_Y_BY_CLICK = 10;
|
|
27
|
-
var DEFAULT_POPUP_POSITION = { x: 40, y: 40 };
|
|
28
|
-
var CONTEXT_MENU_OFFSET = 40;
|
|
29
|
-
var ADDITIONAL_CONTEXT_MENU_OFFSET_X = 60;
|
|
30
|
-
var ADDITIONAL_CONTEXT_MENU_OFFSET_Y = 40;
|
|
31
|
-
var DRAGGABLE_KEY = 'handle';
|
|
32
|
-
var calculateNewX = function (_a) {
|
|
33
|
-
var currentX = _a.currentX, leftPadding = _a.leftPadding, rightPadding = _a.rightPadding, zoneWidth = _a.zoneWidth, popupWidth = _a.popupWidth;
|
|
34
|
-
var maxPointX = zoneWidth - popupWidth - rightPadding;
|
|
35
|
-
if (currentX < leftPadding)
|
|
36
|
-
return leftPadding;
|
|
37
|
-
if (currentX > maxPointX)
|
|
38
|
-
return maxPointX;
|
|
39
|
-
return currentX;
|
|
40
|
-
};
|
|
41
|
-
var calculateNewY = function (_a) {
|
|
42
|
-
var currentY = _a.currentY, topPadding = _a.topPadding, bottomPadding = _a.bottomPadding, zoneHeight = _a.zoneHeight, popupHeight = _a.popupHeight;
|
|
43
|
-
var maxPointY = zoneHeight - popupHeight - bottomPadding;
|
|
44
|
-
if (currentY < topPadding)
|
|
45
|
-
return topPadding;
|
|
46
|
-
if (currentY > maxPointY)
|
|
47
|
-
return maxPointY;
|
|
48
|
-
return currentY;
|
|
49
|
-
};
|
|
50
|
-
var calculateNewAdditionalPopupX = function (_a) {
|
|
51
|
-
var currentX = _a.currentX, rightPadding = _a.rightPadding, zoneWidth = _a.zoneWidth, popupWidth = _a.popupWidth, _b = _a.additionalPopupWidth, additionalPopupWidth = _b === void 0 ? 0 : _b;
|
|
52
|
-
var rightOpenedPointX = currentX + popupWidth;
|
|
53
|
-
var offset = 0.2;
|
|
54
|
-
var leftOpenedPointX = currentX - additionalPopupWidth + offset;
|
|
55
|
-
var maxPointX = zoneWidth - rightOpenedPointX - additionalPopupWidth;
|
|
56
|
-
return maxPointX >= rightPadding ? rightOpenedPointX : leftOpenedPointX;
|
|
57
|
-
};
|
|
58
|
-
var calculateNewAdditionalPopupY = function (_a) {
|
|
59
|
-
var currentY = _a.currentY, minPointedY = _a.topPadding, bottomPadding = _a.bottomPadding, zoneHeight = _a.zoneHeight, popupHeight = _a.popupHeight, _b = _a.additionalPopupHeight, additionalPopupHeight = _b === void 0 ? 0 : _b;
|
|
60
|
-
var middleOpenedPointY = currentY + popupHeight / 2 - additionalPopupHeight / 2;
|
|
61
|
-
var bottomOpenedPointY = currentY + popupHeight - additionalPopupHeight;
|
|
62
|
-
var maxPointedY = zoneHeight - bottomPadding;
|
|
63
|
-
if (middleOpenedPointY + additionalPopupHeight <= maxPointedY && middleOpenedPointY >= minPointedY)
|
|
64
|
-
return middleOpenedPointY;
|
|
65
|
-
if (currentY + additionalPopupHeight <= maxPointedY)
|
|
66
|
-
return currentY;
|
|
67
|
-
if (bottomOpenedPointY >= minPointedY)
|
|
68
|
-
return bottomOpenedPointY;
|
|
69
|
-
return minPointedY;
|
|
70
|
-
};
|
|
71
|
-
var generateMaxWidth = function (maxPopupWidth) { return ({ maxWidth: maxPopupWidth ? "".concat(maxPopupWidth, "px") : 'auto' }); };
|
|
72
|
-
var renderAdditionalPopup = function (_a) {
|
|
73
|
-
var additionalPopup = _a.additionalPopup, handleCloseModal = _a.handleCloseModal, additionalPopupRef = _a.additionalPopupRef, additionalPopupPosition = _a.additionalPopupPosition, additionalContextMenuProps = _a.additionalContextMenuProps;
|
|
74
|
-
if (!additionalPopup)
|
|
75
|
-
return null;
|
|
76
|
-
var _b = additionalPopupPosition || {}, _c = _b.x, x = _c === void 0 ? 0 : _c, _d = _b.y, y = _d === void 0 ? 0 : _d;
|
|
77
|
-
var popupContent = additionalPopup.popupContent, maxPopupHeight = additionalPopup.maxPopupHeight, maxPopupWidth = additionalPopup.maxPopupWidth, popupClassName = additionalPopup.popupClassName, bottomContent = additionalPopup.bottomContent, title = additionalPopup.title, titleStyles = additionalPopup.titleStyles, isResetPaddingBottom = additionalPopup.isResetPaddingBottom;
|
|
78
|
-
var maxWidth = generateMaxWidth(maxPopupWidth);
|
|
79
|
-
return (_jsx("div", __assign({ ref: additionalPopupRef, className: classNames("smartapp-draggable-popup__popup smartapp-draggable-popup__additional-popup ".concat(popupClassName), {
|
|
80
|
-
'invisible-content': !additionalPopupPosition,
|
|
81
|
-
}), style: __assign(__assign({}, maxWidth), { top: y, left: x }) }, { children: _jsx(Modal, { isModalOpen: true, content: popupContent, handleCloseModal: handleCloseModal, modalMaxHeight: maxPopupHeight, styles: maxWidth, title: title, titleStyles: titleStyles, className: "smartapp-draggable-popup__modal", isPopup: true, bottomContent: bottomContent, contextMenuProps: additionalContextMenuProps || undefined, isResetPaddingBottom: isResetPaddingBottom }) })));
|
|
82
|
-
};
|
|
83
|
-
var handleContextMenu = function (_a) {
|
|
84
|
-
var currentContextMenuProps = _a.currentContextMenuProps, setCurrentContextMenuProps = _a.setCurrentContextMenuProps, x = _a.x, y = _a.y, _b = _a.xOffset, xOffset = _b === void 0 ? 0 : _b, _c = _a.yOffset, yOffset = _c === void 0 ? 0 : _c, contextMenuProps = _a.contextMenuProps;
|
|
85
|
-
if (contextMenuProps) {
|
|
86
|
-
var _d = contextMenuProps.menuWidth, menuWidth = _d === void 0 ? 0 : _d;
|
|
87
|
-
return setCurrentContextMenuProps(__assign(__assign({}, contextMenuProps), { position: { x: x + xOffset - menuWidth, y: y + yOffset } }));
|
|
88
|
-
}
|
|
89
|
-
return currentContextMenuProps && setCurrentContextMenuProps(null);
|
|
90
|
-
};
|
|
91
|
-
var DraggablePopup = function (_a) {
|
|
92
|
-
var draggableZoneRef = _a.draggableZoneRef, popupContent = _a.popupContent, isPopupOpen = _a.isPopupOpen, handleClose = _a.handleClose, popupCoords = _a.popupCoords, _b = _a.title, title = _b === void 0 ? '' : _b, bottomContent = _a.bottomContent, _c = _a.dropZonePadding, dropZonePadding = _c === void 0 ? DEFAULT_DRAGGABLE_PADDING : _c, _d = _a.offsetScrollY, offsetScrollY = _d === void 0 ? 0 : _d, handleChangeCoords = _a.handleChangeCoords, _e = _a.offsetPopupByClick, offsetPopupByClick = _e === void 0 ? { offsetPopupXByClick: OFFSET_POPUP_X_BY_CLICK, offsetPopupYByClick: OFFSET_POPUP_Y_BY_CLICK } : _e, maxPopupHeight = _a.maxPopupHeight, contextMenuProps = _a.contextMenuProps, _f = _a.popupClassName, popupClassName = _f === void 0 ? '' : _f, _g = _a.isClosableOutside, isClosableOutside = _g === void 0 ? true : _g, maxPopupWidth = _a.maxPopupWidth, _h = _a.isDisabled, isDisabled = _h === void 0 ? false : _h, additionalPopup = _a.additionalPopup, handleClickOutside = _a.handleClickOutside, titleStyles = _a.titleStyles, isResetPaddingBottom = _a.isResetPaddingBottom;
|
|
93
|
-
var _j = useState(null), draggableZoneInfo = _j[0], setDraggableZoneInfo = _j[1];
|
|
94
|
-
var _k = useState(null), popupPosition = _k[0], setPopupPosition = _k[1];
|
|
95
|
-
var _l = useState(false), wasDraggable = _l[0], setWasDraggable = _l[1];
|
|
96
|
-
var _m = useState(null), currentContextMenuProps = _m[0], setCurrentContextMenuProps = _m[1];
|
|
97
|
-
var _o = useState(false), isMousedownInside = _o[0], setIsMousedownInside = _o[1];
|
|
98
|
-
var _p = useState(null), additionalPopupPosition = _p[0], setAdditionalPopupPosition = _p[1];
|
|
99
|
-
var _q = useState(null), additionalContextMenuProps = _q[0], setAdditionalContextMenuProps = _q[1];
|
|
100
|
-
var _r = draggableZoneInfo || {}, width = _r.width, _s = _r.height, height = _s === void 0 ? 0 : _s, top = _r.top, bottom = _r.bottom, right = _r.right, left = _r.left;
|
|
101
|
-
var popupRef = useRef(null);
|
|
102
|
-
var additionalPopupRef = useRef(null);
|
|
103
|
-
useEffect(function () {
|
|
104
|
-
var topPadding = dropZonePadding.top, bottomPadding = dropZonePadding.bottom, leftPadding = dropZonePadding.left, rightPadding = dropZonePadding.right;
|
|
105
|
-
var draggableZoneRefCurrent = draggableZoneRef.current;
|
|
106
|
-
var popupRefCurrent = popupRef.current;
|
|
107
|
-
var additionalPopupRefCurrent = additionalPopupRef.current;
|
|
108
|
-
var updatePosition = function () {
|
|
109
|
-
if (!draggableZoneRefCurrent || !popupRefCurrent || !popupCoords)
|
|
110
|
-
return;
|
|
111
|
-
var _a = draggableZoneRefCurrent.getBoundingClientRect(), zoneWidth = _a.width, zoneHeight = _a.height, topOffsetByPage = _a.top, leftOffsetByPage = _a.left;
|
|
112
|
-
var _b = popupRefCurrent.getBoundingClientRect(), popupWidth = _b.width, popupHeight = _b.height;
|
|
113
|
-
var _c = (additionalPopupRefCurrent === null || additionalPopupRefCurrent === void 0 ? void 0 : additionalPopupRefCurrent.getBoundingClientRect()) || {}, _d = _c.width, additionalPopupWidth = _d === void 0 ? 0 : _d, _e = _c.height, additionalPopupHeight = _e === void 0 ? 0 : _e;
|
|
114
|
-
var x = popupCoords.x, y = popupCoords.y;
|
|
115
|
-
var offsetPopupXByClick = offsetPopupByClick.offsetPopupXByClick, offsetPopupYByClick = offsetPopupByClick.offsetPopupYByClick;
|
|
116
|
-
var currentOffsetY = wasDraggable ? 0 : offsetPopupYByClick - topOffsetByPage;
|
|
117
|
-
var currentOffsetX = wasDraggable ? 0 : offsetPopupXByClick - leftOffsetByPage;
|
|
118
|
-
var currentZoneHeight = zoneHeight + offsetScrollY;
|
|
119
|
-
var maxHeight = popupHeight;
|
|
120
|
-
var newX = calculateNewX({ currentX: x + currentOffsetX, leftPadding: leftPadding, rightPadding: rightPadding, zoneWidth: zoneWidth, popupWidth: popupWidth });
|
|
121
|
-
var newY = calculateNewY({ currentY: y + currentOffsetY, topPadding: topPadding, bottomPadding: bottomPadding, zoneHeight: zoneHeight, popupHeight: popupHeight });
|
|
122
|
-
setPopupPosition({ x: newX, y: newY });
|
|
123
|
-
if (additionalPopupRefCurrent) {
|
|
124
|
-
var contextMenuProps_1 = (additionalPopup || {}).contextMenuProps;
|
|
125
|
-
var newAdditionalPopupX = calculateNewAdditionalPopupX({
|
|
126
|
-
currentX: newX,
|
|
127
|
-
leftPadding: leftPadding,
|
|
128
|
-
rightPadding: rightPadding,
|
|
129
|
-
zoneWidth: zoneWidth,
|
|
130
|
-
popupWidth: popupWidth,
|
|
131
|
-
additionalPopupWidth: additionalPopupWidth,
|
|
132
|
-
});
|
|
133
|
-
var newAdditionalPopupY = calculateNewAdditionalPopupY({
|
|
134
|
-
currentY: newY,
|
|
135
|
-
topPadding: 0,
|
|
136
|
-
bottomPadding: bottomPadding,
|
|
137
|
-
zoneHeight: zoneHeight,
|
|
138
|
-
popupHeight: popupHeight,
|
|
139
|
-
additionalPopupHeight: additionalPopupHeight,
|
|
140
|
-
});
|
|
141
|
-
handleContextMenu({
|
|
142
|
-
contextMenuProps: contextMenuProps_1,
|
|
143
|
-
currentContextMenuProps: additionalContextMenuProps,
|
|
144
|
-
setCurrentContextMenuProps: setAdditionalContextMenuProps,
|
|
145
|
-
x: newAdditionalPopupX,
|
|
146
|
-
y: newAdditionalPopupY,
|
|
147
|
-
yOffset: topOffsetByPage + ADDITIONAL_CONTEXT_MENU_OFFSET_Y,
|
|
148
|
-
xOffset: additionalPopupWidth + ADDITIONAL_CONTEXT_MENU_OFFSET_X + popupWidth,
|
|
149
|
-
});
|
|
150
|
-
return setAdditionalPopupPosition({ x: newAdditionalPopupX, y: newAdditionalPopupY });
|
|
151
|
-
}
|
|
152
|
-
handleContextMenu({
|
|
153
|
-
contextMenuProps: contextMenuProps,
|
|
154
|
-
currentContextMenuProps: currentContextMenuProps,
|
|
155
|
-
setCurrentContextMenuProps: setCurrentContextMenuProps,
|
|
156
|
-
x: popupWidth - CONTEXT_MENU_OFFSET,
|
|
157
|
-
y: CONTEXT_MENU_OFFSET,
|
|
158
|
-
});
|
|
159
|
-
setDraggableZoneInfo({
|
|
160
|
-
width: zoneWidth,
|
|
161
|
-
height: currentZoneHeight,
|
|
162
|
-
top: topPadding,
|
|
163
|
-
right: zoneWidth - popupWidth - rightPadding,
|
|
164
|
-
left: leftPadding,
|
|
165
|
-
bottom: zoneHeight - maxHeight - bottomPadding,
|
|
166
|
-
});
|
|
167
|
-
};
|
|
168
|
-
var resizeObserver = new ResizeObserver(updatePosition);
|
|
169
|
-
if (popupRefCurrent)
|
|
170
|
-
resizeObserver.observe(popupRefCurrent);
|
|
171
|
-
if (additionalPopupRefCurrent)
|
|
172
|
-
resizeObserver.observe(additionalPopupRefCurrent);
|
|
173
|
-
return function () {
|
|
174
|
-
resizeObserver.disconnect();
|
|
175
|
-
};
|
|
176
|
-
/* eslint-disable-next-line */
|
|
177
|
-
}, [isPopupOpen, draggableZoneRef, popupRef, popupCoords, dropZonePadding, offsetScrollY, wasDraggable, contextMenuProps, additionalPopup]);
|
|
178
|
-
useEffect(function () {
|
|
179
|
-
var popupRefCurrent = popupRef.current;
|
|
180
|
-
var additionalPopupRefCurrent = additionalPopupRef.current;
|
|
181
|
-
var checkIfClickedOutside = function (e) {
|
|
182
|
-
var target = e.target;
|
|
183
|
-
if (isPopupOpen && isClosableOutside && popupRefCurrent && !popupRefCurrent.contains(target)) {
|
|
184
|
-
if (!(additionalPopupRefCurrent === null || additionalPopupRefCurrent === void 0 ? void 0 : additionalPopupRefCurrent.contains(target)) || !additionalPopupRefCurrent) {
|
|
185
|
-
handleClickOutside ? handleClickOutside() : handleClose();
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
};
|
|
189
|
-
var checkIfMousedownInside = function (e) {
|
|
190
|
-
var target = e.target;
|
|
191
|
-
var isInsidePopup = !!(popupRefCurrent === null || popupRefCurrent === void 0 ? void 0 : popupRefCurrent.contains(target));
|
|
192
|
-
var isInsideAdditionalPopup = !!(additionalPopupRefCurrent === null || additionalPopupRefCurrent === void 0 ? void 0 : additionalPopupRefCurrent.contains(target));
|
|
193
|
-
setIsMousedownInside(isInsidePopup || isInsideAdditionalPopup);
|
|
194
|
-
};
|
|
195
|
-
var handleClick = function (e) { return !isMousedownInside && checkIfClickedOutside(e); };
|
|
196
|
-
document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.click, handleClick, true);
|
|
197
|
-
document === null || document === void 0 ? void 0 : document.addEventListener(EVENT_LISTENER_TYPES.mousedown, checkIfMousedownInside, true);
|
|
198
|
-
return function () {
|
|
199
|
-
document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.click, handleClick, true);
|
|
200
|
-
document === null || document === void 0 ? void 0 : document.removeEventListener(EVENT_LISTENER_TYPES.mousedown, checkIfMousedownInside, true);
|
|
201
|
-
};
|
|
202
|
-
}, [isPopupOpen, handleClose, isClosableOutside, handleClickOutside, isMousedownInside]);
|
|
203
|
-
if (!isPopupOpen || !draggableZoneRef)
|
|
204
|
-
return null;
|
|
205
|
-
var handleDragStop = function (_a) {
|
|
206
|
-
var x = _a.x, y = _a.y;
|
|
207
|
-
!wasDraggable && setWasDraggable(true);
|
|
208
|
-
handleChangeCoords({ x: x, y: y });
|
|
209
|
-
setPopupPosition({ x: x, y: y });
|
|
210
|
-
};
|
|
211
|
-
var maxWidth = generateMaxWidth(maxPopupWidth);
|
|
212
|
-
var isDisabledDraggable = isDisabled || !!additionalPopup;
|
|
213
|
-
return (_jsxs("div", __assign({ style: { width: width, height: height }, className: "smartapp-draggable-popup" }, { children: [_jsx(Draggable, __assign({ handle: ".".concat(DRAGGABLE_KEY), onStop: function (_, data) { return handleDragStop(data); }, position: popupPosition || DEFAULT_POPUP_POSITION, bounds: { top: top, right: right, left: left, bottom: bottom }, disabled: isDisabledDraggable }, { children: _jsx("div", __assign({ className: classNames("smartapp-draggable-popup__popup-container", { 'invisible-content': !popupPosition }) }, { children: _jsx("div", __assign({ className: "smartapp-draggable-popup__popup ".concat(popupClassName), ref: popupRef, style: maxWidth }, { children: _jsx(Modal, { isModalOpen: isPopupOpen, content: popupContent, isPopup: true, handleCloseModal: handleClose, title: title, bottomContent: bottomContent, className: "smartapp-draggable-popup__modal", modalMaxHeight: maxPopupHeight, titleStyles: titleStyles, contextMenuProps: currentContextMenuProps || undefined, titleClassName: "".concat(DRAGGABLE_KEY, " ").concat(!isDisabledDraggable && 'cm'), styles: maxWidth, isResetPaddingBottom: isResetPaddingBottom }) })) })) })), additionalPopup &&
|
|
214
|
-
renderAdditionalPopup({
|
|
215
|
-
additionalPopup: additionalPopup,
|
|
216
|
-
handleCloseModal: handleClose,
|
|
217
|
-
additionalPopupRef: additionalPopupRef,
|
|
218
|
-
additionalPopupPosition: additionalPopupPosition,
|
|
219
|
-
additionalContextMenuProps: additionalContextMenuProps,
|
|
220
|
-
})] })));
|
|
221
|
-
};
|
|
222
|
-
export default DraggablePopup;
|
|
223
|
-
//# sourceMappingURL=DraggablePopup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DraggablePopup.js","sourceRoot":"","sources":["../../../../src/сomponents/DraggablePopup/DraggablePopup.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1D,OAAO,SAA4B,MAAM,iBAAiB,CAAA;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,UAAU,CAAA;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAWtD,OAAO,0BAA0B,CAAA;AAEjC,IAAM,yBAAyB,GAAG;IAChC,GAAG,EAAE,EAAE;IACP,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,EAAE;CACT,CAAA;AAED,IAAM,uBAAuB,GAAG,EAAE,CAAA;AAClC,IAAM,uBAAuB,GAAG,EAAE,CAAA;AAClC,IAA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GAC1C,IACE,IACF,IACI,EACX,eAAe;gBACd,qBAAqB,CAAC;oBACpB,eAAe,iBAAA;oBACf,gBAAgB,EAAE,WAAW;oBAC7B,kBAAkB,oBAAA;oBAClB,uBAAuB,yBAAA;oBACvB,0BAA0B,4BAAA;iBAC3B,CAAC,KACA,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './DraggablePopup';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/DraggablePopup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement, RefObject } from 'react';
|
|
2
|
-
import { IContextMenuProps } from '../ContextMenu/types';
|
|
3
|
-
import { TStyles } from '../../constants';
|
|
4
|
-
export type TPopupPosition = {
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
};
|
|
8
|
-
export type TDraggablePadding = {
|
|
9
|
-
top: number;
|
|
10
|
-
bottom: number;
|
|
11
|
-
left: number;
|
|
12
|
-
right: number;
|
|
13
|
-
};
|
|
14
|
-
export type TOffsetPopupByClick = {
|
|
15
|
-
offsetPopupXByClick: number;
|
|
16
|
-
offsetPopupYByClick: number;
|
|
17
|
-
};
|
|
18
|
-
export type TDraggableZoneInfo = {
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
top: number;
|
|
22
|
-
right: number;
|
|
23
|
-
bottom: number;
|
|
24
|
-
left: number;
|
|
25
|
-
};
|
|
26
|
-
export type TCalculateNewX = {
|
|
27
|
-
currentX: number;
|
|
28
|
-
leftPadding: number;
|
|
29
|
-
rightPadding: number;
|
|
30
|
-
zoneWidth: number;
|
|
31
|
-
popupWidth: number;
|
|
32
|
-
additionalPopupWidth?: number;
|
|
33
|
-
};
|
|
34
|
-
export type TCalculateNewY = {
|
|
35
|
-
currentY: number;
|
|
36
|
-
topPadding: number;
|
|
37
|
-
bottomPadding: number;
|
|
38
|
-
zoneHeight: number;
|
|
39
|
-
popupHeight: number;
|
|
40
|
-
additionalPopupHeight?: number;
|
|
41
|
-
};
|
|
42
|
-
export type TCurrentContextMenu = IContextMenuProps & {
|
|
43
|
-
openMenu: () => void;
|
|
44
|
-
};
|
|
45
|
-
export type TAdditionalPopup = Omit<IDraggablePopup, 'additionalPopup' | 'isDisabled' | 'isClosableOutside' | 'handleChangeCoords' | 'offsetPopupByClick' | 'offsetScrollY' | 'dropZonePadding' | 'handleClose' | 'isPopupOpen' | 'popupCoords' | 'draggableZoneRef' | 'handleClickOutside'>;
|
|
46
|
-
export type TContextMenuProps = Omit<IContextMenuProps, 'position'> & {
|
|
47
|
-
openMenu: (event?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
48
|
-
};
|
|
49
|
-
export type THandleContextMenu = {
|
|
50
|
-
currentContextMenuProps: TCurrentContextMenu | null;
|
|
51
|
-
setCurrentContextMenuProps: (contextMenuProps: TCurrentContextMenu | null) => void;
|
|
52
|
-
x: number;
|
|
53
|
-
y: number;
|
|
54
|
-
xOffset?: number;
|
|
55
|
-
yOffset?: number;
|
|
56
|
-
contextMenuProps: TContextMenuProps | undefined;
|
|
57
|
-
};
|
|
58
|
-
export type TRenderAdditionalPopup = {
|
|
59
|
-
additionalPopup: TAdditionalPopup;
|
|
60
|
-
handleCloseModal: () => void;
|
|
61
|
-
additionalPopupRef: RefObject<HTMLDivElement | null>;
|
|
62
|
-
additionalPopupPosition: TPopupPosition | null;
|
|
63
|
-
additionalContextMenuProps?: TCurrentContextMenu | null;
|
|
64
|
-
};
|
|
65
|
-
export interface IDraggablePopup {
|
|
66
|
-
draggableZoneRef: RefObject<HTMLDivElement | null>;
|
|
67
|
-
popupCoords: TPopupPosition;
|
|
68
|
-
popupContent: ReactElement;
|
|
69
|
-
isPopupOpen: boolean;
|
|
70
|
-
handleClose: () => void;
|
|
71
|
-
title?: string;
|
|
72
|
-
bottomContent?: ReactElement;
|
|
73
|
-
dropZonePadding?: TDraggablePadding;
|
|
74
|
-
offsetScrollY?: number;
|
|
75
|
-
offsetPopupByClick?: TOffsetPopupByClick;
|
|
76
|
-
handleChangeCoords: (coords: TPopupPosition) => void;
|
|
77
|
-
maxPopupHeight?: number;
|
|
78
|
-
popupClassName?: string;
|
|
79
|
-
contextMenuProps?: TContextMenuProps;
|
|
80
|
-
isClosableOutside?: boolean;
|
|
81
|
-
maxPopupWidth?: number;
|
|
82
|
-
isDisabled?: boolean;
|
|
83
|
-
additionalPopup?: TAdditionalPopup;
|
|
84
|
-
handleClickOutside?: () => void;
|
|
85
|
-
titleStyles?: TStyles;
|
|
86
|
-
isResetPaddingBottom?: boolean;
|
|
87
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/DraggablePopup/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import classNames from 'classnames';
|
|
14
|
-
import { generateColor } from '../../helpers';
|
|
15
|
-
import { COLORS } from '../../constants';
|
|
16
|
-
import { ReactComponent as ErrorIcon } from '../../assets/icons/error.svg';
|
|
17
|
-
import '../../styles/styles.scss';
|
|
18
|
-
var Error = function (_a) {
|
|
19
|
-
var _b = _a.title, title = _b === void 0 ? 'Ошибка' : _b, _c = _a.text, text = _c === void 0 ? 'Попробуйте еще раз' : _c, _d = _a.width, width = _d === void 0 ? 100 : _d, className = _a.className, styles = _a.styles, iconColor = _a.iconColor;
|
|
20
|
-
return (_jsxs("div", __assign({ className: classNames('smartapp-error', className), style: __assign({ width: "".concat(width, "%") }, styles) }, { children: [_jsx("div", __assign({ className: "smartapp-error__icon" }, { children: _jsx(ErrorIcon, { style: { color: generateColor(iconColor, COLORS.gray) } }) })), _jsx("p", __assign({ className: "smartapp-error__title" }, { children: title })), _jsx("p", __assign({ className: "smartapp-error__text" }, { children: text }))] })));
|
|
21
|
-
};
|
|
22
|
-
export default Error;
|
|
23
|
-
//# sourceMappingURL=Error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Error.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/Error.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,0BAA0B,CAAA;AAEjC,IAAM,KAAK,GAAG,UAAC,EAAyG;QAAvG,aAAgB,EAAhB,KAAK,mBAAG,QAAQ,KAAA,EAAE,YAA2B,EAA3B,IAAI,mBAAG,oBAAoB,KAAA,EAAE,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EAAE,SAAS,eAAA,EAAE,MAAM,YAAA,EAAE,SAAS,eAAA;IAAoB,OAAA,CAC3H,wBAAK,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,SAAS,CAAC,EAAE,KAAK,aAAI,KAAK,EAAE,UAAG,KAAK,MAAG,IAAK,MAAM,kBAC7F,uBAAK,SAAS,EAAC,sBAAsB,gBACnC,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAI,IAClE,EACN,qBAAG,SAAS,EAAC,uBAAuB,gBAAE,KAAK,IAAK,EAChD,qBAAG,SAAS,EAAC,sBAAsB,gBAAE,IAAI,IAAK,KAC1C,CACP;AAR4H,CAQ5H,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Error';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Error/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import classNames from 'classnames';
|
|
25
|
-
import { ROW } from '../../constants';
|
|
26
|
-
var ALIGN_CLASSES = {
|
|
27
|
-
start: 'align-start',
|
|
28
|
-
end: 'align-end',
|
|
29
|
-
center: 'align-center',
|
|
30
|
-
};
|
|
31
|
-
var JUSTIFY_CLASSES = {
|
|
32
|
-
start: 'justify-start',
|
|
33
|
-
end: 'justify-end',
|
|
34
|
-
center: 'justify-center',
|
|
35
|
-
between: 'justify-between',
|
|
36
|
-
};
|
|
37
|
-
var DIRECTION_CLASSES = {
|
|
38
|
-
row: 'direction-row',
|
|
39
|
-
column: 'direction-column',
|
|
40
|
-
};
|
|
41
|
-
var START = 'start';
|
|
42
|
-
var SMARTAPP_FLEX = 'smartapp-flex';
|
|
43
|
-
export var Flex = function (_a) {
|
|
44
|
-
var className = _a.className, children = _a.children, _b = _a.justify, justify = _b === void 0 ? START : _b, _c = _a.direction, direction = _c === void 0 ? ROW : _c, _d = _a.align, align = _d === void 0 ? START : _d, gap = _a.gap, _e = _a.wrap, wrap = _e === void 0 ? false : _e, _f = _a.fullWidth, fullWidth = _f === void 0 ? false : _f, props = __rest(_a, ["className", "children", "justify", "direction", "align", "gap", "wrap", "fullWidth"]);
|
|
45
|
-
var mods = { wrap: wrap, 'full-width': fullWidth };
|
|
46
|
-
var classes = [className, JUSTIFY_CLASSES[justify], ALIGN_CLASSES[align], DIRECTION_CLASSES[direction]];
|
|
47
|
-
return (_jsx("div", __assign({ style: { gap: "".concat(gap, "px") }, className: classNames(SMARTAPP_FLEX, mods, classes) }, props, { children: children })));
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=Flex.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Flex.js","sourceRoot":"","sources":["../../../../src/сomponents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,aAAa,EAAE,IAAI,EAAE,OAAO,CAAC,IAAM,KAAK,cAC5F,QAAQ,IACL,CACP,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Flex } from '..';
|
|
14
|
-
import { ROW } from '../../../constants';
|
|
15
|
-
export var HFlex = function (props) { return _jsx(Flex, __assign({}, props, { direction: ROW })); };
|
|
16
|
-
//# sourceMappingURL=HFlex.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HFlex.js","sourceRoot":"","sources":["../../../../../src/сomponents/Flex/HFlex/HFlex.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AAEzB,OAAO,EAAa,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAInD,MAAM,CAAC,IAAM,KAAK,GAAG,UAAC,KAAa,IAAK,OAAA,KAAC,IAAI,eAAK,KAAK,IAAE,SAAS,EAAE,GAAG,IAAI,EAAnC,CAAmC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { HFlex } from './HFlex';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/сomponents/Flex/HFlex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Flex } from '..';
|
|
14
|
-
var COLUMN = 'column';
|
|
15
|
-
export var VFlex = function (props) { return _jsx(Flex, __assign({}, props, { direction: COLUMN })); };
|
|
16
|
-
//# sourceMappingURL=VFlex.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VFlex.js","sourceRoot":"","sources":["../../../../../src/сomponents/Flex/VFlex/VFlex.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AAMzB,IAAM,MAAM,GAAG,QAAQ,CAAA;AAEvB,MAAM,CAAC,IAAM,KAAK,GAAG,UAAC,KAAa,IAAK,OAAA,KAAC,IAAI,eAAK,KAAK,IAAE,SAAS,EAAE,MAAM,IAAI,EAAtC,CAAsC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { VFlex } from './VFlex';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/сomponents/Flex/VFlex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Flex/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DetailedHTMLProps, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export type TFlexJustify = 'start' | 'center' | 'end' | 'between';
|
|
3
|
-
export type TFlexAlign = 'start' | 'center' | 'end';
|
|
4
|
-
export type TFlexDirection = 'row' | 'column';
|
|
5
|
-
type TDivProps = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
6
|
-
export type TFlex = TDivProps & {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
justify?: TFlexJustify;
|
|
9
|
-
align?: TFlexAlign;
|
|
10
|
-
direction?: TFlexDirection;
|
|
11
|
-
gap?: number;
|
|
12
|
-
fullWidth?: boolean;
|
|
13
|
-
wrap?: boolean;
|
|
14
|
-
};
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Flex/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IHeaderProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
export declare const DEFAULT_HEADER_HEIGHT = 48;
|
|
4
|
-
declare const Header: ({ title, counter, isBack, isRemove, titleIcon, refreshIcon, customIcon, avatar, onClickBack, onClickRemove, arrowColor, trashColor, platform, headerHeight, className, styles, textSize, backgroundColor, removeIconOrder, }: IHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export default Header;
|