hrm_ui_lib 2.1.0 → 2.2.0
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/assets/styles/styles.css +61 -5
- package/assets/styles/styles.scss +1 -1
- package/components/Alert/Alert.js +11 -52
- package/components/Alert/consts.js +12 -14
- package/components/Alert/index.js +1 -52
- package/components/Alert/types.js +1 -1
- package/components/Avatar/Avatar.js +21 -117
- package/components/Avatar/AvatarGroup.js +18 -117
- package/components/Avatar/index.js +2 -64
- package/components/Avatar/types.js +1 -1
- package/components/Badge/Badge.js +5 -22
- package/components/Badge/index.js +1 -6
- package/components/Badge/types.js +1 -1
- package/components/BadgeV2/BadgeV2.d.ts +3 -0
- package/components/BadgeV2/BadgeV2.js +9 -0
- package/components/BadgeV2/index.d.ts +1 -0
- package/components/BadgeV2/index.js +1 -0
- package/components/BadgeV2/types.d.ts +42 -0
- package/components/BadgeV2/types.js +31 -0
- package/components/Breadcrumb/Breadcrumb.js +6 -23
- package/components/Breadcrumb/index.js +1 -2
- package/components/Breadcrumb/types.js +1 -1
- package/components/Button/Button.js +29 -52
- package/components/Button/consts.js +12 -14
- package/components/Button/index.js +1 -52
- package/components/Button/types.js +1 -1
- package/components/Checkbox/Checkbox.js +45 -52
- package/components/Checkbox/index.js +1 -52
- package/components/Checkbox/types.js +1 -1
- package/components/Chips/Chips.js +23 -65
- package/components/Chips/consts.js +10 -12
- package/components/Chips/index.js +1 -11
- package/components/Chips/types.js +5 -7
- package/components/Collapse/CollapseGroup/CollapseGroup.js +22 -73
- package/components/Collapse/CollapseItem/CollapseItem.js +11 -86
- package/components/Collapse/index.js +2 -16
- package/components/Collapse/types.js +1 -1
- package/components/Container/Container.js +4 -9
- package/components/Container/index.js +1 -2
- package/components/Container/types.js +1 -1
- package/components/Copy/Copy.js +15 -93
- package/components/Copy/index.js +1 -54
- package/components/Copy/types.js +1 -1
- package/components/Counter/Counter.js +54 -134
- package/components/Counter/index.js +1 -61
- package/components/Counter/types.js +1 -1
- package/components/DatePicker/CustomHeader/CustomHeader.js +16 -191
- package/components/DatePicker/CustomHeader/helpers.js +10 -16
- package/components/DatePicker/RangeDatePicker/RangeDatePicker.js +7 -129
- package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +71 -172
- package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +86 -265
- package/components/DatePicker/RangeDatePicker/index.js +1 -124
- package/components/DatePicker/SimpleDatePicker/SimpleDatePicker.js +8 -128
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +45 -202
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +44 -206
- package/components/DatePicker/SimpleDatePicker/index.js +1 -123
- package/components/DatePicker/TimePicker/MobileModalContent.js +33 -123
- package/components/DatePicker/TimePicker/TimePicker.js +7 -75
- package/components/DatePicker/TimePicker/TimePickerDesktop.js +42 -128
- package/components/DatePicker/TimePicker/TimePickerMobile.js +27 -125
- package/components/DatePicker/TimePicker/consts.js +5 -8
- package/components/DatePicker/TimePicker/helpers.js +9 -19
- package/components/DatePicker/TimePicker/index.js +1 -70
- package/components/DatePicker/hooks.js +33 -2171
- package/components/DatePicker/index.js +3 -134
- package/components/DatePicker/localization.js +43 -6
- package/components/DatePicker/types.js +5 -7
- package/components/Divider/Divider.js +8 -15
- package/components/Divider/index.js +1 -3
- package/components/Divider/types.js +1 -1
- package/components/Empty/Empty.js +9 -83
- package/components/Empty/index.js +1 -54
- package/components/Empty/types.js +1 -1
- package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +67 -52
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +21 -52
- package/components/FileUpload/DropzoneFileUpload/FilePreview.js +23 -52
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +30 -52
- package/components/FileUpload/DropzoneFileUpload/helpers.js +79 -52
- package/components/FileUpload/DropzoneFileUpload/index.js +1 -52
- package/components/FileUpload/FileUpload.js +69 -192
- package/components/FileUpload/UploadItems.js +22 -101
- package/components/FileUpload/index.js +3 -61
- package/components/FileUpload/types.js +6 -10
- package/components/FormContainer/FormContainer.js +43 -136
- package/components/FormContainer/index.js +1 -55
- package/components/FormContainer/types.js +1 -1
- package/components/FormField/FormField.js +17 -112
- package/components/FormField/index.js +1 -56
- package/components/FormField/types.js +1 -1
- package/components/Heading/Heading.js +5 -27
- package/components/Heading/index.js +1 -5
- package/components/Heading/types.js +1 -1
- package/components/Image/Image.js +12 -32
- package/components/Image/index.js +1 -2
- package/components/Image/types.js +1 -1
- package/components/Input/Input.js +68 -236
- package/components/Input/index.js +1 -58
- package/components/Input/types.js +1 -1
- package/components/Link/Link.js +14 -40
- package/components/Link/index.js +1 -3
- package/components/Link/types.js +1 -1
- package/components/Menu/Menu.js +47 -161
- package/components/Menu/NestedMenu.js +47 -173
- package/components/Menu/index.js +2 -72
- package/components/Menu/types.js +1 -1
- package/components/Modal/Modal.js +70 -52
- package/components/Modal/ModalConfirmation.js +30 -137
- package/components/Modal/ModalContent.js +10 -52
- package/components/Modal/index.js +2 -53
- package/components/Modal/types.js +1 -1
- package/components/More/More.js +19 -85
- package/components/More/index.js +1 -53
- package/components/More/types.js +1 -1
- package/components/Pagination/Pagination.js +15 -56
- package/components/Pagination/consts.js +5 -7
- package/components/Pagination/index.js +1 -10
- package/components/Pagination/types.js +1 -1
- package/components/Popover/Popover.js +41 -52
- package/components/Popover/PopoverDesktop.js +16 -69
- package/components/Popover/PopoverMobile.js +8 -52
- package/components/Popover/index.js +1 -52
- package/components/Popover/types.js +1 -1
- package/components/Progress/Progress.js +21 -56
- package/components/Progress/index.js +1 -2
- package/components/Progress/types.js +1 -1
- package/components/ProgressStep/ProgressStep.js +9 -38
- package/components/ProgressStep/Step.js +51 -98
- package/components/ProgressStep/consts.js +7 -9
- package/components/ProgressStep/index.js +1 -12
- package/components/ProgressStep/types.js +5 -7
- package/components/Radio/Radio.js +19 -56
- package/components/Radio/RadioGroup.js +21 -111
- package/components/Radio/index.js +2 -55
- package/components/Radio/types.js +1 -1
- package/components/SVGIcons/IconAdd.js +7 -28
- package/components/SVGIcons/IconAddCircle.js +7 -31
- package/components/SVGIcons/IconAddCircleFilled.js +7 -31
- package/components/SVGIcons/IconAddFilled.js +7 -28
- package/components/SVGIcons/IconAlert.js +7 -31
- package/components/SVGIcons/IconAlertBadge.js +7 -31
- package/components/SVGIcons/IconAlertBadgeFilled.js +7 -31
- package/components/SVGIcons/IconAlertFilled.js +7 -31
- package/components/SVGIcons/IconAm.js +6 -57
- package/components/SVGIcons/IconAmd.js +7 -28
- package/components/SVGIcons/IconAmdFilled.js +7 -28
- package/components/SVGIcons/IconApple.js +7 -31
- package/components/SVGIcons/IconArrowDown.js +7 -31
- package/components/SVGIcons/IconArrowDownFilled.js +7 -31
- package/components/SVGIcons/IconArrowDownLeft.js +7 -31
- package/components/SVGIcons/IconArrowDownLeftFilled.js +7 -31
- package/components/SVGIcons/IconArrowDownload.js +7 -31
- package/components/SVGIcons/IconArrowDownloadFilled.js +7 -31
- package/components/SVGIcons/IconArrowEnter.js +7 -28
- package/components/SVGIcons/IconArrowEnterFilled.js +7 -28
- package/components/SVGIcons/IconArrowExit.js +7 -28
- package/components/SVGIcons/IconArrowExitFilled.js +7 -28
- package/components/SVGIcons/IconArrowExportLeftToRight.js +7 -31
- package/components/SVGIcons/IconArrowExportLeftToRightFilled.js +7 -31
- package/components/SVGIcons/IconArrowExportRightToLeft.js +7 -31
- package/components/SVGIcons/IconArrowExportRightToLeftFilled.js +7 -31
- package/components/SVGIcons/IconArrowExportUp.js +7 -31
- package/components/SVGIcons/IconArrowExportUpFilled.js +7 -31
- package/components/SVGIcons/IconArrowImport.js +7 -31
- package/components/SVGIcons/IconArrowImportFilled.js +7 -31
- package/components/SVGIcons/IconArrowLeft.js +7 -31
- package/components/SVGIcons/IconArrowLeftFilled.js +7 -31
- package/components/SVGIcons/IconArrowRepeatAll.js +7 -31
- package/components/SVGIcons/IconArrowRepeatAllFilled.js +7 -31
- package/components/SVGIcons/IconArrowReset.js +7 -31
- package/components/SVGIcons/IconArrowResetFilled.js +7 -31
- package/components/SVGIcons/IconArrowRight.js +7 -31
- package/components/SVGIcons/IconArrowRightFilled.js +7 -31
- package/components/SVGIcons/IconArrowSort.js +7 -28
- package/components/SVGIcons/IconArrowSortFilled.js +7 -28
- package/components/SVGIcons/IconArrowSync.js +7 -28
- package/components/SVGIcons/IconArrowSyncFilled.js +7 -28
- package/components/SVGIcons/IconArrowUp.js +7 -31
- package/components/SVGIcons/IconArrowUpFilled.js +7 -31
- package/components/SVGIcons/IconArrowUpLeft.js +7 -31
- package/components/SVGIcons/IconArrowUpLeftFilled.js +7 -31
- package/components/SVGIcons/IconArrowUpRight.js +7 -31
- package/components/SVGIcons/IconArrowUpRightFilled.js +7 -31
- package/components/SVGIcons/IconAttach.js +7 -31
- package/components/SVGIcons/IconAttachFilled.js +7 -31
- package/components/SVGIcons/IconBeach.js +7 -28
- package/components/SVGIcons/IconBeachFilled.js +7 -28
- package/components/SVGIcons/IconBook.js +7 -31
- package/components/SVGIcons/IconBookFilled.js +7 -31
- package/components/SVGIcons/IconBookmark.js +7 -31
- package/components/SVGIcons/IconBookmarkFilled.js +7 -31
- package/components/SVGIcons/IconBriefcase.js +7 -31
- package/components/SVGIcons/IconBriefcaseFilled.js +7 -31
- package/components/SVGIcons/IconBuilding.js +7 -54
- package/components/SVGIcons/IconBuildingBank.js +7 -28
- package/components/SVGIcons/IconBuildingBankFilled.js +7 -28
- package/components/SVGIcons/IconBuildingFilled.js +7 -31
- package/components/SVGIcons/IconBulletListAdd.js +7 -31
- package/components/SVGIcons/IconBulletListAddFilled.js +7 -31
- package/components/SVGIcons/IconCalculator.js +7 -31
- package/components/SVGIcons/IconCalculatorFilled.js +7 -31
- package/components/SVGIcons/IconCalendarClock.js +7 -28
- package/components/SVGIcons/IconCalendarClockFilled.js +7 -28
- package/components/SVGIcons/IconCalendarDay.js +7 -31
- package/components/SVGIcons/IconCalendarDayFilled.js +7 -31
- package/components/SVGIcons/IconCalendarEmpty.js +7 -28
- package/components/SVGIcons/IconCalendarLeft.js +7 -28
- package/components/SVGIcons/IconCalendarLeftFilled.js +7 -28
- package/components/SVGIcons/IconCalendarRight.js +7 -28
- package/components/SVGIcons/IconCalendarRightFilled.js +7 -28
- package/components/SVGIcons/IconCall.js +7 -31
- package/components/SVGIcons/IconCallFilled.js +7 -31
- package/components/SVGIcons/IconCard.js +7 -28
- package/components/SVGIcons/IconCardFilled.js +7 -28
- package/components/SVGIcons/IconCaretDown.js +7 -28
- package/components/SVGIcons/IconCaretDownFilled.js +7 -28
- package/components/SVGIcons/IconCaretDownRight.js +7 -28
- package/components/SVGIcons/IconCaretDownRightFilled.js +7 -28
- package/components/SVGIcons/IconCaretLeft.js +7 -28
- package/components/SVGIcons/IconCaretLeftFilled.js +7 -28
- package/components/SVGIcons/IconCaretRight.js +7 -28
- package/components/SVGIcons/IconCaretRightFilled.js +7 -28
- package/components/SVGIcons/IconCaretUp.js +7 -28
- package/components/SVGIcons/IconCaretUpFilled.js +7 -28
- package/components/SVGIcons/IconChat.js +7 -28
- package/components/SVGIcons/IconChatFilled.js +7 -28
- package/components/SVGIcons/IconChatMultiple.js +7 -28
- package/components/SVGIcons/IconChatMultipleFilled.js +7 -28
- package/components/SVGIcons/IconCheckboxArrowRight.js +7 -31
- package/components/SVGIcons/IconCheckboxArrowRightFilled.js +7 -31
- package/components/SVGIcons/IconCheckmark.js +7 -28
- package/components/SVGIcons/IconCheckmarkCircle.js +7 -28
- package/components/SVGIcons/IconCheckmarkCircleFilled.js +7 -28
- package/components/SVGIcons/IconCheckmarkFilled.js +7 -28
- package/components/SVGIcons/IconChevronDoubleLeft.js +7 -28
- package/components/SVGIcons/IconChevronDoubleRight.js +7 -28
- package/components/SVGIcons/IconChevronDown.js +7 -28
- package/components/SVGIcons/IconChevronDownFilled.js +7 -28
- package/components/SVGIcons/IconChevronLeft.js +7 -28
- package/components/SVGIcons/IconChevronLeftFilled.js +7 -28
- package/components/SVGIcons/IconChevronRight.js +7 -28
- package/components/SVGIcons/IconChevronRightFilled.js +7 -28
- package/components/SVGIcons/IconChevronUp.js +7 -28
- package/components/SVGIcons/IconChevronUpDown.js +7 -31
- package/components/SVGIcons/IconChevronUpDownFilled.js +7 -31
- package/components/SVGIcons/IconChevronUpFilled.js +7 -28
- package/components/SVGIcons/IconClipboardDay.js +7 -28
- package/components/SVGIcons/IconClock.js +7 -31
- package/components/SVGIcons/IconClockDismiss.js +7 -28
- package/components/SVGIcons/IconClockDismissFilled.js +7 -28
- package/components/SVGIcons/IconClockFilled.js +7 -31
- package/components/SVGIcons/IconComment.js +7 -31
- package/components/SVGIcons/IconCommentFilled.js +7 -31
- package/components/SVGIcons/IconContractCard.js +7 -28
- package/components/SVGIcons/IconContractCardFilled.js +7 -28
- package/components/SVGIcons/IconCopy.js +7 -28
- package/components/SVGIcons/IconCopyFilled.js +7 -28
- package/components/SVGIcons/IconCubeTree.js +7 -28
- package/components/SVGIcons/IconCubeTreeFilled.js +7 -31
- package/components/SVGIcons/IconDatabase.js +7 -31
- package/components/SVGIcons/IconDatabaseFilled.js +7 -31
- package/components/SVGIcons/IconDelete.js +7 -28
- package/components/SVGIcons/IconDeleteFilled.js +7 -28
- package/components/SVGIcons/IconDeviceMeetingRoom.js +7 -28
- package/components/SVGIcons/IconDeviceMeetingRoomFilled.js +7 -28
- package/components/SVGIcons/IconDismiss.js +7 -28
- package/components/SVGIcons/IconDismissCircle.js +7 -31
- package/components/SVGIcons/IconDismissCircleFilled.js +7 -31
- package/components/SVGIcons/IconDismissFilled.js +7 -28
- package/components/SVGIcons/IconDocument.js +7 -28
- package/components/SVGIcons/IconDocumentBulletList.js +7 -31
- package/components/SVGIcons/IconDocumentBulletListFilled.js +7 -31
- package/components/SVGIcons/IconDocumentEdit.js +7 -28
- package/components/SVGIcons/IconDocumentEditFilled.js +7 -28
- package/components/SVGIcons/IconDocumentFilled.js +7 -28
- package/components/SVGIcons/IconDocumentPerson.js +7 -28
- package/components/SVGIcons/IconEdit.js +7 -28
- package/components/SVGIcons/IconEditFilled.js +7 -28
- package/components/SVGIcons/IconErrorCircle.js +7 -28
- package/components/SVGIcons/IconErrorCircleFilled.js +7 -28
- package/components/SVGIcons/IconEur.js +7 -28
- package/components/SVGIcons/IconEurFilled.js +7 -28
- package/components/SVGIcons/IconExpandUpLeft.js +7 -31
- package/components/SVGIcons/IconExpandUpLeftFilled.js +7 -31
- package/components/SVGIcons/IconExpandUpRight.js +7 -31
- package/components/SVGIcons/IconExpandUpRightFilled.js +7 -31
- package/components/SVGIcons/IconEyeOff.js +7 -31
- package/components/SVGIcons/IconEyeOffFilled.js +7 -31
- package/components/SVGIcons/IconEyeOn.js +7 -31
- package/components/SVGIcons/IconEyeOnFilled.js +7 -31
- package/components/SVGIcons/IconFacebook.js +7 -38
- package/components/SVGIcons/IconFilter.js +7 -28
- package/components/SVGIcons/IconFilterFilled.js +7 -28
- package/components/SVGIcons/IconFlag.js +7 -31
- package/components/SVGIcons/IconFlagFilled.js +7 -31
- package/components/SVGIcons/IconFolderLink.js +7 -28
- package/components/SVGIcons/IconFolderLinkFilled.js +7 -28
- package/components/SVGIcons/IconFood.js +7 -28
- package/components/SVGIcons/IconFoodFilled.js +7 -28
- package/components/SVGIcons/IconGb.js +6 -71
- package/components/SVGIcons/IconGlobe.js +7 -28
- package/components/SVGIcons/IconGlobeFilled.js +7 -28
- package/components/SVGIcons/IconGoogle.js +7 -40
- package/components/SVGIcons/IconHandOpenHeart.js +7 -31
- package/components/SVGIcons/IconHandOpenHeartFilled.js +7 -31
- package/components/SVGIcons/IconHeart.js +7 -31
- package/components/SVGIcons/IconHeartFilled.js +7 -31
- package/components/SVGIcons/IconHistory.js +7 -31
- package/components/SVGIcons/IconHistoryFilled.js +7 -31
- package/components/SVGIcons/IconHome.js +7 -31
- package/components/SVGIcons/IconHomeFilled.js +7 -31
- package/components/SVGIcons/IconImage.js +7 -31
- package/components/SVGIcons/IconImageFilled.js +7 -31
- package/components/SVGIcons/IconInfo.js +7 -28
- package/components/SVGIcons/IconInfoFilled.js +7 -28
- package/components/SVGIcons/IconInstagram.js +7 -39
- package/components/SVGIcons/IconKeyReset.js +7 -31
- package/components/SVGIcons/IconKeyResetFilled.js +7 -31
- package/components/SVGIcons/IconLink.js +7 -31
- package/components/SVGIcons/IconLinkFilled.js +7 -31
- package/components/SVGIcons/IconLinkedin.js +7 -31
- package/components/SVGIcons/IconList.js +7 -28
- package/components/SVGIcons/IconListFilled.js +7 -31
- package/components/SVGIcons/IconLocation.js +7 -31
- package/components/SVGIcons/IconLocationFilled.js +7 -31
- package/components/SVGIcons/IconLockClosed.js +7 -31
- package/components/SVGIcons/IconLockClosedFilled.js +7 -31
- package/components/SVGIcons/IconLockOpen.js +7 -31
- package/components/SVGIcons/IconLockOpenFilled.js +7 -31
- package/components/SVGIcons/IconMail.js +7 -31
- package/components/SVGIcons/IconMailAdd.js +7 -31
- package/components/SVGIcons/IconMailAddFilled.js +7 -31
- package/components/SVGIcons/IconMailArrowForward.js +7 -31
- package/components/SVGIcons/IconMailArrowForwardFilled.js +7 -31
- package/components/SVGIcons/IconMailFilled.js +7 -31
- package/components/SVGIcons/IconMailLink.js +7 -31
- package/components/SVGIcons/IconMailLinkFilled.js +7 -31
- package/components/SVGIcons/IconMedium.js +7 -31
- package/components/SVGIcons/IconMore.js +7 -31
- package/components/SVGIcons/IconMoreFilled.js +7 -31
- package/components/SVGIcons/IconMoreVertical.js +7 -31
- package/components/SVGIcons/IconMoreVerticalFilled.js +7 -31
- package/components/SVGIcons/IconNavigation.js +7 -31
- package/components/SVGIcons/IconNavigationFilled.js +7 -31
- package/components/SVGIcons/IconNotebook.js +7 -31
- package/components/SVGIcons/IconNotebookAdd.js +7 -47
- package/components/SVGIcons/IconNotebookAddFilled.js +7 -44
- package/components/SVGIcons/IconNotebookFilled.js +7 -31
- package/components/SVGIcons/IconOnlyEmployee.js +7 -28
- package/components/SVGIcons/IconOpen.js +7 -31
- package/components/SVGIcons/IconOpenFilled.js +7 -31
- package/components/SVGIcons/IconPatient.js +7 -28
- package/components/SVGIcons/IconPatientFilled.js +7 -28
- package/components/SVGIcons/IconPeople.js +7 -28
- package/components/SVGIcons/IconPeopleAdd.js +7 -31
- package/components/SVGIcons/IconPeopleAddFilled.js +7 -31
- package/components/SVGIcons/IconPeopleFilled.js +7 -31
- package/components/SVGIcons/IconPercent.js +7 -33
- package/components/SVGIcons/IconPerson.js +7 -31
- package/components/SVGIcons/IconPersonAccount.js +7 -28
- package/components/SVGIcons/IconPersonAccountFilled.js +7 -28
- package/components/SVGIcons/IconPersonAdd.js +7 -31
- package/components/SVGIcons/IconPersonAddFilled.js +7 -31
- package/components/SVGIcons/IconPersonArrowLeft.js +7 -28
- package/components/SVGIcons/IconPersonArrowLeftFilled.js +7 -28
- package/components/SVGIcons/IconPersonArrowRight.js +7 -28
- package/components/SVGIcons/IconPersonArrowRightFilled.js +7 -28
- package/components/SVGIcons/IconPersonBoard.js +7 -28
- package/components/SVGIcons/IconPersonFilled.js +7 -31
- package/components/SVGIcons/IconPersonMinus.js +7 -28
- package/components/SVGIcons/IconPersonStar.js +7 -31
- package/components/SVGIcons/IconPersonStarFilled.js +7 -31
- package/components/SVGIcons/IconPersonSubtract.js +7 -31
- package/components/SVGIcons/IconPersonSubtractFilled.js +7 -31
- package/components/SVGIcons/IconPhone.js +7 -31
- package/components/SVGIcons/IconPhoneFilled.js +7 -31
- package/components/SVGIcons/IconPlugConnected.js +7 -28
- package/components/SVGIcons/IconPos.js +7 -33
- package/components/SVGIcons/IconPosFilled.js +7 -33
- package/components/SVGIcons/IconProhibited.js +7 -31
- package/components/SVGIcons/IconProhibitedFilled.js +7 -31
- package/components/SVGIcons/IconProjectProduct.js +7 -28
- package/components/SVGIcons/IconQuestion.js +7 -31
- package/components/SVGIcons/IconQuestionFilled.js +7 -31
- package/components/SVGIcons/IconRedo.js +7 -31
- package/components/SVGIcons/IconRedoFilled.js +7 -31
- package/components/SVGIcons/IconRu.js +6 -60
- package/components/SVGIcons/IconRub.js +7 -28
- package/components/SVGIcons/IconRubFilled.js +7 -28
- package/components/SVGIcons/IconSave.js +7 -31
- package/components/SVGIcons/IconSaveFilled.js +7 -31
- package/components/SVGIcons/IconSavings.js +7 -31
- package/components/SVGIcons/IconSavingsFilled.js +7 -31
- package/components/SVGIcons/IconSearch.js +7 -31
- package/components/SVGIcons/IconSearchFilled.js +7 -31
- package/components/SVGIcons/IconSelectAllOff.js +7 -31
- package/components/SVGIcons/IconSelectAllOffFilled.js +7 -31
- package/components/SVGIcons/IconSelectAllOn.js +7 -31
- package/components/SVGIcons/IconSelectAllOnFilled.js +7 -31
- package/components/SVGIcons/IconSend.js +7 -31
- package/components/SVGIcons/IconSendFilled.js +7 -31
- package/components/SVGIcons/IconSettings.js +7 -28
- package/components/SVGIcons/IconSettingsFilled.js +7 -31
- package/components/SVGIcons/IconShare.js +7 -31
- package/components/SVGIcons/IconShareAndroid.js +7 -31
- package/components/SVGIcons/IconShareAndroidFilled.js +7 -31
- package/components/SVGIcons/IconShareFilled.js +7 -31
- package/components/SVGIcons/IconSignOut.js +7 -31
- package/components/SVGIcons/IconSignOutFilled.js +7 -31
- package/components/SVGIcons/IconSpinner.js +7 -31
- package/components/SVGIcons/IconSpinnerFilled.js +7 -31
- package/components/SVGIcons/IconStatus.js +7 -31
- package/components/SVGIcons/IconStatusFilled.js +7 -31
- package/components/SVGIcons/IconSubtract.js +7 -31
- package/components/SVGIcons/IconSubtractCircle.js +7 -31
- package/components/SVGIcons/IconSubtractCircleFilled.js +7 -31
- package/components/SVGIcons/IconSubtractFilled.js +7 -31
- package/components/SVGIcons/IconTableCellEdit.js +7 -35
- package/components/SVGIcons/IconTableCellEditFilled.js +7 -41
- package/components/SVGIcons/IconTelegram.js +7 -40
- package/components/SVGIcons/IconTimer.js +7 -31
- package/components/SVGIcons/IconTimerFilled.js +7 -31
- package/components/SVGIcons/IconTwitter.js +7 -31
- package/components/SVGIcons/IconUndo.js +7 -31
- package/components/SVGIcons/IconUndoFilled.js +7 -31
- package/components/SVGIcons/IconUnitsEmployee.js +7 -28
- package/components/SVGIcons/IconUpload.js +7 -28
- package/components/SVGIcons/IconUsd.js +7 -28
- package/components/SVGIcons/IconUsdFilled.js +7 -28
- package/components/SVGIcons/IconUserMinus.js +7 -31
- package/components/SVGIcons/IconVideo.js +7 -28
- package/components/SVGIcons/IconVideoFilled.js +7 -28
- package/components/SVGIcons/IconWallet.js +7 -31
- package/components/SVGIcons/IconWalletFilled.js +7 -31
- package/components/SVGIcons/IconWarning.js +7 -28
- package/components/SVGIcons/IconWarningFilled.js +7 -28
- package/components/SVGIcons/IconYoutube.js +7 -31
- package/components/SVGIcons/index.js +302 -305
- package/components/SVGIcons/types.js +1 -1
- package/components/Select/ButtonSelect/ButtonSelect.js +42 -195
- package/components/Select/FilterSelect/FilterDropdown.js +14 -95
- package/components/Select/FilterSelect/FilterGroupDropdown.js +18 -82
- package/components/Select/FilterSelect/FilterSelect.js +69 -199
- package/components/Select/MultiSelect/DesktopWrapper.js +18 -55
- package/components/Select/MultiSelect/MobileWrapper.js +12 -77
- package/components/Select/MultiSelect/MultiBase/MultiBase.js +60 -211
- package/components/Select/MultiSelect/MultiSelect.js +66 -244
- package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +94 -264
- package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +76 -251
- package/components/Select/MultiSelect/OptionsWrapper.js +64 -175
- package/components/Select/NestedSelect/NestedSelect.js +55 -197
- package/components/Select/ProfileDropdown/index.js +12 -82
- package/components/Select/Select/Select.js +85 -254
- package/components/Select/Select/SelectDesktop/index.js +66 -219
- package/components/Select/Select/SelectMobile/MobileTopContent.js +17 -90
- package/components/Select/Select/SelectMobile/index.js +49 -194
- package/components/Select/Select/helpers.js +8 -9
- package/components/Select/SharedComponents/Actions.js +13 -115
- package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.js +8 -43
- package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +27 -130
- package/components/Select/SharedComponents/ContentTop.js +70 -177
- package/components/Select/SharedComponents/Footer.js +10 -97
- package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +49 -161
- package/components/Select/SharedComponents/Loading.js +5 -16
- package/components/Select/SharedComponents/index.js +6 -92
- package/components/Select/constants.js +7 -9
- package/components/Select/index.js +6 -114
- package/components/Select/localization.js +28 -30
- package/components/Select/types.js +1 -1
- package/components/SideSheet/Footer/Footer.js +13 -99
- package/components/SideSheet/SideSheet.js +55 -208
- package/components/SideSheet/index.js +1 -56
- package/components/SideSheet/types.js +1 -1
- package/components/Snackbar/Snackbar.js +29 -123
- package/components/Snackbar/consts.js +11 -13
- package/components/Snackbar/index.js +1 -54
- package/components/Snackbar/types.js +1 -1
- package/components/Status/Status.js +16 -51
- package/components/Status/index.js +1 -8
- package/components/Status/types.js +1 -1
- package/components/Stepper/Stepper.js +28 -44
- package/components/Stepper/index.js +1 -3
- package/components/Stepper/types.js +1 -1
- package/components/Switcher/Switcher.js +17 -114
- package/components/Switcher/index.js +1 -55
- package/components/Switcher/types.js +1 -1
- package/components/Tab/Tab.js +18 -35
- package/components/Tab/TabItem.js +11 -52
- package/components/Tab/index.js +1 -11
- package/components/Tab/types.js +1 -1
- package/components/Table/Header.js +19 -121
- package/components/Table/IndeterminateCheckbox.js +13 -76
- package/components/Table/Row.js +16 -92
- package/components/Table/Table.js +60 -160
- package/components/Table/index.js +1 -61
- package/components/Table/types.js +1 -1
- package/components/Table/utils.js +17 -76
- package/components/TableV2/AdvancedPagination.js +61 -270
- package/components/TableV2/ColumnHeader.js +29 -61
- package/components/TableV2/ColumnSettings.js +31 -162
- package/components/TableV2/IndeterminateCheckbox.js +13 -84
- package/components/TableV2/Table.js +114 -310
- package/components/TableV2/constants/index.js +26 -22
- package/components/TableV2/hooks/useTableColumnSettings.js +16 -19
- package/components/TableV2/hooks/useTableControl.js +176 -297
- package/components/TableV2/index.js +3 -131
- package/components/TableV2/loadTableSettings.js +8 -17
- package/components/TableV2/types.js +1 -1
- package/components/Text/Text.js +5 -34
- package/components/Text/index.js +1 -5
- package/components/Text/types.js +1 -1
- package/components/Textarea/Textarea.js +36 -140
- package/components/Textarea/index.js +1 -56
- package/components/Textarea/types.js +1 -1
- package/components/Tooltip/Tooltip.js +49 -99
- package/components/Tooltip/index.js +1 -18
- package/components/Tooltip/types.js +11 -13
- package/consts/index.js +86 -65
- package/context/FormContextProvider.js +4 -10
- package/context/index.js +2 -5
- package/context/types.js +6 -10
- package/helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js +4 -12
- package/helperComponents/AnimatePresenceWrapper/index.js +1 -3
- package/helperComponents/CodeBlock/CodeBlock.js +4 -178
- package/helperComponents/CodeBlock/index.js +1 -3
- package/helperComponents/ErrorMessage/ErrorMessage.js +7 -26
- package/helperComponents/ErrorMessage/index.js +1 -8
- package/helperComponents/ErrorMessage/types.js +1 -1
- package/helperComponents/GoToWebPage/GoToWebPage.js +5 -66
- package/helperComponents/IconDynamicComponent/IconDynamicComponent.js +11 -25
- package/helperComponents/IconDynamicComponent/constants.js +10 -31
- package/helperComponents/IconDynamicComponent/index.js +1 -3
- package/helperComponents/Label/Label.js +8 -28
- package/helperComponents/Label/index.js +1 -6
- package/helperComponents/Label/types.js +1 -1
- package/helperComponents/Loader/Loader.js +4 -14
- package/helperComponents/Loader/index.js +1 -2
- package/helperComponents/Loader/types.js +1 -1
- package/helperComponents/OptionItem/OptionItem.js +27 -148
- package/helperComponents/OptionItem/index.js +1 -64
- package/helperComponents/OptionItem/types.js +1 -1
- package/helperComponents/index.js +6 -65
- package/helpers/check-authorization.js +57 -111
- package/helpers/download-file.js +7 -9
- package/helpers/format-date.js +14 -42
- package/helpers/get-module-prefix.js +3 -5
- package/helpers/index.js +7 -59
- package/helpers/isDeepEqual.js +11 -17
- package/helpers/locale.js +10 -15
- package/helpers/storage.js +17 -18
- package/hooks/index.js +12 -21
- package/hooks/useChangePositionsOnScroll.js +28 -32
- package/hooks/useDispatchEventOnScroll.js +8 -13
- package/hooks/useFormContext.js +3 -8
- package/hooks/useFormProps.js +3 -8
- package/hooks/useGetElemPositions.js +14 -16
- package/hooks/useGetElemSizes.js +11 -13
- package/hooks/useGetHasBottomSpace.js +13 -24
- package/hooks/useGetIsMobile.js +33 -45
- package/hooks/useGetTooltipPosition.js +66 -82
- package/hooks/useGetTooltipStyles.js +45 -87
- package/hooks/useHideBodyScroll.js +25 -34
- package/hooks/useHideOnScroll.js +19 -24
- package/hooks/useOnOutsideClick.js +33 -46
- package/hooks/useScreenSize.js +24 -34
- package/index.d.ts +1 -0
- package/index.js +47 -468
- package/package.json +1 -1
- package/type/file-upload.js +6 -8
- package/type/index.js +4 -4
- package/type/locale.js +12 -14
- package/type/notification.js +7 -9
- package/type/status-code.js +7 -9
- package/utils/helpers.js +63 -77
- /package/{Alert-BslI0aA0.js → Alert-CNizbUJ6.js} +0 -0
|
@@ -1,150 +1,29 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
import
|
|
4
|
-
import { Avatar } from '../../components/Avatar
|
|
5
|
-
import {
|
|
6
|
-
import '../../
|
|
7
|
-
import '
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
import '../../components/Alert/consts.js';
|
|
30
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
31
|
-
import '../Loader/Loader.js';
|
|
32
|
-
import 'react-dropzone';
|
|
33
|
-
import '../../components/SVGIcons/IconUpload.js';
|
|
34
|
-
import '../../helpers/format-date.js';
|
|
35
|
-
import '../../helpers/locale.js';
|
|
36
|
-
import '../../type/locale.js';
|
|
37
|
-
import '../../helpers/storage.js';
|
|
38
|
-
import 'react-toastify';
|
|
39
|
-
import '../../hooks/useGetIsMobile.js';
|
|
40
|
-
import 'framer-motion';
|
|
41
|
-
import '../AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
42
|
-
import '../../hooks/useOnOutsideClick.js';
|
|
43
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
44
|
-
import '../../components/SVGIcons/IconDismiss.js';
|
|
45
|
-
import '../../components/Tooltip/types.js';
|
|
46
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
47
|
-
import '../../hooks/useGetElemSizes.js';
|
|
48
|
-
import '../../hooks/useGetElemPositions.js';
|
|
49
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
50
|
-
import '../../hooks/useHideOnScroll.js';
|
|
51
|
-
import '../../components/Link/Link.js';
|
|
52
|
-
import '../../components/Popover/PopoverDesktop.js';
|
|
53
|
-
import '../../components/SVGIcons/IconInfo.js';
|
|
54
|
-
import '@babel/runtime/helpers/typeof';
|
|
55
|
-
import '../../components/SVGIcons/IconDismissFilled.js';
|
|
56
|
-
import '../../components/FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
57
|
-
import '../../components/Progress/Progress.js';
|
|
58
|
-
import '../../components/SVGIcons/IconArrowDownloadFilled.js';
|
|
59
|
-
import '../../helpers/download-file.js';
|
|
60
|
-
import '../../components/Button/consts.js';
|
|
61
|
-
import '../../components/SVGIcons/IconEditFilled.js';
|
|
62
|
-
import '../../components/SVGIcons/IconEdit.js';
|
|
63
|
-
import '../../components/SVGIcons/IconAttach.js';
|
|
64
|
-
|
|
65
|
-
var OptionItem = function OptionItem(props) {
|
|
66
|
-
var _props$size = props.size,
|
|
67
|
-
size = _props$size === void 0 ? 'small' : _props$size,
|
|
68
|
-
data = props.data,
|
|
69
|
-
onClick = props.onClick,
|
|
70
|
-
disabled = props.disabled,
|
|
71
|
-
isSelected = props.isSelected,
|
|
72
|
-
labelLeftIconProps = props.labelLeftIconProps,
|
|
73
|
-
LabelRightIconComponent = props.LabelRightIconComponent,
|
|
74
|
-
OptionRightIconComponent = props.OptionRightIconComponent,
|
|
75
|
-
isCheckbox = props.isCheckbox,
|
|
76
|
-
_props$className = props.className,
|
|
77
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
78
|
-
tooltipAddons = props.tooltipAddons,
|
|
79
|
-
_props$dataId = props.dataId,
|
|
80
|
-
dataId = _props$dataId === void 0 ? '' : _props$dataId,
|
|
81
|
-
_props$style = props.style,
|
|
82
|
-
style = _props$style === void 0 ? {} : _props$style;
|
|
83
|
-
var label = data.label,
|
|
84
|
-
meta = data.meta,
|
|
85
|
-
value = data.value,
|
|
86
|
-
optionLeftIcon = data.optionLeftIcon,
|
|
87
|
-
avatar = data.avatar;
|
|
88
|
-
var handleClick = useCallback(function (e) {
|
|
89
|
-
e.preventDefault();
|
|
90
|
-
e.stopPropagation();
|
|
91
|
-
if (disabled) {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
onClick({
|
|
95
|
-
value: value,
|
|
96
|
-
label: label,
|
|
97
|
-
meta: meta
|
|
98
|
-
});
|
|
99
|
-
}, [disabled, value, label, onClick]);
|
|
100
|
-
var optionContent = /*#__PURE__*/React.createElement("div", {
|
|
101
|
-
"data-id": dataId,
|
|
102
|
-
id: "".concat(value),
|
|
103
|
-
className: classNames('select__option', {
|
|
104
|
-
'select__option--disabled': disabled
|
|
105
|
-
}, className),
|
|
106
|
-
onClick: handleClick,
|
|
107
|
-
style: style
|
|
108
|
-
}, isCheckbox ? /*#__PURE__*/React.createElement(Checkbox, {
|
|
109
|
-
className: "mr-8",
|
|
110
|
-
selectedValue: isSelected,
|
|
111
|
-
disabled: disabled
|
|
112
|
-
}) : null, !isCheckbox && isSelected ? /*#__PURE__*/React.createElement(IconCheckmark, {
|
|
113
|
-
size: "xsmall",
|
|
114
|
-
type: disabled ? 'disabled' : 'brand',
|
|
115
|
-
className: "mr-8"
|
|
116
|
-
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
117
|
-
className: "select__option__inner"
|
|
118
|
-
}, optionLeftIcon && optionLeftIcon.Component ? /*#__PURE__*/React.createElement(optionLeftIcon.Component, _extends({}, optionLeftIcon, {
|
|
119
|
-
size: "small",
|
|
120
|
-
className: "mr-8"
|
|
121
|
-
})) : null, avatar && /*#__PURE__*/React.createElement(Avatar, {
|
|
122
|
-
size: size === 'small' ? 'xxsmall' : 'medium',
|
|
123
|
-
imagePath: avatar.url,
|
|
124
|
-
className: "mr-4",
|
|
125
|
-
initials: avatar.initials
|
|
126
|
-
}), labelLeftIconProps !== null && labelLeftIconProps !== void 0 && labelLeftIconProps.Component ? /*#__PURE__*/React.createElement(labelLeftIconProps.Component, _extends({
|
|
127
|
-
size: "xsmall",
|
|
128
|
-
type: disabled ? 'disabled' : 'primary',
|
|
129
|
-
className: "mr-4"
|
|
130
|
-
}, labelLeftIconProps)) : null, /*#__PURE__*/React.createElement("div", {
|
|
131
|
-
className: classNames('select__option__content', {
|
|
132
|
-
select__option__content__large: size === 'large'
|
|
133
|
-
}),
|
|
134
|
-
"data-id": dataId
|
|
135
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
136
|
-
className: classNames("select__option__text pr-4 ".concat(disabled ? 'color-disabled' : ''), {
|
|
137
|
-
select__option__text__large: size === 'large'
|
|
138
|
-
})
|
|
139
|
-
}, label), LabelRightIconComponent && LabelRightIconComponent(value), meta ? /*#__PURE__*/React.createElement("span", {
|
|
140
|
-
className: classNames("select__option__meta ".concat(disabled ? 'color-disabled' : ''), {
|
|
141
|
-
select__option__meta__large: size === 'large'
|
|
142
|
-
})
|
|
143
|
-
}, meta) : null)), OptionRightIconComponent && OptionRightIconComponent(value));
|
|
144
|
-
return tooltipAddons ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, _extends({}, tooltipAddons, {
|
|
145
|
-
text: "".concat(label),
|
|
146
|
-
id: "".concat(value)
|
|
147
|
-
})), optionContent) : optionContent;
|
|
3
|
+
import { useCallback } from 'react';
|
|
4
|
+
import { Avatar } from '../../components/Avatar';
|
|
5
|
+
import { Checkbox } from '../../components/Checkbox';
|
|
6
|
+
import { IconCheckmark } from '../../components/SVGIcons/IconCheckmark';
|
|
7
|
+
import { Tooltip } from '../../components/Tooltip';
|
|
8
|
+
export const OptionItem = (props) => {
|
|
9
|
+
const { size = 'small', data, onClick, disabled, isSelected, labelLeftIconProps, LabelRightIconComponent, OptionRightIconComponent, isCheckbox, className = '', tooltipAddons, dataId = '', style = {} } = props;
|
|
10
|
+
const { label, meta, value, optionLeftIcon, avatar } = data;
|
|
11
|
+
const handleClick = useCallback((e) => {
|
|
12
|
+
e.preventDefault();
|
|
13
|
+
e.stopPropagation();
|
|
14
|
+
if (disabled) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
onClick({ value, label, meta });
|
|
18
|
+
}, [disabled, value, label, onClick]);
|
|
19
|
+
const optionContent = (_jsxs("div", { "data-id": dataId, id: `${value}`, className: classNames('select__option', {
|
|
20
|
+
'select__option--disabled': disabled
|
|
21
|
+
}, className), onClick: handleClick, style: style, children: [isCheckbox ? (_jsx(Checkbox, { className: "mr-8", selectedValue: isSelected, disabled: disabled })) : null, !isCheckbox && isSelected ? (_jsx(IconCheckmark, { size: "xsmall", type: disabled ? 'disabled' : 'brand', className: "mr-8" })) : null, _jsxs("div", { className: "select__option__inner", children: [optionLeftIcon && optionLeftIcon.Component ? (_jsx(optionLeftIcon.Component, Object.assign({}, optionLeftIcon, { size: "small", className: "mr-8" }))) : null, avatar && (_jsx(Avatar, { size: size === 'small' ? 'xxsmall' : 'medium', imagePath: avatar.url, className: "mr-4", initials: avatar.initials })), (labelLeftIconProps === null || labelLeftIconProps === void 0 ? void 0 : labelLeftIconProps.Component) ? (_jsx(labelLeftIconProps.Component, Object.assign({ size: "xsmall", type: disabled ? 'disabled' : 'primary', className: "mr-4" }, labelLeftIconProps))) : null, _jsxs("div", { className: classNames('select__option__content', {
|
|
22
|
+
select__option__content__large: size === 'large'
|
|
23
|
+
}), "data-id": dataId, children: [_jsx("span", { className: classNames(`select__option__text pr-4 ${disabled ? 'color-disabled' : ''}`, {
|
|
24
|
+
select__option__text__large: size === 'large'
|
|
25
|
+
}), children: label }), LabelRightIconComponent && LabelRightIconComponent(value), meta ? (_jsx("span", { className: classNames(`select__option__meta ${disabled ? 'color-disabled' : ''}`, {
|
|
26
|
+
select__option__meta__large: size === 'large'
|
|
27
|
+
}), children: meta })) : null] })] }), OptionRightIconComponent && OptionRightIconComponent(value)] }));
|
|
28
|
+
return tooltipAddons ? (_jsxs(_Fragment, { children: [_jsx(Tooltip, Object.assign({}, tooltipAddons, { text: `${label}`, id: `${value}` })), optionContent] })) : (optionContent);
|
|
148
29
|
};
|
|
149
|
-
|
|
150
|
-
export { OptionItem };
|
|
@@ -1,64 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import '@babel/runtime/helpers/extends';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '../../components/Avatar/Avatar.js';
|
|
6
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
7
|
-
import '../../components/FileUpload/FileUpload.js';
|
|
8
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
9
|
-
import '../../components/FileUpload/types.js';
|
|
10
|
-
import '../../Alert-BslI0aA0.js';
|
|
11
|
-
import '../../components/Alert/consts.js';
|
|
12
|
-
import '../../components/Text/Text.js';
|
|
13
|
-
import '../../utils/helpers.js';
|
|
14
|
-
import 'dayjs';
|
|
15
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
16
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
17
|
-
import '../Loader/Loader.js';
|
|
18
|
-
import '../../consts/index.js';
|
|
19
|
-
import '../../type/file-upload.js';
|
|
20
|
-
import '../../hooks/useScreenSize.js';
|
|
21
|
-
import 'react-hook-form';
|
|
22
|
-
import 'react-dropzone';
|
|
23
|
-
import '../../components/SVGIcons/IconUpload.js';
|
|
24
|
-
import '../../helpers/format-date.js';
|
|
25
|
-
import '../../helpers/locale.js';
|
|
26
|
-
import '../../type/locale.js';
|
|
27
|
-
import '../../helpers/storage.js';
|
|
28
|
-
import 'react-toastify';
|
|
29
|
-
import '../../hooks/useGetIsMobile.js';
|
|
30
|
-
import 'framer-motion';
|
|
31
|
-
import '../AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
32
|
-
import '../../hooks/useOnOutsideClick.js';
|
|
33
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
34
|
-
import '../../components/SVGIcons/IconDismiss.js';
|
|
35
|
-
import '../../components/Tooltip/types.js';
|
|
36
|
-
import '../../components/Tooltip/Tooltip.js';
|
|
37
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
38
|
-
import '../../hooks/useGetElemSizes.js';
|
|
39
|
-
import '../../hooks/useGetElemPositions.js';
|
|
40
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
41
|
-
import '../../hooks/useHideOnScroll.js';
|
|
42
|
-
import 'react-syntax-highlighter';
|
|
43
|
-
import '../../components/Link/Link.js';
|
|
44
|
-
import '../../components/Popover/PopoverDesktop.js';
|
|
45
|
-
import '../../components/SVGIcons/IconInfo.js';
|
|
46
|
-
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
47
|
-
import '../IconDynamicComponent/constants.js';
|
|
48
|
-
import '@babel/runtime/helpers/typeof';
|
|
49
|
-
import '../../components/SVGIcons/IconDismissFilled.js';
|
|
50
|
-
import '../../components/SVGIcons/IconDelete.js';
|
|
51
|
-
import '../../components/FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
52
|
-
import '../../components/Progress/Progress.js';
|
|
53
|
-
import '../../components/SVGIcons/IconArrowDownloadFilled.js';
|
|
54
|
-
import '../../helpers/download-file.js';
|
|
55
|
-
import '../../components/Button/consts.js';
|
|
56
|
-
import '../Label/Label.js';
|
|
57
|
-
import '../../components/FileUpload/UploadItems.js';
|
|
58
|
-
import '../../hooks/useFormProps.js';
|
|
59
|
-
import '../../context/types.js';
|
|
60
|
-
import '../ErrorMessage/ErrorMessage.js';
|
|
61
|
-
import '../../components/SVGIcons/IconEditFilled.js';
|
|
62
|
-
import '../../components/SVGIcons/IconEdit.js';
|
|
63
|
-
import '../../components/SVGIcons/IconAttach.js';
|
|
64
|
-
import '../../components/SVGIcons/IconCheckmark.js';
|
|
1
|
+
export * from './OptionItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,65 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
import 'react';
|
|
8
|
-
import '../components/Text/Text.js';
|
|
9
|
-
import 'classnames';
|
|
10
|
-
import '../utils/helpers.js';
|
|
11
|
-
import 'dayjs';
|
|
12
|
-
import '@babel/runtime/helpers/extends';
|
|
13
|
-
import '../components/Avatar/Avatar.js';
|
|
14
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
15
|
-
import '../components/FileUpload/FileUpload.js';
|
|
16
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
17
|
-
import '../components/FileUpload/types.js';
|
|
18
|
-
import '../Alert-BslI0aA0.js';
|
|
19
|
-
import '../components/Alert/consts.js';
|
|
20
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
21
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
22
|
-
import '../consts/index.js';
|
|
23
|
-
import '../type/file-upload.js';
|
|
24
|
-
import '../hooks/useScreenSize.js';
|
|
25
|
-
import 'react-hook-form';
|
|
26
|
-
import 'react-dropzone';
|
|
27
|
-
import '../components/SVGIcons/IconUpload.js';
|
|
28
|
-
import '../helpers/format-date.js';
|
|
29
|
-
import '../helpers/locale.js';
|
|
30
|
-
import '../type/locale.js';
|
|
31
|
-
import '../helpers/storage.js';
|
|
32
|
-
import 'react-toastify';
|
|
33
|
-
import '../hooks/useGetIsMobile.js';
|
|
34
|
-
import 'framer-motion';
|
|
35
|
-
import './AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
36
|
-
import '../hooks/useOnOutsideClick.js';
|
|
37
|
-
import '../hooks/useHideBodyScroll.js';
|
|
38
|
-
import '../components/SVGIcons/IconDismiss.js';
|
|
39
|
-
import '../components/Tooltip/types.js';
|
|
40
|
-
import '../components/Tooltip/Tooltip.js';
|
|
41
|
-
import '../hooks/useGetTooltipStyles.js';
|
|
42
|
-
import '../hooks/useGetElemSizes.js';
|
|
43
|
-
import '../hooks/useGetElemPositions.js';
|
|
44
|
-
import '../hooks/useGetTooltipPosition.js';
|
|
45
|
-
import '../hooks/useHideOnScroll.js';
|
|
46
|
-
import 'react-syntax-highlighter';
|
|
47
|
-
import '../components/Link/Link.js';
|
|
48
|
-
import '../components/Popover/PopoverDesktop.js';
|
|
49
|
-
import '../components/SVGIcons/IconInfo.js';
|
|
50
|
-
import '@babel/runtime/helpers/typeof';
|
|
51
|
-
import '../components/SVGIcons/IconDismissFilled.js';
|
|
52
|
-
import '../components/SVGIcons/IconDelete.js';
|
|
53
|
-
import '../components/FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
54
|
-
import '../components/Progress/Progress.js';
|
|
55
|
-
import '../components/SVGIcons/IconArrowDownloadFilled.js';
|
|
56
|
-
import '../helpers/download-file.js';
|
|
57
|
-
import '../components/Button/consts.js';
|
|
58
|
-
import '../components/FileUpload/UploadItems.js';
|
|
59
|
-
import '../hooks/useFormProps.js';
|
|
60
|
-
import '../context/types.js';
|
|
61
|
-
import '../components/SVGIcons/IconEditFilled.js';
|
|
62
|
-
import '../components/SVGIcons/IconEdit.js';
|
|
63
|
-
import '../components/SVGIcons/IconAttach.js';
|
|
64
|
-
import '../components/SVGIcons/IconCheckmark.js';
|
|
65
|
-
import './IconDynamicComponent/constants.js';
|
|
1
|
+
export * from './Label';
|
|
2
|
+
export * from './ErrorMessage';
|
|
3
|
+
export * from './Loader';
|
|
4
|
+
export * from './OptionItem';
|
|
5
|
+
export * from './IconDynamicComponent';
|
|
6
|
+
export * from './CodeBlock';
|
|
@@ -1,114 +1,60 @@
|
|
|
1
|
-
import { notify } from '../components/Snackbar
|
|
2
|
-
import { MESSAGE_TYPE } from '../type
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import '../utils/helpers.js';
|
|
12
|
-
import 'dayjs';
|
|
13
|
-
import '../Alert-BslI0aA0.js';
|
|
14
|
-
import '../components/Alert/consts.js';
|
|
15
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
16
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
17
|
-
import '../helperComponents/Loader/Loader.js';
|
|
18
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
19
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
20
|
-
import '../consts/index.js';
|
|
21
|
-
import '../type/file-upload.js';
|
|
22
|
-
import '../hooks/useScreenSize.js';
|
|
23
|
-
import 'react-hook-form';
|
|
24
|
-
import 'react-dropzone';
|
|
25
|
-
import '../components/SVGIcons/IconUpload.js';
|
|
26
|
-
import '../components/FileUpload/types.js';
|
|
27
|
-
import './format-date.js';
|
|
28
|
-
import '../hooks/useGetIsMobile.js';
|
|
29
|
-
import 'framer-motion';
|
|
30
|
-
import '../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
31
|
-
import '../hooks/useOnOutsideClick.js';
|
|
32
|
-
import '../hooks/useHideBodyScroll.js';
|
|
33
|
-
import '../components/SVGIcons/IconDismiss.js';
|
|
34
|
-
import '../components/Tooltip/types.js';
|
|
35
|
-
import '../components/Tooltip/Tooltip.js';
|
|
36
|
-
import '../hooks/useGetTooltipStyles.js';
|
|
37
|
-
import '../hooks/useGetElemSizes.js';
|
|
38
|
-
import '../hooks/useGetElemPositions.js';
|
|
39
|
-
import '../hooks/useGetTooltipPosition.js';
|
|
40
|
-
import '../hooks/useHideOnScroll.js';
|
|
41
|
-
import 'react-syntax-highlighter';
|
|
42
|
-
import '../components/Link/Link.js';
|
|
43
|
-
import '../components/Popover/PopoverDesktop.js';
|
|
44
|
-
import '../components/SVGIcons/IconInfo.js';
|
|
45
|
-
import '../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
46
|
-
import '../helperComponents/IconDynamicComponent/constants.js';
|
|
47
|
-
import '@babel/runtime/helpers/typeof';
|
|
48
|
-
import '../components/SVGIcons/IconDismissFilled.js';
|
|
49
|
-
import '../components/SVGIcons/IconDelete.js';
|
|
50
|
-
import '../components/FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
51
|
-
import '../components/Progress/Progress.js';
|
|
52
|
-
import '../components/SVGIcons/IconArrowDownloadFilled.js';
|
|
53
|
-
import './download-file.js';
|
|
54
|
-
import '../components/Button/consts.js';
|
|
55
|
-
import '../components/Snackbar/consts.js';
|
|
56
|
-
import '../type/locale.js';
|
|
57
|
-
import './storage.js';
|
|
58
|
-
|
|
59
|
-
var ROUTE_CONFIGS = {
|
|
60
|
-
authorization: {
|
|
61
|
-
login: '/auth/login',
|
|
62
|
-
logout: '/auth/logout',
|
|
63
|
-
session: '/auth/session'
|
|
64
|
-
}
|
|
1
|
+
import { notify } from '../components/Snackbar';
|
|
2
|
+
import { STATUS_CODE, MESSAGE_TYPE } from '../type';
|
|
3
|
+
import { getTranslationLocale } from './locale';
|
|
4
|
+
import { getModulePrefix } from './get-module-prefix';
|
|
5
|
+
const ROUTE_CONFIGS = {
|
|
6
|
+
authorization: {
|
|
7
|
+
login: '/auth/login',
|
|
8
|
+
logout: '/auth/logout',
|
|
9
|
+
session: '/auth/session'
|
|
10
|
+
}
|
|
65
11
|
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
12
|
+
const LOCALIZATION = {
|
|
13
|
+
en: {
|
|
14
|
+
permissionDenied: 'Permission denied',
|
|
15
|
+
badRequest: 'An unexpected error occurred. Please contact support for assistance.'
|
|
16
|
+
},
|
|
17
|
+
ru: {
|
|
18
|
+
permissionDenied: 'Доступ запрещен',
|
|
19
|
+
badRequest: 'Произошла непредвиденная ошибка. Обратитесь в службу поддержки за помощью.'
|
|
20
|
+
},
|
|
21
|
+
hy: {
|
|
22
|
+
permissionDenied: 'Permission denied',
|
|
23
|
+
badRequest: 'An unexpected error occurred. Please contact support for assistance.'
|
|
24
|
+
}
|
|
79
25
|
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
26
|
+
export const checkAuthorization = (statusCode) => {
|
|
27
|
+
const language = getTranslationLocale();
|
|
28
|
+
if (statusCode === STATUS_CODE.UNAUTHORIZED) {
|
|
29
|
+
const currentUrl = `${window.location.pathname}${window.location.search}`;
|
|
30
|
+
const encodedReturnUrl = encodeURIComponent(currentUrl);
|
|
31
|
+
const appPrefix = getModulePrefix();
|
|
32
|
+
fetch(`${window.location.origin}${appPrefix}${ROUTE_CONFIGS.authorization.session}`)
|
|
33
|
+
.then((res) => res.json())
|
|
34
|
+
.then((res) => {
|
|
35
|
+
if (res === null || res === void 0 ? void 0 : res.isAuthenticated) {
|
|
36
|
+
window.location.href = `${window.location.origin}${appPrefix}${ROUTE_CONFIGS.authorization.logout}`;
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
window.location.href = `${window.location.origin}${appPrefix}${ROUTE_CONFIGS.authorization.login}?returnUrl=${encodedReturnUrl}`;
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
.catch(() => {
|
|
43
|
+
window.location.href = `${window.location.origin}${appPrefix}${ROUTE_CONFIGS.authorization.login}?returnUrl=${encodedReturnUrl}`;
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
if (statusCode === STATUS_CODE.PERMISSION_DENIED) {
|
|
47
|
+
notify({
|
|
48
|
+
text: LOCALIZATION[language].permissionDenied,
|
|
49
|
+
type: MESSAGE_TYPE.error,
|
|
50
|
+
toastId: new Date().getTime()
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
if (statusCode === STATUS_CODE.BAD_REQUEST || statusCode === STATUS_CODE.SERVER_ISSUE) {
|
|
54
|
+
notify({
|
|
55
|
+
text: LOCALIZATION[language].badRequest,
|
|
56
|
+
type: MESSAGE_TYPE.error,
|
|
57
|
+
toastId: new Date().getTime()
|
|
58
|
+
});
|
|
59
|
+
}
|
|
112
60
|
};
|
|
113
|
-
|
|
114
|
-
export { checkAuthorization };
|
package/helpers/download-file.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export const downloadFile = (url, fileName) => {
|
|
2
|
+
const a = document.createElement('a');
|
|
3
|
+
a.href = url;
|
|
4
|
+
a.download = fileName; // Specify the file name for download
|
|
5
|
+
document.body.appendChild(a);
|
|
6
|
+
a.click();
|
|
7
|
+
document.body.removeChild(a);
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
export { downloadFile };
|
package/helpers/format-date.js
CHANGED
|
@@ -1,46 +1,18 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
import
|
|
3
|
-
import '
|
|
4
|
-
import './storage.js';
|
|
5
|
-
|
|
6
|
-
function getDefaultExportFromCjs (x) {
|
|
7
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
var utc$2 = {exports: {}};
|
|
11
|
-
|
|
12
|
-
var utc$1 = utc$2.exports;
|
|
13
|
-
|
|
14
|
-
var hasRequiredUtc;
|
|
15
|
-
|
|
16
|
-
function requireUtc () {
|
|
17
|
-
if (hasRequiredUtc) return utc$2.exports;
|
|
18
|
-
hasRequiredUtc = 1;
|
|
19
|
-
(function (module, exports) {
|
|
20
|
-
!function(t,i){module.exports=i();}(utc$1,(function(){var t="minute",i=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(s,f,n){var u=f.prototype;n.utc=function(t){var i={date:t,utc:true,args:arguments};return new f(i)},u.utc=function(i){var e=n(this.toDate(),{locale:this.$L,utc:true});return i?e.add(this.utcOffset(),t):e},u.local=function(){return n(this.toDate(),{locale:this.$L,utc:false})};var o=u.parse;u.parse=function(t){t.utc&&(this.$u=true),this.$utils().u(t.$offset)||(this.$offset=t.$offset),o.call(this,t);};var r=u.init;u.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds();}else r.call(this);};var a=u.utcOffset;u.utcOffset=function(s,f){var n=this.$utils().u;if(n(s))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof s&&(s=function(t){ void 0===t&&(t="");var s=t.match(i);if(!s)return null;var f=(""+s[0]).match(e)||["-",0,0],n=f[0],u=60*+f[1]+ +f[2];return 0===u?0:"+"===n?u:-u}(s),null===s))return this;var u=Math.abs(s)<=16?60*s:s,o=this;if(f)return o.$offset=u,o.$u=0===s,o;if(0!==s){var r=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(u+r,t)).$offset=u,o.$x.$localOffset=r;}else o=this.utc();return o};var h=u.format;u.format=function(t){var i=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,i)},u.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},u.isUTC=function(){return !!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var l=u.toDate;u.toDate=function(t){return "s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():l.call(this)};var c=u.diff;u.diff=function(t,i,e){if(t&&this.$u===t.$u)return c.call(this,t,i,e);var s=this.local(),f=n(t).local();return c.call(s,f,i,e)};}}));
|
|
21
|
-
} (utc$2));
|
|
22
|
-
return utc$2.exports;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
var utcExports = requireUtc();
|
|
26
|
-
var utc = /*@__PURE__*/getDefaultExportFromCjs(utcExports);
|
|
27
|
-
|
|
2
|
+
import utc from 'dayjs/plugin/utc';
|
|
3
|
+
import { getDayJSLocale } from './locale';
|
|
28
4
|
dayjs.extend(utc);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return dayjs(value).locale(getDayJSLocale()).format(format);
|
|
5
|
+
export const formatDate = (value, format, defaultValue = '') => {
|
|
6
|
+
const isValid = dayjs(value).isValid();
|
|
7
|
+
if (!isValid || !value) {
|
|
8
|
+
return defaultValue;
|
|
9
|
+
}
|
|
10
|
+
return dayjs(value).locale(getDayJSLocale()).format(format);
|
|
36
11
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return dayjs.utc(value).locale(getDayJSLocale()).format(format);
|
|
12
|
+
export const formatDateUTC = (value, format, defaultValue = '') => {
|
|
13
|
+
const isValid = dayjs(value).isValid();
|
|
14
|
+
if (!isValid || !value) {
|
|
15
|
+
return defaultValue;
|
|
16
|
+
}
|
|
17
|
+
return dayjs.utc(value).locale(getDayJSLocale()).format(format);
|
|
44
18
|
};
|
|
45
|
-
|
|
46
|
-
export { formatDate, formatDateUTC };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export const getModulePrefix = () => {
|
|
2
|
+
const prefix = window.location.pathname.split('/')[1] || 'cr';
|
|
3
|
+
return `/${prefix}`;
|
|
4
4
|
};
|
|
5
|
-
|
|
6
|
-
export { getModulePrefix };
|