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,89 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
18
|
-
import '../../helperComponents
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import '../../hooks/useOnOutsideClick.js';
|
|
24
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
25
|
-
import '../SVGIcons/IconDismiss.js';
|
|
26
|
-
import '../Tooltip/types.js';
|
|
27
|
-
import '../Tooltip/Tooltip.js';
|
|
28
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
29
|
-
import '../../hooks/useGetElemSizes.js';
|
|
30
|
-
import '../../hooks/useGetElemPositions.js';
|
|
31
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
32
|
-
import '../../hooks/useHideOnScroll.js';
|
|
33
|
-
import '../Link/Link.js';
|
|
34
|
-
import '../Popover/PopoverDesktop.js';
|
|
35
|
-
import '../SVGIcons/IconInfo.js';
|
|
36
|
-
import '../Button/consts.js';
|
|
37
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
38
|
-
|
|
39
|
-
var Alert = function Alert(props) {
|
|
40
|
-
var buttonProps = props.buttonProps,
|
|
41
|
-
_props$type = props.type,
|
|
42
|
-
type = _props$type === void 0 ? 'information' : _props$type,
|
|
43
|
-
_props$position = props.position,
|
|
44
|
-
position = _props$position === void 0 ? 'inline' : _props$position,
|
|
45
|
-
text = props.text,
|
|
46
|
-
subtext = props.subtext,
|
|
47
|
-
closeIcon = props.closeIcon,
|
|
48
|
-
onClose = props.onClose,
|
|
49
|
-
_props$className = props.className,
|
|
50
|
-
className = _props$className === void 0 ? '' : _props$className;
|
|
51
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
52
|
-
className: classNames('alert', "alert--".concat(type, " alert--").concat(position), className)
|
|
53
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
54
|
-
className: "alert__content"
|
|
55
|
-
}, /*#__PURE__*/React.createElement(IconDynamicComponent, {
|
|
56
|
-
componentName: ICONS_MAPPING[type],
|
|
57
|
-
size: "small",
|
|
58
|
-
type: TYPE_MAPPING[type]
|
|
59
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
60
|
-
className: "alert__text pl-8"
|
|
61
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Text, {
|
|
62
|
-
type: "primary",
|
|
63
|
-
size: "standard",
|
|
64
|
-
weight: "regular",
|
|
65
|
-
lineHeight: "large"
|
|
66
|
-
}, text), subtext ? /*#__PURE__*/React.createElement(Text, {
|
|
67
|
-
className: 'mt-4',
|
|
68
|
-
type: "secondary",
|
|
69
|
-
size: "small",
|
|
70
|
-
weight: "regular",
|
|
71
|
-
lineHeight: "large"
|
|
72
|
-
}, subtext) : null), buttonProps ? /*#__PURE__*/React.createElement("div", {
|
|
73
|
-
className: "alert__actions"
|
|
74
|
-
}, buttonProps.confirm && /*#__PURE__*/React.createElement(Button, _extends({
|
|
75
|
-
size: "medium",
|
|
76
|
-
type: "secondary"
|
|
77
|
-
}, buttonProps.confirm)), buttonProps.cancel && /*#__PURE__*/React.createElement(Button, _extends({
|
|
78
|
-
size: "medium",
|
|
79
|
-
type: "tertiary",
|
|
80
|
-
className: "ml-12"
|
|
81
|
-
}, buttonProps.cancel))) : null), closeIcon ? /*#__PURE__*/React.createElement(IconDismissFilled, {
|
|
82
|
-
type: TYPE_MAPPING[type],
|
|
83
|
-
size: "xsmall",
|
|
84
|
-
className: "ml-12 pointer",
|
|
85
|
-
onClick: onClose
|
|
86
|
-
}) : null));
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export { Alert };
|
|
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 { ICONS_MAPPING, TYPE_MAPPING } from './consts';
|
|
14
|
+
import classnames from 'classnames';
|
|
15
|
+
import { Text } from '../Text';
|
|
16
|
+
import { Button } from '../Button';
|
|
17
|
+
import IconDismissFilled from '../SVGIcons/IconDismissFilled';
|
|
18
|
+
import { IconDynamicComponent } from '../../helperComponents';
|
|
19
|
+
export var Alert = function (props) {
|
|
20
|
+
var buttonProps = props.buttonProps, _a = props.type, type = _a === void 0 ? 'information' : _a, _b = props.position, position = _b === void 0 ? 'inline' : _b, text = props.text, subtext = props.subtext, closeIcon = props.closeIcon, onClose = props.onClose, _c = props.className, className = _c === void 0 ? '' : _c;
|
|
21
|
+
return (_jsx("div", __assign({ className: classnames('alert', "alert--".concat(type, " alert--").concat(position), className) }, { children: _jsxs("div", __assign({ className: "alert__content" }, { children: [_jsx(IconDynamicComponent, { componentName: ICONS_MAPPING[type], size: "small", type: TYPE_MAPPING[type] }), _jsxs("div", __assign({ className: "alert__text pl-8" }, { children: [_jsxs("div", { children: [_jsx(Text, __assign({ type: "primary", size: "standard", weight: "regular", lineHeight: "large" }, { children: text })), subtext ? (_jsx(Text, __assign({ className: 'mt-4', type: "secondary", size: "small", weight: "regular", lineHeight: "large" }, { children: subtext }))) : null] }), buttonProps ? (_jsxs("div", __assign({ className: "alert__actions" }, { children: [buttonProps.confirm && (_jsx(Button, __assign({ size: "medium", type: "secondary" }, buttonProps.confirm))), buttonProps.cancel && (_jsx(Button, __assign({ size: "medium", type: "tertiary", className: "ml-12" }, buttonProps.cancel)))] }))) : null] })), closeIcon ? (_jsx(IconDismissFilled, { type: TYPE_MAPPING[type], size: "xsmall", className: "ml-12 pointer", onClick: onClose })) : null] })) })));
|
|
22
|
+
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
var TYPE_MAPPING = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
var ICONS_MAPPING = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { ICONS_MAPPING, TYPE_MAPPING };
|
|
1
|
+
export var TYPE_MAPPING = {
|
|
2
|
+
warning: 'warning',
|
|
3
|
+
success: 'success',
|
|
4
|
+
error: 'danger',
|
|
5
|
+
information: 'information',
|
|
6
|
+
discovery: 'discovery'
|
|
7
|
+
};
|
|
8
|
+
export var ICONS_MAPPING = {
|
|
9
|
+
warning: 'warningFilled',
|
|
10
|
+
success: 'checkmarkCircleFilled',
|
|
11
|
+
error: 'errorCircleFilled',
|
|
12
|
+
information: 'infoFilled',
|
|
13
|
+
discovery: 'infoFilled'
|
|
14
|
+
};
|
|
@@ -1,38 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
import '../../extends-5035bfae.js';
|
|
3
|
-
import 'react';
|
|
4
|
-
import './consts.js';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '../Text/Text.js';
|
|
7
|
-
import '../../utils/helpers.js';
|
|
8
|
-
import 'dayjs';
|
|
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';
|
|
38
|
-
import '../SVGIcons/IconDismissFilled.js';
|
|
1
|
+
export * from './Alert';
|
|
@@ -5,8 +5,8 @@ export type TAlertPosition = 'inline' | 'sticky';
|
|
|
5
5
|
export interface TAlertProps extends IFormCompProps {
|
|
6
6
|
type?: TAlertTypes;
|
|
7
7
|
position?: TAlertPosition;
|
|
8
|
-
text: string |
|
|
9
|
-
subtext: string |
|
|
8
|
+
text: string | React.ReactElement;
|
|
9
|
+
subtext: string | React.ReactElement;
|
|
10
10
|
closeIcon?: boolean;
|
|
11
11
|
onClose: () => void;
|
|
12
12
|
buttonProps?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,105 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
37
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
38
|
-
import '../Button/consts.js';
|
|
39
|
-
import '../../helperComponents/Label/Label.js';
|
|
40
|
-
import '../FileUpload/UploadItems.js';
|
|
41
|
-
import '../../hooks/useFormProps.js';
|
|
42
|
-
import '../../context/types.js';
|
|
43
|
-
import '../../helperComponents/ErrorMessage/ErrorMessage.js';
|
|
44
|
-
import '../SVGIcons/IconDelete.js';
|
|
45
|
-
import '../SVGIcons/IconEditFilled.js';
|
|
46
|
-
import '../SVGIcons/IconEdit.js';
|
|
47
|
-
import '../SVGIcons/IconAttach.js';
|
|
48
|
-
|
|
49
|
-
var Avatar = function Avatar(_ref) {
|
|
50
|
-
var dataId = _ref.dataId,
|
|
51
|
-
id = _ref.id,
|
|
52
|
-
_ref$color = _ref.color,
|
|
53
|
-
color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
54
|
-
_ref$size = _ref.size,
|
|
55
|
-
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
56
|
-
type = _ref.type,
|
|
57
|
-
_ref$imagePath = _ref.imagePath,
|
|
58
|
-
imagePath = _ref$imagePath === void 0 ? '' : _ref$imagePath,
|
|
59
|
-
_ref$initials = _ref.initials,
|
|
60
|
-
initials = _ref$initials === void 0 ? '' : _ref$initials,
|
|
61
|
-
_ref$className = _ref.className,
|
|
62
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
63
|
-
_ref$isEditable = _ref.isEditable,
|
|
64
|
-
isEditable = _ref$isEditable === void 0 ? false : _ref$isEditable,
|
|
65
|
-
_ref$allowedTypes = _ref.allowedTypes,
|
|
66
|
-
allowedTypes = _ref$allowedTypes === void 0 ? '.png, .jpg, .jpeg, image/jpeg, image/png, image/jpg' : _ref$allowedTypes,
|
|
67
|
-
onError = _ref.onError,
|
|
68
|
-
fileAllowedSize = _ref.fileAllowedSize,
|
|
69
|
-
onAvatarChange = _ref.onAvatarChange;
|
|
70
|
-
var _useState = useState(imagePath),
|
|
71
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
72
|
-
image = _useState2[0],
|
|
73
|
-
setImage = _useState2[1];
|
|
74
|
-
var getFiles = function getFiles(files) {
|
|
75
|
-
if (files && files[0]) {
|
|
76
|
-
setImage(URL.createObjectURL(files[0]));
|
|
77
|
-
onAvatarChange === null || onAvatarChange === void 0 || onAvatarChange(files[0]);
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
var style = {
|
|
81
|
-
backgroundImage: image ? "url(".concat(image, ")") : 'none'
|
|
82
|
-
};
|
|
83
|
-
useEffect(function () {
|
|
84
|
-
setImage(imagePath);
|
|
85
|
-
}, [imagePath]);
|
|
86
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
87
|
-
id: id,
|
|
88
|
-
"data-id": dataId,
|
|
89
|
-
className: classNames("avatar avatar--".concat(color, " avatar--").concat(type, " avatar--").concat(size), className, {
|
|
90
|
-
'avatar--image': image,
|
|
91
|
-
'avatar--edit': isEditable
|
|
92
|
-
}),
|
|
93
|
-
style: style
|
|
94
|
-
}, !image ? initials : null, isEditable && /*#__PURE__*/React.createElement(FileUpload, {
|
|
95
|
-
onError: onError,
|
|
96
|
-
fileAllowedSize: fileAllowedSize,
|
|
97
|
-
multiple: false,
|
|
98
|
-
withFilePreview: false,
|
|
99
|
-
getFiles: getFiles,
|
|
100
|
-
allowedTypes: allowedTypes,
|
|
101
|
-
mode: FileUploadMode.edit
|
|
102
|
-
}));
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export { Avatar };
|
|
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 { useEffect, useState } from 'react';
|
|
14
|
+
import classNames from 'classnames';
|
|
15
|
+
import { FileUpload, FileUploadMode } from '../FileUpload';
|
|
16
|
+
export var Avatar = function (_a) {
|
|
17
|
+
var dataId = _a.dataId, id = _a.id, _b = _a.color, color = _b === void 0 ? 'default' : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, type = _a.type, _d = _a.imagePath, imagePath = _d === void 0 ? '' : _d, _e = _a.initials, initials = _e === void 0 ? '' : _e, _f = _a.className, className = _f === void 0 ? '' : _f, _g = _a.isEditable, isEditable = _g === void 0 ? false : _g, _h = _a.allowedTypes, allowedTypes = _h === void 0 ? '.png, .jpg, .jpeg, image/jpeg, image/png, image/jpg' : _h, onError = _a.onError, fileAllowedSize = _a.fileAllowedSize, onAvatarChange = _a.onAvatarChange;
|
|
18
|
+
var _j = useState(imagePath), image = _j[0], setImage = _j[1];
|
|
19
|
+
var getFiles = function (files) {
|
|
20
|
+
if (files && files[0]) {
|
|
21
|
+
setImage(URL.createObjectURL(files[0]));
|
|
22
|
+
onAvatarChange === null || onAvatarChange === void 0 ? void 0 : onAvatarChange(files[0]);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var style = {
|
|
26
|
+
backgroundImage: image ? "url(".concat(image, ")") : 'none'
|
|
27
|
+
};
|
|
28
|
+
useEffect(function () {
|
|
29
|
+
setImage(imagePath);
|
|
30
|
+
}, [imagePath]);
|
|
31
|
+
return (_jsxs("div", __assign({ id: id, "data-id": dataId, className: classNames("avatar avatar--".concat(color, " avatar--").concat(type, " avatar--").concat(size), className, {
|
|
32
|
+
'avatar--image': image,
|
|
33
|
+
'avatar--edit': isEditable
|
|
34
|
+
}), style: style }, { children: [!image ? initials : null, isEditable && (_jsx(FileUpload, { onError: onError, fileAllowedSize: fileAllowedSize, multiple: false, withFilePreview: false, getFiles: getFiles, allowedTypes: allowedTypes, mode: FileUploadMode.edit }))] })));
|
|
35
|
+
};
|
|
@@ -1,106 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
15
|
-
import '../../hooks
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
18
|
-
import '
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
import '../SVGIcons/IconDismiss.js';
|
|
35
|
-
import '../Link/Link.js';
|
|
36
|
-
import '../Popover/PopoverDesktop.js';
|
|
37
|
-
import '../SVGIcons/IconInfo.js';
|
|
38
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
39
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
40
|
-
import '../Button/consts.js';
|
|
41
|
-
import '../../helperComponents/Label/Label.js';
|
|
42
|
-
import '../FileUpload/UploadItems.js';
|
|
43
|
-
import '../../hooks/useFormProps.js';
|
|
44
|
-
import '../../context/types.js';
|
|
45
|
-
import '../../helperComponents/ErrorMessage/ErrorMessage.js';
|
|
46
|
-
import '../SVGIcons/IconDelete.js';
|
|
47
|
-
import '../SVGIcons/IconEditFilled.js';
|
|
48
|
-
import '../SVGIcons/IconEdit.js';
|
|
49
|
-
import '../SVGIcons/IconAttach.js';
|
|
50
|
-
|
|
51
|
-
var VISIBLE_AVATARS_AMOUNT = {
|
|
52
|
-
small: 2,
|
|
53
|
-
medium: 4,
|
|
54
|
-
large: 6
|
|
55
|
-
};
|
|
56
|
-
var AvatarGroup = function AvatarGroup(_ref) {
|
|
57
|
-
var _ref$avatarGroup = _ref.avatarGroup,
|
|
58
|
-
avatarGroup = _ref$avatarGroup === void 0 ? [] : _ref$avatarGroup,
|
|
59
|
-
onAddUser = _ref.onAddUser,
|
|
60
|
-
_ref$size = _ref.size,
|
|
61
|
-
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
62
|
-
_ref$maxCount = _ref.maxCount,
|
|
63
|
-
maxCount = _ref$maxCount === void 0 ? 0 : _ref$maxCount,
|
|
64
|
-
dataId = _ref.dataId;
|
|
65
|
-
var screenSize = useScreenSize();
|
|
66
|
-
var visibleAvatarsAmount = maxCount || VISIBLE_AVATARS_AMOUNT[screenSize];
|
|
67
|
-
var visibleAvatars = avatarGroup.slice(0, visibleAvatarsAmount);
|
|
68
|
-
var invisibleAvatarsAmount = avatarGroup.length - visibleAvatarsAmount > 0 ? avatarGroup.length - visibleAvatarsAmount : 0;
|
|
69
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
70
|
-
className: classNames("avatar-group avatar-group--".concat(size))
|
|
71
|
-
}, visibleAvatars.map(function (avatar, index) {
|
|
72
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
73
|
-
className: 'avatar-group__item',
|
|
74
|
-
key: index
|
|
75
|
-
}, avatar.tooltipContent ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
76
|
-
text: avatar.tooltipContent,
|
|
77
|
-
id: "".concat(index),
|
|
78
|
-
position: Positions.TOP_CENTER
|
|
79
|
-
}) : null, /*#__PURE__*/React.createElement(Avatar, {
|
|
80
|
-
dataId: dataId,
|
|
81
|
-
id: "".concat(index),
|
|
82
|
-
size: size,
|
|
83
|
-
initials: avatar.initials,
|
|
84
|
-
imagePath: avatar.imagePath
|
|
85
|
-
}));
|
|
86
|
-
}), invisibleAvatarsAmount ? /*#__PURE__*/React.createElement("div", {
|
|
87
|
-
className: "avatar-group__item"
|
|
88
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
89
|
-
text: 'Name Surname',
|
|
90
|
-
id: 'amountTooltip',
|
|
91
|
-
position: Positions.TOP_CENTER
|
|
92
|
-
}), /*#__PURE__*/React.createElement(Avatar, {
|
|
93
|
-
type: 'count',
|
|
94
|
-
size: size,
|
|
95
|
-
id: 'amountTooltip',
|
|
96
|
-
initials: "+".concat(invisibleAvatarsAmount)
|
|
97
|
-
})) : null, onAddUser ? /*#__PURE__*/React.createElement("div", {
|
|
98
|
-
className: classNames("avatar avatar-group__add avatar--".concat(size)),
|
|
99
|
-
onClick: onAddUser
|
|
100
|
-
}, /*#__PURE__*/React.createElement(IconAdd, {
|
|
101
|
-
type: "disabled",
|
|
102
|
-
size: size
|
|
103
|
-
})) : null);
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export { AvatarGroup };
|
|
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 { Tooltip } from '../Tooltip';
|
|
14
|
+
import { Avatar } from './Avatar';
|
|
15
|
+
import { useScreenSize } from '../../hooks';
|
|
16
|
+
import classNames from 'classnames';
|
|
17
|
+
import { Positions } from '../Tooltip/types';
|
|
18
|
+
import { IconAdd } from '../SVGIcons/IconAdd';
|
|
19
|
+
var VISIBLE_AVATARS_AMOUNT = {
|
|
20
|
+
small: 2,
|
|
21
|
+
medium: 4,
|
|
22
|
+
large: 6
|
|
23
|
+
};
|
|
24
|
+
export var AvatarGroup = function (_a) {
|
|
25
|
+
var _b = _a.avatarGroup, avatarGroup = _b === void 0 ? [] : _b, onAddUser = _a.onAddUser, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.maxCount, maxCount = _d === void 0 ? 0 : _d, dataId = _a.dataId;
|
|
26
|
+
var screenSize = useScreenSize();
|
|
27
|
+
var visibleAvatarsAmount = maxCount || VISIBLE_AVATARS_AMOUNT[screenSize];
|
|
28
|
+
var visibleAvatars = avatarGroup.slice(0, visibleAvatarsAmount);
|
|
29
|
+
var invisibleAvatarsAmount = avatarGroup.length - visibleAvatarsAmount > 0 ? avatarGroup.length - visibleAvatarsAmount : 0;
|
|
30
|
+
return (_jsxs("div", __assign({ className: classNames("avatar-group avatar-group--".concat(size)) }, { children: [visibleAvatars.map(function (avatar, index) {
|
|
31
|
+
return (_jsxs("div", __assign({ className: 'avatar-group__item' }, { children: [avatar.tooltipContent ? (_jsx(Tooltip, { text: avatar.tooltipContent, id: "".concat(index), position: Positions.TOP_CENTER })) : null, _jsx(Avatar, { dataId: dataId, id: "".concat(index), size: size, initials: avatar.initials, imagePath: avatar.imagePath })] }), index));
|
|
32
|
+
}), invisibleAvatarsAmount ? (_jsxs("div", __assign({ className: "avatar-group__item" }, { children: [_jsx(Tooltip, { text: 'Name Surname', id: 'amountTooltip', position: Positions.TOP_CENTER }), _jsx(Avatar, { type: 'count', size: size, id: 'amountTooltip', initials: "+".concat(invisibleAvatarsAmount) })] }))) : null, onAddUser ? (_jsx("div", __assign({ className: classNames("avatar avatar-group__add avatar--".concat(size)), onClick: onAddUser }, { children: _jsx(IconAdd, { type: "disabled", size: size }) }))) : null] })));
|
|
33
|
+
};
|
|
@@ -1,50 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
import '../../slicedToArray-db090d3f.js';
|
|
4
|
-
import 'react';
|
|
5
|
-
import 'classnames';
|
|
6
|
-
import '../FileUpload/FileUpload.js';
|
|
7
|
-
import '../../toConsumableArray-ca50aae5.js';
|
|
8
|
-
import '../FileUpload/types.js';
|
|
9
|
-
import '../../Button-fc1714ff.js';
|
|
10
|
-
import '../../extends-5035bfae.js';
|
|
11
|
-
import '../../defineProperty-8cb9aeda.js';
|
|
12
|
-
import '../../typeof-fcb34f52.js';
|
|
13
|
-
import '../../objectWithoutProperties-2070b5a0.js';
|
|
14
|
-
import 'dayjs';
|
|
15
|
-
import '../../helperComponents/Loader/Loader.js';
|
|
16
|
-
import '../../consts/index.js';
|
|
17
|
-
import '../../hooks/useScreenSize.js';
|
|
18
|
-
import 'react-hook-form';
|
|
19
|
-
import '../../hooks/useGetIsMobile.js';
|
|
20
|
-
import 'framer-motion';
|
|
21
|
-
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
22
|
-
import '../../hooks/useOnOutsideClick.js';
|
|
23
|
-
import '../../hooks/useHideBodyScroll.js';
|
|
24
|
-
import 'react-syntax-highlighter';
|
|
25
|
-
import '../SVGIcons/IconDismiss.js';
|
|
26
|
-
import '../Tooltip/types.js';
|
|
27
|
-
import '../Text/Text.js';
|
|
28
|
-
import '../../utils/helpers.js';
|
|
29
|
-
import '../Tooltip/Tooltip.js';
|
|
30
|
-
import '../../hooks/useGetTooltipStyles.js';
|
|
31
|
-
import '../../hooks/useGetElemSizes.js';
|
|
32
|
-
import '../../hooks/useGetElemPositions.js';
|
|
33
|
-
import '../../hooks/useGetTooltipPosition.js';
|
|
34
|
-
import '../../hooks/useHideOnScroll.js';
|
|
35
|
-
import '../Link/Link.js';
|
|
36
|
-
import '../Popover/PopoverDesktop.js';
|
|
37
|
-
import '../SVGIcons/IconInfo.js';
|
|
38
|
-
import '../../helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
39
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
40
|
-
import '../Button/consts.js';
|
|
41
|
-
import '../../helperComponents/Label/Label.js';
|
|
42
|
-
import '../FileUpload/UploadItems.js';
|
|
43
|
-
import '../../hooks/useFormProps.js';
|
|
44
|
-
import '../../context/types.js';
|
|
45
|
-
import '../../helperComponents/ErrorMessage/ErrorMessage.js';
|
|
46
|
-
import '../SVGIcons/IconDelete.js';
|
|
47
|
-
import '../SVGIcons/IconEditFilled.js';
|
|
48
|
-
import '../SVGIcons/IconEdit.js';
|
|
49
|
-
import '../SVGIcons/IconAttach.js';
|
|
50
|
-
import '../SVGIcons/IconAdd.js';
|
|
1
|
+
export * from './Avatar';
|
|
2
|
+
export * from './AvatarGroup';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}, text ?
|
|
18
|
-
|
|
19
|
-
type: type == 'secondary' ? 'primary' : 'inverse',
|
|
20
|
-
className: "badge__inner"
|
|
21
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, text)) : null);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { Badge };
|
|
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 { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { Text } from '../Text';
|
|
14
|
+
import classNames from 'classnames';
|
|
15
|
+
export var Badge = function (props) {
|
|
16
|
+
var _a = props.type, type = _a === void 0 ? 'primary' : _a, _b = props.size, size = _b === void 0 ? 'large' : _b, text = props.text, _c = props.className, className = _c === void 0 ? '' : _c;
|
|
17
|
+
return (_jsx("div", __assign({ className: classNames("badge badge--".concat(type, " badge--").concat(size), className) }, { children: text ? (_jsx(Text, __assign({ size: "xsmall", type: type == 'secondary' ? 'primary' : 'inverse', className: "badge__inner" }, { children: _jsx(_Fragment, { children: text }) }))) : null })));
|
|
18
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|