@expressms/smartapp-ui 2.5.6 → 2.5.8
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/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/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/storybook/index.d.ts +0 -12
- package/build/main/assets/storybook/index.js +0 -13
- package/build/main/assets/storybook/index.js.map +0 -1
- package/build/main/constants/constants.d.ts +0 -132
- package/build/main/constants/constants.js +0 -147
- 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 -28
- 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 -20
- package/build/main/helpers/index.js +0 -80
- package/build/main/helpers/index.js.map +0 -1
- package/build/main/index.d.ts +0 -3
- package/build/main/index.js +0 -4
- 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 -56
- 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 -20
- 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 -23
- 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 -115
- 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 -36
- package/build/main//321/201omponents/Avatar/types.js +0 -9
- 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 -46
- 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 -23
- 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 -54
- 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 -8
- 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 -48
- 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 -14
- 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 -3
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -39
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -3
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -30
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.d.ts +0 -3
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js +0 -64
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
- package/build/main//321/201omponents/Charts/colors.d.ts +0 -2
- package/build/main//321/201omponents/Charts/colors.js +0 -3
- package/build/main//321/201omponents/Charts/colors.js.map +0 -1
- package/build/main//321/201omponents/Charts/constants.d.ts +0 -50
- package/build/main//321/201omponents/Charts/constants.js +0 -36
- package/build/main//321/201omponents/Charts/constants.js.map +0 -1
- package/build/main//321/201omponents/Charts/helpers.d.ts +0 -68
- package/build/main//321/201omponents/Charts/helpers.js +0 -91
- 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 -51
- 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/Checkbox/Checkbox.d.ts +0 -4
- package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -36
- 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 -9
- 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 -40
- 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 -10
- 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 -44
- 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 -16
- 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 -55
- 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 -24
- 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 -4
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -172
- 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 -61
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -53
- 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/Error/Error.d.ts +0 -4
- package/build/main//321/201omponents/Error/Error.js +0 -22
- 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 -7
- 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/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 -44
- 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 -195
- 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 -35
- 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 -195
- 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 -38
- 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 -40
- 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 -12
- 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 -53
- 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 -15
- 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 -178
- 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 -39
- 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 -4
- 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 -36
- 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 -9
- 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 -4
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -50
- 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 -9
- 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 -66
- 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 -16
- 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 -281
- 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 -54
- package/build/main//321/201omponents/Stories/types.js +0 -11
- 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 -7
- 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 -85
- package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
- package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
- package/build/main//321/201omponents/Textarea/index.js +0 -2
- package/build/main//321/201omponents/Textarea/index.js.map +0 -1
- package/build/main//321/201omponents/Textarea/types.d.ts +0 -13
- package/build/main//321/201omponents/Textarea/types.js +0 -2
- package/build/main//321/201omponents/Textarea/types.js.map +0 -1
- package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
- package/build/main//321/201omponents/Toggle/Toggle.js +0 -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 -9
- 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 -70
- 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 -3
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -76
- 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 -40
- 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 -55
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -386
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -87
- package/build/main//321/201omponents/UserDropdown/helpers.js +0 -47
- 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 -72
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -183
- 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/index.d.ts +0 -32
- package/build/main//321/201omponents/index.js +0 -33
- package/build/main//321/201omponents/index.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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { OPTIONS } from './constants';
|
|
2
|
-
export type TChartData = {
|
|
3
|
-
name: string;
|
|
4
|
-
color: string;
|
|
5
|
-
data: number[];
|
|
6
|
-
};
|
|
7
|
-
export interface IChartProps {
|
|
8
|
-
title?: string;
|
|
9
|
-
xAxis: string[];
|
|
10
|
-
data: TChartData[];
|
|
11
|
-
}
|
|
12
|
-
export type TChartPieData = {
|
|
13
|
-
name: string;
|
|
14
|
-
color: string;
|
|
15
|
-
value: number;
|
|
16
|
-
};
|
|
17
|
-
export interface IChartPieProps {
|
|
18
|
-
title?: string;
|
|
19
|
-
subtitle: string;
|
|
20
|
-
data: TChartPieData[];
|
|
21
|
-
}
|
|
22
|
-
export type TLegendVisibility = {
|
|
23
|
-
[name: string]: boolean;
|
|
24
|
-
};
|
|
25
|
-
export type TLegendsChanged = {
|
|
26
|
-
name: string;
|
|
27
|
-
selected: TLegendVisibility;
|
|
28
|
-
};
|
|
29
|
-
export type TCommonChartSettings = {
|
|
30
|
-
bottom: number;
|
|
31
|
-
icon: OPTIONS.circle;
|
|
32
|
-
textStyle: {
|
|
33
|
-
rich: {
|
|
34
|
-
Name: {
|
|
35
|
-
fontSize: number;
|
|
36
|
-
align: OPTIONS.center;
|
|
37
|
-
};
|
|
38
|
-
value: {
|
|
39
|
-
fontSize: number;
|
|
40
|
-
align: OPTIONS.center;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
data?: string[];
|
|
45
|
-
formatter?: (name: string) => string;
|
|
46
|
-
itemGap?: number;
|
|
47
|
-
};
|
|
48
|
-
export type TGenerateLegendProps = {
|
|
49
|
-
data: TChartData[] | TChartPieData[];
|
|
50
|
-
chartType: string;
|
|
51
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Charts/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ICheckBoxProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
declare const CheckBox: ({ id, isDisabled, isChecked, checkedColor, checkedHoverColor, checkedPressedColor, onChange, }: ICheckBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default CheckBox;
|
|
@@ -1,36 +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 } from 'react';
|
|
14
|
-
import { ReactComponent as CheckIcon } from '../../assets/icons/check-mark.svg';
|
|
15
|
-
import { getColor } from '../../helpers';
|
|
16
|
-
import { COLORS } from '../../constants';
|
|
17
|
-
import '../../styles/styles.scss';
|
|
18
|
-
var CheckBox = function (_a) {
|
|
19
|
-
var id = _a.id, _b = _a.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = _a.isChecked, isChecked = _c === void 0 ? false : _c, checkedColor = _a.checkedColor, checkedHoverColor = _a.checkedHoverColor, checkedPressedColor = _a.checkedPressedColor, _d = _a.onChange, onChange = _d === void 0 ? function () { return undefined; } : _d;
|
|
20
|
-
var checkBoxRef = useRef(null);
|
|
21
|
-
useEffect(function () {
|
|
22
|
-
document.documentElement.style.setProperty('--checkbox-hover-color', getColor(checkedHoverColor, COLORS.darkBlue));
|
|
23
|
-
document.documentElement.style.setProperty('--checkbox-pressed-color', getColor(checkedPressedColor, COLORS.darkerBlue));
|
|
24
|
-
}, [checkedHoverColor, checkedPressedColor]);
|
|
25
|
-
useEffect(function () {
|
|
26
|
-
window.addEventListener('mouseup', handleMouseUp);
|
|
27
|
-
return function () {
|
|
28
|
-
window.removeEventListener('mouseup', handleMouseUp);
|
|
29
|
-
};
|
|
30
|
-
}, []);
|
|
31
|
-
var handleMouseDown = function () { var _a; return (_a = checkBoxRef.current) === null || _a === void 0 ? void 0 : _a.classList.add('smartapp-check-box__pressed'); };
|
|
32
|
-
var handleMouseUp = function () { var _a; return (_a = checkBoxRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove('smartapp-check-box__pressed'); };
|
|
33
|
-
return (_jsx("div", __assign({ ref: checkBoxRef, className: "smartapp-check-box" }, { children: _jsxs("label", __assign({ htmlFor: "cb-".concat(id) }, { children: [_jsx("input", { id: "cb-".concat(id), type: "checkbox", className: "smartapp-check-box__custom-check-box", disabled: isDisabled, checked: isChecked, onChange: onChange }), isChecked ? (_jsx(CheckIcon, { style: { color: getColor(checkedColor, COLORS.blue) }, onMouseDown: handleMouseDown })) : (_jsx("span", { className: "checkmark", onMouseDown: handleMouseDown }))] })) })));
|
|
34
|
-
};
|
|
35
|
-
export default CheckBox;
|
|
36
|
-
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -1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,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,IAAM,eAAe,GAAG,sBAAM,OAAA,MAAA,WAAW,CAAC,OAAO,0CAAE,SAAS,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAA,EAAA,CAAA;IAC/F,IAAM,aAAa,GAAG,sBAAM,OAAA,MAAA,WAAW,CAAC,OAAO,0CAAE,SAAS,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAA,EAAA,CAAA;IAEhG,OAAO,CACL,uBAAK,GAAG,EAAE,WAAW,EAAE,SAAS,EAAC,oBAAoB,gBACnD,0BAAO,OAAO,EAAE,aAAM,EAAE,CAAE,iBACxB,gBACE,EAAE,EAAE,aAAM,EAAE,CAAE,EACd,IAAI,EAAC,UAAU,EACf,SAAS,EAAC,sCAAsC,EAChD,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,SAAS,EAClB,QAAQ,EAAE,QAAQ,GAClB,EACD,SAAS,CAAC,CAAC,CAAC,CACX,KAAC,SAAS,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,eAAe,GAAI,CACnG,CAAC,CAAC,CAAC,CACF,eAAM,SAAS,EAAC,WAAW,EAAC,WAAW,EAAE,eAAe,GAAI,CAC7D,KACK,IACJ,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Checkbox';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Checkbox/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,40 +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 } from 'react';
|
|
14
|
-
import Avatar from '../Avatar';
|
|
15
|
-
import { getClassNames, getColor } from '../../helpers';
|
|
16
|
-
import { COLORS, DISABLED_CLASSNAME, ERROR_CLASSNAME } from '../../constants';
|
|
17
|
-
import { ReactComponent as DeleteIcon } from '../../assets/icons/delete-chip.svg';
|
|
18
|
-
import '../../styles/styles.scss';
|
|
19
|
-
var Chip = function (_a) {
|
|
20
|
-
var name = _a.name, avatar = _a.avatar, _b = _a.isAvatarHidden, isAvatarHidden = _b === void 0 ? false : _b, _c = _a.isDisabled, isDisabled = _c === void 0 ? false : _c, _d = _a.isError, isError = _d === void 0 ? false : _d, iconColor = _a.iconColor, onDelete = _a.onDelete;
|
|
21
|
-
var isChipDisabled = isError ? false : isDisabled;
|
|
22
|
-
var chipRef = useRef(null);
|
|
23
|
-
var generateAdditionalClassName = function () {
|
|
24
|
-
var classNames = [];
|
|
25
|
-
isError && classNames.push(ERROR_CLASSNAME);
|
|
26
|
-
isChipDisabled && classNames.push(DISABLED_CLASSNAME);
|
|
27
|
-
return classNames;
|
|
28
|
-
};
|
|
29
|
-
useEffect(function () {
|
|
30
|
-
window.addEventListener('mouseup', handleMouseUp);
|
|
31
|
-
return function () {
|
|
32
|
-
window.removeEventListener('mouseup', handleMouseUp);
|
|
33
|
-
};
|
|
34
|
-
}, []);
|
|
35
|
-
var handleMouseDown = function () { var _a; return (_a = chipRef.current) === null || _a === void 0 ? void 0 : _a.classList.add('smartapp-chip__pressed'); };
|
|
36
|
-
var handleMouseUp = function () { var _a; return (_a = chipRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove('smartapp-chip__pressed'); };
|
|
37
|
-
return (_jsxs("div", __assign({ ref: chipRef, className: getClassNames({ className: 'smartapp-chip', delimiter: '__', additionalClassName: generateAdditionalClassName() }) }, { children: [_jsxs("div", __assign({ className: "smartapp-chip__info" }, { children: [!isAvatarHidden && !isError && _jsx(Avatar, { username: name, avatar: avatar, size: 24 }), _jsx("p", __assign({ className: "smartapp-chip__info--name" }, { children: name }))] })), !isChipDisabled && onDelete && (_jsx("div", __assign({ className: "smartapp-chip__delete-icon", onClick: function () { return onDelete(name); }, onMouseDown: handleMouseDown }, { children: _jsx(DeleteIcon, { style: { color: getColor(iconColor, isError ? COLORS.red : COLORS.darkerGray) } }) })))] })));
|
|
38
|
-
};
|
|
39
|
-
export default Chip;
|
|
40
|
-
//# sourceMappingURL=Chip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/Chip.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAE7E,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAA;AACjF,OAAO,0BAA0B,CAAA;AAEjC,IAAM,IAAI,GAAG,UAAC,EAA8G;QAA5G,IAAI,UAAA,EAAE,MAAM,YAAA,EAAE,sBAAsB,EAAtB,cAAc,mBAAG,KAAK,KAAA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E,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,GAAI,EACpF,qBAAG,SAAS,EAAC,2BAA2B,gBAAE,IAAI,IAAK,KAC/C,EACL,CAAC,cAAc,IAAI,QAAQ,IAAI,CAC9B,uBAAK,SAAS,EAAC,4BAA4B,EAAC,OAAO,EAAE,cAAM,OAAA,QAAQ,CAAC,IAAI,CAAC,EAAd,CAAc,EAAE,WAAW,EAAE,eAAe,gBACrG,KAAC,UAAU,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,GAAI,IAC3F,CACP,KACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Chip';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IThemeProps } from '../../constants';
|
|
2
|
-
export interface IChipProps extends IThemeProps {
|
|
3
|
-
name: string;
|
|
4
|
-
avatar?: string;
|
|
5
|
-
isAvatarHidden?: boolean;
|
|
6
|
-
isDisabled?: boolean;
|
|
7
|
-
isError?: boolean;
|
|
8
|
-
iconColor?: string;
|
|
9
|
-
onDelete?: (name?: string) => void;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Chip/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IConfirmationModalProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
declare const ConfirmationModal: ({ isModalOpen, isClosableOutside, isCloseIconHidden, isWaitingResponse, layoutType, title, text, cancelButtonName, confirmButtonName, cancelButtonFunction, confirmButtonFunction, platform, titleStyles, iconColor, backgroundColor, }: IConfirmationModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default ConfirmationModal;
|
|
@@ -1,44 +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 } from 'react';
|
|
14
|
-
import Popup from 'reactjs-popup';
|
|
15
|
-
import { ReactComponent as CloseIcon } from '../../assets/icons/cancel-cross.svg';
|
|
16
|
-
import Button from '../Button';
|
|
17
|
-
import { TButtonType } from '../Button/types';
|
|
18
|
-
import { CLOSABLE_CLASS_NAME, FIXED_WIDTH_CLASS_NAME, LAYOUT_TYPE, PLATFORM } from '../../constants';
|
|
19
|
-
import { getClassNames, getColor, isMobilePlatform, isModalHasFixedWidth } from '../../helpers';
|
|
20
|
-
import '../../styles/styles.scss';
|
|
21
|
-
var ConfirmationModal = function (_a) {
|
|
22
|
-
var isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? false : _b, _c = _a.isCloseIconHidden, isCloseIconHidden = _c === void 0 ? false : _c, isWaitingResponse = _a.isWaitingResponse, _d = _a.layoutType, layoutType = _d === void 0 ? LAYOUT_TYPE.minimal : _d, title = _a.title, text = _a.text, cancelButtonName = _a.cancelButtonName, confirmButtonName = _a.confirmButtonName, cancelButtonFunction = _a.cancelButtonFunction, confirmButtonFunction = _a.confirmButtonFunction, _e = _a.platform, platform = _e === void 0 ? PLATFORM.web : _e, titleStyles = _a.titleStyles, iconColor = _a.iconColor, backgroundColor = _a.backgroundColor;
|
|
23
|
-
var additionalClassName = isModalHasFixedWidth({ layoutType: layoutType, platform: platform }) ? [platform, FIXED_WIDTH_CLASS_NAME] : [platform];
|
|
24
|
-
var popupAdditionalClassName = isClosableOutside ? [platform, CLOSABLE_CLASS_NAME] : [platform];
|
|
25
|
-
var confirmButtonWidth = cancelButtonName ? 50 : 100;
|
|
26
|
-
var ref = useRef(null);
|
|
27
|
-
useEffect(function () {
|
|
28
|
-
document.documentElement.style.setProperty('--confirmation-modal-background', getColor(backgroundColor));
|
|
29
|
-
}, [backgroundColor]);
|
|
30
|
-
useEffect(function () {
|
|
31
|
-
var checkIfClickedOutside = function (e) {
|
|
32
|
-
if (isModalOpen && isClosableOutside && ref.current && !ref.current.contains(e.target)) {
|
|
33
|
-
cancelButtonFunction();
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
document === null || document === void 0 ? void 0 : document.addEventListener('click', checkIfClickedOutside, true);
|
|
37
|
-
return function () {
|
|
38
|
-
document === null || document === void 0 ? void 0 : document.removeEventListener('click', checkIfClickedOutside, true);
|
|
39
|
-
};
|
|
40
|
-
}, [isModalOpen, isClosableOutside, cancelButtonFunction]);
|
|
41
|
-
return (_jsx(Popup, __assign({ className: getClassNames({ className: 'confirmation-modal', delimiter: '-', additionalClassName: popupAdditionalClassName }), closeOnDocumentClick: isClosableOutside, modal: true, open: isModalOpen }, { children: _jsx("div", __assign({ ref: ref, className: getClassNames({ className: 'smartapp-confirmation-modal', delimiter: '__', additionalClassName: additionalClassName }) }, { children: _jsxs("div", __assign({ className: getClassNames({ className: 'smartapp-confirmation-modal__content', delimiter: '--', additionalClassName: platform }) }, { children: [title && (_jsx("p", __assign({ className: "smartapp-confirmation-modal__content--title", style: titleStyles }, { children: title }))), isClosableOutside && !isCloseIconHidden && (_jsx("div", __assign({ onClick: cancelButtonFunction, className: "smartapp-confirmation-modal__content--close-icon" }, { children: _jsx(CloseIcon, { style: { color: getColor(iconColor) } }) }))), _jsx("p", __assign({ className: "smartapp-confirmation-modal__content--text" }, { children: text })), isMobilePlatform(platform) && _jsx("div", { className: "smartapp-confirmation-modal__content--delimiter" }), _jsxs("div", __assign({ className: "smartapp-confirmation-modal__content--buttons" }, { children: [cancelButtonName && _jsx(Button, { width: 50, title: cancelButtonName, type: TButtonType.secondary, onClick: cancelButtonFunction }), _jsx(Button, { width: confirmButtonWidth, isWaitingResponse: isWaitingResponse, title: confirmButtonName, onClick: confirmButtonFunction })] }))] })) })) })));
|
|
42
|
-
};
|
|
43
|
-
export default ConfirmationModal;
|
|
44
|
-
//# sourceMappingURL=ConfirmationModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationModal.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/ConfirmationModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAChD,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,qCAAqC,CAAA;AACjF,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACpG,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAC/F,OAAO,0BAA0B,CAAA;AAEjC,IAAM,iBAAiB,GAAG,UAAC,EAgBD;QAfxB,WAAW,iBAAA,EACX,yBAAyB,EAAzB,iBAAiB,mBAAG,KAA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AAK,SAAS,EAAC,iDAAiD,GAAG,EAClG,wBAAK,SAAS,EAAC,+CAA+C,iBAC3D,gBAAgB,IAAI,KAAC,MAAM,IAAC,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,oBAAoB,GAAI,EAC/H,KAAC,MAAM,IAAC,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,qBAAqB,GAAI,KACjI,KACF,IACF,IACA,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ConfirmationModal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ICommonProps, ILayoutTypeProps, TStyles } from '../../constants';
|
|
2
|
-
export interface IConfirmationModalProps extends ICommonProps, ILayoutTypeProps {
|
|
3
|
-
isModalOpen: boolean;
|
|
4
|
-
isClosableOutside?: boolean;
|
|
5
|
-
isCloseIconHidden?: boolean;
|
|
6
|
-
isWaitingResponse?: boolean;
|
|
7
|
-
title?: string;
|
|
8
|
-
text: string;
|
|
9
|
-
cancelButtonName?: string;
|
|
10
|
-
confirmButtonName: string;
|
|
11
|
-
cancelButtonFunction: () => void;
|
|
12
|
-
confirmButtonFunction: (option?: any) => void;
|
|
13
|
-
titleStyles?: TStyles;
|
|
14
|
-
iconColor?: string;
|
|
15
|
-
backgroundColor?: string;
|
|
16
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ConfirmationModal/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IContextMenuProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
declare const ContextMenu: ({ theme, isMenuOpen, isClickForbidden, position: { x, y }, menuWidth, menuStyles, itemStyles, items, closeMenu, }: IContextMenuProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
-
export default ContextMenu;
|
|
@@ -1,55 +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 { useLayoutEffect, useRef, useState } from 'react';
|
|
14
|
-
import classNames from 'classnames';
|
|
15
|
-
import { getClassNames } from '../../helpers';
|
|
16
|
-
import { CONTEXT_MENU_SAFE_SPACE, CONTEXT_MENU_WIDTH, THEME } from '../../constants';
|
|
17
|
-
import '../../styles/styles.scss';
|
|
18
|
-
var ContextMenu = function (_a) {
|
|
19
|
-
var _b;
|
|
20
|
-
var _c = _a.theme, theme = _c === void 0 ? THEME.default : _c, isMenuOpen = _a.isMenuOpen, _d = _a.isClickForbidden, isClickForbidden = _d === void 0 ? false : _d, _e = _a.position, x = _e.x, y = _e.y, _f = _a.menuWidth, menuWidth = _f === void 0 ? CONTEXT_MENU_WIDTH : _f, _g = _a.menuStyles, menuStyles = _g === void 0 ? {} : _g, _h = _a.itemStyles, itemStyles = _h === void 0 ? {} : _h, items = _a.items, closeMenu = _a.closeMenu;
|
|
21
|
-
var elementRef = useRef(null);
|
|
22
|
-
var _j = useState(((_b = elementRef === null || elementRef === void 0 ? void 0 : elementRef.current) === null || _b === void 0 ? void 0 : _b.offsetHeight) || 0), contextMenuHeight = _j[0], setContextMenuHeight = _j[1];
|
|
23
|
-
var clientHeight = document.documentElement.clientHeight;
|
|
24
|
-
var clientWidth = document.documentElement.clientWidth;
|
|
25
|
-
var handleContextMenu = function (event) {
|
|
26
|
-
event.preventDefault();
|
|
27
|
-
!isClickForbidden && closeMenu();
|
|
28
|
-
};
|
|
29
|
-
useLayoutEffect(function () {
|
|
30
|
-
var _a;
|
|
31
|
-
setContextMenuHeight(((_a = elementRef.current) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0);
|
|
32
|
-
}, [isMenuOpen]);
|
|
33
|
-
var handleMenuItemClick = function (action) { return !isClickForbidden && action(); };
|
|
34
|
-
var handleMenuClose = function (event) {
|
|
35
|
-
if (!isClickForbidden) {
|
|
36
|
-
event.stopPropagation();
|
|
37
|
-
closeMenu();
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
var contextMenuItems = items.map(function (_a) {
|
|
41
|
-
var _b = _a.isNegativeAction, isNegativeAction = _b === void 0 ? false : _b, _c = _a.isSelected, isSelected = _c === void 0 ? false : _c, _d = _a.isDisabled, isDisabled = _d === void 0 ? false : _d, title = _a.title, icon = _a.icon, action = _a.action;
|
|
42
|
-
return (_jsxs("button", __assign({ className: classNames({
|
|
43
|
-
'smartapp-context-menu__items--negative': isNegativeAction,
|
|
44
|
-
'smartapp-context-menu__items--selected': isSelected,
|
|
45
|
-
'smartapp-context-menu__items--disabled': isDisabled,
|
|
46
|
-
}), disabled: isDisabled, style: itemStyles, onClick: function () { return handleMenuItemClick(action); } }, { children: [icon && _jsx("div", { children: icon }), _jsx("span", { children: title })] }), title));
|
|
47
|
-
});
|
|
48
|
-
var contextMenuStyles = __assign({ top: y + contextMenuHeight > clientHeight ? clientHeight - contextMenuHeight - CONTEXT_MENU_SAFE_SPACE : y, left: x + menuWidth > clientWidth ? clientWidth - menuWidth - CONTEXT_MENU_SAFE_SPACE : x, width: menuWidth }, menuStyles);
|
|
49
|
-
if (!isMenuOpen) {
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
return (_jsx("div", __assign({ className: "smartapp-context-menu", onClick: handleMenuClose, onContextMenu: handleContextMenu }, { children: _jsx("div", __assign({ ref: elementRef, className: getClassNames({ className: 'smartapp-context-menu__items', delimiter: '--', additionalClassName: theme }), style: contextMenuStyles }, { children: contextMenuItems })) })));
|
|
53
|
-
};
|
|
54
|
-
export default ContextMenu;
|
|
55
|
-
//# sourceMappingURL=ContextMenu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContextMenu.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenu/ContextMenu.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEpF,OAAO,0BAA0B,CAAA;AAEjC,IAAM,WAAW,GAAG,UAAC,EAUD;;QATlB,aAAqB,EAArB,KAAK,mBAAG,KAAK,CAAC,OAAO,KAAA,EACrB,UAAU,gBAAA,EACV,wBAAwB,EAAxB,gBAAgB,mBAAG,KAAK,KAAA,EACxB,gBAAkB,EAAN,CAAC,OAAA,EAAE,CAAC,OAAA,EAChB,iBAA8B,EAA9B,SAAS,mBAAG,kBAAkB,KAAA,EAC9B,kBAAe,EAAf,UAAU,mBAAG,EAAE,KAAA,EACf,kBAAe,EAAf,UAAU,mBAAG,EAAE,KAAA,EACf,KAAK,WAAA,EACL,SAAS,eAAA;IAET,IAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC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wCAAwC,EAAE,UAAU;aACrD,CAAC,EACF,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,cAAM,OAAA,mBAAmB,CAAC,MAAM,CAAC,EAA3B,CAA2B,iBAEzC,IAAI,IAAI,wBAAM,IAAI,GAAO,EAC1B,yBAAO,KAAK,GAAQ,MAXf,KAAK,CAYH,CACV;IAfiI,CAejI,CAAC,CAAA;IAEF,IAAM,iBAAiB,cACrB,GAAG,EAAE,CAAC,GAAG,iBAAiB,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,GAAG,iBAAiB,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC,EAC1G,IAAI,EAAE,CAAC,GAAG,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,GAAG,SAAS,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC,EACzF,KAAK,EAAE,SAAS,IACb,UAAU,CACd,CAAA;IAED,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,CACL,uBAAK,SAAS,EAAC,uBAAuB,EAAC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,iBAAiB,gBAC/F,uBACE,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,aAAa,CAAC,EAAE,SAAS,EAAE,8BAA8B,EAAE,SAAS,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC,EACpH,KAAK,EAAE,iBAAiB,gBAEvB,gBAAgB,IACb,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ContextMenu';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenu/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { IThemeProps, TStyles } from '../../constants';
|
|
3
|
-
type MenuItem = {
|
|
4
|
-
isNegativeAction?: boolean;
|
|
5
|
-
isSelected?: boolean;
|
|
6
|
-
isDisabled?: boolean;
|
|
7
|
-
title: string;
|
|
8
|
-
action: () => void;
|
|
9
|
-
icon?: ReactElement;
|
|
10
|
-
};
|
|
11
|
-
export interface IContextMenuProps extends IThemeProps {
|
|
12
|
-
isMenuOpen: boolean;
|
|
13
|
-
isClickForbidden?: boolean;
|
|
14
|
-
position: {
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
};
|
|
18
|
-
menuWidth?: number;
|
|
19
|
-
menuStyles?: TStyles;
|
|
20
|
-
itemStyles?: TStyles;
|
|
21
|
-
items: MenuItem[];
|
|
22
|
-
closeMenu: () => void;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ContextMenu/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ICustomSelectProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
declare const CustomSelect: ({ theme, isLoading, isSearchable, isCreatable, isDisabled, fillType, width, menuListMaxHeight, title, placeholder, hint, noOptionsMessage, error, menuPosition, defaultValue, options, onChange, onDisabledOptionClick, onMenuOpen, }: ICustomSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default CustomSelect;
|