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,52 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
import '
|
|
14
|
-
import '../../
|
|
15
|
-
import '
|
|
16
|
-
import '
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect, useState } from 'react';
|
|
14
|
+
import { useIsMobile } from '../../hooks/useGetIsMobile';
|
|
15
|
+
import { PopoverMobile } from './PopoverMobile';
|
|
16
|
+
import { PopoverDesktop } from './PopoverDesktop';
|
|
17
|
+
export const Popover = (props) => {
|
|
18
|
+
const { elemRef, id, clicked } = props, rest = __rest(props, ["elemRef", "id", "clicked"]);
|
|
19
|
+
const isMobile = useIsMobile();
|
|
20
|
+
const [isClicked, setIsClicked] = useState(false);
|
|
21
|
+
const [parent, setElement] = useState(elemRef || null);
|
|
22
|
+
const showMessage = () => setIsClicked(true);
|
|
23
|
+
const hideMessage = () => setIsClicked(false);
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (parent) {
|
|
26
|
+
parent.addEventListener('click', showMessage);
|
|
27
|
+
}
|
|
28
|
+
}, [parent]);
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (id) {
|
|
31
|
+
const element = document.getElementById(id.toString());
|
|
32
|
+
setElement(element);
|
|
33
|
+
}
|
|
34
|
+
}, [id]);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (clicked === false) {
|
|
37
|
+
setIsClicked(clicked);
|
|
38
|
+
}
|
|
39
|
+
}, [clicked]);
|
|
40
|
+
return isMobile ? (_jsx(PopoverMobile, Object.assign({}, rest, { clicked: isClicked, hideMessage: hideMessage }))) : (_jsx(PopoverDesktop, Object.assign({}, rest, { parent: parent, clicked: isClicked, showMessage: showMessage, hideMessage: hideMessage })));
|
|
41
|
+
};
|
|
@@ -1,71 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { useGetTooltipStyles } from '../../hooks
|
|
4
|
-
import { useHideOnScroll } from '../../hooks/useHideOnScroll.js';
|
|
5
|
-
import 'dayjs';
|
|
6
|
-
import { useOnOutsideClick } from '../../hooks/useOnOutsideClick.js';
|
|
7
|
-
import '../../hooks/useScreenSize.js';
|
|
8
|
-
import 'react-hook-form';
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId, useState } from 'react';
|
|
3
|
+
import { useGetTooltipStyles, useHideOnScroll, useOnOutsideClick } from '../../hooks';
|
|
9
4
|
import classNames from 'classnames';
|
|
10
|
-
import { Link } from '../Link
|
|
11
|
-
import { Text } from '../Text
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
text = props.text,
|
|
24
|
-
linkAddons = props.linkAddons,
|
|
25
|
-
_props$className = props.className,
|
|
26
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
27
|
-
_props$position = props.position,
|
|
28
|
-
position = _props$position === void 0 ? 'top-left' : _props$position,
|
|
29
|
-
children = props.children,
|
|
30
|
-
hideMessage = props.hideMessage,
|
|
31
|
-
parent = props.parent,
|
|
32
|
-
_props$clicked = props.clicked,
|
|
33
|
-
clicked = _props$clicked === void 0 ? false : _props$clicked;
|
|
34
|
-
var _useState = useState(null),
|
|
35
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
36
|
-
popoverRef = _useState2[0],
|
|
37
|
-
setPopoverRef = _useState2[1];
|
|
38
|
-
var _useGetTooltipStyles = useGetTooltipStyles({
|
|
39
|
-
elemRef: parent,
|
|
40
|
-
tooltipRef: popoverRef,
|
|
41
|
-
initialPosition: position
|
|
42
|
-
}),
|
|
43
|
-
popoverPosition = _useGetTooltipStyles.tooltipPosition,
|
|
44
|
-
popoverStyles = _useGetTooltipStyles.tooltipStyles;
|
|
45
|
-
useHideOnScroll(hideMessage);
|
|
46
|
-
useOnOutsideClick(popoverRef, hideMessage, clicked, useId());
|
|
47
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, clicked && /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
"data-id": dataId ? "".concat(dataId, "-popover-content") : '',
|
|
49
|
-
className: classNames("popover popover--".concat(popoverPosition), className),
|
|
50
|
-
ref: setPopoverRef,
|
|
51
|
-
style: popoverStyles
|
|
52
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
53
|
-
className: "popover__inner scrollbar scrollbar--vertical pr-8"
|
|
54
|
-
}, linkAddons ? /*#__PURE__*/React.createElement(Link, {
|
|
55
|
-
dataId: linkAddons.dataId,
|
|
56
|
-
url: linkAddons.url,
|
|
57
|
-
beforeLink: linkAddons.beforeLink,
|
|
58
|
-
afterLink: linkAddons.afterLink,
|
|
59
|
-
target: linkAddons.target,
|
|
60
|
-
className: 'popover__link'
|
|
61
|
-
}, text) : /*#__PURE__*/React.createElement(Text, {
|
|
62
|
-
dataId: dataId ? "".concat(dataId, "-popover-text") : '',
|
|
63
|
-
type: "primary",
|
|
64
|
-
weight: "regular",
|
|
65
|
-
lineHeight: "medium",
|
|
66
|
-
size: "small",
|
|
67
|
-
as: "div"
|
|
68
|
-
}, text))), children);
|
|
5
|
+
import { Link } from '../Link';
|
|
6
|
+
import { Text } from '../Text';
|
|
7
|
+
export const PopoverDesktop = (props) => {
|
|
8
|
+
const { dataId, text, linkAddons, className = '', position = 'top-left', children, hideMessage, parent, clicked = false } = props;
|
|
9
|
+
const [popoverRef, setPopoverRef] = useState(null);
|
|
10
|
+
const { tooltipPosition: popoverPosition, tooltipStyles: popoverStyles } = useGetTooltipStyles({
|
|
11
|
+
elemRef: parent,
|
|
12
|
+
tooltipRef: popoverRef,
|
|
13
|
+
initialPosition: position
|
|
14
|
+
});
|
|
15
|
+
useHideOnScroll(hideMessage);
|
|
16
|
+
useOnOutsideClick(popoverRef, hideMessage, clicked, useId());
|
|
17
|
+
return (_jsxs(_Fragment, { children: [clicked && (_jsx("div", { "data-id": dataId ? `${dataId}-popover-content` : '', className: classNames(`popover popover--${popoverPosition}`, className), ref: setPopoverRef, style: popoverStyles, children: _jsx("div", { className: "popover__inner scrollbar scrollbar--vertical pr-8", children: linkAddons ? (_jsx(Link, { dataId: linkAddons.dataId, url: linkAddons.url, beforeLink: linkAddons.beforeLink, afterLink: linkAddons.afterLink, target: linkAddons.target, className: 'popover__link', children: text })) : (_jsx(Text, { dataId: dataId ? `${dataId}-popover-text` : '', type: "primary", weight: "regular", lineHeight: "medium", size: "small", as: "div", children: text })) }) })), children] }));
|
|
69
18
|
};
|
|
70
|
-
|
|
71
|
-
export { PopoverDesktop };
|
|
@@ -1,52 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import '
|
|
4
|
-
import '
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import '../../hooks/useScreenSize.js';
|
|
10
|
-
import 'react-hook-form';
|
|
11
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
12
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
13
|
-
import '../Text/Text.js';
|
|
14
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
15
|
-
import 'react-syntax-highlighter';
|
|
16
|
-
import '../Link/Link.js';
|
|
17
|
-
import '../Alert/consts.js';
|
|
18
|
-
import '../../helperComponents/Loader/Loader.js';
|
|
19
|
-
import 'react-dropzone';
|
|
20
|
-
import '../SVGIcons/IconUpload.js';
|
|
21
|
-
import '../../type/file-upload.js';
|
|
22
|
-
import '../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 '../../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 '../../utils/helpers.js';
|
|
41
|
-
import './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';
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Modal } from '../Modal';
|
|
3
|
+
import { Link } from '../Link';
|
|
4
|
+
import { Text } from '../Text';
|
|
5
|
+
export const PopoverMobile = (props) => {
|
|
6
|
+
const { dataId, text, linkAddons, mobileTitle, hideMessage, clicked = false, children } = props;
|
|
7
|
+
return (_jsxs(_Fragment, { children: [_jsx(Modal, { closeIcon: true, title: mobileTitle, onClose: hideMessage, isOpen: clicked, children: clicked && (_jsx(_Fragment, { children: linkAddons ? (_jsx(Link, { dataId: linkAddons.dataId, url: linkAddons.url, beforeLink: linkAddons.beforeLink, afterLink: linkAddons.afterLink, target: linkAddons.target, className: 'popover__link', children: text })) : (_jsx(Text, { dataId: dataId ? `${dataId}-popover-text` : '', type: "primary", weight: "regular", lineHeight: "medium", size: "small", children: text })) })) }), children] }));
|
|
8
|
+
};
|
|
@@ -1,52 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import '@babel/runtime/helpers/extends';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../Alert/consts.js';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '../Text/Text.js';
|
|
7
|
-
import '../../utils/helpers.js';
|
|
8
|
-
import 'dayjs';
|
|
9
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
10
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
|
-
import '../../helperComponents/Loader/Loader.js';
|
|
12
|
-
import '@babel/runtime/helpers/slicedToArray';
|
|
13
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
14
|
-
import '../../consts/index.js';
|
|
15
|
-
import '../../type/file-upload.js';
|
|
16
|
-
import '../../hooks/useScreenSize.js';
|
|
17
|
-
import 'react-hook-form';
|
|
18
|
-
import 'react-dropzone';
|
|
19
|
-
import '../SVGIcons/IconUpload.js';
|
|
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 './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';
|
|
1
|
+
export * from './Popover';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,57 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
loop = _props$loop === void 0 ? false : _props$loop;
|
|
23
|
-
var _dimension = dimension ? dimension : CIRCLE_SIZES[size];
|
|
24
|
-
var r = _dimension - 5;
|
|
25
|
-
var _percent = stepCount && currentStep ? currentStep / stepCount * 100 : percent;
|
|
26
|
-
var strokeDasharray = "".concat(2 * r * 3.14, "px");
|
|
27
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
-
className: "progress-bar progress-bar--".concat(type, " progress-bar--").concat(size, " ").concat(className).concat(loop ? ' progress-bar--loop' : ''),
|
|
29
|
-
style: type == 'circle' ? {
|
|
30
|
-
width: 2 * _dimension,
|
|
31
|
-
height: 2 * _dimension
|
|
32
|
-
} : {}
|
|
33
|
-
}, type == 'circle' ? /*#__PURE__*/React.createElement("svg", null, /*#__PURE__*/React.createElement("circle", {
|
|
34
|
-
cx: _dimension,
|
|
35
|
-
cy: _dimension,
|
|
36
|
-
r: r
|
|
37
|
-
}), /*#__PURE__*/React.createElement("circle", {
|
|
38
|
-
cx: _dimension,
|
|
39
|
-
cy: _dimension,
|
|
40
|
-
r: r,
|
|
41
|
-
style: {
|
|
42
|
-
strokeDasharray: strokeDasharray,
|
|
43
|
-
strokeDashoffset: "calc(".concat(strokeDasharray, " - (").concat(strokeDasharray, " * ").concat(_percent, ") / 100)")
|
|
44
|
-
}
|
|
45
|
-
})) : /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: "progress-bar__inner"
|
|
47
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
className: "progress-bar__filled",
|
|
49
|
-
style: {
|
|
50
|
-
width: "".concat(_percent, "%")
|
|
51
|
-
}
|
|
52
|
-
})), !noText ? /*#__PURE__*/React.createElement("span", {
|
|
53
|
-
className: "progress-bar__percent"
|
|
54
|
-
}, stepCount ? "".concat(currentStep, "/").concat(stepCount) : "".concat(percent, "%")) : null);
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
var CIRCLE_SIZES;
|
|
3
|
+
(function (CIRCLE_SIZES) {
|
|
4
|
+
CIRCLE_SIZES[CIRCLE_SIZES["small"] = 29] = "small";
|
|
5
|
+
CIRCLE_SIZES[CIRCLE_SIZES["large"] = 45] = "large";
|
|
6
|
+
})(CIRCLE_SIZES || (CIRCLE_SIZES = {}));
|
|
7
|
+
export const Progress = (props) => {
|
|
8
|
+
const { percent, stepCount, currentStep, type = 'linear', size = 'large', noText = false, dimension, className = '', loop = false } = props;
|
|
9
|
+
const _dimension = dimension ? dimension : CIRCLE_SIZES[size];
|
|
10
|
+
const r = _dimension - 5;
|
|
11
|
+
const _percent = stepCount && currentStep ? (currentStep / stepCount) * 100 : percent;
|
|
12
|
+
const strokeDasharray = `${2 * r * 3.14}px`;
|
|
13
|
+
return (_jsxs("div", { className: `progress-bar progress-bar--${type} progress-bar--${size} ${className}${loop ? ' progress-bar--loop' : ''}`, style: type == 'circle'
|
|
14
|
+
? {
|
|
15
|
+
width: 2 * _dimension,
|
|
16
|
+
height: 2 * _dimension
|
|
17
|
+
}
|
|
18
|
+
: {}, children: [type == 'circle' ? (_jsxs("svg", { children: [_jsx("circle", { cx: _dimension, cy: _dimension, r: r }), _jsx("circle", { cx: _dimension, cy: _dimension, r: r, style: {
|
|
19
|
+
strokeDasharray,
|
|
20
|
+
strokeDashoffset: `calc(${strokeDasharray} - (${strokeDasharray} * ${_percent}) / 100)`
|
|
21
|
+
} })] })) : (_jsx("div", { className: "progress-bar__inner", children: _jsx("div", { className: "progress-bar__filled", style: { width: `${_percent}%` } }) })), !noText ? (_jsx("span", { className: "progress-bar__percent", children: stepCount ? `${currentStep}/${stepCount}` : `${percent}%` })) : null] }));
|
|
55
22
|
};
|
|
56
|
-
|
|
57
|
-
export { Progress };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import 'react';
|
|
1
|
+
export * from './Progress';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,39 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { Step } from './Step
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
11
|
-
import '../SVGIcons/IconCheckmarkCircle.js';
|
|
12
|
-
|
|
13
|
-
var ProgressStep = function ProgressStep(props) {
|
|
14
|
-
var steps = props.steps,
|
|
15
|
-
stepType = props.stepType,
|
|
16
|
-
activeStep = props.activeStep,
|
|
17
|
-
setActiveStep = props.setActiveStep,
|
|
18
|
-
_props$stepSize = props.stepSize,
|
|
19
|
-
stepSize = _props$stepSize === void 0 ? 'large' : _props$stepSize,
|
|
20
|
-
_props$stepDirection = props.stepDirection,
|
|
21
|
-
stepDirection = _props$stepDirection === void 0 ? 'horizontal' : _props$stepDirection;
|
|
22
|
-
var singleStepWidth = "".concat(100 / steps.length, "%");
|
|
23
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
24
|
-
className: classNames('progress-stepper', "progress-stepper--".concat(stepDirection))
|
|
25
|
-
}, steps.map(function (step, index) {
|
|
26
|
-
return /*#__PURE__*/React.createElement(Step, {
|
|
27
|
-
width: stepDirection == 'horizontal' ? singleStepWidth : '100%',
|
|
28
|
-
step: step,
|
|
29
|
-
index: index + 1,
|
|
30
|
-
key: step.value,
|
|
31
|
-
activeStep: activeStep,
|
|
32
|
-
onStepClick: setActiveStep,
|
|
33
|
-
stepType: stepType,
|
|
34
|
-
stepSize: stepSize
|
|
35
|
-
});
|
|
36
|
-
}));
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import classnames from 'classnames';
|
|
3
|
+
import { Step } from './Step';
|
|
4
|
+
export const ProgressStep = (props) => {
|
|
5
|
+
const { steps, stepType, activeStep, setActiveStep, stepSize = 'large', stepDirection = 'horizontal' } = props;
|
|
6
|
+
const singleStepWidth = `${100 / steps.length}%`;
|
|
7
|
+
return (_jsx("div", { className: classnames('progress-stepper', `progress-stepper--${stepDirection}`), children: steps.map((step, index) => {
|
|
8
|
+
return (_jsx(Step, { width: stepDirection == 'horizontal' ? singleStepWidth : '100%', step: step, index: index + 1, activeStep: activeStep, onStepClick: setActiveStep, stepType: stepType, stepSize: stepSize }, step.value));
|
|
9
|
+
}) }));
|
|
37
10
|
};
|
|
38
|
-
|
|
39
|
-
export { ProgressStep };
|
|
@@ -1,101 +1,54 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import classNames from 'classnames';
|
|
2
|
-
import
|
|
3
|
-
import { Text } from '../Text
|
|
4
|
-
import { StepTypes } from './types
|
|
5
|
-
import { PROGRESS_STATUSES } from './consts
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
activeStep = props.activeStep,
|
|
19
|
-
stepType = props.stepType,
|
|
20
|
-
onStepClick = props.onStepClick;
|
|
21
|
-
var label = step.label,
|
|
22
|
-
subText = step.subText,
|
|
23
|
-
value = step.value,
|
|
24
|
-
status = step.status;
|
|
25
|
-
var isActive = activeStep === value;
|
|
26
|
-
var isCompleted = status === PROGRESS_STATUSES.completed;
|
|
27
|
-
var isRejected = status === PROGRESS_STATUSES.rejected;
|
|
28
|
-
var isReview = status === PROGRESS_STATUSES.reviewed;
|
|
29
|
-
var textType = useMemo(function () {
|
|
30
|
-
if (isActive && !isRejected) {
|
|
31
|
-
return 'brand';
|
|
32
|
-
}
|
|
33
|
-
if (isCompleted || isRejected) {
|
|
34
|
-
return 'inverse';
|
|
35
|
-
}
|
|
36
|
-
return 'tertiary';
|
|
37
|
-
}, [isCompleted, isRejected, isActive]);
|
|
38
|
-
var onClick = function onClick() {
|
|
39
|
-
if (onStepClick) {
|
|
40
|
-
onStepClick(value);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
var stepItemContent = useMemo(function () {
|
|
44
|
-
if (stepType === StepTypes.number) {
|
|
45
|
-
return /*#__PURE__*/React.createElement(Text, {
|
|
46
|
-
type: textType,
|
|
47
|
-
size: stepSize == 'large' ? 'medium' : 'small',
|
|
48
|
-
weight: stepSize == 'large' ? 'semibold' : 'regular'
|
|
49
|
-
}, "".concat(index));
|
|
50
|
-
}
|
|
51
|
-
if (stepType === StepTypes.dot) {
|
|
52
|
-
if (isActive) {
|
|
53
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
54
|
-
className: classNames('step__circle__dot')
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
if (isCompleted) {
|
|
58
|
-
var iconSize = stepSize == 'large' ? 'small' : 'xsmall';
|
|
59
|
-
if (isRejected) {
|
|
60
|
-
return /*#__PURE__*/React.createElement(IconDismissCircle, {
|
|
61
|
-
size: iconSize,
|
|
62
|
-
type: "inverse"
|
|
63
|
-
});
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import { Text } from '../Text';
|
|
5
|
+
import { StepTypes } from './types';
|
|
6
|
+
import { PROGRESS_STATUSES } from './consts';
|
|
7
|
+
import IconDismissCircle from '../SVGIcons/IconDismissCircle';
|
|
8
|
+
import IconCheckmarkCircle from '../SVGIcons/IconCheckmarkCircle';
|
|
9
|
+
export const Step = (props) => {
|
|
10
|
+
const { width, step, stepSize = 'large', index, activeStep, stepType, onStepClick } = props;
|
|
11
|
+
const { label, subText, value, status } = step;
|
|
12
|
+
const isActive = activeStep === value;
|
|
13
|
+
const isCompleted = status === PROGRESS_STATUSES.completed;
|
|
14
|
+
const isRejected = status === PROGRESS_STATUSES.rejected;
|
|
15
|
+
const isReview = status === PROGRESS_STATUSES.reviewed;
|
|
16
|
+
const textType = useMemo(() => {
|
|
17
|
+
if (isActive && !isRejected) {
|
|
18
|
+
return 'brand';
|
|
64
19
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
20
|
+
if (isCompleted || isRejected) {
|
|
21
|
+
return 'inverse';
|
|
22
|
+
}
|
|
23
|
+
return 'tertiary';
|
|
24
|
+
}, [isCompleted, isRejected, isActive]);
|
|
25
|
+
const onClick = () => {
|
|
26
|
+
if (onStepClick) {
|
|
27
|
+
onStepClick(value);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const stepItemContent = useMemo(() => {
|
|
31
|
+
if (stepType === StepTypes.number) {
|
|
32
|
+
return (_jsx(Text, { type: textType, size: stepSize == 'large' ? 'medium' : 'small', weight: stepSize == 'large' ? 'semibold' : 'regular', children: `${index}` }));
|
|
33
|
+
}
|
|
34
|
+
if (stepType === StepTypes.dot) {
|
|
35
|
+
if (isActive) {
|
|
36
|
+
return _jsx("span", { className: classNames('step__circle__dot') });
|
|
37
|
+
}
|
|
38
|
+
if (isCompleted) {
|
|
39
|
+
const iconSize = stepSize == 'large' ? 'small' : 'xsmall';
|
|
40
|
+
if (isRejected) {
|
|
41
|
+
return _jsx(IconDismissCircle, { size: iconSize, type: "inverse" });
|
|
42
|
+
}
|
|
43
|
+
return _jsx(IconCheckmarkCircle, { size: iconSize, type: "inverse" });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return null;
|
|
47
|
+
}, [index, stepType, stepSize, isCompleted, isActive, isRejected, textType]);
|
|
48
|
+
return (_jsxs("div", { className: classNames('step', `step--${stepSize}`, {
|
|
49
|
+
active: isActive,
|
|
50
|
+
completed: isCompleted && !isActive,
|
|
51
|
+
rejected: isRejected,
|
|
52
|
+
review: isReview
|
|
53
|
+
}), style: { width }, onClick: onClick, children: [_jsx("div", { className: "step__top", children: _jsx("div", { className: "step__circle", children: stepItemContent }) }), _jsxs("div", { className: "step__label", children: [_jsx(Text, { size: stepSize == 'large' ? 'standard' : 'small', weight: "semibold", lineHeight: 'large', className: "text-truncate", children: label }), _jsx(Text, { size: stepSize == 'large' ? 'small' : 'xsmall', className: "text-truncate", children: subText })] })] }));
|
|
99
54
|
};
|
|
100
|
-
|
|
101
|
-
export { Step };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
var PROGRESS_STATUSES
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}({});
|
|
8
|
-
|
|
9
|
-
export { PROGRESS_STATUSES };
|
|
1
|
+
export var PROGRESS_STATUSES;
|
|
2
|
+
(function (PROGRESS_STATUSES) {
|
|
3
|
+
PROGRESS_STATUSES["rejected"] = "rejected";
|
|
4
|
+
PROGRESS_STATUSES["reviewed"] = "reviewed";
|
|
5
|
+
PROGRESS_STATUSES["completed"] = "completed";
|
|
6
|
+
PROGRESS_STATUSES["initial"] = "initial";
|
|
7
|
+
})(PROGRESS_STATUSES || (PROGRESS_STATUSES = {}));
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import 'react';
|
|
3
|
-
import 'classnames';
|
|
4
|
-
import './Step.js';
|
|
5
|
-
import '../Text/Text.js';
|
|
6
|
-
import '../../utils/helpers.js';
|
|
7
|
-
import 'dayjs';
|
|
8
|
-
import './types.js';
|
|
9
|
-
import './consts.js';
|
|
10
|
-
import '../SVGIcons/IconDismissCircle.js';
|
|
11
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
12
|
-
import '../SVGIcons/IconCheckmarkCircle.js';
|
|
1
|
+
export * from './ProgressStep';
|