hrm_ui_lib 2.1.0-alpha.16 → 2.1.0-alpha.17
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 +11 -6
- package/components/Alert/consts.js +15 -1
- package/components/Alert/index.js +1 -1
- package/components/Alert/types.js +1 -0
- package/components/Avatar/Avatar.js +24 -2
- package/components/Avatar/AvatarGroup.js +21 -5
- package/components/Avatar/index.js +2 -1
- package/components/Avatar/types.js +1 -0
- package/components/Badge/Badge.js +7 -2
- package/components/Badge/index.js +1 -1
- package/components/Badge/types.js +1 -0
- package/components/BadgeV2/BadgeV2.js +14 -1
- package/components/BadgeV2/index.js +1 -1
- package/components/BadgeV2/types.js +5 -1
- package/components/Breadcrumb/Breadcrumb.js +7 -2
- package/components/Breadcrumb/index.js +1 -1
- package/components/Breadcrumb/types.js +1 -0
- package/components/Button/Button.js +31 -2
- package/components/Button/consts.js +14 -1
- package/components/Button/index.js +1 -1
- package/components/Button/types.js +1 -0
- package/components/ButtonGroup/ButtonGroup.js +16 -2
- package/components/ButtonGroup/ButtonGroupItem.js +23 -3
- package/components/ButtonGroup/consts.js +10 -1
- package/components/ButtonGroup/index.js +1 -1
- package/components/ButtonGroup/types.js +1 -0
- package/components/Card/Card.js +30 -1
- package/components/Card/CardComponent/Card.js +13 -3
- package/components/Card/CardComponent/CardBody.js +9 -2
- package/components/Card/CardComponent/CardFooter.js +6 -1
- package/components/Card/CardComponent/CardHead.js +23 -2
- package/components/Card/CardContext.js +6 -1
- package/components/Card/index.js +1 -1
- package/components/Card/types.js +1 -0
- package/components/CardGroup/CardGroup.js +24 -1
- package/components/CardGroup/CardGroupComponent/CardBody.js +8 -2
- package/components/CardGroup/CardGroupComponent/CardGroup.js +9 -2
- package/components/CardGroup/CardGroupComponent/CardHead.js +9 -3
- package/components/CardGroup/CardGroupContext.js +3 -1
- package/components/CardGroup/index.js +1 -1
- package/components/CardGroup/types.js +1 -0
- package/components/Checkbox/Checkbox.js +44 -6
- package/components/Checkbox/consts.js +4 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Checkbox/types.js +1 -0
- package/components/Chips/Chips.js +25 -2
- package/components/Chips/consts.js +12 -1
- package/components/Chips/index.js +1 -1
- package/components/Chips/types.js +5 -1
- package/components/Collapse/Collapse/Collapse.js +19 -5
- package/components/Collapse/Collapse/Title.js +16 -2
- package/components/Collapse/CollapseGroup/CollapseGroup.js +25 -3
- package/components/Collapse/CollapseItem/CollapseItem.js +14 -10
- package/components/Collapse/index.js +3 -1
- package/components/Collapse/types.js +1 -0
- package/components/Container/Container.js +5 -2
- package/components/Container/index.js +1 -1
- package/components/Container/types.js +1 -0
- package/components/Copy/Copy.js +16 -3
- package/components/Copy/index.js +1 -1
- package/components/Copy/types.js +1 -0
- package/components/Counter/Counter.js +57 -2
- package/components/Counter/index.js +1 -1
- package/components/Counter/types.js +1 -0
- package/components/DarkModeSwitcher/DarkModeSwitcher.js +15 -5
- package/components/DarkModeSwitcher/index.js +1 -1
- package/components/DarkModeSwitcher/types.js +5 -1
- package/components/DatePicker/CustomHeader/CustomHeader.js +17 -7
- package/components/DatePicker/CustomHeader/helpers.js +11 -1
- package/components/DatePicker/RangeDatePicker/RangeDatePicker.js +8 -1
- package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +76 -4
- package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +90 -8
- package/components/DatePicker/RangeDatePicker/index.js +1 -1
- package/components/DatePicker/SimpleDatePicker/SimpleDatePicker.js +10 -1
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +48 -4
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +48 -5
- package/components/DatePicker/SimpleDatePicker/index.js +1 -1
- package/components/DatePicker/TimePicker/MobileModalContent.js +34 -4
- package/components/DatePicker/TimePicker/TimePicker.js +8 -1
- package/components/DatePicker/TimePicker/TimePickerDesktop.js +67 -4
- package/components/DatePicker/TimePicker/TimePickerMobile.js +29 -5
- package/components/DatePicker/TimePicker/consts.js +5 -1
- package/components/DatePicker/TimePicker/helpers.js +11 -1
- package/components/DatePicker/TimePicker/index.js +1 -1
- package/components/DatePicker/hooks.js +37 -1
- package/components/DatePicker/index.js +3 -1
- package/components/DatePicker/localization.js +44 -1
- package/components/DatePicker/types.js +5 -1
- package/components/Divider/Divider.js +9 -2
- package/components/Divider/index.js +1 -1
- package/components/Divider/types.js +1 -0
- package/components/Empty/Empty.js +11 -4
- package/components/Empty/index.js +1 -1
- package/components/Empty/types.js +1 -0
- package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +67 -7
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +21 -1
- package/components/FileUpload/DropzoneFileUpload/FilePreview.js +24 -2
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +30 -7
- package/components/FileUpload/DropzoneFileUpload/helpers.js +79 -1
- package/components/FileUpload/DropzoneFileUpload/index.js +1 -1
- package/components/FileUpload/FileUpload.js +70 -6
- package/components/FileUpload/UploadItems.js +23 -6
- package/components/FileUpload/index.js +3 -1
- package/components/FileUpload/types.js +6 -1
- package/components/FormContainer/FormContainer.js +53 -1
- package/components/FormContainer/index.js +1 -1
- package/components/FormContainer/types.js +1 -0
- package/components/FormField/FormField.js +21 -3
- package/components/FormField/index.js +1 -1
- package/components/FormField/types.js +1 -0
- package/components/Heading/Heading.js +7 -2
- package/components/Heading/index.js +1 -1
- package/components/Heading/types.js +1 -0
- package/components/Image/Image.js +13 -1
- package/components/Image/index.js +1 -1
- package/components/Image/types.js +1 -0
- package/components/Input/Input.js +76 -9
- package/components/Input/index.js +1 -1
- package/components/Input/types.js +1 -0
- package/components/Link/Link.js +16 -2
- package/components/Link/index.js +1 -1
- package/components/Link/types.d.ts +3 -0
- package/components/Link/types.js +1 -0
- package/components/Menu/Menu.js +51 -3
- package/components/Menu/NestedMenu.js +52 -3
- package/components/Menu/index.js +2 -1
- package/components/Menu/types.js +1 -0
- package/components/Modal/Modal.js +40 -1
- package/components/Modal/ModalConfirmation.js +23 -3
- package/components/Modal/ModalContent.js +10 -5
- package/components/Modal/index.js +2 -1
- package/components/Modal/types.js +1 -0
- package/components/More/More.js +20 -3
- package/components/More/index.js +1 -1
- package/components/More/types.js +1 -0
- package/components/Pagination/Pagination.js +18 -2
- package/components/Pagination/consts.js +6 -1
- package/components/Pagination/index.js +1 -1
- package/components/Pagination/types.js +1 -0
- package/components/Popover/Popover.js +45 -1
- package/components/Popover/PopoverDesktop.js +18 -1
- package/components/Popover/PopoverMobile.js +8 -3
- package/components/Popover/index.js +1 -1
- package/components/Popover/types.js +1 -0
- package/components/Progress/Progress.js +22 -4
- package/components/Progress/index.js +1 -1
- package/components/Progress/types.js +1 -0
- package/components/ProgressStep/ProgressStep.js +10 -2
- package/components/ProgressStep/Step.js +54 -9
- package/components/ProgressStep/consts.js +7 -1
- package/components/ProgressStep/index.js +1 -1
- package/components/ProgressStep/types.js +5 -1
- package/components/Radio/Radio.js +21 -4
- package/components/Radio/RadioGroup.js +23 -4
- package/components/Radio/index.js +2 -1
- package/components/Radio/types.js +1 -0
- package/components/SVGIcons/IconAdd.js +8 -1
- package/components/SVGIcons/IconAddCircle.js +8 -1
- package/components/SVGIcons/IconAddCircleFilled.js +8 -1
- package/components/SVGIcons/IconAddFilled.js +8 -1
- package/components/SVGIcons/IconAirplaneTakeOff.js +8 -1
- package/components/SVGIcons/IconAirplaneTakeOffFilled.js +8 -1
- package/components/SVGIcons/IconAlert.js +8 -1
- package/components/SVGIcons/IconAlertBadge.js +8 -1
- package/components/SVGIcons/IconAlertBadgeFilled.js +8 -1
- package/components/SVGIcons/IconAlertFilled.js +8 -1
- package/components/SVGIcons/IconAm.js +8 -7
- package/components/SVGIcons/IconAmd.js +8 -1
- package/components/SVGIcons/IconAmdFilled.js +8 -1
- package/components/SVGIcons/IconApple.js +8 -1
- package/components/SVGIcons/IconArrowDown.js +8 -1
- package/components/SVGIcons/IconArrowDownFilled.js +8 -1
- package/components/SVGIcons/IconArrowDownLeft.js +8 -1
- package/components/SVGIcons/IconArrowDownLeftFilled.js +8 -1
- package/components/SVGIcons/IconArrowDownload.js +8 -1
- package/components/SVGIcons/IconArrowDownloadFilled.js +8 -1
- package/components/SVGIcons/IconArrowEnter.js +8 -1
- package/components/SVGIcons/IconArrowEnterFilled.js +8 -1
- package/components/SVGIcons/IconArrowExit.js +8 -1
- package/components/SVGIcons/IconArrowExitFilled.js +8 -1
- package/components/SVGIcons/IconArrowExportLeftToRight.js +8 -1
- package/components/SVGIcons/IconArrowExportLeftToRightFilled.js +8 -1
- package/components/SVGIcons/IconArrowExportRightToLeft.js +8 -1
- package/components/SVGIcons/IconArrowExportRightToLeftFilled.js +8 -1
- package/components/SVGIcons/IconArrowExportUp.js +8 -1
- package/components/SVGIcons/IconArrowExportUpFilled.js +8 -1
- package/components/SVGIcons/IconArrowImport.js +8 -1
- package/components/SVGIcons/IconArrowImportFilled.js +8 -1
- package/components/SVGIcons/IconArrowLeft.js +8 -1
- package/components/SVGIcons/IconArrowLeftFilled.js +8 -1
- package/components/SVGIcons/IconArrowRepeatAll.js +8 -1
- package/components/SVGIcons/IconArrowRepeatAllFilled.js +8 -1
- package/components/SVGIcons/IconArrowReset.js +8 -1
- package/components/SVGIcons/IconArrowResetFilled.js +8 -1
- package/components/SVGIcons/IconArrowRight.js +8 -1
- package/components/SVGIcons/IconArrowRightFilled.js +8 -1
- package/components/SVGIcons/IconArrowSort.js +8 -1
- package/components/SVGIcons/IconArrowSortFilled.js +8 -1
- package/components/SVGIcons/IconArrowSync.js +8 -1
- package/components/SVGIcons/IconArrowSyncFilled.js +8 -1
- package/components/SVGIcons/IconArrowUp.js +8 -1
- package/components/SVGIcons/IconArrowUpFilled.js +8 -1
- package/components/SVGIcons/IconArrowUpLeft.js +8 -1
- package/components/SVGIcons/IconArrowUpLeftFilled.js +8 -1
- package/components/SVGIcons/IconArrowUpRight.js +8 -1
- package/components/SVGIcons/IconArrowUpRightFilled.js +8 -1
- package/components/SVGIcons/IconAttach.js +8 -1
- package/components/SVGIcons/IconAttachFilled.js +8 -1
- package/components/SVGIcons/IconBeach.js +8 -1
- package/components/SVGIcons/IconBeachFilled.js +8 -1
- package/components/SVGIcons/IconBook.js +8 -1
- package/components/SVGIcons/IconBookFilled.js +8 -1
- package/components/SVGIcons/IconBookmark.js +8 -1
- package/components/SVGIcons/IconBookmarkFilled.js +8 -1
- package/components/SVGIcons/IconBriefcase.js +8 -1
- package/components/SVGIcons/IconBriefcaseFilled.js +8 -1
- package/components/SVGIcons/IconBudgetTransfer.js +8 -7
- package/components/SVGIcons/IconBuilding.js +8 -7
- package/components/SVGIcons/IconBuildingBank.js +8 -1
- package/components/SVGIcons/IconBuildingBankFilled.js +8 -1
- package/components/SVGIcons/IconBuildingFilled.js +8 -1
- package/components/SVGIcons/IconBulletListAdd.js +8 -1
- package/components/SVGIcons/IconBulletListAddFilled.js +8 -1
- package/components/SVGIcons/IconCalculator.js +8 -1
- package/components/SVGIcons/IconCalculatorFilled.js +8 -1
- package/components/SVGIcons/IconCalendarClock.js +8 -1
- package/components/SVGIcons/IconCalendarClockFilled.js +8 -1
- package/components/SVGIcons/IconCalendarDay.js +8 -1
- package/components/SVGIcons/IconCalendarDayFilled.js +8 -1
- package/components/SVGIcons/IconCalendarEmpty.js +8 -1
- package/components/SVGIcons/IconCalendarLeft.js +8 -1
- package/components/SVGIcons/IconCalendarLeftFilled.js +8 -1
- package/components/SVGIcons/IconCalendarRight.js +8 -1
- package/components/SVGIcons/IconCalendarRightFilled.js +8 -1
- package/components/SVGIcons/IconCall.js +8 -1
- package/components/SVGIcons/IconCallFilled.js +8 -1
- package/components/SVGIcons/IconCard.js +8 -1
- package/components/SVGIcons/IconCardFilled.js +8 -1
- package/components/SVGIcons/IconCaretDown.js +8 -1
- package/components/SVGIcons/IconCaretDownFilled.js +8 -1
- package/components/SVGIcons/IconCaretDownRight.js +8 -1
- package/components/SVGIcons/IconCaretDownRightFilled.js +8 -1
- package/components/SVGIcons/IconCaretLeft.js +8 -1
- package/components/SVGIcons/IconCaretLeftFilled.js +8 -1
- package/components/SVGIcons/IconCaretRight.js +8 -1
- package/components/SVGIcons/IconCaretRightFilled.js +8 -1
- package/components/SVGIcons/IconCaretUp.js +8 -1
- package/components/SVGIcons/IconCaretUpFilled.js +8 -1
- package/components/SVGIcons/IconChartPerson.js +8 -1
- package/components/SVGIcons/IconChartPersonFilled.js +8 -1
- package/components/SVGIcons/IconChat.js +8 -1
- package/components/SVGIcons/IconChatFilled.js +8 -1
- package/components/SVGIcons/IconChatMultiple.js +8 -1
- package/components/SVGIcons/IconChatMultipleFilled.js +8 -1
- package/components/SVGIcons/IconCheckboxArrowRight.js +8 -1
- package/components/SVGIcons/IconCheckboxArrowRightFilled.js +8 -1
- package/components/SVGIcons/IconCheckmark.js +8 -1
- package/components/SVGIcons/IconCheckmarkCircle.js +8 -1
- package/components/SVGIcons/IconCheckmarkCircleFilled.js +8 -1
- package/components/SVGIcons/IconCheckmarkFilled.js +8 -1
- package/components/SVGIcons/IconChevronDoubleLeft.js +8 -1
- package/components/SVGIcons/IconChevronDoubleRight.js +8 -1
- package/components/SVGIcons/IconChevronDown.js +8 -1
- package/components/SVGIcons/IconChevronDownFilled.js +8 -1
- package/components/SVGIcons/IconChevronLeft.js +8 -1
- package/components/SVGIcons/IconChevronLeftFilled.js +8 -1
- package/components/SVGIcons/IconChevronRight.js +8 -1
- package/components/SVGIcons/IconChevronRightFilled.js +8 -1
- package/components/SVGIcons/IconChevronUp.js +8 -1
- package/components/SVGIcons/IconChevronUpDown.js +8 -1
- package/components/SVGIcons/IconChevronUpDownFilled.js +8 -1
- package/components/SVGIcons/IconChevronUpFilled.js +8 -1
- package/components/SVGIcons/IconClipboardDay.js +8 -1
- package/components/SVGIcons/IconClock.js +8 -1
- package/components/SVGIcons/IconClockDismiss.js +8 -1
- package/components/SVGIcons/IconClockDismissFilled.js +8 -1
- package/components/SVGIcons/IconClockFilled.js +8 -1
- package/components/SVGIcons/IconComment.js +8 -1
- package/components/SVGIcons/IconCommentFilled.js +8 -1
- package/components/SVGIcons/IconContractCard.js +8 -1
- package/components/SVGIcons/IconContractCardFilled.js +8 -1
- package/components/SVGIcons/IconCopy.js +8 -1
- package/components/SVGIcons/IconCopyFilled.js +8 -1
- package/components/SVGIcons/IconCubeTree.js +8 -1
- package/components/SVGIcons/IconCubeTreeFilled.js +8 -1
- package/components/SVGIcons/IconDatabase.js +8 -1
- package/components/SVGIcons/IconDatabaseFilled.js +8 -1
- package/components/SVGIcons/IconDelete.js +8 -1
- package/components/SVGIcons/IconDeleteFilled.js +8 -1
- package/components/SVGIcons/IconDeviceMeetingRoom.js +8 -1
- package/components/SVGIcons/IconDeviceMeetingRoomFilled.js +8 -1
- package/components/SVGIcons/IconDismiss.js +8 -1
- package/components/SVGIcons/IconDismissCircle.js +8 -1
- package/components/SVGIcons/IconDismissCircleFilled.js +8 -1
- package/components/SVGIcons/IconDismissFilled.js +8 -1
- package/components/SVGIcons/IconDocument.js +8 -1
- package/components/SVGIcons/IconDocumentBulletList.js +8 -1
- package/components/SVGIcons/IconDocumentBulletListFilled.js +8 -1
- package/components/SVGIcons/IconDocumentEdit.js +8 -1
- package/components/SVGIcons/IconDocumentEditFilled.js +8 -1
- package/components/SVGIcons/IconDocumentFilled.js +8 -1
- package/components/SVGIcons/IconDocumentPerson.js +8 -1
- package/components/SVGIcons/IconEdit.js +8 -1
- package/components/SVGIcons/IconEditFilled.js +8 -1
- package/components/SVGIcons/IconErrorCircle.js +8 -1
- package/components/SVGIcons/IconErrorCircleFilled.js +8 -1
- package/components/SVGIcons/IconEur.js +8 -1
- package/components/SVGIcons/IconEurFilled.js +8 -1
- package/components/SVGIcons/IconExpandUpLeft.js +8 -1
- package/components/SVGIcons/IconExpandUpLeftFilled.js +8 -1
- package/components/SVGIcons/IconExpandUpRight.js +8 -1
- package/components/SVGIcons/IconExpandUpRightFilled.js +8 -1
- package/components/SVGIcons/IconEyeOff.js +8 -1
- package/components/SVGIcons/IconEyeOffFilled.js +8 -1
- package/components/SVGIcons/IconEyeOn.js +8 -1
- package/components/SVGIcons/IconEyeOnFilled.js +8 -1
- package/components/SVGIcons/IconFacebook.js +8 -3
- package/components/SVGIcons/IconFastAcceleration.js +8 -1
- package/components/SVGIcons/IconFastAccelerationFilled.js +8 -1
- package/components/SVGIcons/IconFeed.js +8 -1
- package/components/SVGIcons/IconFeedFilled.js +8 -1
- package/components/SVGIcons/IconFilter.js +8 -1
- package/components/SVGIcons/IconFilterFilled.js +8 -1
- package/components/SVGIcons/IconFlag.js +8 -1
- package/components/SVGIcons/IconFlagFilled.js +8 -1
- package/components/SVGIcons/IconFolderLink.js +8 -1
- package/components/SVGIcons/IconFolderLinkFilled.js +8 -1
- package/components/SVGIcons/IconFood.js +8 -1
- package/components/SVGIcons/IconFoodFilled.js +8 -1
- package/components/SVGIcons/IconGb.js +8 -11
- package/components/SVGIcons/IconGlobe.js +8 -1
- package/components/SVGIcons/IconGlobeFilled.js +8 -1
- package/components/SVGIcons/IconGoogle.js +8 -3
- package/components/SVGIcons/IconHandOpenHeart.js +8 -1
- package/components/SVGIcons/IconHandOpenHeartFilled.js +8 -1
- package/components/SVGIcons/IconHeart.js +8 -1
- package/components/SVGIcons/IconHeartFilled.js +8 -1
- package/components/SVGIcons/IconHistory.js +8 -1
- package/components/SVGIcons/IconHistoryFilled.js +8 -1
- package/components/SVGIcons/IconHome.js +8 -1
- package/components/SVGIcons/IconHomeFilled.js +8 -1
- package/components/SVGIcons/IconImage.js +8 -1
- package/components/SVGIcons/IconImageFilled.js +8 -1
- package/components/SVGIcons/IconInfo.js +8 -1
- package/components/SVGIcons/IconInfoFilled.js +8 -1
- package/components/SVGIcons/IconInstagram.js +8 -4
- package/components/SVGIcons/IconKeyReset.js +8 -1
- package/components/SVGIcons/IconKeyResetFilled.js +8 -1
- package/components/SVGIcons/IconLibrary.js +8 -1
- package/components/SVGIcons/IconLibraryFilled.js +8 -1
- package/components/SVGIcons/IconLink.js +8 -1
- package/components/SVGIcons/IconLinkFilled.js +8 -1
- package/components/SVGIcons/IconLinkedin.js +8 -1
- package/components/SVGIcons/IconList.js +8 -1
- package/components/SVGIcons/IconListFilled.js +8 -1
- package/components/SVGIcons/IconLocation.js +8 -1
- package/components/SVGIcons/IconLocationFilled.js +8 -1
- package/components/SVGIcons/IconLockClosed.js +8 -1
- package/components/SVGIcons/IconLockClosedFilled.js +8 -1
- package/components/SVGIcons/IconLockOpen.js +8 -1
- package/components/SVGIcons/IconLockOpenFilled.js +8 -1
- package/components/SVGIcons/IconMail.js +8 -1
- package/components/SVGIcons/IconMailAdd.js +8 -1
- package/components/SVGIcons/IconMailAddFilled.js +8 -1
- package/components/SVGIcons/IconMailArrowForward.js +8 -1
- package/components/SVGIcons/IconMailArrowForwardFilled.js +8 -1
- package/components/SVGIcons/IconMailFilled.js +8 -1
- package/components/SVGIcons/IconMailLink.js +8 -1
- package/components/SVGIcons/IconMailLinkFilled.js +8 -1
- package/components/SVGIcons/IconMedium.js +8 -1
- package/components/SVGIcons/IconMoon.js +8 -1
- package/components/SVGIcons/IconMore.js +8 -1
- package/components/SVGIcons/IconMoreFilled.js +8 -1
- package/components/SVGIcons/IconMoreVertical.js +8 -1
- package/components/SVGIcons/IconMoreVerticalFilled.js +8 -1
- package/components/SVGIcons/IconNavigation.js +8 -1
- package/components/SVGIcons/IconNavigationFilled.js +8 -1
- package/components/SVGIcons/IconNotebook.js +8 -1
- package/components/SVGIcons/IconNotebookAdd.js +8 -7
- package/components/SVGIcons/IconNotebookAddFilled.js +8 -6
- package/components/SVGIcons/IconNotebookFilled.js +8 -1
- package/components/SVGIcons/IconOnlyEmployee.js +8 -1
- package/components/SVGIcons/IconOpen.js +8 -1
- package/components/SVGIcons/IconOpenFilled.js +8 -1
- package/components/SVGIcons/IconPatient.js +8 -1
- package/components/SVGIcons/IconPatientFilled.js +8 -1
- package/components/SVGIcons/IconPeople.js +8 -1
- package/components/SVGIcons/IconPeopleAdd.js +8 -1
- package/components/SVGIcons/IconPeopleAddFilled.js +8 -1
- package/components/SVGIcons/IconPeopleFilled.js +8 -1
- package/components/SVGIcons/IconPeopleList.js +8 -1
- package/components/SVGIcons/IconPeopleListFilled.js +8 -1
- package/components/SVGIcons/IconPeopleTeam.js +8 -1
- package/components/SVGIcons/IconPeopleTeamFilled.js +8 -1
- package/components/SVGIcons/IconPercent.js +8 -1
- package/components/SVGIcons/IconPerson.js +8 -1
- package/components/SVGIcons/IconPersonAccount.js +8 -1
- package/components/SVGIcons/IconPersonAccountFilled.js +8 -1
- package/components/SVGIcons/IconPersonAdd.js +8 -1
- package/components/SVGIcons/IconPersonAddFilled.js +8 -1
- package/components/SVGIcons/IconPersonArrowLeft.js +8 -1
- package/components/SVGIcons/IconPersonArrowLeftFilled.js +8 -1
- package/components/SVGIcons/IconPersonArrowRight.js +8 -1
- package/components/SVGIcons/IconPersonArrowRightFilled.js +8 -1
- package/components/SVGIcons/IconPersonBoard.js +8 -1
- package/components/SVGIcons/IconPersonFilled.js +8 -1
- package/components/SVGIcons/IconPersonMinus.js +8 -1
- package/components/SVGIcons/IconPersonStar.js +8 -1
- package/components/SVGIcons/IconPersonStarFilled.js +8 -1
- package/components/SVGIcons/IconPersonSubtract.js +8 -1
- package/components/SVGIcons/IconPersonSubtractFilled.js +8 -1
- package/components/SVGIcons/IconPhone.js +8 -1
- package/components/SVGIcons/IconPhoneFilled.js +8 -1
- package/components/SVGIcons/IconPlugConnected.js +8 -1
- package/components/SVGIcons/IconPos.js +8 -1
- package/components/SVGIcons/IconPosFilled.js +8 -1
- package/components/SVGIcons/IconProhibited.js +8 -1
- package/components/SVGIcons/IconProhibitedFilled.js +8 -1
- package/components/SVGIcons/IconProjectProduct.js +8 -1
- package/components/SVGIcons/IconQuestion.js +8 -1
- package/components/SVGIcons/IconQuestionFilled.js +8 -1
- package/components/SVGIcons/IconRedo.js +8 -1
- package/components/SVGIcons/IconRedoFilled.js +8 -1
- package/components/SVGIcons/IconRibbon.js +8 -1
- package/components/SVGIcons/IconRu.js +8 -6
- package/components/SVGIcons/IconRub.js +8 -1
- package/components/SVGIcons/IconRubFilled.js +8 -1
- package/components/SVGIcons/IconSave.js +8 -1
- package/components/SVGIcons/IconSaveFilled.js +8 -1
- package/components/SVGIcons/IconSavings.js +8 -1
- package/components/SVGIcons/IconSavingsFilled.js +8 -1
- package/components/SVGIcons/IconSearch.js +8 -1
- package/components/SVGIcons/IconSearchFilled.js +8 -1
- package/components/SVGIcons/IconSelectAllOff.js +8 -1
- package/components/SVGIcons/IconSelectAllOffFilled.js +8 -1
- package/components/SVGIcons/IconSelectAllOn.js +8 -1
- package/components/SVGIcons/IconSelectAllOnFilled.js +8 -1
- package/components/SVGIcons/IconSend.js +8 -1
- package/components/SVGIcons/IconSendFilled.js +8 -1
- package/components/SVGIcons/IconSettings.js +8 -1
- package/components/SVGIcons/IconSettingsFilled.js +8 -1
- package/components/SVGIcons/IconShare.js +8 -1
- package/components/SVGIcons/IconShareAndroid.js +8 -1
- package/components/SVGIcons/IconShareAndroidFilled.js +8 -1
- package/components/SVGIcons/IconShareFilled.js +8 -1
- package/components/SVGIcons/IconSignOut.js +8 -1
- package/components/SVGIcons/IconSignOutFilled.js +8 -1
- package/components/SVGIcons/IconSpinner.js +8 -1
- package/components/SVGIcons/IconSpinnerFilled.js +8 -1
- package/components/SVGIcons/IconStatus.js +8 -1
- package/components/SVGIcons/IconStatusFilled.js +8 -1
- package/components/SVGIcons/IconSubtract.js +8 -1
- package/components/SVGIcons/IconSubtractCircle.js +8 -1
- package/components/SVGIcons/IconSubtractCircleFilled.js +8 -1
- package/components/SVGIcons/IconSubtractFilled.js +8 -1
- package/components/SVGIcons/IconSun.js +8 -10
- package/components/SVGIcons/IconTableCellEdit.js +8 -3
- package/components/SVGIcons/IconTableCellEditFilled.js +8 -5
- package/components/SVGIcons/IconTelegram.js +8 -3
- package/components/SVGIcons/IconTimer.js +8 -1
- package/components/SVGIcons/IconTimerFilled.js +8 -1
- package/components/SVGIcons/IconTrophy.js +8 -1
- package/components/SVGIcons/IconTrophyFilled.js +8 -1
- package/components/SVGIcons/IconTwitter.js +8 -1
- package/components/SVGIcons/IconUndo.js +8 -1
- package/components/SVGIcons/IconUndoFilled.js +8 -1
- package/components/SVGIcons/IconUnitsEmployee.js +8 -1
- package/components/SVGIcons/IconUpload.js +8 -1
- package/components/SVGIcons/IconUs.js +8 -11
- package/components/SVGIcons/IconUsd.js +8 -1
- package/components/SVGIcons/IconUsdFilled.js +8 -1
- package/components/SVGIcons/IconUserMinus.js +8 -1
- package/components/SVGIcons/IconVacation.js +8 -1
- package/components/SVGIcons/IconVideo.js +8 -1
- package/components/SVGIcons/IconVideoFilled.js +8 -1
- package/components/SVGIcons/IconWallet.js +8 -1
- package/components/SVGIcons/IconWalletFilled.js +8 -1
- package/components/SVGIcons/IconWarning.js +8 -1
- package/components/SVGIcons/IconWarningFilled.js +8 -1
- package/components/SVGIcons/IconYoutube.js +8 -1
- package/components/Select/ButtonSelect/ButtonSelect.js +45 -3
- package/components/Select/FilterSelect/FilterDropdown.js +15 -3
- package/components/Select/FilterSelect/FilterGroupDropdown.js +19 -4
- package/components/Select/FilterSelect/FilterSelect.js +72 -4
- package/components/Select/MultiSelect/DesktopWrapper.js +19 -1
- package/components/Select/MultiSelect/MobileWrapper.js +13 -2
- package/components/Select/MultiSelect/MultiBase/MultiBase.js +121 -5
- package/components/Select/MultiSelect/MultiSelect.js +68 -3
- package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +96 -7
- package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +71 -7
- package/components/Select/MultiSelect/OptionsWrapper.js +66 -1
- package/components/Select/NestedSelect/NestedSelect.js +58 -4
- package/components/Select/ProfileDropdown/index.js +13 -10
- package/components/Select/Select/Select.js +129 -1
- package/components/Select/Select/SelectDesktop/index.js +81 -2
- package/components/Select/Select/SelectMobile/MobileTopContent.js +18 -2
- package/components/Select/Select/SelectMobile/index.js +38 -5
- package/components/Select/Select/helpers.js +20 -1
- package/components/Select/SharedComponents/Actions.js +14 -3
- package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.js +9 -3
- package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +29 -3
- package/components/Select/SharedComponents/ContentTop.js +73 -3
- package/components/Select/SharedComponents/Footer.js +12 -6
- package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +52 -3
- package/components/Select/SharedComponents/Loading.js +6 -2
- package/components/Select/SharedComponents/index.js +6 -1
- package/components/Select/constants.js +7 -1
- package/components/Select/helper.js +1 -0
- package/components/Select/index.js +6 -1
- package/components/Select/localization.js +29 -1
- package/components/Select/types.js +1 -0
- package/components/SideSheet/Footer/Footer.js +15 -5
- package/components/SideSheet/SideSheet.js +58 -8
- package/components/SideSheet/index.js +1 -1
- package/components/SideSheet/types.js +1 -0
- package/components/Snackbar/Snackbar.js +30 -5
- package/components/Snackbar/consts.js +14 -1
- package/components/Snackbar/index.js +1 -1
- package/components/Snackbar/types.js +1 -0
- package/components/Status/Status.js +18 -4
- package/components/Status/index.js +1 -1
- package/components/Status/types.js +1 -0
- package/components/Stepper/Stepper.js +29 -2
- package/components/Stepper/index.js +1 -1
- package/components/Stepper/types.js +1 -0
- package/components/Switcher/Switcher.js +22 -5
- package/components/Switcher/index.js +1 -1
- package/components/Switcher/types.js +1 -0
- package/components/Tab/Tab.js +20 -2
- package/components/Tab/TabItem.js +13 -3
- package/components/Tab/index.js +1 -1
- package/components/Tab/types.js +1 -0
- package/components/Table/Header.js +34 -4
- package/components/Table/IndeterminateCheckbox.js +15 -1
- package/components/Table/Row.js +35 -3
- package/components/Table/Table.js +74 -6
- package/components/Table/index.js +1 -1
- package/components/Table/localization.js +11 -1
- package/components/Table/types.js +1 -0
- package/components/Table/utils.js +38 -3
- package/components/TableV2/AdvancedPagination.js +62 -12
- package/components/TableV2/ColumnHeader.js +32 -6
- package/components/TableV2/ColumnSettings.js +33 -8
- package/components/TableV2/IndeterminateCheckbox.js +16 -2
- package/components/TableV2/Table.js +123 -8
- package/components/TableV2/constants/index.js +27 -1
- package/components/TableV2/hooks/useTableColumnSettings.js +17 -1
- package/components/TableV2/hooks/useTableControl.js +186 -1
- package/components/TableV2/index.js +3 -1
- package/components/TableV2/loadTableSettings.js +9 -1
- package/components/TableV2/types.js +1 -0
- package/components/Text/Text.js +7 -2
- package/components/Text/index.js +1 -1
- package/components/Text/types.js +1 -0
- package/components/Textarea/Textarea.js +41 -6
- package/components/Textarea/index.js +1 -1
- package/components/Textarea/types.js +1 -0
- package/components/Tooltip/Tooltip.js +54 -2
- package/components/Tooltip/index.js +1 -1
- package/components/Tooltip/types.js +11 -1
- package/components/UnderConstruction/UnderConstruction.js +11 -6
- package/components/UnderConstruction/index.js +1 -1
- package/components/UnderConstruction/localization.js +14 -1
- package/components/UnderConstruction/types.js +1 -0
- package/consts/index.js +107 -1
- package/context/FormContextProvider.js +6 -1
- package/context/index.js +2 -1
- package/context/types.js +8 -1
- package/helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js +7 -2
- package/helperComponents/AnimatePresenceWrapper/index.js +1 -1
- package/helperComponents/CodeBlock/CodeBlock.js +4 -2
- package/helperComponents/CodeBlock/index.js +1 -1
- package/helperComponents/ErrorMessage/ErrorMessage.js +9 -3
- package/helperComponents/ErrorMessage/consts.js +4 -1
- package/helperComponents/ErrorMessage/index.js +1 -1
- package/helperComponents/ErrorMessage/types.js +1 -0
- package/helperComponents/GoToWebPage/GoToWebPage.js +6 -1
- package/helperComponents/IconDynamicComponent/IconDynamicComponent.js +19 -1
- package/helperComponents/IconDynamicComponent/index.js +1 -1
- package/helperComponents/Label/Label.js +9 -1
- package/helperComponents/Label/index.js +1 -1
- package/helperComponents/Label/types.js +1 -0
- package/helperComponents/Loader/Loader.js +5 -2
- package/helperComponents/Loader/index.js +1 -1
- package/helperComponents/Loader/types.js +1 -0
- package/helperComponents/OptionItem/OptionItem.js +29 -5
- package/helperComponents/OptionItem/index.js +1 -1
- package/helperComponents/OptionItem/types.js +1 -0
- package/helpers/check-authorization.js +60 -1
- package/helpers/current-week-work-days-range.js +9 -1
- package/helpers/download-file.js +8 -1
- package/helpers/format-date.js +21 -1
- package/helpers/get-module-prefix.js +4 -1
- package/helpers/index.js +8 -1
- package/helpers/isDeepEqual.js +12 -1
- package/helpers/locale.js +12 -1
- package/helpers/logout.js +8 -1
- package/helpers/storage.js +19 -1
- package/hooks/index.js +12 -1
- package/hooks/useAnimation.js +33 -1
- package/hooks/useChangePositionsOnScroll.js +30 -1
- package/hooks/useDispatchEventOnScroll.js +9 -1
- package/hooks/useEscapeKey.js +16 -1
- package/hooks/useFieldArray.js +1 -1
- package/hooks/useFormContext.js +5 -1
- package/hooks/useFormProps.js +5 -1
- package/hooks/useGetElemPositions.js +17 -1
- package/hooks/useGetElemSizes.js +14 -1
- package/hooks/useGetHasBottomSpace.js +15 -1
- package/hooks/useGetIsMobile.js +37 -1
- package/hooks/useGetTooltipPosition.js +69 -1
- package/hooks/useGetTooltipStyles.js +47 -1
- package/hooks/useHideBodyScroll.js +26 -1
- package/hooks/useHideOnScroll.js +22 -1
- package/hooks/useOnOutsideClick.js +39 -1
- package/hooks/useScreenSize.js +28 -1
- package/package.json +1 -1
- package/type/file-upload.js +6 -1
- package/type/index.js +5 -1
- package/type/locale.js +12 -1
- package/type/notification.js +7 -1
- package/type/status-code.js +7 -1
- package/type/svg-icons.js +1 -0
- package/utils/helpers.js +83 -1
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ICONS_MAPPING, TYPE_MAPPING } from './consts';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import { Text } from '../Text';
|
|
5
|
+
import { Button } from '../Button';
|
|
6
|
+
import IconDismissFilled from '../SVGIcons/IconDismissFilled';
|
|
7
|
+
import { IconDynamicComponent } from '../../helperComponents/IconDynamicComponent';
|
|
8
|
+
export const Alert = (props) => {
|
|
9
|
+
const { buttonProps, type = 'information', position = 'inline', text, subtext, closeIcon, onClose, className = '' } = props;
|
|
10
|
+
return (_jsx("div", { className: classnames('alert', `alert--${type} alert--${position}`, className), children: _jsxs("div", { className: "alert__content", children: [_jsx(IconDynamicComponent, { Component: ICONS_MAPPING[type], size: "small", type: TYPE_MAPPING[type] }), _jsxs("div", { className: "alert__text pl-8", children: [_jsxs("div", { children: [_jsx(Text, { type: "primary", size: "standard", weight: "regular", lineHeight: "large", children: text }), subtext ? (_jsx(Text, { className: 'mt-4', type: "secondary", size: "small", weight: "regular", lineHeight: "large", children: subtext })) : null] }), buttonProps ? (_jsxs("div", { className: "alert__actions", children: [buttonProps.confirm && (_jsx(Button, Object.assign({ size: "medium", type: "secondary" }, buttonProps.confirm))), buttonProps.cancel && (_jsx(Button, Object.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] }) }));
|
|
11
|
+
};
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
import{lazy
|
|
1
|
+
import { lazy } from 'react';
|
|
2
|
+
export const TYPE_MAPPING = {
|
|
3
|
+
warning: 'warning',
|
|
4
|
+
success: 'success',
|
|
5
|
+
error: 'danger',
|
|
6
|
+
information: 'information',
|
|
7
|
+
discovery: 'discovery'
|
|
8
|
+
};
|
|
9
|
+
export const ICONS_MAPPING = {
|
|
10
|
+
warning: lazy(() => import('../SVGIcons/IconWarningFilled')),
|
|
11
|
+
success: lazy(() => import('../SVGIcons/IconCheckmarkFilled')),
|
|
12
|
+
error: lazy(() => import('../SVGIcons/IconErrorCircleFilled')),
|
|
13
|
+
information: lazy(() => import('../SVGIcons/IconInfoFilled')),
|
|
14
|
+
discovery: lazy(() => import('../SVGIcons/IconInfoFilled'))
|
|
15
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './Alert';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,24 @@
|
|
|
1
|
-
import{
|
|
2
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { FileUpload, FileUploadMode } from '../FileUpload';
|
|
5
|
+
export const Avatar = ({ dataId, id, color = 'default', size = 'medium', type, imagePath = '', initials = '', className = '', isEditable = false, allowedTypes = '.png, .jpg, .jpeg, image/jpeg, image/png, image/jpg', onError, fileAllowedSize, onAvatarChange, onAvatarClick }) => {
|
|
6
|
+
const [image, setImage] = useState(imagePath);
|
|
7
|
+
const getFiles = (files) => {
|
|
8
|
+
if (files && files[0]) {
|
|
9
|
+
setImage(URL.createObjectURL(files[0]));
|
|
10
|
+
onAvatarChange === null || onAvatarChange === void 0 ? void 0 : onAvatarChange(files[0]);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
const style = {
|
|
14
|
+
backgroundImage: image ? `url(${image})` : 'none'
|
|
15
|
+
};
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
setImage(imagePath);
|
|
18
|
+
}, [imagePath]);
|
|
19
|
+
return (_jsxs("div", { id: id, "data-id": dataId, className: classNames(`avatar avatar--${color} avatar--${type} avatar--${size}`, className, {
|
|
20
|
+
'avatar--edit': isEditable
|
|
21
|
+
}), children: [_jsx("div", { className: classNames({
|
|
22
|
+
'avatar--image': image
|
|
23
|
+
}), onClick: onAvatarClick, style: style }), !image ? initials : null, isEditable && (_jsx(FileUpload, { onError: onError, fileAllowedSize: fileAllowedSize, multiple: false, withFilePreview: false, getFiles: getFiles, allowedTypes: allowedTypes, mode: FileUploadMode.edit }))] }));
|
|
24
|
+
};
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
import{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip } from '../Tooltip';
|
|
3
|
+
import { Avatar } from './Avatar';
|
|
4
|
+
import { useScreenSize } from '../../hooks';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
import { Positions } from '../Tooltip/types';
|
|
7
|
+
import IconAdd from '../SVGIcons/IconAdd';
|
|
8
|
+
const VISIBLE_AVATARS_AMOUNT = {
|
|
9
|
+
small: 2,
|
|
10
|
+
medium: 4,
|
|
11
|
+
large: 6
|
|
12
|
+
};
|
|
13
|
+
export const AvatarGroup = ({ avatarGroup = [], onAddUser, size = 'medium', maxCount = 0, dataId }) => {
|
|
14
|
+
const screenSize = useScreenSize();
|
|
15
|
+
const visibleAvatarsAmount = maxCount || VISIBLE_AVATARS_AMOUNT[screenSize];
|
|
16
|
+
const visibleAvatars = avatarGroup.slice(0, visibleAvatarsAmount);
|
|
17
|
+
const invisibleAvatarsAmount = avatarGroup.length - visibleAvatarsAmount > 0 ? avatarGroup.length - visibleAvatarsAmount : 0;
|
|
18
|
+
return (_jsxs("div", { className: classNames(`avatar-group avatar-group--${size}`), children: [visibleAvatars.map((avatar, index) => {
|
|
19
|
+
return (_jsxs("div", { className: 'avatar-group__item', children: [avatar.tooltipContent ? (_jsx(Tooltip, { text: avatar.tooltipContent, id: `${index}`, position: Positions.TOP_CENTER })) : null, _jsx(Avatar, { dataId: dataId, id: `${index}`, size: size, initials: avatar.initials, imagePath: avatar.imagePath })] }, index));
|
|
20
|
+
}), invisibleAvatarsAmount ? (_jsxs("div", { 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: `+${invisibleAvatarsAmount}` })] })) : null, onAddUser ? (_jsx("div", { className: classNames(`avatar avatar-group__add avatar--${size}`), onClick: onAddUser, children: _jsx(IconAdd, { type: "disabled", size: size }) })) : null] }));
|
|
21
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './Avatar';
|
|
2
|
+
export * from './AvatarGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import{
|
|
2
|
-
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Text } from '../Text';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
export const Badge = (props) => {
|
|
5
|
+
const { type = 'primary', size = 'large', text, className = '' } = props;
|
|
6
|
+
return (_jsx("div", { className: classNames(`badge badge--${type} badge--${size}`, className), children: text ? (_jsx(Text, { size: "xsmall", type: type == 'secondary' ? 'primary' : 'inverse', className: "badge__inner", children: _jsx(_Fragment, { children: text }) })) : null }));
|
|
7
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './Badge';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Text } from '../Text';
|
|
4
|
+
import { BadgeSize } from './types';
|
|
5
|
+
import classNames from 'classnames';
|
|
6
|
+
export const BadgeV2 = (props) => {
|
|
7
|
+
const { type = 'blue', style = 'filled', size = BadgeSize.large, text, className = '', iconProps, withDot, dot, disabled } = props;
|
|
8
|
+
const { size: iconSize = 'small', type: iconType, alignment: iconAlignment = 'left' } = iconProps !== null && iconProps !== void 0 ? iconProps : {};
|
|
9
|
+
const baseClassName = classNames(`badge-v2 badge-v2--${type} badge-v2--${style} badge-v2--${size}`, { 'badge-v2--disabled': disabled }, className);
|
|
10
|
+
if (dot) {
|
|
11
|
+
return _jsx("div", { className: classNames(baseClassName, 'badge-v2--dot') });
|
|
12
|
+
}
|
|
13
|
+
return (_jsxs("div", { className: baseClassName, children: [withDot ? (_jsx("div", { className: classNames(baseClassName, 'badge-v2--dot badge-v2--with-dot') })) : null, !withDot && iconProps && iconAlignment === 'left' ? (_jsx(iconProps.Component, { size: iconSize, type: iconType })) : null, typeof text === 'string' || typeof text === 'number' ? (_jsx(Text, { size: "xsmall", className: "badge-v2__inner", children: text })) : React.isValidElement(text) ? (text) : null, !withDot && iconProps && iconAlignment === 'right' ? (_jsx(iconProps.Component, { size: iconSize, type: iconType })) : null] }));
|
|
14
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './BadgeV2';
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export const Breadcrumb = (props) => {
|
|
3
|
+
const { selectedValue, breadCrumbItems, className = '', onSelect } = props;
|
|
4
|
+
return (_jsx("div", { className: `breadcrumb ${className}`, children: breadCrumbItems.map((itemInfo) => {
|
|
5
|
+
return (_jsx("span", { className: "breadcrumb__item", children: _jsx("span", { className: `breadcrumb__item__inner ${selectedValue === itemInfo.value ? 'selected' : ''}`, onClick: () => onSelect(itemInfo.value), children: itemInfo.label }) }, itemInfo.value));
|
|
6
|
+
}) }));
|
|
7
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './Breadcrumb';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import classnames from 'classnames';
|
|
14
|
+
import { Loader } from '../../helperComponents/Loader';
|
|
15
|
+
import { ICON_SIZE_MAPPING, ICON_TYPE_MAPPING, LITE_LOADER_TYPES } from './consts';
|
|
16
|
+
export const Button = (props) => {
|
|
17
|
+
const { buttonText, type = 'primary', size = 'large', className = '', iconProps, buttonActionType = 'button', disabled, pressed, isLoading, formId, dataId = '', onClick, refHandler = null, children } = props, rest = __rest(props, ["buttonText", "type", "size", "className", "iconProps", "buttonActionType", "disabled", "pressed", "isLoading", "formId", "dataId", "onClick", "refHandler", "children"]);
|
|
18
|
+
const justIcon = !buttonText && !children && iconProps !== undefined;
|
|
19
|
+
const clickHandler = (e) => {
|
|
20
|
+
if (pressed || disabled || isLoading) {
|
|
21
|
+
e.preventDefault();
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
25
|
+
};
|
|
26
|
+
return (_jsx("button", Object.assign({ ref: refHandler, "data-id": dataId, disabled: disabled, type: buttonActionType, className: classnames('btn', `btn--${type}`, `btn--${size}`, {
|
|
27
|
+
pressed: pressed,
|
|
28
|
+
'btn--icon': justIcon,
|
|
29
|
+
[`btn--icon-${(iconProps === null || iconProps === void 0 ? void 0 : iconProps.alignment) || 'left'}`]: !isLoading && !justIcon && (iconProps === null || iconProps === void 0 ? void 0 : iconProps.Component)
|
|
30
|
+
}, 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[iconProps.size || size], type: ICON_TYPE_MAPPING[iconProps.type || type], className: "btn__icon" })) : null, buttonText || children ? (_jsx("span", { className: "btn__text", children: buttonText || children })) : null] })) })));
|
|
31
|
+
};
|
|
@@ -1 +1,14 @@
|
|
|
1
|
-
const
|
|
1
|
+
export const LITE_LOADER_TYPES = ['primary', 'danger'];
|
|
2
|
+
export const ICON_SIZE_MAPPING = {
|
|
3
|
+
large: 'small',
|
|
4
|
+
medium: 'small',
|
|
5
|
+
small: 'xsmall'
|
|
6
|
+
};
|
|
7
|
+
export const ICON_TYPE_MAPPING = {
|
|
8
|
+
primary: 'inverse',
|
|
9
|
+
secondary: 'secondary',
|
|
10
|
+
tertiary: 'primary',
|
|
11
|
+
danger: 'inverse',
|
|
12
|
+
text: 'information',
|
|
13
|
+
link: 'selected'
|
|
14
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './Button';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { ButtonGroupItem } from './ButtonGroupItem';
|
|
5
|
+
export const ButtonGroup = ({ buttons, activeIndex = 0, className, type, size, disabled, onTabChange }) => {
|
|
6
|
+
const [activeItem, setActiveItem] = useState(activeIndex);
|
|
7
|
+
const handleItemClick = (index) => {
|
|
8
|
+
if (disabled || activeItem === index)
|
|
9
|
+
return;
|
|
10
|
+
setActiveItem(index);
|
|
11
|
+
onTabChange === null || onTabChange === void 0 ? void 0 : onTabChange(index);
|
|
12
|
+
};
|
|
13
|
+
return (_jsx("div", { className: classNames('button-group', className), children: buttons.map((button) => {
|
|
14
|
+
return (_jsx(ButtonGroupItem, Object.assign({}, button, { type: type, size: size, isActive: activeItem === button.id, disabled: disabled, onClick: () => handleItemClick(button.id) }), `buttonGroup_${button.id}`));
|
|
15
|
+
}) }));
|
|
16
|
+
};
|
|
@@ -1,3 +1,23 @@
|
|
|
1
|
-
import{
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { Text } from '../Text';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { ICON_SIZE_MAPPING, TEXT_SIZE_MAPPING } from './consts';
|
|
6
|
+
export const ButtonGroupItem = ({ buttonText, size = 'medium', type = 'primary', isActive, disabled, onClick, className, icons }) => {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
const onClickHandler = (event) => {
|
|
9
|
+
event.preventDefault();
|
|
10
|
+
event.stopPropagation();
|
|
11
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
12
|
+
};
|
|
13
|
+
const iconType = useMemo(() => {
|
|
14
|
+
if (disabled) {
|
|
15
|
+
return 'disabled';
|
|
16
|
+
}
|
|
17
|
+
if (isActive) {
|
|
18
|
+
return 'primary';
|
|
19
|
+
}
|
|
20
|
+
return 'tertiary';
|
|
21
|
+
}, [disabled, isActive]);
|
|
22
|
+
return (_jsxs("div", { className: classNames('button-group-item', `button-group-item__${type}`, `button-group-item__${size}`, { active: isActive, disabled }, className), onClick: onClickHandler, children: [((_a = icons === null || icons === void 0 ? void 0 : icons.left) === null || _a === void 0 ? void 0 : _a.Component) ? (_jsx(icons.left.Component, { size: ICON_SIZE_MAPPING[size], type: iconType })) : null, _jsx(Text, { size: TEXT_SIZE_MAPPING[size], type: iconType, children: buttonText }), ((_b = icons === null || icons === void 0 ? void 0 : icons.right) === null || _b === void 0 ? void 0 : _b.Component) ? (_jsx(icons.right.Component, { size: ICON_SIZE_MAPPING[size], type: iconType })) : null] }));
|
|
23
|
+
};
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
export const TEXT_SIZE_MAPPING = {
|
|
2
|
+
large: 'standard',
|
|
3
|
+
medium: 'standard',
|
|
4
|
+
small: 'small'
|
|
5
|
+
};
|
|
6
|
+
export const ICON_SIZE_MAPPING = {
|
|
7
|
+
large: 'small',
|
|
8
|
+
medium: 'small',
|
|
9
|
+
small: 'xsmall'
|
|
10
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './ButtonGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/components/Card/Card.js
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect, useState } from 'react';
|
|
14
|
+
import { CardContext } from './CardContext';
|
|
15
|
+
import { Card as _Card } from './CardComponent/Card';
|
|
16
|
+
import { CardHead } from './CardComponent/CardHead';
|
|
17
|
+
import { CardBody } from './CardComponent/CardBody';
|
|
18
|
+
import { CardFooter } from './CardComponent/CardFooter';
|
|
19
|
+
import { noop } from '../../utils/helpers';
|
|
20
|
+
const CardComponent = (_a) => {
|
|
21
|
+
var { children, isExpanded, isExpandedFromParent } = _a, rest = __rest(_a, ["children", "isExpanded", "isExpandedFromParent"]);
|
|
22
|
+
const [isCardExpanded, toggleIsExpanded] = useState(isExpanded !== null && isExpanded !== void 0 ? isExpanded : false);
|
|
23
|
+
useEffect(() => typeof isExpandedFromParent === 'boolean' ? toggleIsExpanded(isExpandedFromParent) : noop, [isExpandedFromParent]);
|
|
24
|
+
return (_jsx(CardContext.Provider, { value: Object.assign(Object.assign({}, rest), { isExpanded: isCardExpanded, toggleIsExpanded }), children: _jsx(_Card, { children: children }) }));
|
|
25
|
+
};
|
|
26
|
+
export const Card = Object.assign(CardComponent, {
|
|
27
|
+
Head: CardHead,
|
|
28
|
+
Body: CardBody,
|
|
29
|
+
Footer: CardFooter
|
|
30
|
+
});
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
import{
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { useCardContext } from '../CardContext';
|
|
4
|
+
import { generateDataTestId } from '../../../utils/helpers';
|
|
5
|
+
export const Card = ({ children }) => {
|
|
6
|
+
const { isExpanded, className, title, dataId, id, noBorder } = useCardContext();
|
|
7
|
+
const { alignment, color, text } = title !== null && title !== void 0 ? title : { alignment: 'left', color: 'blue' };
|
|
8
|
+
return (_jsxs("div", { className: classNames('card', {
|
|
9
|
+
'card--expanded': isExpanded,
|
|
10
|
+
[`card--title--alignment--${alignment}`]: title,
|
|
11
|
+
'card--noBorder': noBorder
|
|
12
|
+
}, className), id: `${id || ''}`, "data-id": generateDataTestId('card-item', dataId), children: [title && (_jsx("div", { className: classNames('card__title', { [`card__title--${color}`]: color }), children: text })), _jsx("div", { className: "card__content", children: children })] }));
|
|
13
|
+
};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { motion } from 'motion/react';
|
|
3
|
+
import { useCardContext } from '../CardContext';
|
|
4
|
+
import { Divider } from '../../Divider';
|
|
5
|
+
import { AnimatePresenceWrapper } from '../../../helperComponents/AnimatePresenceWrapper';
|
|
6
|
+
export const CardBody = ({ children }) => {
|
|
7
|
+
const { isExpanded, noDivider } = useCardContext();
|
|
8
|
+
return (_jsx(AnimatePresenceWrapper, { initial: false, children: isExpanded && (_jsx(motion.div, { initial: { height: 0 }, animate: { height: 'auto' }, exit: { height: 0 }, transition: { type: 'spring', duration: 0.5, bounce: 0 }, children: _jsxs("div", { className: "card__content--body", children: [!noDivider && _jsx(Divider, { type: "primary", isHorizontal: true, className: "card__divider" }), children] }) })) }));
|
|
9
|
+
};
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useCardContext } from '../CardContext';
|
|
3
|
+
export const CardFooter = ({ children }) => {
|
|
4
|
+
const { isExpanded } = useCardContext();
|
|
5
|
+
return !isExpanded && _jsx("div", { className: "card__content--footer", children: children });
|
|
6
|
+
};
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
import{
|
|
2
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
import { useCardContext } from '../CardContext';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { noop } from '../../../utils/helpers';
|
|
6
|
+
import { Button } from '../../Button';
|
|
7
|
+
import IconChevronDown from '../../SVGIcons/IconChevronDown';
|
|
8
|
+
import IconChevronRight from '../../SVGIcons/IconChevronRight';
|
|
9
|
+
export const CardHead = ({ children }) => {
|
|
10
|
+
const { toggleIsExpanded, onExpand, isExpandable, isExpanded } = useCardContext();
|
|
11
|
+
const onToggleExpand = useCallback(() => {
|
|
12
|
+
toggleIsExpanded &&
|
|
13
|
+
toggleIsExpanded((prevVal) => {
|
|
14
|
+
onExpand && onExpand(!prevVal);
|
|
15
|
+
return !prevVal;
|
|
16
|
+
});
|
|
17
|
+
}, []);
|
|
18
|
+
return (_jsxs("div", { className: classNames('card__content--header', {
|
|
19
|
+
'card__content--header--expandable': isExpandable
|
|
20
|
+
}), onClick: isExpandable ? onToggleExpand : noop, children: [children, isExpandable && (_jsx("div", { className: "card__content--header--expand", children: _jsx(Button, { iconProps: {
|
|
21
|
+
Component: isExpanded ? IconChevronDown : IconChevronRight
|
|
22
|
+
}, className: classNames({ 'card__content--header--expand--icon': isExpanded }), type: "tertiary", size: "medium" }) }))] }));
|
|
23
|
+
};
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
import{createContext
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
export const CardContext = createContext({
|
|
3
|
+
isExpanded: false,
|
|
4
|
+
isExpandable: true
|
|
5
|
+
});
|
|
6
|
+
export const useCardContext = () => useContext(CardContext);
|
package/components/Card/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './Card';
|
package/components/Card/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
+
t[p] = s[p];
|
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
+
t[p[i]] = s[p[i]];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { CardGroupContext } from './CardGroupContext';
|
|
14
|
+
import { CardGroup as _CardGroup } from './CardGroupComponent/CardGroup';
|
|
15
|
+
import { CardGroupHead } from './CardGroupComponent/CardHead';
|
|
16
|
+
import { CardGroupBody } from './CardGroupComponent/CardBody';
|
|
17
|
+
const CardComponent = (_a) => {
|
|
18
|
+
var { children } = _a, rest = __rest(_a, ["children"]);
|
|
19
|
+
return (_jsx(CardGroupContext.Provider, { value: Object.assign({}, rest), children: _jsx(_CardGroup, { children: children }) }));
|
|
20
|
+
};
|
|
21
|
+
export const CardGroup = Object.assign(CardComponent, {
|
|
22
|
+
Head: CardGroupHead,
|
|
23
|
+
Body: CardGroupBody
|
|
24
|
+
});
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
import{
|
|
2
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId, useMemo } from 'react';
|
|
3
|
+
export const CardGroupBody = ({ children }) => {
|
|
4
|
+
const isChildrenArray = useMemo(() => Array.isArray(children), [children]);
|
|
5
|
+
const componentKey = useId();
|
|
6
|
+
return (_jsxs("div", { className: "card--group__content--body", children: [isChildrenArray &&
|
|
7
|
+
(children === null || children === void 0 ? void 0 : children.map((child, id) => (_jsx("div", { className: "card--group__child", children: child }, `${componentKey}_${id}`)))), !isChildrenArray && children] }));
|
|
8
|
+
};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { generateDataTestId } from '../../../utils/helpers';
|
|
4
|
+
import { useCardGroupContext } from '../CardGroupContext';
|
|
5
|
+
export const CardGroup = ({ children }) => {
|
|
6
|
+
const { className, title, dataId, id } = useCardGroupContext();
|
|
7
|
+
const { alignment } = title !== null && title !== void 0 ? title : { alignment: 'left' };
|
|
8
|
+
return (_jsx("div", { className: classNames('card--group', { [`card--group--title--alignment--${alignment}`]: title }, className), id: `${id || ''}`, "data-id": generateDataTestId('card--group-item', dataId), children: _jsx("div", { className: "card--group__content", children: children }) }));
|
|
9
|
+
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
import{
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCardGroupContext } from '../CardGroupContext';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
export const CardGroupHead = ({ children }) => {
|
|
5
|
+
const { title } = useCardGroupContext();
|
|
6
|
+
return (_jsxs("div", { className: "card--group__content--header", children: [title && (_jsx("div", { className: classNames('card--group__title', {
|
|
7
|
+
[`card--group__title--${title.color}`]: title.color
|
|
8
|
+
}), children: title.text })), _jsx("div", { className: "card--group__content--header--component", children: children })] }));
|
|
9
|
+
};
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
import{createContext
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
export const CardGroupContext = createContext({});
|
|
3
|
+
export const useCardGroupContext = () => useContext(CardGroupContext);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './CardGroup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|