@expressms/smartapp-ui 2.8.6 → 2.8.7-alpha.1
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 +63 -59
- package/build/main/assets/icons/arrow-back.svg +0 -3
- package/build/main/assets/icons/arrow-down.svg +0 -3
- package/build/main/assets/icons/arrow-up.svg +0 -3
- package/build/main/assets/icons/attachment-loader.svg +0 -3
- package/build/main/assets/icons/button-loader.svg +0 -3
- package/build/main/assets/icons/cancel-cross.svg +0 -3
- package/build/main/assets/icons/check-mark.svg +0 -4
- package/build/main/assets/icons/clear.svg +0 -3
- package/build/main/assets/icons/close-stories.svg +0 -4
- package/build/main/assets/icons/close.svg +0 -10
- package/build/main/assets/icons/contact-info.svg +0 -12
- package/build/main/assets/icons/corporate-user.svg +0 -10
- package/build/main/assets/icons/crown.svg +0 -5
- package/build/main/assets/icons/delete-chip.svg +0 -3
- package/build/main/assets/icons/download.svg +0 -4
- package/build/main/assets/icons/error.svg +0 -5
- package/build/main/assets/icons/external-link.svg +0 -3
- package/build/main/assets/icons/eye-off.svg +0 -10
- package/build/main/assets/icons/eye.svg +0 -10
- package/build/main/assets/icons/file.svg +0 -3
- package/build/main/assets/icons/info.svg +0 -5
- package/build/main/assets/icons/loader.svg +0 -3
- package/build/main/assets/icons/logout.svg +0 -4
- package/build/main/assets/icons/magnifying-glass.svg +0 -3
- package/build/main/assets/icons/mail.svg +0 -3
- package/build/main/assets/icons/more.svg +0 -3
- package/build/main/assets/icons/my-contact-user.svg +0 -10
- package/build/main/assets/icons/notification-close.svg +0 -3
- package/build/main/assets/icons/notification-error.svg +0 -3
- package/build/main/assets/icons/notification-failure.svg +0 -3
- package/build/main/assets/icons/notification-info.svg +0 -5
- package/build/main/assets/icons/notification-success.svg +0 -4
- package/build/main/assets/icons/notification-warning.svg +0 -5
- package/build/main/assets/icons/order.svg +0 -6
- package/build/main/assets/icons/plus.svg +0 -4
- package/build/main/assets/icons/private.svg +0 -12
- package/build/main/assets/icons/refresh.svg +0 -3
- package/build/main/assets/icons/story-loader.svg +0 -3
- package/build/main/assets/icons/tick.svg +0 -10
- package/build/main/assets/icons/trash.svg +0 -3
- package/build/main/assets/icons/unread-mails.svg +0 -4
- package/build/main/assets/storybook/index.d.ts +0 -21
- package/build/main/assets/storybook/index.js +0 -22
- package/build/main/assets/storybook/index.js.map +0 -1
- package/build/main/constants/constants.d.ts +0 -150
- package/build/main/constants/constants.js +0 -170
- package/build/main/constants/constants.js.map +0 -1
- package/build/main/constants/index.d.ts +0 -2
- package/build/main/constants/index.js +0 -3
- package/build/main/constants/index.js.map +0 -1
- package/build/main/constants/types.d.ts +0 -24
- package/build/main/constants/types.js +0 -2
- package/build/main/constants/types.js.map +0 -1
- package/build/main/helpers/index.d.ts +0 -22
- package/build/main/helpers/index.js +0 -89
- package/build/main/helpers/index.js.map +0 -1
- package/build/main/hooks/useModal.d.ts +0 -21
- package/build/main/hooks/useModal.js +0 -60
- package/build/main/hooks/useModal.js.map +0 -1
- package/build/main/index.d.ts +0 -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 -55
- package/build/main//321/201omponents/ActionModal/ActionModal.js.map +0 -1
- package/build/main//321/201omponents/ActionModal/index.d.ts +0 -1
- package/build/main//321/201omponents/ActionModal/index.js +0 -2
- package/build/main//321/201omponents/ActionModal/index.js.map +0 -1
- package/build/main//321/201omponents/ActionModal/types.d.ts +0 -24
- package/build/main//321/201omponents/ActionModal/types.js +0 -2
- package/build/main//321/201omponents/ActionModal/types.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/AttachedFile.d.ts +0 -8
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js +0 -60
- package/build/main//321/201omponents/AttachedFile/AttachedFile.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/index.d.ts +0 -1
- package/build/main//321/201omponents/AttachedFile/index.js +0 -2
- package/build/main//321/201omponents/AttachedFile/index.js.map +0 -1
- package/build/main//321/201omponents/AttachedFile/types.d.ts +0 -25
- package/build/main//321/201omponents/AttachedFile/types.js +0 -2
- package/build/main//321/201omponents/AttachedFile/types.js.map +0 -1
- package/build/main//321/201omponents/Avatar/Avatar.d.ts +0 -4
- package/build/main//321/201omponents/Avatar/Avatar.js +0 -134
- 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 -57
- package/build/main//321/201omponents/Avatar/types.js +0 -28
- 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 -57
- 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 -22
- package/build/main//321/201omponents/Button/types.js +0 -11
- package/build/main//321/201omponents/Button/types.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/CachedImage.d.ts +0 -4
- package/build/main//321/201omponents/CachedImage/CachedImage.js +0 -59
- package/build/main//321/201omponents/CachedImage/CachedImage.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/helpers.d.ts +0 -3
- package/build/main//321/201omponents/CachedImage/helpers.js +0 -40
- package/build/main//321/201omponents/CachedImage/helpers.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/index.d.ts +0 -1
- package/build/main//321/201omponents/CachedImage/index.js +0 -2
- package/build/main//321/201omponents/CachedImage/index.js.map +0 -1
- package/build/main//321/201omponents/CachedImage/types.d.ts +0 -10
- package/build/main//321/201omponents/CachedImage/types.js +0 -2
- package/build/main//321/201omponents/CachedImage/types.js.map +0 -1
- package/build/main//321/201omponents/Calendar/Calendar.d.ts +0 -4
- package/build/main//321/201omponents/Calendar/Calendar.js +0 -95
- package/build/main//321/201omponents/Calendar/Calendar.js.map +0 -1
- package/build/main//321/201omponents/Calendar/index.d.ts +0 -1
- package/build/main//321/201omponents/Calendar/index.js +0 -2
- package/build/main//321/201omponents/Calendar/index.js.map +0 -1
- package/build/main//321/201omponents/Calendar/types.d.ts +0 -13
- package/build/main//321/201omponents/Calendar/types.js +0 -2
- package/build/main//321/201omponents/Calendar/types.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.d.ts +0 -3
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js +0 -45
- package/build/main//321/201omponents/Charts/ChartBar/ChartBar.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.d.ts +0 -4
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js +0 -71
- package/build/main//321/201omponents/Charts/ChartLegend/ChartLegend.js.map +0 -1
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.d.ts +0 -3
- package/build/main//321/201omponents/Charts/ChartLine/ChartLine.js +0 -40
- 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 -62
- package/build/main//321/201omponents/Charts/ChartPie/ChartPie.js.map +0 -1
- package/build/main//321/201omponents/Charts/colors.d.ts +0 -3
- package/build/main//321/201omponents/Charts/colors.js +0 -4
- package/build/main//321/201omponents/Charts/colors.js.map +0 -1
- package/build/main//321/201omponents/Charts/constants.d.ts +0 -46
- package/build/main//321/201omponents/Charts/constants.js +0 -43
- package/build/main//321/201omponents/Charts/constants.js.map +0 -1
- package/build/main//321/201omponents/Charts/helpers.d.ts +0 -17
- package/build/main//321/201omponents/Charts/helpers.js +0 -73
- package/build/main//321/201omponents/Charts/helpers.js.map +0 -1
- package/build/main//321/201omponents/Charts/index.d.ts +0 -3
- package/build/main//321/201omponents/Charts/index.js +0 -4
- package/build/main//321/201omponents/Charts/index.js.map +0 -1
- package/build/main//321/201omponents/Charts/types.d.ts +0 -88
- package/build/main//321/201omponents/Charts/types.js +0 -2
- package/build/main//321/201omponents/Charts/types.js.map +0 -1
- package/build/main//321/201omponents/Charts/useEvents.d.ts +0 -5
- package/build/main//321/201omponents/Charts/useEvents.js +0 -45
- package/build/main//321/201omponents/Charts/useEvents.js.map +0 -1
- package/build/main//321/201omponents/Charts/usePieEvents.d.ts +0 -6
- package/build/main//321/201omponents/Charts/usePieEvents.js +0 -57
- package/build/main//321/201omponents/Charts/usePieEvents.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/Checkbox.d.ts +0 -4
- package/build/main//321/201omponents/Checkbox/Checkbox.js +0 -38
- package/build/main//321/201omponents/Checkbox/Checkbox.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/index.d.ts +0 -1
- package/build/main//321/201omponents/Checkbox/index.js +0 -2
- package/build/main//321/201omponents/Checkbox/index.js.map +0 -1
- package/build/main//321/201omponents/Checkbox/types.d.ts +0 -12
- package/build/main//321/201omponents/Checkbox/types.js +0 -2
- package/build/main//321/201omponents/Checkbox/types.js.map +0 -1
- package/build/main//321/201omponents/Chip/Chip.d.ts +0 -4
- package/build/main//321/201omponents/Chip/Chip.js +0 -35
- package/build/main//321/201omponents/Chip/Chip.js.map +0 -1
- package/build/main//321/201omponents/Chip/index.d.ts +0 -1
- package/build/main//321/201omponents/Chip/index.js +0 -2
- package/build/main//321/201omponents/Chip/index.js.map +0 -1
- package/build/main//321/201omponents/Chip/types.d.ts +0 -13
- package/build/main//321/201omponents/Chip/types.js +0 -2
- package/build/main//321/201omponents/Chip/types.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.d.ts +0 -4
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js +0 -70
- package/build/main//321/201omponents/ConfirmationModal/ConfirmationModal.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/index.d.ts +0 -1
- package/build/main//321/201omponents/ConfirmationModal/index.js +0 -2
- package/build/main//321/201omponents/ConfirmationModal/index.js.map +0 -1
- package/build/main//321/201omponents/ConfirmationModal/types.d.ts +0 -28
- package/build/main//321/201omponents/ConfirmationModal/types.js +0 -2
- package/build/main//321/201omponents/ConfirmationModal/types.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/ContextMenu.d.ts +0 -4
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js +0 -82
- package/build/main//321/201omponents/ContextMenu/ContextMenu.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/index.d.ts +0 -1
- package/build/main//321/201omponents/ContextMenu/index.js +0 -2
- package/build/main//321/201omponents/ContextMenu/index.js.map +0 -1
- package/build/main//321/201omponents/ContextMenu/types.d.ts +0 -32
- package/build/main//321/201omponents/ContextMenu/types.js +0 -2
- package/build/main//321/201omponents/ContextMenu/types.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/CustomSelect.d.ts +0 -12
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js +0 -243
- package/build/main//321/201omponents/CustomSelect/CustomSelect.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/index.d.ts +0 -1
- package/build/main//321/201omponents/CustomSelect/index.js +0 -2
- package/build/main//321/201omponents/CustomSelect/index.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/selectStyles.d.ts +0 -16
- package/build/main//321/201omponents/CustomSelect/selectStyles.js +0 -67
- package/build/main//321/201omponents/CustomSelect/selectStyles.js.map +0 -1
- package/build/main//321/201omponents/CustomSelect/types.d.ts +0 -64
- package/build/main//321/201omponents/CustomSelect/types.js +0 -2
- package/build/main//321/201omponents/CustomSelect/types.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.d.ts +0 -4
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js +0 -57
- package/build/main//321/201omponents/CustomSelectProfiles/CustomSelectProfiles.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/index.d.ts +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/index.js +0 -2
- package/build/main//321/201omponents/CustomSelectProfiles/index.js.map +0 -1
- package/build/main//321/201omponents/CustomSelectProfiles/types.d.ts +0 -12
- package/build/main//321/201omponents/CustomSelectProfiles/types.js +0 -2
- package/build/main//321/201omponents/CustomSelectProfiles/types.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.d.ts +0 -4
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js +0 -57
- package/build/main//321/201omponents/DragAndDrop/DragAndDrop.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/index.d.ts +0 -1
- package/build/main//321/201omponents/DragAndDrop/index.js +0 -2
- package/build/main//321/201omponents/DragAndDrop/index.js.map +0 -1
- package/build/main//321/201omponents/DragAndDrop/types.d.ts +0 -24
- package/build/main//321/201omponents/DragAndDrop/types.js +0 -2
- package/build/main//321/201omponents/DragAndDrop/types.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.d.ts +0 -4
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js +0 -127
- package/build/main//321/201omponents/DraggablePopup/DraggablePopup.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/index.d.ts +0 -1
- package/build/main//321/201omponents/DraggablePopup/index.js +0 -2
- package/build/main//321/201omponents/DraggablePopup/index.js.map +0 -1
- package/build/main//321/201omponents/DraggablePopup/types.d.ts +0 -61
- package/build/main//321/201omponents/DraggablePopup/types.js +0 -2
- package/build/main//321/201omponents/DraggablePopup/types.js.map +0 -1
- package/build/main//321/201omponents/Error/Error.d.ts +0 -4
- package/build/main//321/201omponents/Error/Error.js +0 -23
- package/build/main//321/201omponents/Error/Error.js.map +0 -1
- package/build/main//321/201omponents/Error/index.d.ts +0 -1
- package/build/main//321/201omponents/Error/index.js +0 -2
- package/build/main//321/201omponents/Error/index.js.map +0 -1
- package/build/main//321/201omponents/Error/types.d.ts +0 -10
- package/build/main//321/201omponents/Error/types.js +0 -2
- package/build/main//321/201omponents/Error/types.js.map +0 -1
- package/build/main//321/201omponents/Flex/Flex.d.ts +0 -2
- package/build/main//321/201omponents/Flex/Flex.js +0 -49
- package/build/main//321/201omponents/Flex/Flex.js.map +0 -1
- package/build/main//321/201omponents/Flex/HFlex/HFlex.d.ts +0 -5
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js +0 -16
- package/build/main//321/201omponents/Flex/HFlex/HFlex.js.map +0 -1
- package/build/main//321/201omponents/Flex/HFlex/index.d.ts +0 -1
- package/build/main//321/201omponents/Flex/HFlex/index.js +0 -2
- package/build/main//321/201omponents/Flex/HFlex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/VFlex/VFlex.d.ts +0 -5
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js +0 -16
- package/build/main//321/201omponents/Flex/VFlex/VFlex.js.map +0 -1
- package/build/main//321/201omponents/Flex/VFlex/index.d.ts +0 -1
- package/build/main//321/201omponents/Flex/VFlex/index.js +0 -2
- package/build/main//321/201omponents/Flex/VFlex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/index.d.ts +0 -3
- package/build/main//321/201omponents/Flex/index.js +0 -4
- package/build/main//321/201omponents/Flex/index.js.map +0 -1
- package/build/main//321/201omponents/Flex/types.d.ts +0 -15
- package/build/main//321/201omponents/Flex/types.js +0 -2
- package/build/main//321/201omponents/Flex/types.js.map +0 -1
- package/build/main//321/201omponents/Header/Header.d.ts +0 -5
- package/build/main//321/201omponents/Header/Header.js +0 -124
- package/build/main//321/201omponents/Header/Header.js.map +0 -1
- package/build/main//321/201omponents/Header/index.d.ts +0 -1
- package/build/main//321/201omponents/Header/index.js +0 -2
- package/build/main//321/201omponents/Header/index.js.map +0 -1
- package/build/main//321/201omponents/Header/types.d.ts +0 -46
- package/build/main//321/201omponents/Header/types.js +0 -2
- package/build/main//321/201omponents/Header/types.js.map +0 -1
- package/build/main//321/201omponents/Input/Input.d.ts +0 -4
- package/build/main//321/201omponents/Input/Input.js +0 -207
- package/build/main//321/201omponents/Input/Input.js.map +0 -1
- package/build/main//321/201omponents/Input/index.d.ts +0 -1
- package/build/main//321/201omponents/Input/index.js +0 -2
- package/build/main//321/201omponents/Input/index.js.map +0 -1
- package/build/main//321/201omponents/Input/types.d.ts +0 -29
- package/build/main//321/201omponents/Input/types.js +0 -2
- package/build/main//321/201omponents/Input/types.js.map +0 -1
- package/build/main//321/201omponents/ListItem/ListItem.d.ts +0 -23
- package/build/main//321/201omponents/ListItem/ListItem.js +0 -208
- package/build/main//321/201omponents/ListItem/ListItem.js.map +0 -1
- package/build/main//321/201omponents/ListItem/index.d.ts +0 -1
- package/build/main//321/201omponents/ListItem/index.js +0 -2
- package/build/main//321/201omponents/ListItem/index.js.map +0 -1
- package/build/main//321/201omponents/ListItem/types.d.ts +0 -42
- package/build/main//321/201omponents/ListItem/types.js +0 -2
- package/build/main//321/201omponents/ListItem/types.js.map +0 -1
- package/build/main//321/201omponents/Loader/Loader.d.ts +0 -4
- package/build/main//321/201omponents/Loader/Loader.js +0 -44
- package/build/main//321/201omponents/Loader/Loader.js.map +0 -1
- package/build/main//321/201omponents/Loader/index.d.ts +0 -1
- package/build/main//321/201omponents/Loader/index.js +0 -2
- package/build/main//321/201omponents/Loader/index.js.map +0 -1
- package/build/main//321/201omponents/Loader/types.d.ts +0 -18
- package/build/main//321/201omponents/Loader/types.js +0 -2
- package/build/main//321/201omponents/Loader/types.js.map +0 -1
- package/build/main//321/201omponents/Modal/Modal.d.ts +0 -4
- package/build/main//321/201omponents/Modal/Modal.js +0 -125
- 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 -32
- package/build/main//321/201omponents/Modal/types.js +0 -2
- package/build/main//321/201omponents/Modal/types.js.map +0 -1
- package/build/main//321/201omponents/Notification/Notification.d.ts +0 -8
- package/build/main//321/201omponents/Notification/Notification.js +0 -217
- package/build/main//321/201omponents/Notification/Notification.js.map +0 -1
- package/build/main//321/201omponents/Notification/index.d.ts +0 -1
- package/build/main//321/201omponents/Notification/index.js +0 -2
- package/build/main//321/201omponents/Notification/index.js.map +0 -1
- package/build/main//321/201omponents/Notification/types.d.ts +0 -45
- package/build/main//321/201omponents/Notification/types.js +0 -2
- package/build/main//321/201omponents/Notification/types.js.map +0 -1
- package/build/main//321/201omponents/Profile/Profile.d.ts +0 -4
- package/build/main//321/201omponents/Profile/Profile.js +0 -42
- package/build/main//321/201omponents/Profile/Profile.js.map +0 -1
- package/build/main//321/201omponents/Profile/index.d.ts +0 -1
- package/build/main//321/201omponents/Profile/index.js +0 -2
- package/build/main//321/201omponents/Profile/index.js.map +0 -1
- package/build/main//321/201omponents/Profile/types.d.ts +0 -14
- package/build/main//321/201omponents/Profile/types.js +0 -2
- package/build/main//321/201omponents/Profile/types.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/ProgressBar.d.ts +0 -4
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js +0 -66
- package/build/main//321/201omponents/ProgressBar/ProgressBar.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/index.d.ts +0 -1
- package/build/main//321/201omponents/ProgressBar/index.js +0 -2
- package/build/main//321/201omponents/ProgressBar/index.js.map +0 -1
- package/build/main//321/201omponents/ProgressBar/types.d.ts +0 -7
- package/build/main//321/201omponents/ProgressBar/types.js +0 -2
- package/build/main//321/201omponents/ProgressBar/types.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/RadioButton.d.ts +0 -4
- package/build/main//321/201omponents/RadioButton/RadioButton.js +0 -37
- package/build/main//321/201omponents/RadioButton/RadioButton.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/index.d.ts +0 -1
- package/build/main//321/201omponents/RadioButton/index.js +0 -2
- package/build/main//321/201omponents/RadioButton/index.js.map +0 -1
- package/build/main//321/201omponents/RadioButton/types.d.ts +0 -12
- package/build/main//321/201omponents/RadioButton/types.js +0 -2
- package/build/main//321/201omponents/RadioButton/types.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/ScrollBar.d.ts +0 -5
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js +0 -63
- package/build/main//321/201omponents/ScrollBar/ScrollBar.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/index.d.ts +0 -1
- package/build/main//321/201omponents/ScrollBar/index.js +0 -2
- package/build/main//321/201omponents/ScrollBar/index.js.map +0 -1
- package/build/main//321/201omponents/ScrollBar/types.d.ts +0 -20
- package/build/main//321/201omponents/ScrollBar/types.js +0 -2
- package/build/main//321/201omponents/ScrollBar/types.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/Skeleton.d.ts +0 -3
- package/build/main//321/201omponents/Skeleton/Skeleton.js +0 -58
- package/build/main//321/201omponents/Skeleton/Skeleton.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/index.d.ts +0 -1
- package/build/main//321/201omponents/Skeleton/index.js +0 -2
- package/build/main//321/201omponents/Skeleton/index.js.map +0 -1
- package/build/main//321/201omponents/Skeleton/types.d.ts +0 -17
- package/build/main//321/201omponents/Skeleton/types.js +0 -2
- package/build/main//321/201omponents/Skeleton/types.js.map +0 -1
- package/build/main//321/201omponents/Stories/Stories.d.ts +0 -4
- package/build/main//321/201omponents/Stories/Stories.js +0 -300
- package/build/main//321/201omponents/Stories/Stories.js.map +0 -1
- package/build/main//321/201omponents/Stories/index.d.ts +0 -1
- package/build/main//321/201omponents/Stories/index.js +0 -2
- package/build/main//321/201omponents/Stories/index.js.map +0 -1
- package/build/main//321/201omponents/Stories/types.d.ts +0 -70
- package/build/main//321/201omponents/Stories/types.js +0 -16
- package/build/main//321/201omponents/Stories/types.js.map +0 -1
- package/build/main//321/201omponents/Switcher/Switcher.d.ts +0 -4
- package/build/main//321/201omponents/Switcher/Switcher.js +0 -34
- package/build/main//321/201omponents/Switcher/Switcher.js.map +0 -1
- package/build/main//321/201omponents/Switcher/index.d.ts +0 -1
- package/build/main//321/201omponents/Switcher/index.js +0 -2
- package/build/main//321/201omponents/Switcher/index.js.map +0 -1
- package/build/main//321/201omponents/Switcher/types.d.ts +0 -8
- package/build/main//321/201omponents/Switcher/types.js +0 -2
- package/build/main//321/201omponents/Switcher/types.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/SyncLoader.d.ts +0 -5
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js +0 -65
- package/build/main//321/201omponents/SyncLoader/SyncLoader.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/index.d.ts +0 -1
- package/build/main//321/201omponents/SyncLoader/index.js +0 -2
- package/build/main//321/201omponents/SyncLoader/index.js.map +0 -1
- package/build/main//321/201omponents/SyncLoader/types.d.ts +0 -9
- package/build/main//321/201omponents/SyncLoader/types.js +0 -2
- package/build/main//321/201omponents/SyncLoader/types.js.map +0 -1
- package/build/main//321/201omponents/Textarea/Textarea.d.ts +0 -4
- package/build/main//321/201omponents/Textarea/Textarea.js +0 -96
- package/build/main//321/201omponents/Textarea/Textarea.js.map +0 -1
- package/build/main//321/201omponents/Textarea/index.d.ts +0 -1
- package/build/main//321/201omponents/Textarea/index.js +0 -2
- package/build/main//321/201omponents/Textarea/index.js.map +0 -1
- package/build/main//321/201omponents/Textarea/types.d.ts +0 -12
- package/build/main//321/201omponents/Textarea/types.js +0 -2
- package/build/main//321/201omponents/Textarea/types.js.map +0 -1
- package/build/main//321/201omponents/Toggle/Toggle.d.ts +0 -4
- package/build/main//321/201omponents/Toggle/Toggle.js +0 -38
- package/build/main//321/201omponents/Toggle/Toggle.js.map +0 -1
- package/build/main//321/201omponents/Toggle/index.d.ts +0 -1
- package/build/main//321/201omponents/Toggle/index.js +0 -2
- package/build/main//321/201omponents/Toggle/index.js.map +0 -1
- package/build/main//321/201omponents/Toggle/types.d.ts +0 -12
- package/build/main//321/201omponents/Toggle/types.js +0 -2
- package/build/main//321/201omponents/Toggle/types.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js +0 -31
- package/build/main//321/201omponents/UserDropdown/ContactBottomSheet/ContactBottomSheet.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js +0 -76
- package/build/main//321/201omponents/UserDropdown/ContactInfo/ContactInfo.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js +0 -23
- package/build/main//321/201omponents/UserDropdown/LoadingMessage/LoadingMessage.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.d.ts +0 -4
- package/build/main//321/201omponents/UserDropdown/MenuList/MenuList.js +0 -81
- 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 -91
- package/build/main//321/201omponents/UserDropdown/Option/Option.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/UserDropdown.d.ts +0 -5
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js +0 -434
- package/build/main//321/201omponents/UserDropdown/UserDropdown.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/helpers.d.ts +0 -94
- package/build/main//321/201omponents/UserDropdown/helpers.js +0 -93
- package/build/main//321/201omponents/UserDropdown/helpers.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/index.d.ts +0 -1
- package/build/main//321/201omponents/UserDropdown/index.js +0 -2
- package/build/main//321/201omponents/UserDropdown/index.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/selectStyles.d.ts +0 -15
- package/build/main//321/201omponents/UserDropdown/selectStyles.js +0 -75
- package/build/main//321/201omponents/UserDropdown/selectStyles.js.map +0 -1
- package/build/main//321/201omponents/UserDropdown/types.d.ts +0 -194
- 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 -34
- package/build/main//321/201omponents/index.js +0 -35
- 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,207 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { useRef, useState, useEffect } from 'react';
|
|
25
|
-
import classNames from 'classnames';
|
|
26
|
-
import { isEmpty, isNil, isNull } from 'lodash';
|
|
27
|
-
import { generateColor, isSecondaryFillType } from '../../helpers';
|
|
28
|
-
import { ADDITIONAL_INPUT_PR, ADDITIONAL_MAX_CHARACTERS, DEFAULT_INPUT_PADDING, ENTER_KEY, FILL_TYPE, INPUT_COUNTER_TIMEOUT, INPUT_COUNTER_TYPE, INPUT_FIELD_TYPE, INPUT_TYPE_PASSWORD, INPUT_TYPE_TEXT, MASK_INPUT_PL, } from '../../constants';
|
|
29
|
-
import { ReactComponent as EyeIcon } from '../../assets/icons/eye.svg';
|
|
30
|
-
import { ReactComponent as EyeOffIcon } from '../../assets/icons/eye-off.svg';
|
|
31
|
-
import { ReactComponent as ClearIcon } from '../../assets/icons/clear.svg';
|
|
32
|
-
import { ReactComponent as MagnifyingGlassIcon } from '../../assets/icons/magnifying-glass.svg';
|
|
33
|
-
import '../../styles/styles.scss';
|
|
34
|
-
var Input = function (_a) {
|
|
35
|
-
var _b = _a.isPassword, isPassword = _b === void 0 ? false : _b, _c = _a.isClearable, isClearable = _c === void 0 ? false : _c, _d = _a.isSearchable, isSearchable = _d === void 0 ? false : _d, _e = _a.disabled, disabled = _e === void 0 ? false : _e, title = _a.title, mask = _a.mask, maxCharacters = _a.maxCharacters, hint = _a.hint, error = _a.error, type = _a.type, _f = _a.fieldType, fieldType = _f === void 0 ? INPUT_FIELD_TYPE.text : _f, _g = _a.fillType, fillType = _g === void 0 ? FILL_TYPE.primary : _g, _h = _a.counterType, counterType = _h === void 0 ? INPUT_COUNTER_TYPE.text : _h, _j = _a.width, width = _j === void 0 ? 100 : _j, iconColor = _a.iconColor, containerClassName = _a.containerClassName, className = _a.className, containerStyles = _a.containerStyles, style = _a.style, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, onEnterPress = _a.onEnterPress, onClearClick = _a.onClearClick, outerRef = _a.outerRef, additionalInputParams = _a.additionalInputParams, _k = _a.disableErrorBorder, disableErrorBorder = _k === void 0 ? false : _k, props = __rest(_a, ["isPassword", "isClearable", "isSearchable", "disabled", "title", "mask", "maxCharacters", "hint", "error", "type", "fieldType", "fillType", "counterType", "width", "iconColor", "containerClassName", "className", "containerStyles", "style", "onChange", "onFocus", "onBlur", "onEnterPress", "onClearClick", "outerRef", "additionalInputParams", "disableErrorBorder"]);
|
|
36
|
-
var localRef = useRef(null);
|
|
37
|
-
var maskRef = useRef(null);
|
|
38
|
-
var additionalInputRef = useRef(null);
|
|
39
|
-
var hiddenSpanRef = useRef(null);
|
|
40
|
-
var inputRef = outerRef || localRef;
|
|
41
|
-
var _l = useState(0), inputLength = _l[0], setInputLength = _l[1];
|
|
42
|
-
var _m = useState(maxCharacters || 0), remainingCharacters = _m[0], setRemainingCharacters = _m[1];
|
|
43
|
-
var _o = useState(null), timeoutId = _o[0], setTimeoutId = _o[1];
|
|
44
|
-
var _p = useState(false), isPasswordShown = _p[0], setIsPasswordShown = _p[1];
|
|
45
|
-
var _q = useState(0), additionalWidth = _q[0], setAdditionalWidth = _q[1];
|
|
46
|
-
var _r = useState(0), minAdditionalWidth = _r[0], setMinAdditionalWidth = _r[1];
|
|
47
|
-
var _s = useState(false), isClearableIconVisible = _s[0], setIsClearableIconVisible = _s[1];
|
|
48
|
-
var iconStyles = { color: generateColor(iconColor) };
|
|
49
|
-
var _t = additionalInputParams || {}, additionalClassName = _t.className, additionalPlaceholder = _t.placeholder, additionalDefaultValue = _t.defaultValue, onAdditionalChange = _t.onChange, additionalInputProps = __rest(_t, ["className", "placeholder", "defaultValue", "onChange"]);
|
|
50
|
-
useEffect(function () {
|
|
51
|
-
var inputElement = inputRef.current;
|
|
52
|
-
var setScrollLeftAsLeftByUser = function (event) {
|
|
53
|
-
var scrollLeft = event.target.scrollLeft;
|
|
54
|
-
setTimeout(function () {
|
|
55
|
-
event.target.scrollLeft = scrollLeft;
|
|
56
|
-
}, 0);
|
|
57
|
-
};
|
|
58
|
-
inputElement === null || inputElement === void 0 ? void 0 : inputElement.addEventListener('blur', setScrollLeftAsLeftByUser);
|
|
59
|
-
return function () {
|
|
60
|
-
inputElement === null || inputElement === void 0 ? void 0 : inputElement.removeEventListener('blur', setScrollLeftAsLeftByUser);
|
|
61
|
-
};
|
|
62
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
63
|
-
}, []);
|
|
64
|
-
useEffect(function () {
|
|
65
|
-
var inputElement = inputRef.current;
|
|
66
|
-
if (inputElement && inputElement.value.length) {
|
|
67
|
-
var textLength = inputElement.value.length;
|
|
68
|
-
inputElement.selectionStart = textLength;
|
|
69
|
-
inputElement.selectionEnd = textLength;
|
|
70
|
-
inputElement.focus();
|
|
71
|
-
}
|
|
72
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
73
|
-
}, [isPasswordShown]);
|
|
74
|
-
useEffect(function () {
|
|
75
|
-
if (!remainingCharacters) {
|
|
76
|
-
handleSetTimeoutForCounter();
|
|
77
|
-
}
|
|
78
|
-
}, [remainingCharacters]);
|
|
79
|
-
useEffect(function () {
|
|
80
|
-
var hiddenSpanRefCurrent = hiddenSpanRef.current;
|
|
81
|
-
if (hiddenSpanRefCurrent && additionalPlaceholder) {
|
|
82
|
-
hiddenSpanRefCurrent.innerText = additionalPlaceholder;
|
|
83
|
-
var minAdditionalWidthValue = hiddenSpanRefCurrent.getBoundingClientRect().width;
|
|
84
|
-
hiddenSpanRefCurrent.innerText = (additionalDefaultValue === null || additionalDefaultValue === void 0 ? void 0 : additionalDefaultValue.toString()) || additionalPlaceholder;
|
|
85
|
-
var additionalWidthValue = hiddenSpanRefCurrent.getBoundingClientRect().width;
|
|
86
|
-
setAdditionalWidth(additionalWidthValue < minAdditionalWidthValue ? minAdditionalWidthValue : additionalWidthValue);
|
|
87
|
-
setMinAdditionalWidth(minAdditionalWidthValue);
|
|
88
|
-
}
|
|
89
|
-
}, [additionalPlaceholder, additionalDefaultValue]);
|
|
90
|
-
var calculateInputPaddingLeft = function () {
|
|
91
|
-
var maskWidth = maskRef.current ? maskRef.current.getBoundingClientRect().width : null;
|
|
92
|
-
return "".concat(maskWidth ? maskWidth + MASK_INPUT_PL : DEFAULT_INPUT_PADDING, "px");
|
|
93
|
-
};
|
|
94
|
-
var calculateInputPaddingRight = function () {
|
|
95
|
-
var additionalInputWidth = additionalInputRef.current ? additionalInputRef.current.getBoundingClientRect().width : null;
|
|
96
|
-
return "".concat(additionalInputWidth ? additionalInputWidth + ADDITIONAL_INPUT_PR : DEFAULT_INPUT_PADDING, "px");
|
|
97
|
-
};
|
|
98
|
-
var generateInputType = function () {
|
|
99
|
-
if (isPassword) {
|
|
100
|
-
return isPasswordShown ? INPUT_TYPE_TEXT : INPUT_TYPE_PASSWORD;
|
|
101
|
-
}
|
|
102
|
-
return type || INPUT_TYPE_TEXT;
|
|
103
|
-
};
|
|
104
|
-
var isTitleCounterType = function () { return counterType === INPUT_COUNTER_TYPE.title; };
|
|
105
|
-
var isTitleCounterVisible = function () { return isTitleCounterType() && !isNil(maxCharacters); };
|
|
106
|
-
var isTextCounterVisible = function () {
|
|
107
|
-
if (isNil(maxCharacters) || isTitleCounterType()) {
|
|
108
|
-
return false;
|
|
109
|
-
}
|
|
110
|
-
// 30 percent of the maximum characters
|
|
111
|
-
var charactersToCompare = (maxCharacters * 30) / 100;
|
|
112
|
-
return remainingCharacters < charactersToCompare;
|
|
113
|
-
};
|
|
114
|
-
var handleSetTimeoutForCounter = function () {
|
|
115
|
-
var id = setTimeout(function () { return setTimeoutId(null); }, INPUT_COUNTER_TIMEOUT);
|
|
116
|
-
setTimeoutId(id);
|
|
117
|
-
};
|
|
118
|
-
var handleKeyDown = function (_a) {
|
|
119
|
-
var key = _a.key;
|
|
120
|
-
if (key === ENTER_KEY && onEnterPress) {
|
|
121
|
-
onEnterPress();
|
|
122
|
-
}
|
|
123
|
-
if (!remainingCharacters) {
|
|
124
|
-
!isNull(timeoutId) && clearTimeout(timeoutId);
|
|
125
|
-
handleSetTimeoutForCounter();
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
var isInputValueEmpty = function () { var _a; return isEmpty((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value); };
|
|
129
|
-
var handleFocus = function (e) {
|
|
130
|
-
setIsClearableIconVisible(!isInputValueEmpty());
|
|
131
|
-
onFocus && onFocus(e);
|
|
132
|
-
};
|
|
133
|
-
var handleBlur = function (e) {
|
|
134
|
-
setIsClearableIconVisible(fieldType === INPUT_FIELD_TYPE.search ? !isInputValueEmpty() : false);
|
|
135
|
-
onBlur && onBlur(e);
|
|
136
|
-
};
|
|
137
|
-
var handleChange = function (_a) {
|
|
138
|
-
var value = _a.target.value;
|
|
139
|
-
var valueLength = value.length;
|
|
140
|
-
onChange(value);
|
|
141
|
-
setInputLength(valueLength);
|
|
142
|
-
setIsClearableIconVisible(!!valueLength);
|
|
143
|
-
if (maxCharacters) {
|
|
144
|
-
var remainingCharacters_1 = maxCharacters - valueLength;
|
|
145
|
-
setRemainingCharacters(remainingCharacters_1);
|
|
146
|
-
if (!!remainingCharacters_1 && !isNull(timeoutId)) {
|
|
147
|
-
clearTimeout(timeoutId);
|
|
148
|
-
setTimeoutId(null);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
};
|
|
152
|
-
var handleAdditionalChange = function (_a) {
|
|
153
|
-
var value = _a.target.value;
|
|
154
|
-
onAdditionalChange && onAdditionalChange(value);
|
|
155
|
-
if (hiddenSpanRef.current) {
|
|
156
|
-
hiddenSpanRef.current.innerText = value;
|
|
157
|
-
var spanWidth = hiddenSpanRef.current.getBoundingClientRect().width;
|
|
158
|
-
var width_1 = spanWidth < minAdditionalWidth ? minAdditionalWidth : spanWidth;
|
|
159
|
-
setAdditionalWidth(width_1);
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
var handleClickButton = function () {
|
|
163
|
-
var _a, _b;
|
|
164
|
-
setIsPasswordShown(!isPasswordShown);
|
|
165
|
-
!((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value.length) && ((_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.focus());
|
|
166
|
-
};
|
|
167
|
-
var handleClearClick = function (event) {
|
|
168
|
-
event.preventDefault();
|
|
169
|
-
if (inputRef.current && onClearClick) {
|
|
170
|
-
inputRef.current.value = '';
|
|
171
|
-
setIsClearableIconVisible(false);
|
|
172
|
-
onClearClick();
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
var renderInputTitle = function () {
|
|
176
|
-
return title && (_jsxs("div", __assign({ className: "smartapp-input__title" }, { children: [_jsx("p", __assign({ className: "smartapp-input__title--text" }, { children: title })), renderTitleCounter()] })));
|
|
177
|
-
};
|
|
178
|
-
var renderMask = function () {
|
|
179
|
-
return mask && (_jsx("div", __assign({ ref: maskRef, className: "smartapp-input__container--mask" }, { children: mask })));
|
|
180
|
-
};
|
|
181
|
-
var renderTitleCounter = function () {
|
|
182
|
-
return isTitleCounterVisible() && (_jsx("div", __assign({ className: classNames('smartapp-input__title--counter', { 'smartapp-input__title--counter__error': !isNull(timeoutId) }) }, { children: "".concat(inputLength, "/").concat(maxCharacters) })));
|
|
183
|
-
};
|
|
184
|
-
var renderEyeIcon = function () {
|
|
185
|
-
return isPassword && (_jsx("button", __assign({ type: "button", className: "smartapp-input__container--eye-button", onClick: handleClickButton }, { children: isPasswordShown ? _jsx(EyeIcon, { style: iconStyles }) : _jsx(EyeOffIcon, { style: iconStyles }) })));
|
|
186
|
-
};
|
|
187
|
-
var renderMagnifyingGlass = function () {
|
|
188
|
-
return isSearchable && _jsx(MagnifyingGlassIcon, { className: "smartapp-input__container--magnifying-glass-icon", style: iconStyles });
|
|
189
|
-
};
|
|
190
|
-
var renderClearIcon = function () {
|
|
191
|
-
return isClearable &&
|
|
192
|
-
isClearableIconVisible && (_jsx(ClearIcon, { className: "smartapp-input__container--clear-icon", style: iconStyles, onMouseDown: handleClearClick, onTouchEnd: handleClearClick }));
|
|
193
|
-
};
|
|
194
|
-
var renderTextCounter = function () {
|
|
195
|
-
return isTextCounterVisible() && (_jsx("div", __assign({ className: classNames('smartapp-input__container--counter', { 'smartapp-input__container--counter__error': !isNull(timeoutId) }) }, { children: remainingCharacters })));
|
|
196
|
-
};
|
|
197
|
-
var renderError = function () { return error && _jsx("div", __assign({ className: "smartapp-input__container--error" }, { children: error })); };
|
|
198
|
-
var renderHint = function () { return hint && _jsx("div", __assign({ className: "smartapp-input__hint" }, { children: hint })); };
|
|
199
|
-
return (_jsxs("div", __assign({ style: __assign({ width: "".concat(width, "%") }, containerStyles), className: classNames('smartapp-input', containerClassName) }, { children: [renderInputTitle(), _jsxs("div", __assign({ className: "smartapp-input__container" }, { children: [renderMask(), _jsx("input", __assign({ ref: inputRef, className: classNames('smartapp-input__container--field', {
|
|
200
|
-
'smartapp-input__container--field__with-button': isPassword || isClearable || isSearchable,
|
|
201
|
-
'smartapp-input__container--field__disabled': disabled,
|
|
202
|
-
'smartapp-input__container--field__error': error && !disableErrorBorder,
|
|
203
|
-
'smartapp-input__container--field__secondary-fill-type': isSecondaryFillType(fillType),
|
|
204
|
-
}, className), style: __assign({ paddingLeft: calculateInputPaddingLeft(), paddingRight: calculateInputPaddingRight() }, style), type: generateInputType(), disabled: disabled, maxLength: maxCharacters, onKeyDown: handleKeyDown, onChange: handleChange, onFocus: handleFocus, onBlur: handleBlur }, props)), onAdditionalChange && (_jsxs("div", __assign({ className: "smartapp-input__container--additional-field", style: { width: "".concat(additionalWidth, "px") } }, { children: [_jsx("input", __assign({ ref: additionalInputRef, className: classNames('smartapp-input__container--additional-field__input', { 'smartapp-input__container--additional-field__input--disabled': disabled }, additionalClassName), defaultValue: additionalDefaultValue, disabled: disabled, maxLength: ADDITIONAL_MAX_CHARACTERS, placeholder: additionalPlaceholder, onChange: handleAdditionalChange }, additionalInputProps)), _jsx("span", { ref: hiddenSpanRef, className: "smartapp-input__container--additional-field__hidden-span" })] }))), renderEyeIcon(), renderMagnifyingGlass(), renderClearIcon(), renderTextCounter(), renderError()] })), renderHint()] })));
|
|
205
|
-
};
|
|
206
|
-
export default Input;
|
|
207
|
-
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../../src/сomponents/Input/Input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAc,MAAM,OAAO,CAAA;AACtE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAClE,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,aAAa,GACd,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,cAAc,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EAAE,cAAc,IAAI,UAAU,EAAE,MAAM,gCAAgC,CAAA;AAC7E,OAAO,EAAE,cAAc,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EAAE,cAAc,IAAI,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC/F,OAAO,0BAA0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E,WAAW,EACpB,MAAM,EAAE,UAAU,IACd,KAAK,EACT,EACD,kBAAkB,IAAI,CACrB,wBAAK,SAAS,EAAC,6CAA6C,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,UAAG,eAAe,OAAI,EAAE,iBACnG,yBACE,GAAG,EAAE,kBAAkB,EACvB,SAAS,EAAE,UAAU,CACnB,oDAAoD,EACpD,EAAE,8DAA8D,EAAE,QAAQ,EAAE,EAC5E,mBAAmB,CACpB,EACD,YAAY,EAAE,sBAAsB,EACpC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,yBAAyB,EACpC,WAAW,EAAE,qBAAqB,EAClC,QAAQ,EAAE,sBAAsB,IAC5B,oBAAoB,EACxB,EACF,eAAM,GAAG,EAAE,aAAa,EAAE,SAAS,EAAC,0DAA0D,GAAG,KAC7F,CACP,EACA,aAAa,EAAE,EACf,qBAAqB,EAAE,EACvB,eAAe,EAAE,EACjB,iBAAiB,EAAE,EACnB,WAAW,EAAE,KACV,EACL,UAAU,EAAE,KACT,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Input';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/сomponents/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { InputHTMLAttributes, RefObject } from 'react';
|
|
2
|
-
import { IntRange } from '../types';
|
|
3
|
-
import { IThemeProps, TStyles } from '../../constants';
|
|
4
|
-
interface IInputParams extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
5
|
-
onChange: (str: string) => void;
|
|
6
|
-
}
|
|
7
|
-
export interface IInputProps extends IThemeProps, IInputParams {
|
|
8
|
-
isPassword?: boolean;
|
|
9
|
-
isClearable?: boolean;
|
|
10
|
-
isSearchable?: boolean;
|
|
11
|
-
title?: string;
|
|
12
|
-
mask?: string;
|
|
13
|
-
maxCharacters?: number;
|
|
14
|
-
hint?: string;
|
|
15
|
-
error?: string;
|
|
16
|
-
fieldType?: 'text' | 'search';
|
|
17
|
-
fillType?: 'primary' | 'secondary';
|
|
18
|
-
counterType?: 'title' | 'text';
|
|
19
|
-
width?: IntRange<1, 101>;
|
|
20
|
-
iconColor?: string;
|
|
21
|
-
containerClassName?: string;
|
|
22
|
-
containerStyles?: TStyles;
|
|
23
|
-
onEnterPress?: () => void;
|
|
24
|
-
onClearClick?: () => void;
|
|
25
|
-
additionalInputParams?: IInputParams;
|
|
26
|
-
outerRef?: RefObject<HTMLInputElement | null>;
|
|
27
|
-
disableErrorBorder?: boolean;
|
|
28
|
-
}
|
|
29
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/сomponents/Input/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { IListItemProps } from './types';
|
|
2
|
-
import '../../styles/styles.scss';
|
|
3
|
-
export declare const LIST_ITEM_TYPE: {
|
|
4
|
-
interactive: string;
|
|
5
|
-
notInteractive: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const INTERACTIVE_ELEMENT: {
|
|
8
|
-
radioButton: string;
|
|
9
|
-
checkbox: string;
|
|
10
|
-
toggle: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const INTERACTIVE_POSITION: {
|
|
13
|
-
left: string;
|
|
14
|
-
right: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const NOT_INTERACTIVE_ELEMENT: {
|
|
17
|
-
icon: string;
|
|
18
|
-
indicator: string;
|
|
19
|
-
noElement: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const DEFAULT_INDICATOR_COLOR = "blue";
|
|
22
|
-
declare const ListItem: (props: IListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export default ListItem;
|
|
@@ -1,208 +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 classNames from 'classnames';
|
|
15
|
-
import RadioButton from '../RadioButton';
|
|
16
|
-
import Checkbox from '../Checkbox';
|
|
17
|
-
import Toggle from '../Toggle';
|
|
18
|
-
import { generateId } from '../../helpers';
|
|
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 isType = 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 isElement = 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 textRef = props.textRef, type = props.type, text = props.text, element = props.element, isDisabled = props.isDisabled, className = props.className, styles = props.styles, textStyles = props.textStyles, interactiveElementStyles = props.interactiveElementStyles;
|
|
56
|
-
var listItemRef = useRef(null);
|
|
57
|
-
var isRadioButtonOrCheckbox = element === INTERACTIVE_ELEMENT.radioButton || element === INTERACTIVE_ELEMENT.checkbox;
|
|
58
|
-
var _a = isType(type), isInteractiveType = _a.isInteractiveType, isNotInteractiveType = _a.isNotInteractiveType;
|
|
59
|
-
var _b = isElement(element), isIndicatorElement = _b.isIndicatorElement, isIconElement = _b.isIconElement, isNoElement = _b.isNoElement;
|
|
60
|
-
var isLeftPosition = function (position) { return position === INTERACTIVE_POSITION.left; };
|
|
61
|
-
var isRightPosition = function (position) { return position === INTERACTIVE_POSITION.right; };
|
|
62
|
-
var generatePressedClassName = useCallback(function () {
|
|
63
|
-
var isElementHasSelectedProps = isIndicatorElement || isNoElement;
|
|
64
|
-
if (isNotInteractiveType && !isDisabled) {
|
|
65
|
-
if (isElementHasSelectedProps) {
|
|
66
|
-
var isSelected = props.isSelected;
|
|
67
|
-
return isSelected ? SELECTED_PRESSED_CLASSNAME : DEFAULT_PRESSED_CLASSNAME;
|
|
68
|
-
}
|
|
69
|
-
return DEFAULT_PRESSED_CLASSNAME;
|
|
70
|
-
}
|
|
71
|
-
return '';
|
|
72
|
-
}, [isDisabled, isIndicatorElement, isNoElement, isNotInteractiveType, props]);
|
|
73
|
-
var handleMouseDown = useCallback(function () {
|
|
74
|
-
var _a;
|
|
75
|
-
var pressedClassName = generatePressedClassName();
|
|
76
|
-
pressedClassName && ((_a = listItemRef.current) === null || _a === void 0 ? void 0 : _a.classList.add(pressedClassName));
|
|
77
|
-
}, [generatePressedClassName]);
|
|
78
|
-
var handleMouseUp = useCallback(function () {
|
|
79
|
-
var _a;
|
|
80
|
-
var pressedClassName = generatePressedClassName();
|
|
81
|
-
pressedClassName && ((_a = listItemRef.current) === null || _a === void 0 ? void 0 : _a.classList.remove(pressedClassName));
|
|
82
|
-
}, [generatePressedClassName]);
|
|
83
|
-
var handleClick = useCallback(function (event) {
|
|
84
|
-
if (isDisabled || !isRadioButtonOrCheckbox)
|
|
85
|
-
return;
|
|
86
|
-
var target = event.target;
|
|
87
|
-
var isClickOnInteractiveElement = target.closest('.smartapp-radio-button') || target.closest('.smartapp-check-box');
|
|
88
|
-
if (isInteractiveType && !isClickOnInteractiveElement) {
|
|
89
|
-
var onChange = props.onChange;
|
|
90
|
-
onChange();
|
|
91
|
-
}
|
|
92
|
-
}, [isDisabled, isInteractiveType, isRadioButtonOrCheckbox, props]);
|
|
93
|
-
var renderInteractiveElement = function () {
|
|
94
|
-
var _a = props, _b = _a.isSelected, isSelected = _b === void 0 ? false : _b, onChange = _a.onChange;
|
|
95
|
-
var elementId = generateId();
|
|
96
|
-
switch (element) {
|
|
97
|
-
case INTERACTIVE_ELEMENT.radioButton:
|
|
98
|
-
return _jsx(RadioButton, { id: elementId, isChecked: isSelected, isDisabled: isDisabled, onChange: onChange, styles: interactiveElementStyles });
|
|
99
|
-
case INTERACTIVE_ELEMENT.checkbox:
|
|
100
|
-
return _jsx(Checkbox, { id: elementId, isChecked: isSelected, isDisabled: isDisabled, onChange: onChange, styles: interactiveElementStyles });
|
|
101
|
-
case INTERACTIVE_ELEMENT.toggle:
|
|
102
|
-
return _jsx(Toggle, { id: elementId, isChecked: isSelected, isDisabled: isDisabled, onClick: onChange, styles: interactiveElementStyles });
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
var renderNotInteractiveElement = function () {
|
|
106
|
-
switch (element) {
|
|
107
|
-
case NOT_INTERACTIVE_ELEMENT.icon:
|
|
108
|
-
var icon = props.icon;
|
|
109
|
-
return _jsx("div", __assign({ className: classNames('smartapp-list-item__icon', { 'smartapp-list-item__icon--disabled': isDisabled }) }, { children: icon }));
|
|
110
|
-
case NOT_INTERACTIVE_ELEMENT.indicator:
|
|
111
|
-
var color = props.color;
|
|
112
|
-
return renderIndicatorElement({ color: color });
|
|
113
|
-
case NOT_INTERACTIVE_ELEMENT.noElement:
|
|
114
|
-
return null;
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
var renderIndicatorElement = function (_a) {
|
|
118
|
-
var _b;
|
|
119
|
-
var _c = _a.isIndicator, isIndicator = _c === void 0 ? true : _c, _d = _a.color, color = _d === void 0 ? DEFAULT_INDICATOR_COLOR : _d;
|
|
120
|
-
if (isIndicator) {
|
|
121
|
-
var indicatorColorClassName = "smartapp-list-item__indicator--".concat(color);
|
|
122
|
-
var className_1 = classNames('smartapp-list-item__indicator', indicatorColorClassName, (_b = {},
|
|
123
|
-
_b["".concat(indicatorColorClassName, "__disabled")] = isDisabled,
|
|
124
|
-
_b));
|
|
125
|
-
return _jsx("div", { className: className_1 });
|
|
126
|
-
}
|
|
127
|
-
return null;
|
|
128
|
-
};
|
|
129
|
-
var renderLeftElement = function () {
|
|
130
|
-
if (isInteractiveType) {
|
|
131
|
-
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;
|
|
132
|
-
return isLeftPosition(position) ? renderInteractiveElement() : renderIndicatorElement({ isIndicator: isIndicator, color: color });
|
|
133
|
-
}
|
|
134
|
-
if (isNotInteractiveType) {
|
|
135
|
-
return renderNotInteractiveElement();
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
var renderRightElement = function () {
|
|
139
|
-
if (isInteractiveType) {
|
|
140
|
-
var _a = props.position, position = _a === void 0 ? INTERACTIVE_POSITION.right : _a;
|
|
141
|
-
return isRightPosition(position) ? renderInteractiveElement() : null;
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
var renderSecondaryText = function () {
|
|
145
|
-
if (isNotInteractiveType && isNoElement) {
|
|
146
|
-
var _a = props, secondaryText = _a.secondaryText, secondaryTextColor = _a.secondaryTextColor;
|
|
147
|
-
return secondaryText ? _jsx("div", __assign({ style: { color: secondaryTextColor } }, { children: secondaryText })) : null;
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
var generateTextClassName = function () {
|
|
151
|
-
var classNames = ['smartapp-list-item__text'];
|
|
152
|
-
if (isInteractiveType) {
|
|
153
|
-
var _a = props, _b = _a.position, position = _b === void 0 ? INTERACTIVE_POSITION.right : _b, isIndicator = _a.isIndicator;
|
|
154
|
-
var isLeftClassNeeded = isLeftPosition(position) || isIndicator;
|
|
155
|
-
isLeftClassNeeded && classNames.push('smartapp-list-item__text--left');
|
|
156
|
-
isRightPosition(position) && classNames.push('smartapp-list-item__text--right');
|
|
157
|
-
isIndicator && isRightPosition(position) && classNames.push('smartapp-list-item__text--ellipse');
|
|
158
|
-
}
|
|
159
|
-
if (isNotInteractiveType && (isIconElement || isIndicatorElement)) {
|
|
160
|
-
classNames.push('smartapp-list-item__text--left');
|
|
161
|
-
}
|
|
162
|
-
isDisabled && classNames.push('smartapp-list-item__text--disabled');
|
|
163
|
-
return classNames;
|
|
164
|
-
};
|
|
165
|
-
var generateClassName = function () {
|
|
166
|
-
var classNames = ['smartapp-list-item', "smartapp-list-item__".concat(type)];
|
|
167
|
-
var isElementHasSelectedProps = isIndicatorElement || isNoElement;
|
|
168
|
-
if (isElementHasSelectedProps) {
|
|
169
|
-
var isSelected = props.isSelected;
|
|
170
|
-
isSelected && classNames.push("smartapp-list-item__".concat(type, "--selected"));
|
|
171
|
-
}
|
|
172
|
-
if (isNoElement) {
|
|
173
|
-
var secondaryText = props.secondaryText;
|
|
174
|
-
secondaryText && classNames.push("smartapp-list-item__".concat(type, "--with-secondary-text"));
|
|
175
|
-
}
|
|
176
|
-
isDisabled && classNames.push('smartapp-list-item__disabled');
|
|
177
|
-
className && classNames.push(className);
|
|
178
|
-
isRadioButtonOrCheckbox && classNames.push('smartapp-list-item__hover');
|
|
179
|
-
return classNames;
|
|
180
|
-
};
|
|
181
|
-
useEffect(function () {
|
|
182
|
-
var listItemRefCurrent = listItemRef.current;
|
|
183
|
-
var listItemRefClassList = listItemRefCurrent === null || listItemRefCurrent === void 0 ? void 0 : listItemRefCurrent.classList;
|
|
184
|
-
var resizeObserver = new ResizeObserver(function () {
|
|
185
|
-
var _a = props.position, position = _a === void 0 ? INTERACTIVE_POSITION.right : _a;
|
|
186
|
-
var height = (listItemRefCurrent === null || listItemRefCurrent === void 0 ? void 0 : listItemRefCurrent.getBoundingClientRect().height) || 0;
|
|
187
|
-
if (isLeftPosition(position)) {
|
|
188
|
-
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);
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
listItemRefClassList === null || listItemRefClassList === void 0 ? void 0 : listItemRefClassList.remove(TOP_ALIGN_CLASSNAME);
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
if (listItemRefCurrent && isInteractiveType) {
|
|
195
|
-
resizeObserver.observe(listItemRefCurrent);
|
|
196
|
-
}
|
|
197
|
-
return function () { return resizeObserver.disconnect(); };
|
|
198
|
-
}, [isInteractiveType, props]);
|
|
199
|
-
useEffect(function () {
|
|
200
|
-
window.addEventListener('mouseup', handleMouseUp);
|
|
201
|
-
return function () {
|
|
202
|
-
window.removeEventListener('mouseup', handleMouseUp);
|
|
203
|
-
};
|
|
204
|
-
}, [handleMouseUp]);
|
|
205
|
-
return (_jsxs("div", __assign({ ref: listItemRef, className: classNames(generateClassName()), style: styles, onMouseDown: handleMouseDown, onClick: handleClick }, { children: [renderLeftElement(), _jsxs("div", __assign({ className: classNames(generateTextClassName()), style: textStyles }, { children: [_jsx("div", __assign({ ref: textRef }, { children: text })), renderSecondaryText()] })), renderRightElement()] })));
|
|
206
|
-
};
|
|
207
|
-
export default ListItem;
|
|
208
|
-
//# 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,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,WAAW,MAAM,gBAAgB,CAAA;AACxC,OAAO,QAAQ,MAAM,aAAa,CAAA;AAClC,OAAO,MAAM,MAAM,WAAW,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAQ1C,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,MAA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E,aAAa,CAAC,CAAA;QAEjD,OAAO;YACL,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAA;QACtD,CAAC,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,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,WAAW,iBACjI,iBAAiB,EAAE,EACpB,wBAAK,SAAS,EAAE,UAAU,CAAC,qBAAqB,EAAE,CAAC,EAAE,KAAK,EAAE,UAAU,iBACpE,uBAAK,GAAG,EAAE,OAAO,gBAAG,IAAI,IAAO,EAC9B,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,42 +0,0 @@
|
|
|
1
|
-
import { ReactElement, RefObject } 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' | 'red';
|
|
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
|
-
className?: string;
|
|
38
|
-
styles?: TStyles;
|
|
39
|
-
textStyles?: TStyles;
|
|
40
|
-
interactiveElementStyles?: TStyles;
|
|
41
|
-
textRef?: RefObject<HTMLDivElement | null>;
|
|
42
|
-
};
|
|
@@ -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, containerClassName, className, containerStyles, styles, color, backgroundColor, theme, icon, }: ILoaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
-
export default Loader;
|