hrm_ui_lib 2.1.0-alpha.19 → 2.1.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/styles.css +1 -1
- package/components/Alert/Alert.js +6 -6
- package/components/Alert/types.d.ts +1 -0
- package/components/Avatar/Avatar.d.ts +1 -1
- package/components/Avatar/Avatar.js +1 -1
- package/components/Avatar/AvatarGroup.d.ts +1 -1
- package/components/Avatar/AvatarGroup.js +2 -2
- package/components/Avatar/types.d.ts +2 -3
- package/components/Badge/Badge.js +2 -2
- package/components/Badge/types.d.ts +1 -0
- package/components/BadgeV2/BadgeV2.js +1 -1
- package/components/BadgeV2/types.d.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.js +2 -2
- package/components/Breadcrumb/types.d.ts +1 -0
- package/components/Button/Button.js +2 -2
- package/components/Button/types.d.ts +2 -3
- package/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/components/ButtonGroup/ButtonGroup.js +2 -2
- package/components/ButtonGroup/ButtonGroupItem.d.ts +1 -1
- package/components/ButtonGroup/ButtonGroupItem.js +3 -3
- package/components/ButtonGroup/types.d.ts +2 -2
- package/components/Card/CardComponent/Card.js +3 -3
- package/components/Card/types.d.ts +2 -2
- package/components/CardGroup/CardGroupComponent/CardGroup.js +2 -2
- package/components/CardGroup/types.d.ts +2 -2
- package/components/Checkbox/Checkbox.js +6 -6
- package/components/Checkbox/types.d.ts +1 -0
- package/components/Chips/Chips.js +2 -2
- package/components/Chips/types.d.ts +1 -2
- package/components/Collapse/Collapse/Collapse.js +4 -4
- package/components/Collapse/Collapse/Title.d.ts +2 -2
- package/components/Collapse/Collapse/Title.js +1 -1
- package/components/Collapse/CollapseGroup/CollapseGroup.js +2 -2
- package/components/Collapse/CollapseItem/CollapseItem.js +3 -3
- package/components/Collapse/types.d.ts +4 -6
- package/components/Container/Container.js +2 -2
- package/components/Container/types.d.ts +2 -1
- package/components/Copy/Copy.d.ts +1 -1
- package/components/Copy/Copy.js +2 -2
- package/components/Copy/types.d.ts +2 -2
- package/components/Counter/Counter.js +2 -2
- package/components/Counter/types.d.ts +1 -0
- package/components/DarkModeSwitcher/DarkModeSwitcher.d.ts +3 -4
- package/components/DarkModeSwitcher/DarkModeSwitcher.js +5 -5
- package/components/DarkModeSwitcher/types.d.ts +1 -0
- package/components/DatePicker/CustomHeader/CustomHeader.js +5 -5
- package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +2 -2
- package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +5 -5
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +3 -3
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +4 -4
- package/components/DatePicker/TimePicker/TimePickerDesktop.js +3 -3
- package/components/DatePicker/TimePicker/TimePickerMobile.js +3 -3
- package/components/DatePicker/types.d.ts +3 -3
- package/components/Divider/Divider.js +2 -2
- package/components/Divider/types.d.ts +2 -1
- package/components/Empty/Empty.js +4 -4
- package/components/Empty/types.d.ts +2 -1
- package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +7 -7
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.d.ts +2 -1
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +1 -1
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.d.ts +2 -1
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +7 -7
- package/components/FileUpload/FileUpload.js +6 -6
- package/components/FileUpload/UploadItems.js +5 -5
- package/components/FileUpload/types.d.ts +5 -2
- package/components/FormContainer/FormContainer.js +1 -1
- package/components/FormContainer/types.d.ts +2 -1
- package/components/FormField/FormField.js +3 -3
- package/components/FormField/types.d.ts +2 -2
- package/components/Heading/Heading.js +2 -2
- package/components/Heading/types.d.ts +2 -2
- package/components/Image/Image.js +1 -1
- package/components/Image/types.d.ts +2 -1
- package/components/Input/Input.js +8 -8
- package/components/Input/types.d.ts +2 -1
- package/components/LineChart/LineChart.d.ts +3 -0
- package/components/LineChart/LineChart.js +9 -0
- package/components/LineChart/helper.d.ts +3 -0
- package/components/LineChart/helper.js +1 -0
- package/components/LineChart/index.d.ts +2 -0
- package/components/LineChart/index.js +1 -0
- package/components/LineChart/types.d.ts +15 -0
- package/components/Link/Link.js +2 -2
- package/components/Link/types.d.ts +2 -2
- package/components/Menu/Menu.js +1 -1
- package/components/Menu/NestedMenu.js +1 -1
- package/components/Menu/types.d.ts +2 -2
- package/components/Modal/ModalConfirmation.d.ts +1 -1
- package/components/Modal/ModalConfirmation.js +4 -4
- package/components/Modal/ModalContent.d.ts +7 -4
- package/components/Modal/ModalContent.js +7 -5
- package/components/Modal/types.d.ts +5 -2
- package/components/More/More.js +3 -3
- package/components/More/types.d.ts +2 -1
- package/components/MultiSelectV2/MultiSelectV2.d.ts +3 -0
- package/components/MultiSelectV2/MultiSelectV2.js +11 -0
- package/components/MultiSelectV2/index.d.ts +1 -0
- package/components/MultiSelectV2/index.js +1 -0
- package/components/MultiSelectV2/types.d.ts +30 -0
- package/components/MultiSelectV2/types.js +0 -0
- package/components/Pagination/Pagination.js +2 -2
- package/components/Pagination/types.d.ts +2 -1
- package/components/Popover/PopoverDesktop.js +1 -1
- package/components/Popover/PopoverMobile.js +2 -2
- package/components/Popover/types.d.ts +1 -0
- package/components/Progress/Progress.js +4 -4
- package/components/Progress/types.d.ts +2 -1
- package/components/ProgressStep/ProgressStep.js +2 -2
- package/components/ProgressStep/Step.js +9 -9
- package/components/ProgressStep/types.d.ts +3 -2
- package/components/Radio/Radio.js +4 -4
- package/components/Radio/RadioGroup.js +1 -1
- package/components/Radio/types.d.ts +3 -3
- package/components/SVGIcons/IconAdd.d.ts +1 -1
- package/components/SVGIcons/IconAdd.js +1 -1
- package/components/SVGIcons/IconAddCircle.d.ts +1 -1
- package/components/SVGIcons/IconAddCircle.js +1 -1
- package/components/SVGIcons/IconAddCircleFilled.d.ts +1 -1
- package/components/SVGIcons/IconAddCircleFilled.js +1 -1
- package/components/SVGIcons/IconAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconAddFilled.js +1 -1
- package/components/SVGIcons/IconAirplaneTakeOff.d.ts +1 -1
- package/components/SVGIcons/IconAirplaneTakeOff.js +1 -1
- package/components/SVGIcons/IconAirplaneTakeOffFilled.d.ts +1 -1
- package/components/SVGIcons/IconAirplaneTakeOffFilled.js +1 -1
- package/components/SVGIcons/IconAlert.d.ts +1 -1
- package/components/SVGIcons/IconAlert.js +1 -1
- package/components/SVGIcons/IconAlertBadge.d.ts +1 -1
- package/components/SVGIcons/IconAlertBadge.js +1 -1
- package/components/SVGIcons/IconAlertBadgeFilled.d.ts +1 -1
- package/components/SVGIcons/IconAlertBadgeFilled.js +1 -1
- package/components/SVGIcons/IconAlertFilled.d.ts +1 -1
- package/components/SVGIcons/IconAlertFilled.js +1 -1
- package/components/SVGIcons/IconAm.d.ts +1 -1
- package/components/SVGIcons/IconAm.js +1 -1
- package/components/SVGIcons/IconAmd.d.ts +1 -1
- package/components/SVGIcons/IconAmd.js +1 -1
- package/components/SVGIcons/IconAmdFilled.d.ts +1 -1
- package/components/SVGIcons/IconAmdFilled.js +1 -1
- package/components/SVGIcons/IconApple.d.ts +1 -1
- package/components/SVGIcons/IconApple.js +1 -1
- package/components/SVGIcons/IconArrowDown.d.ts +1 -1
- package/components/SVGIcons/IconArrowDown.js +1 -1
- package/components/SVGIcons/IconArrowDownFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowDownFilled.js +1 -1
- package/components/SVGIcons/IconArrowDownLeft.d.ts +1 -1
- package/components/SVGIcons/IconArrowDownLeft.js +1 -1
- package/components/SVGIcons/IconArrowDownLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowDownLeftFilled.js +1 -1
- package/components/SVGIcons/IconArrowDownload.d.ts +1 -1
- package/components/SVGIcons/IconArrowDownload.js +1 -1
- package/components/SVGIcons/IconArrowDownloadFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowDownloadFilled.js +1 -1
- package/components/SVGIcons/IconArrowEnter.d.ts +1 -1
- package/components/SVGIcons/IconArrowEnter.js +1 -1
- package/components/SVGIcons/IconArrowEnterFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowEnterFilled.js +1 -1
- package/components/SVGIcons/IconArrowExit.d.ts +1 -1
- package/components/SVGIcons/IconArrowExit.js +1 -1
- package/components/SVGIcons/IconArrowExitFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowExitFilled.js +1 -1
- package/components/SVGIcons/IconArrowExportLeftToRight.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportLeftToRight.js +1 -1
- package/components/SVGIcons/IconArrowExportLeftToRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportLeftToRightFilled.js +1 -1
- package/components/SVGIcons/IconArrowExportRightToLeft.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportRightToLeft.js +1 -1
- package/components/SVGIcons/IconArrowExportRightToLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportRightToLeftFilled.js +1 -1
- package/components/SVGIcons/IconArrowExportUp.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportUp.js +1 -1
- package/components/SVGIcons/IconArrowExportUpFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportUpFilled.js +1 -1
- package/components/SVGIcons/IconArrowImport.d.ts +1 -1
- package/components/SVGIcons/IconArrowImport.js +1 -1
- package/components/SVGIcons/IconArrowImportFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowImportFilled.js +1 -1
- package/components/SVGIcons/IconArrowLeft.d.ts +1 -1
- package/components/SVGIcons/IconArrowLeft.js +1 -1
- package/components/SVGIcons/IconArrowLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowLeftFilled.js +1 -1
- package/components/SVGIcons/IconArrowRepeatAll.d.ts +1 -1
- package/components/SVGIcons/IconArrowRepeatAll.js +1 -1
- package/components/SVGIcons/IconArrowRepeatAllFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowRepeatAllFilled.js +1 -1
- package/components/SVGIcons/IconArrowReset.d.ts +1 -1
- package/components/SVGIcons/IconArrowReset.js +1 -1
- package/components/SVGIcons/IconArrowResetFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowResetFilled.js +1 -1
- package/components/SVGIcons/IconArrowRight.d.ts +1 -1
- package/components/SVGIcons/IconArrowRight.js +1 -1
- package/components/SVGIcons/IconArrowRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowRightFilled.js +1 -1
- package/components/SVGIcons/IconArrowSort.d.ts +1 -1
- package/components/SVGIcons/IconArrowSort.js +1 -1
- package/components/SVGIcons/IconArrowSortFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowSortFilled.js +1 -1
- package/components/SVGIcons/IconArrowSync.d.ts +1 -1
- package/components/SVGIcons/IconArrowSync.js +1 -1
- package/components/SVGIcons/IconArrowSyncFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowSyncFilled.js +1 -1
- package/components/SVGIcons/IconArrowUp.d.ts +1 -1
- package/components/SVGIcons/IconArrowUp.js +1 -1
- package/components/SVGIcons/IconArrowUpFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowUpFilled.js +1 -1
- package/components/SVGIcons/IconArrowUpLeft.d.ts +1 -1
- package/components/SVGIcons/IconArrowUpLeft.js +1 -1
- package/components/SVGIcons/IconArrowUpLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowUpLeftFilled.js +1 -1
- package/components/SVGIcons/IconArrowUpRight.d.ts +1 -1
- package/components/SVGIcons/IconArrowUpRight.js +1 -1
- package/components/SVGIcons/IconArrowUpRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowUpRightFilled.js +1 -1
- package/components/SVGIcons/IconAttach.d.ts +1 -1
- package/components/SVGIcons/IconAttach.js +1 -1
- package/components/SVGIcons/IconAttachFilled.d.ts +1 -1
- package/components/SVGIcons/IconAttachFilled.js +1 -1
- package/components/SVGIcons/IconBeach.d.ts +1 -1
- package/components/SVGIcons/IconBeach.js +1 -1
- package/components/SVGIcons/IconBeachFilled.d.ts +1 -1
- package/components/SVGIcons/IconBeachFilled.js +1 -1
- package/components/SVGIcons/IconBedDouble.d.ts +4 -0
- package/components/SVGIcons/IconBedDouble.js +5 -0
- package/components/SVGIcons/IconBook.d.ts +1 -1
- package/components/SVGIcons/IconBook.js +1 -1
- package/components/SVGIcons/IconBookFilled.d.ts +1 -1
- package/components/SVGIcons/IconBookFilled.js +1 -1
- package/components/SVGIcons/IconBookmark.d.ts +1 -1
- package/components/SVGIcons/IconBookmark.js +1 -1
- package/components/SVGIcons/IconBookmarkFilled.d.ts +1 -1
- package/components/SVGIcons/IconBookmarkFilled.js +1 -1
- package/components/SVGIcons/IconBriefcase.d.ts +1 -1
- package/components/SVGIcons/IconBriefcase.js +1 -1
- package/components/SVGIcons/IconBriefcaseFilled.d.ts +1 -1
- package/components/SVGIcons/IconBriefcaseFilled.js +1 -1
- package/components/SVGIcons/IconBudgetTransfer.d.ts +1 -1
- package/components/SVGIcons/IconBudgetTransfer.js +1 -1
- package/components/SVGIcons/IconBuilding.d.ts +1 -1
- package/components/SVGIcons/IconBuilding.js +1 -1
- package/components/SVGIcons/IconBuildingBank.d.ts +1 -1
- package/components/SVGIcons/IconBuildingBank.js +1 -1
- package/components/SVGIcons/IconBuildingBankFilled.d.ts +1 -1
- package/components/SVGIcons/IconBuildingBankFilled.js +1 -1
- package/components/SVGIcons/IconBuildingFilled.d.ts +1 -1
- package/components/SVGIcons/IconBuildingFilled.js +1 -1
- package/components/SVGIcons/IconBulletListAdd.d.ts +1 -1
- package/components/SVGIcons/IconBulletListAdd.js +1 -1
- package/components/SVGIcons/IconBulletListAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconBulletListAddFilled.js +1 -1
- package/components/SVGIcons/IconCalculator.d.ts +1 -1
- package/components/SVGIcons/IconCalculator.js +1 -1
- package/components/SVGIcons/IconCalculatorFilled.d.ts +1 -1
- package/components/SVGIcons/IconCalculatorFilled.js +1 -1
- package/components/SVGIcons/IconCalendarClock.d.ts +1 -1
- package/components/SVGIcons/IconCalendarClock.js +1 -1
- package/components/SVGIcons/IconCalendarClockFilled.d.ts +1 -1
- package/components/SVGIcons/IconCalendarClockFilled.js +1 -1
- package/components/SVGIcons/IconCalendarDay.d.ts +1 -1
- package/components/SVGIcons/IconCalendarDay.js +1 -1
- package/components/SVGIcons/IconCalendarDayFilled.d.ts +1 -1
- package/components/SVGIcons/IconCalendarDayFilled.js +1 -1
- package/components/SVGIcons/IconCalendarDays.d.ts +4 -0
- package/components/SVGIcons/IconCalendarDays.js +11 -0
- package/components/SVGIcons/IconCalendarEmpty.d.ts +1 -1
- package/components/SVGIcons/IconCalendarEmpty.js +1 -1
- package/components/SVGIcons/IconCalendarLeft.d.ts +1 -1
- package/components/SVGIcons/IconCalendarLeft.js +1 -1
- package/components/SVGIcons/IconCalendarLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconCalendarLeftFilled.js +1 -1
- package/components/SVGIcons/IconCalendarRight.d.ts +1 -1
- package/components/SVGIcons/IconCalendarRight.js +1 -1
- package/components/SVGIcons/IconCalendarRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconCalendarRightFilled.js +1 -1
- package/components/SVGIcons/IconCall.d.ts +1 -1
- package/components/SVGIcons/IconCall.js +1 -1
- package/components/SVGIcons/IconCallFilled.d.ts +1 -1
- package/components/SVGIcons/IconCallFilled.js +1 -1
- package/components/SVGIcons/IconCar.d.ts +4 -0
- package/components/SVGIcons/IconCar.js +5 -0
- package/components/SVGIcons/IconCard.d.ts +1 -1
- package/components/SVGIcons/IconCard.js +1 -1
- package/components/SVGIcons/IconCardFilled.d.ts +1 -1
- package/components/SVGIcons/IconCardFilled.js +1 -1
- package/components/SVGIcons/IconCaretDown.d.ts +1 -1
- package/components/SVGIcons/IconCaretDown.js +1 -1
- package/components/SVGIcons/IconCaretDownFilled.d.ts +1 -1
- package/components/SVGIcons/IconCaretDownFilled.js +1 -1
- package/components/SVGIcons/IconCaretDownRight.d.ts +1 -1
- package/components/SVGIcons/IconCaretDownRight.js +1 -1
- package/components/SVGIcons/IconCaretDownRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconCaretDownRightFilled.js +1 -1
- package/components/SVGIcons/IconCaretLeft.d.ts +1 -1
- package/components/SVGIcons/IconCaretLeft.js +1 -1
- package/components/SVGIcons/IconCaretLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconCaretLeftFilled.js +1 -1
- package/components/SVGIcons/IconCaretRight.d.ts +1 -1
- package/components/SVGIcons/IconCaretRight.js +1 -1
- package/components/SVGIcons/IconCaretRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconCaretRightFilled.js +1 -1
- package/components/SVGIcons/IconCaretUp.d.ts +1 -1
- package/components/SVGIcons/IconCaretUp.js +1 -1
- package/components/SVGIcons/IconCaretUpFilled.d.ts +1 -1
- package/components/SVGIcons/IconCaretUpFilled.js +1 -1
- package/components/SVGIcons/IconChartPerson.d.ts +1 -1
- package/components/SVGIcons/IconChartPerson.js +1 -1
- package/components/SVGIcons/IconChartPersonFilled.d.ts +1 -1
- package/components/SVGIcons/IconChartPersonFilled.js +1 -1
- package/components/SVGIcons/IconChat.d.ts +1 -1
- package/components/SVGIcons/IconChat.js +1 -1
- package/components/SVGIcons/IconChatFilled.d.ts +1 -1
- package/components/SVGIcons/IconChatFilled.js +1 -1
- package/components/SVGIcons/IconChatMultiple.d.ts +1 -1
- package/components/SVGIcons/IconChatMultiple.js +1 -1
- package/components/SVGIcons/IconChatMultipleFilled.d.ts +1 -1
- package/components/SVGIcons/IconChatMultipleFilled.js +1 -1
- package/components/SVGIcons/IconCheckboxArrowRight.d.ts +1 -1
- package/components/SVGIcons/IconCheckboxArrowRight.js +1 -1
- package/components/SVGIcons/IconCheckboxArrowRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconCheckboxArrowRightFilled.js +1 -1
- package/components/SVGIcons/IconCheckmark.d.ts +1 -1
- package/components/SVGIcons/IconCheckmark.js +1 -1
- package/components/SVGIcons/IconCheckmarkCircle.d.ts +1 -1
- package/components/SVGIcons/IconCheckmarkCircle.js +1 -1
- package/components/SVGIcons/IconCheckmarkCircleFilled.d.ts +1 -1
- package/components/SVGIcons/IconCheckmarkCircleFilled.js +1 -1
- package/components/SVGIcons/IconCheckmarkFilled.d.ts +1 -1
- package/components/SVGIcons/IconCheckmarkFilled.js +1 -1
- package/components/SVGIcons/IconChevronDoubleLeft.d.ts +1 -1
- package/components/SVGIcons/IconChevronDoubleLeft.js +1 -1
- package/components/SVGIcons/IconChevronDoubleRight.d.ts +1 -1
- package/components/SVGIcons/IconChevronDoubleRight.js +1 -1
- package/components/SVGIcons/IconChevronDown.d.ts +1 -1
- package/components/SVGIcons/IconChevronDown.js +1 -1
- package/components/SVGIcons/IconChevronDownFilled.d.ts +1 -1
- package/components/SVGIcons/IconChevronDownFilled.js +1 -1
- package/components/SVGIcons/IconChevronLeft.d.ts +1 -1
- package/components/SVGIcons/IconChevronLeft.js +1 -1
- package/components/SVGIcons/IconChevronLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconChevronLeftFilled.js +1 -1
- package/components/SVGIcons/IconChevronRight.d.ts +1 -1
- package/components/SVGIcons/IconChevronRight.js +1 -1
- package/components/SVGIcons/IconChevronRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconChevronRightFilled.js +1 -1
- package/components/SVGIcons/IconChevronUp.d.ts +1 -1
- package/components/SVGIcons/IconChevronUp.js +1 -1
- package/components/SVGIcons/IconChevronUpDown.d.ts +1 -1
- package/components/SVGIcons/IconChevronUpDown.js +1 -1
- package/components/SVGIcons/IconChevronUpDownFilled.d.ts +1 -1
- package/components/SVGIcons/IconChevronUpDownFilled.js +1 -1
- package/components/SVGIcons/IconChevronUpFilled.d.ts +1 -1
- package/components/SVGIcons/IconChevronUpFilled.js +1 -1
- package/components/SVGIcons/IconClipboardDay.d.ts +1 -1
- package/components/SVGIcons/IconClipboardDay.js +1 -1
- package/components/SVGIcons/IconClock.d.ts +1 -1
- package/components/SVGIcons/IconClock.js +1 -1
- package/components/SVGIcons/IconClockDismiss.d.ts +1 -1
- package/components/SVGIcons/IconClockDismiss.js +1 -1
- package/components/SVGIcons/IconClockDismissFilled.d.ts +1 -1
- package/components/SVGIcons/IconClockDismissFilled.js +1 -1
- package/components/SVGIcons/IconClockFilled.d.ts +1 -1
- package/components/SVGIcons/IconClockFilled.js +1 -1
- package/components/SVGIcons/IconCode.d.ts +4 -0
- package/components/SVGIcons/IconCode.js +4 -0
- package/components/SVGIcons/IconCoins.d.ts +4 -0
- package/components/SVGIcons/IconCoins.js +5 -0
- package/components/SVGIcons/IconComment.d.ts +1 -1
- package/components/SVGIcons/IconComment.js +1 -1
- package/components/SVGIcons/IconCommentFilled.d.ts +1 -1
- package/components/SVGIcons/IconCommentFilled.js +1 -1
- package/components/SVGIcons/IconContractCard.d.ts +1 -1
- package/components/SVGIcons/IconContractCard.js +1 -1
- package/components/SVGIcons/IconContractCardFilled.d.ts +1 -1
- package/components/SVGIcons/IconContractCardFilled.js +1 -1
- package/components/SVGIcons/IconCopy.d.ts +1 -1
- package/components/SVGIcons/IconCopy.js +1 -1
- package/components/SVGIcons/IconCopyFilled.d.ts +1 -1
- package/components/SVGIcons/IconCopyFilled.js +1 -1
- package/components/SVGIcons/IconCubeTree.d.ts +1 -1
- package/components/SVGIcons/IconCubeTree.js +1 -1
- package/components/SVGIcons/IconCubeTreeFilled.d.ts +1 -1
- package/components/SVGIcons/IconCubeTreeFilled.js +1 -1
- package/components/SVGIcons/IconDatabase.d.ts +1 -1
- package/components/SVGIcons/IconDatabase.js +1 -1
- package/components/SVGIcons/IconDatabaseFilled.d.ts +1 -1
- package/components/SVGIcons/IconDatabaseFilled.js +1 -1
- package/components/SVGIcons/IconDelete.d.ts +1 -1
- package/components/SVGIcons/IconDelete.js +1 -1
- package/components/SVGIcons/IconDeleteFilled.d.ts +1 -1
- package/components/SVGIcons/IconDeleteFilled.js +1 -1
- package/components/SVGIcons/IconDeviceMeetingRoom.d.ts +1 -1
- package/components/SVGIcons/IconDeviceMeetingRoom.js +1 -1
- package/components/SVGIcons/IconDeviceMeetingRoomFilled.d.ts +1 -1
- package/components/SVGIcons/IconDeviceMeetingRoomFilled.js +1 -1
- package/components/SVGIcons/IconDismiss.d.ts +1 -1
- package/components/SVGIcons/IconDismiss.js +1 -1
- package/components/SVGIcons/IconDismissCircle.d.ts +1 -1
- package/components/SVGIcons/IconDismissCircle.js +1 -1
- package/components/SVGIcons/IconDismissCircleFilled.d.ts +1 -1
- package/components/SVGIcons/IconDismissCircleFilled.js +1 -1
- package/components/SVGIcons/IconDismissFilled.d.ts +1 -1
- package/components/SVGIcons/IconDismissFilled.js +1 -1
- package/components/SVGIcons/IconDocument.d.ts +1 -1
- package/components/SVGIcons/IconDocument.js +1 -1
- package/components/SVGIcons/IconDocumentBulletList.d.ts +1 -1
- package/components/SVGIcons/IconDocumentBulletList.js +1 -1
- package/components/SVGIcons/IconDocumentBulletListFilled.d.ts +1 -1
- package/components/SVGIcons/IconDocumentBulletListFilled.js +1 -1
- package/components/SVGIcons/IconDocumentEdit.d.ts +1 -1
- package/components/SVGIcons/IconDocumentEdit.js +1 -1
- package/components/SVGIcons/IconDocumentEditFilled.d.ts +1 -1
- package/components/SVGIcons/IconDocumentEditFilled.js +1 -1
- package/components/SVGIcons/IconDocumentFilled.d.ts +1 -1
- package/components/SVGIcons/IconDocumentFilled.js +1 -1
- package/components/SVGIcons/IconDocumentPerson.d.ts +1 -1
- package/components/SVGIcons/IconDocumentPerson.js +1 -1
- package/components/SVGIcons/IconDownload.d.ts +4 -0
- package/components/SVGIcons/IconDownload.js +4 -0
- package/components/SVGIcons/IconEdit.d.ts +1 -1
- package/components/SVGIcons/IconEdit.js +1 -1
- package/components/SVGIcons/IconEditFilled.d.ts +1 -1
- package/components/SVGIcons/IconEditFilled.js +1 -1
- package/components/SVGIcons/IconErrorCircle.d.ts +1 -1
- package/components/SVGIcons/IconErrorCircle.js +1 -1
- package/components/SVGIcons/IconErrorCircleFilled.d.ts +1 -1
- package/components/SVGIcons/IconErrorCircleFilled.js +1 -1
- package/components/SVGIcons/IconEur.d.ts +1 -1
- package/components/SVGIcons/IconEur.js +1 -1
- package/components/SVGIcons/IconEurFilled.d.ts +1 -1
- package/components/SVGIcons/IconEurFilled.js +1 -1
- package/components/SVGIcons/IconExpandUpLeft.d.ts +1 -1
- package/components/SVGIcons/IconExpandUpLeft.js +1 -1
- package/components/SVGIcons/IconExpandUpLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconExpandUpLeftFilled.js +1 -1
- package/components/SVGIcons/IconExpandUpRight.d.ts +1 -1
- package/components/SVGIcons/IconExpandUpRight.js +1 -1
- package/components/SVGIcons/IconExpandUpRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconExpandUpRightFilled.js +1 -1
- package/components/SVGIcons/IconEyeOff.d.ts +1 -1
- package/components/SVGIcons/IconEyeOff.js +1 -1
- package/components/SVGIcons/IconEyeOffFilled.d.ts +1 -1
- package/components/SVGIcons/IconEyeOffFilled.js +1 -1
- package/components/SVGIcons/IconEyeOn.d.ts +1 -1
- package/components/SVGIcons/IconEyeOn.js +1 -1
- package/components/SVGIcons/IconEyeOnFilled.d.ts +1 -1
- package/components/SVGIcons/IconEyeOnFilled.js +1 -1
- package/components/SVGIcons/IconFacebook.d.ts +1 -1
- package/components/SVGIcons/IconFacebook.js +1 -1
- package/components/SVGIcons/IconFastAcceleration.d.ts +1 -1
- package/components/SVGIcons/IconFastAcceleration.js +1 -1
- package/components/SVGIcons/IconFastAccelerationFilled.d.ts +1 -1
- package/components/SVGIcons/IconFastAccelerationFilled.js +1 -1
- package/components/SVGIcons/IconFeed.d.ts +1 -1
- package/components/SVGIcons/IconFeed.js +1 -1
- package/components/SVGIcons/IconFeedFilled.d.ts +1 -1
- package/components/SVGIcons/IconFeedFilled.js +1 -1
- package/components/SVGIcons/IconFilter.d.ts +1 -1
- package/components/SVGIcons/IconFilter.js +1 -1
- package/components/SVGIcons/IconFilterFilled.d.ts +1 -1
- package/components/SVGIcons/IconFilterFilled.js +1 -1
- package/components/SVGIcons/IconFlag.d.ts +1 -1
- package/components/SVGIcons/IconFlag.js +1 -1
- package/components/SVGIcons/IconFlagFilled.d.ts +1 -1
- package/components/SVGIcons/IconFlagFilled.js +1 -1
- package/components/SVGIcons/IconFolderLink.d.ts +1 -1
- package/components/SVGIcons/IconFolderLink.js +1 -1
- package/components/SVGIcons/IconFolderLinkFilled.d.ts +1 -1
- package/components/SVGIcons/IconFolderLinkFilled.js +1 -1
- package/components/SVGIcons/IconFood.d.ts +1 -1
- package/components/SVGIcons/IconFood.js +1 -1
- package/components/SVGIcons/IconFoodFilled.d.ts +1 -1
- package/components/SVGIcons/IconFoodFilled.js +1 -1
- package/components/SVGIcons/IconGb.d.ts +1 -1
- package/components/SVGIcons/IconGb.js +1 -1
- package/components/SVGIcons/IconGlobe.d.ts +1 -1
- package/components/SVGIcons/IconGlobe.js +1 -1
- package/components/SVGIcons/IconGlobeFilled.d.ts +1 -1
- package/components/SVGIcons/IconGlobeFilled.js +1 -1
- package/components/SVGIcons/IconGoogle.d.ts +1 -1
- package/components/SVGIcons/IconGoogle.js +1 -1
- package/components/SVGIcons/IconHandOpenHeart.d.ts +1 -1
- package/components/SVGIcons/IconHandOpenHeart.js +1 -1
- package/components/SVGIcons/IconHandOpenHeartFilled.d.ts +1 -1
- package/components/SVGIcons/IconHandOpenHeartFilled.js +1 -1
- package/components/SVGIcons/IconHeart.d.ts +1 -1
- package/components/SVGIcons/IconHeart.js +1 -1
- package/components/SVGIcons/IconHeartFilled.d.ts +1 -1
- package/components/SVGIcons/IconHeartFilled.js +1 -1
- package/components/SVGIcons/IconHistory.d.ts +1 -1
- package/components/SVGIcons/IconHistory.js +1 -1
- package/components/SVGIcons/IconHistoryFilled.d.ts +1 -1
- package/components/SVGIcons/IconHistoryFilled.js +1 -1
- package/components/SVGIcons/IconHome.d.ts +1 -1
- package/components/SVGIcons/IconHome.js +1 -1
- package/components/SVGIcons/IconHomeFilled.d.ts +1 -1
- package/components/SVGIcons/IconHomeFilled.js +1 -1
- package/components/SVGIcons/IconImage.d.ts +1 -1
- package/components/SVGIcons/IconImage.js +1 -1
- package/components/SVGIcons/IconImageFilled.d.ts +1 -1
- package/components/SVGIcons/IconImageFilled.js +1 -1
- package/components/SVGIcons/IconInfo.d.ts +1 -1
- package/components/SVGIcons/IconInfo.js +1 -1
- package/components/SVGIcons/IconInfoFilled.d.ts +1 -1
- package/components/SVGIcons/IconInfoFilled.js +1 -1
- package/components/SVGIcons/IconInstagram.d.ts +1 -1
- package/components/SVGIcons/IconInstagram.js +1 -1
- package/components/SVGIcons/IconKeyReset.d.ts +1 -1
- package/components/SVGIcons/IconKeyReset.js +1 -1
- package/components/SVGIcons/IconKeyResetFilled.d.ts +1 -1
- package/components/SVGIcons/IconKeyResetFilled.js +1 -1
- package/components/SVGIcons/IconLayers.d.ts +4 -0
- package/components/SVGIcons/IconLayers.js +4 -0
- package/components/SVGIcons/IconLayoutGrid.d.ts +4 -0
- package/components/SVGIcons/IconLayoutGrid.js +5 -0
- package/components/SVGIcons/IconLayoutList.d.ts +4 -0
- package/components/SVGIcons/IconLayoutList.js +3 -0
- package/components/SVGIcons/IconLibrary.d.ts +1 -1
- package/components/SVGIcons/IconLibrary.js +1 -1
- package/components/SVGIcons/IconLibraryFilled.d.ts +1 -1
- package/components/SVGIcons/IconLibraryFilled.js +1 -1
- package/components/SVGIcons/IconLink.d.ts +1 -1
- package/components/SVGIcons/IconLink.js +1 -1
- package/components/SVGIcons/IconLinkFilled.d.ts +1 -1
- package/components/SVGIcons/IconLinkFilled.js +1 -1
- package/components/SVGIcons/IconLinkedin.d.ts +1 -1
- package/components/SVGIcons/IconLinkedin.js +1 -1
- package/components/SVGIcons/IconList.d.ts +1 -1
- package/components/SVGIcons/IconList.js +1 -1
- package/components/SVGIcons/IconListFilled.d.ts +1 -1
- package/components/SVGIcons/IconListFilled.js +1 -1
- package/components/SVGIcons/IconLocation.d.ts +1 -1
- package/components/SVGIcons/IconLocation.js +1 -1
- package/components/SVGIcons/IconLocationFilled.d.ts +1 -1
- package/components/SVGIcons/IconLocationFilled.js +1 -1
- package/components/SVGIcons/IconLockClosed.d.ts +1 -1
- package/components/SVGIcons/IconLockClosed.js +1 -1
- package/components/SVGIcons/IconLockClosedFilled.d.ts +1 -1
- package/components/SVGIcons/IconLockClosedFilled.js +1 -1
- package/components/SVGIcons/IconLockOpen.d.ts +1 -1
- package/components/SVGIcons/IconLockOpen.js +1 -1
- package/components/SVGIcons/IconLockOpenFilled.d.ts +1 -1
- package/components/SVGIcons/IconLockOpenFilled.js +1 -1
- package/components/SVGIcons/IconMail.d.ts +1 -1
- package/components/SVGIcons/IconMail.js +1 -1
- package/components/SVGIcons/IconMailAdd.d.ts +1 -1
- package/components/SVGIcons/IconMailAdd.js +1 -1
- package/components/SVGIcons/IconMailAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconMailAddFilled.js +1 -1
- package/components/SVGIcons/IconMailArrowForward.d.ts +1 -1
- package/components/SVGIcons/IconMailArrowForward.js +1 -1
- package/components/SVGIcons/IconMailArrowForwardFilled.d.ts +1 -1
- package/components/SVGIcons/IconMailArrowForwardFilled.js +1 -1
- package/components/SVGIcons/IconMailFilled.d.ts +1 -1
- package/components/SVGIcons/IconMailFilled.js +1 -1
- package/components/SVGIcons/IconMailLink.d.ts +1 -1
- package/components/SVGIcons/IconMailLink.js +1 -1
- package/components/SVGIcons/IconMailLinkFilled.d.ts +1 -1
- package/components/SVGIcons/IconMailLinkFilled.js +1 -1
- package/components/SVGIcons/IconMedium.d.ts +1 -1
- package/components/SVGIcons/IconMedium.js +1 -1
- package/components/SVGIcons/IconMoon.d.ts +1 -1
- package/components/SVGIcons/IconMoon.js +1 -1
- package/components/SVGIcons/IconMore.d.ts +1 -1
- package/components/SVGIcons/IconMore.js +1 -1
- package/components/SVGIcons/IconMoreFilled.d.ts +1 -1
- package/components/SVGIcons/IconMoreFilled.js +1 -1
- package/components/SVGIcons/IconMoreVertical.d.ts +1 -1
- package/components/SVGIcons/IconMoreVertical.js +1 -1
- package/components/SVGIcons/IconMoreVerticalFilled.d.ts +1 -1
- package/components/SVGIcons/IconMoreVerticalFilled.js +1 -1
- package/components/SVGIcons/IconNavigation.d.ts +1 -1
- package/components/SVGIcons/IconNavigation.js +1 -1
- package/components/SVGIcons/IconNavigationFilled.d.ts +1 -1
- package/components/SVGIcons/IconNavigationFilled.js +1 -1
- package/components/SVGIcons/IconNotebook.d.ts +1 -1
- package/components/SVGIcons/IconNotebook.js +1 -1
- package/components/SVGIcons/IconNotebookAdd.d.ts +1 -1
- package/components/SVGIcons/IconNotebookAdd.js +1 -1
- package/components/SVGIcons/IconNotebookAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconNotebookAddFilled.js +1 -1
- package/components/SVGIcons/IconNotebookFilled.d.ts +1 -1
- package/components/SVGIcons/IconNotebookFilled.js +1 -1
- package/components/SVGIcons/IconOnlyEmployee.d.ts +1 -1
- package/components/SVGIcons/IconOnlyEmployee.js +1 -1
- package/components/SVGIcons/IconOpen.d.ts +1 -1
- package/components/SVGIcons/IconOpen.js +1 -1
- package/components/SVGIcons/IconOpenFilled.d.ts +1 -1
- package/components/SVGIcons/IconOpenFilled.js +1 -1
- package/components/SVGIcons/IconPatient.d.ts +1 -1
- package/components/SVGIcons/IconPatient.js +1 -1
- package/components/SVGIcons/IconPatientFilled.d.ts +1 -1
- package/components/SVGIcons/IconPatientFilled.js +1 -1
- package/components/SVGIcons/IconPeople.d.ts +1 -1
- package/components/SVGIcons/IconPeople.js +1 -1
- package/components/SVGIcons/IconPeopleAdd.d.ts +1 -1
- package/components/SVGIcons/IconPeopleAdd.js +1 -1
- package/components/SVGIcons/IconPeopleAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconPeopleAddFilled.js +1 -1
- package/components/SVGIcons/IconPeopleFilled.d.ts +1 -1
- package/components/SVGIcons/IconPeopleFilled.js +1 -1
- package/components/SVGIcons/IconPeopleList.d.ts +1 -1
- package/components/SVGIcons/IconPeopleList.js +1 -1
- package/components/SVGIcons/IconPeopleListFilled.d.ts +1 -1
- package/components/SVGIcons/IconPeopleListFilled.js +1 -1
- package/components/SVGIcons/IconPeopleTeam.d.ts +1 -1
- package/components/SVGIcons/IconPeopleTeam.js +1 -1
- package/components/SVGIcons/IconPeopleTeamFilled.d.ts +1 -1
- package/components/SVGIcons/IconPeopleTeamFilled.js +1 -1
- package/components/SVGIcons/IconPercent.d.ts +1 -1
- package/components/SVGIcons/IconPercent.js +1 -1
- package/components/SVGIcons/IconPerson.d.ts +1 -1
- package/components/SVGIcons/IconPerson.js +1 -1
- package/components/SVGIcons/IconPersonAccount.d.ts +1 -1
- package/components/SVGIcons/IconPersonAccount.js +1 -1
- package/components/SVGIcons/IconPersonAccountFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonAccountFilled.js +1 -1
- package/components/SVGIcons/IconPersonAdd.d.ts +1 -1
- package/components/SVGIcons/IconPersonAdd.js +1 -1
- package/components/SVGIcons/IconPersonAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonAddFilled.js +1 -1
- package/components/SVGIcons/IconPersonArrowLeft.d.ts +1 -1
- package/components/SVGIcons/IconPersonArrowLeft.js +1 -1
- package/components/SVGIcons/IconPersonArrowLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonArrowLeftFilled.js +1 -1
- package/components/SVGIcons/IconPersonArrowRight.d.ts +1 -1
- package/components/SVGIcons/IconPersonArrowRight.js +1 -1
- package/components/SVGIcons/IconPersonArrowRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonArrowRightFilled.js +1 -1
- package/components/SVGIcons/IconPersonBoard.d.ts +1 -1
- package/components/SVGIcons/IconPersonBoard.js +1 -1
- package/components/SVGIcons/IconPersonFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonFilled.js +1 -1
- package/components/SVGIcons/IconPersonMinus.d.ts +1 -1
- package/components/SVGIcons/IconPersonMinus.js +1 -1
- package/components/SVGIcons/IconPersonStar.d.ts +1 -1
- package/components/SVGIcons/IconPersonStar.js +1 -1
- package/components/SVGIcons/IconPersonStarFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonStarFilled.js +1 -1
- package/components/SVGIcons/IconPersonSubtract.d.ts +1 -1
- package/components/SVGIcons/IconPersonSubtract.js +1 -1
- package/components/SVGIcons/IconPersonSubtractFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonSubtractFilled.js +1 -1
- package/components/SVGIcons/IconPhone.d.ts +1 -1
- package/components/SVGIcons/IconPhone.js +1 -1
- package/components/SVGIcons/IconPhoneFilled.d.ts +1 -1
- package/components/SVGIcons/IconPhoneFilled.js +1 -1
- package/components/SVGIcons/IconPlane.d.ts +4 -0
- package/components/SVGIcons/IconPlane.js +1 -0
- package/components/SVGIcons/IconPlugConnected.d.ts +1 -1
- package/components/SVGIcons/IconPlugConnected.js +1 -1
- package/components/SVGIcons/IconPos.d.ts +1 -1
- package/components/SVGIcons/IconPos.js +1 -1
- package/components/SVGIcons/IconPosFilled.d.ts +1 -1
- package/components/SVGIcons/IconPosFilled.js +1 -1
- package/components/SVGIcons/IconProhibited.d.ts +1 -1
- package/components/SVGIcons/IconProhibited.js +1 -1
- package/components/SVGIcons/IconProhibitedFilled.d.ts +1 -1
- package/components/SVGIcons/IconProhibitedFilled.js +1 -1
- package/components/SVGIcons/IconProjectProduct.d.ts +1 -1
- package/components/SVGIcons/IconProjectProduct.js +1 -1
- package/components/SVGIcons/IconQuestion.d.ts +1 -1
- package/components/SVGIcons/IconQuestion.js +1 -1
- package/components/SVGIcons/IconQuestionFilled.d.ts +1 -1
- package/components/SVGIcons/IconQuestionFilled.js +1 -1
- package/components/SVGIcons/IconRedo.d.ts +1 -1
- package/components/SVGIcons/IconRedo.js +1 -1
- package/components/SVGIcons/IconRedoFilled.d.ts +1 -1
- package/components/SVGIcons/IconRedoFilled.js +1 -1
- package/components/SVGIcons/IconRibbon.d.ts +1 -1
- package/components/SVGIcons/IconRibbon.js +1 -1
- package/components/SVGIcons/IconRu.d.ts +1 -1
- package/components/SVGIcons/IconRu.js +1 -1
- package/components/SVGIcons/IconRub.d.ts +1 -1
- package/components/SVGIcons/IconRub.js +1 -1
- package/components/SVGIcons/IconRubFilled.d.ts +1 -1
- package/components/SVGIcons/IconRubFilled.js +1 -1
- package/components/SVGIcons/IconSave.d.ts +1 -1
- package/components/SVGIcons/IconSave.js +1 -1
- package/components/SVGIcons/IconSaveFilled.d.ts +1 -1
- package/components/SVGIcons/IconSaveFilled.js +1 -1
- package/components/SVGIcons/IconSavings.d.ts +1 -1
- package/components/SVGIcons/IconSavings.js +1 -1
- package/components/SVGIcons/IconSavingsFilled.d.ts +1 -1
- package/components/SVGIcons/IconSavingsFilled.js +1 -1
- package/components/SVGIcons/IconSearch.d.ts +1 -1
- package/components/SVGIcons/IconSearch.js +1 -1
- package/components/SVGIcons/IconSearchFilled.d.ts +1 -1
- package/components/SVGIcons/IconSearchFilled.js +1 -1
- package/components/SVGIcons/IconSelectAllOff.d.ts +1 -1
- package/components/SVGIcons/IconSelectAllOff.js +1 -1
- package/components/SVGIcons/IconSelectAllOffFilled.d.ts +1 -1
- package/components/SVGIcons/IconSelectAllOffFilled.js +1 -1
- package/components/SVGIcons/IconSelectAllOn.d.ts +1 -1
- package/components/SVGIcons/IconSelectAllOn.js +1 -1
- package/components/SVGIcons/IconSelectAllOnFilled.d.ts +1 -1
- package/components/SVGIcons/IconSelectAllOnFilled.js +1 -1
- package/components/SVGIcons/IconSend.d.ts +1 -1
- package/components/SVGIcons/IconSend.js +1 -1
- package/components/SVGIcons/IconSendFilled.d.ts +1 -1
- package/components/SVGIcons/IconSendFilled.js +1 -1
- package/components/SVGIcons/IconSettings.d.ts +1 -1
- package/components/SVGIcons/IconSettings.js +1 -1
- package/components/SVGIcons/IconSettingsFilled.d.ts +1 -1
- package/components/SVGIcons/IconSettingsFilled.js +1 -1
- package/components/SVGIcons/IconShare.d.ts +1 -1
- package/components/SVGIcons/IconShare.js +1 -1
- package/components/SVGIcons/IconShareAndroid.d.ts +1 -1
- package/components/SVGIcons/IconShareAndroid.js +1 -1
- package/components/SVGIcons/IconShareAndroidFilled.d.ts +1 -1
- package/components/SVGIcons/IconShareAndroidFilled.js +1 -1
- package/components/SVGIcons/IconShareFilled.d.ts +1 -1
- package/components/SVGIcons/IconShareFilled.js +1 -1
- package/components/SVGIcons/IconSignOut.d.ts +1 -1
- package/components/SVGIcons/IconSignOut.js +1 -1
- package/components/SVGIcons/IconSignOutFilled.d.ts +1 -1
- package/components/SVGIcons/IconSignOutFilled.js +1 -1
- package/components/SVGIcons/IconSpinner.d.ts +1 -1
- package/components/SVGIcons/IconSpinner.js +1 -1
- package/components/SVGIcons/IconSpinnerFilled.d.ts +1 -1
- package/components/SVGIcons/IconSpinnerFilled.js +1 -1
- package/components/SVGIcons/IconStatus.d.ts +1 -1
- package/components/SVGIcons/IconStatus.js +1 -1
- package/components/SVGIcons/IconStatusFilled.d.ts +1 -1
- package/components/SVGIcons/IconStatusFilled.js +1 -1
- package/components/SVGIcons/IconSubtract.d.ts +1 -1
- package/components/SVGIcons/IconSubtract.js +1 -1
- package/components/SVGIcons/IconSubtractCircle.d.ts +1 -1
- package/components/SVGIcons/IconSubtractCircle.js +1 -1
- package/components/SVGIcons/IconSubtractCircleFilled.d.ts +1 -1
- package/components/SVGIcons/IconSubtractCircleFilled.js +1 -1
- package/components/SVGIcons/IconSubtractFilled.d.ts +1 -1
- package/components/SVGIcons/IconSubtractFilled.js +1 -1
- package/components/SVGIcons/IconSun.d.ts +1 -1
- package/components/SVGIcons/IconSun.js +10 -10
- package/components/SVGIcons/IconTableCellEdit.d.ts +1 -1
- package/components/SVGIcons/IconTableCellEdit.js +1 -1
- package/components/SVGIcons/IconTableCellEditFilled.d.ts +1 -1
- package/components/SVGIcons/IconTableCellEditFilled.js +1 -1
- package/components/SVGIcons/IconTelegram.d.ts +1 -1
- package/components/SVGIcons/IconTelegram.js +1 -1
- package/components/SVGIcons/IconTimer.d.ts +1 -1
- package/components/SVGIcons/IconTimer.js +1 -1
- package/components/SVGIcons/IconTimerFilled.d.ts +1 -1
- package/components/SVGIcons/IconTimerFilled.js +1 -1
- package/components/SVGIcons/IconTrophy.d.ts +1 -1
- package/components/SVGIcons/IconTrophy.js +1 -1
- package/components/SVGIcons/IconTrophyFilled.d.ts +1 -1
- package/components/SVGIcons/IconTrophyFilled.js +1 -1
- package/components/SVGIcons/IconTwitter.d.ts +1 -1
- package/components/SVGIcons/IconTwitter.js +1 -1
- package/components/SVGIcons/IconUndo.d.ts +1 -1
- package/components/SVGIcons/IconUndo.js +1 -1
- package/components/SVGIcons/IconUndoFilled.d.ts +1 -1
- package/components/SVGIcons/IconUndoFilled.js +1 -1
- package/components/SVGIcons/IconUnitsEmployee.d.ts +1 -1
- package/components/SVGIcons/IconUnitsEmployee.js +1 -1
- package/components/SVGIcons/IconUpload.d.ts +1 -1
- package/components/SVGIcons/IconUpload.js +1 -1
- package/components/SVGIcons/IconUpload2.d.ts +4 -0
- package/components/SVGIcons/IconUpload2.js +4 -0
- package/components/SVGIcons/IconUs.d.ts +1 -1
- package/components/SVGIcons/IconUs.js +1 -1
- package/components/SVGIcons/IconUsd.d.ts +1 -1
- package/components/SVGIcons/IconUsd.js +1 -1
- package/components/SVGIcons/IconUsdFilled.d.ts +1 -1
- package/components/SVGIcons/IconUsdFilled.js +1 -1
- package/components/SVGIcons/IconUserMinus.d.ts +1 -1
- package/components/SVGIcons/IconUserMinus.js +1 -1
- package/components/SVGIcons/IconUsers.d.ts +4 -0
- package/components/SVGIcons/IconUsers.js +4 -0
- package/components/SVGIcons/IconVacation.d.ts +1 -1
- package/components/SVGIcons/IconVacation.js +1 -1
- package/components/SVGIcons/IconVideo.d.ts +1 -1
- package/components/SVGIcons/IconVideo.js +1 -1
- package/components/SVGIcons/IconVideoFilled.d.ts +1 -1
- package/components/SVGIcons/IconVideoFilled.js +1 -1
- package/components/SVGIcons/IconWallet.d.ts +1 -1
- package/components/SVGIcons/IconWallet.js +1 -1
- package/components/SVGIcons/IconWalletFilled.d.ts +1 -1
- package/components/SVGIcons/IconWalletFilled.js +1 -1
- package/components/SVGIcons/IconWarning.d.ts +1 -1
- package/components/SVGIcons/IconWarning.js +1 -1
- package/components/SVGIcons/IconWarningFilled.d.ts +1 -1
- package/components/SVGIcons/IconWarningFilled.js +1 -1
- package/components/SVGIcons/IconYoutube.d.ts +1 -1
- package/components/SVGIcons/IconYoutube.js +1 -1
- package/components/Select/ButtonSelect/ButtonSelect.js +3 -3
- package/components/Select/FilterSelect/FilterDropdown.js +3 -3
- package/components/Select/FilterSelect/FilterSelect.js +4 -4
- package/components/Select/MultiSelect/DesktopWrapper.d.ts +1 -0
- package/components/Select/MultiSelect/DesktopWrapper.js +1 -1
- package/components/Select/MultiSelect/MobileWrapper.d.ts +1 -0
- package/components/Select/MultiSelect/MobileWrapper.js +2 -2
- package/components/Select/MultiSelect/MultiBase/MultiBase.js +5 -5
- package/components/Select/MultiSelect/MultiSelect.js +3 -3
- package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +6 -6
- package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +7 -7
- package/components/Select/MultiSelect/OptionsWrapper.d.ts +1 -0
- package/components/Select/NestedSelect/NestedSelect.js +4 -4
- package/components/Select/ProfileDropdown/index.js +10 -10
- package/components/Select/Select/Select.js +1 -1
- package/components/Select/Select/SelectDesktop/index.js +2 -2
- package/components/Select/Select/SelectMobile/MobileTopContent.d.ts +2 -1
- package/components/Select/Select/SelectMobile/MobileTopContent.js +2 -2
- package/components/Select/Select/SelectMobile/index.js +5 -5
- package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.d.ts +1 -1
- package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.js +2 -2
- package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +3 -3
- package/components/Select/SharedComponents/ContentTop.d.ts +2 -1
- package/components/Select/SharedComponents/ContentTop.js +3 -3
- package/components/Select/SharedComponents/Footer.js +6 -6
- package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +3 -3
- package/components/Select/helper.d.ts +1 -0
- package/components/Select/helper.js +1 -0
- package/components/Select/types.d.ts +7 -6
- package/components/SideSheet/Footer/Footer.d.ts +2 -1
- package/components/SideSheet/Footer/Footer.js +5 -5
- package/components/SideSheet/SideSheet.js +8 -8
- package/components/SideSheet/types.d.ts +2 -1
- package/components/Skeleton/Skeleton.d.ts +3 -0
- package/components/Skeleton/Skeleton.js +5 -0
- package/components/Skeleton/consts.d.ts +5 -0
- package/components/Skeleton/consts.js +1 -0
- package/components/Skeleton/index.d.ts +2 -0
- package/components/Skeleton/index.js +1 -0
- package/components/Skeleton/types.d.ts +24 -0
- package/components/Skeleton/types.js +0 -0
- package/components/Snackbar/Snackbar.js +1 -1
- package/components/Snackbar/types.d.ts +1 -0
- package/components/Status/Status.js +4 -4
- package/components/Status/types.d.ts +1 -2
- package/components/Stepper/Stepper.js +2 -2
- package/components/Stepper/types.d.ts +3 -2
- package/components/Switcher/Switcher.js +2 -2
- package/components/Switcher/types.d.ts +1 -0
- package/components/Tab/Tab.js +2 -2
- package/components/Tab/TabItem.js +3 -3
- package/components/Tab/types.d.ts +3 -4
- package/components/Table/Header.d.ts +3 -2
- package/components/Table/Header.js +4 -4
- package/components/Table/IndeterminateCheckbox.d.ts +3 -4
- package/components/Table/IndeterminateCheckbox.js +1 -1
- package/components/Table/Row.d.ts +3 -2
- package/components/Table/Row.js +3 -3
- package/components/Table/Table.d.ts +1 -1
- package/components/Table/Table.js +6 -6
- package/components/Table/types.d.ts +2 -1
- package/components/Table/utils.d.ts +1 -1
- package/components/Table/utils.js +3 -3
- package/components/TableV2/AdvancedPagination.d.ts +3 -2
- package/components/TableV2/AdvancedPagination.js +12 -12
- package/components/TableV2/ColumnHeader.d.ts +3 -2
- package/components/TableV2/ColumnHeader.js +6 -6
- package/components/TableV2/IndeterminateCheckbox.d.ts +3 -4
- package/components/TableV2/IndeterminateCheckbox.js +2 -2
- package/components/TableV2/Table.d.ts +1 -1
- package/components/TableV2/Table.js +8 -8
- package/components/TableV2/hooks/useTableControl.d.ts +1 -1
- package/components/TableV2/hooks/useTableControl.js +1 -1
- package/components/TableV2/types.d.ts +3 -2
- package/components/Text/Text.js +2 -2
- package/components/Text/types.d.ts +2 -2
- package/components/Textarea/Textarea.js +3 -3
- package/components/Textarea/types.d.ts +1 -0
- package/components/Tooltip/Tooltip.js +2 -2
- package/components/Tooltip/types.d.ts +1 -0
- package/components/UnderConstruction/UnderConstruction.js +6 -6
- package/components/UnderConstruction/types.d.ts +2 -1
- package/context/types.d.ts +1 -0
- package/helperComponents/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/helperComponents/ErrorMessage/ErrorMessage.js +3 -3
- package/helperComponents/ErrorMessage/types.d.ts +1 -1
- package/helperComponents/Label/types.d.ts +1 -1
- package/helperComponents/OptionItem/OptionItem.js +2 -2
- package/helperComponents/OptionItem/types.d.ts +1 -1
- package/package.json +1 -1
- package/type/base.d.ts +14 -0
- package/type/base.js +0 -0
- package/type/index.d.ts +1 -0
- package/type/svg-icons.d.ts +1 -1
- package/utils/helpers.d.ts +1 -1
- package/components/Feedback/Feedback.d.ts +0 -3
- package/components/Feedback/Feedback.js +0 -3
- package/components/Feedback/consts.d.ts +0 -1
- package/components/Feedback/consts.js +0 -1
- package/components/Feedback/index.d.ts +0 -1
- package/components/Feedback/index.js +0 -1
- package/components/Feedback/types.d.ts +0 -5
- /package/components/{Feedback → LineChart}/types.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{jsxs as f,Fragment as q,jsx as a}from"react/jsx-runtime";import{forwardRef as z,useState as D,useEffect as B}from"react";import G from"react-datepicker";import{Input as y}from"../../Input/Input.js";import{DateFormat as J}from"../types.js";import{useImportFilesDynamically as K}from"../hooks.js";import{isSameDay as Q}from"../../../utils/helpers.js";import U from"../../SVGIcons/IconCalendarRight.js";import{Modal as W}from"../../Modal/Modal.js";import"classnames";import"../../../consts/index.js";import"../../../context/types.js";import"../../../hooks/useScreenSize.js";import"react-hook-form";import"react-dom";import{CustomHeader as X}from"../CustomHeader/CustomHeader.js";import{formatDate as i}from"../../../helpers/format-date.js";import"react-toastify";import"../../Snackbar/consts.js";const Z=z((e,t)=>{const{value:r,currentDates:o=[],setFieldValue:s,name:n,changeHandler:l,
|
|
1
|
+
import{jsxs as f,Fragment as q,jsx as a}from"react/jsx-runtime";import{forwardRef as z,useState as D,useEffect as B}from"react";import G from"react-datepicker";import{Input as y}from"../../Input/Input.js";import{DateFormat as J}from"../types.js";import{useImportFilesDynamically as K}from"../hooks.js";import{isSameDay as Q}from"../../../utils/helpers.js";import U from"../../SVGIcons/IconCalendarRight.js";import{Modal as W}from"../../Modal/Modal.js";import"classnames";import"../../../consts/index.js";import"../../../context/types.js";import"../../../hooks/useScreenSize.js";import"react-hook-form";import"react-dom";import{CustomHeader as X}from"../CustomHeader/CustomHeader.js";import{formatDate as i}from"../../../helpers/format-date.js";import"react-toastify";import"../../Snackbar/consts.js";const Z=z((e,t)=>{const{value:r,currentDates:o=[],setFieldValue:s,name:n,changeHandler:l,dataTestId:m,format:c=J.LongDate,maxDate:d,minDate:p,locale:u="hy",disabled:x,placeholderText:j,dataTestIdPrefix:b,modalOptions:h,...C}=e;K(u);const g=p?p.getFullYear():1900,k=d?d.getFullYear():/* @__PURE__ */(new Date).getFullYear()+5,I=void 0!==r&&Array.isArray(r)?r:o,[v,T]=D(I),[F,A]=D(!1),[M,O]=D(!1),P=e=>{e&&Array.isArray(e)&&T(e)};if(B(()=>{T(I)},[I]),!Array.isArray(v))return null;const S=()=>{A(!0)},H=()=>{A(!1)},[R,Y]=v;/* @__PURE__ */
|
|
2
2
|
return f(q,{children:[
|
|
3
|
-
/* @__PURE__ */a(y,{readOnly:!0,onClick:
|
|
4
|
-
/* @__PURE__ */f(W,{isOpen:
|
|
3
|
+
/* @__PURE__ */a(y,{readOnly:!0,onClick:S,dataTestId:m,disabled:x,placeholder:j,currentValue:(e=>{if(F&&!M)return;const[t,a]=e,r=i(t,c),o=i(a,c);return Q(t,a)||!a?r:`${r} - ${o}`})(v),rightIconProps:{Component:U,onClick:S}}),
|
|
4
|
+
/* @__PURE__ */f(W,{isOpen:F,title:null==h?void 0:h.title,onClose:H,buttonProps:{confirm:{buttonText:null==h?void 0:h.btnConfirmText,onClick:()=>{l&&l(v),s&&n&&s(n,v),O(!0),H()}},cancel:{buttonText:null==h?void 0:h.btnCancelText,onClick:H}},closeIcon:!0,children:[
|
|
5
5
|
/* @__PURE__ */f("div",{className:"flexbox justify-content--between mb-16 gap-16",children:[
|
|
6
|
-
/* @__PURE__ */a(y,{readOnly:!0,value:i(
|
|
6
|
+
/* @__PURE__ */a(y,{readOnly:!0,value:i(R,c)}),
|
|
7
7
|
/* @__PURE__ */a(y,{readOnly:!0,value:i(Y,c)})]}),
|
|
8
|
-
/* @__PURE__ */a(G,{...C,inline:!0,locale:u,minDate:p,maxDate:d,startDate:
|
|
8
|
+
/* @__PURE__ */a(G,{...C,inline:!0,locale:u,minDate:p,maxDate:d,startDate:R,endDate:Y,selectsRange:!0,disabled:x,onChange:P,onClickOutside:()=>{const[e,t]=v;(!e||!t)&&P([null,null])},renderCustomHeader:e=>/* @__PURE__ */a(X,{...e,locale:u,startYear:g,endYear:k,dataPrefix:b,isMobile:!0})})]})]})});Z.displayName="RangeDatePickerMobile";export{Z as RangeDatePickerMobile};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as
|
|
2
|
-
return
|
|
1
|
+
import{jsxs as O,jsx as a}from"react/jsx-runtime";import{useRef as R}from"react";import u from"dayjs";import S from"react-datepicker";import{Input as V}from"../../Input/Input.js";import{Label as q}from"../../../helperComponents/Label/Label.js";import{CustomHeader as w}from"../CustomHeader/CustomHeader.js";import{useImportFilesDynamically as z}from"../hooks.js";import E from"../../SVGIcons/IconCalendarRight.js";const U=e=>{const{value:t,currentDate:r,setFieldValue:o,name:l,label:n,size:s,locale:i="hy",changeHandler:m,format:c="M/D/YYYY",required:d=!1,dataTestId:p,hasError:f,placeholderText:x,minDate:h,maxDate:j,dataTestIdPrefix:D,helperText:I,inline:C,...g}=e,Y=h?h.getFullYear():1900,T=j?j.getFullYear():/* @__PURE__ */(new Date).getFullYear()+5,b=R(null);z(i);const k=void 0!==t&&"[object Date]"===Object.prototype.toString.call(t)?t:r;/* @__PURE__ */
|
|
2
|
+
return O("div",{className:"picker-container",children:[
|
|
3
3
|
/* @__PURE__ */a(q,{text:n,required:d,invalid:f}),
|
|
4
|
-
/* @__PURE__ */a(
|
|
4
|
+
/* @__PURE__ */a(S,{minDate:h,maxDate:j,selected:u(k).isValid()?k:null,locale:i,ref:b,customInput:/* @__PURE__ */a(V,{size:s,dataTestId:p,helperText:I,datePlaceHolderText:n?"":x,rightIconProps:{Component:E,onClick:()=>{var e,t;if(b.current){const a=null==(e=b.current)?void 0:e.isCalendarOpen();null==(t=b.current)||t.setOpen(!a)}}},currentValue:k?u(k.toString()).format(c):""}),inline:C,...g,onChange:e=>{o&&l&&o(l,e),m&&m(e)},renderCustomHeader:e=>/* @__PURE__ */a(w,{...e,locale:i,startYear:Y,endYear:T,dataPrefix:D})})]})};export{U as SimpleDatePickerDesktop};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{jsxs as
|
|
2
|
-
return S
|
|
1
|
+
import{jsxs as O,Fragment as S,jsx as e}from"react/jsx-runtime";import v from"react";import{Input as V}from"../../Input/Input.js";import w from"../../SVGIcons/IconCalendarRight.js";import D from"dayjs";import{useImportFilesDynamically as R}from"../hooks.js";import{Modal as q}from"../../Modal/Modal.js";import"classnames";import"../../../consts/index.js";import"../../../context/types.js";import"../../../hooks/useScreenSize.js";import"react-hook-form";import"react-dom";import{CustomHeader as z}from"../CustomHeader/CustomHeader.js";import E from"react-datepicker";import{Label as L}from"../../../helperComponents/Label/Label.js";const oe=t=>{const{size:o,dataTestId:r,helperText:a,label:l,placeholderText:s,format:i="M/D/YYYY",value:n,currentDate:m,minDate:d,maxDate:c,locale:p="hy",dataTestIdPrefix:u,modalOptions:h,name:f,changeHandler:j,setFieldValue:x,required:C,hasError:I,...g}=t,Y=d?d.getFullYear():1900,b=c?c.getFullYear():/* @__PURE__ */(new Date).getFullYear()+5,[k,y]=v.useState(!1);R(p);const F=void 0!==n&&"[object Date]"===Object.prototype.toString.call(n)?n:m,T=()=>{y(!0)},H=()=>{y(!1)};/* @__PURE__ */
|
|
2
|
+
return O(S,{children:[
|
|
3
3
|
/* @__PURE__ */e(L,{text:l,required:C,invalid:I}),
|
|
4
|
-
/* @__PURE__ */e(V,{size:o,onClick:
|
|
5
|
-
/* @__PURE__ */e(q,{isOpen:k,title:null==h?void 0:h.title,onClose:
|
|
4
|
+
/* @__PURE__ */e(V,{size:o,onClick:T,dataTestId:r,readOnly:!0,helperText:a,datePlaceHolderText:l?"":s,rightIconProps:{Component:w,onClick:T},currentValue:F?D(F.toString()).format(i):""}),
|
|
5
|
+
/* @__PURE__ */e(q,{isOpen:k,title:null==h?void 0:h.title,onClose:H,withFooter:!1,closeIcon:!0,children:/* @__PURE__ */e(E,{minDate:d,maxDate:c,selected:D(F).isValid()?F:null,locale:p,inline:!0,...g,onChange:e=>{x&&f&&x(f,e),j&&j(e),H()},renderCustomHeader:t=>/* @__PURE__ */e(z,{...t,locale:p,startYear:Y,endYear:b,dataPrefix:u,isMobile:!0})})})]})};export{oe as SimpleDatePickerMobile};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as S,jsx as a}from"react/jsx-runtime";import{useState as x,useRef as w}from"react";import b from"dayjs";import F from"react-datepicker";import{Input as N}from"../../Input/Input.js";import{Label as P}from"../../../helperComponents/Label/Label.js";import{useImportFilesDynamically as V}from"../hooks.js";import _ from"../../SVGIcons/IconClock.js";const J=e=>{const{value:t,currentTime:r,name:o,setFieldValue:
|
|
1
|
+
import{jsxs as S,jsx as a}from"react/jsx-runtime";import{useState as x,useRef as w}from"react";import b from"dayjs";import F from"react-datepicker";import{Input as N}from"../../Input/Input.js";import{Label as P}from"../../../helperComponents/Label/Label.js";import{useImportFilesDynamically as V}from"../hooks.js";import _ from"../../SVGIcons/IconClock.js";const J=e=>{const{value:t,currentTime:r,name:o,setFieldValue:s,label:n,size:l,dataTestId:i,changeHandler:c,required:m,format:u="HH:mm",locale:d="hy",hasError:p,...f}=e,[h,j]=x(),I=void 0!==t&&"[object Date]"===Object.prototype.toString.call(t)?t:r,v=w(null);V(d);const g=e=>{j(e?b(e).format("HH:mm"):""),c&&c(e),s&&o&&s(o,e)};/* @__PURE__ */
|
|
2
2
|
return S("div",{className:"picker-container input__inner",children:[
|
|
3
|
-
/* @__PURE__ */a(P,{text:
|
|
4
|
-
/* @__PURE__ */a(F,{selected:b(I).isValid()?I:null,locale:d,showTimeSelect:!0,showTimeSelectOnly:!0,dateFormat:u,ref:v,...f,onChange:g,customInput:/* @__PURE__ */a(N,{handleChange:e=>{j(e.target.value)},handleBlurEvent:()=>{const e=/* @__PURE__ */new Date;if(e.setHours(0,0),!h||h.includes(":")&&":"!==h[2])return void g(e);const t=h.replace(":","");if(4===t.length){const r=Number(t.slice(0,2)),a=Number(t.slice(2,4));r<24&&a<60&&e.setHours(r,a)}g(e)},disabled:f.disabled,
|
|
3
|
+
/* @__PURE__ */a(P,{text:n,required:m,invalid:p}),
|
|
4
|
+
/* @__PURE__ */a(F,{selected:b(I).isValid()?I:null,locale:d,showTimeSelect:!0,showTimeSelectOnly:!0,dateFormat:u,ref:v,...f,onChange:g,customInput:/* @__PURE__ */a(N,{handleChange:e=>{j(e.target.value)},handleBlurEvent:()=>{const e=/* @__PURE__ */new Date;if(e.setHours(0,0),!h||h.includes(":")&&":"!==h[2])return void g(e);const t=h.replace(":","");if(4===t.length){const r=Number(t.slice(0,2)),a=Number(t.slice(2,4));r<24&&a<60&&e.setHours(r,a)}g(e)},disabled:f.disabled,dataTestId:i,size:l,rightIconProps:{Component:_,onClick:()=>{var e,t;if(v.current){const r=null==(e=v.current)?void 0:e.isCalendarOpen();null==(t=v.current)||t.setOpen(!r)}}}})})]})};export{J as TimePickerDesktop};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{jsxs as I,Fragment as j,jsx as i}from"react/jsx-runtime";import{useState as y}from"react";import{Label as H}from"../../../helperComponents/Label/Label.js";import{Input as v}from"../../Input/Input.js";import M from"../../SVGIcons/IconCalendarRight.js";import S from"dayjs";import{MobileModalContent as V}from"./MobileModalContent.js";const E=e=>{const{value:t,currentTime:o,format:r="HH:mm",label:a,required:l,hasError:n,size:
|
|
1
|
+
import{jsxs as I,Fragment as j,jsx as i}from"react/jsx-runtime";import{useState as y}from"react";import{Label as H}from"../../../helperComponents/Label/Label.js";import{Input as v}from"../../Input/Input.js";import M from"../../SVGIcons/IconCalendarRight.js";import S from"dayjs";import{MobileModalContent as V}from"./MobileModalContent.js";const E=e=>{const{value:t,currentTime:o,format:r="HH:mm",label:a,required:l,hasError:n,size:s,placeholderText:m,dataTestId:d,changeHandler:p,setFieldValue:c,modalOptions:u,name:b}=e,f=void 0!==t&&"[object Date]"===Object.prototype.toString.call(t)?t:o,[T,x]=y(!1),C=()=>x(!0),h=()=>x(!1);/* @__PURE__ */
|
|
2
2
|
return I(j,{children:[
|
|
3
3
|
/* @__PURE__ */i(H,{text:a,required:l,invalid:n}),
|
|
4
|
-
/* @__PURE__ */i(v,{size:
|
|
5
|
-
/* @__PURE__ */i(V,{dateInitialValue:f,onApply:e=>{(e=>{p&&p(e),c&&b&&c(b,e)})(e),h()},mobileTitle:null==u?void 0:u.title,isOpen:
|
|
4
|
+
/* @__PURE__ */i(v,{size:s,onClick:C,dataTestId:d,readOnly:!0,datePlaceHolderText:a?"":m,rightIconProps:{Component:M,onClick:C},currentValue:f?S(f.toString()).format(r):""}),
|
|
5
|
+
/* @__PURE__ */i(V,{dateInitialValue:f,onApply:e=>{(e=>{p&&p(e),c&&b&&c(b,e)})(e),h()},mobileTitle:null==u?void 0:u.title,isOpen:T,closeTimePicker:h,modalApplyButtonText:null==u?void 0:u.btnConfirmText})]})};export{E as TimePickerMobile};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { IFormCompProps } from '../../type';
|
|
1
2
|
import { DatePickerProps } from 'react-datepicker';
|
|
2
3
|
import { ReactNode } from 'react';
|
|
3
4
|
type DatePickerDefaultProps = Omit<IFormCompProps, 'value'> & Omit<DatePickerProps, 'onChange' | 'value'>;
|
|
4
5
|
export interface TDatepickerBaseProps extends DatePickerDefaultProps {
|
|
5
|
-
|
|
6
|
-
dataIdPrefix?: string;
|
|
6
|
+
dataTestIdPrefix?: string;
|
|
7
7
|
label?: ReactNode;
|
|
8
8
|
format?: string;
|
|
9
9
|
inline?: boolean;
|
|
@@ -34,7 +34,7 @@ export interface ITimePickerProps extends TDatepickerBaseProps {
|
|
|
34
34
|
}
|
|
35
35
|
export interface IRangeDatePickerProps extends TDatepickerBaseProps {
|
|
36
36
|
currentDates?: TRangePickerValues;
|
|
37
|
-
changeHandler
|
|
37
|
+
changeHandler?: (date: TRangePickerValues) => void;
|
|
38
38
|
maxDate?: Date | undefined;
|
|
39
39
|
value?: [Date, Date];
|
|
40
40
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
return
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import s from"classnames";const c=r=>{const{type:i="primary",isHorizontal:e,className:t,color:a="light-grey",dataTestId:d=""}=r;/* @__PURE__ */
|
|
2
|
+
return o("hr",{"data-test-id":d,className:s("divider",`divider--${i}`,`divider--${a}`,{"divider--horizontal":e,"divider--vertical":!e},t)})};export{c as Divider};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsxs as m,jsx as
|
|
2
|
-
return m("div",{className:g("no-result "+("large"==
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */m("div",{className:"no-result__content",children:[
|
|
1
|
+
import{jsxs as m,jsx as a}from"react/jsx-runtime";import{Text as o}from"../Text/Text.js";import{Image as c}from"../Image/Image.js";import{Button as u}from"../Button/Button.js";import g from"classnames";import p from"../../assets/images/no-result.svg.js";const $=s=>{const{size:t="large",mainMessage:e,paragraphMessage:l,buttonProps:r,className:i,illustration:n=p,dataTestId:d=""}=s;/* @__PURE__ */
|
|
2
|
+
return m("div",{"data-test-id":d,className:g("no-result "+("large"==t?"no-result--large":"no-result--small"),i),children:[
|
|
3
|
+
/* @__PURE__ */a("div",{className:"no-result__icon",children:/* @__PURE__ */a(c,{imagePath:n,dataTestId:d?`${d}-image`:""})}),
|
|
4
|
+
/* @__PURE__ */m("div",{className:"no-result__content",children:[e?/* @__PURE__ */a(o,{size:"large"==t?"large":"small",weight:"bold",dataTestId:d?`${d}-text`:"",children:e}):null,l?/* @__PURE__ */a(o,{size:"large"==t?"small":"xsmall",dataTestId:d?`${d}-subtext`:"",children:l}):null,r?/* @__PURE__ */a(u,{...r,size:"medium",className:"mt-4",dataTestId:r.dataTestId??(d?`${d}-action`:"")}):null]})]})};export{$ as Empty};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{jsxs as
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsxs as g,jsx as i}from"react/jsx-runtime";import{forwardRef as k,useState as q,useCallback as w}from"react";import{useDropzone as G,ErrorCode as L}from"react-dropzone";import O from"../../SVGIcons/IconUpload.js";import{Text as E}from"../../Text/Text.js";import B from"classnames";import{FileTypeEnum as z}from"../../../type/file-upload.js";import{FileUploadMode as C}from"../types.js";import{generateAreaContent as H,getDropzoneLocale as I}from"./helpers.js";import{ErrorItem as J}from"./ErrorItem.js";import{PreviewItem as K}from"./PreviewItem.js";import{uniqueFiles as Q}from"../../../utils/helpers.js";const W=k(({maxSize:e=10485760,allowedTypes:a=[z.IMAGE,z.PDF,z.DOC],name:o,setFiles:s,setFieldValue:t,value:r,selectedFiles:l,maxFiles:m=1,mode:d=C.attach,locale:p,multiple:n=!1,dataTestId:c=""},f)=>{const u=r||l||[],x=u.length>=m?0:m-u.length,[F,h]=q([]),v=H({allowedTypes:a,maxSize:e}),T=I(p),{getRootProps:j,getInputProps:y,isFocused:$,isDragActive:D}=G({onDrop:(e,a)=>{if(0===x&&!n)return void h([{code:L.TooManyFiles,message:""}]);const o=Q([...u,...e]),t=a.map(e=>e.errors).flat();null==s||s(o),_(o),h(t)},accept:v.acceptTypes,maxSize:e,maxFiles:n?0:x,multiple:n}),_=w(e=>{o&&t&&t(o,e)},[o,t]);/* @__PURE__ */
|
|
2
|
+
return g("div",{className:"dz-file-upload","data-test-id":c,children:[d!==C.view?/* @__PURE__ */g("div",{...j(),className:B("dz-file-upload__area",{"dz-file-upload__area--focused":$,"dz-file-upload__area--active":D}),"data-test-id":c?`${c}-dropzone`:"",children:[
|
|
3
|
+
/* @__PURE__ */i(O,{className:"mb-20",size:"xlarge"}),
|
|
4
|
+
/* @__PURE__ */i("input",{...y(),name:o,"data-test-id":c?`${c}-input`:""}),
|
|
5
|
+
/* @__PURE__ */i(E,{type:"primary",weight:"semibold",className:"mb-6",children:T.title}),
|
|
6
|
+
/* @__PURE__ */i(E,{size:"small",children:`${v.acceptTypesMessage} ${1===(null==a?void 0:a.length)?T.format:T.formats}, ${T.maxSize.replace("$1",v.maxSizeFormatted)}`})]}):null,
|
|
7
|
+
/* @__PURE__ */g("div",{className:"dz-file-upload__files",children:[F.map(({code:e},a)=>/* @__PURE__ */i(J,{code:e,areaContent:v,onRemove:()=>(e=>{h(a=>a.filter((a,o)=>o!==e))})(a),locale:p,dataTestId:c?`${c}-error-${a}`:""},a)),u.map((e,a)=>/* @__PURE__ */i(K,{file:e,onRemove:()=>(e=>{const a=u.filter(a=>a.name!==e);0===a.length&&h([]),null==s||s(a),_(a)})(e.name),mode:d,dataTestId:c?`${c}-item-${a}`:""},a))]})]})});W.displayName="DropzoneFileUpload";export{W as DropzoneFileUpload};
|
|
@@ -5,6 +5,7 @@ interface IErrorItemProps {
|
|
|
5
5
|
areaContent: AreaContentDTO;
|
|
6
6
|
onRemove: () => void;
|
|
7
7
|
locale?: string;
|
|
8
|
+
dataTestId?: string;
|
|
8
9
|
}
|
|
9
|
-
export declare const ErrorItem: ({ code, onRemove, areaContent, locale }: IErrorItemProps) => ReactElement | null;
|
|
10
|
+
export declare const ErrorItem: ({ code, onRemove, areaContent, locale, dataTestId }: IErrorItemProps) => ReactElement | null;
|
|
10
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{useMemo as m}from"react";import{ErrorCode as o}from"react-dropzone";import{Alert as p}from"../../Alert/Alert.js";import{getDropzoneLocale as f}from"./helpers.js";const F=({code:e,onRemove:r,areaContent:t,locale:s,dataTestId:l=""})=>{const n=m(()=>{const r=f(s);return e===o.FileInvalidType?r.fileInvalidType.replace("$1",t.acceptTypesMessage):e===o.FileTooLarge?r.fileTooLarge.replace("$1",t.maxSizeFormatted):e===o.TooManyFiles?r.tooManyFiles:""},[e]);return n?/* @__PURE__ */a(p,{type:"error",text:n,closeIcon:!0,onClose:r,dataTestId:l}):null};export{F as ErrorItem};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { FileType, FileUploadMode } from '../types';
|
|
3
|
-
export declare const PreviewItem: ({ file, onRemove, mode }: {
|
|
3
|
+
export declare const PreviewItem: ({ file, onRemove, mode, dataTestId }: {
|
|
4
4
|
file: FileType;
|
|
5
5
|
onRemove: () => void;
|
|
6
6
|
mode: FileUploadMode;
|
|
7
|
+
dataTestId?: string;
|
|
7
8
|
}) => ReactElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{jsxs as
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */e("div",{className:"dz-file-upload__files--item__preview",children:/* @__PURE__ */e(
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */e(
|
|
7
|
-
/* @__PURE__ */e("div",{className:"dz-file-upload__files--item__info-size",children:/* @__PURE__ */e(
|
|
1
|
+
import{jsxs as m,jsx as e}from"react/jsx-runtime";import{Text as s}from"../../Text/Text.js";import{Button as p}from"../../Button/Button.js";import _ from"../../SVGIcons/IconDelete.js";import{useMemo as w}from"react";import{FileUploadMode as l}from"../types.js";import{FilePreview as v}from"./FilePreview.js";import{shortenFileName as z,formatFileSize as h}from"./helpers.js";import u from"../../SVGIcons/IconArrowDownloadFilled.js";import F from"classnames";import"../../../helpers/format-date.js";import{downloadFile as N}from"../../../helpers/download-file.js";import"react-toastify";import"../../Snackbar/consts.js";import"dayjs";import"../../../consts/index.js";const O=({file:i,onRemove:t,mode:o,dataTestId:a=""})=>{const r=i.type.split("/")[0],d=w(()=>URL.createObjectURL(i),[i.name]);/* @__PURE__ */
|
|
2
|
+
return m("div",{className:F("dz-file-upload__files--item",{"dz-file-upload__files--item--view":o===l.view}),"data-test-id":a,onClick:()=>{o===l.view&&window.open(d,"_blank")},children:[
|
|
3
|
+
/* @__PURE__ */e("div",{className:"dz-file-upload__files--item__preview",children:/* @__PURE__ */e(v,{preview:d,type:r})}),
|
|
4
|
+
/* @__PURE__ */m("div",{className:"dz-file-upload__files--item__info",children:[
|
|
5
|
+
/* @__PURE__ */m("div",{className:"dz-file-upload__files--item__info-title",children:[
|
|
6
|
+
/* @__PURE__ */e(s,{weight:"semibold",dataTestId:a?`${a}-text`:"",children:z(i.name,40)}),o===l.attach&&/* @__PURE__ */e(p,{size:"small",type:"tertiary",onClick:t,iconProps:{Component:_},dataTestId:a?`${a}-close`:""}),o===l.view&&/* @__PURE__ */e(p,{size:"small",type:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),N(d,i.name)},iconProps:{Component:u},dataTestId:a?`${a}-action`:""})]}),
|
|
7
|
+
/* @__PURE__ */e("div",{className:"dz-file-upload__files--item__info-size",children:/* @__PURE__ */e(s,{size:"small",dataTestId:a?`${a}-size`:"",children:h(i.size)})})]})]})};export{O as PreviewItem};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{jsxs as
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
1
|
+
import{jsxs as z,jsx as o}from"react/jsx-runtime";import{useRef as H,useState as V,useCallback as g}from"react";import{FileUploadMode as h}from"./types.js";import{Button as D}from"../Button/Button.js";import{Label as G}from"../../helperComponents/Label/Label.js";import{UploadItems as J}from"./UploadItems.js";import{FILE_UPLOAD_ERRORS as A}from"../../consts/index.js";import{uniqueFiles as K,checkIsAllowedFileSize as Q,checkIsAllowedTypes as W,getFormattedValues as X}from"../../utils/helpers.js";import Y from"../SVGIcons/IconEditFilled.js";import Z from"../SVGIcons/IconEdit.js";import ee from"../SVGIcons/IconAttach.js";const me=e=>{const{allowedTypes:t="application/pdf, .png, .jpg, .jpeg, image/jpeg, image/png, image/jpg, text/plain, image/*, .pdf, .doc, .docx, application/vnd",label:i,getFiles:a,removeFiles:l,handleFileClick:s,name:n,setFieldValue:r,toBase64:d,required:c,disabled:p,buttonText:m,withFilePreview:u=!0,multiple:f=!0,uploadedFiles:j,value:F,labelAddons:I,onError:b,fileAllowedSize:v,mode:x=h.attach,size:y="medium",iconProps:k={Component:ee},dataTestId:w=""}=e,C=F||j||[],T=H(null),[S,E]=V(!1),L=()=>E(!S),_=()=>{T.current&&T.current.click()},P=g(e=>{n&&r&&r(n,e)},[n,r]),R=g(e=>{var i;const o=null==(i=e.target)?void 0:i.files,l=f?Array.from(o):[o[0]];if(l){(e=>{const i=e.filter(e=>!(v&&!Q(v,e.size)));e.filter(e=>!(t&&!W(t,e.type))).length===e.length?i.length===e.length?(P(d?X(e):e),a&&a(e)):b&&b(A.size):b&&b(A.type)})(K(f?[...l,...C]:l))}T.current&&(T.current.value="")},[C,f]),U=g((e,t)=>{if(C){const i=C.filter((e,i)=>i!==t);P(i),l&&l(e)}},[C,l]);/* @__PURE__ */
|
|
2
|
+
return z("div",{className:"file-upload","data-test-id":w,children:[
|
|
3
|
+
/* @__PURE__ */o(G,{text:i,required:c,disabled:p,labelAddons:I,dataTestId:w?`${w}-label`:""}),
|
|
4
|
+
/* @__PURE__ */z("div",{className:"file-upload__inner",children:[
|
|
5
|
+
/* @__PURE__ */o("input",{name:n,type:"file",multiple:f,className:"hide",ref:T,accept:t,"data-test-id":w?`${w}-input`:"",onChange:R}),x===h.edit&&/* @__PURE__ */o("div",{className:"edit__icon","data-test-id":w?`${w}-trigger`:"",onMouseEnter:L,onMouseLeave:L,onClick:_,children:/* @__PURE__ */o(S?Y:Z,{size:"xxsmall",type:"secondary"})}),x===h.attach&&/* @__PURE__ */o(D,{type:"secondary",size:y,disabled:p,iconProps:k,onClick:_,buttonText:m,dataTestId:w?`${w}-action`:""}),
|
|
6
|
+
/* @__PURE__ */o(J,{handleFileClick:s,onRemove:U,files:C,withFilePreview:u,dataTestId:w})]})]})};export{me as FileUpload};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
return
|
|
3
|
-
return
|
|
1
|
+
import{jsx as o,Fragment as h,jsxs as l}from"react/jsx-runtime";import{Text as _}from"../Text/Text.js";import"react";import"../../consts/index.js";import{useFormProps as $}from"../../hooks/useFormProps.js";import"../../context/types.js";import"../../hooks/useScreenSize.js";import"react-hook-form";import{openFileInNewWindow as g}from"../../utils/helpers.js";import{ErrorMessage as I}from"../../helperComponents/ErrorMessage/ErrorMessage.js";import{Button as v}from"../Button/Button.js";import N from"../SVGIcons/IconDelete.js";const D=e=>{const{files:s,onRemove:t,withFilePreview:r,handleFileClick:i,dataTestId:a=""}=e,{errors:m}=$(),n=m&&m.files&&m.files.length>0;/* @__PURE__ */
|
|
2
|
+
return o(h,{children:s.map((e,s)=>{var d,p;/* @__PURE__ */
|
|
3
|
+
return o("div",{className:"upload-item mt-4 "+(n&&null!=(d=m.files[s])&&d.message?"upload-item--error":""),"data-test-id":a?`${a}-item-${s}`:"",children:/* @__PURE__ */o("div",{className:"upload-item__inner",children:/* @__PURE__ */l("div",{className:"upload-item__content mb-2",children:[
|
|
4
4
|
/* @__PURE__ */l("div",{className:"upload-item__content__inner pr-8",children:[
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
5
|
+
/* @__PURE__ */o(_,{size:"small",lineHeight:"medium",className:"upload-item__text",dataTestId:a?`${a}-item-${s}-text`:"",onClick:s=>r&&g({e:s,file:e,handleFileClick:i}),children:e.name}),n&&/* @__PURE__ */o(I,{message:null==(p=m.files[s])?void 0:p.message,dataTestId:a?`${a}-item-${s}`:""})]}),
|
|
6
|
+
/* @__PURE__ */o(v,{type:"tertiary",size:"small",iconProps:{Component:N},dataTestId:a?`${a}-item-${s}-close`:"",onClick:()=>{t(e,s)}})]})})},s)})})};export{D as UploadItems};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FILE_UPLOAD_ERRORS } from '../../consts';
|
|
2
|
-
import { FileTypeEnum } from '../../type';
|
|
2
|
+
import { FileTypeEnum, IBaseProps, IFormCompProps } from '../../type';
|
|
3
3
|
import { Dispatch, SetStateAction } from 'react';
|
|
4
4
|
import { Accept, DropzoneOptions } from 'react-dropzone';
|
|
5
|
+
import { TButtonPropTypes } from '../Button/types';
|
|
5
6
|
export interface TFileUploadProps extends IFormCompProps {
|
|
6
7
|
allowedTypes?: string;
|
|
7
8
|
label?: string | React.ReactElement;
|
|
@@ -20,13 +21,15 @@ export interface TFileUploadProps extends IFormCompProps {
|
|
|
20
21
|
labelAddons?: React.ReactElement;
|
|
21
22
|
onError?: (errorType: FILE_UPLOAD_ERRORS) => void;
|
|
22
23
|
fileAllowedSize?: number;
|
|
24
|
+
size?: TButtonPropTypes['size'];
|
|
25
|
+
iconProps?: TButtonPropTypes['iconProps'];
|
|
23
26
|
}
|
|
24
27
|
export declare enum FileUploadMode {
|
|
25
28
|
edit = "edit",
|
|
26
29
|
attach = "attach",
|
|
27
30
|
view = "view"
|
|
28
31
|
}
|
|
29
|
-
export interface IUploadItemPropTypes {
|
|
32
|
+
export interface IUploadItemPropTypes extends IBaseProps {
|
|
30
33
|
name?: string;
|
|
31
34
|
onRemove: (file: File, index: number) => void;
|
|
32
35
|
fileType?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as o,jsxs as O,Fragment as P}from"react/jsx-runtime";import{useEffect as R,createElement as U}from"react";import{useForm as W}from"react-hook-form";import{yupResolver as q}from"@hookform/resolvers/yup";import z from"classnames";import{FormContext as A}from"../../context/types.js";import{Button as G}from"../Button/Button.js";const Y=t=>{const{children:r,className:e="",shouldUnregister:s,shouldFocusError:i=!0,mode:a="onBlur",initialValues:n,validationScheme:m,buttonConfigs:l,formId:u,language:d,onSubmit:c,dataTestId:g=""}=t,{handleSubmit:f,register:h,setValue:b,control:S,formState:p,getValues:F,watch:y,reset:E,clearErrors:V,setError:v,trigger:j,getFieldState:x,unregister:k}=W({mode:a,resolver:q(m),defaultValues:n,shouldFocusError:i,shouldUnregister:s}),{errors:B,isDirty:I,isSubmitted:C,isSubmitting:N,dirtyFields:T,isValid:$}=p,w=t=>{c&&c(t,p,T)};return R(()=>{if(p.isSubmitted){const t=Object.keys(p.errors);t.length>0&&j(t)}},[d]),/* @__PURE__ */o("form",{onSubmit:f(w),id:u,"data-test-id":g,className:z("form-container",e),children:/* @__PURE__ */o(A.Provider,{value:{trigger:j,register:h,errors:B,control:S,setValue:b,getValues:F,watch:y,reset:E,isDirty:I,isSubmitted:C,isSubmitting:N,clearErrors:V,setError:v,dirtyFields:T,getFieldState:x,unregister:k,isValid:$,onSubmit:()=>f(w)()},children:/* @__PURE__ */O(P,{children:[r,l&&/* @__PURE__ */o("div",{className:"form-container__buttons","data-test-id":g?`${g}-buttons`:"",children:l.map((t,r)=>/* @__PURE__ */U(G,{...t,key:r,dataTestId:g?`${g}-button-${r}`:t.dataTestId}))})]})})})};export{Y as FormContainer};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IBaseProps } from '../../type';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
3
|
import { FormState, ValidationMode } from 'react-hook-form';
|
|
3
4
|
import { AnyObjectSchema } from 'yup';
|
|
@@ -5,7 +6,7 @@ import { TButtonPropTypes } from '../Button/types';
|
|
|
5
6
|
export type TDirtyFields = Partial<Readonly<{
|
|
6
7
|
[x: string]: unknown;
|
|
7
8
|
}>>;
|
|
8
|
-
export interface FormPropTypes {
|
|
9
|
+
export interface FormPropTypes extends IBaseProps {
|
|
9
10
|
className?: string;
|
|
10
11
|
onSubmit?: (data: TFormData, formState: FormState<TFormData>, dirtyFields?: TDirtyFields) => void;
|
|
11
12
|
children?: ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{jsx as s,jsxs as M,Fragment as V}from"react/jsx-runtime";import{useContext as N}from"react";import{ErrorMessage as C}from"@hookform/error-message";import{ErrorMessage as
|
|
2
|
-
return s("div",{className:
|
|
3
|
-
return M(V,{children:[e({hasError:!!a.error,isValid:a.isTouched&&a.isDirty&&!a.invalid,
|
|
1
|
+
import{jsx as s,jsxs as M,Fragment as V}from"react/jsx-runtime";import{useContext as N}from"react";import{ErrorMessage as C}from"@hookform/error-message";import{ErrorMessage as T}from"../../helperComponents/ErrorMessage/ErrorMessage.js";import{FormContext as j}from"../../context/types.js";import{Controller as v}from"react-hook-form";import y from"classnames";const b=r=>{const{As:e,name:o,className:a="",dataTestId:t="",hideErrorMessage:l=!1,errorMessageIcon:n,defaultValue:i}=r,{register:m,errors:d,setValue:u,control:c}=N(j);if(!m)return null;const f=m(o);/* @__PURE__ */
|
|
2
|
+
return s("div",{className:y("form-container__field",a,o),children:/* @__PURE__ */s(v,{control:c,name:o,...i?{defaultValue:i}:{},render:({field:r,fieldState:a})=>{var i;/* @__PURE__ */
|
|
3
|
+
return M(V,{children:[e({hasError:!!a.error,isValid:a.isTouched&&a.isDirty&&!a.invalid,dataTestId:t,...f,setFieldValue:(r,e,s)=>u(r,e,{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0,...s}),...r}),l?null:/* @__PURE__ */s(C,{name:null!=(i=null==d?void 0:d[o])&&i.root?`${o}.root`:o,errors:d,render:({message:r})=>/* @__PURE__ */s(T,{dataTestId:t,message:r||"",className:"full-width",icon:n})})]})}})})};export{b as FormField};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { IBaseProps, IFormCompProps } from '../../type';
|
|
2
|
+
export interface TFormFieldPropTypes extends IBaseProps {
|
|
2
3
|
As: (props: IFormCompProps) => React.ReactElement;
|
|
3
4
|
name: string;
|
|
4
5
|
className?: string;
|
|
5
|
-
dataId?: string;
|
|
6
6
|
hideErrorMessage?: boolean;
|
|
7
7
|
errorMessageIcon?: string;
|
|
8
8
|
defaultValue?: any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as n}from"react/jsx-runtime";import{noop as d}from"../../utils/helpers.js";import c from"classnames";const f=e=>{const{children:a,className:s="",size:i="small",lineHeight:r="large",type:
|
|
2
|
-
return n(
|
|
1
|
+
import{jsx as n}from"react/jsx-runtime";import{noop as d}from"../../utils/helpers.js";import c from"classnames";const f=e=>{const{children:a,className:s="",size:i="small",lineHeight:r="large",type:t="h1",weight:l="regular",onClick:o=d,dataTestId:m=""}=e;/* @__PURE__ */
|
|
2
|
+
return n(t,{dataid:m,onClick:o,className:c("heading",i&&`heading-${i}`,l,r&&`lh-${r}`,s),children:a})};export{f as Heading};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { IBaseProps } from '../../type';
|
|
1
2
|
import { ElementType, ReactNode } from 'react';
|
|
2
|
-
export interface HeadingPropTypes {
|
|
3
|
+
export interface HeadingPropTypes extends IBaseProps {
|
|
3
4
|
children?: ReactNode;
|
|
4
5
|
type?: ElementType;
|
|
5
6
|
size?: 'xsmall' | 'small' | 'standard' | 'medium' | 'large' | 'xlarge';
|
|
@@ -7,5 +8,4 @@ export interface HeadingPropTypes {
|
|
|
7
8
|
lineHeight?: 'xsmall' | 'small' | 'medium' | 'large';
|
|
8
9
|
className?: string;
|
|
9
10
|
onClick?: (event: TClickEventType) => void;
|
|
10
|
-
dataId?: string;
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";const
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";const n=a=>{const{name:e,imagePath:t="static/media/src/assets/images/image-placeholder.png",isBackgroundImage:s,backgroundSize:g,className:m="",isFullWidth:c,isFullHeight:r,ratio:d,dataTestId:l=""}=a;return s?/* @__PURE__ */i("div",{"data-test-id":l,className:`image image--bg ${m}`,style:{backgroundImage:""+(t?`url(${t})`:""),backgroundSize:g,aspectRatio:d}}):/* @__PURE__ */i("img",{"data-test-id":l,className:`image ${m}`,src:t,alt:e,style:{aspectRatio:d,width:c?"100%":"",height:r?"100%":""}})};export{n as Image};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{jsx as l,jsxs as d,Fragment as
|
|
2
|
-
/* @__PURE__ */l(I,{name:u,mask:
|
|
3
|
-
/* @__PURE__ */l(P,{...R,name:u,onChange:H,placeholder:G,readOnly:C,allowLeadingZeros:
|
|
4
|
-
/* @__PURE__ */l("input",{readOnly:C,disabled:f,name:u,ref:U,type:x,placeholder:G,"data-id":z,...R,onBlur:J,onChange:H,...void 0!==c?{value:c}:{}});/* @__PURE__ */
|
|
5
|
-
return d("div",{className:h(`input input--${s}`,a,{"input--icon-left":p,"input--icon-right":g,"input--invalid":Z||!!n,"input--valid":
|
|
6
|
-
/* @__PURE__ */l(li,{text:i,required:v,disabled:f,labelAddons:A,
|
|
7
|
-
/* @__PURE__ */d("div",{className:"input__inner",children:[K,null!=p&&p.Component?/* @__PURE__ */l(p.Component,{size:"small",...p,className:h("input__icon","input__icon--left",{[p.className||""]:!!p.className})}):null,null!=g&&g.Component?/* @__PURE__ */l(g.Component,{size:"small",...g,className:h("input__icon","input__icon--right",{[g.className||""]:!!g.className})}):null]}),n||y||b||_?/* @__PURE__ */d("div",{className:"input__message mt-8",children:[Z&&n?/* @__PURE__ */l(ii,{message:n,icon:"infoFilled",
|
|
1
|
+
import{jsx as l,jsxs as d,Fragment as T}from"react/jsx-runtime";import r,{useMemo as V}from"react";import I from"react-input-mask";import h from"classnames";import{NumericFormat as P}from"react-number-format";import{ErrorMessage as ii}from"../../helperComponents/ErrorMessage/ErrorMessage.js";import{Label as li}from"../../helperComponents/Label/Label.js";import{Text as k}from"../Text/Text.js";import ni from"../SVGIcons/IconCheckmarkCircleFilled.js";const mi=r.forwardRef(({datePlaceHolderText:e,className:a,size:s="medium",error:n,hasError:r,label:i,mask:t,maskChar:o,maskPlaceholder:m,currentValue:c,name:u,leftIconProps:p,rightIconProps:g,disabled:f,required:v,readonly:C,placeholder:N,type:x="text",helperText:b,successMessage:y,maxCount:_,setFieldValue:w,handleChange:j,dataTestId:z="",isValid:E,allowLeadingZeros:F,thousandSeparator:L="",allowNegative:M=!1,hideCounter:B=!1,labelAddons:A,witUpperCase:S=!1,isAllowed:$,onChange:q,handleBlurEvent:O,...R},U)=>{const Z=void 0!==r?r:!!n,G=i===N?"":N||e,H=e=>{const l=e.target.value,a="numeric"===x?l.replace(new RegExp(L,"g"),""):l;l.length-1!==_&&(q&&q(e),w&&u&&w(u,a),j&&j(e,S?a.toUpperCase():a))},D=V(()=>c?c.length:R&&R.value&&"string"==typeof R.value?R.value.length:0,[R,c]),J=e=>{var l;null==(l=null==R?void 0:R.onBlur)||l.call(R,e),null==O||O(e)},K=t?
|
|
2
|
+
/* @__PURE__ */l(I,{name:u,mask:t,ref:()=>U&&U(),...R,placeholder:G,onBlur:J,onChange:H,disabled:f,"data-test-id":z,className:""+(Z?"with-error-styles":""),...c?{value:c}:{},maskChar:o,maskPlaceholder:m}):"numeric"===x?
|
|
3
|
+
/* @__PURE__ */l(P,{...R,name:u,onChange:H,placeholder:G,readOnly:C,allowLeadingZeros:F,thousandSeparator:L,allowNegative:M,maxLength:_,inputMode:"numeric",disabled:f,isAllowed:$,onBlur:J,...void 0!==c?{value:c}:{}}):
|
|
4
|
+
/* @__PURE__ */l("input",{readOnly:C,disabled:f,name:u,ref:U,type:x,placeholder:G,"data-test-id":z,...R,onBlur:J,onChange:H,...void 0!==c?{value:c}:{}});/* @__PURE__ */
|
|
5
|
+
return d("div",{className:h(`input input--${s}`,a,{"input--icon-left":p,"input--icon-right":g,"input--invalid":Z||!!n,"input--valid":E,"input--disabled":f}),children:[
|
|
6
|
+
/* @__PURE__ */l(li,{text:i,required:v,disabled:f,labelAddons:A,dataTestId:z}),
|
|
7
|
+
/* @__PURE__ */d("div",{className:"input__inner",children:[K,null!=p&&p.Component?/* @__PURE__ */l(p.Component,{size:"small",...p,className:h("input__icon","input__icon--left",{[p.className||""]:!!p.className})}):null,null!=g&&g.Component?/* @__PURE__ */l(g.Component,{size:"small",...g,className:h("input__icon","input__icon--right",{[g.className||""]:!!g.className})}):null]}),n||y||b||_?/* @__PURE__ */d("div",{className:"input__message mt-8",children:[Z&&n?/* @__PURE__ */l(ii,{message:n,icon:"infoFilled",dataTestId:z}):null,y?/* @__PURE__ */l(k,{size:"small",type:"success",className:"flexbox align-items--center",children:/* @__PURE__ */d(T,{children:[
|
|
8
8
|
/* @__PURE__ */l(ni,{type:"success",size:"xsmall"}),
|
|
9
|
-
/* @__PURE__ */l("span",{className:"ml-4",children:y})]})}):null,!b||y||Z||n?null:/* @__PURE__ */l(k,{size:"small",type:f?"disabled":"secondary",children:b}),!_||
|
|
9
|
+
/* @__PURE__ */l("span",{className:"ml-4",children:y})]})}):null,!b||y||Z||n?null:/* @__PURE__ */l(k,{size:"small",type:f?"disabled":"secondary",children:b}),!_||B||r?null:/* @__PURE__ */l(k,{size:"small",type:f?"disabled":"secondary",className:"input__counter",children:`${D}/${_}`})]}):null]})});mi.displayName="FormInput";export{mi as Input};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes, ReactElement, RefObject, FocusEvent } from 'react';
|
|
2
|
-
import { ISVGIconProps } from '../../type';
|
|
2
|
+
import { ISVGIconProps, IFormCompProps } from '../../type';
|
|
3
3
|
export interface InputCustomProps extends IFormCompProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'onFocus' | 'value' | 'onChange' | 'autoComplete'> {
|
|
4
4
|
mask?: string;
|
|
5
5
|
maskChar?: string | null;
|
|
@@ -39,4 +39,5 @@ export interface InputCustomProps extends IFormCompProps, Omit<InputHTMLAttribut
|
|
|
39
39
|
value: string;
|
|
40
40
|
floatValue: number | undefined;
|
|
41
41
|
}) => boolean;
|
|
42
|
+
allowEmptyFormatting?: boolean;
|
|
42
43
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{jsxs as i,jsx as t,Fragment as $}from"react/jsx-runtime";import m from"classnames";import{Text as c}from"../Text/Text.js";import{Divider as g}from"../Divider/Divider.js";import{generateLinePath as _,formatWithDots as d}from"./helper.js";const y=({data:e,dataTestId:a=""})=>{const s=_(e);/* @__PURE__ */
|
|
2
|
+
return i("div",{"data-test-id":a,children:[
|
|
3
|
+
/* @__PURE__ */t("div",{className:"bar",children:s.map(({percentage:e,color:i},r)=>/* @__PURE__ */t("div",{"data-test-id":a?`${a}-segment-${r}`:"",className:m("bar__segment",`bar__segment--color-${i}`,{"bar__segment--first":0===r,"bar__segment--last":r===s.length-1}),style:{flexBasis:`${e}%`}},`line-chart-segment-${r}`))}),
|
|
4
|
+
/* @__PURE__ */t("div",{className:"line-chart-status",children:s.map(({label:e,dataCurrency:r,color:l,quantity:n,isHidden:o},h)=>!o&&/* @__PURE__ */i($,{children:[
|
|
5
|
+
/* @__PURE__ */i("div",{className:"flexbox justify-content--between pt-6 pb-6","data-test-id":a?`${a}-item-${h}`:"",children:[
|
|
6
|
+
/* @__PURE__ */i("div",{className:"flexbox align-items--center",children:[
|
|
7
|
+
/* @__PURE__ */t("span",{className:m("status__circle",`status__circle--${l}`)}),
|
|
8
|
+
/* @__PURE__ */t(c,{type:"tertiary",dataTestId:a?`${a}-label-${h}`:"",children:e})]}),
|
|
9
|
+
/* @__PURE__ */t("div",{children:/* @__PURE__ */i(c,{dataTestId:a?`${a}-value-${h}`:"",children:[d(n)," ",r]})})]},`line-chart-status-${h}`),h!==s.length-1&&/* @__PURE__ */t(g,{type:"primary",isHorizontal:!0,color:"grey"})]}))})]})};export{y as LineChart};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=e=>{if(!e||0===e.length)return[];const t=e.reduce((e,{quantity:t})=>e+t,0);return e.map(e=>({...e,percentage:e.quantity/t*100}))},u=e=>new Intl.NumberFormat("en-US",{useGrouping:!0}).format(e).replace(/,/g,".");export{u as formatWithDots,o as generateLinePath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{LineChart as o}from"./LineChart.js";export{o as LineChart};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBaseProps } from '../../type';
|
|
2
|
+
export type TLineChartColor = 'blue' | 'purple' | 'yellow' | 'pink' | 'green' | 'grey' | 'red';
|
|
3
|
+
export type TLineChartDataItem = {
|
|
4
|
+
quantity: number;
|
|
5
|
+
dataCurrency?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
color: TLineChartColor;
|
|
8
|
+
isHidden?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export interface TLineChartDataItemWithPercentage extends TLineChartDataItem {
|
|
11
|
+
percentage: number;
|
|
12
|
+
}
|
|
13
|
+
export type TLineChartProps = IBaseProps & {
|
|
14
|
+
data: Array<TLineChartDataItem>;
|
|
15
|
+
};
|
package/components/Link/Link.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as d,jsx as o}from"react/jsx-runtime";import m from"classnames";const h=
|
|
2
|
-
/* @__PURE__ */o("a",{onClick:
|
|
1
|
+
import{jsxs as d,jsx as o}from"react/jsx-runtime";import m from"classnames";const h=e=>{const{children:a,afterLink:t,beforeLink:n,className:r="",url:s,dataTestId:i="",target:l,type:c="brand",onclick:k}=e;return n||t?/* @__PURE__ */d("span",{className:r,children:[n,
|
|
2
|
+
/* @__PURE__ */o("a",{onClick:e=>{k&&(e.preventDefault(),k())},href:s,className:`link link-${c}`,"data-test-id":i?`${i}-link`:"",target:l,children:a}),t]}):/* @__PURE__ */o("a",{onClick:e=>{k&&(e.preventDefault(),k())},href:s,className:m(`link ${r} link-${c}`),"data-test-id":i?`${i}-link`:"",target:l,children:a})};export{h as Link};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { IBaseProps } from '../../type';
|
|
1
2
|
type TLinkTypes = 'primary' | 'secondary' | 'tertiary' | 'disabled' | 'inverse' | 'selected' | 'brand' | 'danger' | 'warning' | 'success' | 'information' | 'discovery';
|
|
2
|
-
export interface LinkPropTypes {
|
|
3
|
+
export interface LinkPropTypes extends IBaseProps {
|
|
3
4
|
children?: string | React.ReactElement;
|
|
4
5
|
className?: string;
|
|
5
6
|
type?: TLinkTypes;
|
|
6
7
|
url?: string;
|
|
7
|
-
dataId?: string;
|
|
8
8
|
target?: string;
|
|
9
9
|
beforeLink?: string | React.ReactElement;
|
|
10
10
|
afterLink?: string | React.ReactElement;
|
package/components/Menu/Menu.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{jsx as n,Fragment as c,jsxs as j}from"react/jsx-runtime";import{useState as k,useId as w,useMemo as E}from"react";import{createPortal as H}from"react-dom";import{useGetElemSizes as g}from"../../hooks/useGetElemSizes.js";import{useGetElemPositions as I}from"../../hooks/useGetElemPositions.js";import{useGetTooltipPosition as T}from"../../hooks/useGetTooltipPosition.js";import{useHideOnScroll as z}from"../../hooks/useHideOnScroll.js";import"../../context/types.js";import{useOnOutsideClick as F}from"../../hooks/useOnOutsideClick.js";import"../../hooks/useScreenSize.js";import"react-hook-form";import{OptionItem as L}from"../../helperComponents/OptionItem/OptionItem.js";import W from"classnames";const _=e=>{const{menuItems:t=[],parentRef:o,onClose:s,isOpen:i,position:l="bottom-right",className:r="",children:m=null}=e,[a,p]=k(null);F(a,s,i,w()),z(s);const{left:u,top:d}=I(o),{width:f,height:h}=g(o),{width:O,height:b}=g(a),P=T({tooltipRef:a,elemRef:o,initialPosition:l,hasTriangle:!1}),S=E(()=>"bottom-right"===P?{left:u+4,top:d+4+h}:"bottom-left"===P?{left:u-O+f,top:d+4+h}:"top-right"===P?{left:u+4,top:d-b-4}:"top-left"===P?{left:u-O+f,top:d-b-4}:{left:u,top:d+4+h},[u,d,f,P,O,h,b]);return o&&i?/* @__PURE__ */n(c,{children:H(
|
|
2
2
|
/* @__PURE__ */n("div",{className:W("select","select--menu",r),style:S,ref:p,children:/* @__PURE__ */j(c,{children:[m,
|
|
3
|
-
/* @__PURE__ */n(c,{children:null==t?void 0:t.map(({label:e,meta:t,value:o,handler:i,iconProps:l,disabled:r,
|
|
3
|
+
/* @__PURE__ */n(c,{children:null==t?void 0:t.map(({label:e,meta:t,value:o,handler:i,iconProps:l,disabled:r,dataTestId:m})=>/* @__PURE__ */n(L,{dataTestId:m,disabled:r,data:{label:e,value:o,meta:t},labelLeftIconProps:l,onClick:()=>{s(),i&&i()}},o))})]})}),document.body)}):null};export{_ as Menu};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{jsx as i,Fragment as w}from"react/jsx-runtime";import{useState as x,useId as E,useMemo as H}from"react";import{createPortal as T}from"react-dom";import{useGetElemSizes as h}from"../../hooks/useGetElemSizes.js";import{useGetElemPositions as $}from"../../hooks/useGetElemPositions.js";import{useGetTooltipPosition as j}from"../../hooks/useGetTooltipPosition.js";import{useHideOnScroll as v}from"../../hooks/useHideOnScroll.js";import"../../context/types.js";import{useOnOutsideClick as z}from"../../hooks/useOnOutsideClick.js";import"../../hooks/useScreenSize.js";import"react-hook-form";import C from"classnames";import"motion/react";import"dayjs";import"../../consts/index.js";import{CollapseGroup as F}from"../Collapse/CollapseGroup/CollapseGroup.js";import{OptionItem as L}from"../../helperComponents/OptionItem/OptionItem.js";const it=({menuItems:e=[],parentRef:t,onClose:o,isOpen:s,position:m="bottom-right",className:l=""})=>{const[r,a]=x(null);z(r,o,!!s,E()),v(o);const{left:n,top:p}=$(t),{width:u,height:c}=h(t),{width:d,height:f}=h(r),b=j({tooltipRef:r,elemRef:t,initialPosition:m,hasTriangle:!1}),k=H(()=>"bottom-right"===b?{left:n+4,top:p+4+c}:"bottom-left"===b?{right:0,top:p+4+c}:"top-right"===b?{left:n+4,top:p-f-4}:"top-left"===b?{left:n-d+u,top:p-f-4}:{left:n,top:p+4+c},[n,p,u,b,d,c,f]);if(!t||!s)return null;const I=e.map((e,t)=>({...e,content:e.subItems?/* @__PURE__ */i("div",{className:"nested-menu__sub-items select",children:e.subItems.map(({label:e,meta:s,value:m,handler:l,iconProps:r,disabled:a,
|
|
1
|
+
import{jsx as i,Fragment as w}from"react/jsx-runtime";import{useState as x,useId as E,useMemo as H}from"react";import{createPortal as T}from"react-dom";import{useGetElemSizes as h}from"../../hooks/useGetElemSizes.js";import{useGetElemPositions as $}from"../../hooks/useGetElemPositions.js";import{useGetTooltipPosition as j}from"../../hooks/useGetTooltipPosition.js";import{useHideOnScroll as v}from"../../hooks/useHideOnScroll.js";import"../../context/types.js";import{useOnOutsideClick as z}from"../../hooks/useOnOutsideClick.js";import"../../hooks/useScreenSize.js";import"react-hook-form";import C from"classnames";import"motion/react";import"dayjs";import"../../consts/index.js";import{CollapseGroup as F}from"../Collapse/CollapseGroup/CollapseGroup.js";import{OptionItem as L}from"../../helperComponents/OptionItem/OptionItem.js";const it=({menuItems:e=[],parentRef:t,onClose:o,isOpen:s,position:m="bottom-right",className:l=""})=>{const[r,a]=x(null);z(r,o,!!s,E()),v(o);const{left:n,top:p}=$(t),{width:u,height:c}=h(t),{width:d,height:f}=h(r),b=j({tooltipRef:r,elemRef:t,initialPosition:m,hasTriangle:!1}),k=H(()=>"bottom-right"===b?{left:n+4,top:p+4+c}:"bottom-left"===b?{right:0,top:p+4+c}:"top-right"===b?{left:n+4,top:p-f-4}:"top-left"===b?{left:n-d+u,top:p-f-4}:{left:n,top:p+4+c},[n,p,u,b,d,c,f]);if(!t||!s)return null;const I=e.map((e,t)=>({...e,content:e.subItems?/* @__PURE__ */i("div",{className:"nested-menu__sub-items select",children:e.subItems.map(({label:e,meta:s,value:m,handler:l,iconProps:r,disabled:a,dataTestId:n})=>/* @__PURE__ */i(L,{dataTestId:n,disabled:a,data:{label:e,value:m,meta:s},labelLeftIconProps:r,onClick:()=>{o(),null==l||l()},className:"nested-menu__sub-item"},`${t}-${m}`))}):null}));/* @__PURE__ */
|
|
2
2
|
return i(w,{children:T(
|
|
3
3
|
/* @__PURE__ */i("div",{className:C("nested-menu",l),style:k,ref:a,children:/* @__PURE__ */i(F,{items:I})}),document.body)})};export{it as NestedMenu};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { IBaseProps } from '../../type';
|
|
1
2
|
import { ReactNode } from 'react';
|
|
2
|
-
export type TMenuItem = {
|
|
3
|
+
export type TMenuItem = IBaseProps & {
|
|
3
4
|
label: TItemLabel;
|
|
4
5
|
value: TItemValue;
|
|
5
6
|
iconProps?: TSelectIconProps;
|
|
6
7
|
handler?: TCallBackFn;
|
|
7
8
|
disabled?: boolean;
|
|
8
|
-
dataId?: string;
|
|
9
9
|
meta?: string;
|
|
10
10
|
};
|
|
11
11
|
export type TMenuProps = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { TModalConfirmationPropTypes } from './types';
|
|
3
|
-
export declare const ModalConfirmation: ({ isOpen, onClose, onSubmit, title, className, size, buttonProps,
|
|
3
|
+
export declare const ModalConfirmation: ({ isOpen, onClose, onSubmit, title, className, size, buttonProps, dataTestIdPrefix, closeOnOutsideClick, iconProps, subtitle }: TModalConfirmationPropTypes) => ReactElement | null;
|