hrm_ui_lib 3.4.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/styles/styles.css +1 -1
- package/components/Alert/Alert.js +2 -2
- package/components/Alert/types.d.ts +1 -0
- package/components/Avatar/Avatar.d.ts +1 -1
- package/components/Avatar/Avatar.js +2 -2
- package/components/Avatar/AvatarGroup.d.ts +1 -1
- package/components/Avatar/AvatarGroup.js +2 -2
- package/components/Avatar/types.d.ts +1 -0
- package/components/Badge/Badge.js +2 -2
- package/components/Badge/types.d.ts +1 -0
- package/components/BadgeV2/BadgeV2.js +3 -3
- package/components/BadgeV2/types.d.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.js +3 -3
- package/components/Breadcrumb/types.d.ts +1 -0
- package/components/Button/Button.js +2 -2
- package/components/Button/types.d.ts +1 -1
- package/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/components/ButtonGroup/ButtonGroup.js +3 -3
- package/components/ButtonGroup/ButtonGroupItem.d.ts +1 -1
- package/components/ButtonGroup/ButtonGroupItem.js +2 -2
- package/components/ButtonGroup/types.d.ts +1 -1
- package/components/Card/CardComponent/Card.js +2 -2
- package/components/Card/types.d.ts +1 -0
- package/components/CardGroup/CardGroupComponent/CardGroup.js +2 -2
- package/components/CardGroup/types.d.ts +1 -0
- package/components/Checkbox/Checkbox.js +5 -5
- package/components/Checkbox/types.d.ts +1 -0
- package/components/Chips/Chips.js +2 -2
- package/components/Chips/types.d.ts +1 -1
- package/components/Collapse/Collapse/Collapse.js +2 -2
- package/components/Collapse/Collapse/Title.d.ts +2 -2
- package/components/Collapse/Collapse/Title.js +2 -2
- package/components/Collapse/CollapseGroup/CollapseGroup.js +2 -2
- package/components/Collapse/CollapseItem/CollapseItem.js +3 -3
- package/components/Collapse/types.d.ts +1 -0
- package/components/Container/Container.js +2 -2
- package/components/Container/types.d.ts +1 -0
- package/components/Copy/Copy.d.ts +1 -1
- package/components/Copy/Copy.js +2 -2
- package/components/Copy/types.d.ts +1 -0
- package/components/Counter/Counter.js +2 -2
- package/components/Counter/types.d.ts +1 -0
- package/components/DarkModeSwitcher/DarkModeSwitcher.d.ts +1 -0
- package/components/DarkModeSwitcher/DarkModeSwitcher.js +2 -2
- package/components/DarkModeSwitcher/types.d.ts +1 -0
- package/components/DatePicker/CustomHeader/CustomHeader.js +1 -1
- package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +2 -2
- package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +3 -3
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +2 -2
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +2 -2
- package/components/DatePicker/TimePicker/TimePickerDesktop.js +2 -2
- package/components/DatePicker/TimePicker/TimePickerMobile.js +2 -2
- package/components/DatePicker/types.d.ts +2 -1
- package/components/Divider/Divider.js +2 -2
- package/components/Divider/types.d.ts +1 -0
- package/components/Empty/Empty.js +2 -2
- package/components/Empty/types.d.ts +1 -0
- package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +5 -5
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.d.ts +2 -2
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +2 -2
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.d.ts +2 -2
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +2 -2
- package/components/FileUpload/FileUpload.js +2 -2
- package/components/FileUpload/UploadItems.js +3 -3
- package/components/FileUpload/types.d.ts +1 -1
- package/components/FormContainer/FormContainer.js +4 -4
- package/components/FormContainer/types.d.ts +1 -0
- package/components/FormField/FormField.js +3 -3
- package/components/FormField/types.d.ts +1 -0
- package/components/Heading/Heading.js +2 -2
- package/components/Heading/types.d.ts +1 -0
- package/components/Image/Image.js +3 -3
- package/components/Image/types.d.ts +1 -0
- package/components/Input/Input.js +5 -5
- package/components/Input/types.d.ts +1 -1
- package/components/LineChart/LineChart.d.ts +1 -1
- package/components/LineChart/LineChart.js +4 -4
- package/components/LineChart/types.d.ts +1 -0
- package/components/Link/Link.js +3 -3
- package/components/Link/types.d.ts +1 -0
- package/components/Menu/Menu.js +2 -2
- package/components/Menu/NestedMenu.js +2 -2
- package/components/Menu/types.d.ts +1 -0
- package/components/Modal/ModalConfirmation.d.ts +1 -1
- package/components/Modal/ModalConfirmation.js +2 -2
- package/components/Modal/ModalContent.d.ts +2 -2
- package/components/Modal/ModalContent.js +2 -2
- package/components/Modal/types.d.ts +2 -2
- package/components/More/More.js +2 -2
- package/components/More/types.d.ts +1 -0
- package/components/Pagination/Pagination.js +4 -4
- package/components/Pagination/types.d.ts +1 -0
- package/components/Popover/PopoverDesktop.js +2 -2
- package/components/Popover/PopoverMobile.js +2 -2
- package/components/Popover/types.d.ts +1 -0
- package/components/Progress/Progress.js +3 -3
- package/components/Progress/types.d.ts +1 -0
- package/components/ProgressStep/ProgressStep.js +3 -3
- package/components/ProgressStep/Step.js +6 -6
- package/components/ProgressStep/types.d.ts +1 -0
- package/components/Radio/Radio.js +2 -2
- package/components/Radio/RadioGroup.js +1 -1
- package/components/Radio/types.d.ts +1 -0
- package/components/SVGIcons/IconAdd.d.ts +1 -1
- package/components/SVGIcons/IconAdd.js +2 -2
- package/components/SVGIcons/IconAddCircle.d.ts +1 -1
- package/components/SVGIcons/IconAddCircle.js +2 -2
- package/components/SVGIcons/IconAddCircleFilled.d.ts +1 -1
- package/components/SVGIcons/IconAddCircleFilled.js +2 -2
- package/components/SVGIcons/IconAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconAddFilled.js +2 -2
- package/components/SVGIcons/IconAirplaneTakeOff.d.ts +1 -1
- package/components/SVGIcons/IconAirplaneTakeOff.js +2 -2
- package/components/SVGIcons/IconAirplaneTakeOffFilled.d.ts +1 -1
- package/components/SVGIcons/IconAirplaneTakeOffFilled.js +2 -2
- package/components/SVGIcons/IconAlert.d.ts +1 -1
- package/components/SVGIcons/IconAlert.js +2 -2
- package/components/SVGIcons/IconAlertBadge.d.ts +1 -1
- package/components/SVGIcons/IconAlertBadge.js +2 -2
- package/components/SVGIcons/IconAlertBadgeFilled.d.ts +1 -1
- package/components/SVGIcons/IconAlertBadgeFilled.js +2 -2
- package/components/SVGIcons/IconAlertFilled.d.ts +1 -1
- package/components/SVGIcons/IconAlertFilled.js +2 -2
- package/components/SVGIcons/IconAm.d.ts +1 -1
- package/components/SVGIcons/IconAm.js +2 -2
- package/components/SVGIcons/IconAmd.d.ts +1 -1
- package/components/SVGIcons/IconAmd.js +2 -2
- package/components/SVGIcons/IconAmdFilled.d.ts +1 -1
- package/components/SVGIcons/IconAmdFilled.js +2 -2
- package/components/SVGIcons/IconApple.d.ts +1 -1
- package/components/SVGIcons/IconApple.js +2 -2
- package/components/SVGIcons/IconArrowDown.d.ts +1 -1
- package/components/SVGIcons/IconArrowDown.js +2 -2
- package/components/SVGIcons/IconArrowDownFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowDownFilled.js +2 -2
- package/components/SVGIcons/IconArrowDownLeft.d.ts +1 -1
- package/components/SVGIcons/IconArrowDownLeft.js +2 -2
- package/components/SVGIcons/IconArrowDownLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowDownLeftFilled.js +2 -2
- package/components/SVGIcons/IconArrowDownload.d.ts +1 -1
- package/components/SVGIcons/IconArrowDownload.js +2 -2
- package/components/SVGIcons/IconArrowDownloadFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowDownloadFilled.js +2 -2
- package/components/SVGIcons/IconArrowEnter.d.ts +1 -1
- package/components/SVGIcons/IconArrowEnter.js +2 -2
- package/components/SVGIcons/IconArrowEnterFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowEnterFilled.js +2 -2
- package/components/SVGIcons/IconArrowExit.d.ts +1 -1
- package/components/SVGIcons/IconArrowExit.js +2 -2
- package/components/SVGIcons/IconArrowExitFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowExitFilled.js +2 -2
- package/components/SVGIcons/IconArrowExportLeftToRight.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportLeftToRight.js +2 -2
- package/components/SVGIcons/IconArrowExportLeftToRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportLeftToRightFilled.js +2 -2
- package/components/SVGIcons/IconArrowExportRightToLeft.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportRightToLeft.js +2 -2
- package/components/SVGIcons/IconArrowExportRightToLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportRightToLeftFilled.js +2 -2
- package/components/SVGIcons/IconArrowExportUp.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportUp.js +2 -2
- package/components/SVGIcons/IconArrowExportUpFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowExportUpFilled.js +2 -2
- package/components/SVGIcons/IconArrowImport.d.ts +1 -1
- package/components/SVGIcons/IconArrowImport.js +2 -2
- package/components/SVGIcons/IconArrowImportFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowImportFilled.js +2 -2
- package/components/SVGIcons/IconArrowLeft.d.ts +1 -1
- package/components/SVGIcons/IconArrowLeft.js +2 -2
- package/components/SVGIcons/IconArrowLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowLeftFilled.js +2 -2
- package/components/SVGIcons/IconArrowRepeatAll.d.ts +1 -1
- package/components/SVGIcons/IconArrowRepeatAll.js +2 -2
- package/components/SVGIcons/IconArrowRepeatAllFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowRepeatAllFilled.js +2 -2
- package/components/SVGIcons/IconArrowReset.d.ts +1 -1
- package/components/SVGIcons/IconArrowReset.js +2 -2
- package/components/SVGIcons/IconArrowResetFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowResetFilled.js +2 -2
- package/components/SVGIcons/IconArrowRight.d.ts +1 -1
- package/components/SVGIcons/IconArrowRight.js +2 -2
- package/components/SVGIcons/IconArrowRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowRightFilled.js +2 -2
- package/components/SVGIcons/IconArrowSort.d.ts +1 -1
- package/components/SVGIcons/IconArrowSort.js +2 -2
- package/components/SVGIcons/IconArrowSortFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowSortFilled.js +2 -2
- package/components/SVGIcons/IconArrowSync.d.ts +1 -1
- package/components/SVGIcons/IconArrowSync.js +2 -2
- package/components/SVGIcons/IconArrowSyncFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowSyncFilled.js +2 -2
- package/components/SVGIcons/IconArrowUp.d.ts +1 -1
- package/components/SVGIcons/IconArrowUp.js +2 -2
- package/components/SVGIcons/IconArrowUpFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowUpFilled.js +2 -2
- package/components/SVGIcons/IconArrowUpLeft.d.ts +1 -1
- package/components/SVGIcons/IconArrowUpLeft.js +2 -2
- package/components/SVGIcons/IconArrowUpLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowUpLeftFilled.js +2 -2
- package/components/SVGIcons/IconArrowUpRight.d.ts +1 -1
- package/components/SVGIcons/IconArrowUpRight.js +2 -2
- package/components/SVGIcons/IconArrowUpRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconArrowUpRightFilled.js +2 -2
- package/components/SVGIcons/IconAttach.d.ts +1 -1
- package/components/SVGIcons/IconAttach.js +2 -2
- package/components/SVGIcons/IconAttachFilled.d.ts +1 -1
- package/components/SVGIcons/IconAttachFilled.js +2 -2
- package/components/SVGIcons/IconBeach.d.ts +1 -1
- package/components/SVGIcons/IconBeach.js +2 -2
- package/components/SVGIcons/IconBeachFilled.d.ts +1 -1
- package/components/SVGIcons/IconBeachFilled.js +2 -2
- package/components/SVGIcons/IconBook.d.ts +1 -1
- package/components/SVGIcons/IconBook.js +2 -2
- package/components/SVGIcons/IconBookFilled.d.ts +1 -1
- package/components/SVGIcons/IconBookFilled.js +2 -2
- package/components/SVGIcons/IconBookmark.d.ts +1 -1
- package/components/SVGIcons/IconBookmark.js +2 -2
- package/components/SVGIcons/IconBookmarkFilled.d.ts +1 -1
- package/components/SVGIcons/IconBookmarkFilled.js +2 -2
- package/components/SVGIcons/IconBriefcase.d.ts +1 -1
- package/components/SVGIcons/IconBriefcase.js +2 -2
- package/components/SVGIcons/IconBriefcaseFilled.d.ts +1 -1
- package/components/SVGIcons/IconBriefcaseFilled.js +2 -2
- package/components/SVGIcons/IconBudgetTransfer.d.ts +1 -1
- package/components/SVGIcons/IconBudgetTransfer.js +2 -2
- package/components/SVGIcons/IconBuilding.d.ts +1 -1
- package/components/SVGIcons/IconBuilding.js +2 -2
- package/components/SVGIcons/IconBuildingBank.d.ts +1 -1
- package/components/SVGIcons/IconBuildingBank.js +2 -2
- package/components/SVGIcons/IconBuildingBankFilled.d.ts +1 -1
- package/components/SVGIcons/IconBuildingBankFilled.js +2 -2
- package/components/SVGIcons/IconBuildingFilled.d.ts +1 -1
- package/components/SVGIcons/IconBuildingFilled.js +2 -2
- package/components/SVGIcons/IconBulletListAdd.d.ts +1 -1
- package/components/SVGIcons/IconBulletListAdd.js +2 -2
- package/components/SVGIcons/IconBulletListAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconBulletListAddFilled.js +2 -2
- package/components/SVGIcons/IconCalculator.d.ts +1 -1
- package/components/SVGIcons/IconCalculator.js +2 -2
- package/components/SVGIcons/IconCalculatorFilled.d.ts +1 -1
- package/components/SVGIcons/IconCalculatorFilled.js +2 -2
- package/components/SVGIcons/IconCalendarClock.d.ts +1 -1
- package/components/SVGIcons/IconCalendarClock.js +2 -2
- package/components/SVGIcons/IconCalendarClockFilled.d.ts +1 -1
- package/components/SVGIcons/IconCalendarClockFilled.js +2 -2
- package/components/SVGIcons/IconCalendarDay.d.ts +1 -1
- package/components/SVGIcons/IconCalendarDay.js +2 -2
- package/components/SVGIcons/IconCalendarDayFilled.d.ts +1 -1
- package/components/SVGIcons/IconCalendarDayFilled.js +2 -2
- package/components/SVGIcons/IconCalendarEmpty.d.ts +1 -1
- package/components/SVGIcons/IconCalendarEmpty.js +2 -2
- package/components/SVGIcons/IconCalendarLeft.d.ts +1 -1
- package/components/SVGIcons/IconCalendarLeft.js +2 -2
- package/components/SVGIcons/IconCalendarLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconCalendarLeftFilled.js +2 -2
- package/components/SVGIcons/IconCalendarRight.d.ts +1 -1
- package/components/SVGIcons/IconCalendarRight.js +2 -2
- package/components/SVGIcons/IconCalendarRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconCalendarRightFilled.js +2 -2
- package/components/SVGIcons/IconCall.d.ts +1 -1
- package/components/SVGIcons/IconCall.js +2 -2
- package/components/SVGIcons/IconCallFilled.d.ts +1 -1
- package/components/SVGIcons/IconCallFilled.js +2 -2
- package/components/SVGIcons/IconCard.d.ts +1 -1
- package/components/SVGIcons/IconCard.js +2 -2
- package/components/SVGIcons/IconCardFilled.d.ts +1 -1
- package/components/SVGIcons/IconCardFilled.js +2 -2
- package/components/SVGIcons/IconCaretDown.d.ts +1 -1
- package/components/SVGIcons/IconCaretDown.js +2 -2
- package/components/SVGIcons/IconCaretDownFilled.d.ts +1 -1
- package/components/SVGIcons/IconCaretDownFilled.js +2 -2
- package/components/SVGIcons/IconCaretDownRight.d.ts +1 -1
- package/components/SVGIcons/IconCaretDownRight.js +2 -2
- package/components/SVGIcons/IconCaretDownRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconCaretDownRightFilled.js +2 -2
- package/components/SVGIcons/IconCaretLeft.d.ts +1 -1
- package/components/SVGIcons/IconCaretLeft.js +2 -2
- package/components/SVGIcons/IconCaretLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconCaretLeftFilled.js +2 -2
- package/components/SVGIcons/IconCaretRight.d.ts +1 -1
- package/components/SVGIcons/IconCaretRight.js +2 -2
- package/components/SVGIcons/IconCaretRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconCaretRightFilled.js +2 -2
- package/components/SVGIcons/IconCaretUp.d.ts +1 -1
- package/components/SVGIcons/IconCaretUp.js +2 -2
- package/components/SVGIcons/IconCaretUpFilled.d.ts +1 -1
- package/components/SVGIcons/IconCaretUpFilled.js +2 -2
- package/components/SVGIcons/IconChartPerson.d.ts +1 -1
- package/components/SVGIcons/IconChartPerson.js +2 -2
- package/components/SVGIcons/IconChartPersonFilled.d.ts +1 -1
- package/components/SVGIcons/IconChartPersonFilled.js +2 -2
- package/components/SVGIcons/IconChat.d.ts +1 -1
- package/components/SVGIcons/IconChat.js +2 -2
- package/components/SVGIcons/IconChatFilled.d.ts +1 -1
- package/components/SVGIcons/IconChatFilled.js +2 -2
- package/components/SVGIcons/IconChatMultiple.d.ts +1 -1
- package/components/SVGIcons/IconChatMultiple.js +2 -2
- package/components/SVGIcons/IconChatMultipleFilled.d.ts +1 -1
- package/components/SVGIcons/IconChatMultipleFilled.js +2 -2
- package/components/SVGIcons/IconCheckboxArrowRight.d.ts +1 -1
- package/components/SVGIcons/IconCheckboxArrowRight.js +2 -2
- package/components/SVGIcons/IconCheckboxArrowRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconCheckboxArrowRightFilled.js +2 -2
- package/components/SVGIcons/IconCheckmark.d.ts +1 -1
- package/components/SVGIcons/IconCheckmark.js +2 -2
- package/components/SVGIcons/IconCheckmarkCircle.d.ts +1 -1
- package/components/SVGIcons/IconCheckmarkCircle.js +2 -2
- package/components/SVGIcons/IconCheckmarkCircleFilled.d.ts +1 -1
- package/components/SVGIcons/IconCheckmarkCircleFilled.js +2 -2
- package/components/SVGIcons/IconCheckmarkFilled.d.ts +1 -1
- package/components/SVGIcons/IconCheckmarkFilled.js +2 -2
- package/components/SVGIcons/IconChevronDoubleLeft.d.ts +1 -1
- package/components/SVGIcons/IconChevronDoubleLeft.js +2 -2
- package/components/SVGIcons/IconChevronDoubleRight.d.ts +1 -1
- package/components/SVGIcons/IconChevronDoubleRight.js +2 -2
- package/components/SVGIcons/IconChevronDown.d.ts +1 -1
- package/components/SVGIcons/IconChevronDown.js +2 -2
- package/components/SVGIcons/IconChevronDownFilled.d.ts +1 -1
- package/components/SVGIcons/IconChevronDownFilled.js +2 -2
- package/components/SVGIcons/IconChevronLeft.d.ts +1 -1
- package/components/SVGIcons/IconChevronLeft.js +2 -2
- package/components/SVGIcons/IconChevronLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconChevronLeftFilled.js +2 -2
- package/components/SVGIcons/IconChevronRight.d.ts +1 -1
- package/components/SVGIcons/IconChevronRight.js +2 -2
- package/components/SVGIcons/IconChevronRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconChevronRightFilled.js +2 -2
- package/components/SVGIcons/IconChevronUp.d.ts +1 -1
- package/components/SVGIcons/IconChevronUp.js +2 -2
- package/components/SVGIcons/IconChevronUpDown.d.ts +1 -1
- package/components/SVGIcons/IconChevronUpDown.js +2 -2
- package/components/SVGIcons/IconChevronUpDownFilled.d.ts +1 -1
- package/components/SVGIcons/IconChevronUpDownFilled.js +2 -2
- package/components/SVGIcons/IconChevronUpFilled.d.ts +1 -1
- package/components/SVGIcons/IconChevronUpFilled.js +2 -2
- package/components/SVGIcons/IconClipboardDay.d.ts +1 -1
- package/components/SVGIcons/IconClipboardDay.js +2 -2
- package/components/SVGIcons/IconClock.d.ts +1 -1
- package/components/SVGIcons/IconClock.js +2 -2
- package/components/SVGIcons/IconClockDismiss.d.ts +1 -1
- package/components/SVGIcons/IconClockDismiss.js +2 -2
- package/components/SVGIcons/IconClockDismissFilled.d.ts +1 -1
- package/components/SVGIcons/IconClockDismissFilled.js +2 -2
- package/components/SVGIcons/IconClockFilled.d.ts +1 -1
- package/components/SVGIcons/IconClockFilled.js +2 -2
- package/components/SVGIcons/IconCode.d.ts +1 -1
- package/components/SVGIcons/IconCode.js +2 -2
- package/components/SVGIcons/IconCoins.d.ts +1 -1
- package/components/SVGIcons/IconCoins.js +2 -2
- package/components/SVGIcons/IconComment.d.ts +1 -1
- package/components/SVGIcons/IconComment.js +2 -2
- package/components/SVGIcons/IconCommentFilled.d.ts +1 -1
- package/components/SVGIcons/IconCommentFilled.js +2 -2
- package/components/SVGIcons/IconContractCard.d.ts +1 -1
- package/components/SVGIcons/IconContractCard.js +2 -2
- package/components/SVGIcons/IconContractCardFilled.d.ts +1 -1
- package/components/SVGIcons/IconContractCardFilled.js +2 -2
- package/components/SVGIcons/IconCopy.d.ts +1 -1
- package/components/SVGIcons/IconCopy.js +2 -2
- package/components/SVGIcons/IconCopyFilled.d.ts +1 -1
- package/components/SVGIcons/IconCopyFilled.js +2 -2
- package/components/SVGIcons/IconCubeTree.d.ts +1 -1
- package/components/SVGIcons/IconCubeTree.js +2 -2
- package/components/SVGIcons/IconCubeTreeFilled.d.ts +1 -1
- package/components/SVGIcons/IconCubeTreeFilled.js +2 -2
- package/components/SVGIcons/IconDatabase.d.ts +1 -1
- package/components/SVGIcons/IconDatabase.js +2 -2
- package/components/SVGIcons/IconDatabaseFilled.d.ts +1 -1
- package/components/SVGIcons/IconDatabaseFilled.js +2 -2
- package/components/SVGIcons/IconDelete.d.ts +1 -1
- package/components/SVGIcons/IconDelete.js +2 -2
- package/components/SVGIcons/IconDeleteFilled.d.ts +1 -1
- package/components/SVGIcons/IconDeleteFilled.js +2 -2
- package/components/SVGIcons/IconDeviceMeetingRoom.d.ts +1 -1
- package/components/SVGIcons/IconDeviceMeetingRoom.js +2 -2
- package/components/SVGIcons/IconDeviceMeetingRoomFilled.d.ts +1 -1
- package/components/SVGIcons/IconDeviceMeetingRoomFilled.js +2 -2
- package/components/SVGIcons/IconDismiss.d.ts +1 -1
- package/components/SVGIcons/IconDismiss.js +2 -2
- package/components/SVGIcons/IconDismissCircle.d.ts +1 -1
- package/components/SVGIcons/IconDismissCircle.js +2 -2
- package/components/SVGIcons/IconDismissCircleFilled.d.ts +1 -1
- package/components/SVGIcons/IconDismissCircleFilled.js +2 -2
- package/components/SVGIcons/IconDismissFilled.d.ts +1 -1
- package/components/SVGIcons/IconDismissFilled.js +2 -2
- package/components/SVGIcons/IconDocument.d.ts +1 -1
- package/components/SVGIcons/IconDocument.js +2 -2
- package/components/SVGIcons/IconDocumentBulletList.d.ts +1 -1
- package/components/SVGIcons/IconDocumentBulletList.js +2 -2
- package/components/SVGIcons/IconDocumentBulletListFilled.d.ts +1 -1
- package/components/SVGIcons/IconDocumentBulletListFilled.js +2 -2
- package/components/SVGIcons/IconDocumentEdit.d.ts +1 -1
- package/components/SVGIcons/IconDocumentEdit.js +2 -2
- package/components/SVGIcons/IconDocumentEditFilled.d.ts +1 -1
- package/components/SVGIcons/IconDocumentEditFilled.js +2 -2
- package/components/SVGIcons/IconDocumentFilled.d.ts +1 -1
- package/components/SVGIcons/IconDocumentFilled.js +2 -2
- package/components/SVGIcons/IconDocumentPerson.d.ts +1 -1
- package/components/SVGIcons/IconDocumentPerson.js +2 -2
- package/components/SVGIcons/IconEdit.d.ts +1 -1
- package/components/SVGIcons/IconEdit.js +2 -2
- package/components/SVGIcons/IconEditFilled.d.ts +1 -1
- package/components/SVGIcons/IconEditFilled.js +2 -2
- package/components/SVGIcons/IconErrorCircle.d.ts +1 -1
- package/components/SVGIcons/IconErrorCircle.js +2 -2
- package/components/SVGIcons/IconErrorCircleFilled.d.ts +1 -1
- package/components/SVGIcons/IconErrorCircleFilled.js +2 -2
- package/components/SVGIcons/IconEur.d.ts +1 -1
- package/components/SVGIcons/IconEur.js +2 -2
- package/components/SVGIcons/IconEurFilled.d.ts +1 -1
- package/components/SVGIcons/IconEurFilled.js +2 -2
- package/components/SVGIcons/IconExpandUpLeft.d.ts +1 -1
- package/components/SVGIcons/IconExpandUpLeft.js +2 -2
- package/components/SVGIcons/IconExpandUpLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconExpandUpLeftFilled.js +2 -2
- package/components/SVGIcons/IconExpandUpRight.d.ts +1 -1
- package/components/SVGIcons/IconExpandUpRight.js +2 -2
- package/components/SVGIcons/IconExpandUpRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconExpandUpRightFilled.js +2 -2
- package/components/SVGIcons/IconEyeOff.d.ts +1 -1
- package/components/SVGIcons/IconEyeOff.js +2 -2
- package/components/SVGIcons/IconEyeOffFilled.d.ts +1 -1
- package/components/SVGIcons/IconEyeOffFilled.js +2 -2
- package/components/SVGIcons/IconEyeOn.d.ts +1 -1
- package/components/SVGIcons/IconEyeOn.js +2 -2
- package/components/SVGIcons/IconEyeOnFilled.d.ts +1 -1
- package/components/SVGIcons/IconEyeOnFilled.js +2 -2
- package/components/SVGIcons/IconFacebook.d.ts +1 -1
- package/components/SVGIcons/IconFacebook.js +2 -2
- package/components/SVGIcons/IconFastAcceleration.d.ts +1 -1
- package/components/SVGIcons/IconFastAcceleration.js +2 -2
- package/components/SVGIcons/IconFastAccelerationFilled.d.ts +1 -1
- package/components/SVGIcons/IconFastAccelerationFilled.js +2 -2
- package/components/SVGIcons/IconFeed.d.ts +1 -1
- package/components/SVGIcons/IconFeed.js +2 -2
- package/components/SVGIcons/IconFeedFilled.d.ts +1 -1
- package/components/SVGIcons/IconFeedFilled.js +2 -2
- package/components/SVGIcons/IconFilter.d.ts +1 -1
- package/components/SVGIcons/IconFilter.js +2 -2
- package/components/SVGIcons/IconFilterFilled.d.ts +1 -1
- package/components/SVGIcons/IconFilterFilled.js +2 -2
- package/components/SVGIcons/IconFlag.d.ts +1 -1
- package/components/SVGIcons/IconFlag.js +2 -2
- package/components/SVGIcons/IconFlagFilled.d.ts +1 -1
- package/components/SVGIcons/IconFlagFilled.js +2 -2
- package/components/SVGIcons/IconFolderLink.d.ts +1 -1
- package/components/SVGIcons/IconFolderLink.js +2 -2
- package/components/SVGIcons/IconFolderLinkFilled.d.ts +1 -1
- package/components/SVGIcons/IconFolderLinkFilled.js +2 -2
- package/components/SVGIcons/IconFood.d.ts +1 -1
- package/components/SVGIcons/IconFood.js +2 -2
- package/components/SVGIcons/IconFoodFilled.d.ts +1 -1
- package/components/SVGIcons/IconFoodFilled.js +2 -2
- package/components/SVGIcons/IconGb.d.ts +1 -1
- package/components/SVGIcons/IconGb.js +2 -2
- package/components/SVGIcons/IconGlobe.d.ts +1 -1
- package/components/SVGIcons/IconGlobe.js +2 -2
- package/components/SVGIcons/IconGlobeFilled.d.ts +1 -1
- package/components/SVGIcons/IconGlobeFilled.js +2 -2
- package/components/SVGIcons/IconGoogle.d.ts +1 -1
- package/components/SVGIcons/IconGoogle.js +2 -2
- package/components/SVGIcons/IconHandOpenHeart.d.ts +1 -1
- package/components/SVGIcons/IconHandOpenHeart.js +2 -2
- package/components/SVGIcons/IconHandOpenHeartFilled.d.ts +1 -1
- package/components/SVGIcons/IconHandOpenHeartFilled.js +2 -2
- package/components/SVGIcons/IconHeart.d.ts +1 -1
- package/components/SVGIcons/IconHeart.js +2 -2
- package/components/SVGIcons/IconHeartFilled.d.ts +1 -1
- package/components/SVGIcons/IconHeartFilled.js +2 -2
- package/components/SVGIcons/IconHistory.d.ts +1 -1
- package/components/SVGIcons/IconHistory.js +2 -2
- package/components/SVGIcons/IconHistoryFilled.d.ts +1 -1
- package/components/SVGIcons/IconHistoryFilled.js +2 -2
- package/components/SVGIcons/IconHome.d.ts +1 -1
- package/components/SVGIcons/IconHome.js +2 -2
- package/components/SVGIcons/IconHomeFilled.d.ts +1 -1
- package/components/SVGIcons/IconHomeFilled.js +2 -2
- package/components/SVGIcons/IconImage.d.ts +1 -1
- package/components/SVGIcons/IconImage.js +2 -2
- package/components/SVGIcons/IconImageFilled.d.ts +1 -1
- package/components/SVGIcons/IconImageFilled.js +2 -2
- package/components/SVGIcons/IconInfo.d.ts +1 -1
- package/components/SVGIcons/IconInfo.js +2 -2
- package/components/SVGIcons/IconInfoFilled.d.ts +1 -1
- package/components/SVGIcons/IconInfoFilled.js +2 -2
- package/components/SVGIcons/IconInstagram.d.ts +1 -1
- package/components/SVGIcons/IconInstagram.js +2 -2
- package/components/SVGIcons/IconKeyReset.d.ts +1 -1
- package/components/SVGIcons/IconKeyReset.js +2 -2
- package/components/SVGIcons/IconKeyResetFilled.d.ts +1 -1
- package/components/SVGIcons/IconKeyResetFilled.js +2 -2
- package/components/SVGIcons/IconLayers.d.ts +1 -1
- package/components/SVGIcons/IconLayers.js +2 -2
- package/components/SVGIcons/IconLibrary.d.ts +1 -1
- package/components/SVGIcons/IconLibrary.js +2 -2
- package/components/SVGIcons/IconLibraryFilled.d.ts +1 -1
- package/components/SVGIcons/IconLibraryFilled.js +2 -2
- package/components/SVGIcons/IconLink.d.ts +1 -1
- package/components/SVGIcons/IconLink.js +2 -2
- package/components/SVGIcons/IconLinkFilled.d.ts +1 -1
- package/components/SVGIcons/IconLinkFilled.js +2 -2
- package/components/SVGIcons/IconLinkedin.d.ts +1 -1
- package/components/SVGIcons/IconLinkedin.js +2 -2
- package/components/SVGIcons/IconList.d.ts +1 -1
- package/components/SVGIcons/IconList.js +2 -2
- package/components/SVGIcons/IconListFilled.d.ts +1 -1
- package/components/SVGIcons/IconListFilled.js +2 -2
- package/components/SVGIcons/IconLocation.d.ts +1 -1
- package/components/SVGIcons/IconLocation.js +2 -2
- package/components/SVGIcons/IconLocationFilled.d.ts +1 -1
- package/components/SVGIcons/IconLocationFilled.js +2 -2
- package/components/SVGIcons/IconLockClosed.d.ts +1 -1
- package/components/SVGIcons/IconLockClosed.js +2 -2
- package/components/SVGIcons/IconLockClosedFilled.d.ts +1 -1
- package/components/SVGIcons/IconLockClosedFilled.js +2 -2
- package/components/SVGIcons/IconLockOpen.d.ts +1 -1
- package/components/SVGIcons/IconLockOpen.js +2 -2
- package/components/SVGIcons/IconLockOpenFilled.d.ts +1 -1
- package/components/SVGIcons/IconLockOpenFilled.js +2 -2
- package/components/SVGIcons/IconMail.d.ts +1 -1
- package/components/SVGIcons/IconMail.js +2 -2
- package/components/SVGIcons/IconMailAdd.d.ts +1 -1
- package/components/SVGIcons/IconMailAdd.js +2 -2
- package/components/SVGIcons/IconMailAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconMailAddFilled.js +2 -2
- package/components/SVGIcons/IconMailArrowForward.d.ts +1 -1
- package/components/SVGIcons/IconMailArrowForward.js +2 -2
- package/components/SVGIcons/IconMailArrowForwardFilled.d.ts +1 -1
- package/components/SVGIcons/IconMailArrowForwardFilled.js +2 -2
- package/components/SVGIcons/IconMailFilled.d.ts +1 -1
- package/components/SVGIcons/IconMailFilled.js +2 -2
- package/components/SVGIcons/IconMailLink.d.ts +1 -1
- package/components/SVGIcons/IconMailLink.js +2 -2
- package/components/SVGIcons/IconMailLinkFilled.d.ts +1 -1
- package/components/SVGIcons/IconMailLinkFilled.js +2 -2
- package/components/SVGIcons/IconMedium.d.ts +1 -1
- package/components/SVGIcons/IconMedium.js +2 -2
- package/components/SVGIcons/IconMoon.d.ts +1 -1
- package/components/SVGIcons/IconMoon.js +2 -2
- package/components/SVGIcons/IconMore.d.ts +1 -1
- package/components/SVGIcons/IconMore.js +2 -2
- package/components/SVGIcons/IconMoreFilled.d.ts +1 -1
- package/components/SVGIcons/IconMoreFilled.js +2 -2
- package/components/SVGIcons/IconMoreVertical.d.ts +1 -1
- package/components/SVGIcons/IconMoreVertical.js +2 -2
- package/components/SVGIcons/IconMoreVerticalFilled.d.ts +1 -1
- package/components/SVGIcons/IconMoreVerticalFilled.js +2 -2
- package/components/SVGIcons/IconNavigation.d.ts +1 -1
- package/components/SVGIcons/IconNavigation.js +2 -2
- package/components/SVGIcons/IconNavigationFilled.d.ts +1 -1
- package/components/SVGIcons/IconNavigationFilled.js +2 -2
- package/components/SVGIcons/IconNotebook.d.ts +1 -1
- package/components/SVGIcons/IconNotebook.js +2 -2
- package/components/SVGIcons/IconNotebookAdd.d.ts +1 -1
- package/components/SVGIcons/IconNotebookAdd.js +2 -2
- package/components/SVGIcons/IconNotebookAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconNotebookAddFilled.js +2 -2
- package/components/SVGIcons/IconNotebookFilled.d.ts +1 -1
- package/components/SVGIcons/IconNotebookFilled.js +2 -2
- package/components/SVGIcons/IconOnlyEmployee.d.ts +1 -1
- package/components/SVGIcons/IconOnlyEmployee.js +2 -2
- package/components/SVGIcons/IconOpen.d.ts +1 -1
- package/components/SVGIcons/IconOpen.js +2 -2
- package/components/SVGIcons/IconOpenFilled.d.ts +1 -1
- package/components/SVGIcons/IconOpenFilled.js +2 -2
- package/components/SVGIcons/IconPatient.d.ts +1 -1
- package/components/SVGIcons/IconPatient.js +2 -2
- package/components/SVGIcons/IconPatientFilled.d.ts +1 -1
- package/components/SVGIcons/IconPatientFilled.js +2 -2
- package/components/SVGIcons/IconPeople.d.ts +1 -1
- package/components/SVGIcons/IconPeople.js +2 -2
- package/components/SVGIcons/IconPeopleAdd.d.ts +1 -1
- package/components/SVGIcons/IconPeopleAdd.js +2 -2
- package/components/SVGIcons/IconPeopleAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconPeopleAddFilled.js +2 -2
- package/components/SVGIcons/IconPeopleFilled.d.ts +1 -1
- package/components/SVGIcons/IconPeopleFilled.js +2 -2
- package/components/SVGIcons/IconPeopleList.d.ts +1 -1
- package/components/SVGIcons/IconPeopleList.js +2 -2
- package/components/SVGIcons/IconPeopleListFilled.d.ts +1 -1
- package/components/SVGIcons/IconPeopleListFilled.js +2 -2
- package/components/SVGIcons/IconPeopleTeam.d.ts +1 -1
- package/components/SVGIcons/IconPeopleTeam.js +2 -2
- package/components/SVGIcons/IconPeopleTeamFilled.d.ts +1 -1
- package/components/SVGIcons/IconPeopleTeamFilled.js +2 -2
- package/components/SVGIcons/IconPercent.d.ts +1 -1
- package/components/SVGIcons/IconPercent.js +2 -2
- package/components/SVGIcons/IconPerson.d.ts +1 -1
- package/components/SVGIcons/IconPerson.js +2 -2
- package/components/SVGIcons/IconPersonAccount.d.ts +1 -1
- package/components/SVGIcons/IconPersonAccount.js +2 -2
- package/components/SVGIcons/IconPersonAccountFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonAccountFilled.js +2 -2
- package/components/SVGIcons/IconPersonAdd.d.ts +1 -1
- package/components/SVGIcons/IconPersonAdd.js +2 -2
- package/components/SVGIcons/IconPersonAddFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonAddFilled.js +2 -2
- package/components/SVGIcons/IconPersonArrowLeft.d.ts +1 -1
- package/components/SVGIcons/IconPersonArrowLeft.js +2 -2
- package/components/SVGIcons/IconPersonArrowLeftFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonArrowLeftFilled.js +2 -2
- package/components/SVGIcons/IconPersonArrowRight.d.ts +1 -1
- package/components/SVGIcons/IconPersonArrowRight.js +2 -2
- package/components/SVGIcons/IconPersonArrowRightFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonArrowRightFilled.js +2 -2
- package/components/SVGIcons/IconPersonBoard.d.ts +1 -1
- package/components/SVGIcons/IconPersonBoard.js +2 -2
- package/components/SVGIcons/IconPersonFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonFilled.js +2 -2
- package/components/SVGIcons/IconPersonMinus.d.ts +1 -1
- package/components/SVGIcons/IconPersonMinus.js +2 -2
- package/components/SVGIcons/IconPersonStar.d.ts +1 -1
- package/components/SVGIcons/IconPersonStar.js +2 -2
- package/components/SVGIcons/IconPersonStarFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonStarFilled.js +2 -2
- package/components/SVGIcons/IconPersonSubtract.d.ts +1 -1
- package/components/SVGIcons/IconPersonSubtract.js +2 -2
- package/components/SVGIcons/IconPersonSubtractFilled.d.ts +1 -1
- package/components/SVGIcons/IconPersonSubtractFilled.js +2 -2
- package/components/SVGIcons/IconPhone.d.ts +1 -1
- package/components/SVGIcons/IconPhone.js +2 -2
- package/components/SVGIcons/IconPhoneFilled.d.ts +1 -1
- package/components/SVGIcons/IconPhoneFilled.js +2 -2
- package/components/SVGIcons/IconPlugConnected.d.ts +1 -1
- package/components/SVGIcons/IconPlugConnected.js +2 -2
- package/components/SVGIcons/IconPos.d.ts +1 -1
- package/components/SVGIcons/IconPos.js +2 -2
- package/components/SVGIcons/IconPosFilled.d.ts +1 -1
- package/components/SVGIcons/IconPosFilled.js +2 -2
- package/components/SVGIcons/IconProhibited.d.ts +1 -1
- package/components/SVGIcons/IconProhibited.js +2 -2
- package/components/SVGIcons/IconProhibitedFilled.d.ts +1 -1
- package/components/SVGIcons/IconProhibitedFilled.js +2 -2
- package/components/SVGIcons/IconProjectProduct.d.ts +1 -1
- package/components/SVGIcons/IconProjectProduct.js +2 -2
- package/components/SVGIcons/IconQuestion.d.ts +1 -1
- package/components/SVGIcons/IconQuestion.js +2 -2
- package/components/SVGIcons/IconQuestionFilled.d.ts +1 -1
- package/components/SVGIcons/IconQuestionFilled.js +2 -2
- package/components/SVGIcons/IconRedo.d.ts +1 -1
- package/components/SVGIcons/IconRedo.js +2 -2
- package/components/SVGIcons/IconRedoFilled.d.ts +1 -1
- package/components/SVGIcons/IconRedoFilled.js +2 -2
- package/components/SVGIcons/IconRibbon.d.ts +1 -1
- package/components/SVGIcons/IconRibbon.js +2 -2
- package/components/SVGIcons/IconRu.d.ts +1 -1
- package/components/SVGIcons/IconRu.js +2 -2
- package/components/SVGIcons/IconRub.d.ts +1 -1
- package/components/SVGIcons/IconRub.js +2 -2
- package/components/SVGIcons/IconRubFilled.d.ts +1 -1
- package/components/SVGIcons/IconRubFilled.js +2 -2
- package/components/SVGIcons/IconSave.d.ts +1 -1
- package/components/SVGIcons/IconSave.js +2 -2
- package/components/SVGIcons/IconSaveFilled.d.ts +1 -1
- package/components/SVGIcons/IconSaveFilled.js +2 -2
- package/components/SVGIcons/IconSavings.d.ts +1 -1
- package/components/SVGIcons/IconSavings.js +2 -2
- package/components/SVGIcons/IconSavingsFilled.d.ts +1 -1
- package/components/SVGIcons/IconSavingsFilled.js +2 -2
- package/components/SVGIcons/IconSearch.d.ts +1 -1
- package/components/SVGIcons/IconSearch.js +2 -2
- package/components/SVGIcons/IconSearchFilled.d.ts +1 -1
- package/components/SVGIcons/IconSearchFilled.js +2 -2
- package/components/SVGIcons/IconSelectAllOff.d.ts +1 -1
- package/components/SVGIcons/IconSelectAllOff.js +2 -2
- package/components/SVGIcons/IconSelectAllOffFilled.d.ts +1 -1
- package/components/SVGIcons/IconSelectAllOffFilled.js +2 -2
- package/components/SVGIcons/IconSelectAllOn.d.ts +1 -1
- package/components/SVGIcons/IconSelectAllOn.js +2 -2
- package/components/SVGIcons/IconSelectAllOnFilled.d.ts +1 -1
- package/components/SVGIcons/IconSelectAllOnFilled.js +2 -2
- package/components/SVGIcons/IconSend.d.ts +1 -1
- package/components/SVGIcons/IconSend.js +2 -2
- package/components/SVGIcons/IconSendFilled.d.ts +1 -1
- package/components/SVGIcons/IconSendFilled.js +2 -2
- package/components/SVGIcons/IconSettings.d.ts +1 -1
- package/components/SVGIcons/IconSettings.js +2 -2
- package/components/SVGIcons/IconSettingsFilled.d.ts +1 -1
- package/components/SVGIcons/IconSettingsFilled.js +2 -2
- package/components/SVGIcons/IconShare.d.ts +1 -1
- package/components/SVGIcons/IconShare.js +2 -2
- package/components/SVGIcons/IconShareAndroid.d.ts +1 -1
- package/components/SVGIcons/IconShareAndroid.js +2 -2
- package/components/SVGIcons/IconShareAndroidFilled.d.ts +1 -1
- package/components/SVGIcons/IconShareAndroidFilled.js +2 -2
- package/components/SVGIcons/IconShareFilled.d.ts +1 -1
- package/components/SVGIcons/IconShareFilled.js +2 -2
- package/components/SVGIcons/IconSignOut.d.ts +1 -1
- package/components/SVGIcons/IconSignOut.js +2 -2
- package/components/SVGIcons/IconSignOutFilled.d.ts +1 -1
- package/components/SVGIcons/IconSignOutFilled.js +2 -2
- package/components/SVGIcons/IconSpinner.d.ts +1 -1
- package/components/SVGIcons/IconSpinner.js +2 -2
- package/components/SVGIcons/IconSpinnerFilled.d.ts +1 -1
- package/components/SVGIcons/IconSpinnerFilled.js +2 -2
- package/components/SVGIcons/IconStatus.d.ts +1 -1
- package/components/SVGIcons/IconStatus.js +2 -2
- package/components/SVGIcons/IconStatusFilled.d.ts +1 -1
- package/components/SVGIcons/IconStatusFilled.js +2 -2
- package/components/SVGIcons/IconSubtract.d.ts +1 -1
- package/components/SVGIcons/IconSubtract.js +2 -2
- package/components/SVGIcons/IconSubtractCircle.d.ts +1 -1
- package/components/SVGIcons/IconSubtractCircle.js +2 -2
- package/components/SVGIcons/IconSubtractCircleFilled.d.ts +1 -1
- package/components/SVGIcons/IconSubtractCircleFilled.js +2 -2
- package/components/SVGIcons/IconSubtractFilled.d.ts +1 -1
- package/components/SVGIcons/IconSubtractFilled.js +2 -2
- package/components/SVGIcons/IconSun.d.ts +1 -1
- package/components/SVGIcons/IconSun.js +2 -2
- package/components/SVGIcons/IconTableCellEdit.d.ts +1 -1
- package/components/SVGIcons/IconTableCellEdit.js +2 -2
- package/components/SVGIcons/IconTableCellEditFilled.d.ts +1 -1
- package/components/SVGIcons/IconTableCellEditFilled.js +2 -2
- package/components/SVGIcons/IconTelegram.d.ts +1 -1
- package/components/SVGIcons/IconTelegram.js +2 -2
- package/components/SVGIcons/IconTimer.d.ts +1 -1
- package/components/SVGIcons/IconTimer.js +2 -2
- package/components/SVGIcons/IconTimerFilled.d.ts +1 -1
- package/components/SVGIcons/IconTimerFilled.js +2 -2
- package/components/SVGIcons/IconTrophy.d.ts +1 -1
- package/components/SVGIcons/IconTrophy.js +2 -2
- package/components/SVGIcons/IconTrophyFilled.d.ts +1 -1
- package/components/SVGIcons/IconTrophyFilled.js +2 -2
- package/components/SVGIcons/IconTwitter.d.ts +1 -1
- package/components/SVGIcons/IconTwitter.js +2 -2
- package/components/SVGIcons/IconUndo.d.ts +1 -1
- package/components/SVGIcons/IconUndo.js +2 -2
- package/components/SVGIcons/IconUndoFilled.d.ts +1 -1
- package/components/SVGIcons/IconUndoFilled.js +2 -2
- package/components/SVGIcons/IconUnitsEmployee.d.ts +1 -1
- package/components/SVGIcons/IconUnitsEmployee.js +2 -2
- package/components/SVGIcons/IconUpload.d.ts +1 -1
- package/components/SVGIcons/IconUpload.js +2 -2
- package/components/SVGIcons/IconUs.d.ts +1 -1
- package/components/SVGIcons/IconUs.js +2 -2
- package/components/SVGIcons/IconUsd.d.ts +1 -1
- package/components/SVGIcons/IconUsd.js +2 -2
- package/components/SVGIcons/IconUsdFilled.d.ts +1 -1
- package/components/SVGIcons/IconUsdFilled.js +2 -2
- package/components/SVGIcons/IconUserMinus.d.ts +1 -1
- package/components/SVGIcons/IconUserMinus.js +2 -2
- package/components/SVGIcons/IconVacation.d.ts +1 -1
- package/components/SVGIcons/IconVacation.js +2 -2
- package/components/SVGIcons/IconVideo.d.ts +1 -1
- package/components/SVGIcons/IconVideo.js +2 -2
- package/components/SVGIcons/IconVideoFilled.d.ts +1 -1
- package/components/SVGIcons/IconVideoFilled.js +2 -2
- package/components/SVGIcons/IconWallet.d.ts +1 -1
- package/components/SVGIcons/IconWallet.js +2 -2
- package/components/SVGIcons/IconWalletFilled.d.ts +1 -1
- package/components/SVGIcons/IconWalletFilled.js +2 -2
- package/components/SVGIcons/IconWarning.d.ts +1 -1
- package/components/SVGIcons/IconWarning.js +2 -2
- package/components/SVGIcons/IconWarningFilled.d.ts +1 -1
- package/components/SVGIcons/IconWarningFilled.js +2 -2
- package/components/SVGIcons/IconYoutube.d.ts +1 -1
- package/components/SVGIcons/IconYoutube.js +2 -2
- package/components/Select/ButtonSelect/ButtonSelect.js +4 -4
- package/components/Select/FilterSelect/FilterDropdown.js +3 -3
- package/components/Select/FilterSelect/FilterSelect.js +3 -3
- package/components/Select/MultiSelect/DesktopWrapper.d.ts +1 -1
- package/components/Select/MultiSelect/DesktopWrapper.js +2 -2
- package/components/Select/MultiSelect/MobileWrapper.d.ts +1 -1
- package/components/Select/MultiSelect/MobileWrapper.js +2 -2
- package/components/Select/MultiSelect/MultiBase/MultiBase.js +4 -4
- package/components/Select/MultiSelect/MultiSelect.js +3 -3
- package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +4 -4
- package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +4 -4
- package/components/Select/MultiSelect/OptionsWrapper.d.ts +1 -1
- package/components/Select/NestedSelect/NestedSelect.js +5 -5
- package/components/Select/ProfileDropdown/index.js +2 -2
- package/components/Select/Select/Select.js +4 -4
- package/components/Select/Select/SelectDesktop/index.js +4 -4
- package/components/Select/Select/SelectMobile/MobileTopContent.d.ts +2 -2
- package/components/Select/Select/SelectMobile/MobileTopContent.js +2 -2
- package/components/Select/Select/SelectMobile/index.js +4 -4
- 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 +2 -2
- package/components/Select/SharedComponents/ContentTop.d.ts +2 -2
- package/components/Select/SharedComponents/ContentTop.js +6 -6
- package/components/Select/SharedComponents/Footer.js +2 -2
- package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +3 -3
- package/components/Select/helper.d.ts +1 -1
- package/components/Select/helper.js +3 -3
- package/components/Select/types.d.ts +5 -4
- package/components/SideSheet/Footer/Footer.d.ts +2 -2
- package/components/SideSheet/Footer/Footer.js +2 -2
- package/components/SideSheet/SideSheet.js +3 -3
- package/components/SideSheet/types.d.ts +1 -0
- package/components/Skeleton/Skeleton.js +4 -4
- package/components/Skeleton/types.d.ts +1 -0
- package/components/Snackbar/Snackbar.js +1 -1
- package/components/Snackbar/types.d.ts +1 -0
- package/components/Status/Status.js +3 -3
- package/components/Status/types.d.ts +1 -1
- package/components/Stepper/Stepper.js +2 -2
- package/components/Stepper/types.d.ts +1 -0
- package/components/Switcher/Switcher.js +2 -2
- package/components/Switcher/types.d.ts +1 -0
- package/components/Tab/Tab.js +3 -3
- package/components/Tab/TabItem.js +2 -2
- package/components/Tab/types.d.ts +1 -0
- package/components/Table/Header.d.ts +2 -1
- package/components/Table/Header.js +2 -2
- package/components/Table/IndeterminateCheckbox.d.ts +1 -0
- package/components/Table/IndeterminateCheckbox.js +2 -2
- package/components/Table/Row.d.ts +2 -1
- package/components/Table/Row.js +3 -3
- package/components/Table/Table.d.ts +1 -1
- package/components/Table/Table.js +5 -5
- package/components/Table/types.d.ts +1 -0
- package/components/Table/utils.d.ts +1 -1
- package/components/Table/utils.js +3 -3
- package/components/TableV2/AdvancedPagination.d.ts +2 -1
- package/components/TableV2/AdvancedPagination.js +3 -3
- package/components/TableV2/ColumnHeader.d.ts +2 -1
- package/components/TableV2/ColumnHeader.js +3 -3
- package/components/TableV2/IndeterminateCheckbox.d.ts +1 -0
- package/components/TableV2/IndeterminateCheckbox.js +2 -2
- package/components/TableV2/Table.d.ts +1 -1
- package/components/TableV2/Table.js +14 -14
- package/components/TableV2/hooks/useTableControl.d.ts +1 -1
- package/components/TableV2/hooks/useTableControl.js +4 -4
- package/components/TableV2/types.d.ts +1 -0
- package/components/Text/Text.js +2 -2
- package/components/Text/types.d.ts +1 -0
- package/components/Textarea/Textarea.js +2 -2
- 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 +2 -2
- package/components/UnderConstruction/types.d.ts +1 -0
- package/helperComponents/ErrorMessage/ErrorMessage.d.ts +1 -1
- package/helperComponents/ErrorMessage/ErrorMessage.js +2 -2
- package/helperComponents/ErrorMessage/types.d.ts +1 -1
- package/helperComponents/Label/types.d.ts +1 -1
- package/helperComponents/OptionItem/OptionItem.js +3 -3
- package/helperComponents/OptionItem/types.d.ts +1 -1
- package/package.json +1 -1
- package/type/base.d.ts +13 -0
- package/type/base.js +1 -0
- package/type/index.d.ts +1 -0
- package/type/index.js +1 -0
- package/type/svg-icons.d.ts +1 -1
- package/utils/helpers.d.ts +1 -1
- package/utils/helpers.js +3 -3
|
@@ -5,7 +5,7 @@ import { Button } from '../Button';
|
|
|
5
5
|
import { DEFAULT_DURATION, ICONS_MAPPING, TYPE_MAPPING } from './consts';
|
|
6
6
|
import { IconDynamicComponent } from '../../helperComponents/IconDynamicComponent';
|
|
7
7
|
const CustomToast = ({ actionProps, toastId, type = 'information', text }) => {
|
|
8
|
-
return (_jsxs("div", { "data-id": `${type}-toast-message`, className: "snackbar", children: [_jsxs("div", { className: "snackbar__content", children: [_jsx(IconDynamicComponent, { Component: ICONS_MAPPING[type], type: TYPE_MAPPING[type], size: "medium" }), _jsx(Text, { className: "snackbar__text pl-16 pr-8", type: "primary", size: "standard", weight: "regular", lineHeight: "large", children: text })] }), actionProps ? (_jsx(Button, Object.assign({ size: "small", type: "tertiary" }, actionProps, { onClick: (e) => {
|
|
8
|
+
return (_jsxs("div", { "data-test-id": `${type}-toast-message`, className: "snackbar", children: [_jsxs("div", { className: "snackbar__content", children: [_jsx(IconDynamicComponent, { Component: ICONS_MAPPING[type], type: TYPE_MAPPING[type], size: "medium" }), _jsx(Text, { className: "snackbar__text pl-16 pr-8", type: "primary", size: "standard", weight: "regular", lineHeight: "large", children: text })] }), actionProps ? (_jsx(Button, Object.assign({ size: "small", type: "tertiary" }, actionProps, { onClick: (e) => {
|
|
9
9
|
var _a;
|
|
10
10
|
toast.dismiss(toastId);
|
|
11
11
|
(_a = actionProps === null || actionProps === void 0 ? void 0 : actionProps.onClick) === null || _a === void 0 ? void 0 : _a.call(actionProps, e);
|
|
@@ -8,11 +8,11 @@ var StatusTextSize;
|
|
|
8
8
|
StatusTextSize["small"] = "xsmall";
|
|
9
9
|
})(StatusTextSize || (StatusTextSize = {}));
|
|
10
10
|
export const Status = (props) => {
|
|
11
|
-
const { type = 'primary', size = 'large', text = '', children, className = '', leftIconProps, rightIconProps, withCircle = true, withBackground = false,
|
|
12
|
-
return (_jsxs("div", { "data-id":
|
|
11
|
+
const { type = 'primary', size = 'large', text = '', children, className = '', leftIconProps, rightIconProps, withCircle = true, withBackground = false, dataTestId = '' } = props;
|
|
12
|
+
return (_jsxs("div", { "data-test-id": dataTestId, className: classNames(`status status--${size}`, className, {
|
|
13
13
|
status__withBackground: withBackground,
|
|
14
14
|
[`status__withBackground--${type}`]: withBackground
|
|
15
15
|
}), children: [withCircle ? (_jsx("span", { className: classNames('status__circle', 'mr-6', {
|
|
16
16
|
[`status__circle--${type}`]: true
|
|
17
|
-
}) })) : null, (leftIconProps === null || leftIconProps === void 0 ? void 0 : leftIconProps.Component) ? (_jsx(leftIconProps.Component, Object.assign({ size: "xsmall", type: type, className: "mr-6" }, leftIconProps))) : null, _jsxs("div", { className: "status__label", children: [_jsx(Text, { className: "status__label-text",
|
|
17
|
+
}) })) : null, (leftIconProps === null || leftIconProps === void 0 ? void 0 : leftIconProps.Component) ? (_jsx(leftIconProps.Component, Object.assign({ size: "xsmall", type: type, className: "mr-6" }, leftIconProps))) : null, _jsxs("div", { className: "status__label", children: [_jsx(Text, { className: "status__label-text", dataTestId: dataTestId ? `${dataTestId}-text` : '', weight: withBackground ? 'semibold' : 'regular', type: !withCircle || withBackground ? type : 'primary', size: StatusTextSize[size], children: text }), children] }), rightIconProps] }));
|
|
18
18
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { ISVGIconProps } from '../../type';
|
|
2
|
+
import { ISVGIconProps, IFormCompProps } from '../../type';
|
|
3
3
|
export type TStatusTypes = 'primary' | 'disabled' | 'brand' | 'danger' | 'warning' | 'success' | 'information' | 'discovery';
|
|
4
4
|
export interface TStatusProps extends IFormCompProps {
|
|
5
5
|
text?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
export const Stepper = (props) => {
|
|
4
|
-
const { list, activeStep = 0, setActiveStep,
|
|
4
|
+
const { list, activeStep = 0, setActiveStep, dataTestId = '' } = props;
|
|
5
5
|
const [activeStepIndex, setActiveStepIndex] = useState(activeStep);
|
|
6
6
|
const decreaseStepIndex = () => {
|
|
7
7
|
let newIndex = activeStepIndex;
|
|
@@ -25,5 +25,5 @@ export const Stepper = (props) => {
|
|
|
25
25
|
}
|
|
26
26
|
}, [activeStep, activeStepIndex]);
|
|
27
27
|
const Content = list[activeStepIndex];
|
|
28
|
-
return (_jsx(Content, { activeStepIndex: activeStepIndex, isNextDisabled: activeStepIndex === list.length - 1, isPrevDisabled: activeStepIndex === 0, prevHandler: decreaseStepIndex, nextHandler: increaseStepIndex, stepCount: list.length,
|
|
28
|
+
return (_jsx(Content, { activeStepIndex: activeStepIndex, isNextDisabled: activeStepIndex === list.length - 1, isPrevDisabled: activeStepIndex === 0, prevHandler: decreaseStepIndex, nextHandler: increaseStepIndex, stepCount: list.length, dataTestId: dataTestId ? `${dataTestId}-step-${activeStepIndex}` : '' }));
|
|
29
29
|
};
|
|
@@ -3,7 +3,7 @@ import { forwardRef, useMemo } from 'react';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { Label } from '../../helperComponents/Label';
|
|
5
5
|
export const Switcher = forwardRef((props, ref) => {
|
|
6
|
-
const { onClick, id = '', name, value, disabled, label, inlineType = false,
|
|
6
|
+
const { onClick, id = '', name, value, disabled, label, inlineType = false, dataTestId, size = 'large', setFieldValue, selectedValue, className = '', labelAddons, orientation = 'right', hasSpaceBetween = true } = props;
|
|
7
7
|
const isChecked = !!value || !!selectedValue;
|
|
8
8
|
const changeHandler = () => {
|
|
9
9
|
if (name && setFieldValue) {
|
|
@@ -17,6 +17,6 @@ export const Switcher = forwardRef((props, ref) => {
|
|
|
17
17
|
return (_jsxs("div", { className: classnames('switcher', {
|
|
18
18
|
'switcher--inline': inlineType,
|
|
19
19
|
'switcher--space-between': hasSpaceBetween
|
|
20
|
-
}), children: [label && orientation === 'right' && labelComponent, _jsxs("label", { id: id, className: classnames('controller', 'controller--switch', `controller--switch-${size}`, className, { 'controller--disabled': disabled }), children: [_jsx("input", { "data-id":
|
|
20
|
+
}), children: [label && orientation === 'right' && labelComponent, _jsxs("label", { id: id, className: classnames('controller', 'controller--switch', `controller--switch-${size}`, className, { 'controller--disabled': disabled }), children: [_jsx("input", { "data-test-id": dataTestId, type: "checkbox", tabIndex: 0, onChange: changeHandler, checked: isChecked, disabled: disabled }), _jsx("span", { className: "controller__icon", children: _jsx("span", { className: "controller__icon__inner", children: _jsx("span", { className: "controller__mark" }) }) })] }), label && orientation === 'left' && labelComponent] }));
|
|
21
21
|
});
|
|
22
22
|
Switcher.displayName = 'Switcher';
|
package/components/Tab/Tab.js
CHANGED
|
@@ -13,8 +13,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import { TabItem } from './TabItem';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
15
|
export const Tab = (props) => {
|
|
16
|
-
const { selectedValue, tabItems, onSelect, className,
|
|
17
|
-
return (_jsx("div", { className: "tabs-container", "data-id":
|
|
18
|
-
return (_jsx(TabItem, Object.assign({ label: tabInfo.label, badgeProps: tabInfo.badgeProps, onClick: () => onSelect(tabInfo.value), val: tabInfo.value, isSelected: selectedValue === tabInfo.value,
|
|
16
|
+
const { selectedValue, tabItems, onSelect, className, dataTestId = '' } = props, rest = __rest(props, ["selectedValue", "tabItems", "onSelect", "className", "dataTestId"]);
|
|
17
|
+
return (_jsx("div", { className: "tabs-container", "data-test-id": dataTestId, children: _jsx("div", { className: classNames('tabs-header-container', className), children: tabItems.map((tabInfo, index) => {
|
|
18
|
+
return (_jsx(TabItem, Object.assign({ label: tabInfo.label, badgeProps: tabInfo.badgeProps, onClick: () => onSelect(tabInfo.value), val: tabInfo.value, isSelected: selectedValue === tabInfo.value, dataTestId: (tabInfo === null || tabInfo === void 0 ? void 0 : tabInfo.dataTestId) || (dataTestId ? `${dataTestId}-item-${index}` : ''), disabled: tabInfo.disabled }, rest), tabInfo.value));
|
|
19
19
|
}) }) }));
|
|
20
20
|
};
|
|
@@ -3,8 +3,8 @@ import { Badge } from '../Badge';
|
|
|
3
3
|
import { noop } from '../../utils/helpers';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
export const TabItem = (props) => {
|
|
6
|
-
const { size = 'large', iconProps, badgeProps, label, className = '', disabled = false, isSelected, rightIconProps, val, onClick,
|
|
7
|
-
return (_jsxs("div", { "data-id":
|
|
6
|
+
const { size = 'large', iconProps, badgeProps, label, className = '', disabled = false, isSelected, rightIconProps, val, onClick, dataTestId } = props;
|
|
7
|
+
return (_jsxs("div", { "data-test-id": dataTestId, onClick: disabled ? noop : onClick, className: classNames('tab', { [`tab--${size}`]: size }, { 'tab--disabled': disabled }, { 'tab--selected': isSelected }, className), children: [(iconProps === null || iconProps === void 0 ? void 0 : iconProps.Component) ? (_jsx(iconProps.Component, Object.assign({ className: "tab__icon mr-8", size: `${size == 'small' ? 'xsmall' : 'small'}` }, iconProps))) : null, _jsx("span", { className: "tab__label", "data-test-id": dataTestId ? `${dataTestId}-label` : '', children: label }), (rightIconProps === null || rightIconProps === void 0 ? void 0 : rightIconProps.Component) ? (_jsx(rightIconProps.Component, Object.assign({ onClick: (e) => {
|
|
8
8
|
if (rightIconProps === null || rightIconProps === void 0 ? void 0 : rightIconProps.action) {
|
|
9
9
|
e.stopPropagation();
|
|
10
10
|
rightIconProps === null || rightIconProps === void 0 ? void 0 : rightIconProps.action(val);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IBaseProps } from '../../type';
|
|
1
2
|
import { ReactElement } from 'react';
|
|
2
3
|
import { HeaderGroup } from 'react-table';
|
|
3
4
|
type Props = IBaseProps & {
|
|
@@ -7,5 +8,5 @@ type Props = IBaseProps & {
|
|
|
7
8
|
headerGroup: HeaderGroup;
|
|
8
9
|
uniqueKey: string;
|
|
9
10
|
};
|
|
10
|
-
export declare function Header({ headerGroup, tableWidth, withSelect, uniqueKey, fixedHeader,
|
|
11
|
+
export declare function Header({ headerGroup, tableWidth, withSelect, uniqueKey, fixedHeader, dataTestId }: Props): ReactElement;
|
|
11
12
|
export {};
|
|
@@ -15,7 +15,7 @@ import { calcColumnWidth, CHECKBOX_DEFAULT_WIDTH, CHECKBOX_HEADER_ID } from './u
|
|
|
15
15
|
import { Text } from '../Text';
|
|
16
16
|
import IconArrowDown from '../SVGIcons/IconArrowDown';
|
|
17
17
|
import IconArrowUp from '../SVGIcons/IconArrowUp';
|
|
18
|
-
export function Header({ headerGroup, tableWidth, withSelect, uniqueKey, fixedHeader = false,
|
|
18
|
+
export function Header({ headerGroup, tableWidth, withSelect, uniqueKey, fixedHeader = false, dataTestId = '' }) {
|
|
19
19
|
const _a = headerGroup.getHeaderGroupProps(), { key: keyheaderGroup } = _a, headerGroupProps = __rest(_a, ["key"]);
|
|
20
20
|
return (_jsx("tr", Object.assign({}, headerGroupProps, { className: classNames({ fixed_header: fixedHeader }), children: headerGroup.headers.map(({ id, minWidth, maxWidth, width, widthInPercent, getHeaderProps, fixed, columnProps, render, isSorted, isSortedDesc, getSortByToggleProps }, i, arr) => {
|
|
21
21
|
var _a;
|
|
@@ -24,7 +24,7 @@ export function Header({ headerGroup, tableWidth, withSelect, uniqueKey, fixedHe
|
|
|
24
24
|
? CHECKBOX_DEFAULT_WIDTH
|
|
25
25
|
: calcColumnWidth(widthInPercent, tableWidth), left: !isSelection && withSelect && fixed === 'left' ? CHECKBOX_DEFAULT_WIDTH : 0 }, (!isSelection && minWidth ? { minWidth } : {})), (!isSelection && maxWidth ? { maxWidth } : {})), (!isSelection && width ? { width } : {}));
|
|
26
26
|
const _b = getHeaderProps((columnProps === null || columnProps === void 0 ? void 0 : columnProps.sortable) ? getSortByToggleProps() : undefined), { key: keyHead } = _b, headProps = __rest(_b, ["key"]);
|
|
27
|
-
return (_jsx("th", Object.assign({}, headProps, { "data-id":
|
|
27
|
+
return (_jsx("th", Object.assign({}, headProps, { "data-test-id": dataTestId ? `${dataTestId}-header-${id !== null && id !== void 0 ? id : i}` : '', className: classNames({
|
|
28
28
|
fixed_column_left: fixed === 'left',
|
|
29
29
|
fixed_column_right: fixed === 'right',
|
|
30
30
|
fixed_checkbox: isSelection && ((_a = arr[i + 1]) === null || _a === void 0 ? void 0 : _a.fixed) === 'left',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useEffect, useRef } from 'react';
|
|
3
3
|
import { Checkbox } from '../Checkbox';
|
|
4
|
-
export const IndeterminateCheckbox = forwardRef(({ indeterminate, checked, onChange, disabled = false,
|
|
4
|
+
export const IndeterminateCheckbox = forwardRef(({ indeterminate, checked, onChange, disabled = false, dataTestId = '' }, ref) => {
|
|
5
5
|
const defaultRef = useRef(null);
|
|
6
6
|
const resolvedRef = ref || defaultRef;
|
|
7
7
|
useEffect(() => {
|
|
@@ -10,6 +10,6 @@ export const IndeterminateCheckbox = forwardRef(({ indeterminate, checked, onCha
|
|
|
10
10
|
const handleChange = (v) => {
|
|
11
11
|
onChange({ target: { checked: v } });
|
|
12
12
|
};
|
|
13
|
-
return (_jsx(Checkbox, { disabled: disabled, value: checked, onClick: handleChange, ref: resolvedRef,
|
|
13
|
+
return (_jsx(Checkbox, { disabled: disabled, value: checked, onClick: handleChange, ref: resolvedRef, dataTestId: dataTestId, stopPropagation: true }));
|
|
14
14
|
});
|
|
15
15
|
IndeterminateCheckbox.displayName = 'IndeterminateCheckbox';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IBaseProps } from '../../type';
|
|
1
2
|
import { ReactElement } from 'react';
|
|
2
3
|
import { Row as RowType } from 'react-table';
|
|
3
4
|
type Props = IBaseProps & {
|
|
@@ -7,5 +8,5 @@ type Props = IBaseProps & {
|
|
|
7
8
|
selectedFlatRows: RowType[];
|
|
8
9
|
uniqueKey: string;
|
|
9
10
|
};
|
|
10
|
-
export declare function Row({ row, selectedFlatRows, withSelect, uniqueKey, handleRowClick,
|
|
11
|
+
export declare function Row({ row, selectedFlatRows, withSelect, uniqueKey, handleRowClick, dataTestId }: Props): ReactElement;
|
|
11
12
|
export {};
|
package/components/Table/Row.js
CHANGED
|
@@ -13,14 +13,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import { useMemo } from 'react';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
15
|
import { CHECKBOX_DEFAULT_WIDTH, CHECKBOX_HEADER_ID } from './utils';
|
|
16
|
-
export function Row({ row, selectedFlatRows, withSelect, uniqueKey, handleRowClick,
|
|
16
|
+
export function Row({ row, selectedFlatRows, withSelect, uniqueKey, handleRowClick, dataTestId = '' }) {
|
|
17
17
|
const isRowSelected = useMemo(() => selectedFlatRows.find((r) => r.id === row.id), [selectedFlatRows]);
|
|
18
18
|
const _a = row.getRowProps(), { key: keyRow } = _a, rowProps = __rest(_a, ["key"]);
|
|
19
|
-
return (_jsx("tr", Object.assign({}, rowProps, { "data-id":
|
|
19
|
+
return (_jsx("tr", Object.assign({}, rowProps, { "data-test-id": dataTestId ? `${dataTestId}-row-${row.index}` : '', className: classNames({ selected: Boolean(isRowSelected) }), onClick: () => handleRowClick === null || handleRowClick === void 0 ? void 0 : handleRowClick(row.original), children: row.cells.map(({ getCellProps, column, render }, i, arr) => {
|
|
20
20
|
var _a, _b;
|
|
21
21
|
const isSelection = column.id === CHECKBOX_HEADER_ID;
|
|
22
22
|
const _c = getCellProps(), { key: keycell } = _c, cellProps = __rest(_c, ["key"]);
|
|
23
|
-
return (_jsx("td", Object.assign({}, cellProps, { "data-id":
|
|
23
|
+
return (_jsx("td", Object.assign({}, cellProps, { "data-test-id": dataTestId ? `${dataTestId}-row-${row.index}-cell-${(_a = column.id) !== null && _a !== void 0 ? _a : i}` : '', style: {
|
|
24
24
|
left: !isSelection && withSelect && (column === null || column === void 0 ? void 0 : column.fixed) === 'left' ? CHECKBOX_DEFAULT_WIDTH : 0
|
|
25
25
|
}, className: classNames({
|
|
26
26
|
fixed_column_left: (column === null || column === void 0 ? void 0 : column.fixed) === 'left',
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { TTableProps } from './types';
|
|
3
|
-
export declare function Table({ columns, data, onChange, fixedHeader, withSelect, handleRowClick, className, language, containerRefHandler, submitButtons,
|
|
3
|
+
export declare function Table({ columns, data, onChange, fixedHeader, withSelect, handleRowClick, className, language, containerRefHandler, submitButtons, dataTestId }: TTableProps): ReactElement;
|
|
@@ -11,7 +11,7 @@ import { TABLE_LOCALIZATION } from './localization';
|
|
|
11
11
|
import { setTranslationValue } from '../../utils/helpers';
|
|
12
12
|
import IconCheckmark from '../SVGIcons/IconCheckmark';
|
|
13
13
|
import IconDismiss from '../SVGIcons/IconDismiss';
|
|
14
|
-
export function Table({ columns, data, onChange, fixedHeader, withSelect = false, handleRowClick, className, language = 'en', containerRefHandler, submitButtons,
|
|
14
|
+
export function Table({ columns, data, onChange, fixedHeader, withSelect = false, handleRowClick, className, language = 'en', containerRefHandler, submitButtons, dataTestId = '' }) {
|
|
15
15
|
const tableRef = useRef(null);
|
|
16
16
|
const [tableWidth, setTableWidth] = useState(400);
|
|
17
17
|
const uniqueKey = useId();
|
|
@@ -42,7 +42,7 @@ export function Table({ columns, data, onChange, fixedHeader, withSelect = false
|
|
|
42
42
|
const { getTableProps, getTableBodyProps, selectedFlatRows, headerGroups, rows, prepareRow, toggleAllRowsSelected, state } = useTable({
|
|
43
43
|
columns: sortedColumns,
|
|
44
44
|
data
|
|
45
|
-
}, useSortBy, useRowSelect, (hooks) => setSelectedRows(hooks, withSelect,
|
|
45
|
+
}, useSortBy, useRowSelect, (hooks) => setSelectedRows(hooks, withSelect, dataTestId));
|
|
46
46
|
const handleResize = useCallback(() => {
|
|
47
47
|
var _a;
|
|
48
48
|
if (tableRef.current) {
|
|
@@ -65,10 +65,10 @@ export function Table({ columns, data, onChange, fixedHeader, withSelect = false
|
|
|
65
65
|
const onClearSelectedRows = useCallback(() => {
|
|
66
66
|
toggleAllRowsSelected(false);
|
|
67
67
|
}, []);
|
|
68
|
-
return (_jsxs("div", { ref: containerRefHandler, "data-id":
|
|
68
|
+
return (_jsxs("div", { ref: containerRefHandler, "data-test-id": dataTestId, children: [withSelect && selectedFlatRows.length > 0 && (_jsxs("div", { className: "table-wrapper__selected-rows", children: [_jsx(Button, { buttonText: setTranslationValue(TABLE_LOCALIZATION[language].n_selected || '', selectedFlatRows.length), onClick: onClearSelectedRows, type: "tertiary", size: "medium", iconProps: { alignment: 'left', Component: IconDismiss }, dataTestId: dataTestId ? `${dataTestId}-clear-selected` : '' }), submitButtons === null || submitButtons === void 0 ? void 0 : submitButtons.map(({ buttonText, isLoading, onClick, iconProps }, i) => (_jsx(Button, { iconProps: iconProps || { alignment: 'left', Component: IconCheckmark }, onClick: (event) => {
|
|
69
69
|
onClick(event, state, onClearSelectedRows);
|
|
70
|
-
}, buttonText: buttonText || 'Submit', type: "secondary", size: "medium", className: "mr-8", isLoading: isLoading,
|
|
70
|
+
}, buttonText: buttonText || 'Submit', type: "secondary", size: "medium", className: "mr-8", isLoading: isLoading, dataTestId: dataTestId ? `${dataTestId}-submit-${i}` : '' })))] })), _jsx("div", { onScroll: dispatchScrollEvent, className: classNames('table-wrapper scrollbar scrollbar--horizontal scrollbar--vertical', className, { 'table-row-clickable': !!handleRowClick }), style: { maxHeight: fixedHeader === null || fixedHeader === void 0 ? void 0 : fixedHeader.y }, children: _jsxs("table", Object.assign({}, getTableProps(), { ref: tableRef, children: [_jsx("thead", { children: headerGroups.map((headerGroup, i) => (_jsx(Header, { withSelect: withSelect, fixedHeader: Boolean(fixedHeader), headerGroup: headerGroup, tableWidth: tableWidth, uniqueKey: uniqueKey, dataTestId: dataTestId }, `table_head_${uniqueKey}_${i}`))) }), _jsx("tbody", Object.assign({}, getTableBodyProps(), { children: rows.map((row) => {
|
|
71
71
|
prepareRow(row);
|
|
72
|
-
return (_jsx(Row, { handleRowClick: handleRowClick, withSelect: withSelect, selectedFlatRows: selectedFlatRows, row: row, uniqueKey: uniqueKey,
|
|
72
|
+
return (_jsx(Row, { handleRowClick: handleRowClick, withSelect: withSelect, selectedFlatRows: selectedFlatRows, row: row, uniqueKey: uniqueKey, dataTestId: dataTestId }, `table_row_${uniqueKey}_${row.id}`));
|
|
73
73
|
}) }))] })) })] }));
|
|
74
74
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IBaseProps } from '../../type';
|
|
1
2
|
import { Column, TableState } from 'react-table';
|
|
2
3
|
import { TButtonPropTypes } from '../Button/types';
|
|
3
4
|
type Enumerate<N extends number, Acc extends number[] = []> = Acc['length'] extends N ? Acc[number] : Enumerate<N, [...Acc, Acc['length']]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Hooks } from 'react-table';
|
|
2
2
|
export declare const CHECKBOX_HEADER_ID = "selection";
|
|
3
3
|
export declare const CHECKBOX_DEFAULT_WIDTH = 48;
|
|
4
|
-
export declare function setSelectedRows(hooks: Hooks, withSelect: boolean,
|
|
4
|
+
export declare function setSelectedRows(hooks: Hooks, withSelect: boolean, dataTestId?: string): void;
|
|
5
5
|
export declare function calcColumnWidth(percent: number, tableWidth: number): number;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { IndeterminateCheckbox } from './IndeterminateCheckbox';
|
|
3
3
|
export const CHECKBOX_HEADER_ID = 'selection';
|
|
4
4
|
export const CHECKBOX_DEFAULT_WIDTH = 48;
|
|
5
|
-
export function setSelectedRows(hooks, withSelect,
|
|
5
|
+
export function setSelectedRows(hooks, withSelect, dataTestId = '') {
|
|
6
6
|
if (withSelect) {
|
|
7
7
|
hooks.visibleColumns.push((columns) => [
|
|
8
8
|
{
|
|
@@ -15,7 +15,7 @@ export function setSelectedRows(hooks, withSelect, dataId = '') {
|
|
|
15
15
|
checked: allSelected,
|
|
16
16
|
indeterminate: !allSelected && someSelected,
|
|
17
17
|
disabled: allEnabledRows.length === 0
|
|
18
|
-
}), {
|
|
18
|
+
}), { dataTestId: dataTestId ? `${dataTestId}-select-all` : '', onChange: (e) => {
|
|
19
19
|
const checked = e.target.checked;
|
|
20
20
|
allEnabledRows.forEach((row) => {
|
|
21
21
|
toggleRowSelected(row.id, checked);
|
|
@@ -26,7 +26,7 @@ export function setSelectedRows(hooks, withSelect, dataId = '') {
|
|
|
26
26
|
const disabled = 'enableSelection' in row.original ? !row.original.enableSelection : false;
|
|
27
27
|
return (_jsx(IndeterminateCheckbox, Object.assign({}, row.getToggleRowSelectedProps({
|
|
28
28
|
disabled
|
|
29
|
-
}), {
|
|
29
|
+
}), { dataTestId: dataTestId ? `${dataTestId}-row-${row.index}-select` : '' })));
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
...columns
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { IBaseProps } from '../../type';
|
|
1
2
|
import type { Table } from '@tanstack/react-table';
|
|
2
3
|
interface PaginationProps<T> extends IBaseProps {
|
|
3
4
|
table: Table<T>;
|
|
4
5
|
totalCount: number;
|
|
5
6
|
buttonText?: string;
|
|
6
7
|
}
|
|
7
|
-
export declare function AdvancedPagination<TData>({ table, totalCount, buttonText,
|
|
8
|
+
export declare function AdvancedPagination<TData>({ table, totalCount, buttonText, dataTestId }: PaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -11,7 +11,7 @@ import IconChevronRight from '../SVGIcons/IconChevronRight';
|
|
|
11
11
|
import IconChevronDoubleLeft from '../SVGIcons/IconChevronDoubleLeft';
|
|
12
12
|
import IconChevronDoubleRight from '../SVGIcons/IconChevronDoubleRight';
|
|
13
13
|
import IconMore from '../SVGIcons/IconMore';
|
|
14
|
-
export function AdvancedPagination({ table, totalCount, buttonText,
|
|
14
|
+
export function AdvancedPagination({ table, totalCount, buttonText, dataTestId = '' }) {
|
|
15
15
|
const [navigatePage, setNavigatePage] = useState('1');
|
|
16
16
|
const pageIndex = table.getState().pagination.pageIndex;
|
|
17
17
|
const pageSize = table.getState().pagination.pageSize;
|
|
@@ -56,7 +56,7 @@ export function AdvancedPagination({ table, totalCount, buttonText, dataId = ''
|
|
|
56
56
|
setNavigatePage('1');
|
|
57
57
|
}
|
|
58
58
|
}, [table.getPageCount(), table.getState().pagination]);
|
|
59
|
-
return (_jsxs("div", { className: "advanced-table__pagination", "data-id":
|
|
59
|
+
return (_jsxs("div", { className: "advanced-table__pagination", "data-test-id": dataTestId, children: [_jsx(Select, { setSelectedItem: (value) => onRowCountChange(value), selectedItem: `${pageSize}`, className: 'no-border', options: OPTIONS, dataTestId: dataTestId ? `${dataTestId}-page-size` : '' }), _jsxs("div", { className: 'advanced-table__pagination__right', children: [_jsxs(Text, { type: 'tertiary', children: [pageIndex * pageSize + 1, " - ", (pageIndex + 1) * pageSize, " / ", totalCount] }), _jsxs("div", { className: "flexbox align-items--center", children: [_jsx(Input, { currentValue: navigatePage, size: "small", onChange: (e) => onNavigateToPage(e.target.value), className: "advanced-table__pagination__right__input mr-8", dataTestId: dataTestId ? `${dataTestId}-page-input` : '' }), _jsx(Button, { onClick: onGoToPage, type: "secondary", size: "medium", buttonText: buttonText !== null && buttonText !== void 0 ? buttonText : 'Go to page', dataTestId: dataTestId ? `${dataTestId}-goto` : '' })] }), _jsxs("ul", { className: "pagination", "data-test-id": dataTestId ? `${dataTestId}-pagination` : '', children: [_jsx("li", { className: `previous ${!table.getCanPreviousPage() ? 'disabled' : ''}`, children: _jsx("a", { rel: 'prev', role: 'button', onClick: () => table.firstPage(), "data-test-id": dataTestId ? `${dataTestId}-first` : '', children: _jsx(IconChevronDoubleLeft, { size: 'small' }) }) }), _jsx("li", { className: `previous ${!table.getCanPreviousPage() ? 'disabled' : ''}`, children: _jsx("a", { rel: 'prev', role: 'button', onClick: () => table.previousPage(), "data-test-id": dataTestId ? `${dataTestId}-prev` : '', children: _jsx(IconChevronLeft, { size: 'small' }) }) }), getVisiblePageNumbers().map((pageNumber, index) => pageNumber === '---' ? (_jsx("li", { className: 'pagination__more', children: _jsx("a", { role: 'button', onClick: () => table.setPageIndex(+pageIndex - 3), "data-test-id": dataTestId ? `${dataTestId}-ellipsis-prev` : '', children: _jsx(IconMore, { size: 'small' }) }) }, `ellipsis-${index}`)) : pageNumber === '+++' ? (_jsx("li", { className: 'pagination__more', children: _jsx("a", { role: 'button', onClick: () => table.setPageIndex(+pageIndex + 3), "data-test-id": dataTestId ? `${dataTestId}-ellipsis-next` : '', children: _jsx(IconMore, { size: 'small' }) }) }, `ellipsis-${index}`)) : (_jsx("li", { className: classnames({
|
|
60
60
|
['active']: pageNumber === pageIndex + 1
|
|
61
|
-
}), children: _jsx("a", { role: 'button', onClick: () => table.setPageIndex(+pageNumber - 1), "data-id":
|
|
61
|
+
}), children: _jsx("a", { role: 'button', onClick: () => table.setPageIndex(+pageNumber - 1), "data-test-id": dataTestId ? `${dataTestId}-page-${pageNumber}` : '', children: pageNumber }) }, pageNumber))), _jsx("li", { className: `next ${!table.getCanNextPage() ? 'disabled' : ''}`, children: _jsx("a", { rel: 'next', role: 'button', onClick: () => table.nextPage(), "data-test-id": dataTestId ? `${dataTestId}-next` : '', children: _jsx(IconChevronRight, { size: 'small' }) }) }), _jsx("li", { className: `next ${!table.getCanNextPage() ? 'disabled' : ''}`, children: _jsx("a", { rel: 'next', role: 'button', onClick: () => table.lastPage(), "data-test-id": dataTestId ? `${dataTestId}-last` : '', children: _jsx(IconChevronDoubleRight, { size: 'small' }) }) })] })] })] }));
|
|
62
62
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IBaseProps } from '../../type';
|
|
1
2
|
import type { CSSProperties } from 'react';
|
|
2
3
|
import type { Header } from '@tanstack/react-table';
|
|
3
4
|
interface DraggableColumnHeaderProps<TData> extends IBaseProps {
|
|
@@ -5,5 +6,5 @@ interface DraggableColumnHeaderProps<TData> extends IBaseProps {
|
|
|
5
6
|
isPinned?: boolean;
|
|
6
7
|
pinnedStyles: CSSProperties;
|
|
7
8
|
}
|
|
8
|
-
export declare function ColumnHeader<TData>({ header, pinnedStyles,
|
|
9
|
+
export declare function ColumnHeader<TData>({ header, pinnedStyles, dataTestId }: DraggableColumnHeaderProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -6,7 +6,7 @@ import IconArrowSort from '../SVGIcons/IconArrowSort';
|
|
|
6
6
|
import IconArrowUp from '../SVGIcons/IconArrowUp';
|
|
7
7
|
import { Text } from '../Text';
|
|
8
8
|
import classnames from 'classnames';
|
|
9
|
-
export function ColumnHeader({ header, pinnedStyles,
|
|
9
|
+
export function ColumnHeader({ header, pinnedStyles, dataTestId = '' }) {
|
|
10
10
|
const { attributes, listeners, setNodeRef, transform, transition, isDragging } = useSortable({
|
|
11
11
|
id: header.id
|
|
12
12
|
});
|
|
@@ -23,10 +23,10 @@ export function ColumnHeader({ header, pinnedStyles, dataId = '' }) {
|
|
|
23
23
|
position: 'relative',
|
|
24
24
|
zIndex: isDragging ? 1 : 0
|
|
25
25
|
};
|
|
26
|
-
return (_jsxs("th", Object.assign({ ref: setNodeRef, "data-id":
|
|
26
|
+
return (_jsxs("th", Object.assign({ ref: setNodeRef, "data-test-id": dataTestId ? `${dataTestId}-header-${header.column.id}` : '', style: Object.assign(Object.assign({}, style), pinnedStyles), className: classnames('select-none', {
|
|
27
27
|
['with-checkbox']: header.column.id === 'select',
|
|
28
28
|
['actions-header']: header.column.id === 'actions',
|
|
29
29
|
['cursor-pointer']: header.column.getCanSort()
|
|
30
|
-
}) }, attributes, { children: [_jsxs("div", { onClick: header.column.getToggleSortingHandler(), "data-id":
|
|
30
|
+
}) }, attributes, { children: [_jsxs("div", { onClick: header.column.getToggleSortingHandler(), "data-test-id": dataTestId ? `${dataTestId}-sort-${header.column.id}` : '', className: "flexbox align-items--center", children: [_jsx("div", Object.assign({}, listeners, { children: _jsx(Text, { className: "text-left", weight: 'bold', children: flexRender(header.column.columnDef.header, header.getContext()) }) })), _jsx("span", { className: "ml-4", children: header.column.getCanSort() &&
|
|
31
31
|
(header.column.getIsSorted() === 'asc' ? (_jsx(IconArrowUp, { size: "xsmall" })) : header.column.getIsSorted() === 'desc' ? (_jsx(IconArrowDown, { size: "xsmall" })) : (_jsx(IconArrowSort, { size: "xsmall" }))) })] }), _jsx("div", { onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler(), className: "resize-icon select-none touch-none" })] })));
|
|
32
32
|
}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useEffect, useRef } from 'react';
|
|
3
3
|
import { Checkbox } from '../Checkbox';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
export const IndeterminateCheckbox = forwardRef(({ indeterminate, checked, onChange, disabled,
|
|
5
|
+
export const IndeterminateCheckbox = forwardRef(({ indeterminate, checked, onChange, disabled, dataTestId = '' }, ref) => {
|
|
6
6
|
const defaultRef = useRef(null);
|
|
7
7
|
const resolvedRef = ref !== null && ref !== void 0 ? ref : defaultRef;
|
|
8
8
|
useEffect(() => {
|
|
@@ -11,6 +11,6 @@ export const IndeterminateCheckbox = forwardRef(({ indeterminate, checked, onCha
|
|
|
11
11
|
const handleChange = (v) => {
|
|
12
12
|
onChange({ target: { checked: v } });
|
|
13
13
|
};
|
|
14
|
-
return (_jsx("div", { className: 'actions-list', children: _jsx(Checkbox, { className: classNames('actions-list__checkbox', { 'active-checkbox': checked }), value: checked, disabled: disabled, onClick: handleChange, ref: resolvedRef,
|
|
14
|
+
return (_jsx("div", { className: 'actions-list', children: _jsx(Checkbox, { className: classNames('actions-list__checkbox', { 'active-checkbox': checked }), value: checked, disabled: disabled, onClick: handleChange, ref: resolvedRef, dataTestId: dataTestId }) }));
|
|
15
15
|
});
|
|
16
16
|
IndeterminateCheckbox.displayName = 'IndeterminateCheckbox';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { TTableProps } from './types';
|
|
2
2
|
import 'react-loading-skeleton/dist/skeleton.css';
|
|
3
|
-
export declare function Table<TData>({ data,
|
|
3
|
+
export declare function Table<TData>({ data, dataTestId, columns, isLoading, hasError, isActionsVisible, totalCount, emptyTitle, emptySubTitle, emptyIllustration, withSelect, withBorder, defaultPageIndex, defaultPageSize, defaultHiddenColumns, collapsibleRows, renderExpandedContent, renderHeader, renderFooter, onSortChange, onRowClick, tableSettings, onRowSelection, onColumnSizing, onPaginationChange }: TTableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,19 +19,19 @@ var ColumnId;
|
|
|
19
19
|
ColumnId["Actions"] = "actions";
|
|
20
20
|
ColumnId["Expand"] = "expand";
|
|
21
21
|
})(ColumnId || (ColumnId = {}));
|
|
22
|
-
const ExpandColumn = ({ row, expandedRows, onToggle,
|
|
22
|
+
const ExpandColumn = ({ row, expandedRows, onToggle, dataTestId = '' }) => {
|
|
23
23
|
var _a, _b, _c;
|
|
24
24
|
const hasSubRows = ((_a = row.original) === null || _a === void 0 ? void 0 : _a.subRows) && ((_c = (_b = row.original) === null || _b === void 0 ? void 0 : _b.subRows) === null || _c === void 0 ? void 0 : _c.length) > 0;
|
|
25
25
|
if (!hasSubRows)
|
|
26
26
|
return null;
|
|
27
27
|
return (_jsx(Button, { type: "tertiary", size: "medium", className: classnames('advanced-table__expand-button'), iconProps: {
|
|
28
28
|
Component: expandedRows.has(row.id) ? IconChevronUp : IconChevronDown
|
|
29
|
-
},
|
|
29
|
+
}, dataTestId: dataTestId ? `${dataTestId}-expand-${row.index}` : '', onClick: (e) => {
|
|
30
30
|
e.stopPropagation();
|
|
31
31
|
onToggle(row.id);
|
|
32
32
|
} }));
|
|
33
33
|
};
|
|
34
|
-
export function Table({ data,
|
|
34
|
+
export function Table({ data, dataTestId = '', columns, isLoading, hasError, isActionsVisible = false, totalCount = 0, emptyTitle, emptySubTitle, emptyIllustration, withSelect = false, withBorder = true, defaultPageIndex, defaultPageSize, defaultHiddenColumns, collapsibleRows = false, renderExpandedContent, renderHeader, renderFooter, onSortChange, onRowClick, tableSettings, onRowSelection, onColumnSizing, onPaginationChange }) {
|
|
35
35
|
const [expandedRows, setExpandedRows] = useState(new Set());
|
|
36
36
|
const handleToggleRow = useCallback((rowId) => {
|
|
37
37
|
setExpandedRows((prev) => {
|
|
@@ -52,7 +52,7 @@ export function Table({ data, dataId = '', columns, isLoading, hasError, isActio
|
|
|
52
52
|
size: 50,
|
|
53
53
|
minSize: 50,
|
|
54
54
|
maxSize: 50,
|
|
55
|
-
cell: ({ row }) => (_jsx(ExpandColumn, { row: row, expandedRows: expandedRows, onToggle: handleToggleRow,
|
|
55
|
+
cell: ({ row }) => (_jsx(ExpandColumn, { row: row, expandedRows: expandedRows, onToggle: handleToggleRow, dataTestId: dataTestId })),
|
|
56
56
|
meta: {
|
|
57
57
|
enableHiding: false,
|
|
58
58
|
enableColumnDragging: false,
|
|
@@ -61,10 +61,10 @@ export function Table({ data, dataId = '', columns, isLoading, hasError, isActio
|
|
|
61
61
|
headerVisible: false,
|
|
62
62
|
enableSorting: false
|
|
63
63
|
}
|
|
64
|
-
}), [expandedRows, handleToggleRow,
|
|
64
|
+
}), [expandedRows, handleToggleRow, dataTestId]);
|
|
65
65
|
const { table, sensors, handleDragStart, handleDragEnd, handleDragCancel, activeHeader } = useTableControl({
|
|
66
66
|
data,
|
|
67
|
-
|
|
67
|
+
dataTestId,
|
|
68
68
|
tableSettings,
|
|
69
69
|
columns: collapsibleRows ? [expandColumn, ...columns] : columns,
|
|
70
70
|
withSelect,
|
|
@@ -101,26 +101,26 @@ export function Table({ data, dataId = '', columns, isLoading, hasError, isActio
|
|
|
101
101
|
const skeletonRowSize = useMemo(() => {
|
|
102
102
|
return Array.from({ length: table.getState().pagination.pageSize });
|
|
103
103
|
}, [table.getState().pagination.pageSize]);
|
|
104
|
-
return (_jsxs("div", { "data-id":
|
|
104
|
+
return (_jsxs("div", { "data-test-id": dataTestId, className: classnames('advanced-table', {
|
|
105
105
|
'with-border': withBorder
|
|
106
|
-
}), children: [header, _jsx("div", { className: classnames('advanced-table__inner scrollbar scrollbar--horizontal scrollbar--vertical'), children: _jsxs(DndContext, { sensors: sensors, collisionDetection: closestCenter, onDragStart: handleDragStart, onDragEnd: handleDragEnd, onDragCancel: handleDragCancel, children: [_jsx("div", { children: _jsx("table", { style: tableStyle, children: !isLoading && (!(data === null || data === void 0 ? void 0 : data.length) || hasError) ? (_jsx(Empty, { mainMessage: emptyTitle, paragraphMessage: emptySubTitle, illustration: emptyIllustration,
|
|
106
|
+
}), children: [header, _jsx("div", { className: classnames('advanced-table__inner scrollbar scrollbar--horizontal scrollbar--vertical'), children: _jsxs(DndContext, { sensors: sensors, collisionDetection: closestCenter, onDragStart: handleDragStart, onDragEnd: handleDragEnd, onDragCancel: handleDragCancel, children: [_jsx("div", { children: _jsx("table", { style: tableStyle, children: !isLoading && (!(data === null || data === void 0 ? void 0 : data.length) || hasError) ? (_jsx(Empty, { mainMessage: emptyTitle, paragraphMessage: emptySubTitle, illustration: emptyIllustration, dataTestId: dataTestId ? `${dataTestId}-empty` : '' })) : (_jsxs(_Fragment, { children: [_jsx("thead", { className: classnames('advanced-table__thead'), children: table.getHeaderGroups().map((headerGroup) => (_jsx("tr", { children: _jsx(SortableContext, { items: headerGroup.headers.map((header) => header.id), strategy: horizontalListSortingStrategy, children: headerGroup.headers.map((header) => {
|
|
107
107
|
if (header.id === ColumnId.Actions && !isActionsVisible)
|
|
108
108
|
return null;
|
|
109
|
-
return (_jsx(ColumnHeader, { pinnedStyles: Object.assign({}, getCommonPinningStyles(header.column)), header: header,
|
|
109
|
+
return (_jsx(ColumnHeader, { pinnedStyles: Object.assign({}, getCommonPinningStyles(header.column)), header: header, dataTestId: dataTestId }, header.id));
|
|
110
110
|
}) }) }, headerGroup.id))) }), _jsx("tbody", { children: isLoading
|
|
111
|
-
? skeletonRowSize.map((_, i) => (_jsx("tr", { "data-id":
|
|
111
|
+
? skeletonRowSize.map((_, i) => (_jsx("tr", { "data-test-id": dataTestId ? `${dataTestId}-loader-row-${i}` : '', children: table.getVisibleFlatColumns().map((column) => (_jsx("td", { className: classnames({
|
|
112
112
|
'with-checkbox': column.id === ColumnId.Select,
|
|
113
113
|
'pinned-cell': column.getIsPinned(),
|
|
114
114
|
'action-column': column.id === ColumnId.Actions && !isActionsVisible
|
|
115
115
|
}), style: Object.assign({}, getCommonPinningStyles(column)), children: _jsx(Skeleton, {}) }, column.id))) }, `skeleton-row-${i}`)))
|
|
116
|
-
: table.getRowModel().rows.map((row) => (_jsxs(React.Fragment, { children: [_jsx("tr", { className: classnames({ selected: row.getIsSelected() }), "data-id":
|
|
116
|
+
: table.getRowModel().rows.map((row) => (_jsxs(React.Fragment, { children: [_jsx("tr", { className: classnames({ selected: row.getIsSelected() }), "data-test-id": dataTestId ? `${dataTestId}-row-${row.index}` : '', children: row.getVisibleCells().map((cell) => (_jsx("td", { className: classnames({
|
|
117
117
|
'with-checkbox': cell.column.id === ColumnId.Select,
|
|
118
118
|
'pinned-cell': cell.column.getIsPinned(),
|
|
119
119
|
'action-column': cell.column.id === ColumnId.Actions && !isActionsVisible,
|
|
120
120
|
'expand-column': cell.column.id === ColumnId.Expand
|
|
121
|
-
}), id: cell.id, "data-id":
|
|
122
|
-
? `${
|
|
121
|
+
}), id: cell.id, "data-test-id": dataTestId
|
|
122
|
+
? `${dataTestId}-row-${row.index}-cell-${cell.column.id}`
|
|
123
123
|
: '', onClick: () => handleRowClick(cell.column, row), style: Object.assign({}, getCommonPinningStyles(cell.column)), children: cell.column.id === ColumnId.Actions && !isActionsVisible ? (_jsx("div", { className: classnames('actions-list__right'), children: flexRender(cell.column.columnDef.cell, cell.getContext()) })) : (flexRender(cell.column.columnDef.cell, cell.getContext())) }, cell.id))) }), collapsibleRows &&
|
|
124
124
|
expandedRows.has(row.id) &&
|
|
125
|
-
renderExpandedContent && (_jsx("tr", { className: classnames('advanced-table__expanded-row'), "data-id":
|
|
125
|
+
renderExpandedContent && (_jsx("tr", { className: classnames('advanced-table__expanded-row'), "data-test-id": dataTestId ? `${dataTestId}-row-${row.index}-expanded` : '', children: _jsx("td", { colSpan: row.getVisibleCells().length, children: renderExpandedContent(row) }) }))] }, row.id))) })] })) }) }), _jsx(DragOverlay, { dropAnimation: null, children: activeHeader && (_jsx("table", { style: { width: activeHeader.getSize() }, children: _jsx("thead", { children: _jsx("tr", { children: _jsx("th", { className: classnames('draggable-col'), style: { width: activeHeader.getSize() }, children: _jsx(Text, { weight: 'bold', children: flexRender(activeHeader.column.columnDef.header, activeHeader.getContext()) }) }) }) }) })) })] }) }), !!data.length && !hasError && footer] }));
|
|
126
126
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DragEndEvent, DragStartEvent } from '@dnd-kit/core';
|
|
2
2
|
import type { Column, TTableProps } from '../types';
|
|
3
|
-
export declare function useTableControl<TData>({ withSelect, columns, data,
|
|
3
|
+
export declare function useTableControl<TData>({ withSelect, columns, data, dataTestId, tableSettings, totalCount, defaultPageSize, defaultPageIndex, defaultHiddenColumns, onSortChange, onRowSelection, onColumnSizing, onPaginationChange }: TTableProps<TData>): {
|
|
4
4
|
table: import("@tanstack/react-table").Table<TData>;
|
|
5
5
|
activeHeader: import("@tanstack/react-table").Header<TData, unknown> | null | undefined;
|
|
6
6
|
sensors: import("@dnd-kit/core").SensorDescriptor<import("@dnd-kit/core").SensorOptions>[];
|
|
@@ -7,7 +7,7 @@ import { arrayMove } from '@dnd-kit/sortable';
|
|
|
7
7
|
import { loadTableSettings } from '../loadTableSettings';
|
|
8
8
|
import { useTableColumnSettings } from './useTableColumnSettings';
|
|
9
9
|
import { STORAGE_TYPE, TABLE_NAME_PREFIX } from '../constants';
|
|
10
|
-
export function useTableControl({ withSelect, columns, data,
|
|
10
|
+
export function useTableControl({ withSelect, columns, data, dataTestId = '', tableSettings, totalCount = 0, defaultPageSize = 10, defaultPageIndex = 0, defaultHiddenColumns = [], onSortChange, onRowSelection, onColumnSizing, onPaginationChange }) {
|
|
11
11
|
var _a, _b;
|
|
12
12
|
const shouldPersistToStorage = (tableSettings === null || tableSettings === void 0 ? void 0 : tableSettings.persistColumnSettings) === STORAGE_TYPE.LOCAL;
|
|
13
13
|
const shouldEmitExternal = (tableSettings === null || tableSettings === void 0 ? void 0 : tableSettings.persistColumnSettings) === STORAGE_TYPE.EXTERNAL;
|
|
@@ -40,12 +40,12 @@ export function useTableControl({ withSelect, columns, data, dataId = '', tableS
|
|
|
40
40
|
enableHiding: false,
|
|
41
41
|
enableColumnDragging: false,
|
|
42
42
|
enablePinning: true,
|
|
43
|
-
header: ({ table }) => (_jsx(IndeterminateCheckbox, { checked: table.getIsAllRowsSelected(), indeterminate: table.getIsSomeRowsSelected(), onChange: table.getToggleAllRowsSelectedHandler(),
|
|
44
|
-
cell: ({ row }) => (_jsx(IndeterminateCheckbox, { checked: row.getIsSelected(), disabled: !row.getCanSelect(), indeterminate: row.getIsSomeSelected(), onChange: row.getToggleSelectedHandler(),
|
|
43
|
+
header: ({ table }) => (_jsx(IndeterminateCheckbox, { checked: table.getIsAllRowsSelected(), indeterminate: table.getIsSomeRowsSelected(), onChange: table.getToggleAllRowsSelectedHandler(), dataTestId: dataTestId ? `${dataTestId}-select-all` : '' })),
|
|
44
|
+
cell: ({ row }) => (_jsx(IndeterminateCheckbox, { checked: row.getIsSelected(), disabled: !row.getCanSelect(), indeterminate: row.getIsSomeSelected(), onChange: row.getToggleSelectedHandler(), dataTestId: dataTestId ? `${dataTestId}-row-${row.index}-select` : '' }))
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
return columnsList;
|
|
48
|
-
}, [columns,
|
|
48
|
+
}, [columns, dataTestId]);
|
|
49
49
|
const [columnOrder, setColumnOrder] = useState(((_b = savedSettings.columnOrder) === null || _b === void 0 ? void 0 : _b.length) && savedSettings.columnOrder.length === memoizedColumns.length
|
|
50
50
|
? savedSettings.columnOrder
|
|
51
51
|
: memoizedColumns.map((column) => column.id));
|
package/components/Text/Text.js
CHANGED
|
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import { noop } from '../../utils/helpers';
|
|
4
4
|
export const Text = (props) => {
|
|
5
|
-
const { children, className = '', type = 'primary', size = 'standard', weight = 'regular', lineHeight = 'medium', as: As = 'p',
|
|
6
|
-
return (_jsx(As, { id: id, title: title, "data-id":
|
|
5
|
+
const { children, className = '', type = 'primary', size = 'standard', weight = 'regular', lineHeight = 'medium', as: As = 'p', dataTestId = '', onClick = noop, id = '', title } = props;
|
|
6
|
+
return (_jsx(As, { id: id, title: title, "data-test-id": dataTestId, onClick: onClick, className: classNames('body', size && `body-${size}`, type && `color-${type}`, weight, lineHeight && `lh-${lineHeight}`, className), children: children }));
|
|
7
7
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IBaseProps } from '../../type';
|
|
1
2
|
import { ElementType, MouseEvent, ReactNode } from 'react';
|
|
2
3
|
type TTextTypes = 'primary' | 'secondary' | 'tertiary' | 'disabled' | 'inverse' | 'selected' | 'brand' | 'danger' | 'warning' | 'success' | 'information' | 'discovery';
|
|
3
4
|
export type TTextSize = 'xxsmall' | 'xsmall' | 'small' | 'standard' | 'medium' | 'large' | 'xlarge';
|