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,12 +1,6 @@
|
|
|
1
1
|
import { useContext } from 'react';
|
|
2
|
-
import { FormContext } from './types
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var WithFormFeedback = function WithFormFeedback(_ref) {
|
|
7
|
-
var children = _ref.children;
|
|
8
|
-
var context = useContext(FormContext);
|
|
9
|
-
return children ? children(context) : null;
|
|
2
|
+
import { FormContext } from './types';
|
|
3
|
+
export const WithFormFeedback = ({ children }) => {
|
|
4
|
+
const context = useContext(FormContext);
|
|
5
|
+
return children ? children(context) : null;
|
|
10
6
|
};
|
|
11
|
-
|
|
12
|
-
export { WithFormFeedback };
|
package/context/index.js
CHANGED
package/context/types.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { createContext } from 'react';
|
|
2
|
-
import { noop } from '../utils/helpers
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
isSubmitting: false,
|
|
9
|
-
dirtyFields: {}
|
|
2
|
+
import { noop } from '../utils/helpers';
|
|
3
|
+
export const FormContext = createContext({
|
|
4
|
+
setValue: noop,
|
|
5
|
+
isSubmitted: false,
|
|
6
|
+
isSubmitting: false,
|
|
7
|
+
dirtyFields: {}
|
|
10
8
|
});
|
|
11
|
-
|
|
12
|
-
export { FormContext };
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { AnimatePresence } from 'framer-motion';
|
|
3
|
-
|
|
4
3
|
// This component is for exit animation
|
|
5
|
-
function AnimatePresenceWrapper(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
initial = _ref$initial === void 0 ? true : _ref$initial;
|
|
9
|
-
var NewAnimatePresence = AnimatePresence;
|
|
10
|
-
return /*#__PURE__*/React.createElement(NewAnimatePresence, {
|
|
11
|
-
initial: initial
|
|
12
|
-
}, children);
|
|
4
|
+
export function AnimatePresenceWrapper({ children, initial = true }) {
|
|
5
|
+
const NewAnimatePresence = AnimatePresence;
|
|
6
|
+
return _jsx(NewAnimatePresence, { initial: initial, children: children });
|
|
13
7
|
}
|
|
14
|
-
|
|
15
|
-
export { AnimatePresenceWrapper };
|
|
@@ -1,178 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Prism } from 'react-syntax-highlighter';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"code[class*=\"language-\"]": {
|
|
6
|
-
"color": "#c5c8c6",
|
|
7
|
-
"textShadow": "0 1px rgba(0, 0, 0, 0.3)",
|
|
8
|
-
"fontFamily": "Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",
|
|
9
|
-
"direction": "ltr",
|
|
10
|
-
"textAlign": "left",
|
|
11
|
-
"whiteSpace": "pre",
|
|
12
|
-
"wordSpacing": "normal",
|
|
13
|
-
"wordBreak": "normal",
|
|
14
|
-
"lineHeight": "1.5",
|
|
15
|
-
"MozTabSize": "4",
|
|
16
|
-
"OTabSize": "4",
|
|
17
|
-
"tabSize": "4",
|
|
18
|
-
"WebkitHyphens": "none",
|
|
19
|
-
"MozHyphens": "none",
|
|
20
|
-
"msHyphens": "none",
|
|
21
|
-
"hyphens": "none"
|
|
22
|
-
},
|
|
23
|
-
"pre[class*=\"language-\"]": {
|
|
24
|
-
"color": "#c5c8c6",
|
|
25
|
-
"textShadow": "0 1px rgba(0, 0, 0, 0.3)",
|
|
26
|
-
"fontFamily": "Inconsolata, Monaco, Consolas, 'Courier New', Courier, monospace",
|
|
27
|
-
"direction": "ltr",
|
|
28
|
-
"textAlign": "left",
|
|
29
|
-
"whiteSpace": "pre",
|
|
30
|
-
"wordSpacing": "normal",
|
|
31
|
-
"wordBreak": "normal",
|
|
32
|
-
"lineHeight": "1.5",
|
|
33
|
-
"MozTabSize": "4",
|
|
34
|
-
"OTabSize": "4",
|
|
35
|
-
"tabSize": "4",
|
|
36
|
-
"WebkitHyphens": "none",
|
|
37
|
-
"MozHyphens": "none",
|
|
38
|
-
"msHyphens": "none",
|
|
39
|
-
"hyphens": "none",
|
|
40
|
-
"padding": "1em",
|
|
41
|
-
"margin": ".5em 0",
|
|
42
|
-
"overflow": "auto",
|
|
43
|
-
"borderRadius": "0.3em",
|
|
44
|
-
"background": "#1d1f21"
|
|
45
|
-
},
|
|
46
|
-
":not(pre) > code[class*=\"language-\"]": {
|
|
47
|
-
"background": "#1d1f21",
|
|
48
|
-
"padding": ".1em",
|
|
49
|
-
"borderRadius": ".3em"
|
|
50
|
-
},
|
|
51
|
-
"comment": {
|
|
52
|
-
"color": "#7C7C7C"
|
|
53
|
-
},
|
|
54
|
-
"prolog": {
|
|
55
|
-
"color": "#7C7C7C"
|
|
56
|
-
},
|
|
57
|
-
"doctype": {
|
|
58
|
-
"color": "#7C7C7C"
|
|
59
|
-
},
|
|
60
|
-
"cdata": {
|
|
61
|
-
"color": "#7C7C7C"
|
|
62
|
-
},
|
|
63
|
-
"punctuation": {
|
|
64
|
-
"color": "#c5c8c6"
|
|
65
|
-
},
|
|
66
|
-
".namespace": {
|
|
67
|
-
"Opacity": ".7"
|
|
68
|
-
},
|
|
69
|
-
"property": {
|
|
70
|
-
"color": "#96CBFE"
|
|
71
|
-
},
|
|
72
|
-
"keyword": {
|
|
73
|
-
"color": "#96CBFE"
|
|
74
|
-
},
|
|
75
|
-
"tag": {
|
|
76
|
-
"color": "#96CBFE"
|
|
77
|
-
},
|
|
78
|
-
"class-name": {
|
|
79
|
-
"color": "#FFFFB6",
|
|
80
|
-
"textDecoration": "underline"
|
|
81
|
-
},
|
|
82
|
-
"boolean": {
|
|
83
|
-
"color": "#99CC99"
|
|
84
|
-
},
|
|
85
|
-
"constant": {
|
|
86
|
-
"color": "#99CC99"
|
|
87
|
-
},
|
|
88
|
-
"symbol": {
|
|
89
|
-
"color": "#f92672"
|
|
90
|
-
},
|
|
91
|
-
"deleted": {
|
|
92
|
-
"color": "#f92672"
|
|
93
|
-
},
|
|
94
|
-
"number": {
|
|
95
|
-
"color": "#FF73FD"
|
|
96
|
-
},
|
|
97
|
-
"selector": {
|
|
98
|
-
"color": "#A8FF60"
|
|
99
|
-
},
|
|
100
|
-
"attr-name": {
|
|
101
|
-
"color": "#A8FF60"
|
|
102
|
-
},
|
|
103
|
-
"string": {
|
|
104
|
-
"color": "#A8FF60"
|
|
105
|
-
},
|
|
106
|
-
"char": {
|
|
107
|
-
"color": "#A8FF60"
|
|
108
|
-
},
|
|
109
|
-
"builtin": {
|
|
110
|
-
"color": "#A8FF60"
|
|
111
|
-
},
|
|
112
|
-
"inserted": {
|
|
113
|
-
"color": "#A8FF60"
|
|
114
|
-
},
|
|
115
|
-
"variable": {
|
|
116
|
-
"color": "#C6C5FE"
|
|
117
|
-
},
|
|
118
|
-
"operator": {
|
|
119
|
-
"color": "#EDEDED"
|
|
120
|
-
},
|
|
121
|
-
"entity": {
|
|
122
|
-
"color": "#FFFFB6",
|
|
123
|
-
"cursor": "help"
|
|
124
|
-
},
|
|
125
|
-
"url": {
|
|
126
|
-
"color": "#96CBFE"
|
|
127
|
-
},
|
|
128
|
-
".language-css .token.string": {
|
|
129
|
-
"color": "#87C38A"
|
|
130
|
-
},
|
|
131
|
-
".style .token.string": {
|
|
132
|
-
"color": "#87C38A"
|
|
133
|
-
},
|
|
134
|
-
"atrule": {
|
|
135
|
-
"color": "#F9EE98"
|
|
136
|
-
},
|
|
137
|
-
"attr-value": {
|
|
138
|
-
"color": "#F9EE98"
|
|
139
|
-
},
|
|
140
|
-
"function": {
|
|
141
|
-
"color": "#DAD085"
|
|
142
|
-
},
|
|
143
|
-
"regex": {
|
|
144
|
-
"color": "#E9C062"
|
|
145
|
-
},
|
|
146
|
-
"important": {
|
|
147
|
-
"color": "#fd971f",
|
|
148
|
-
"fontWeight": "bold"
|
|
149
|
-
},
|
|
150
|
-
"bold": {
|
|
151
|
-
"fontWeight": "bold"
|
|
152
|
-
},
|
|
153
|
-
"italic": {
|
|
154
|
-
"fontStyle": "italic"
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
var CodeBlock = function CodeBlock(_ref) {
|
|
159
|
-
var title = _ref.title,
|
|
160
|
-
children = _ref.children,
|
|
161
|
-
language = _ref.language,
|
|
162
|
-
className = _ref.className;
|
|
163
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
164
|
-
className: className,
|
|
165
|
-
style: {
|
|
166
|
-
margin: '10px 0'
|
|
167
|
-
}
|
|
168
|
-
}, title && /*#__PURE__*/React.createElement("h3", null, title), /*#__PURE__*/React.createElement(Prism, {
|
|
169
|
-
language: language !== null && language !== void 0 ? language : 'js',
|
|
170
|
-
style: atomDark,
|
|
171
|
-
wrapLines: true,
|
|
172
|
-
showLineNumbers: true
|
|
173
|
-
}, Array.isArray(children) ? children.map(function (child) {
|
|
174
|
-
return child.trim();
|
|
175
|
-
}) : children.trim()));
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
export { CodeBlock };
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
|
3
|
+
import { atomDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
4
|
+
export const CodeBlock = ({ title, children, language, className }) => (_jsxs("div", { className: className, style: { margin: '10px 0' }, children: [title && _jsx("h3", { children: title }), _jsx(SyntaxHighlighter, { language: language !== null && language !== void 0 ? language : 'js', style: atomDark, wrapLines: true, showLineNumbers: true, children: Array.isArray(children) ? children.map((child) => child.trim()) : children.trim() })] }));
|
|
@@ -1,27 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Text } from '../../components/Text
|
|
3
|
-
import { IconDynamicComponent } from '../IconDynamicComponent
|
|
4
|
-
import { generateDataTestId } from '../../utils/helpers
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var ErrorMessage = function ErrorMessage(_ref) {
|
|
10
|
-
var message = _ref.message,
|
|
11
|
-
icon = _ref.icon,
|
|
12
|
-
dataId = _ref.dataId,
|
|
13
|
-
className = _ref.className;
|
|
14
|
-
return /*#__PURE__*/React.createElement(Text, {
|
|
15
|
-
className: classNames('error-message', className),
|
|
16
|
-
size: "small",
|
|
17
|
-
type: "danger",
|
|
18
|
-
dataId: generateDataTestId('error-message', dataId)
|
|
19
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, icon && /*#__PURE__*/React.createElement(IconDynamicComponent, {
|
|
20
|
-
componentName: icon,
|
|
21
|
-
className: "mr-4",
|
|
22
|
-
size: "xsmall",
|
|
23
|
-
type: "danger"
|
|
24
|
-
}), /*#__PURE__*/React.createElement("span", null, message)));
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from '../../components/Text';
|
|
3
|
+
import { IconDynamicComponent } from '../IconDynamicComponent';
|
|
4
|
+
import { generateDataTestId } from '../../utils/helpers';
|
|
5
|
+
import classnames from 'classnames';
|
|
6
|
+
export const ErrorMessage = ({ message, icon, dataId, className }) => {
|
|
7
|
+
return (_jsx(Text, { className: classnames('error-message', className), size: "small", type: "danger", dataId: generateDataTestId('error-message', dataId), children: _jsxs(_Fragment, { children: [icon && (_jsx(IconDynamicComponent, { componentName: icon, className: "mr-4", size: "xsmall", type: "danger" })), _jsx("span", { children: message })] }) }));
|
|
25
8
|
};
|
|
26
|
-
|
|
27
|
-
export { ErrorMessage };
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import 'react';
|
|
3
|
-
import '../../components/Text/Text.js';
|
|
4
|
-
import 'classnames';
|
|
5
|
-
import '../../utils/helpers.js';
|
|
6
|
-
import 'dayjs';
|
|
7
|
-
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
8
|
-
import '../IconDynamicComponent/constants.js';
|
|
1
|
+
export * from './ErrorMessage';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,67 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Empty } from '../../components/Empty
|
|
3
|
-
import '
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import '../../utils/helpers.js';
|
|
7
|
-
import 'dayjs';
|
|
8
|
-
import '../../components/Image/Image.js';
|
|
9
|
-
import '../../Alert-BslI0aA0.js';
|
|
10
|
-
import '../../components/Alert/consts.js';
|
|
11
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
12
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
13
|
-
import '../Loader/Loader.js';
|
|
14
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
15
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
16
|
-
import '../../consts/index.js';
|
|
17
|
-
import '../../type/file-upload.js';
|
|
18
|
-
import '../../hooks/useScreenSize.js';
|
|
19
|
-
import 'react-hook-form';
|
|
20
|
-
import 'react-dropzone';
|
|
21
|
-
import '../../components/SVGIcons/IconUpload.js';
|
|
22
|
-
import '../../components/FileUpload/types.js';
|
|
23
|
-
import '../../helpers/format-date.js';
|
|
24
|
-
import '../../helpers/locale.js';
|
|
25
|
-
import '../../type/locale.js';
|
|
26
|
-
import '../../helpers/storage.js';
|
|
27
|
-
import 'react-toastify';
|
|
28
|
-
import '../../hooks/useGetIsMobile.js';
|
|
29
|
-
import 'framer-motion';
|
|
30
|
-
import '../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 '../IconDynamicComponent/IconDynamicComponent.js';
|
|
46
|
-
import '../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 '../../helpers/download-file.js';
|
|
54
|
-
import '../../components/Button/consts.js';
|
|
55
|
-
|
|
56
|
-
var img = "data:image/svg+xml,%3csvg width='139' height='117' viewBox='0 0 139 117' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M67.7585 100C95.2117 100 117.483 77.6185 117.483 49.9449C117.483 22.2712 95.2117 0 67.7585 0C40.3054 0 18.0342 22.3815 18.0342 50.0551C18.0342 77.7288 40.3054 100 67.7585 100Z' fill='%23EAEEF9'/%3e%3cpath d='M92.2342 99.3384C84.6267 99.5589 75.5859 99.3384 69.081 99.2282C62.6863 99.4487 53.5352 99.5589 45.9277 99.3384C53.425 95.0385 56.0711 87.1003 56.4018 81.8081H81.5396C82.2012 86.99 84.8472 95.0385 92.2342 99.3384Z' fill='url(%23paint0_linear_3521_96736)'/%3e%3cg filter='url(%23filter0_d_3521_96736)'%3e%3cpath d='M116.601 15.1046V80.926C116.601 82.5798 115.278 83.7926 113.844 83.7926H24.8696C23.3261 83.7926 22.1133 82.4696 22.1133 80.926V15.1046C22.1133 13.5611 23.4363 12.238 24.8696 12.238H113.734C115.388 12.238 116.601 13.5611 116.601 15.1046Z' fill='white'/%3e%3c/g%3e%3cpath d='M116.601 15.1046V71.775H22.1133V15.1046C22.1133 13.5611 23.4363 12.238 24.8696 12.238H113.734C115.388 12.238 116.601 13.5611 116.601 15.1046Z' fill='%23989FB0'/%3e%3cpath d='M112.962 15.8767H25.3105V68.5779H113.072V15.8767H112.962Z' fill='white'/%3e%3cpath d='M69.1913 79.866C70.5143 79.866 71.5066 78.8737 71.5066 77.5507C71.5066 76.2276 70.5143 75.2354 69.1913 75.2354C67.8683 75.2354 66.876 76.2276 66.876 77.5507C66.876 78.8737 67.8683 79.866 69.1913 79.866Z' fill='%23D0D8E6'/%3e%3cpath d='M107.891 25.5788V32.3043C107.891 33.2966 107.119 34.0683 106.127 34.0683H32.0365C31.0442 34.0683 30.2725 33.2966 30.2725 32.3043V25.5788C30.2725 24.5865 31.0442 23.8148 32.0365 23.8148H106.017C107.119 23.7045 107.891 24.5865 107.891 25.5788Z' fill='%23E5E9F1'/%3e%3cpath d='M40.6362 23.7046V34.1787H31.9262C30.9339 34.1787 30.1621 33.4069 30.1621 32.4146V25.6892C30.1621 24.6969 30.9339 23.9251 31.9262 23.9251L40.6362 23.7046Z' fill='%23E3EAF2'/%3e%3cpath opacity='0.8' d='M107.891 39.6911V46.4166C107.891 47.4089 107.119 48.1807 106.127 48.1807H32.0365C31.0442 48.1807 30.2725 47.4089 30.2725 46.4166V39.6911C30.2725 38.6988 31.0442 37.9271 32.0365 37.9271H106.017C107.119 37.8168 107.891 38.6988 107.891 39.6911Z' fill='%23E5E9F1'/%3e%3cpath d='M40.6362 23.7046V34.1787H31.9262C30.9339 34.1787 30.1621 33.4069 30.1621 32.4146V25.6892C30.1621 24.6969 30.9339 23.9251 31.9262 23.9251L40.6362 23.7046Z' fill='%23989FB0'/%3e%3cpath d='M35.1231 31.2017C34.9026 31.2017 34.6821 31.0914 34.5718 30.9812L32.918 29.3274C32.5872 28.9966 32.5872 28.5556 32.918 28.2248C33.2488 27.8941 33.6898 27.8941 34.0205 28.2248L35.0128 29.2171L37.4384 26.7915C37.7692 26.4608 38.2102 26.4608 38.5409 26.7915C38.8717 27.1223 38.8717 27.5633 38.5409 27.8941L35.5641 30.8709C35.4538 31.0914 35.2333 31.2017 35.1231 31.2017Z' fill='white'/%3e%3cpath opacity='0.5' d='M107.891 53.8038V60.5293C107.891 61.5216 107.119 62.2934 106.127 62.2934H32.0365C31.0442 62.2934 30.2725 61.5216 30.2725 60.5293V53.8038C30.2725 52.8115 31.0442 52.0398 32.0365 52.0398H106.017C107.119 51.9295 107.891 52.7013 107.891 53.8038Z' fill='%23E5E9F1'/%3e%3cpath opacity='0.3' d='M107.891 67.8061V68.5778H30.1621V67.8061C30.1621 66.8138 30.9339 66.042 31.9262 66.042H106.017C107.119 66.042 107.891 66.8138 107.891 67.8061Z' fill='%23E5E9F1'/%3e%3cpath opacity='0.3' d='M25.862 95.5898V97.3539H25.7517H6.89834H6.78809V95.5898C6.78809 95.0385 7.2291 94.7078 7.67011 94.7078H24.9799C25.5312 94.7078 25.862 95.1488 25.862 95.5898Z' fill='%23E5E9F1'/%3e%3cpath d='M28.9483 19.956C29.4996 19.956 29.9406 19.515 29.9406 18.9637C29.9406 18.4125 29.4996 17.9714 28.9483 17.9714C28.3971 17.9714 27.9561 18.4125 27.9561 18.9637C27.9561 19.515 28.3971 19.956 28.9483 19.956Z' fill='%23E3EAF2'/%3e%3cpath d='M32.1466 19.956C32.6978 19.956 33.1389 19.515 33.1389 18.9637C33.1389 18.4125 32.6978 17.9714 32.1466 17.9714C31.5953 17.9714 31.1543 18.4125 31.1543 18.9637C31.1543 19.515 31.5953 19.956 32.1466 19.956Z' fill='%23E3EAF2'/%3e%3cpath d='M35.3438 19.956C35.8951 19.956 36.3361 19.515 36.3361 18.9637C36.3361 18.4125 35.8951 17.9714 35.3438 17.9714C34.7926 17.9714 34.3516 18.4125 34.3516 18.9637C34.3516 19.515 34.7926 19.956 35.3438 19.956Z' fill='%23E3EAF2'/%3e%3cpath d='M3.82324 99.4587L131.177 99.4587' stroke='%23989FB0' stroke-width='2' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M12.0765 43.2295C13.9019 43.2295 15.3816 41.7498 15.3816 39.9244C15.3816 38.0991 13.9019 36.6194 12.0765 36.6194C10.2512 36.6194 8.77148 38.0991 8.77148 39.9244C8.77148 41.7498 10.2512 43.2295 12.0765 43.2295Z' fill='%23EAEEF9'/%3e%3cpath d='M8.77177 32.5084C10.0183 32.5084 11.0289 31.4978 11.0289 30.2513C11.0289 29.0047 10.0183 27.9941 8.77177 27.9941C7.5252 27.9941 6.51465 29.0047 6.51465 30.2513C6.51465 31.4978 7.5252 32.5084 8.77177 32.5084Z' fill='%23EAEEF9'/%3e%3cpath d='M103.107 6.05769C104.353 6.05769 105.364 5.04714 105.364 3.80057C105.364 2.554 104.353 1.54346 103.107 1.54346C101.86 1.54346 100.85 2.554 100.85 3.80057C100.85 5.04714 101.86 6.05769 103.107 6.05769Z' fill='%23EAEEF9'/%3e%3cpath d='M126.985 51.5435C129.3 51.5435 131.177 49.6668 131.177 47.3517C131.177 45.0366 129.3 43.1599 126.985 43.1599C124.67 43.1599 122.793 45.0366 122.793 47.3517C122.793 49.6668 124.67 51.5435 126.985 51.5435Z' fill='%23EAEEF9'/%3e%3cdefs%3e%3cfilter id='filter0_d_3521_96736' x='0.113281' y='1.23804' width='138.487' height='115.555' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3e%3cfeFlood flood-opacity='0' result='BackgroundImageFix'/%3e%3cfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3e%3cfeOffset dy='11'/%3e%3cfeGaussianBlur stdDeviation='11'/%3e%3cfeColorMatrix type='matrix' values='0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0'/%3e%3cfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_3521_96736'/%3e%3cfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_3521_96736' result='shape'/%3e%3c/filter%3e%3clinearGradient id='paint0_linear_3521_96736' x1='69.09' y1='98.8491' x2='69.09' y2='83.1493' gradientUnits='userSpaceOnUse'%3e%3cstop stop-color='%23E8ECF5'/%3e%3cstop offset='0.9913' stop-color='%23BDC4D7'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
57
|
-
|
|
58
|
-
var GoToWebPage = function GoToWebPage(_ref) {
|
|
59
|
-
var message = _ref.message;
|
|
60
|
-
return /*#__PURE__*/React.createElement(Empty, {
|
|
61
|
-
paragraphMessage: message,
|
|
62
|
-
mainMessage: '',
|
|
63
|
-
illustration: img
|
|
64
|
-
});
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Empty } from '../../components/Empty';
|
|
3
|
+
import no_mobile_image from '../../assets/images/no_mobile_image.svg';
|
|
4
|
+
export const GoToWebPage = ({ message }) => {
|
|
5
|
+
return _jsx(Empty, { paragraphMessage: message, mainMessage: '', illustration: no_mobile_image });
|
|
65
6
|
};
|
|
66
|
-
|
|
67
|
-
export { GoToWebPage };
|
|
@@ -1,26 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className
|
|
11
|
-
if (!componentName || !IconComponentMapping[componentName]) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Dynamically load the component based on the componentName prop
|
|
16
|
-
var Component = IconComponentMapping[componentName];
|
|
17
|
-
return /*#__PURE__*/React.createElement(Suspense, {
|
|
18
|
-
fallback: null
|
|
19
|
-
}, /*#__PURE__*/React.createElement(Component, {
|
|
20
|
-
type: type,
|
|
21
|
-
size: size,
|
|
22
|
-
className: className
|
|
23
|
-
}));
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Suspense } from 'react';
|
|
3
|
+
import { IconComponentMapping } from './constants';
|
|
4
|
+
export const IconDynamicComponent = ({ componentName, size = 'small', type = 'inverse', className }) => {
|
|
5
|
+
if (!componentName || !IconComponentMapping[componentName]) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
// Dynamically load the component based on the componentName prop
|
|
9
|
+
const Component = IconComponentMapping[componentName];
|
|
10
|
+
return (_jsx(Suspense, { fallback: null, children: _jsx(Component, { type: type, size: size, className: className }) }));
|
|
24
11
|
};
|
|
25
|
-
|
|
26
|
-
export { IconDynamicComponent, IconDynamicComponent as default };
|
|
12
|
+
export default IconDynamicComponent;
|
|
@@ -1,33 +1,12 @@
|
|
|
1
1
|
import { lazy } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}),
|
|
13
|
-
infoFilled: /*#__PURE__*/lazy(function () {
|
|
14
|
-
return import('../../components/SVGIcons/IconInfoFilled.js');
|
|
15
|
-
}),
|
|
16
|
-
checkmark: /*#__PURE__*/lazy(function () {
|
|
17
|
-
return import('../../components/SVGIcons/IconCheckmark.js');
|
|
18
|
-
}),
|
|
19
|
-
subtract: /*#__PURE__*/lazy(function () {
|
|
20
|
-
return import('../../components/SVGIcons/IconSubtract.js');
|
|
21
|
-
}),
|
|
22
|
-
am: /*#__PURE__*/lazy(function () {
|
|
23
|
-
return import('../../components/SVGIcons/IconAm.js');
|
|
24
|
-
}),
|
|
25
|
-
ru: /*#__PURE__*/lazy(function () {
|
|
26
|
-
return import('../../components/SVGIcons/IconRu.js');
|
|
27
|
-
}),
|
|
28
|
-
us: /*#__PURE__*/lazy(function () {
|
|
29
|
-
return import('../../components/SVGIcons/IconGb.js');
|
|
30
|
-
})
|
|
2
|
+
export const IconComponentMapping = {
|
|
3
|
+
warningFilled: lazy(() => import('../../components/SVGIcons/IconWarningFilled')),
|
|
4
|
+
checkmarkCircleFilled: lazy(() => import('../../components/SVGIcons/IconCheckmarkCircleFilled')),
|
|
5
|
+
errorCircleFilled: lazy(() => import('../../components/SVGIcons/IconErrorCircleFilled')),
|
|
6
|
+
infoFilled: lazy(() => import('../../components/SVGIcons/IconInfoFilled')),
|
|
7
|
+
checkmark: lazy(() => import('../../components/SVGIcons/IconCheckmark')),
|
|
8
|
+
subtract: lazy(() => import('../../components/SVGIcons/IconSubtract')),
|
|
9
|
+
am: lazy(() => import('../../components/SVGIcons/IconAm')),
|
|
10
|
+
ru: lazy(() => import('../../components/SVGIcons/IconRu')),
|
|
11
|
+
us: lazy(() => import('../../components/SVGIcons/IconGb'))
|
|
31
12
|
};
|
|
32
|
-
|
|
33
|
-
export { IconComponentMapping };
|
|
@@ -1,29 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Text } from '../../components/Text
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
_props$size = props.size,
|
|
10
|
-
size = _props$size === void 0 ? 'standard' : _props$size,
|
|
11
|
-
_props$required = props.required,
|
|
12
|
-
required = _props$required === void 0 ? false : _props$required,
|
|
13
|
-
_props$disabled = props.disabled,
|
|
14
|
-
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
15
|
-
_props$className = props.className,
|
|
16
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
17
|
-
labelAddons = props.labelAddons;
|
|
18
|
-
if (!text) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
return /*#__PURE__*/React.createElement(Text, {
|
|
22
|
-
size: size,
|
|
23
|
-
weight: 'semibold',
|
|
24
|
-
type: disabled ? 'disabled' : 'primary',
|
|
25
|
-
className: "label flexbox align-items--start mb-8 ".concat(className)
|
|
26
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, text, required ? /*#__PURE__*/React.createElement("sup", null, "*") : null, labelAddons));
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from '../../components/Text';
|
|
3
|
+
export const Label = (props) => {
|
|
4
|
+
const { text, size = 'standard', required = false, disabled = false, className = '', labelAddons } = props;
|
|
5
|
+
if (!text) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
return (_jsx(Text, { size: size, weight: 'semibold', type: disabled ? 'disabled' : 'primary', className: `label flexbox align-items--start mb-8 ${className}`, children: _jsxs(_Fragment, { children: [text, required ? _jsx("sup", { children: "*" }) : null, labelAddons] }) }));
|
|
27
9
|
};
|
|
28
|
-
|
|
29
|
-
export { Label };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
size = _props$size === void 0 ? 'large' : _props$size,
|
|
6
|
-
_props$type = props.type,
|
|
7
|
-
type = _props$type === void 0 ? 'lite' : _props$type;
|
|
8
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
9
|
-
className: "loader loader--".concat(type, " loader--").concat(size)
|
|
10
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
11
|
-
className: "loader__inner"
|
|
12
|
-
}));
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export const Loader = (props) => {
|
|
3
|
+
const { size = 'large', type = 'lite' } = props;
|
|
4
|
+
return (_jsx("div", { className: `loader loader--${type} loader--${size}`, children: _jsx("span", { className: "loader__inner" }) }));
|
|
13
5
|
};
|
|
14
|
-
|
|
15
|
-
export { Loader };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import 'react';
|
|
1
|
+
export * from './Loader';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|