hrm_ui_lib 1.3.7-alpha.3 → 1.3.7-alpha.4
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/components/Alert/Alert.js +22 -89
- package/components/Alert/consts.js +14 -16
- package/components/Alert/index.js +1 -38
- package/components/Alert/types.d.ts +2 -2
- package/components/Alert/types.js +1 -1
- package/components/Avatar/Avatar.js +35 -105
- package/components/Avatar/AvatarGroup.js +33 -106
- package/components/Avatar/index.js +2 -50
- package/components/Avatar/types.js +1 -1
- package/components/Badge/Badge.js +18 -24
- package/components/Badge/index.js +1 -6
- package/components/Badge/types.js +1 -1
- package/components/Breadcrumb/Breadcrumb.js +18 -24
- package/components/Breadcrumb/index.js +1 -2
- package/components/Breadcrumb/types.d.ts +1 -1
- package/components/Breadcrumb/types.js +1 -1
- package/components/Button/Button.js +42 -35
- package/components/Button/consts.js +14 -16
- package/components/Button/index.js +1 -35
- package/components/Button/types.js +1 -1
- package/components/ButtonIcon/ButtonIcon.js +29 -35
- package/components/ButtonIcon/index.js +1 -35
- package/components/ButtonIcon/types.js +1 -1
- package/components/CardBody/CardBody.d.ts +2 -2
- package/components/CardBody/CardBody.js +20 -66
- package/components/CardBody/index.js +1 -37
- package/components/CardBody/types.js +1 -1
- package/components/CardSelect/CardSelect.js +35 -125
- package/components/CardSelect/CardSelectGroup.d.ts +2 -2
- package/components/CardSelect/CardSelectGroup.js +21 -98
- package/components/CardSelect/components/CardAdditionalInfo.js +21 -35
- package/components/CardSelect/components/CardChips.js +18 -28
- package/components/CardSelect/components/CardDescription.js +17 -16
- package/components/CardSelect/components/CardInput.js +17 -52
- package/components/CardSelect/components/index.js +4 -50
- package/components/CardSelect/index.js +2 -55
- package/components/CardSelect/types.js +1 -1
- package/components/Cards/CardItem.js +19 -41
- package/components/Cards/index.js +1 -8
- package/components/Cards/types.js +1 -1
- package/components/Checkbox/Checkbox.js +58 -35
- package/components/Checkbox/index.js +1 -35
- package/components/Checkbox/types.d.ts +3 -3
- package/components/Checkbox/types.js +1 -1
- package/components/Chips/Chips.js +30 -55
- package/components/Chips/consts.js +12 -14
- package/components/Chips/index.js +1 -12
- package/components/Chips/types.js +5 -7
- package/components/Collapse/CollapseGroup/CollapseGroup.js +46 -77
- package/components/Collapse/CollapseItem/CollapseItem.d.ts +2 -2
- package/components/Collapse/CollapseItem/CollapseItem.js +25 -88
- package/components/Collapse/index.js +2 -17
- package/components/Collapse/types.js +1 -1
- package/components/Container/Container.js +16 -10
- package/components/Container/index.js +1 -2
- package/components/Container/types.js +1 -1
- package/components/Copy/Copy.js +28 -77
- package/components/Copy/index.js +1 -37
- package/components/Copy/types.js +1 -1
- package/components/Counter/Counter.js +68 -122
- package/components/Counter/index.js +1 -44
- package/components/Counter/types.js +1 -1
- package/components/DatePicker/CustomHeader/CustomHeader.js +27 -154
- package/components/DatePicker/RangeDatePicker/RangeDatePicker.js +19 -91
- package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +89 -162
- package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +92 -215
- package/components/DatePicker/RangeDatePicker/index.js +1 -85
- package/components/DatePicker/SimpleDatePicker/SimpleDatePicker.js +19 -90
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +61 -171
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +63 -178
- package/components/DatePicker/SimpleDatePicker/index.js +1 -84
- package/components/DatePicker/TimePicker/MobileModalContent.js +67 -137
- package/components/DatePicker/TimePicker/TimePicker.js +19 -58
- package/components/DatePicker/TimePicker/TimePickerDesktop.d.ts +2 -2
- package/components/DatePicker/TimePicker/TimePickerDesktop.js +59 -120
- package/components/DatePicker/TimePicker/TimePickerMobile.js +31 -116
- package/components/DatePicker/TimePicker/helpers.js +6 -8
- package/components/DatePicker/TimePicker/index.js +1 -52
- package/components/DatePicker/hooks.js +68 -1954
- package/components/DatePicker/index.js +3 -95
- package/components/DatePicker/types.js +5 -7
- package/components/Divider/Divider.d.ts +2 -2
- package/components/Divider/Divider.js +9 -16
- package/components/Divider/index.js +1 -3
- package/components/Divider/types.js +1 -1
- package/components/Empty/Empty.d.ts +2 -2
- package/components/Empty/Empty.js +23 -68
- package/components/Empty/index.js +1 -37
- package/components/Empty/types.js +1 -1
- package/components/FileUpload/FileUpload.d.ts +2 -2
- package/components/FileUpload/FileUpload.js +90 -179
- package/components/FileUpload/UploadItems.d.ts +2 -2
- package/components/FileUpload/UploadItems.js +36 -86
- package/components/FileUpload/index.js +2 -47
- package/components/FileUpload/types.d.ts +3 -3
- package/components/FileUpload/types.js +5 -7
- package/components/FormContainer/FormContainer.d.ts +2 -2
- package/components/FormContainer/FormContainer.js +54 -117
- package/components/FormContainer/index.js +1 -38
- package/components/FormContainer/types.js +1 -1
- package/components/FormField/FormField.js +35 -98
- package/components/FormField/index.js +1 -39
- package/components/FormField/types.d.ts +1 -1
- package/components/FormField/types.js +1 -1
- package/components/Heading/Heading.js +18 -29
- package/components/Heading/index.js +1 -5
- package/components/Heading/types.js +1 -1
- package/components/Image/Image.d.ts +2 -2
- package/components/Image/Image.js +13 -33
- package/components/Image/index.js +1 -2
- package/components/Image/types.js +1 -1
- package/components/Input/Input.js +83 -216
- package/components/Input/index.js +1 -41
- package/components/Input/types.js +1 -1
- package/components/ItemSelect/ItemSelect.js +33 -90
- package/components/ItemSelect/ItemSelectGroup.d.ts +2 -2
- package/components/ItemSelect/ItemSelectGroup.js +23 -76
- package/components/ItemSelect/index.js +2 -41
- package/components/ItemSelect/types.js +1 -1
- package/components/Link/Link.js +27 -42
- package/components/Link/index.js +1 -3
- package/components/Link/types.d.ts +3 -3
- package/components/Link/types.js +1 -1
- package/components/Menu/Menu.js +63 -150
- package/components/Menu/NestedMenu.js +65 -164
- package/components/Menu/index.js +2 -58
- package/components/Menu/types.js +1 -1
- package/components/Modal/Modal.js +69 -35
- package/components/Modal/ModalConfirmation.js +47 -126
- package/components/Modal/ModalContent.js +23 -35
- package/components/Modal/index.js +2 -36
- package/components/Modal/types.js +1 -1
- package/components/More/More.d.ts +2 -2
- package/components/More/More.js +31 -69
- package/components/More/index.js +1 -36
- package/components/More/types.js +1 -1
- package/components/Pagination/Pagination.d.ts +2 -2
- package/components/Pagination/Pagination.js +30 -60
- package/components/Pagination/consts.js +6 -8
- package/components/Pagination/index.js +1 -11
- package/components/Pagination/types.js +1 -1
- package/components/Popover/Popover.js +52 -35
- package/components/Popover/PopoverDesktop.js +29 -68
- package/components/Popover/PopoverMobile.js +19 -35
- package/components/Popover/index.js +1 -35
- package/components/Popover/types.js +1 -1
- package/components/Progress/Progress.d.ts +2 -2
- package/components/Progress/Progress.js +33 -57
- package/components/Progress/index.js +1 -2
- package/components/Progress/types.js +1 -1
- package/components/ProgressStep/ProgressStep.js +21 -40
- package/components/ProgressStep/Step.js +65 -102
- package/components/ProgressStep/consts.js +7 -9
- package/components/ProgressStep/index.js +1 -13
- package/components/ProgressStep/types.js +5 -7
- package/components/Radio/Radio.js +33 -59
- package/components/Radio/RadioGroup.js +35 -97
- package/components/Radio/index.js +2 -38
- package/components/Radio/types.js +1 -1
- package/components/SVGIcons/IconAdd.js +23 -30
- package/components/SVGIcons/IconAddCircle.js +23 -33
- package/components/SVGIcons/IconAddCircleFilled.js +23 -33
- package/components/SVGIcons/IconAddFilled.js +23 -30
- package/components/SVGIcons/IconAlert.js +23 -33
- package/components/SVGIcons/IconAlertBadge.js +23 -33
- package/components/SVGIcons/IconAlertBadgeFilled.js +23 -33
- package/components/SVGIcons/IconAlertFilled.js +23 -33
- package/components/SVGIcons/IconAm.js +22 -59
- package/components/SVGIcons/IconAmd.js +23 -30
- package/components/SVGIcons/IconAmdFilled.js +23 -30
- package/components/SVGIcons/IconApple.js +23 -33
- package/components/SVGIcons/IconArrowDown.js +23 -33
- package/components/SVGIcons/IconArrowDownFilled.js +23 -33
- package/components/SVGIcons/IconArrowDownLeft.js +23 -33
- package/components/SVGIcons/IconArrowDownLeftFilled.js +23 -33
- package/components/SVGIcons/IconArrowDownload.js +23 -33
- package/components/SVGIcons/IconArrowDownloadFilled.js +23 -33
- package/components/SVGIcons/IconArrowEnter.js +23 -30
- package/components/SVGIcons/IconArrowEnterFilled.js +23 -30
- package/components/SVGIcons/IconArrowExit.js +23 -30
- package/components/SVGIcons/IconArrowExitFilled.js +23 -30
- package/components/SVGIcons/IconArrowExportLeftToRight.js +23 -33
- package/components/SVGIcons/IconArrowExportLeftToRightFilled.js +23 -33
- package/components/SVGIcons/IconArrowExportRightToLeft.js +23 -33
- package/components/SVGIcons/IconArrowExportRightToLeftFilled.js +23 -33
- package/components/SVGIcons/IconArrowExportUp.js +23 -33
- package/components/SVGIcons/IconArrowExportUpFilled.js +23 -33
- package/components/SVGIcons/IconArrowImport.js +23 -33
- package/components/SVGIcons/IconArrowImportFilled.js +23 -33
- package/components/SVGIcons/IconArrowLeft.js +23 -33
- package/components/SVGIcons/IconArrowLeftFilled.js +23 -33
- package/components/SVGIcons/IconArrowRepeatAll.js +23 -33
- package/components/SVGIcons/IconArrowRepeatAllFilled.js +23 -33
- package/components/SVGIcons/IconArrowReset.js +23 -33
- package/components/SVGIcons/IconArrowResetFilled.js +23 -33
- package/components/SVGIcons/IconArrowRight.js +23 -33
- package/components/SVGIcons/IconArrowRightFilled.js +23 -33
- package/components/SVGIcons/IconArrowSort.js +23 -30
- package/components/SVGIcons/IconArrowSortFilled.js +23 -30
- package/components/SVGIcons/IconArrowSync.js +23 -30
- package/components/SVGIcons/IconArrowSyncFilled.js +23 -30
- package/components/SVGIcons/IconArrowUp.js +23 -33
- package/components/SVGIcons/IconArrowUpFilled.js +23 -33
- package/components/SVGIcons/IconArrowUpLeft.js +23 -33
- package/components/SVGIcons/IconArrowUpLeftFilled.js +23 -33
- package/components/SVGIcons/IconArrowUpRight.js +23 -33
- package/components/SVGIcons/IconArrowUpRightFilled.js +23 -33
- package/components/SVGIcons/IconAttach.js +23 -33
- package/components/SVGIcons/IconAttachFilled.js +23 -33
- package/components/SVGIcons/IconBeach.js +23 -30
- package/components/SVGIcons/IconBeachFilled.js +23 -30
- package/components/SVGIcons/IconBook.js +23 -33
- package/components/SVGIcons/IconBookFilled.js +23 -33
- package/components/SVGIcons/IconBookmark.js +23 -33
- package/components/SVGIcons/IconBookmarkFilled.js +23 -33
- package/components/SVGIcons/IconBriefcase.js +23 -33
- package/components/SVGIcons/IconBriefcaseFilled.js +23 -33
- package/components/SVGIcons/IconBuilding.js +23 -56
- package/components/SVGIcons/IconBuildingBank.js +23 -30
- package/components/SVGIcons/IconBuildingBankFilled.js +23 -30
- package/components/SVGIcons/IconBuildingFilled.js +23 -33
- package/components/SVGIcons/IconBulletListAdd.js +23 -33
- package/components/SVGIcons/IconBulletListAddFilled.js +23 -33
- package/components/SVGIcons/IconCalculator.js +23 -33
- package/components/SVGIcons/IconCalculatorFilled.js +23 -33
- package/components/SVGIcons/IconCalendarClock.js +23 -30
- package/components/SVGIcons/IconCalendarClockFilled.js +23 -30
- package/components/SVGIcons/IconCalendarDay.js +23 -33
- package/components/SVGIcons/IconCalendarDayFilled.js +23 -33
- package/components/SVGIcons/IconCalendarLeft.js +23 -30
- package/components/SVGIcons/IconCalendarLeftFilled.js +23 -30
- package/components/SVGIcons/IconCalendarRight.js +23 -30
- package/components/SVGIcons/IconCalendarRightFilled.js +23 -30
- package/components/SVGIcons/IconCall.js +23 -33
- package/components/SVGIcons/IconCallFilled.js +23 -33
- package/components/SVGIcons/IconCard.js +23 -30
- package/components/SVGIcons/IconCardFilled.js +23 -30
- package/components/SVGIcons/IconCaretDown.js +23 -30
- package/components/SVGIcons/IconCaretDownFilled.js +23 -30
- package/components/SVGIcons/IconCaretDownRight.js +23 -30
- package/components/SVGIcons/IconCaretDownRightFilled.js +23 -30
- package/components/SVGIcons/IconCaretLeft.js +23 -30
- package/components/SVGIcons/IconCaretLeftFilled.js +23 -30
- package/components/SVGIcons/IconCaretRight.js +23 -30
- package/components/SVGIcons/IconCaretRightFilled.js +23 -30
- package/components/SVGIcons/IconCaretUp.js +23 -30
- package/components/SVGIcons/IconCaretUpFilled.js +23 -30
- package/components/SVGIcons/IconChat.js +23 -30
- package/components/SVGIcons/IconChatFilled.js +23 -30
- package/components/SVGIcons/IconChatMultiple.js +23 -30
- package/components/SVGIcons/IconChatMultipleFilled.js +23 -30
- package/components/SVGIcons/IconCheckboxArrowRight.js +23 -33
- package/components/SVGIcons/IconCheckboxArrowRightFilled.js +23 -33
- package/components/SVGIcons/IconCheckmark.js +23 -30
- package/components/SVGIcons/IconCheckmarkCircle.js +23 -30
- package/components/SVGIcons/IconCheckmarkCircleFilled.js +23 -30
- package/components/SVGIcons/IconCheckmarkFilled.js +23 -30
- package/components/SVGIcons/IconChevronDown.js +23 -30
- package/components/SVGIcons/IconChevronDownFilled.js +23 -30
- package/components/SVGIcons/IconChevronLeft.js +23 -30
- package/components/SVGIcons/IconChevronLeftFilled.js +23 -30
- package/components/SVGIcons/IconChevronRight.js +23 -30
- package/components/SVGIcons/IconChevronRightFilled.js +23 -30
- package/components/SVGIcons/IconChevronUp.js +23 -30
- package/components/SVGIcons/IconChevronUpDown.js +23 -33
- package/components/SVGIcons/IconChevronUpDownFilled.js +23 -33
- package/components/SVGIcons/IconChevronUpFilled.js +23 -30
- package/components/SVGIcons/IconClock.js +23 -33
- package/components/SVGIcons/IconClockDismiss.js +23 -30
- package/components/SVGIcons/IconClockDismissFilled.js +23 -30
- package/components/SVGIcons/IconClockFilled.js +23 -33
- package/components/SVGIcons/IconComment.js +23 -33
- package/components/SVGIcons/IconCommentFilled.js +23 -33
- package/components/SVGIcons/IconContractCard.js +23 -30
- package/components/SVGIcons/IconContractCardFilled.js +23 -30
- package/components/SVGIcons/IconCopy.js +23 -30
- package/components/SVGIcons/IconCopyFilled.js +23 -30
- package/components/SVGIcons/IconCubeTree.js +23 -30
- package/components/SVGIcons/IconCubeTreeFilled.js +23 -33
- package/components/SVGIcons/IconDatabase.js +23 -33
- package/components/SVGIcons/IconDatabaseFilled.js +23 -33
- package/components/SVGIcons/IconDelete.js +23 -30
- package/components/SVGIcons/IconDeleteFilled.js +23 -30
- package/components/SVGIcons/IconDeviceMeetingRoom.js +23 -30
- package/components/SVGIcons/IconDeviceMeetingRoomFilled.js +23 -30
- package/components/SVGIcons/IconDismiss.js +23 -30
- package/components/SVGIcons/IconDismissCircle.js +23 -33
- package/components/SVGIcons/IconDismissCircleFilled.js +23 -33
- package/components/SVGIcons/IconDismissFilled.js +23 -30
- package/components/SVGIcons/IconDocument.js +23 -30
- package/components/SVGIcons/IconDocumentBulletList.js +23 -33
- package/components/SVGIcons/IconDocumentBulletListFilled.js +23 -33
- package/components/SVGIcons/IconDocumentEdit.js +23 -30
- package/components/SVGIcons/IconDocumentEditFilled.js +23 -30
- package/components/SVGIcons/IconDocumentFilled.js +23 -30
- package/components/SVGIcons/IconEdit.js +23 -30
- package/components/SVGIcons/IconEditFilled.js +23 -30
- package/components/SVGIcons/IconErrorCircle.js +23 -30
- package/components/SVGIcons/IconErrorCircleFilled.js +23 -30
- package/components/SVGIcons/IconEur.js +23 -30
- package/components/SVGIcons/IconEurFilled.js +23 -30
- package/components/SVGIcons/IconExpandUpLeft.js +23 -33
- package/components/SVGIcons/IconExpandUpLeftFilled.js +23 -33
- package/components/SVGIcons/IconExpandUpRight.js +23 -33
- package/components/SVGIcons/IconExpandUpRightFilled.js +23 -33
- package/components/SVGIcons/IconEyeOff.js +23 -33
- package/components/SVGIcons/IconEyeOffFilled.js +23 -33
- package/components/SVGIcons/IconEyeOn.js +23 -33
- package/components/SVGIcons/IconEyeOnFilled.js +23 -33
- package/components/SVGIcons/IconFacebook.js +23 -40
- package/components/SVGIcons/IconFilter.js +23 -30
- package/components/SVGIcons/IconFilterFilled.js +23 -30
- package/components/SVGIcons/IconFlag.js +23 -33
- package/components/SVGIcons/IconFlagFilled.js +23 -33
- package/components/SVGIcons/IconFolderLink.js +23 -30
- package/components/SVGIcons/IconFolderLinkFilled.js +23 -30
- package/components/SVGIcons/IconGb.js +22 -73
- package/components/SVGIcons/IconGlobe.js +23 -30
- package/components/SVGIcons/IconGlobeFilled.js +23 -30
- package/components/SVGIcons/IconGoogle.js +23 -42
- package/components/SVGIcons/IconHandOpenHeart.js +23 -33
- package/components/SVGIcons/IconHandOpenHeartFilled.js +23 -33
- package/components/SVGIcons/IconHeart.js +23 -33
- package/components/SVGIcons/IconHeartFilled.js +23 -33
- package/components/SVGIcons/IconHistory.js +23 -33
- package/components/SVGIcons/IconHistoryFilled.js +23 -33
- package/components/SVGIcons/IconHome.js +23 -33
- package/components/SVGIcons/IconHomeFilled.js +23 -33
- package/components/SVGIcons/IconImage.js +23 -33
- package/components/SVGIcons/IconImageFilled.js +23 -33
- package/components/SVGIcons/IconInfo.js +23 -30
- package/components/SVGIcons/IconInfoFilled.js +23 -30
- package/components/SVGIcons/IconInstagram.js +23 -41
- package/components/SVGIcons/IconKeyReset.js +23 -33
- package/components/SVGIcons/IconKeyResetFilled.js +23 -33
- package/components/SVGIcons/IconLink.js +23 -33
- package/components/SVGIcons/IconLinkFilled.js +23 -33
- package/components/SVGIcons/IconLinkedin.js +23 -33
- package/components/SVGIcons/IconList.js +23 -30
- package/components/SVGIcons/IconListFilled.js +23 -33
- package/components/SVGIcons/IconLocation.js +23 -33
- package/components/SVGIcons/IconLocationFilled.js +23 -33
- package/components/SVGIcons/IconLockClosed.js +23 -33
- package/components/SVGIcons/IconLockClosedFilled.js +23 -33
- package/components/SVGIcons/IconLockOpen.js +23 -33
- package/components/SVGIcons/IconLockOpenFilled.js +23 -33
- package/components/SVGIcons/IconMail.js +23 -33
- package/components/SVGIcons/IconMailAdd.js +23 -33
- package/components/SVGIcons/IconMailAddFilled.js +23 -33
- package/components/SVGIcons/IconMailArrowForward.js +23 -33
- package/components/SVGIcons/IconMailArrowForwardFilled.js +23 -33
- package/components/SVGIcons/IconMailFilled.js +23 -33
- package/components/SVGIcons/IconMailLink.js +23 -33
- package/components/SVGIcons/IconMailLinkFilled.js +23 -33
- package/components/SVGIcons/IconMedium.js +23 -33
- package/components/SVGIcons/IconMore.js +23 -33
- package/components/SVGIcons/IconMoreFilled.js +23 -33
- package/components/SVGIcons/IconMoreVertical.js +23 -33
- package/components/SVGIcons/IconMoreVerticalFilled.js +23 -33
- package/components/SVGIcons/IconNavigation.js +23 -33
- package/components/SVGIcons/IconNavigationFilled.js +23 -33
- package/components/SVGIcons/IconNotebook.js +23 -33
- package/components/SVGIcons/IconNotebookAdd.js +23 -49
- package/components/SVGIcons/IconNotebookAddFilled.js +23 -46
- package/components/SVGIcons/IconNotebookFilled.js +23 -33
- package/components/SVGIcons/IconOnlyEmployee.js +23 -30
- package/components/SVGIcons/IconOpen.js +23 -33
- package/components/SVGIcons/IconOpenFilled.js +23 -33
- package/components/SVGIcons/IconPatient.js +23 -30
- package/components/SVGIcons/IconPatientFilled.js +23 -30
- package/components/SVGIcons/IconPeople.js +23 -30
- package/components/SVGIcons/IconPeopleAdd.js +23 -33
- package/components/SVGIcons/IconPeopleAddFilled.js +23 -33
- package/components/SVGIcons/IconPeopleFilled.js +23 -33
- package/components/SVGIcons/IconPercent.js +23 -35
- package/components/SVGIcons/IconPerson.js +23 -33
- package/components/SVGIcons/IconPersonAccount.js +23 -30
- package/components/SVGIcons/IconPersonAccountFilled.js +23 -30
- package/components/SVGIcons/IconPersonAdd.js +23 -33
- package/components/SVGIcons/IconPersonAddFilled.js +23 -33
- package/components/SVGIcons/IconPersonFilled.js +23 -33
- package/components/SVGIcons/IconPersonStar.js +23 -33
- package/components/SVGIcons/IconPersonStarFilled.js +23 -33
- package/components/SVGIcons/IconPersonSubtract.js +23 -33
- package/components/SVGIcons/IconPersonSubtractFilled.js +23 -33
- package/components/SVGIcons/IconPhone.js +23 -33
- package/components/SVGIcons/IconPhoneFilled.js +23 -33
- package/components/SVGIcons/IconPos.js +23 -35
- package/components/SVGIcons/IconPosFilled.js +23 -35
- package/components/SVGIcons/IconProhibited.js +23 -33
- package/components/SVGIcons/IconProhibitedFilled.js +23 -33
- package/components/SVGIcons/IconProjectProduct.js +23 -30
- package/components/SVGIcons/IconQuestion.js +23 -33
- package/components/SVGIcons/IconQuestionFilled.js +23 -33
- package/components/SVGIcons/IconRedo.js +23 -33
- package/components/SVGIcons/IconRedoFilled.js +23 -33
- package/components/SVGIcons/IconRu.js +22 -62
- package/components/SVGIcons/IconRub.js +23 -30
- package/components/SVGIcons/IconRubFilled.js +23 -30
- package/components/SVGIcons/IconSave.js +23 -33
- package/components/SVGIcons/IconSaveFilled.js +23 -33
- package/components/SVGIcons/IconSavings.js +23 -33
- package/components/SVGIcons/IconSavingsFilled.js +23 -33
- package/components/SVGIcons/IconSearch.js +23 -33
- package/components/SVGIcons/IconSearchFilled.js +23 -33
- package/components/SVGIcons/IconSelectAllOff.js +23 -33
- package/components/SVGIcons/IconSelectAllOffFilled.js +23 -33
- package/components/SVGIcons/IconSelectAllOn.js +23 -33
- package/components/SVGIcons/IconSelectAllOnFilled.js +23 -33
- package/components/SVGIcons/IconSend.js +23 -33
- package/components/SVGIcons/IconSendFilled.js +23 -33
- package/components/SVGIcons/IconSettings.js +23 -30
- package/components/SVGIcons/IconSettingsFilled.js +23 -33
- package/components/SVGIcons/IconShare.js +23 -33
- package/components/SVGIcons/IconShareAndroid.js +23 -33
- package/components/SVGIcons/IconShareAndroidFilled.js +23 -33
- package/components/SVGIcons/IconShareFilled.js +23 -33
- package/components/SVGIcons/IconSignOut.js +23 -33
- package/components/SVGIcons/IconSignOutFilled.js +23 -33
- package/components/SVGIcons/IconSpinner.js +23 -33
- package/components/SVGIcons/IconSpinnerFilled.js +23 -33
- package/components/SVGIcons/IconStatus.js +23 -33
- package/components/SVGIcons/IconStatusFilled.js +23 -33
- package/components/SVGIcons/IconSubtract.js +23 -33
- package/components/SVGIcons/IconSubtractCircle.js +23 -33
- package/components/SVGIcons/IconSubtractCircleFilled.js +23 -33
- package/components/SVGIcons/IconSubtractFilled.js +23 -33
- package/components/SVGIcons/IconTableCellEdit.js +23 -37
- package/components/SVGIcons/IconTableCellEditFilled.js +23 -43
- package/components/SVGIcons/IconTelegram.js +23 -42
- package/components/SVGIcons/IconTimer.js +23 -33
- package/components/SVGIcons/IconTimerFilled.js +23 -33
- package/components/SVGIcons/IconTwitter.js +23 -33
- package/components/SVGIcons/IconUndo.js +23 -33
- package/components/SVGIcons/IconUndoFilled.js +23 -33
- package/components/SVGIcons/IconUnitsEmployee.js +23 -30
- package/components/SVGIcons/IconUsd.js +23 -30
- package/components/SVGIcons/IconUsdFilled.js +23 -30
- package/components/SVGIcons/IconVideo.js +23 -30
- package/components/SVGIcons/IconVideoFilled.js +23 -30
- package/components/SVGIcons/IconWallet.js +23 -33
- package/components/SVGIcons/IconWalletFilled.js +23 -33
- package/components/SVGIcons/IconWarning.js +23 -30
- package/components/SVGIcons/IconWarningFilled.js +23 -30
- package/components/SVGIcons/IconYoutube.js +23 -33
- package/components/SVGIcons/index.js +286 -290
- package/components/SVGIcons/types.js +1 -1
- package/components/Select/ButtonSelect/ButtonSelect.js +56 -177
- package/components/Select/FilterSelect/FilterDropdown.d.ts +2 -2
- package/components/Select/FilterSelect/FilterDropdown.js +15 -84
- package/components/Select/FilterSelect/FilterGroupDropdown.d.ts +2 -2
- package/components/Select/FilterSelect/FilterGroupDropdown.js +31 -69
- package/components/Select/FilterSelect/FilterSelect.js +100 -192
- package/components/Select/MultiSelect/MultiBase/MultiBase.js +78 -195
- package/components/Select/MultiSelect/MultiSelect.js +84 -224
- package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.d.ts +2 -2
- package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +119 -253
- package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.d.ts +2 -2
- package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +99 -239
- package/components/Select/MultiSelect/OptionsWrapper.js +100 -172
- package/components/Select/NestedSelect/NestedSelect.d.ts +2 -2
- package/components/Select/NestedSelect/NestedSelect.js +80 -188
- package/components/Select/ProfileDropdown/index.d.ts +2 -2
- package/components/Select/ProfileDropdown/index.js +25 -81
- package/components/Select/Select/Select.d.ts +2 -2
- package/components/Select/Select/Select.js +158 -322
- package/components/Select/SharedComponents/Actions.d.ts +2 -2
- package/components/Select/SharedComponents/Actions.js +25 -102
- package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.js +19 -45
- package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +49 -97
- package/components/Select/SharedComponents/ContentTop.js +85 -155
- package/components/Select/SharedComponents/Footer.d.ts +2 -2
- package/components/Select/SharedComponents/Footer.js +20 -72
- package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +70 -151
- package/components/Select/SharedComponents/Loading.d.ts +2 -2
- package/components/Select/SharedComponents/Loading.js +17 -17
- package/components/Select/SharedComponents/index.js +6 -76
- package/components/Select/constants.js +10 -12
- package/components/Select/index.js +6 -92
- package/components/Select/types.d.ts +5 -5
- package/components/Select/types.js +1 -1
- package/components/SideNavigation/Block.js +17 -21
- package/components/SideNavigation/NavigationItem/index.js +33 -72
- package/components/SideNavigation/NavigationItem/types.d.ts +2 -2
- package/components/SideNavigation/NavigationItem/types.js +9 -11
- package/components/SideNavigation/SideNavigation.d.ts +2 -2
- package/components/SideNavigation/SideNavigation.js +28 -39
- package/components/SideNavigation/index.js +2 -17
- package/components/SideNavigation/types.d.ts +1 -1
- package/components/SideNavigation/types.js +1 -1
- package/components/SideSheet/Footer/Footer.js +27 -84
- package/components/SideSheet/SideSheet.d.ts +2 -2
- package/components/SideSheet/SideSheet.js +69 -195
- package/components/SideSheet/index.js +1 -40
- package/components/SideSheet/types.js +1 -1
- package/components/Snackbar/Snackbar.js +44 -110
- package/components/Snackbar/consts.js +13 -15
- package/components/Snackbar/index.js +1 -38
- package/components/Snackbar/types.d.ts +1 -1
- package/components/Snackbar/types.js +1 -1
- package/components/Status/Status.js +27 -48
- package/components/Status/index.js +1 -9
- package/components/Status/types.js +1 -1
- package/components/Stepper/Stepper.d.ts +2 -2
- package/components/Stepper/Stepper.js +29 -45
- package/components/Stepper/index.js +1 -3
- package/components/Stepper/types.d.ts +1 -1
- package/components/Stepper/types.js +1 -1
- package/components/Switcher/Switcher.js +31 -100
- package/components/Switcher/index.js +1 -38
- package/components/Switcher/types.d.ts +1 -1
- package/components/Switcher/types.js +1 -1
- package/components/Tab/Tab.js +31 -38
- package/components/Tab/TabItem.d.ts +2 -2
- package/components/Tab/TabItem.js +25 -55
- package/components/Tab/index.js +1 -12
- package/components/Tab/types.d.ts +2 -2
- package/components/Tab/types.js +1 -1
- package/components/Table/Header.js +34 -107
- package/components/Table/IndeterminateCheckbox.js +17 -62
- package/components/Table/Row.js +32 -78
- package/components/Table/Table.js +84 -147
- package/components/Table/index.js +1 -45
- package/components/Table/types.js +1 -1
- package/components/Table/utils.js +44 -62
- package/components/Text/Text.js +18 -36
- package/components/Text/index.js +1 -5
- package/components/Text/types.js +1 -1
- package/components/Textarea/Textarea.js +51 -124
- package/components/Textarea/index.js +1 -39
- package/components/Textarea/types.d.ts +2 -2
- package/components/Textarea/types.js +1 -1
- package/components/Tooltip/Tooltip.d.ts +2 -2
- package/components/Tooltip/Tooltip.js +64 -101
- package/components/Tooltip/index.js +1 -16
- package/components/Tooltip/types.js +11 -13
- package/consts/index.js +80 -63
- package/context/FormContextProvider.d.ts +2 -3
- package/context/FormContextProvider.js +7 -12
- package/context/index.js +2 -5
- package/context/types.js +8 -12
- package/helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.d.ts +1 -1
- package/helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js +19 -15
- package/helperComponents/AnimatePresenceWrapper/index.js +1 -3
- package/helperComponents/CodeBlock/CodeBlock.js +18 -178
- package/helperComponents/CodeBlock/index.js +1 -3
- package/helperComponents/ErrorMessage/ErrorMessage.js +20 -27
- package/helperComponents/ErrorMessage/index.js +1 -8
- package/helperComponents/ErrorMessage/types.d.ts +1 -1
- package/helperComponents/ErrorMessage/types.js +1 -1
- package/helperComponents/IconDynamicComponent/IconDynamicComponent.js +24 -26
- package/helperComponents/IconDynamicComponent/constants.js +13 -34
- package/helperComponents/IconDynamicComponent/index.js +1 -3
- package/helperComponents/Label/Label.js +20 -29
- package/helperComponents/Label/index.js +1 -6
- package/helperComponents/Label/types.d.ts +1 -1
- package/helperComponents/Label/types.js +1 -1
- package/helperComponents/Loader/Loader.js +16 -15
- package/helperComponents/Loader/index.js +1 -2
- package/helperComponents/Loader/types.js +1 -1
- package/helperComponents/OptionItem/OptionItem.d.ts +2 -2
- package/helperComponents/OptionItem/OptionItem.js +34 -127
- package/helperComponents/OptionItem/index.js +1 -50
- package/helperComponents/OptionItem/types.js +1 -1
- package/helperComponents/index.js +6 -51
- package/hooks/index.js +12 -19
- package/hooks/useChangePositionsOnScroll.js +31 -32
- package/hooks/useDispatchEventOnScroll.js +9 -12
- package/hooks/useFieldArray.js +1 -1
- package/hooks/useFormContext.js +5 -10
- package/hooks/useFormProps.js +5 -10
- package/hooks/useGetElemPositions.js +17 -19
- package/hooks/useGetElemSizes.js +14 -16
- package/hooks/useGetHasBottomSpace.js +17 -26
- package/hooks/useGetIsMobile.js +39 -47
- package/hooks/useGetTooltipPosition.js +69 -85
- package/hooks/useGetTooltipStyles.js +48 -89
- package/hooks/useHideBodyScroll.js +26 -35
- package/hooks/useHideOnScroll.js +21 -24
- package/hooks/useOnOutsideClick.js +41 -53
- package/hooks/useScreenSize.js +28 -36
- package/index.js +51 -432
- package/package.json +2 -2
- package/stories/Alert.stories.d.ts +1 -1
- package/stories/Alert.stories.js +42 -0
- package/stories/Avatar.stories.d.ts +1 -1
- package/stories/Avatar.stories.js +100 -0
- package/stories/Badge.stories.d.ts +1 -1
- package/stories/Badge.stories.js +34 -0
- package/stories/Breadcrumb.stories.d.ts +1 -1
- package/stories/Breadcrumb.stories.js +43 -0
- package/stories/Button.stories.d.ts +1 -1
- package/stories/Button.stories.js +49 -0
- package/stories/ButtonIcon.stories.d.ts +1 -1
- package/stories/ButtonIcon.stories.js +43 -0
- package/stories/CardBody.stories.d.ts +2 -2
- package/stories/CardBody.stories.js +34 -0
- package/stories/CardSelect.stories.d.ts +2 -2
- package/stories/CardSelect.stories.js +161 -0
- package/stories/Cards.stories.d.ts +1 -1
- package/stories/Cards.stories.js +38 -0
- package/stories/Checkbox.stories.js +39 -0
- package/stories/Chips.stories.d.ts +1 -1
- package/stories/Chips.stories.js +45 -0
- package/stories/Collapse.stories.d.ts +2 -2
- package/stories/Collapse.stories.js +56 -0
- package/stories/Container.stories.d.ts +1 -1
- package/stories/Container.stories.js +25 -0
- package/stories/Copy.stories.d.ts +1 -1
- package/stories/Copy.stories.js +23 -0
- package/stories/Counter.stories.js +32 -0
- package/stories/DatePicker.stories.d.ts +2 -2
- package/stories/DatePicker.stories.js +59 -0
- package/stories/Divider.stories.js +31 -0
- package/stories/Empty.stories.d.ts +2 -2
- package/stories/Empty.stories.js +39 -0
- package/stories/FileUpload.stories.d.ts +2 -2
- package/stories/FileUpload.stories.js +40 -0
- package/stories/Form.stories.d.ts +3 -3
- package/stories/Form.stories.js +158 -0
- package/stories/Heading.stories.d.ts +1 -1
- package/stories/Heading.stories.js +44 -0
- package/stories/Image.stories.js +44 -0
- package/stories/Input.stories.js +57 -0
- package/stories/ItemSelect.stories.d.ts +2 -2
- package/stories/ItemSelect.stories.js +87 -0
- package/stories/Link.stories.d.ts +1 -1
- package/stories/Link.stories.js +27 -0
- package/stories/Menu.stories.d.ts +1 -1
- package/stories/Menu.stories.js +138 -0
- package/stories/Modal.stories.d.ts +1 -1
- package/stories/Modal.stories.js +73 -0
- package/stories/More.stories.d.ts +2 -2
- package/stories/More.stories.js +24 -0
- package/stories/NavigationItem.stories.d.ts +1 -1
- package/stories/NavigationItem.stories.js +27 -0
- package/stories/Pagination.stories.d.ts +2 -2
- package/stories/Pagination.stories.js +46 -0
- package/stories/Popover.stories.d.ts +1 -1
- package/stories/Popover.stories.js +50 -0
- package/stories/Progress.stories.d.ts +2 -2
- package/stories/Progress.stories.js +39 -0
- package/stories/ProgressStep.stories.d.ts +1 -1
- package/stories/ProgressStep.stories.js +74 -0
- package/stories/Radio.stories.js +60 -0
- package/stories/SVGIcons.stories.js +67 -0
- package/stories/Select.stories.d.ts +4 -4
- package/stories/Select.stories.js +13417 -0
- package/stories/SideNavigation.stories.d.ts +2 -2
- package/stories/SideNavigation.stories.js +51 -0
- package/stories/SideSheet.stories.d.ts +2 -2
- package/stories/SideSheet.stories.js +211 -0
- package/stories/Snackbar.stories.d.ts +1 -1
- package/stories/Snackbar.stories.js +65 -0
- package/stories/Status.stories.d.ts +1 -1
- package/stories/Status.stories.js +52 -0
- package/stories/Stepper.stories.d.ts +2 -2
- package/stories/Stepper.stories.js +23 -0
- package/stories/Switcher.stories.js +38 -0
- package/stories/Tab.stories.d.ts +1 -1
- package/stories/Tab.stories.js +83 -0
- package/stories/Table.stories.js +107 -0
- package/stories/Text.stories.d.ts +1 -1
- package/stories/Text.stories.js +64 -0
- package/stories/Textarea.stories.js +39 -0
- package/stories/Tooltip.stories.d.ts +2 -2
- package/stories/Tooltip.stories.js +53 -0
- package/utils/helpers.js +81 -89
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
}, itemInfo.label));
|
|
21
|
-
}));
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Breadcrumb };
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
export var Breadcrumb = function (props) {
|
|
14
|
+
var selectedValue = props.selectedValue, breadCrumbItems = props.breadCrumbItems, _a = props.className, className = _a === void 0 ? '' : _a, onSelect = props.onSelect;
|
|
15
|
+
return (_jsx("div", __assign({ className: "breadcrumb ".concat(className) }, { children: breadCrumbItems.map(function (itemInfo) {
|
|
16
|
+
return (_jsx("span", __assign({ className: "breadcrumb__item" }, { children: _jsx("span", __assign({ className: "breadcrumb__item__inner ".concat(selectedValue === itemInfo.value ? 'selected' : ''), onClick: function () { return onSelect(itemInfo.value); } }, { children: itemInfo.label })) }), itemInfo.value));
|
|
17
|
+
}) })));
|
|
18
|
+
};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import 'react';
|
|
1
|
+
export * from './Breadcrumb';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,35 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import
|
|
24
|
-
import '
|
|
25
|
-
import '
|
|
26
|
-
import '
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import classnames from 'classnames';
|
|
25
|
+
import { Loader } from '../../helperComponents';
|
|
26
|
+
import { ICON_SIZE_MAPPING, ICON_TYPE_MAPPING, LITE_LOADER_TYPES } from './consts';
|
|
27
|
+
export var Button = function (props) {
|
|
28
|
+
var _a;
|
|
29
|
+
var buttonText = props.buttonText, _b = props.type, type = _b === void 0 ? 'primary' : _b, _c = props.size, size = _c === void 0 ? 'large' : _c, _d = props.className, className = _d === void 0 ? '' : _d, iconProps = props.iconProps, _e = props.buttonActionType, buttonActionType = _e === void 0 ? 'button' : _e, disabled = props.disabled, isLoading = props.isLoading, formId = props.formId, _f = props.dataId, dataId = _f === void 0 ? '' : _f, onClick = props.onClick, _g = props.refHandler, refHandler = _g === void 0 ? null : _g, children = props.children, rest = __rest(props, ["buttonText", "type", "size", "className", "iconProps", "buttonActionType", "disabled", "isLoading", "formId", "dataId", "onClick", "refHandler", "children"]);
|
|
30
|
+
var justIcon = !buttonText && !children && iconProps !== undefined;
|
|
31
|
+
var clickHandler = function (e) {
|
|
32
|
+
if (disabled || isLoading) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
36
|
+
};
|
|
37
|
+
return (_jsx("button", __assign({ ref: refHandler, "data-id": dataId, disabled: disabled, type: buttonActionType, className: classnames('btn', "btn--".concat(type), "btn--".concat(size), (_a = {
|
|
38
|
+
'btn--icon': justIcon
|
|
39
|
+
},
|
|
40
|
+
_a["btn--icon-".concat((iconProps === null || iconProps === void 0 ? void 0 : iconProps.alignment) || 'left')] = !isLoading && !justIcon && (iconProps === null || iconProps === void 0 ? void 0 : iconProps.Component),
|
|
41
|
+
_a), className), onClick: clickHandler, form: formId }, rest, { children: isLoading ? (_jsx(Loader, { size: size, type: LITE_LOADER_TYPES.indexOf(type) === -1 ? 'dark' : 'lite' })) : (_jsxs(_Fragment, { children: [(iconProps === null || iconProps === void 0 ? void 0 : iconProps.Component) ? (_jsx(iconProps.Component, { size: ICON_SIZE_MAPPING[size], type: ICON_TYPE_MAPPING[iconProps.type || type], className: "btn__icon" })) : null, buttonText || children ? (_jsx("span", __assign({ className: "btn__text" }, { children: buttonText || children }))) : null] })) })));
|
|
42
|
+
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
var LITE_LOADER_TYPES = ['primary', 'danger'];
|
|
2
|
-
var ICON_SIZE_MAPPING = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
var ICON_TYPE_MAPPING = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { ICON_SIZE_MAPPING, ICON_TYPE_MAPPING, LITE_LOADER_TYPES };
|
|
1
|
+
export var LITE_LOADER_TYPES = ['primary', 'danger'];
|
|
2
|
+
export var ICON_SIZE_MAPPING = {
|
|
3
|
+
large: 'small',
|
|
4
|
+
medium: 'small',
|
|
5
|
+
small: 'xsmall'
|
|
6
|
+
};
|
|
7
|
+
export var ICON_TYPE_MAPPING = {
|
|
8
|
+
primary: 'inverse',
|
|
9
|
+
secondary: 'secondary',
|
|
10
|
+
tertiary: 'primary',
|
|
11
|
+
danger: 'inverse',
|
|
12
|
+
text: 'selected',
|
|
13
|
+
link: 'selected'
|
|
14
|
+
};
|
|
@@ -1,35 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import '../../extends-5035bfae.js';
|
|
3
|
-
import '../../defineProperty-8cb9aeda.js';
|
|
4
|
-
import '../../typeof-fcb34f52.js';
|
|
5
|
-
import '../../objectWithoutProperties-2070b5a0.js';
|
|
6
|
-
import 'react';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import 'dayjs';
|
|
9
|
-
import '../../helperComponents/Loader/Loader.js';
|
|
10
|
-
import '../../consts/index.js';
|
|
11
|
-
import '../../hooks/useScreenSize.js';
|
|
12
|
-
import '../../slicedToArray-db090d3f.js';
|
|
13
|
-
import 'react-hook-form';
|
|
14
|
-
import '../../hooks/useGetIsMobile.js';
|
|
15
|
-
import 'framer-motion';
|
|
16
|
-
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
17
|
-
import '../../hooks/useOnOutsideClick.js';
|
|
18
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
19
|
-
import 'react-syntax-highlighter';
|
|
20
|
-
import '../SVGIcons/IconDismiss.js';
|
|
21
|
-
import '../Tooltip/types.js';
|
|
22
|
-
import '../Text/Text.js';
|
|
23
|
-
import '../../utils/helpers.js';
|
|
24
|
-
import '../Tooltip/Tooltip.js';
|
|
25
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
26
|
-
import '../../hooks/useGetElemSizes.js';
|
|
27
|
-
import '../../hooks/useGetElemPositions.js';
|
|
28
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
29
|
-
import '../../hooks/useHideOnScroll.js';
|
|
30
|
-
import '../Link/Link.js';
|
|
31
|
-
import '../Popover/PopoverDesktop.js';
|
|
32
|
-
import '../SVGIcons/IconInfo.js';
|
|
33
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
34
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
35
|
-
import './consts.js';
|
|
1
|
+
export * from './Button';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import
|
|
24
|
-
import '
|
|
25
|
-
import '../../
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
import '../Link/Link.js';
|
|
31
|
-
import '../Popover/PopoverDesktop.js';
|
|
32
|
-
import '../SVGIcons/IconInfo.js';
|
|
33
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
34
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
35
|
-
import '../Button/consts.js';
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import classnames from 'classnames';
|
|
25
|
+
import { Loader } from '../../helperComponents';
|
|
26
|
+
export var ButtonIcon = function (props) {
|
|
27
|
+
var _a = props.size, size = _a === void 0 ? 'medium' : _a, _b = props.className, className = _b === void 0 ? '' : _b, iconProps = props.iconProps, _c = props.buttonActionType, buttonActionType = _c === void 0 ? 'button' : _c, disabled = props.disabled, isLoading = props.isLoading, formId = props.formId, _d = props.dataId, dataId = _d === void 0 ? '' : _d, onClick = props.onClick, _e = props.refHandler, refHandler = _e === void 0 ? null : _e, rest = __rest(props, ["size", "className", "iconProps", "buttonActionType", "disabled", "isLoading", "formId", "dataId", "onClick", "refHandler"]);
|
|
28
|
+
return (_jsx("button", __assign({ ref: refHandler, "data-id": dataId, disabled: disabled, type: buttonActionType, className: classnames('btn-icon', "btn-icon--".concat(size), className), onClick: onClick, form: formId }, rest, { children: isLoading ? (_jsx(Loader, { size: size, type: 'dark' })) : (_jsx(iconProps.Component, { size: size, type: disabled ? 'disabled' : 'tertiary' })) })));
|
|
29
|
+
};
|
|
@@ -1,35 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import '../../extends-5035bfae.js';
|
|
3
|
-
import '../../defineProperty-8cb9aeda.js';
|
|
4
|
-
import '../../typeof-fcb34f52.js';
|
|
5
|
-
import '../../objectWithoutProperties-2070b5a0.js';
|
|
6
|
-
import 'react';
|
|
7
|
-
import 'classnames';
|
|
8
|
-
import 'dayjs';
|
|
9
|
-
import '../../helperComponents/Loader/Loader.js';
|
|
10
|
-
import '../../consts/index.js';
|
|
11
|
-
import '../../hooks/useScreenSize.js';
|
|
12
|
-
import '../../slicedToArray-db090d3f.js';
|
|
13
|
-
import 'react-hook-form';
|
|
14
|
-
import '../../hooks/useGetIsMobile.js';
|
|
15
|
-
import 'framer-motion';
|
|
16
|
-
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
17
|
-
import '../../hooks/useOnOutsideClick.js';
|
|
18
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
19
|
-
import 'react-syntax-highlighter';
|
|
20
|
-
import '../SVGIcons/IconDismiss.js';
|
|
21
|
-
import '../Tooltip/types.js';
|
|
22
|
-
import '../Text/Text.js';
|
|
23
|
-
import '../../utils/helpers.js';
|
|
24
|
-
import '../Tooltip/Tooltip.js';
|
|
25
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
26
|
-
import '../../hooks/useGetElemSizes.js';
|
|
27
|
-
import '../../hooks/useGetElemPositions.js';
|
|
28
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
29
|
-
import '../../hooks/useHideOnScroll.js';
|
|
30
|
-
import '../Link/Link.js';
|
|
31
|
-
import '../Popover/PopoverDesktop.js';
|
|
32
|
-
import '../SVGIcons/IconInfo.js';
|
|
33
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
34
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
35
|
-
import '../Button/consts.js';
|
|
1
|
+
export * from './ButtonIcon';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TCardBodyProps } from './types';
|
|
3
|
-
export declare const CardBody: (props: TCardBodyProps) =>
|
|
3
|
+
export declare const CardBody: (props: TCardBodyProps) => React.ReactElement;
|
|
@@ -1,66 +1,20 @@
|
|
|
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
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
22
|
-
import 'react-syntax-highlighter';
|
|
23
|
-
import '../SVGIcons/IconDismiss.js';
|
|
24
|
-
import '../Tooltip/types.js';
|
|
25
|
-
import '../Tooltip/Tooltip.js';
|
|
26
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
27
|
-
import '../../hooks/useGetElemSizes.js';
|
|
28
|
-
import '../../hooks/useGetElemPositions.js';
|
|
29
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
30
|
-
import '../../hooks/useHideOnScroll.js';
|
|
31
|
-
import '../Link/Link.js';
|
|
32
|
-
import '../Popover/PopoverDesktop.js';
|
|
33
|
-
import '../SVGIcons/IconInfo.js';
|
|
34
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
35
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
36
|
-
import '../Button/consts.js';
|
|
37
|
-
|
|
38
|
-
var CardBody = function CardBody(props) {
|
|
39
|
-
var title = props.title,
|
|
40
|
-
description = props.description,
|
|
41
|
-
buttonProps = props.buttonProps,
|
|
42
|
-
className = props.className,
|
|
43
|
-
illustration = props.illustration;
|
|
44
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
45
|
-
className: classNames('card-body', className)
|
|
46
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
47
|
-
className: 'card-body__image'
|
|
48
|
-
}, /*#__PURE__*/React.createElement(Image, {
|
|
49
|
-
imagePath: illustration
|
|
50
|
-
})), /*#__PURE__*/React.createElement(Text, {
|
|
51
|
-
size: 'large',
|
|
52
|
-
weight: "bolder",
|
|
53
|
-
className: 'mt-32'
|
|
54
|
-
}, title), description ? /*#__PURE__*/React.createElement(Text, {
|
|
55
|
-
className: 'mt-12'
|
|
56
|
-
}, description) : null, buttonProps ? /*#__PURE__*/React.createElement("div", {
|
|
57
|
-
className: "body__buttons mt-32"
|
|
58
|
-
}, /*#__PURE__*/React.createElement(Button, _extends({
|
|
59
|
-
className: "full-width"
|
|
60
|
-
}, buttonProps.primary || {})), /*#__PURE__*/React.createElement(Button, _extends({
|
|
61
|
-
type: "text",
|
|
62
|
-
className: "full-width mt-24"
|
|
63
|
-
}, buttonProps.secondary))) : null);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
export { CardBody };
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { Text } from '../Text';
|
|
14
|
+
import { Image } from '../Image';
|
|
15
|
+
import { Button } from '../Button';
|
|
16
|
+
import classNames from 'classnames';
|
|
17
|
+
export var CardBody = function (props) {
|
|
18
|
+
var title = props.title, description = props.description, buttonProps = props.buttonProps, className = props.className, illustration = props.illustration;
|
|
19
|
+
return (_jsxs("div", __assign({ className: classNames('card-body', className) }, { children: [_jsx("div", __assign({ className: 'card-body__image' }, { children: _jsx(Image, { imagePath: illustration }) })), _jsx(Text, __assign({ size: 'large', weight: "bolder", className: 'mt-32' }, { children: title })), description ? _jsx(Text, __assign({ className: 'mt-12' }, { children: description })) : null, buttonProps ? (_jsxs("div", __assign({ className: "body__buttons mt-32" }, { children: [_jsx(Button, __assign({ className: "full-width" }, (buttonProps.primary || {}))), _jsx(Button, __assign({ type: "text", className: "full-width mt-24" }, buttonProps.secondary))] }))) : null] })));
|
|
20
|
+
};
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import '../../extends-5035bfae.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import '../Text/Text.js';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '../../utils/helpers.js';
|
|
7
|
-
import 'dayjs';
|
|
8
|
-
import '../Image/Image.js';
|
|
9
|
-
import '../../Button-fc1714ff.js';
|
|
10
|
-
import '../../defineProperty-8cb9aeda.js';
|
|
11
|
-
import '../../typeof-fcb34f52.js';
|
|
12
|
-
import '../../objectWithoutProperties-2070b5a0.js';
|
|
13
|
-
import '../../helperComponents/Loader/Loader.js';
|
|
14
|
-
import '../../consts/index.js';
|
|
15
|
-
import '../../hooks/useScreenSize.js';
|
|
16
|
-
import '../../slicedToArray-db090d3f.js';
|
|
17
|
-
import 'react-hook-form';
|
|
18
|
-
import '../../hooks/useGetIsMobile.js';
|
|
19
|
-
import 'framer-motion';
|
|
20
|
-
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
21
|
-
import '../../hooks/useOnOutsideClick.js';
|
|
22
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
23
|
-
import 'react-syntax-highlighter';
|
|
24
|
-
import '../SVGIcons/IconDismiss.js';
|
|
25
|
-
import '../Tooltip/types.js';
|
|
26
|
-
import '../Tooltip/Tooltip.js';
|
|
27
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
28
|
-
import '../../hooks/useGetElemSizes.js';
|
|
29
|
-
import '../../hooks/useGetElemPositions.js';
|
|
30
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
31
|
-
import '../../hooks/useHideOnScroll.js';
|
|
32
|
-
import '../Link/Link.js';
|
|
33
|
-
import '../Popover/PopoverDesktop.js';
|
|
34
|
-
import '../SVGIcons/IconInfo.js';
|
|
35
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
36
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
37
|
-
import '../Button/consts.js';
|
|
1
|
+
export * from './CardBody';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|