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,143 +1,36 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import classNames from 'classnames';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId, useState } from 'react';
|
|
3
|
+
import classnames from 'classnames';
|
|
5
4
|
import { motion } from 'framer-motion';
|
|
6
|
-
import { AnimatePresenceWrapper } from '../../helperComponents/AnimatePresenceWrapper
|
|
7
|
-
import '../../
|
|
8
|
-
import '
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { B as Button } from '../../Alert-BslI0aA0.js';
|
|
14
|
-
import { Text } from '../Text/Text.js';
|
|
15
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
16
|
-
import '../../type/file-upload.js';
|
|
17
|
-
import '../Alert/consts.js';
|
|
18
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
19
|
-
import '../../helperComponents/Loader/Loader.js';
|
|
20
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
21
|
-
import 'react-dropzone';
|
|
22
|
-
import '../SVGIcons/IconUpload.js';
|
|
23
|
-
import '../FileUpload/types.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 '../SVGIcons/IconDismiss.js';
|
|
31
|
-
import '../Tooltip/types.js';
|
|
32
|
-
import '../Tooltip/Tooltip.js';
|
|
33
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
34
|
-
import '../../hooks/useGetElemSizes.js';
|
|
35
|
-
import '../../hooks/useGetElemPositions.js';
|
|
36
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
37
|
-
import '../../hooks/useHideOnScroll.js';
|
|
38
|
-
import '../../utils/helpers.js';
|
|
39
|
-
import 'react-syntax-highlighter';
|
|
40
|
-
import '../Link/Link.js';
|
|
41
|
-
import '../Popover/PopoverDesktop.js';
|
|
42
|
-
import '../SVGIcons/IconInfo.js';
|
|
43
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
44
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
45
|
-
import '@babel/runtime/helpers/typeof';
|
|
46
|
-
import '../SVGIcons/IconDismissFilled.js';
|
|
47
|
-
import '../SVGIcons/IconDelete.js';
|
|
48
|
-
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
49
|
-
import '../Progress/Progress.js';
|
|
50
|
-
import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
51
|
-
import '../../helpers/download-file.js';
|
|
52
|
-
import '../Button/consts.js';
|
|
53
|
-
|
|
54
|
-
var DESKTOP_ANIMATION = {
|
|
55
|
-
initial: {
|
|
56
|
-
opacity: 0.5,
|
|
57
|
-
scale: 0.65
|
|
58
|
-
},
|
|
59
|
-
animate: {
|
|
60
|
-
opacity: 1,
|
|
61
|
-
scale: [0.95, 1]
|
|
62
|
-
},
|
|
63
|
-
exit: {
|
|
64
|
-
opacity: 0,
|
|
65
|
-
scale: 0.7,
|
|
66
|
-
transition: {
|
|
67
|
-
duration: 0.2
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
transition: {
|
|
71
|
-
duration: 0.4,
|
|
72
|
-
type: 'spring',
|
|
73
|
-
damping: 55,
|
|
74
|
-
stiffness: 700
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var ModalConfirmation = function ModalConfirmation(props) {
|
|
78
|
-
var isOpen = props.isOpen,
|
|
79
|
-
onClose = props.onClose,
|
|
80
|
-
onSubmit = props.onSubmit,
|
|
81
|
-
title = props.title,
|
|
82
|
-
_props$className = props.className,
|
|
83
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
84
|
-
_props$size = props.size,
|
|
85
|
-
size = _props$size === void 0 ? 'small' : _props$size,
|
|
86
|
-
buttonProps = props.buttonProps,
|
|
87
|
-
dataIdPrefix = props.dataIdPrefix,
|
|
88
|
-
_props$closeOnOutside = props.closeOnOutsideClick,
|
|
89
|
-
closeOnOutsideClick = _props$closeOnOutside === void 0 ? true : _props$closeOnOutside,
|
|
90
|
-
iconProps = props.iconProps,
|
|
91
|
-
subtitle = props.subtitle;
|
|
92
|
-
var _useState = useState(null),
|
|
93
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
94
|
-
containerRef = _useState2[0],
|
|
95
|
-
setContainerRef = _useState2[1];
|
|
96
|
-
useOnOutsideClick(containerRef, onClose, closeOnOutsideClick && isOpen, useId());
|
|
97
|
-
useHideBodyScroll(isOpen);
|
|
98
|
-
return /*#__PURE__*/React.createElement(AnimatePresenceWrapper, null, isOpen ? /*#__PURE__*/React.createElement(motion.div, {
|
|
99
|
-
className: classNames('modal modal--confirmation', "modal--".concat(size), className),
|
|
100
|
-
initial: {
|
|
101
|
-
opacity: 0
|
|
102
|
-
},
|
|
103
|
-
animate: {
|
|
104
|
-
opacity: 1
|
|
105
|
-
},
|
|
5
|
+
import { AnimatePresenceWrapper } from '../../helperComponents/AnimatePresenceWrapper';
|
|
6
|
+
import { useHideBodyScroll, useOnOutsideClick } from '../../hooks';
|
|
7
|
+
import { Button } from '../Button';
|
|
8
|
+
import { Text } from '../Text';
|
|
9
|
+
const DESKTOP_ANIMATION = {
|
|
10
|
+
initial: { opacity: 0.5, scale: 0.65 },
|
|
11
|
+
animate: { opacity: 1, scale: [0.95, 1] },
|
|
106
12
|
exit: {
|
|
107
|
-
|
|
13
|
+
opacity: 0,
|
|
14
|
+
scale: 0.7,
|
|
15
|
+
transition: {
|
|
16
|
+
duration: 0.2
|
|
17
|
+
}
|
|
108
18
|
},
|
|
109
19
|
transition: {
|
|
110
|
-
|
|
20
|
+
duration: 0.4,
|
|
21
|
+
type: 'spring',
|
|
22
|
+
damping: 55,
|
|
23
|
+
stiffness: 700
|
|
111
24
|
}
|
|
112
|
-
}, /*#__PURE__*/React.createElement("div", _extends({
|
|
113
|
-
className: "modal__container text-center",
|
|
114
|
-
ref: setContainerRef
|
|
115
|
-
}, DESKTOP_ANIMATION), /*#__PURE__*/React.createElement("div", {
|
|
116
|
-
className: 'modal__content'
|
|
117
|
-
}, iconProps !== null && iconProps !== void 0 && iconProps.Component ? /*#__PURE__*/React.createElement("div", {
|
|
118
|
-
className: "modal__icon mb-32"
|
|
119
|
-
}, /*#__PURE__*/React.createElement(iconProps.Component, {
|
|
120
|
-
size: 'xlarge'
|
|
121
|
-
})) : null, title ? /*#__PURE__*/React.createElement(Text, {
|
|
122
|
-
weight: "bolder",
|
|
123
|
-
lineHeight: "large",
|
|
124
|
-
size: "large",
|
|
125
|
-
dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-title") : ''
|
|
126
|
-
}, title) : null, subtitle ? /*#__PURE__*/React.createElement(Text, {
|
|
127
|
-
className: 'mt-12'
|
|
128
|
-
}, subtitle) : null, buttonProps ? /*#__PURE__*/React.createElement("div", {
|
|
129
|
-
className: "modal__footer mt-32"
|
|
130
|
-
}, /*#__PURE__*/React.createElement(Button, _extends({
|
|
131
|
-
type: "secondary",
|
|
132
|
-
className: "modal__footer__btn mr-16",
|
|
133
|
-
onClick: onClose,
|
|
134
|
-
dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-cancel-button") : ''
|
|
135
|
-
}, buttonProps.cancel || {})), /*#__PURE__*/React.createElement(Button, _extends({
|
|
136
|
-
type: "danger",
|
|
137
|
-
className: 'modal__footer__btn',
|
|
138
|
-
onClick: onSubmit,
|
|
139
|
-
dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-confirm-button") : ''
|
|
140
|
-
}, buttonProps.confirm))) : null))) : null);
|
|
141
25
|
};
|
|
142
|
-
|
|
143
|
-
|
|
26
|
+
export const ModalConfirmation = (props) => {
|
|
27
|
+
const { isOpen, onClose, onSubmit, title, className = '', size = 'small', buttonProps, dataIdPrefix, closeOnOutsideClick = true, iconProps, subtitle } = props;
|
|
28
|
+
const [containerRef, setContainerRef] = useState(null);
|
|
29
|
+
useOnOutsideClick(containerRef, onClose, closeOnOutsideClick && isOpen, useId());
|
|
30
|
+
useHideBodyScroll(isOpen);
|
|
31
|
+
return (_jsx(AnimatePresenceWrapper, { children: isOpen ? (_jsx(motion.div, { className: classnames('modal modal--confirmation', `modal--${size}`, className), initial: {
|
|
32
|
+
opacity: 0
|
|
33
|
+
}, animate: {
|
|
34
|
+
opacity: 1
|
|
35
|
+
}, exit: { opacity: 0 }, transition: { duration: 0.4 }, children: _jsx("div", Object.assign({ className: "modal__container text-center", ref: setContainerRef }, DESKTOP_ANIMATION, { children: _jsxs("div", { className: 'modal__content', children: [(iconProps === null || iconProps === void 0 ? void 0 : iconProps.Component) ? (_jsx("div", { className: "modal__icon mb-32", children: _jsx(iconProps.Component, { size: 'xlarge' }) })) : null, title ? (_jsx(Text, { weight: "bolder", lineHeight: "large", size: "large", dataId: dataIdPrefix ? `${dataIdPrefix}-modal-title` : '', children: title })) : null, subtitle ? _jsx(Text, { className: 'mt-12', children: subtitle }) : null, buttonProps ? (_jsxs("div", { className: "modal__footer mt-32", children: [_jsx(Button, Object.assign({ type: "secondary", className: "modal__footer__btn mr-16", onClick: onClose, dataId: dataIdPrefix ? `${dataIdPrefix}-modal-cancel-button` : '' }, (buttonProps.cancel || {}))), _jsx(Button, Object.assign({ type: "danger", className: 'modal__footer__btn', onClick: onSubmit, dataId: dataIdPrefix ? `${dataIdPrefix}-modal-confirm-button` : '' }, buttonProps.confirm))] })) : null] }) })) })) : null }));
|
|
36
|
+
};
|
|
@@ -1,52 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '
|
|
3
|
-
import '../
|
|
4
|
-
import '../
|
|
5
|
-
|
|
6
|
-
import '../
|
|
7
|
-
import '
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import '../Alert/consts.js';
|
|
12
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
13
|
-
import 'dayjs';
|
|
14
|
-
import '../../helperComponents/Loader/Loader.js';
|
|
15
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
16
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
17
|
-
import '../../consts/index.js';
|
|
18
|
-
import '../../type/file-upload.js';
|
|
19
|
-
import '../../hooks/useScreenSize.js';
|
|
20
|
-
import 'react-hook-form';
|
|
21
|
-
import 'react-dropzone';
|
|
22
|
-
import '../SVGIcons/IconUpload.js';
|
|
23
|
-
import '../FileUpload/types.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 '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
32
|
-
import '../../hooks/useOnOutsideClick.js';
|
|
33
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
34
|
-
import 'react-syntax-highlighter';
|
|
35
|
-
import '../Link/Link.js';
|
|
36
|
-
import '../Popover/PopoverDesktop.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 '../SVGIcons/IconInfo.js';
|
|
43
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
44
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
45
|
-
import '@babel/runtime/helpers/typeof';
|
|
46
|
-
import '../SVGIcons/IconDismissFilled.js';
|
|
47
|
-
import '../SVGIcons/IconDelete.js';
|
|
48
|
-
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
49
|
-
import '../Progress/Progress.js';
|
|
50
|
-
import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
51
|
-
import '../../helpers/download-file.js';
|
|
52
|
-
import '../Button/consts.js';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import IconDismiss from '../SVGIcons/IconDismiss';
|
|
3
|
+
import { Positions } from '../Tooltip/types';
|
|
4
|
+
import { Button } from '../Button';
|
|
5
|
+
import { Text } from '../Text';
|
|
6
|
+
import { Tooltip } from '../Tooltip';
|
|
7
|
+
import { noop } from '../../utils/helpers';
|
|
8
|
+
export const ModalContent = ({ title, subtitle, dataIdPrefix, closeIcon, onClose, children, withFooter = true, confirmBtnTooltipText, buttonProps, onSubmit }) => {
|
|
9
|
+
return (_jsxs(_Fragment, { children: [title ? (_jsxs("div", { className: "modal__header", children: [_jsxs("div", { children: [_jsx(Text, { lineHeight: "large", size: "large", weight: 'bolder', dataId: dataIdPrefix ? `${dataIdPrefix}-modal-title` : '', children: title }), subtitle ? (_jsx(Text, { className: 'mt-12', dataId: dataIdPrefix ? `${dataIdPrefix}-modal-title` : '', children: subtitle })) : null] }), closeIcon ? (_jsx(Button, { className: 'modal__close ml-16', dataId: dataIdPrefix ? `${dataIdPrefix}-modal-close-button` : '', iconProps: { Component: IconDismiss }, onClick: onClose, type: "tertiary" })) : null] })) : null, _jsx("div", { className: "modal__content scrollbar scrollbar--vertical", children: children }), withFooter && buttonProps ? (_jsxs("div", { className: "modal__footer", children: [buttonProps.cancel && (_jsx(Button, Object.assign({ type: "tertiary", className: "modal__footer__btn mr-16", onClick: onClose, dataId: dataIdPrefix ? `${dataIdPrefix}-modal-cancel-button` : '' }, (buttonProps.cancel || {})))), confirmBtnTooltipText ? (_jsx(Tooltip, { text: confirmBtnTooltipText, id: 'confirm-btn-tooltip', position: Positions.TOP_CENTER })) : null, _jsx(Button, Object.assign({ id: 'confirm-btn-tooltip', className: 'modal__footer__btn', type: "primary", onClick: onSubmit ? onSubmit : noop, dataId: dataIdPrefix ? `${dataIdPrefix}-modal-confirm-button` : '' }, buttonProps.confirm))] })) : null] }));
|
|
10
|
+
};
|
|
@@ -1,53 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
import '@babel/runtime/helpers/extends';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '../Alert/consts.js';
|
|
6
|
-
import 'classnames';
|
|
7
|
-
import '../Text/Text.js';
|
|
8
|
-
import '../../utils/helpers.js';
|
|
9
|
-
import 'dayjs';
|
|
10
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
11
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
|
-
import '../../helperComponents/Loader/Loader.js';
|
|
13
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
14
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
15
|
-
import '../../consts/index.js';
|
|
16
|
-
import '../../type/file-upload.js';
|
|
17
|
-
import '../../hooks/useScreenSize.js';
|
|
18
|
-
import 'react-hook-form';
|
|
19
|
-
import 'react-dropzone';
|
|
20
|
-
import '../SVGIcons/IconUpload.js';
|
|
21
|
-
import '../FileUpload/types.js';
|
|
22
|
-
import '../../helpers/format-date.js';
|
|
23
|
-
import '../../helpers/locale.js';
|
|
24
|
-
import '../../type/locale.js';
|
|
25
|
-
import '../../helpers/storage.js';
|
|
26
|
-
import 'react-toastify';
|
|
27
|
-
import '../../hooks/useGetIsMobile.js';
|
|
28
|
-
import 'framer-motion';
|
|
29
|
-
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
30
|
-
import '../../hooks/useOnOutsideClick.js';
|
|
31
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
32
|
-
import '../SVGIcons/IconDismiss.js';
|
|
33
|
-
import '../Tooltip/types.js';
|
|
34
|
-
import '../Tooltip/Tooltip.js';
|
|
35
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
36
|
-
import '../../hooks/useGetElemSizes.js';
|
|
37
|
-
import '../../hooks/useGetElemPositions.js';
|
|
38
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
39
|
-
import '../../hooks/useHideOnScroll.js';
|
|
40
|
-
import 'react-syntax-highlighter';
|
|
41
|
-
import '../Link/Link.js';
|
|
42
|
-
import '../Popover/PopoverDesktop.js';
|
|
43
|
-
import '../SVGIcons/IconInfo.js';
|
|
44
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
45
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
46
|
-
import '@babel/runtime/helpers/typeof';
|
|
47
|
-
import '../SVGIcons/IconDismissFilled.js';
|
|
48
|
-
import '../SVGIcons/IconDelete.js';
|
|
49
|
-
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
50
|
-
import '../Progress/Progress.js';
|
|
51
|
-
import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
52
|
-
import '../../helpers/download-file.js';
|
|
53
|
-
import '../Button/consts.js';
|
|
1
|
+
export * from './Modal';
|
|
2
|
+
export * from './ModalConfirmation';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
package/components/More/More.js
CHANGED
|
@@ -1,86 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import '../FileUpload/types.js';
|
|
21
|
-
import '../../helpers/format-date.js';
|
|
22
|
-
import '../../helpers/locale.js';
|
|
23
|
-
import '../../type/locale.js';
|
|
24
|
-
import '../../helpers/storage.js';
|
|
25
|
-
import 'react-toastify';
|
|
26
|
-
import '../../hooks/useGetIsMobile.js';
|
|
27
|
-
import 'framer-motion';
|
|
28
|
-
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
29
|
-
import '../../hooks/useOnOutsideClick.js';
|
|
30
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
31
|
-
import '../SVGIcons/IconDismiss.js';
|
|
32
|
-
import '../Tooltip/types.js';
|
|
33
|
-
import '../Tooltip/Tooltip.js';
|
|
34
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
35
|
-
import '../../hooks/useGetElemSizes.js';
|
|
36
|
-
import '../../hooks/useGetElemPositions.js';
|
|
37
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
38
|
-
import '../../hooks/useHideOnScroll.js';
|
|
39
|
-
import 'react-syntax-highlighter';
|
|
40
|
-
import '../Link/Link.js';
|
|
41
|
-
import '../Popover/PopoverDesktop.js';
|
|
42
|
-
import '../SVGIcons/IconInfo.js';
|
|
43
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
44
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
45
|
-
import '@babel/runtime/helpers/typeof';
|
|
46
|
-
import '../SVGIcons/IconDismissFilled.js';
|
|
47
|
-
import '../SVGIcons/IconDelete.js';
|
|
48
|
-
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
49
|
-
import '../Progress/Progress.js';
|
|
50
|
-
import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
51
|
-
import '../../helpers/download-file.js';
|
|
52
|
-
import '../Button/consts.js';
|
|
53
|
-
|
|
54
|
-
var More = function More(props) {
|
|
55
|
-
var _props$textProps = props.textProps,
|
|
56
|
-
textProps = _props$textProps === void 0 ? {} : _props$textProps,
|
|
57
|
-
expandedText = props.expandedText,
|
|
58
|
-
collapsedText = props.collapsedText,
|
|
59
|
-
_props$buttonText = props.buttonText,
|
|
60
|
-
buttonText = _props$buttonText === void 0 ? {
|
|
61
|
-
expand: 'Ավելին',
|
|
62
|
-
collapse: 'Փակել'
|
|
63
|
-
} : _props$buttonText;
|
|
64
|
-
var _useState = useState(false),
|
|
65
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
66
|
-
isExpanded = _useState2[0],
|
|
67
|
-
setIsExpanded = _useState2[1];
|
|
68
|
-
var expand = function expand(e) {
|
|
69
|
-
e.stopPropagation();
|
|
70
|
-
setIsExpanded(true);
|
|
71
|
-
};
|
|
72
|
-
var collapse = function collapse(e) {
|
|
73
|
-
e.stopPropagation();
|
|
74
|
-
setIsExpanded(false);
|
|
75
|
-
};
|
|
76
|
-
return /*#__PURE__*/React.createElement(Text, _extends({}, textProps, {
|
|
77
|
-
className: 'more'
|
|
78
|
-
}), "".concat(isExpanded ? expandedText : collapsedText), /*#__PURE__*/React.createElement(Button, {
|
|
79
|
-
className: 'more__btn ml-4',
|
|
80
|
-
type: "link",
|
|
81
|
-
buttonText: isExpanded ? buttonText.collapse : buttonText.expand,
|
|
82
|
-
onClick: isExpanded ? collapse : expand
|
|
83
|
-
}));
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Text } from '../Text';
|
|
4
|
+
import { Button } from '../Button';
|
|
5
|
+
export const More = (props) => {
|
|
6
|
+
const { textProps = {}, expandedText, collapsedText, buttonText = {
|
|
7
|
+
expand: 'Ավելին',
|
|
8
|
+
collapse: 'Փակել'
|
|
9
|
+
} } = props;
|
|
10
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
11
|
+
const expand = (e) => {
|
|
12
|
+
e.stopPropagation();
|
|
13
|
+
setIsExpanded(true);
|
|
14
|
+
};
|
|
15
|
+
const collapse = (e) => {
|
|
16
|
+
e.stopPropagation();
|
|
17
|
+
setIsExpanded(false);
|
|
18
|
+
};
|
|
19
|
+
return (_jsxs(Text, Object.assign({}, textProps, { className: 'more', children: [`${isExpanded ? expandedText : collapsedText}`, _jsx(Button, { className: 'more__btn ml-4', type: "link", buttonText: isExpanded ? buttonText.collapse : buttonText.expand, onClick: isExpanded ? collapse : expand })] })));
|
|
84
20
|
};
|
|
85
|
-
|
|
86
|
-
export { More };
|
package/components/More/index.js
CHANGED
|
@@ -1,53 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import '@babel/runtime/helpers/extends';
|
|
3
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
4
|
-
import 'react';
|
|
5
|
-
import '../Text/Text.js';
|
|
6
|
-
import 'classnames';
|
|
7
|
-
import '../../utils/helpers.js';
|
|
8
|
-
import 'dayjs';
|
|
9
|
-
import '../../Alert-BslI0aA0.js';
|
|
10
|
-
import '../Alert/consts.js';
|
|
11
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
12
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
13
|
-
import '../../helperComponents/Loader/Loader.js';
|
|
14
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
15
|
-
import '../../consts/index.js';
|
|
16
|
-
import '../../type/file-upload.js';
|
|
17
|
-
import '../../hooks/useScreenSize.js';
|
|
18
|
-
import 'react-hook-form';
|
|
19
|
-
import 'react-dropzone';
|
|
20
|
-
import '../SVGIcons/IconUpload.js';
|
|
21
|
-
import '../FileUpload/types.js';
|
|
22
|
-
import '../../helpers/format-date.js';
|
|
23
|
-
import '../../helpers/locale.js';
|
|
24
|
-
import '../../type/locale.js';
|
|
25
|
-
import '../../helpers/storage.js';
|
|
26
|
-
import 'react-toastify';
|
|
27
|
-
import '../../hooks/useGetIsMobile.js';
|
|
28
|
-
import 'framer-motion';
|
|
29
|
-
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
30
|
-
import '../../hooks/useOnOutsideClick.js';
|
|
31
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
32
|
-
import '../SVGIcons/IconDismiss.js';
|
|
33
|
-
import '../Tooltip/types.js';
|
|
34
|
-
import '../Tooltip/Tooltip.js';
|
|
35
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
36
|
-
import '../../hooks/useGetElemSizes.js';
|
|
37
|
-
import '../../hooks/useGetElemPositions.js';
|
|
38
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
39
|
-
import '../../hooks/useHideOnScroll.js';
|
|
40
|
-
import 'react-syntax-highlighter';
|
|
41
|
-
import '../Link/Link.js';
|
|
42
|
-
import '../Popover/PopoverDesktop.js';
|
|
43
|
-
import '../SVGIcons/IconInfo.js';
|
|
44
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
45
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
46
|
-
import '@babel/runtime/helpers/typeof';
|
|
47
|
-
import '../SVGIcons/IconDismissFilled.js';
|
|
48
|
-
import '../SVGIcons/IconDelete.js';
|
|
49
|
-
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
50
|
-
import '../Progress/Progress.js';
|
|
51
|
-
import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
52
|
-
import '../../helpers/download-file.js';
|
|
53
|
-
import '../Button/consts.js';
|
|
1
|
+
export * from './More';
|
package/components/More/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,59 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React from 'react';
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
2
|
import ReactPaginate from 'react-paginate';
|
|
4
|
-
import {
|
|
3
|
+
import { PAGE_RANGE_DISPLAYED } from './consts';
|
|
5
4
|
import classNames from 'classnames';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import '
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
_props$disableInitial = props.disableInitialCallback,
|
|
20
|
-
disableInitialCallback = _props$disableInitial === void 0 ? false : _props$disableInitial,
|
|
21
|
-
page = props.page,
|
|
22
|
-
_props$breakLabel = props.breakLabel,
|
|
23
|
-
breakLabel = _props$breakLabel === void 0 ? /*#__PURE__*/React.createElement(IconMore, {
|
|
24
|
-
size: ICON_SIZE_MAPPING[size]
|
|
25
|
-
}) : _props$breakLabel,
|
|
26
|
-
_props$labels = props.labels,
|
|
27
|
-
labels = _props$labels === void 0 ? {
|
|
28
|
-
previous: /*#__PURE__*/React.createElement(IconChevronLeft, {
|
|
29
|
-
size: ICON_SIZE_MAPPING[size]
|
|
30
|
-
}),
|
|
31
|
-
next: /*#__PURE__*/React.createElement(IconChevronRight, {
|
|
32
|
-
size: ICON_SIZE_MAPPING[size]
|
|
33
|
-
})
|
|
34
|
-
} : _props$labels;
|
|
35
|
-
var handlePageChange = function handlePageChange(_ref) {
|
|
36
|
-
var selected = _ref.selected;
|
|
37
|
-
handleChangePage(selected + 1);
|
|
38
|
-
};
|
|
39
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
40
|
-
className: "pagination-wrapper flexbox"
|
|
41
|
-
}, /*#__PURE__*/React.createElement(ReactPaginate, _extends({
|
|
42
|
-
pageCount: Math.ceil(totalCount / pageSize),
|
|
43
|
-
disableInitialCallback: disableInitialCallback,
|
|
44
|
-
pageRangeDisplayed: PAGE_RANGE_DISPLAYED,
|
|
45
|
-
marginPagesDisplayed: 1,
|
|
46
|
-
onPageChange: handlePageChange,
|
|
47
|
-
containerClassName: classNames("pagination pagination--".concat(size), classname),
|
|
48
|
-
activeClassName: 'active',
|
|
49
|
-
previousLabel: labels === null || labels === void 0 ? void 0 : labels.previous,
|
|
50
|
-
nextLabel: labels === null || labels === void 0 ? void 0 : labels.next,
|
|
51
|
-
breakClassName: "pagination__more",
|
|
52
|
-
breakLinkClassName: "pagination__more__link",
|
|
53
|
-
breakLabel: breakLabel
|
|
54
|
-
}, page ? {
|
|
55
|
-
forcePage: page - 1
|
|
56
|
-
} : {})));
|
|
5
|
+
import IconChevronRight from '../SVGIcons/IconChevronRight';
|
|
6
|
+
import IconChevronLeft from '../SVGIcons/IconChevronLeft';
|
|
7
|
+
import IconMore from '../SVGIcons/IconMore';
|
|
8
|
+
import { ICON_SIZE_MAPPING } from './consts';
|
|
9
|
+
export const Pagination = (props) => {
|
|
10
|
+
const { totalCount, handleChangePage, classname = '', size = 'large', pageSize, disableInitialCallback = false, page, breakLabel = _jsx(IconMore, { size: ICON_SIZE_MAPPING[size] }), labels = {
|
|
11
|
+
previous: _jsx(IconChevronLeft, { size: ICON_SIZE_MAPPING[size] }),
|
|
12
|
+
next: _jsx(IconChevronRight, { size: ICON_SIZE_MAPPING[size] })
|
|
13
|
+
} } = props;
|
|
14
|
+
const handlePageChange = ({ selected }) => {
|
|
15
|
+
handleChangePage(selected + 1);
|
|
16
|
+
};
|
|
17
|
+
return (_jsx("div", { className: "pagination-wrapper flexbox", children: _jsx(ReactPaginate, Object.assign({ pageCount: Math.ceil(totalCount / pageSize), disableInitialCallback: disableInitialCallback, pageRangeDisplayed: PAGE_RANGE_DISPLAYED, marginPagesDisplayed: 1, onPageChange: handlePageChange, containerClassName: classNames(`pagination pagination--${size}`, classname), activeClassName: 'active', previousLabel: labels === null || labels === void 0 ? void 0 : labels.previous, nextLabel: labels === null || labels === void 0 ? void 0 : labels.next, breakClassName: "pagination__more", breakLinkClassName: "pagination__more__link", breakLabel: breakLabel }, (page ? { forcePage: page - 1 } : {}))) }));
|
|
57
18
|
};
|
|
58
|
-
|
|
59
|
-
export { Pagination };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export const PAGE_RANGE_DISPLAYED = 3;
|
|
2
|
+
export const ICON_SIZE_MAPPING = {
|
|
3
|
+
large: 'small',
|
|
4
|
+
medium: 'xsmall',
|
|
5
|
+
small: 'xxsmall'
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
export { ICON_SIZE_MAPPING, PAGE_RANGE_DISPLAYED };
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import '@babel/runtime/helpers/extends';
|
|
3
|
-
import 'react';
|
|
4
|
-
import 'react-paginate';
|
|
5
|
-
import './consts.js';
|
|
6
|
-
import 'classnames';
|
|
7
|
-
import '../SVGIcons/IconChevronRight.js';
|
|
8
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
9
|
-
import '../SVGIcons/IconChevronLeft.js';
|
|
10
|
-
import '../SVGIcons/IconMore.js';
|
|
1
|
+
export * from './Pagination';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|