@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,195 +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 { useCallback, useEffect, useRef } from 'react';
|
|
14
|
-
import { v4 as uuidv4 } from 'uuid';
|
|
15
|
-
import classNames from 'classnames';
|
|
16
|
-
import RadioButton from '../RadioButton';
|
|
17
|
-
import Checkbox from '../Checkbox';
|
|
18
|
-
import Toggle from '../Toggle';
|
|
19
|
-
import '../../styles/styles.scss';
|
|
20
|
-
export var LIST_ITEM_TYPE = {
|
|
21
|
-
interactive: 'interactive',
|
|
22
|
-
notInteractive: 'not-interactive',
|
|
23
|
-
};
|
|
24
|
-
export var INTERACTIVE_ELEMENT = {
|
|
25
|
-
radioButton: 'radio-button',
|
|
26
|
-
checkbox: 'checkbox',
|
|
27
|
-
toggle: 'toggle',
|
|
28
|
-
};
|
|
29
|
-
export var INTERACTIVE_POSITION = {
|
|
30
|
-
left: 'left',
|
|
31
|
-
right: 'right',
|
|
32
|
-
};
|
|
33
|
-
export var NOT_INTERACTIVE_ELEMENT = {
|
|
34
|
-
icon: 'icon',
|
|
35
|
-
indicator: 'indicator',
|
|
36
|
-
noElement: 'no-element',
|
|
37
|
-
};
|
|
38
|
-
var MIN_LIST_ITEM_HEIGHT = 44;
|
|
39
|
-
export var DEFAULT_INDICATOR_COLOR = 'blue';
|
|
40
|
-
var DEFAULT_PRESSED_CLASSNAME = 'smartapp-list-item__not-interactive--pressed';
|
|
41
|
-
var SELECTED_PRESSED_CLASSNAME = 'smartapp-list-item__not-interactive--selected__pressed';
|
|
42
|
-
var TOP_ALIGN_CLASSNAME = 'smartapp-list-item__top-align';
|
|
43
|
-
var getIsType = function (type) {
|
|
44
|
-
var isInteractiveType = type === LIST_ITEM_TYPE.interactive;
|
|
45
|
-
var isNotInteractiveType = type === LIST_ITEM_TYPE.notInteractive;
|
|
46
|
-
return { isInteractiveType: isInteractiveType, isNotInteractiveType: isNotInteractiveType };
|
|
47
|
-
};
|
|
48
|
-
var getIsElement = function (element) {
|
|
49
|
-
var isIndicatorElement = element === NOT_INTERACTIVE_ELEMENT.indicator;
|
|
50
|
-
var isIconElement = element === NOT_INTERACTIVE_ELEMENT.icon;
|
|
51
|
-
var isNoElement = element === NOT_INTERACTIVE_ELEMENT.noElement;
|
|
52
|
-
return { isIndicatorElement: isIndicatorElement, isIconElement: isIconElement, isNoElement: isNoElement };
|
|
53
|
-
};
|
|
54
|
-
var ListItem = function (props) {
|
|
55
|
-
var type = props.type, text = props.text, element = props.element, isDisabled = props.isDisabled, textStyles = props.textStyles;
|
|
56
|
-
var listItemRef = useRef(null);
|
|
57
|
-
var _a = getIsType(type), isInteractiveType = _a.isInteractiveType, isNotInteractiveType = _a.isNotInteractiveType;
|
|
58
|
-
var _b = getIsElement(element), isIndicatorElement = _b.isIndicatorElement, isIconElement = _b.isIconElement, isNoElement = _b.isNoElement;
|
|
59
|
-
var isLeftPosition = function (position) { return position === INTERACTIVE_POSITION.left; };
|
|
60
|
-
var isRightPosition = function (position) { return position === INTERACTIVE_POSITION.right; };
|
|
61
|
-
var generatePressedClassName = useCallback(function () {
|
|
62
|
-
var isElementHasSelectedProps = isIndicatorElement || isNoElement;
|
|
63
|
-
if (isNotInteractiveType && !isDisabled) {
|
|
64
|
-
if (isElementHasSelectedProps) {
|
|
65
|
-
var isSelected = props.isSelected;
|
|
66
|
-
return isSelected ? SELECTED_PRESSED_CLASSNAME : DEFAULT_PRESSED_CLASSNAME;
|
|
67
|
-
}
|
|
68
|
-
return DEFAULT_PRESSED_CLASSNAME;
|
|
69
|
-
}
|
|
70
|
-
return '';
|
|
71
|
-
}, [isDisabled, isIndicatorElement, isNoElement, isNotInteractiveType, props]);
|
|
72
|
-
var handleMouseDown = useCallback(function () {
|
|
73
|
-
var _a;
|
|
74
|
-
var pressedClassName = generatePressedClassName();
|
|
75
|
-
pressedClassName && ((_a = listItemRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(pressedClassName));
|
|
76
|
-
}, [generatePressedClassName]);
|
|
77
|
-
var handleMouseUp = useCallback(function () {
|
|
78
|
-
var _a;
|
|
79
|
-
var pressedClassName = generatePressedClassName();
|
|
80
|
-
pressedClassName && ((_a = listItemRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(pressedClassName));
|
|
81
|
-
}, [generatePressedClassName]);
|
|
82
|
-
var renderInteractiveElement = function () {
|
|
83
|
-
var _a = props, _b = _a.isSelected, isSelected = _b === void 0 ? false : _b, onChange = _a.onChange;
|
|
84
|
-
var elementId = uuidv4();
|
|
85
|
-
switch (element) {
|
|
86
|
-
case INTERACTIVE_ELEMENT.radioButton:
|
|
87
|
-
return _jsx(RadioButton, { id: elementId, isChecked: isSelected, isDisabled: isDisabled, onChange: onChange });
|
|
88
|
-
case INTERACTIVE_ELEMENT.checkbox:
|
|
89
|
-
return _jsx(Checkbox, { id: elementId, isChecked: isSelected, isDisabled: isDisabled, onChange: onChange });
|
|
90
|
-
case INTERACTIVE_ELEMENT.toggle:
|
|
91
|
-
return _jsx(Toggle, { id: elementId, isChecked: isSelected, isDisabled: isDisabled, onClick: onChange });
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
var renderNotInteractiveElement = function () {
|
|
95
|
-
switch (element) {
|
|
96
|
-
case NOT_INTERACTIVE_ELEMENT.icon:
|
|
97
|
-
var icon = props.icon;
|
|
98
|
-
return _jsx("div", __assign({ className: classNames('smartapp-list-item__icon', { 'smartapp-list-item__icon--disabled': isDisabled }) }, { children: icon }));
|
|
99
|
-
case NOT_INTERACTIVE_ELEMENT.indicator:
|
|
100
|
-
var color = props.color;
|
|
101
|
-
return renderIndicatorElement({ color: color });
|
|
102
|
-
case NOT_INTERACTIVE_ELEMENT.noElement:
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
var renderIndicatorElement = function (_a) {
|
|
107
|
-
var _b;
|
|
108
|
-
var _c = _a.isIndicator, isIndicator = _c === void 0 ? true : _c, _d = _a.color, color = _d === void 0 ? DEFAULT_INDICATOR_COLOR : _d;
|
|
109
|
-
if (isIndicator) {
|
|
110
|
-
var indicatorColorClassName = "smartapp-list-item__indicator--".concat(color);
|
|
111
|
-
var className = classNames('smartapp-list-item__indicator', indicatorColorClassName, (_b = {},
|
|
112
|
-
_b["".concat(indicatorColorClassName, "__disabled")] = isDisabled,
|
|
113
|
-
_b));
|
|
114
|
-
return _jsx("div", { className: className });
|
|
115
|
-
}
|
|
116
|
-
return null;
|
|
117
|
-
};
|
|
118
|
-
var renderLeftElement = function () {
|
|
119
|
-
if (isInteractiveType) {
|
|
120
|
-
var _a = props, _b = _a.position, position = _b === void 0 ? INTERACTIVE_POSITION.right : _b, _c = _a.isIndicator, isIndicator = _c === void 0 ? false : _c, color = _a.color;
|
|
121
|
-
return isLeftPosition(position) ? renderInteractiveElement() : renderIndicatorElement({ isIndicator: isIndicator, color: color });
|
|
122
|
-
}
|
|
123
|
-
if (isNotInteractiveType) {
|
|
124
|
-
return renderNotInteractiveElement();
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
var renderRightElement = function () {
|
|
128
|
-
if (isInteractiveType) {
|
|
129
|
-
var _a = props.position, position = _a === void 0 ? INTERACTIVE_POSITION.right : _a;
|
|
130
|
-
return isRightPosition(position) ? renderInteractiveElement() : null;
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
var renderSecondaryText = function () {
|
|
134
|
-
if (isNotInteractiveType && isNoElement) {
|
|
135
|
-
var _a = props, secondaryText = _a.secondaryText, secondaryTextColor = _a.secondaryTextColor;
|
|
136
|
-
return secondaryText ? _jsx("div", __assign({ style: { color: secondaryTextColor } }, { children: secondaryText })) : null;
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
var generateTextClassName = function () {
|
|
140
|
-
var classNames = ['smartapp-list-item__text'];
|
|
141
|
-
if (isInteractiveType) {
|
|
142
|
-
var _a = props, _b = _a.position, position = _b === void 0 ? INTERACTIVE_POSITION.right : _b, isIndicator = _a.isIndicator;
|
|
143
|
-
var isLeftClassNeeded = isLeftPosition(position) || isIndicator;
|
|
144
|
-
isLeftClassNeeded && classNames.push('smartapp-list-item__text--left');
|
|
145
|
-
isRightPosition(position) && classNames.push('smartapp-list-item__text--right');
|
|
146
|
-
isIndicator && isRightPosition(position) && classNames.push('smartapp-list-item__text--ellipse');
|
|
147
|
-
}
|
|
148
|
-
if (isNotInteractiveType && (isIconElement || isIndicatorElement)) {
|
|
149
|
-
classNames.push('smartapp-list-item__text--left');
|
|
150
|
-
}
|
|
151
|
-
isDisabled && classNames.push('smartapp-list-item__text--disabled');
|
|
152
|
-
return classNames;
|
|
153
|
-
};
|
|
154
|
-
var generateClassName = function () {
|
|
155
|
-
var classNames = ['smartapp-list-item', "smartapp-list-item__".concat(type)];
|
|
156
|
-
var isElementHasSelectedProps = isIndicatorElement || isNoElement;
|
|
157
|
-
if (isElementHasSelectedProps) {
|
|
158
|
-
var isSelected = props.isSelected;
|
|
159
|
-
isSelected && classNames.push("smartapp-list-item__".concat(type, "--selected"));
|
|
160
|
-
}
|
|
161
|
-
if (isNoElement) {
|
|
162
|
-
var secondaryText = props.secondaryText;
|
|
163
|
-
secondaryText && classNames.push("smartapp-list-item__".concat(type, "--with-secondary-text"));
|
|
164
|
-
}
|
|
165
|
-
isDisabled && classNames.push('smartapp-list-item__disabled');
|
|
166
|
-
return classNames;
|
|
167
|
-
};
|
|
168
|
-
useEffect(function () {
|
|
169
|
-
var listItemRefCurrent = listItemRef.current;
|
|
170
|
-
var listItemRefClassList = listItemRefCurrent === null || listItemRefCurrent === void 0 ? void 0 : listItemRefCurrent.classList;
|
|
171
|
-
var resizeObserver = new ResizeObserver(function () {
|
|
172
|
-
var _a = props.position, position = _a === void 0 ? INTERACTIVE_POSITION.right : _a;
|
|
173
|
-
var height = (listItemRefCurrent === null || listItemRefCurrent === void 0 ? void 0 : listItemRefCurrent.getBoundingClientRect().height) || 0;
|
|
174
|
-
if (isLeftPosition(position)) {
|
|
175
|
-
height > MIN_LIST_ITEM_HEIGHT ? listItemRefClassList === null || listItemRefClassList === void 0 ? void 0 : listItemRefClassList.add(TOP_ALIGN_CLASSNAME) : listItemRefClassList === null || listItemRefClassList === void 0 ? void 0 : listItemRefClassList.remove(TOP_ALIGN_CLASSNAME);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
listItemRefClassList === null || listItemRefClassList === void 0 ? void 0 : listItemRefClassList.remove(TOP_ALIGN_CLASSNAME);
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
if (listItemRefCurrent && isInteractiveType) {
|
|
182
|
-
resizeObserver.observe(listItemRefCurrent);
|
|
183
|
-
}
|
|
184
|
-
return function () { return resizeObserver.disconnect(); };
|
|
185
|
-
}, [isInteractiveType, props]);
|
|
186
|
-
useEffect(function () {
|
|
187
|
-
window.addEventListener('mouseup', handleMouseUp);
|
|
188
|
-
return function () {
|
|
189
|
-
window.removeEventListener('mouseup', handleMouseUp);
|
|
190
|
-
};
|
|
191
|
-
}, [handleMouseUp]);
|
|
192
|
-
return (_jsxs("div", __assign({ ref: listItemRef, className: classNames(generateClassName()), onMouseDown: handleMouseDown }, { children: [renderLeftElement(), _jsxs("div", __assign({ className: classNames(generateTextClassName()), style: textStyles }, { children: [_jsx("div", { children: text }), renderSecondaryText()] })), renderRightElement()] })));
|
|
193
|
-
};
|
|
194
|
-
export default ListItem;
|
|
195
|
-
//# sourceMappingURL=ListItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.js","sourceRoot":"","sources":["../../../../src/сomponents/ListItem/ListItem.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAc,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,QAAQ,MAAM,aAAa,CAAA;AAClC,OAAO,MAAM,MAAM,WAAW,CAAA;AAQ9B,OAAO,0BAA0B,CAAA;AAEjC,MAAM,CAAC,IAAM,cAAc,GAAG;IAC5B,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,iBAAiB;CAClC,CAAA;AAED,MAAM,CAAC,IAAM,mBAAmB,GAAG;IACjC,WAAW,EAAE,cAAc;IAC3B,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACjB,CAAA;AAED,MAAM,CAAC,IAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACf,CAAA;AAED,MAAM,CAAC,IAAM,uBAAuB,GAAG;IACrC,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,YAAY;CACxB,CAAA;AAED,IAAM,oBAAoB,GAAG,EAAE,CAAA;AAC/B,MAAM,CAAC,IAAM,uBAAuB,GAAG,MAAM,CAAA;AAC7C,IAAM,yBAAyB,GAAG,8CAA8C,CAAA;AAChF,IAAM,0BAA0B,GAAG,wDAAwD,CAAA;AAC3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CAAA;IACH,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAA;IAEnB,OAAO,CACL,wBAAK,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,CAAC,EAAE,WAAW,EAAE,eAAe,iBAC5F,iBAAiB,EAAE,EACpB,wBAAK,SAAS,EAAE,UAAU,CAAC,qBAAqB,EAAE,CAAC,EAAE,KAAK,EAAE,UAAU,iBACpE,wBAAM,IAAI,GAAO,EAChB,mBAAmB,EAAE,KAClB,EACL,kBAAkB,EAAE,KACjB,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ListItem';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/ListItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { IThemeProps, TStyles } from '../../constants';
|
|
3
|
-
export type TInteractivePosition = 'left' | 'right';
|
|
4
|
-
export type TInteractiveElement = 'radio-button' | 'checkbox' | 'toggle';
|
|
5
|
-
export type TNotInteractiveElement = 'icon' | 'indicator' | 'no-element';
|
|
6
|
-
export type TIndicatorColor = 'blue' | 'pink' | 'orange' | 'violet' | 'cactus' | 'lime' | 'grey';
|
|
7
|
-
export interface InteractiveItemProps {
|
|
8
|
-
type: 'interactive';
|
|
9
|
-
position?: TInteractivePosition;
|
|
10
|
-
element: TInteractiveElement;
|
|
11
|
-
isSelected?: boolean;
|
|
12
|
-
isIndicator?: boolean;
|
|
13
|
-
color?: TIndicatorColor;
|
|
14
|
-
onChange: () => void;
|
|
15
|
-
}
|
|
16
|
-
export interface NotInteractiveIconItemProps {
|
|
17
|
-
element: 'icon';
|
|
18
|
-
icon: ReactElement;
|
|
19
|
-
}
|
|
20
|
-
export interface NotInteractiveIndicatorItemProps {
|
|
21
|
-
element: 'indicator';
|
|
22
|
-
color?: TIndicatorColor;
|
|
23
|
-
isSelected?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface NotInteractiveNoElementItemProps {
|
|
26
|
-
element: 'no-element';
|
|
27
|
-
isSelected?: boolean;
|
|
28
|
-
secondaryText?: string;
|
|
29
|
-
secondaryTextColor?: string;
|
|
30
|
-
}
|
|
31
|
-
export type NotInteractiveItemProps = (NotInteractiveIconItemProps | NotInteractiveIndicatorItemProps | NotInteractiveNoElementItemProps) & {
|
|
32
|
-
type: 'not-interactive';
|
|
33
|
-
};
|
|
34
|
-
export type IListItemProps = IThemeProps & (InteractiveItemProps | NotInteractiveItemProps) & {
|
|
35
|
-
text: string;
|
|
36
|
-
isDisabled?: boolean;
|
|
37
|
-
textStyles?: TStyles;
|
|
38
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/ListItem/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ILoaderProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
declare const Loader: ({ isLoader, isFullScreen, isTextItalic, title, textSize, width, iconSize, color, backgroundColor, theme, }: ILoaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
-
export default Loader;
|
|
@@ -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 classNames from 'classnames';
|
|
14
|
-
import { COLORS, FONT_SIZE, LINE_HEIGHT, THEME } from '../../constants';
|
|
15
|
-
import { getColor, isDarkTheme } from '../../helpers';
|
|
16
|
-
import { ReactComponent as LoaderIcon } from '../../assets/icons/loader.svg';
|
|
17
|
-
import '../../styles/styles.scss';
|
|
18
|
-
var Loader = function (_a) {
|
|
19
|
-
var isLoader = _a.isLoader, _b = _a.isFullScreen, isFullScreen = _b === void 0 ? true : _b, _c = _a.isTextItalic, isTextItalic = _c === void 0 ? false : _c, title = _a.title, _d = _a.textSize, textSize = _d === void 0 ? 'small' : _d, _e = _a.width, width = _e === void 0 ? 150 : _e, _f = _a.iconSize, iconSize = _f === void 0 ? 25 : _f, color = _a.color, backgroundColor = _a.backgroundColor, _g = _a.theme, theme = _g === void 0 ? THEME.default : _g;
|
|
20
|
-
var loaderColor = getColor(color, COLORS.blue);
|
|
21
|
-
var getTextStyles = function () { return ({
|
|
22
|
-
fontSize: FONT_SIZE[textSize],
|
|
23
|
-
fontStyle: isTextItalic ? 'italic' : 'normal',
|
|
24
|
-
lineHeight: LINE_HEIGHT[textSize],
|
|
25
|
-
}); };
|
|
26
|
-
var getBackgroundColor = function () {
|
|
27
|
-
var colorForDefaultTheme = isFullScreen ? COLORS.lighterGray : COLORS.white;
|
|
28
|
-
var defaultColor = isDarkTheme(theme) ? COLORS.white3 : colorForDefaultTheme;
|
|
29
|
-
return getColor(backgroundColor, defaultColor);
|
|
30
|
-
};
|
|
31
|
-
if (!isLoader) {
|
|
32
|
-
return null;
|
|
33
|
-
}
|
|
34
|
-
return (_jsx("div", __assign({ className: classNames({
|
|
35
|
-
'smartapp-loader-wrapper': true,
|
|
36
|
-
'smartapp-loader-wrapper__full-screen': isFullScreen,
|
|
37
|
-
}), style: { background: getBackgroundColor() } }, { children: _jsxs("div", __assign({ className: "smartapp-loader", style: { width: "".concat(width, "px") } }, { children: [_jsx(LoaderIcon, { className: "smartapp-loader__icon", width: iconSize, height: iconSize, style: { color: loaderColor } }), title && (_jsx("p", __assign({ className: "smartapp-loader__title", style: getTextStyles() }, { children: title })))] })) })));
|
|
38
|
-
};
|
|
39
|
-
export default Loader;
|
|
40
|
-
//# sourceMappingURL=Loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/Loader.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAC5E,OAAO,0BAA0B,CAAA;AAEjC,IAAM,MAAM,GAAG,UAAC,EAWD;QAVb,QAAQ,cAAA,EACR,oBAAmB,EAAnB,YAAY,mBAAG,IAAI,KAAA,EACnB,oBAAoB,EAApB,YAAY,mBAAG,KAAK,KAAA,EACpB,KAAK,WAAA,EACL,gBAAkB,EAAlB,QAAQ,mBAAG,OAAO,KAAA,EAClB,aAAW,EAAX,KAAK,mBAAG,GAAG,KAAA,EACX,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA,EACb,KAAK,WAAA,EACL,eAAe,qBAAA,EACf,aAAqB,EAArB,KAAK,mBAAG,KAAK,CAAC,OAAO,KAAA;IAErB,IAAM,WAAW,GAAG,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;IAEhD,IAAM,aAAa,GAAG,cAAM,OAAA,CAAC;QAC3B,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC;QAC7B,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;QAC7C,UAAU,EAAE,WAAW,CAAC,QAAQ,CAAC;KAClC,CAAC,EAJ0B,CAI1B,CAAA;IAEF,IAAM,kBAAkB,GAAG;QACzB,IAAM,oBAAoB,GAAG,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAA;QAC7E,IAAM,YAAY,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAoB,CAAA;QAE9E,OAAO,QAAQ,CAAC,eAAe,EAAE,YAAY,CAAC,CAAA;IAChD,CAAC,CAAA;IAED,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,CACL,uBACE,SAAS,EAAE,UAAU,CAAC;YACpB,yBAAyB,EAAE,IAAI;YAC/B,sCAAsC,EAAE,YAAY;SACrD,CAAC,EACF,KAAK,EAAE,EAAE,UAAU,EAAE,kBAAkB,EAAE,EAAE,gBAE3C,wBAAK,SAAS,EAAC,iBAAiB,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,KAAK,OAAI,EAAE,iBAC7D,KAAC,UAAU,IAAC,SAAS,EAAC,uBAAuB,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAI,EACjH,KAAK,IAAI,CACR,qBAAG,SAAS,EAAC,wBAAwB,EAAC,KAAK,EAAE,aAAa,EAAE,gBACzD,KAAK,IACJ,CACL,KACG,IACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Loader';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IThemeProps } from '../../constants';
|
|
2
|
-
export interface ILoaderProps extends IThemeProps {
|
|
3
|
-
isLoader: boolean;
|
|
4
|
-
isFullScreen?: boolean;
|
|
5
|
-
isTextItalic?: boolean;
|
|
6
|
-
title?: string;
|
|
7
|
-
textSize?: 'small' | 'default' | 'large';
|
|
8
|
-
width?: number;
|
|
9
|
-
iconSize?: number;
|
|
10
|
-
color?: string;
|
|
11
|
-
backgroundColor?: string;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Loader/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IModalProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
declare const Modal: ({ isModalOpen, isClosableOutside, isCloseIconHidden, layoutType, content, bottomContent, handleCloseModal, title, platform, titleStyles, contentStyles, iconColor, backgroundColor, }: IModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export default Modal;
|
|
@@ -1,53 +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 Popup from 'reactjs-popup';
|
|
15
|
-
import { isNil } from 'lodash';
|
|
16
|
-
import classNames from 'classnames';
|
|
17
|
-
import ScrollBar from '../ScrollBar';
|
|
18
|
-
import { ReactComponent as CloseIcon } from '../../assets/icons/cancel-cross.svg';
|
|
19
|
-
import { CLOSABLE_CLASS_NAME, FIXED_WIDTH_CLASS_NAME, LAYOUT_TYPE, PLATFORM } from '../../constants';
|
|
20
|
-
import { getClassNames, getColor, isMobilePlatform, isModalHasFixedWidth } from '../../helpers';
|
|
21
|
-
import '../../styles/styles.scss';
|
|
22
|
-
var Modal = function (_a) {
|
|
23
|
-
var isModalOpen = _a.isModalOpen, _b = _a.isClosableOutside, isClosableOutside = _b === void 0 ? true : _b, isCloseIconHidden = _a.isCloseIconHidden, _c = _a.layoutType, layoutType = _c === void 0 ? LAYOUT_TYPE.minimal : _c, content = _a.content, bottomContent = _a.bottomContent, handleCloseModal = _a.handleCloseModal, title = _a.title, _d = _a.platform, platform = _d === void 0 ? PLATFORM.web : _d, titleStyles = _a.titleStyles, contentStyles = _a.contentStyles, iconColor = _a.iconColor, backgroundColor = _a.backgroundColor;
|
|
24
|
-
var isCloseIconNotVisible = isNil(isCloseIconHidden) ? isMobilePlatform(platform) : isCloseIconHidden;
|
|
25
|
-
var additionalClassName = isModalHasFixedWidth({ layoutType: layoutType, platform: platform }) ? [platform, FIXED_WIDTH_CLASS_NAME] : [platform];
|
|
26
|
-
var popupAdditionalClassName = isClosableOutside ? [platform, CLOSABLE_CLASS_NAME] : [platform];
|
|
27
|
-
var ref = useRef(null);
|
|
28
|
-
var _e = useState(''), containerHeight = _e[0], setContainerHeight = _e[1];
|
|
29
|
-
var handleMouseDown = function (event) { return event.stopPropagation(); };
|
|
30
|
-
var handleSetContainerHeight = function (contentRef) {
|
|
31
|
-
if (contentRef) {
|
|
32
|
-
var height = contentRef.getBoundingClientRect().height;
|
|
33
|
-
setContainerHeight("".concat(height, "px"));
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
useEffect(function () {
|
|
37
|
-
document.documentElement.style.setProperty('--modal-background', getColor(backgroundColor));
|
|
38
|
-
}, [backgroundColor]);
|
|
39
|
-
useEffect(function () {
|
|
40
|
-
var checkIfClickedOutside = function (e) {
|
|
41
|
-
if (isModalOpen && isClosableOutside && ref.current && !ref.current.contains(e.target)) {
|
|
42
|
-
handleCloseModal();
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
document === null || document === void 0 ? void 0 : document.addEventListener('click', checkIfClickedOutside, true);
|
|
46
|
-
return function () {
|
|
47
|
-
document === null || document === void 0 ? void 0 : document.removeEventListener('click', checkIfClickedOutside, true);
|
|
48
|
-
};
|
|
49
|
-
}, [isModalOpen, isClosableOutside, handleCloseModal]);
|
|
50
|
-
return (_jsx(Popup, __assign({ className: getClassNames({ className: 'modal', delimiter: '-', additionalClassName: popupAdditionalClassName }), closeOnDocumentClick: isClosableOutside, modal: true, open: isModalOpen }, { children: _jsx("div", __assign({ ref: ref, className: getClassNames({ className: 'smartapp-modal', delimiter: '__', additionalClassName: additionalClassName }), onMouseDown: handleMouseDown }, { children: _jsxs("div", __assign({ className: getClassNames({ className: 'smartapp-modal__content', delimiter: '--', additionalClassName: platform }), style: contentStyles }, { children: [title && (_jsx("p", __assign({ className: "smartapp-modal__content--title", style: titleStyles }, { children: title }))), isClosableOutside && !isCloseIconNotVisible && (_jsx("div", __assign({ onClick: handleCloseModal, className: "smartapp-modal__content--close-icon" }, { children: _jsx(CloseIcon, { style: { color: getColor(iconColor) } }) }))), _jsx(ScrollBar, { content: _jsx("div", __assign({ ref: handleSetContainerHeight, className: classNames('smartapp-modal__content--pr', { 'smartapp-modal__content--pb': !bottomContent }) }, { children: content })), containerHeight: containerHeight }), bottomContent && (_jsx("div", __assign({ className: classNames('smartapp-modal__content--bottom', 'smartapp-modal__content--pr', 'smartapp-modal__content--pb') }, { children: bottomContent })))] })) })) })));
|
|
51
|
-
};
|
|
52
|
-
export default Modal;
|
|
53
|
-
//# sourceMappingURL=Modal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sour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AiC,EAAE,6BAA6B,EAAE,6BAA6B,CAAC,gBACxH,aAAa,IACV,CACP,KACG,IACF,IACA,CACT,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Modal';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { ICommonProps, ILayoutTypeProps, TStyles } from '../../constants';
|
|
3
|
-
export interface IModalProps extends ICommonProps, ILayoutTypeProps {
|
|
4
|
-
isModalOpen: boolean;
|
|
5
|
-
isClosableOutside?: boolean;
|
|
6
|
-
isCloseIconHidden?: boolean;
|
|
7
|
-
content: ReactElement;
|
|
8
|
-
bottomContent?: ReactElement;
|
|
9
|
-
handleCloseModal: () => void;
|
|
10
|
-
title?: string;
|
|
11
|
-
titleStyles?: TStyles;
|
|
12
|
-
contentStyles?: TStyles;
|
|
13
|
-
iconColor?: string;
|
|
14
|
-
backgroundColor?: string;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Modal/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { INotificationProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
export declare const INDEFINITELY_FULL_SCREEN_POSITION: {
|
|
4
|
-
right: string;
|
|
5
|
-
left: string;
|
|
6
|
-
};
|
|
7
|
-
declare const Notification: ({ theme, platform, id, type, isAutoHidden, layoutType, isAllIndefinitelyNeedToBeClosed, indefinitelyFullScreenPosition, hideDuration, distanceFromBottom, title, avatar, text, subText, iconColor, action, onClose, }: INotificationProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export default Notification;
|