hrm_ui_lib 2.0.3 → 2.1.0-alpha.10
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/README.md +1 -3
- package/assets/images/file-preview.svg.js +1 -0
- package/assets/images/no-result.svg.js +1 -0
- package/assets/images/no_mobile_image.svg.js +1 -0
- package/assets/images/under-construction.webp +0 -0
- package/assets/images/under-construction.webp.js +1 -0
- package/assets/styles/helpers/_mixin.scss +326 -464
- package/assets/styles/styles.css +1 -8776
- package/components/Alert/Alert.js +6 -52
- package/components/Alert/consts.d.ts +3 -4
- package/components/Alert/consts.js +1 -16
- package/components/Alert/index.js +1 -52
- package/components/Alert/types.js +0 -1
- package/components/Avatar/Avatar.js +1 -119
- package/components/Avatar/AvatarGroup.js +5 -120
- package/components/Avatar/index.js +1 -64
- package/components/Avatar/types.js +0 -1
- package/components/Badge/Badge.js +2 -24
- package/components/Badge/index.js +1 -6
- package/components/Badge/types.js +0 -1
- package/components/BadgeV2/BadgeV2.d.ts +3 -0
- package/components/BadgeV2/BadgeV2.js +1 -0
- package/components/BadgeV2/index.d.ts +1 -0
- package/components/BadgeV2/index.js +1 -0
- package/components/BadgeV2/types.d.ts +23 -0
- package/components/BadgeV2/types.js +1 -0
- package/components/Breadcrumb/Breadcrumb.js +2 -24
- package/components/Breadcrumb/index.js +1 -2
- package/components/Breadcrumb/types.js +0 -1
- package/components/Button/Button.js +2 -52
- package/components/Button/consts.d.ts +1 -1
- package/components/Button/consts.js +1 -16
- package/components/Button/index.js +1 -52
- package/components/Button/types.d.ts +2 -1
- package/components/Button/types.js +0 -1
- package/components/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/components/ButtonGroup/ButtonGroup.js +2 -0
- package/components/ButtonGroup/ButtonGroupItem.d.ts +2 -0
- package/components/ButtonGroup/ButtonGroupItem.js +3 -0
- package/components/ButtonGroup/consts.d.ts +8 -0
- package/components/ButtonGroup/consts.js +1 -0
- package/components/ButtonGroup/index.d.ts +1 -0
- package/components/ButtonGroup/index.js +1 -0
- package/components/ButtonGroup/types.d.ts +23 -0
- package/components/ButtonGroup/types.js +0 -0
- package/components/Card/Card.d.ts +13 -0
- package/components/Card/Card.js +1 -0
- package/components/Card/CardComponent/Card.d.ts +4 -0
- package/components/Card/CardComponent/Card.js +3 -0
- package/components/Card/CardComponent/CardBody.d.ts +4 -0
- package/components/Card/CardComponent/CardBody.js +2 -0
- package/components/Card/CardComponent/CardFooter.d.ts +4 -0
- package/components/Card/CardComponent/CardFooter.js +1 -0
- package/components/Card/CardComponent/CardHead.d.ts +4 -0
- package/components/Card/CardComponent/CardHead.js +2 -0
- package/components/Card/CardContext.d.ts +7 -0
- package/components/Card/CardContext.js +1 -0
- package/components/Card/index.d.ts +1 -0
- package/components/Card/index.js +1 -0
- package/components/Card/types.d.ts +19 -0
- package/components/Card/types.js +0 -0
- package/components/CardGroup/CardGroup.d.ts +10 -0
- package/components/CardGroup/CardGroup.js +1 -0
- package/components/CardGroup/CardGroupComponent/CardBody.d.ts +4 -0
- package/components/CardGroup/CardGroupComponent/CardBody.js +2 -0
- package/components/CardGroup/CardGroupComponent/CardGroup.d.ts +4 -0
- package/components/CardGroup/CardGroupComponent/CardGroup.js +2 -0
- package/components/CardGroup/CardGroupComponent/CardHead.d.ts +4 -0
- package/components/CardGroup/CardGroupComponent/CardHead.js +3 -0
- package/components/CardGroup/CardGroupContext.d.ts +6 -0
- package/components/CardGroup/CardGroupContext.js +1 -0
- package/components/CardGroup/index.d.ts +1 -0
- package/components/CardGroup/index.js +1 -0
- package/components/CardGroup/types.d.ts +14 -0
- package/components/CardGroup/types.js +0 -0
- package/components/Checkbox/Checkbox.js +6 -52
- package/components/Checkbox/consts.d.ts +3 -0
- package/components/Checkbox/consts.js +1 -0
- package/components/Checkbox/index.js +1 -52
- package/components/Checkbox/types.d.ts +1 -0
- package/components/Checkbox/types.js +0 -1
- package/components/Chips/Chips.js +2 -67
- package/components/Chips/consts.d.ts +1 -1
- package/components/Chips/consts.js +1 -14
- package/components/Chips/index.js +1 -11
- package/components/Chips/types.d.ts +1 -1
- package/components/Chips/types.js +1 -7
- package/components/Collapse/Collapse/Collapse.d.ts +3 -0
- package/components/Collapse/Collapse/Collapse.js +5 -0
- package/components/Collapse/Collapse/Title.d.ts +10 -0
- package/components/Collapse/Collapse/Title.js +2 -0
- package/components/Collapse/CollapseGroup/CollapseGroup.js +3 -76
- package/components/Collapse/CollapseItem/CollapseItem.js +10 -89
- package/components/Collapse/index.d.ts +1 -0
- package/components/Collapse/index.js +1 -16
- package/components/Collapse/types.d.ts +16 -3
- package/components/Collapse/types.js +0 -1
- package/components/Container/Container.js +2 -10
- package/components/Container/index.js +1 -2
- package/components/Container/types.js +0 -1
- package/components/Copy/Copy.js +3 -94
- package/components/Copy/index.js +1 -54
- package/components/Copy/types.js +0 -1
- package/components/Counter/Counter.js +2 -137
- package/components/Counter/index.js +1 -61
- package/components/Counter/types.js +0 -1
- package/components/DarkModeSwitcher/DarkModeSwitcher.d.ts +11 -0
- package/components/DarkModeSwitcher/DarkModeSwitcher.js +5 -0
- package/components/DarkModeSwitcher/index.d.ts +1 -0
- package/components/DarkModeSwitcher/index.js +1 -0
- package/components/DarkModeSwitcher/types.d.ts +17 -0
- package/components/DarkModeSwitcher/types.js +1 -0
- package/components/DatePicker/CustomHeader/CustomHeader.js +7 -192
- package/components/DatePicker/CustomHeader/helpers.js +1 -17
- package/components/DatePicker/RangeDatePicker/RangeDatePicker.js +1 -130
- package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +4 -177
- package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +8 -269
- package/components/DatePicker/RangeDatePicker/index.js +1 -124
- package/components/DatePicker/SimpleDatePicker/SimpleDatePicker.js +1 -130
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +4 -205
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +5 -210
- package/components/DatePicker/SimpleDatePicker/index.js +1 -123
- package/components/DatePicker/TimePicker/MobileModalContent.js +4 -124
- package/components/DatePicker/TimePicker/TimePicker.js +1 -76
- package/components/DatePicker/TimePicker/TimePickerDesktop.js +4 -131
- package/components/DatePicker/TimePicker/TimePickerMobile.js +5 -127
- package/components/DatePicker/TimePicker/consts.js +1 -8
- package/components/DatePicker/TimePicker/helpers.js +1 -21
- package/components/DatePicker/TimePicker/index.js +1 -70
- package/components/DatePicker/hooks.js +1 -2175
- package/components/DatePicker/index.js +1 -134
- package/components/DatePicker/localization.js +1 -7
- package/components/DatePicker/types.js +1 -7
- package/components/Divider/Divider.js +2 -16
- package/components/Divider/index.js +1 -3
- package/components/Divider/types.d.ts +1 -0
- package/components/Divider/types.js +0 -1
- package/components/Empty/Empty.js +4 -85
- package/components/Empty/index.js +1 -54
- package/components/Empty/types.js +0 -1
- package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +7 -52
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +1 -52
- package/components/FileUpload/DropzoneFileUpload/FilePreview.js +2 -53
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +7 -52
- package/components/FileUpload/DropzoneFileUpload/helpers.js +1 -52
- package/components/FileUpload/DropzoneFileUpload/index.js +1 -52
- package/components/FileUpload/FileUpload.js +6 -193
- package/components/FileUpload/UploadItems.js +6 -102
- package/components/FileUpload/index.js +1 -61
- package/components/FileUpload/types.js +1 -10
- package/components/FormContainer/FormContainer.js +1 -137
- package/components/FormContainer/index.js +1 -55
- package/components/FormContainer/types.d.ts +2 -2
- package/components/FormContainer/types.js +0 -1
- package/components/FormField/FormField.js +3 -115
- package/components/FormField/index.js +1 -56
- package/components/FormField/types.d.ts +1 -0
- package/components/FormField/types.js +0 -1
- package/components/Heading/Heading.js +2 -29
- package/components/Heading/index.js +1 -5
- package/components/Heading/types.js +0 -1
- package/components/Image/Image.js +1 -33
- package/components/Image/index.js +1 -2
- package/components/Image/types.js +0 -1
- package/components/Input/Input.js +9 -243
- package/components/Input/index.js +1 -58
- package/components/Input/types.d.ts +1 -1
- package/components/Input/types.js +0 -1
- package/components/Link/Link.js +2 -42
- package/components/Link/index.js +1 -3
- package/components/Link/types.js +0 -1
- package/components/Menu/Menu.js +3 -165
- package/components/Menu/NestedMenu.js +3 -178
- package/components/Menu/index.js +1 -72
- package/components/Menu/types.js +0 -1
- package/components/Modal/Modal.d.ts +1 -6
- package/components/Modal/Modal.js +1 -52
- package/components/Modal/ModalConfirmation.d.ts +1 -1
- package/components/Modal/ModalConfirmation.js +3 -143
- package/components/Modal/ModalContent.d.ts +3 -1
- package/components/Modal/ModalContent.js +5 -52
- package/components/Modal/index.js +1 -53
- package/components/Modal/types.d.ts +2 -0
- package/components/Modal/types.js +0 -1
- package/components/More/More.js +3 -86
- package/components/More/index.js +1 -53
- package/components/More/types.js +0 -1
- package/components/Pagination/Pagination.js +2 -59
- package/components/Pagination/consts.d.ts +1 -1
- package/components/Pagination/consts.js +1 -8
- package/components/Pagination/index.js +1 -10
- package/components/Pagination/types.js +0 -1
- package/components/Popover/Popover.js +1 -52
- package/components/Popover/PopoverDesktop.js +1 -71
- package/components/Popover/PopoverMobile.js +3 -52
- package/components/Popover/index.js +1 -52
- package/components/Popover/types.d.ts +2 -1
- package/components/Popover/types.js +0 -1
- package/components/Progress/Progress.js +4 -57
- package/components/Progress/index.js +1 -2
- package/components/Progress/types.js +0 -1
- package/components/ProgressStep/ProgressStep.js +2 -39
- package/components/ProgressStep/Step.js +9 -101
- package/components/ProgressStep/consts.js +1 -9
- package/components/ProgressStep/index.js +1 -12
- package/components/ProgressStep/types.js +1 -7
- package/components/Radio/Radio.js +4 -58
- package/components/Radio/RadioGroup.js +4 -113
- package/components/Radio/index.js +1 -55
- package/components/Radio/types.js +0 -1
- package/components/SVGIcons/IconAdd.d.ts +2 -2
- package/components/SVGIcons/IconAdd.js +1 -29
- package/components/SVGIcons/IconAddCircle.d.ts +2 -2
- package/components/SVGIcons/IconAddCircle.js +1 -32
- package/components/SVGIcons/IconAddCircleFilled.d.ts +2 -2
- package/components/SVGIcons/IconAddCircleFilled.js +1 -32
- package/components/SVGIcons/IconAddFilled.d.ts +2 -2
- package/components/SVGIcons/IconAddFilled.js +1 -29
- package/components/SVGIcons/IconAirplaneTakeOff.d.ts +4 -0
- package/components/SVGIcons/IconAirplaneTakeOff.js +1 -0
- package/components/SVGIcons/IconAirplaneTakeOffFilled.d.ts +4 -0
- package/components/SVGIcons/IconAirplaneTakeOffFilled.js +1 -0
- package/components/SVGIcons/IconAlert.d.ts +2 -2
- package/components/SVGIcons/IconAlert.js +1 -32
- package/components/SVGIcons/IconAlertBadge.d.ts +2 -2
- package/components/SVGIcons/IconAlertBadge.js +1 -32
- package/components/SVGIcons/IconAlertBadgeFilled.d.ts +2 -2
- package/components/SVGIcons/IconAlertBadgeFilled.js +1 -32
- package/components/SVGIcons/IconAlertFilled.d.ts +2 -2
- package/components/SVGIcons/IconAlertFilled.js +1 -32
- package/components/SVGIcons/IconAm.d.ts +2 -2
- package/components/SVGIcons/IconAm.js +7 -58
- package/components/SVGIcons/IconAmd.d.ts +2 -2
- package/components/SVGIcons/IconAmd.js +1 -29
- package/components/SVGIcons/IconAmdFilled.d.ts +2 -2
- package/components/SVGIcons/IconAmdFilled.js +1 -29
- package/components/SVGIcons/IconApple.d.ts +2 -2
- package/components/SVGIcons/IconApple.js +1 -32
- package/components/SVGIcons/IconArrowDown.d.ts +2 -2
- package/components/SVGIcons/IconArrowDown.js +1 -32
- package/components/SVGIcons/IconArrowDownFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowDownFilled.js +1 -32
- package/components/SVGIcons/IconArrowDownLeft.d.ts +2 -2
- package/components/SVGIcons/IconArrowDownLeft.js +1 -32
- package/components/SVGIcons/IconArrowDownLeftFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowDownLeftFilled.js +1 -32
- package/components/SVGIcons/IconArrowDownload.d.ts +2 -2
- package/components/SVGIcons/IconArrowDownload.js +1 -32
- package/components/SVGIcons/IconArrowDownloadFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowDownloadFilled.js +1 -32
- package/components/SVGIcons/IconArrowEnter.d.ts +2 -2
- package/components/SVGIcons/IconArrowEnter.js +1 -29
- package/components/SVGIcons/IconArrowEnterFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowEnterFilled.js +1 -29
- package/components/SVGIcons/IconArrowExit.d.ts +2 -2
- package/components/SVGIcons/IconArrowExit.js +1 -29
- package/components/SVGIcons/IconArrowExitFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowExitFilled.js +1 -29
- package/components/SVGIcons/IconArrowExportLeftToRight.d.ts +2 -2
- package/components/SVGIcons/IconArrowExportLeftToRight.js +1 -32
- package/components/SVGIcons/IconArrowExportLeftToRightFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowExportLeftToRightFilled.js +1 -32
- package/components/SVGIcons/IconArrowExportRightToLeft.d.ts +2 -2
- package/components/SVGIcons/IconArrowExportRightToLeft.js +1 -32
- package/components/SVGIcons/IconArrowExportRightToLeftFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowExportRightToLeftFilled.js +1 -32
- package/components/SVGIcons/IconArrowExportUp.d.ts +2 -2
- package/components/SVGIcons/IconArrowExportUp.js +1 -32
- package/components/SVGIcons/IconArrowExportUpFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowExportUpFilled.js +1 -32
- package/components/SVGIcons/IconArrowImport.d.ts +2 -2
- package/components/SVGIcons/IconArrowImport.js +1 -32
- package/components/SVGIcons/IconArrowImportFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowImportFilled.js +1 -32
- package/components/SVGIcons/IconArrowLeft.d.ts +2 -2
- package/components/SVGIcons/IconArrowLeft.js +1 -32
- package/components/SVGIcons/IconArrowLeftFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowLeftFilled.js +1 -32
- package/components/SVGIcons/IconArrowRepeatAll.d.ts +2 -2
- package/components/SVGIcons/IconArrowRepeatAll.js +1 -32
- package/components/SVGIcons/IconArrowRepeatAllFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowRepeatAllFilled.js +1 -32
- package/components/SVGIcons/IconArrowReset.d.ts +2 -2
- package/components/SVGIcons/IconArrowReset.js +1 -32
- package/components/SVGIcons/IconArrowResetFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowResetFilled.js +1 -32
- package/components/SVGIcons/IconArrowRight.d.ts +2 -2
- package/components/SVGIcons/IconArrowRight.js +1 -32
- package/components/SVGIcons/IconArrowRightFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowRightFilled.js +1 -32
- package/components/SVGIcons/IconArrowSort.d.ts +2 -2
- package/components/SVGIcons/IconArrowSort.js +1 -29
- package/components/SVGIcons/IconArrowSortFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowSortFilled.js +1 -29
- package/components/SVGIcons/IconArrowSync.d.ts +2 -2
- package/components/SVGIcons/IconArrowSync.js +1 -29
- package/components/SVGIcons/IconArrowSyncFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowSyncFilled.js +1 -29
- package/components/SVGIcons/IconArrowUp.d.ts +2 -2
- package/components/SVGIcons/IconArrowUp.js +1 -32
- package/components/SVGIcons/IconArrowUpFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowUpFilled.js +1 -32
- package/components/SVGIcons/IconArrowUpLeft.d.ts +2 -2
- package/components/SVGIcons/IconArrowUpLeft.js +1 -32
- package/components/SVGIcons/IconArrowUpLeftFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowUpLeftFilled.js +1 -32
- package/components/SVGIcons/IconArrowUpRight.d.ts +2 -2
- package/components/SVGIcons/IconArrowUpRight.js +1 -32
- package/components/SVGIcons/IconArrowUpRightFilled.d.ts +2 -2
- package/components/SVGIcons/IconArrowUpRightFilled.js +1 -32
- package/components/SVGIcons/IconAttach.d.ts +2 -2
- package/components/SVGIcons/IconAttach.js +1 -32
- package/components/SVGIcons/IconAttachFilled.d.ts +2 -2
- package/components/SVGIcons/IconAttachFilled.js +1 -32
- package/components/SVGIcons/IconBeach.d.ts +2 -2
- package/components/SVGIcons/IconBeach.js +1 -29
- package/components/SVGIcons/IconBeachFilled.d.ts +2 -2
- package/components/SVGIcons/IconBeachFilled.js +1 -29
- package/components/SVGIcons/IconBook.d.ts +2 -2
- package/components/SVGIcons/IconBook.js +1 -32
- package/components/SVGIcons/IconBookFilled.d.ts +2 -2
- package/components/SVGIcons/IconBookFilled.js +1 -32
- package/components/SVGIcons/IconBookmark.d.ts +2 -2
- package/components/SVGIcons/IconBookmark.js +1 -32
- package/components/SVGIcons/IconBookmarkFilled.d.ts +2 -2
- package/components/SVGIcons/IconBookmarkFilled.js +1 -32
- package/components/SVGIcons/IconBriefcase.d.ts +2 -2
- package/components/SVGIcons/IconBriefcase.js +1 -32
- package/components/SVGIcons/IconBriefcaseFilled.d.ts +2 -2
- package/components/SVGIcons/IconBriefcaseFilled.js +1 -32
- package/components/SVGIcons/IconBudgetTransfer.d.ts +4 -0
- package/components/SVGIcons/IconBudgetTransfer.js +7 -0
- package/components/SVGIcons/IconBuilding.d.ts +2 -2
- package/components/SVGIcons/IconBuilding.js +7 -55
- package/components/SVGIcons/IconBuildingBank.d.ts +2 -2
- package/components/SVGIcons/IconBuildingBank.js +1 -29
- package/components/SVGIcons/IconBuildingBankFilled.d.ts +2 -2
- package/components/SVGIcons/IconBuildingBankFilled.js +1 -29
- package/components/SVGIcons/IconBuildingFilled.d.ts +2 -2
- package/components/SVGIcons/IconBuildingFilled.js +1 -32
- package/components/SVGIcons/IconBulletListAdd.d.ts +2 -2
- package/components/SVGIcons/IconBulletListAdd.js +1 -32
- package/components/SVGIcons/IconBulletListAddFilled.d.ts +2 -2
- package/components/SVGIcons/IconBulletListAddFilled.js +1 -32
- package/components/SVGIcons/IconCalculator.d.ts +2 -2
- package/components/SVGIcons/IconCalculator.js +1 -32
- package/components/SVGIcons/IconCalculatorFilled.d.ts +2 -2
- package/components/SVGIcons/IconCalculatorFilled.js +1 -32
- package/components/SVGIcons/IconCalendarClock.d.ts +2 -2
- package/components/SVGIcons/IconCalendarClock.js +1 -29
- package/components/SVGIcons/IconCalendarClockFilled.d.ts +2 -2
- package/components/SVGIcons/IconCalendarClockFilled.js +1 -29
- package/components/SVGIcons/IconCalendarDay.d.ts +2 -2
- package/components/SVGIcons/IconCalendarDay.js +1 -32
- package/components/SVGIcons/IconCalendarDayFilled.d.ts +2 -2
- package/components/SVGIcons/IconCalendarDayFilled.js +1 -32
- package/components/SVGIcons/IconCalendarEmpty.d.ts +2 -2
- package/components/SVGIcons/IconCalendarEmpty.js +1 -29
- package/components/SVGIcons/IconCalendarLeft.d.ts +2 -2
- package/components/SVGIcons/IconCalendarLeft.js +1 -29
- package/components/SVGIcons/IconCalendarLeftFilled.d.ts +2 -2
- package/components/SVGIcons/IconCalendarLeftFilled.js +1 -29
- package/components/SVGIcons/IconCalendarRight.d.ts +2 -2
- package/components/SVGIcons/IconCalendarRight.js +1 -29
- package/components/SVGIcons/IconCalendarRightFilled.d.ts +2 -2
- package/components/SVGIcons/IconCalendarRightFilled.js +1 -29
- package/components/SVGIcons/IconCall.d.ts +2 -2
- package/components/SVGIcons/IconCall.js +1 -32
- package/components/SVGIcons/IconCallFilled.d.ts +2 -2
- package/components/SVGIcons/IconCallFilled.js +1 -32
- package/components/SVGIcons/IconCard.d.ts +2 -2
- package/components/SVGIcons/IconCard.js +1 -29
- package/components/SVGIcons/IconCardFilled.d.ts +2 -2
- package/components/SVGIcons/IconCardFilled.js +1 -29
- package/components/SVGIcons/IconCaretDown.d.ts +2 -2
- package/components/SVGIcons/IconCaretDown.js +1 -29
- package/components/SVGIcons/IconCaretDownFilled.d.ts +2 -2
- package/components/SVGIcons/IconCaretDownFilled.js +1 -29
- package/components/SVGIcons/IconCaretDownRight.d.ts +2 -2
- package/components/SVGIcons/IconCaretDownRight.js +1 -29
- package/components/SVGIcons/IconCaretDownRightFilled.d.ts +2 -2
- package/components/SVGIcons/IconCaretDownRightFilled.js +1 -29
- package/components/SVGIcons/IconCaretLeft.d.ts +2 -2
- package/components/SVGIcons/IconCaretLeft.js +1 -29
- package/components/SVGIcons/IconCaretLeftFilled.d.ts +2 -2
- package/components/SVGIcons/IconCaretLeftFilled.js +1 -29
- package/components/SVGIcons/IconCaretRight.d.ts +2 -2
- package/components/SVGIcons/IconCaretRight.js +1 -29
- package/components/SVGIcons/IconCaretRightFilled.d.ts +2 -2
- package/components/SVGIcons/IconCaretRightFilled.js +1 -29
- package/components/SVGIcons/IconCaretUp.d.ts +2 -2
- package/components/SVGIcons/IconCaretUp.js +1 -29
- package/components/SVGIcons/IconCaretUpFilled.d.ts +2 -2
- package/components/SVGIcons/IconCaretUpFilled.js +1 -29
- package/components/SVGIcons/IconChartPerson.d.ts +4 -0
- package/components/SVGIcons/IconChartPerson.js +1 -0
- package/components/SVGIcons/IconChartPersonFilled.d.ts +4 -0
- package/components/SVGIcons/IconChartPersonFilled.js +1 -0
- package/components/SVGIcons/IconChat.d.ts +2 -2
- package/components/SVGIcons/IconChat.js +1 -29
- package/components/SVGIcons/IconChatFilled.d.ts +2 -2
- package/components/SVGIcons/IconChatFilled.js +1 -29
- package/components/SVGIcons/IconChatMultiple.d.ts +2 -2
- package/components/SVGIcons/IconChatMultiple.js +1 -29
- package/components/SVGIcons/IconChatMultipleFilled.d.ts +2 -2
- package/components/SVGIcons/IconChatMultipleFilled.js +1 -29
- package/components/SVGIcons/IconCheckboxArrowRight.d.ts +2 -2
- package/components/SVGIcons/IconCheckboxArrowRight.js +1 -32
- package/components/SVGIcons/IconCheckboxArrowRightFilled.d.ts +2 -2
- package/components/SVGIcons/IconCheckboxArrowRightFilled.js +1 -32
- package/components/SVGIcons/IconCheckmark.d.ts +2 -2
- package/components/SVGIcons/IconCheckmark.js +1 -29
- package/components/SVGIcons/IconCheckmarkCircle.d.ts +2 -2
- package/components/SVGIcons/IconCheckmarkCircle.js +1 -29
- package/components/SVGIcons/IconCheckmarkCircleFilled.d.ts +2 -2
- package/components/SVGIcons/IconCheckmarkCircleFilled.js +1 -29
- package/components/SVGIcons/IconCheckmarkFilled.d.ts +2 -2
- package/components/SVGIcons/IconCheckmarkFilled.js +1 -29
- package/components/SVGIcons/IconChevronDoubleLeft.d.ts +4 -0
- package/components/SVGIcons/IconChevronDoubleLeft.js +1 -0
- package/components/SVGIcons/IconChevronDoubleRight.d.ts +4 -0
- package/components/SVGIcons/IconChevronDoubleRight.js +1 -0
- package/components/SVGIcons/IconChevronDown.d.ts +2 -2
- package/components/SVGIcons/IconChevronDown.js +1 -29
- package/components/SVGIcons/IconChevronDownFilled.d.ts +2 -2
- package/components/SVGIcons/IconChevronDownFilled.js +1 -29
- package/components/SVGIcons/IconChevronLeft.d.ts +2 -2
- package/components/SVGIcons/IconChevronLeft.js +1 -29
- package/components/SVGIcons/IconChevronLeftFilled.d.ts +2 -2
- package/components/SVGIcons/IconChevronLeftFilled.js +1 -29
- package/components/SVGIcons/IconChevronRight.d.ts +2 -2
- package/components/SVGIcons/IconChevronRight.js +1 -29
- package/components/SVGIcons/IconChevronRightFilled.d.ts +2 -2
- package/components/SVGIcons/IconChevronRightFilled.js +1 -29
- package/components/SVGIcons/IconChevronUp.d.ts +2 -2
- package/components/SVGIcons/IconChevronUp.js +1 -29
- package/components/SVGIcons/IconChevronUpDown.d.ts +2 -2
- package/components/SVGIcons/IconChevronUpDown.js +1 -32
- package/components/SVGIcons/IconChevronUpDownFilled.d.ts +2 -2
- package/components/SVGIcons/IconChevronUpDownFilled.js +1 -32
- package/components/SVGIcons/IconChevronUpFilled.d.ts +2 -2
- package/components/SVGIcons/IconChevronUpFilled.js +1 -29
- package/components/SVGIcons/IconClipboardDay.d.ts +2 -2
- package/components/SVGIcons/IconClipboardDay.js +1 -29
- package/components/SVGIcons/IconClock.d.ts +2 -2
- package/components/SVGIcons/IconClock.js +1 -32
- package/components/SVGIcons/IconClockDismiss.d.ts +2 -2
- package/components/SVGIcons/IconClockDismiss.js +1 -29
- package/components/SVGIcons/IconClockDismissFilled.d.ts +2 -2
- package/components/SVGIcons/IconClockDismissFilled.js +1 -29
- package/components/SVGIcons/IconClockFilled.d.ts +2 -2
- package/components/SVGIcons/IconClockFilled.js +1 -32
- package/components/SVGIcons/IconComment.d.ts +2 -2
- package/components/SVGIcons/IconComment.js +1 -32
- package/components/SVGIcons/IconCommentFilled.d.ts +2 -2
- package/components/SVGIcons/IconCommentFilled.js +1 -32
- package/components/SVGIcons/IconContractCard.d.ts +2 -2
- package/components/SVGIcons/IconContractCard.js +1 -29
- package/components/SVGIcons/IconContractCardFilled.d.ts +2 -2
- package/components/SVGIcons/IconContractCardFilled.js +1 -29
- package/components/SVGIcons/IconCopy.d.ts +2 -2
- package/components/SVGIcons/IconCopy.js +1 -29
- package/components/SVGIcons/IconCopyFilled.d.ts +2 -2
- package/components/SVGIcons/IconCopyFilled.js +1 -29
- package/components/SVGIcons/IconCubeTree.d.ts +2 -2
- package/components/SVGIcons/IconCubeTree.js +1 -29
- package/components/SVGIcons/IconCubeTreeFilled.d.ts +2 -2
- package/components/SVGIcons/IconCubeTreeFilled.js +1 -32
- package/components/SVGIcons/IconDatabase.d.ts +2 -2
- package/components/SVGIcons/IconDatabase.js +1 -32
- package/components/SVGIcons/IconDatabaseFilled.d.ts +2 -2
- package/components/SVGIcons/IconDatabaseFilled.js +1 -32
- package/components/SVGIcons/IconDelete.d.ts +2 -2
- package/components/SVGIcons/IconDelete.js +1 -29
- package/components/SVGIcons/IconDeleteFilled.d.ts +2 -2
- package/components/SVGIcons/IconDeleteFilled.js +1 -29
- package/components/SVGIcons/IconDeviceMeetingRoom.d.ts +2 -2
- package/components/SVGIcons/IconDeviceMeetingRoom.js +1 -29
- package/components/SVGIcons/IconDeviceMeetingRoomFilled.d.ts +2 -2
- package/components/SVGIcons/IconDeviceMeetingRoomFilled.js +1 -29
- package/components/SVGIcons/IconDismiss.d.ts +2 -2
- package/components/SVGIcons/IconDismiss.js +1 -29
- package/components/SVGIcons/IconDismissCircle.d.ts +2 -2
- package/components/SVGIcons/IconDismissCircle.js +1 -32
- package/components/SVGIcons/IconDismissCircleFilled.d.ts +2 -2
- package/components/SVGIcons/IconDismissCircleFilled.js +1 -32
- package/components/SVGIcons/IconDismissFilled.d.ts +2 -2
- package/components/SVGIcons/IconDismissFilled.js +1 -29
- package/components/SVGIcons/IconDocument.d.ts +2 -2
- package/components/SVGIcons/IconDocument.js +1 -29
- package/components/SVGIcons/IconDocumentBulletList.d.ts +2 -2
- package/components/SVGIcons/IconDocumentBulletList.js +1 -32
- package/components/SVGIcons/IconDocumentBulletListFilled.d.ts +2 -2
- package/components/SVGIcons/IconDocumentBulletListFilled.js +1 -32
- package/components/SVGIcons/IconDocumentEdit.d.ts +2 -2
- package/components/SVGIcons/IconDocumentEdit.js +1 -29
- package/components/SVGIcons/IconDocumentEditFilled.d.ts +2 -2
- package/components/SVGIcons/IconDocumentEditFilled.js +1 -29
- package/components/SVGIcons/IconDocumentFilled.d.ts +2 -2
- package/components/SVGIcons/IconDocumentFilled.js +1 -29
- package/components/SVGIcons/IconDocumentPerson.d.ts +2 -2
- package/components/SVGIcons/IconDocumentPerson.js +1 -29
- package/components/SVGIcons/IconEdit.d.ts +2 -2
- package/components/SVGIcons/IconEdit.js +1 -29
- package/components/SVGIcons/IconEditFilled.d.ts +2 -2
- package/components/SVGIcons/IconEditFilled.js +1 -29
- package/components/SVGIcons/IconErrorCircle.d.ts +2 -2
- package/components/SVGIcons/IconErrorCircle.js +1 -29
- package/components/SVGIcons/IconErrorCircleFilled.d.ts +2 -2
- package/components/SVGIcons/IconErrorCircleFilled.js +1 -29
- package/components/SVGIcons/IconEur.d.ts +2 -2
- package/components/SVGIcons/IconEur.js +1 -29
- package/components/SVGIcons/IconEurFilled.d.ts +2 -2
- package/components/SVGIcons/IconEurFilled.js +1 -29
- package/components/SVGIcons/IconExpandUpLeft.d.ts +2 -2
- package/components/SVGIcons/IconExpandUpLeft.js +1 -32
- package/components/SVGIcons/IconExpandUpLeftFilled.d.ts +2 -2
- package/components/SVGIcons/IconExpandUpLeftFilled.js +1 -32
- package/components/SVGIcons/IconExpandUpRight.d.ts +2 -2
- package/components/SVGIcons/IconExpandUpRight.js +1 -32
- package/components/SVGIcons/IconExpandUpRightFilled.d.ts +2 -2
- package/components/SVGIcons/IconExpandUpRightFilled.js +1 -32
- package/components/SVGIcons/IconEyeOff.d.ts +2 -2
- package/components/SVGIcons/IconEyeOff.js +1 -32
- package/components/SVGIcons/IconEyeOffFilled.d.ts +2 -2
- package/components/SVGIcons/IconEyeOffFilled.js +1 -32
- package/components/SVGIcons/IconEyeOn.d.ts +2 -2
- package/components/SVGIcons/IconEyeOn.js +1 -32
- package/components/SVGIcons/IconEyeOnFilled.d.ts +2 -2
- package/components/SVGIcons/IconEyeOnFilled.js +1 -32
- package/components/SVGIcons/IconFacebook.d.ts +2 -2
- package/components/SVGIcons/IconFacebook.js +3 -39
- package/components/SVGIcons/IconFastAcceleration.d.ts +4 -0
- package/components/SVGIcons/IconFastAcceleration.js +1 -0
- package/components/SVGIcons/IconFastAccelerationFilled.d.ts +4 -0
- package/components/SVGIcons/IconFastAccelerationFilled.js +1 -0
- package/components/SVGIcons/IconFeed.d.ts +4 -0
- package/components/SVGIcons/IconFeed.js +1 -0
- package/components/SVGIcons/IconFeedFilled.d.ts +4 -0
- package/components/SVGIcons/IconFeedFilled.js +1 -0
- package/components/SVGIcons/IconFilter.d.ts +2 -2
- package/components/SVGIcons/IconFilter.js +1 -29
- package/components/SVGIcons/IconFilterFilled.d.ts +2 -2
- package/components/SVGIcons/IconFilterFilled.js +1 -29
- package/components/SVGIcons/IconFlag.d.ts +2 -2
- package/components/SVGIcons/IconFlag.js +1 -32
- package/components/SVGIcons/IconFlagFilled.d.ts +2 -2
- package/components/SVGIcons/IconFlagFilled.js +1 -32
- package/components/SVGIcons/IconFolderLink.d.ts +2 -2
- package/components/SVGIcons/IconFolderLink.js +1 -29
- package/components/SVGIcons/IconFolderLinkFilled.d.ts +2 -2
- package/components/SVGIcons/IconFolderLinkFilled.js +1 -29
- package/components/SVGIcons/IconFood.d.ts +2 -2
- package/components/SVGIcons/IconFood.js +1 -29
- package/components/SVGIcons/IconFoodFilled.d.ts +2 -2
- package/components/SVGIcons/IconFoodFilled.js +1 -29
- package/components/SVGIcons/IconGb.d.ts +2 -2
- package/components/SVGIcons/IconGb.js +11 -72
- package/components/SVGIcons/IconGlobe.d.ts +2 -2
- package/components/SVGIcons/IconGlobe.js +1 -29
- package/components/SVGIcons/IconGlobeFilled.d.ts +2 -2
- package/components/SVGIcons/IconGlobeFilled.js +1 -29
- package/components/SVGIcons/IconGoogle.d.ts +2 -2
- package/components/SVGIcons/IconGoogle.js +3 -41
- package/components/SVGIcons/IconHandOpenHeart.d.ts +2 -2
- package/components/SVGIcons/IconHandOpenHeart.js +1 -32
- package/components/SVGIcons/IconHandOpenHeartFilled.d.ts +2 -2
- package/components/SVGIcons/IconHandOpenHeartFilled.js +1 -32
- package/components/SVGIcons/IconHeart.d.ts +2 -2
- package/components/SVGIcons/IconHeart.js +1 -32
- package/components/SVGIcons/IconHeartFilled.d.ts +2 -2
- package/components/SVGIcons/IconHeartFilled.js +1 -32
- package/components/SVGIcons/IconHistory.d.ts +2 -2
- package/components/SVGIcons/IconHistory.js +1 -32
- package/components/SVGIcons/IconHistoryFilled.d.ts +2 -2
- package/components/SVGIcons/IconHistoryFilled.js +1 -32
- package/components/SVGIcons/IconHome.d.ts +2 -2
- package/components/SVGIcons/IconHome.js +1 -32
- package/components/SVGIcons/IconHomeFilled.d.ts +2 -2
- package/components/SVGIcons/IconHomeFilled.js +1 -32
- package/components/SVGIcons/IconImage.d.ts +2 -2
- package/components/SVGIcons/IconImage.js +1 -32
- package/components/SVGIcons/IconImageFilled.d.ts +2 -2
- package/components/SVGIcons/IconImageFilled.js +1 -32
- package/components/SVGIcons/IconInfo.d.ts +2 -2
- package/components/SVGIcons/IconInfo.js +1 -29
- package/components/SVGIcons/IconInfoFilled.d.ts +2 -2
- package/components/SVGIcons/IconInfoFilled.js +1 -29
- package/components/SVGIcons/IconInstagram.d.ts +2 -2
- package/components/SVGIcons/IconInstagram.js +4 -40
- package/components/SVGIcons/IconKeyReset.d.ts +2 -2
- package/components/SVGIcons/IconKeyReset.js +1 -32
- package/components/SVGIcons/IconKeyResetFilled.d.ts +2 -2
- package/components/SVGIcons/IconKeyResetFilled.js +1 -32
- package/components/SVGIcons/IconLibrary.d.ts +4 -0
- package/components/SVGIcons/IconLibrary.js +1 -0
- package/components/SVGIcons/IconLibraryFilled.d.ts +4 -0
- package/components/SVGIcons/IconLibraryFilled.js +1 -0
- package/components/SVGIcons/IconLink.d.ts +2 -2
- package/components/SVGIcons/IconLink.js +1 -32
- package/components/SVGIcons/IconLinkFilled.d.ts +2 -2
- package/components/SVGIcons/IconLinkFilled.js +1 -32
- package/components/SVGIcons/IconLinkedin.d.ts +2 -2
- package/components/SVGIcons/IconLinkedin.js +1 -32
- package/components/SVGIcons/IconList.d.ts +2 -2
- package/components/SVGIcons/IconList.js +1 -29
- package/components/SVGIcons/IconListFilled.d.ts +2 -2
- package/components/SVGIcons/IconListFilled.js +1 -32
- package/components/SVGIcons/IconLocation.d.ts +2 -2
- package/components/SVGIcons/IconLocation.js +1 -32
- package/components/SVGIcons/IconLocationFilled.d.ts +2 -2
- package/components/SVGIcons/IconLocationFilled.js +1 -32
- package/components/SVGIcons/IconLockClosed.d.ts +2 -2
- package/components/SVGIcons/IconLockClosed.js +1 -32
- package/components/SVGIcons/IconLockClosedFilled.d.ts +2 -2
- package/components/SVGIcons/IconLockClosedFilled.js +1 -32
- package/components/SVGIcons/IconLockOpen.d.ts +2 -2
- package/components/SVGIcons/IconLockOpen.js +1 -32
- package/components/SVGIcons/IconLockOpenFilled.d.ts +2 -2
- package/components/SVGIcons/IconLockOpenFilled.js +1 -32
- package/components/SVGIcons/IconMail.d.ts +2 -2
- package/components/SVGIcons/IconMail.js +1 -32
- package/components/SVGIcons/IconMailAdd.d.ts +2 -2
- package/components/SVGIcons/IconMailAdd.js +1 -32
- package/components/SVGIcons/IconMailAddFilled.d.ts +2 -2
- package/components/SVGIcons/IconMailAddFilled.js +1 -32
- package/components/SVGIcons/IconMailArrowForward.d.ts +2 -2
- package/components/SVGIcons/IconMailArrowForward.js +1 -32
- package/components/SVGIcons/IconMailArrowForwardFilled.d.ts +2 -2
- package/components/SVGIcons/IconMailArrowForwardFilled.js +1 -32
- package/components/SVGIcons/IconMailFilled.d.ts +2 -2
- package/components/SVGIcons/IconMailFilled.js +1 -32
- package/components/SVGIcons/IconMailLink.d.ts +2 -2
- package/components/SVGIcons/IconMailLink.js +1 -32
- package/components/SVGIcons/IconMailLinkFilled.d.ts +2 -2
- package/components/SVGIcons/IconMailLinkFilled.js +1 -32
- package/components/SVGIcons/IconMedium.d.ts +2 -2
- package/components/SVGIcons/IconMedium.js +1 -32
- package/components/SVGIcons/IconMoon.d.ts +4 -0
- package/components/SVGIcons/IconMoon.js +1 -0
- package/components/SVGIcons/IconMore.d.ts +2 -2
- package/components/SVGIcons/IconMore.js +1 -32
- package/components/SVGIcons/IconMoreFilled.d.ts +2 -2
- package/components/SVGIcons/IconMoreFilled.js +1 -32
- package/components/SVGIcons/IconMoreVertical.d.ts +2 -2
- package/components/SVGIcons/IconMoreVertical.js +1 -32
- package/components/SVGIcons/IconMoreVerticalFilled.d.ts +2 -2
- package/components/SVGIcons/IconMoreVerticalFilled.js +1 -32
- package/components/SVGIcons/IconNavigation.d.ts +2 -2
- package/components/SVGIcons/IconNavigation.js +1 -32
- package/components/SVGIcons/IconNavigationFilled.d.ts +2 -2
- package/components/SVGIcons/IconNavigationFilled.js +1 -32
- package/components/SVGIcons/IconNotebook.d.ts +2 -2
- package/components/SVGIcons/IconNotebook.js +1 -32
- package/components/SVGIcons/IconNotebookAdd.d.ts +2 -2
- package/components/SVGIcons/IconNotebookAdd.js +7 -48
- package/components/SVGIcons/IconNotebookAddFilled.d.ts +2 -2
- package/components/SVGIcons/IconNotebookAddFilled.js +6 -45
- package/components/SVGIcons/IconNotebookFilled.d.ts +2 -2
- package/components/SVGIcons/IconNotebookFilled.js +1 -32
- package/components/SVGIcons/IconOnlyEmployee.d.ts +2 -2
- package/components/SVGIcons/IconOnlyEmployee.js +1 -29
- package/components/SVGIcons/IconOpen.d.ts +2 -2
- package/components/SVGIcons/IconOpen.js +1 -32
- package/components/SVGIcons/IconOpenFilled.d.ts +2 -2
- package/components/SVGIcons/IconOpenFilled.js +1 -32
- package/components/SVGIcons/IconPatient.d.ts +2 -2
- package/components/SVGIcons/IconPatient.js +1 -29
- package/components/SVGIcons/IconPatientFilled.d.ts +2 -2
- package/components/SVGIcons/IconPatientFilled.js +1 -29
- package/components/SVGIcons/IconPeople.d.ts +2 -2
- package/components/SVGIcons/IconPeople.js +1 -29
- package/components/SVGIcons/IconPeopleAdd.d.ts +2 -2
- package/components/SVGIcons/IconPeopleAdd.js +1 -32
- package/components/SVGIcons/IconPeopleAddFilled.d.ts +2 -2
- package/components/SVGIcons/IconPeopleAddFilled.js +1 -32
- package/components/SVGIcons/IconPeopleFilled.d.ts +2 -2
- package/components/SVGIcons/IconPeopleFilled.js +1 -32
- package/components/SVGIcons/IconPeopleList.d.ts +4 -0
- package/components/SVGIcons/IconPeopleList.js +1 -0
- package/components/SVGIcons/IconPeopleListFilled.d.ts +4 -0
- package/components/SVGIcons/IconPeopleListFilled.js +1 -0
- package/components/SVGIcons/IconPeopleTeam.d.ts +4 -0
- package/components/SVGIcons/IconPeopleTeam.js +1 -0
- package/components/SVGIcons/IconPeopleTeamFilled.d.ts +4 -0
- package/components/SVGIcons/IconPeopleTeamFilled.js +1 -0
- package/components/SVGIcons/IconPercent.d.ts +2 -2
- package/components/SVGIcons/IconPercent.js +1 -34
- package/components/SVGIcons/IconPerson.d.ts +2 -2
- package/components/SVGIcons/IconPerson.js +1 -32
- package/components/SVGIcons/IconPersonAccount.d.ts +2 -2
- package/components/SVGIcons/IconPersonAccount.js +1 -29
- package/components/SVGIcons/IconPersonAccountFilled.d.ts +2 -2
- package/components/SVGIcons/IconPersonAccountFilled.js +1 -29
- package/components/SVGIcons/IconPersonAdd.d.ts +2 -2
- package/components/SVGIcons/IconPersonAdd.js +1 -32
- package/components/SVGIcons/IconPersonAddFilled.d.ts +2 -2
- package/components/SVGIcons/IconPersonAddFilled.js +1 -32
- package/components/SVGIcons/IconPersonArrowLeft.d.ts +2 -2
- package/components/SVGIcons/IconPersonArrowLeft.js +1 -29
- package/components/SVGIcons/IconPersonArrowLeftFilled.d.ts +2 -2
- package/components/SVGIcons/IconPersonArrowLeftFilled.js +1 -29
- package/components/SVGIcons/IconPersonArrowRight.d.ts +2 -2
- package/components/SVGIcons/IconPersonArrowRight.js +1 -29
- package/components/SVGIcons/IconPersonArrowRightFilled.d.ts +2 -2
- package/components/SVGIcons/IconPersonArrowRightFilled.js +1 -29
- package/components/SVGIcons/IconPersonBoard.d.ts +2 -2
- package/components/SVGIcons/IconPersonBoard.js +1 -29
- package/components/SVGIcons/IconPersonFilled.d.ts +2 -2
- package/components/SVGIcons/IconPersonFilled.js +1 -32
- package/components/SVGIcons/IconPersonMinus.d.ts +2 -2
- package/components/SVGIcons/IconPersonMinus.js +1 -29
- package/components/SVGIcons/IconPersonStar.d.ts +2 -2
- package/components/SVGIcons/IconPersonStar.js +1 -32
- package/components/SVGIcons/IconPersonStarFilled.d.ts +2 -2
- package/components/SVGIcons/IconPersonStarFilled.js +1 -32
- package/components/SVGIcons/IconPersonSubtract.d.ts +2 -2
- package/components/SVGIcons/IconPersonSubtract.js +1 -32
- package/components/SVGIcons/IconPersonSubtractFilled.d.ts +2 -2
- package/components/SVGIcons/IconPersonSubtractFilled.js +1 -32
- package/components/SVGIcons/IconPhone.d.ts +2 -2
- package/components/SVGIcons/IconPhone.js +1 -32
- package/components/SVGIcons/IconPhoneFilled.d.ts +2 -2
- package/components/SVGIcons/IconPhoneFilled.js +1 -32
- package/components/SVGIcons/IconPlugConnected.d.ts +2 -2
- package/components/SVGIcons/IconPlugConnected.js +1 -29
- package/components/SVGIcons/IconPos.d.ts +2 -2
- package/components/SVGIcons/IconPos.js +1 -34
- package/components/SVGIcons/IconPosFilled.d.ts +2 -2
- package/components/SVGIcons/IconPosFilled.js +1 -34
- package/components/SVGIcons/IconProhibited.d.ts +2 -2
- package/components/SVGIcons/IconProhibited.js +1 -32
- package/components/SVGIcons/IconProhibitedFilled.d.ts +2 -2
- package/components/SVGIcons/IconProhibitedFilled.js +1 -32
- package/components/SVGIcons/IconProjectProduct.d.ts +2 -2
- package/components/SVGIcons/IconProjectProduct.js +1 -29
- package/components/SVGIcons/IconQuestion.d.ts +2 -2
- package/components/SVGIcons/IconQuestion.js +1 -32
- package/components/SVGIcons/IconQuestionFilled.d.ts +2 -2
- package/components/SVGIcons/IconQuestionFilled.js +1 -32
- package/components/SVGIcons/IconRedo.d.ts +2 -2
- package/components/SVGIcons/IconRedo.js +1 -32
- package/components/SVGIcons/IconRedoFilled.d.ts +2 -2
- package/components/SVGIcons/IconRedoFilled.js +1 -32
- package/components/SVGIcons/IconRibbon.d.ts +4 -0
- package/components/SVGIcons/IconRibbon.js +1 -0
- package/components/SVGIcons/IconRu.d.ts +2 -2
- package/components/SVGIcons/IconRu.js +6 -61
- package/components/SVGIcons/IconRub.d.ts +2 -2
- package/components/SVGIcons/IconRub.js +1 -29
- package/components/SVGIcons/IconRubFilled.d.ts +2 -2
- package/components/SVGIcons/IconRubFilled.js +1 -29
- package/components/SVGIcons/IconSave.d.ts +2 -2
- package/components/SVGIcons/IconSave.js +1 -32
- package/components/SVGIcons/IconSaveFilled.d.ts +2 -2
- package/components/SVGIcons/IconSaveFilled.js +1 -32
- package/components/SVGIcons/IconSavings.d.ts +2 -2
- package/components/SVGIcons/IconSavings.js +1 -32
- package/components/SVGIcons/IconSavingsFilled.d.ts +2 -2
- package/components/SVGIcons/IconSavingsFilled.js +1 -32
- package/components/SVGIcons/IconSearch.d.ts +2 -2
- package/components/SVGIcons/IconSearch.js +1 -32
- package/components/SVGIcons/IconSearchFilled.d.ts +2 -2
- package/components/SVGIcons/IconSearchFilled.js +1 -32
- package/components/SVGIcons/IconSelectAllOff.d.ts +2 -2
- package/components/SVGIcons/IconSelectAllOff.js +1 -32
- package/components/SVGIcons/IconSelectAllOffFilled.d.ts +2 -2
- package/components/SVGIcons/IconSelectAllOffFilled.js +1 -32
- package/components/SVGIcons/IconSelectAllOn.d.ts +2 -2
- package/components/SVGIcons/IconSelectAllOn.js +1 -32
- package/components/SVGIcons/IconSelectAllOnFilled.d.ts +2 -2
- package/components/SVGIcons/IconSelectAllOnFilled.js +1 -32
- package/components/SVGIcons/IconSend.d.ts +2 -2
- package/components/SVGIcons/IconSend.js +1 -32
- package/components/SVGIcons/IconSendFilled.d.ts +2 -2
- package/components/SVGIcons/IconSendFilled.js +1 -32
- package/components/SVGIcons/IconSettings.d.ts +2 -2
- package/components/SVGIcons/IconSettings.js +1 -29
- package/components/SVGIcons/IconSettingsFilled.d.ts +2 -2
- package/components/SVGIcons/IconSettingsFilled.js +1 -32
- package/components/SVGIcons/IconShare.d.ts +2 -2
- package/components/SVGIcons/IconShare.js +1 -32
- package/components/SVGIcons/IconShareAndroid.d.ts +2 -2
- package/components/SVGIcons/IconShareAndroid.js +1 -32
- package/components/SVGIcons/IconShareAndroidFilled.d.ts +2 -2
- package/components/SVGIcons/IconShareAndroidFilled.js +1 -32
- package/components/SVGIcons/IconShareFilled.d.ts +2 -2
- package/components/SVGIcons/IconShareFilled.js +1 -32
- package/components/SVGIcons/IconSignOut.d.ts +2 -2
- package/components/SVGIcons/IconSignOut.js +1 -32
- package/components/SVGIcons/IconSignOutFilled.d.ts +2 -2
- package/components/SVGIcons/IconSignOutFilled.js +1 -32
- package/components/SVGIcons/IconSpinner.d.ts +2 -2
- package/components/SVGIcons/IconSpinner.js +1 -32
- package/components/SVGIcons/IconSpinnerFilled.d.ts +2 -2
- package/components/SVGIcons/IconSpinnerFilled.js +1 -32
- package/components/SVGIcons/IconStatus.d.ts +2 -2
- package/components/SVGIcons/IconStatus.js +1 -32
- package/components/SVGIcons/IconStatusFilled.d.ts +2 -2
- package/components/SVGIcons/IconStatusFilled.js +1 -32
- package/components/SVGIcons/IconSubtract.d.ts +2 -2
- package/components/SVGIcons/IconSubtract.js +1 -32
- package/components/SVGIcons/IconSubtractCircle.d.ts +2 -2
- package/components/SVGIcons/IconSubtractCircle.js +1 -32
- package/components/SVGIcons/IconSubtractCircleFilled.d.ts +2 -2
- package/components/SVGIcons/IconSubtractCircleFilled.js +1 -32
- package/components/SVGIcons/IconSubtractFilled.d.ts +2 -2
- package/components/SVGIcons/IconSubtractFilled.js +1 -32
- package/components/SVGIcons/IconSun.d.ts +4 -0
- package/components/SVGIcons/IconSun.js +10 -0
- package/components/SVGIcons/IconTableCellEdit.d.ts +2 -2
- package/components/SVGIcons/IconTableCellEdit.js +3 -36
- package/components/SVGIcons/IconTableCellEditFilled.d.ts +2 -2
- package/components/SVGIcons/IconTableCellEditFilled.js +5 -42
- package/components/SVGIcons/IconTelegram.d.ts +2 -2
- package/components/SVGIcons/IconTelegram.js +3 -41
- package/components/SVGIcons/IconTimer.d.ts +2 -2
- package/components/SVGIcons/IconTimer.js +1 -32
- package/components/SVGIcons/IconTimerFilled.d.ts +2 -2
- package/components/SVGIcons/IconTimerFilled.js +1 -32
- package/components/SVGIcons/IconTrophy.d.ts +4 -0
- package/components/SVGIcons/IconTrophy.js +1 -0
- package/components/SVGIcons/IconTrophyFilled.d.ts +4 -0
- package/components/SVGIcons/IconTrophyFilled.js +1 -0
- package/components/SVGIcons/IconTwitter.d.ts +2 -2
- package/components/SVGIcons/IconTwitter.js +1 -32
- package/components/SVGIcons/IconUndo.d.ts +2 -2
- package/components/SVGIcons/IconUndo.js +1 -32
- package/components/SVGIcons/IconUndoFilled.d.ts +2 -2
- package/components/SVGIcons/IconUndoFilled.js +1 -32
- package/components/SVGIcons/IconUnitsEmployee.d.ts +2 -2
- package/components/SVGIcons/IconUnitsEmployee.js +1 -29
- package/components/SVGIcons/IconUpload.d.ts +2 -2
- package/components/SVGIcons/IconUpload.js +1 -29
- package/components/SVGIcons/IconUs.d.ts +4 -0
- package/components/SVGIcons/IconUs.js +11 -0
- package/components/SVGIcons/IconUsd.d.ts +2 -2
- package/components/SVGIcons/IconUsd.js +1 -29
- package/components/SVGIcons/IconUsdFilled.d.ts +2 -2
- package/components/SVGIcons/IconUsdFilled.js +1 -29
- package/components/SVGIcons/IconUserMinus.d.ts +2 -2
- package/components/SVGIcons/IconUserMinus.js +1 -32
- package/components/SVGIcons/IconVideo.d.ts +2 -2
- package/components/SVGIcons/IconVideo.js +1 -29
- package/components/SVGIcons/IconVideoFilled.d.ts +2 -2
- package/components/SVGIcons/IconVideoFilled.js +1 -29
- package/components/SVGIcons/IconWallet.d.ts +2 -2
- package/components/SVGIcons/IconWallet.js +1 -32
- package/components/SVGIcons/IconWalletFilled.d.ts +2 -2
- package/components/SVGIcons/IconWalletFilled.js +1 -32
- package/components/SVGIcons/IconWarning.d.ts +2 -2
- package/components/SVGIcons/IconWarning.js +1 -29
- package/components/SVGIcons/IconWarningFilled.d.ts +2 -2
- package/components/SVGIcons/IconWarningFilled.js +1 -29
- package/components/SVGIcons/IconYoutube.d.ts +2 -2
- package/components/SVGIcons/IconYoutube.js +1 -32
- package/components/Select/ButtonSelect/ButtonSelect.js +3 -198
- package/components/Select/FilterSelect/FilterDropdown.js +3 -96
- package/components/Select/FilterSelect/FilterGroupDropdown.js +4 -83
- package/components/Select/FilterSelect/FilterSelect.js +4 -202
- package/components/Select/MultiSelect/DesktopWrapper.js +1 -56
- package/components/Select/MultiSelect/MobileWrapper.js +2 -78
- package/components/Select/MultiSelect/MultiBase/MultiBase.js +5 -214
- package/components/Select/MultiSelect/MultiSelect.js +3 -246
- package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +7 -268
- package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +7 -253
- package/components/Select/MultiSelect/OptionsWrapper.js +1 -177
- package/components/Select/NestedSelect/NestedSelect.js +4 -200
- package/components/Select/ProfileDropdown/index.js +10 -83
- package/components/Select/Select/Select.js +1 -257
- package/components/Select/Select/SelectDesktop/index.js +2 -223
- package/components/Select/Select/SelectMobile/MobileTopContent.js +2 -91
- package/components/Select/Select/SelectMobile/index.js +5 -196
- package/components/Select/Select/helpers.js +1 -10
- package/components/Select/SharedComponents/Actions.js +3 -116
- package/components/Select/SharedComponents/ButtonSelectWrapper/Button/Button.js +3 -44
- package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +3 -132
- package/components/Select/SharedComponents/ContentTop.d.ts +1 -0
- package/components/Select/SharedComponents/ContentTop.js +3 -179
- package/components/Select/SharedComponents/Footer.js +6 -99
- package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +3 -164
- package/components/Select/SharedComponents/Loading.js +2 -17
- package/components/Select/SharedComponents/index.js +1 -92
- package/components/Select/constants.js +1 -9
- package/components/Select/helper.d.ts +0 -0
- package/components/Select/helper.js +0 -0
- package/components/Select/index.js +1 -114
- package/components/Select/localization.js +1 -31
- package/components/Select/types.d.ts +9 -5
- package/components/Select/types.js +0 -1
- package/components/SideSheet/Footer/Footer.js +5 -101
- package/components/SideSheet/SideSheet.js +8 -211
- package/components/SideSheet/index.js +1 -56
- package/components/SideSheet/types.js +0 -1
- package/components/Snackbar/Snackbar.js +5 -126
- package/components/Snackbar/consts.d.ts +3 -4
- package/components/Snackbar/consts.js +1 -15
- package/components/Snackbar/index.js +1 -54
- package/components/Snackbar/types.js +0 -1
- package/components/Status/Status.js +4 -53
- package/components/Status/index.js +1 -8
- package/components/Status/types.d.ts +1 -1
- package/components/Status/types.js +0 -1
- package/components/Stepper/Stepper.js +2 -45
- package/components/Stepper/index.js +1 -3
- package/components/Stepper/types.js +0 -1
- package/components/Switcher/Switcher.js +5 -116
- package/components/Switcher/index.js +1 -55
- package/components/Switcher/types.d.ts +2 -0
- package/components/Switcher/types.js +0 -1
- package/components/Tab/Tab.js +2 -37
- package/components/Tab/TabItem.js +3 -54
- package/components/Tab/index.js +1 -11
- package/components/Tab/types.js +0 -1
- package/components/Table/Header.d.ts +2 -1
- package/components/Table/Header.js +4 -123
- package/components/Table/IndeterminateCheckbox.d.ts +1 -0
- package/components/Table/IndeterminateCheckbox.js +1 -78
- package/components/Table/Row.d.ts +2 -1
- package/components/Table/Row.js +3 -94
- package/components/Table/Table.d.ts +1 -1
- package/components/Table/Table.js +6 -163
- package/components/Table/index.js +1 -61
- package/components/Table/localization.d.ts +5 -0
- package/components/Table/localization.js +1 -0
- package/components/Table/types.d.ts +6 -0
- package/components/Table/types.js +0 -1
- package/components/Table/utils.js +3 -78
- package/components/TableV2/AdvancedPagination.d.ts +8 -0
- package/components/TableV2/AdvancedPagination.js +12 -0
- package/components/TableV2/ColumnHeader.d.ts +9 -0
- package/components/TableV2/ColumnHeader.js +6 -0
- package/components/TableV2/ColumnSettings.d.ts +9 -0
- package/components/TableV2/ColumnSettings.js +8 -0
- package/components/TableV2/IndeterminateCheckbox.d.ts +13 -0
- package/components/TableV2/IndeterminateCheckbox.js +2 -0
- package/components/TableV2/Table.d.ts +3 -0
- package/components/TableV2/Table.js +8 -0
- package/components/TableV2/constants/index.d.ts +6 -0
- package/components/TableV2/constants/index.js +1 -0
- package/components/TableV2/hooks/useTableColumnSettings.d.ts +2 -0
- package/components/TableV2/hooks/useTableColumnSettings.js +1 -0
- package/components/TableV2/hooks/useTableControl.d.ts +11 -0
- package/components/TableV2/hooks/useTableControl.js +1 -0
- package/components/TableV2/index.d.ts +3 -0
- package/components/TableV2/index.js +1 -0
- package/components/TableV2/loadTableSettings.d.ts +2 -0
- package/components/TableV2/loadTableSettings.js +1 -0
- package/components/TableV2/types.d.ts +70 -0
- package/components/TableV2/types.js +0 -0
- package/components/Text/Text.js +2 -36
- package/components/Text/index.js +1 -5
- package/components/Text/types.d.ts +1 -1
- package/components/Text/types.js +0 -1
- package/components/Textarea/Textarea.js +6 -144
- package/components/Textarea/index.js +1 -56
- package/components/Textarea/types.js +0 -1
- package/components/Tooltip/Tooltip.js +1 -103
- package/components/Tooltip/index.js +1 -18
- package/components/Tooltip/types.d.ts +0 -1
- package/components/Tooltip/types.js +1 -13
- package/components/UnderConstruction/UnderConstruction.d.ts +3 -0
- package/components/UnderConstruction/UnderConstruction.js +6 -0
- package/components/UnderConstruction/index.d.ts +1 -0
- package/components/UnderConstruction/index.js +1 -0
- package/components/UnderConstruction/localization.d.ts +4 -0
- package/components/UnderConstruction/localization.js +1 -0
- package/components/UnderConstruction/types.d.ts +12 -0
- package/components/UnderConstruction/types.js +0 -0
- package/consts/index.d.ts +18 -0
- package/consts/index.js +1 -67
- package/context/FormContextProvider.d.ts +3 -2
- package/context/FormContextProvider.js +1 -12
- package/context/index.js +1 -5
- package/context/types.js +1 -12
- package/helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js +2 -15
- package/helperComponents/AnimatePresenceWrapper/index.js +1 -3
- package/helperComponents/CodeBlock/CodeBlock.js +2 -178
- package/helperComponents/CodeBlock/index.js +1 -3
- package/helperComponents/ErrorMessage/ErrorMessage.js +3 -27
- package/helperComponents/ErrorMessage/consts.d.ts +3 -0
- package/helperComponents/ErrorMessage/consts.js +1 -0
- package/helperComponents/ErrorMessage/index.js +1 -8
- package/helperComponents/ErrorMessage/types.js +0 -1
- package/helperComponents/GoToWebPage/GoToWebPage.js +1 -67
- package/helperComponents/IconDynamicComponent/IconDynamicComponent.d.ts +6 -8
- package/helperComponents/IconDynamicComponent/IconDynamicComponent.js +1 -26
- package/helperComponents/IconDynamicComponent/index.js +1 -3
- package/helperComponents/Label/Label.js +1 -29
- package/helperComponents/Label/index.js +1 -6
- package/helperComponents/Label/types.js +0 -1
- package/helperComponents/Loader/Loader.js +2 -15
- package/helperComponents/Loader/index.js +1 -2
- package/helperComponents/Loader/types.js +0 -1
- package/helperComponents/OptionItem/OptionItem.js +5 -150
- package/helperComponents/OptionItem/index.js +1 -64
- package/helperComponents/OptionItem/types.js +0 -1
- package/helpers/check-authorization.js +1 -114
- package/helpers/download-file.js +1 -10
- package/helpers/format-date.js +1 -46
- package/helpers/get-module-prefix.js +1 -6
- package/helpers/index.d.ts +1 -0
- package/helpers/index.js +1 -59
- package/helpers/isDeepEqual.js +1 -18
- package/helpers/locale.js +1 -17
- package/helpers/logout.d.ts +1 -0
- package/helpers/logout.js +1 -0
- package/helpers/storage.js +1 -20
- package/hooks/index.js +1 -21
- package/hooks/useAnimation.d.ts +12 -0
- package/hooks/useAnimation.js +1 -0
- package/hooks/useChangePositionsOnScroll.js +1 -34
- package/hooks/useDispatchEventOnScroll.js +1 -14
- package/hooks/useEscapeKey.d.ts +5 -0
- package/hooks/useEscapeKey.js +1 -0
- package/hooks/useFieldArray.js +1 -1
- package/hooks/useFormContext.js +1 -10
- package/hooks/useFormProps.js +1 -10
- package/hooks/useGetElemPositions.js +1 -19
- package/hooks/useGetElemSizes.js +1 -16
- package/hooks/useGetHasBottomSpace.js +1 -26
- package/hooks/useGetIsMobile.js +1 -49
- package/hooks/useGetTooltipPosition.js +1 -85
- package/hooks/useGetTooltipStyles.js +1 -89
- package/hooks/useHideBodyScroll.js +1 -35
- package/hooks/useHideOnScroll.d.ts +1 -1
- package/hooks/useHideOnScroll.js +1 -26
- package/hooks/useOnOutsideClick.js +1 -52
- package/hooks/useScreenSize.js +1 -38
- package/package.json +16 -8
- package/type/file-upload.js +1 -8
- package/type/index.d.ts +1 -0
- package/type/index.js +1 -4
- package/type/locale.js +1 -14
- package/type/notification.js +1 -9
- package/type/status-code.js +1 -9
- package/type/svg-icons.js +0 -0
- package/utils/helpers.d.ts +1 -0
- package/utils/helpers.js +1 -89
- package/Alert-V_kH4Snn.js +0 -751
- package/assets/images/avatar.jpg +0 -0
- package/assets/styles/styles.scss +0 -1
- package/components/SVGIcons/index.d.ts +0 -300
- package/components/SVGIcons/index.js +0 -303
- package/components/SVGIcons/types.js +0 -1
- package/helperComponents/IconDynamicComponent/constants.d.ts +0 -3
- package/helperComponents/IconDynamicComponent/constants.js +0 -33
- package/helperComponents/index.d.ts +0 -6
- package/helperComponents/index.js +0 -65
- package/index.d.ts +0 -46
- package/index.js +0 -454
- package/types.d.js +0 -1
- /package/{components/SVGIcons/types.d.ts → type/svg-icons.d.ts} +0 -0
package/Alert-V_kH4Snn.js
DELETED
|
@@ -1,751 +0,0 @@
|
|
|
1
|
-
import _extends from '@babel/runtime/helpers/extends';
|
|
2
|
-
import React, { useMemo, forwardRef, useState, useCallback, useId, useEffect, useRef } from 'react';
|
|
3
|
-
import { TYPE_MAPPING, ICONS_MAPPING } from './components/Alert/consts.js';
|
|
4
|
-
import classNames from 'classnames';
|
|
5
|
-
import { Text } from './components/Text/Text.js';
|
|
6
|
-
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
7
|
-
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
8
|
-
import 'dayjs';
|
|
9
|
-
import { Loader } from './helperComponents/Loader/Loader.js';
|
|
10
|
-
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
11
|
-
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
12
|
-
import { FILE_ACCEPT_TYPE } from './consts/index.js';
|
|
13
|
-
import './hooks/useScreenSize.js';
|
|
14
|
-
import 'react-hook-form';
|
|
15
|
-
import { ErrorCode, useDropzone } from 'react-dropzone';
|
|
16
|
-
import { IconUpload } from './components/SVGIcons/IconUpload.js';
|
|
17
|
-
import { FileTypeEnum } from './type/file-upload.js';
|
|
18
|
-
import { FileUploadMode } from './components/FileUpload/types.js';
|
|
19
|
-
import './helpers/format-date.js';
|
|
20
|
-
import { getTranslationLocale } from './helpers/locale.js';
|
|
21
|
-
import 'react-toastify';
|
|
22
|
-
import { useIsMobile } from './hooks/useGetIsMobile.js';
|
|
23
|
-
import { motion } from 'framer-motion';
|
|
24
|
-
import { AnimatePresenceWrapper } from './helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
25
|
-
import { useOnOutsideClick } from './hooks/useOnOutsideClick.js';
|
|
26
|
-
import { useHideBodyScroll } from './hooks/useHideBodyScroll.js';
|
|
27
|
-
import { IconDismiss } from './components/SVGIcons/IconDismiss.js';
|
|
28
|
-
import { Positions } from './components/Tooltip/types.js';
|
|
29
|
-
import { Tooltip } from './components/Tooltip/Tooltip.js';
|
|
30
|
-
import { uniqueFiles, noop } from './utils/helpers.js';
|
|
31
|
-
import 'react-syntax-highlighter';
|
|
32
|
-
import { Link } from './components/Link/Link.js';
|
|
33
|
-
import { PopoverDesktop } from './components/Popover/PopoverDesktop.js';
|
|
34
|
-
import { IconInfo } from './components/SVGIcons/IconInfo.js';
|
|
35
|
-
import { IconDynamicComponent } from './helperComponents/IconDynamicComponent/IconDynamicComponent.js';
|
|
36
|
-
import '@babel/runtime/helpers/typeof';
|
|
37
|
-
import { IconDismissFilled } from './components/SVGIcons/IconDismissFilled.js';
|
|
38
|
-
import { IconDelete } from './components/SVGIcons/IconDelete.js';
|
|
39
|
-
import { FilePreview } from './components/FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
40
|
-
import { IconArrowDownloadFilled } from './components/SVGIcons/IconArrowDownloadFilled.js';
|
|
41
|
-
import { downloadFile } from './helpers/download-file.js';
|
|
42
|
-
import { LITE_LOADER_TYPES, ICON_TYPE_MAPPING, ICON_SIZE_MAPPING } from './components/Button/consts.js';
|
|
43
|
-
|
|
44
|
-
var shortenFileName = function shortenFileName(fileName, maxLength) {
|
|
45
|
-
// Regular expression to split the name into three parts: start, middle, and extension
|
|
46
|
-
var regex = /^(.{10}).*?(.{10}\.[^.]*)$/;
|
|
47
|
-
|
|
48
|
-
// If the file name length exceeds maxLength, shorten it
|
|
49
|
-
if (fileName.length > maxLength) {
|
|
50
|
-
return fileName.replace(regex, '$1...$2');
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// If it's short enough, return as is
|
|
54
|
-
return fileName;
|
|
55
|
-
};
|
|
56
|
-
var formatFileSize = function formatFileSize(sizeInBytes) {
|
|
57
|
-
var fractionDigits = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
58
|
-
if (sizeInBytes < 1024) {
|
|
59
|
-
return "".concat(sizeInBytes, " B"); // Bytes
|
|
60
|
-
} else if (sizeInBytes < 1024 * 1024) {
|
|
61
|
-
return "".concat((sizeInBytes / 1024).toFixed(fractionDigits), " KB"); // Kilobytes
|
|
62
|
-
} else if (sizeInBytes < 1024 * 1024 * 1024) {
|
|
63
|
-
return "".concat((sizeInBytes / (1024 * 1024)).toFixed(fractionDigits), " MB"); // Megabytes
|
|
64
|
-
} else {
|
|
65
|
-
return "".concat((sizeInBytes / (1024 * 1024 * 1024)).toFixed(fractionDigits), " GB"); // Gigabytes
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
var generateAreaContent = function generateAreaContent(_ref) {
|
|
69
|
-
var allowedTypes = _ref.allowedTypes,
|
|
70
|
-
maxSize = _ref.maxSize,
|
|
71
|
-
locale = _ref.locale;
|
|
72
|
-
var acceptTypes = allowedTypes.map(function (type) {
|
|
73
|
-
return FILE_ACCEPT_TYPE[type];
|
|
74
|
-
}).flat();
|
|
75
|
-
var translation = getDropzoneLocale(locale);
|
|
76
|
-
var acceptTypesMessage = allowedTypes.length === 1 ? allowedTypes[0] : allowedTypes.reduce(function (acc, currentValue, _index, _arr) {
|
|
77
|
-
if (_index === _arr.length - 1) {
|
|
78
|
-
return "".concat(acc, " ").concat(translation.or, " ").concat(currentValue);
|
|
79
|
-
}
|
|
80
|
-
return acc ? "".concat(acc, ", ").concat(currentValue) : currentValue;
|
|
81
|
-
}, '');
|
|
82
|
-
return {
|
|
83
|
-
acceptTypes: acceptTypes,
|
|
84
|
-
maxSizeFormatted: formatFileSize(maxSize),
|
|
85
|
-
acceptTypesMessage: acceptTypesMessage
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
var getDropzoneLocale = function getDropzoneLocale(lang) {
|
|
89
|
-
var locale = lang || getTranslationLocale();
|
|
90
|
-
var translation = {
|
|
91
|
-
en: {
|
|
92
|
-
title: 'Choose a file or drop it here',
|
|
93
|
-
format: 'format',
|
|
94
|
-
formats: 'formats',
|
|
95
|
-
maxSize: 'Maximum size up to $1.',
|
|
96
|
-
fileInvalidType: 'The file type should be $1',
|
|
97
|
-
fileTooLarge: 'The file is too large (Max $1)',
|
|
98
|
-
tooManyFiles: 'Too many files. Please select one file.',
|
|
99
|
-
or: 'or'
|
|
100
|
-
},
|
|
101
|
-
ru: {
|
|
102
|
-
title: 'Выберите файл или перетащите его сюда',
|
|
103
|
-
format: 'формат',
|
|
104
|
-
formats: 'форматы',
|
|
105
|
-
maxSize: 'Максимальный размер до $1',
|
|
106
|
-
fileInvalidType: 'Тип файла должен быть $1',
|
|
107
|
-
fileTooLarge: 'Файл слишком большой (Максимум $1)',
|
|
108
|
-
tooManyFiles: 'Слишком много файлов. Пожалуйста, выберите один файл.',
|
|
109
|
-
or: 'или'
|
|
110
|
-
},
|
|
111
|
-
hy: {
|
|
112
|
-
title: 'Ընտրեք ֆայլ կամ քաշեք այն այստեղ',
|
|
113
|
-
format: 'ֆորմատ',
|
|
114
|
-
formats: 'ֆորմատներ',
|
|
115
|
-
maxSize: 'Առավելագույն չափը՝ մինչև $1',
|
|
116
|
-
fileInvalidType: 'Ֆայլի տեսակը պետք է լինի $1',
|
|
117
|
-
fileTooLarge: 'Ֆայլը չափազանց մեծ է (Առավելագույնը $1)',
|
|
118
|
-
tooManyFiles: 'Չափազանց շատ ֆայլեր։ Խնդրում ենք ընտրել միայն մեկ ֆայլ։',
|
|
119
|
-
or: 'կամ'
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
return translation[locale] || translation.en;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
var ErrorItem = function ErrorItem(_ref) {
|
|
126
|
-
var code = _ref.code,
|
|
127
|
-
onRemove = _ref.onRemove,
|
|
128
|
-
areaContent = _ref.areaContent,
|
|
129
|
-
locale = _ref.locale;
|
|
130
|
-
var errorMessage = useMemo(function () {
|
|
131
|
-
var translation = getDropzoneLocale(locale);
|
|
132
|
-
if (code === ErrorCode.FileInvalidType) {
|
|
133
|
-
return translation.fileInvalidType.replace('$1', areaContent.acceptTypesMessage);
|
|
134
|
-
} else if (code === ErrorCode.FileTooLarge) {
|
|
135
|
-
return translation.fileTooLarge.replace('$1', areaContent.maxSizeFormatted);
|
|
136
|
-
} else if (code === ErrorCode.TooManyFiles) {
|
|
137
|
-
return translation.tooManyFiles;
|
|
138
|
-
}
|
|
139
|
-
return '';
|
|
140
|
-
}, [code]);
|
|
141
|
-
return errorMessage ? /*#__PURE__*/React.createElement(Alert, {
|
|
142
|
-
type: "error",
|
|
143
|
-
text: errorMessage,
|
|
144
|
-
closeIcon: true,
|
|
145
|
-
onClose: onRemove
|
|
146
|
-
}) : null;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
var PreviewItem = function PreviewItem(_ref) {
|
|
150
|
-
var file = _ref.file,
|
|
151
|
-
onRemove = _ref.onRemove,
|
|
152
|
-
mode = _ref.mode;
|
|
153
|
-
var type = file.type.split('/')[0];
|
|
154
|
-
var preview = useMemo(function () {
|
|
155
|
-
return URL.createObjectURL(file);
|
|
156
|
-
}, [file.name]);
|
|
157
|
-
var handleItemClick = function handleItemClick() {
|
|
158
|
-
if (mode === FileUploadMode.view) {
|
|
159
|
-
window.open(preview, '_blank');
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
var onFileDownload = function onFileDownload(event) {
|
|
163
|
-
event.preventDefault();
|
|
164
|
-
event.stopPropagation();
|
|
165
|
-
downloadFile(preview, file.name);
|
|
166
|
-
};
|
|
167
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
168
|
-
className: classNames('dz-file-upload__files--item', {
|
|
169
|
-
'dz-file-upload__files--item--view': mode === FileUploadMode.view
|
|
170
|
-
}),
|
|
171
|
-
onClick: handleItemClick
|
|
172
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
173
|
-
className: 'dz-file-upload__files--item__preview'
|
|
174
|
-
}, /*#__PURE__*/React.createElement(FilePreview, {
|
|
175
|
-
preview: preview,
|
|
176
|
-
type: type
|
|
177
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
178
|
-
className: 'dz-file-upload__files--item__info'
|
|
179
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
180
|
-
className: "dz-file-upload__files--item__info-title"
|
|
181
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
182
|
-
weight: "semibold"
|
|
183
|
-
}, shortenFileName(file.name, 40)), mode === FileUploadMode.attach && /*#__PURE__*/React.createElement(Button, {
|
|
184
|
-
size: "small",
|
|
185
|
-
type: "tertiary",
|
|
186
|
-
onClick: onRemove,
|
|
187
|
-
iconProps: {
|
|
188
|
-
Component: IconDelete
|
|
189
|
-
}
|
|
190
|
-
}), mode === FileUploadMode.view && /*#__PURE__*/React.createElement(Button, {
|
|
191
|
-
size: "small",
|
|
192
|
-
type: "tertiary",
|
|
193
|
-
onClick: onFileDownload,
|
|
194
|
-
iconProps: {
|
|
195
|
-
Component: IconArrowDownloadFilled
|
|
196
|
-
}
|
|
197
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
198
|
-
className: "dz-file-upload__files--item__info-size"
|
|
199
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
200
|
-
size: "small"
|
|
201
|
-
}, formatFileSize(file.size)))));
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
var DropzoneFileUpload = /*#__PURE__*/forwardRef(function (_ref2, _ref) {
|
|
205
|
-
var _ref2$maxSize = _ref2.maxSize,
|
|
206
|
-
maxSize = _ref2$maxSize === void 0 ? 10 * 1024 * 1024 : _ref2$maxSize,
|
|
207
|
-
_ref2$allowedTypes = _ref2.allowedTypes,
|
|
208
|
-
allowedTypes = _ref2$allowedTypes === void 0 ? [FileTypeEnum.IMAGE, FileTypeEnum.PDF, FileTypeEnum.DOC] : _ref2$allowedTypes,
|
|
209
|
-
name = _ref2.name,
|
|
210
|
-
setFiles = _ref2.setFiles,
|
|
211
|
-
setFieldValue = _ref2.setFieldValue,
|
|
212
|
-
value = _ref2.value,
|
|
213
|
-
selectedFiles = _ref2.selectedFiles,
|
|
214
|
-
_ref2$maxFiles = _ref2.maxFiles,
|
|
215
|
-
maxFiles = _ref2$maxFiles === void 0 ? 1 : _ref2$maxFiles,
|
|
216
|
-
_ref2$mode = _ref2.mode,
|
|
217
|
-
mode = _ref2$mode === void 0 ? FileUploadMode.attach : _ref2$mode,
|
|
218
|
-
locale = _ref2.locale,
|
|
219
|
-
_ref2$multiple = _ref2.multiple,
|
|
220
|
-
multiple = _ref2$multiple === void 0 ? false : _ref2$multiple;
|
|
221
|
-
var initialFiles = value || selectedFiles || [];
|
|
222
|
-
var initialMaxFiles = initialFiles.length >= maxFiles ? 0 : maxFiles - initialFiles.length;
|
|
223
|
-
var _useState = useState([]),
|
|
224
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
225
|
-
errors = _useState2[0],
|
|
226
|
-
setErrors = _useState2[1];
|
|
227
|
-
var areaContent = generateAreaContent({
|
|
228
|
-
allowedTypes: allowedTypes,
|
|
229
|
-
maxSize: maxSize
|
|
230
|
-
});
|
|
231
|
-
var translation = getDropzoneLocale(locale);
|
|
232
|
-
var onDrop = function onDrop(fileAccepted, fileRejections) {
|
|
233
|
-
if (initialMaxFiles === 0 && !multiple) {
|
|
234
|
-
setErrors([{
|
|
235
|
-
code: ErrorCode.TooManyFiles,
|
|
236
|
-
message: ''
|
|
237
|
-
}]);
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
var newFiles = uniqueFiles([].concat(_toConsumableArray(initialFiles), _toConsumableArray(fileAccepted)));
|
|
241
|
-
var errors = fileRejections.map(function (fileRejection) {
|
|
242
|
-
return fileRejection.errors;
|
|
243
|
-
}).flat();
|
|
244
|
-
setFiles === null || setFiles === void 0 || setFiles(newFiles);
|
|
245
|
-
updateInForm(newFiles);
|
|
246
|
-
setErrors(errors);
|
|
247
|
-
};
|
|
248
|
-
var _useDropzone = useDropzone({
|
|
249
|
-
onDrop: onDrop,
|
|
250
|
-
accept: areaContent.acceptTypes,
|
|
251
|
-
maxSize: maxSize,
|
|
252
|
-
maxFiles: multiple ? 0 : initialMaxFiles,
|
|
253
|
-
multiple: multiple
|
|
254
|
-
}),
|
|
255
|
-
getRootProps = _useDropzone.getRootProps,
|
|
256
|
-
getInputProps = _useDropzone.getInputProps,
|
|
257
|
-
isFocused = _useDropzone.isFocused,
|
|
258
|
-
isDragActive = _useDropzone.isDragActive;
|
|
259
|
-
var removeFile = function removeFile(fileName) {
|
|
260
|
-
var newFiles = initialFiles.filter(function (file) {
|
|
261
|
-
return file.name !== fileName;
|
|
262
|
-
});
|
|
263
|
-
if (newFiles.length === 0) {
|
|
264
|
-
setErrors([]);
|
|
265
|
-
}
|
|
266
|
-
setFiles === null || setFiles === void 0 || setFiles(newFiles);
|
|
267
|
-
updateInForm(newFiles);
|
|
268
|
-
};
|
|
269
|
-
var removeError = function removeError(index) {
|
|
270
|
-
setErrors(function (prevErrors) {
|
|
271
|
-
return prevErrors.filter(function (_error, i) {
|
|
272
|
-
return i !== index;
|
|
273
|
-
});
|
|
274
|
-
});
|
|
275
|
-
};
|
|
276
|
-
var updateInForm = useCallback(function (values) {
|
|
277
|
-
if (name && setFieldValue) {
|
|
278
|
-
setFieldValue(name, values);
|
|
279
|
-
}
|
|
280
|
-
}, [name, setFieldValue]);
|
|
281
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
282
|
-
className: "dz-file-upload"
|
|
283
|
-
}, mode !== FileUploadMode.view ? /*#__PURE__*/React.createElement("div", _extends({}, getRootProps(), {
|
|
284
|
-
className: classNames('dz-file-upload__area', {
|
|
285
|
-
'dz-file-upload__area--focused': isFocused,
|
|
286
|
-
'dz-file-upload__area--active': isDragActive
|
|
287
|
-
})
|
|
288
|
-
}), /*#__PURE__*/React.createElement(IconUpload, {
|
|
289
|
-
className: "mb-20",
|
|
290
|
-
size: "xlarge"
|
|
291
|
-
}), /*#__PURE__*/React.createElement("input", _extends({}, getInputProps(), {
|
|
292
|
-
name: name
|
|
293
|
-
})), /*#__PURE__*/React.createElement(Text, {
|
|
294
|
-
type: "primary",
|
|
295
|
-
weight: "semibold",
|
|
296
|
-
className: "mb-6"
|
|
297
|
-
}, translation.title), /*#__PURE__*/React.createElement(Text, {
|
|
298
|
-
size: "small"
|
|
299
|
-
}, "".concat(areaContent.acceptTypesMessage, " ").concat((allowedTypes === null || allowedTypes === void 0 ? void 0 : allowedTypes.length) === 1 ? translation.format : translation.formats, ", ").concat(translation.maxSize.replace('$1', areaContent.maxSizeFormatted)))) : null, /*#__PURE__*/React.createElement("div", {
|
|
300
|
-
className: "dz-file-upload__files"
|
|
301
|
-
}, errors.map(function (_ref3, index) {
|
|
302
|
-
var code = _ref3.code;
|
|
303
|
-
return /*#__PURE__*/React.createElement(ErrorItem, {
|
|
304
|
-
key: index,
|
|
305
|
-
code: code,
|
|
306
|
-
areaContent: areaContent,
|
|
307
|
-
onRemove: function onRemove() {
|
|
308
|
-
return removeError(index);
|
|
309
|
-
},
|
|
310
|
-
locale: locale
|
|
311
|
-
});
|
|
312
|
-
}), initialFiles.map(function (file, index) {
|
|
313
|
-
return /*#__PURE__*/React.createElement(PreviewItem, {
|
|
314
|
-
key: index,
|
|
315
|
-
file: file,
|
|
316
|
-
onRemove: function onRemove() {
|
|
317
|
-
return removeFile(file.name);
|
|
318
|
-
},
|
|
319
|
-
mode: mode
|
|
320
|
-
});
|
|
321
|
-
})));
|
|
322
|
-
});
|
|
323
|
-
DropzoneFileUpload.displayName = 'DropzoneFileUpload';
|
|
324
|
-
|
|
325
|
-
var ModalContent = function ModalContent(_ref) {
|
|
326
|
-
var title = _ref.title,
|
|
327
|
-
subtitle = _ref.subtitle,
|
|
328
|
-
dataIdPrefix = _ref.dataIdPrefix,
|
|
329
|
-
closeIcon = _ref.closeIcon,
|
|
330
|
-
onClose = _ref.onClose,
|
|
331
|
-
children = _ref.children,
|
|
332
|
-
_ref$withFooter = _ref.withFooter,
|
|
333
|
-
withFooter = _ref$withFooter === void 0 ? true : _ref$withFooter,
|
|
334
|
-
confirmBtnTooltipText = _ref.confirmBtnTooltipText,
|
|
335
|
-
buttonProps = _ref.buttonProps,
|
|
336
|
-
onSubmit = _ref.onSubmit;
|
|
337
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, title ? /*#__PURE__*/React.createElement("div", {
|
|
338
|
-
className: "modal__header"
|
|
339
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Text, {
|
|
340
|
-
lineHeight: "large",
|
|
341
|
-
size: "large",
|
|
342
|
-
weight: 'bolder',
|
|
343
|
-
dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-title") : ''
|
|
344
|
-
}, title), subtitle ? /*#__PURE__*/React.createElement(Text, {
|
|
345
|
-
className: 'mt-12',
|
|
346
|
-
dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-title") : ''
|
|
347
|
-
}, subtitle) : null), closeIcon ? /*#__PURE__*/React.createElement(Button, {
|
|
348
|
-
className: 'modal__close ml-16',
|
|
349
|
-
dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-close-button") : '',
|
|
350
|
-
iconProps: {
|
|
351
|
-
Component: IconDismiss
|
|
352
|
-
},
|
|
353
|
-
onClick: onClose,
|
|
354
|
-
type: "tertiary"
|
|
355
|
-
}) : null) : null, /*#__PURE__*/React.createElement("div", {
|
|
356
|
-
className: "modal__content scrollbar scrollbar--vertical"
|
|
357
|
-
}, children), withFooter && buttonProps ? /*#__PURE__*/React.createElement("div", {
|
|
358
|
-
className: "modal__footer"
|
|
359
|
-
}, buttonProps.cancel && /*#__PURE__*/React.createElement(Button, _extends({
|
|
360
|
-
type: "tertiary",
|
|
361
|
-
className: "modal__footer__btn mr-16",
|
|
362
|
-
onClick: onClose,
|
|
363
|
-
dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-cancel-button") : ''
|
|
364
|
-
}, buttonProps.cancel || {})), confirmBtnTooltipText ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
365
|
-
text: confirmBtnTooltipText,
|
|
366
|
-
id: 'confirm-btn-tooltip',
|
|
367
|
-
position: Positions.TOP_CENTER
|
|
368
|
-
}) : null, /*#__PURE__*/React.createElement(Button, _extends({
|
|
369
|
-
id: 'confirm-btn-tooltip',
|
|
370
|
-
className: 'modal__footer__btn',
|
|
371
|
-
type: "primary",
|
|
372
|
-
onClick: onSubmit ? onSubmit : noop,
|
|
373
|
-
dataId: dataIdPrefix ? "".concat(dataIdPrefix, "-modal-confirm-button") : ''
|
|
374
|
-
}, buttonProps.confirm))) : null);
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
var _excluded$2 = ["isOpen", "onClose", "className", "size", "closeOnOutsideClick", "isMobileFullScreen"];
|
|
378
|
-
var DESKTOP_ANIMATION = {
|
|
379
|
-
initial: {
|
|
380
|
-
opacity: 0.5,
|
|
381
|
-
scale: 0.65
|
|
382
|
-
},
|
|
383
|
-
animate: {
|
|
384
|
-
opacity: 1,
|
|
385
|
-
scale: [0.95, 1]
|
|
386
|
-
},
|
|
387
|
-
exit: {
|
|
388
|
-
opacity: 0,
|
|
389
|
-
scale: 0.7,
|
|
390
|
-
transition: {
|
|
391
|
-
duration: 0.2
|
|
392
|
-
}
|
|
393
|
-
},
|
|
394
|
-
transition: {
|
|
395
|
-
duration: 0.4,
|
|
396
|
-
type: 'spring',
|
|
397
|
-
damping: 55,
|
|
398
|
-
stiffness: 700
|
|
399
|
-
}
|
|
400
|
-
};
|
|
401
|
-
var MOBILE_ANIMATION = function MOBILE_ANIMATION(isFullScreen) {
|
|
402
|
-
return {
|
|
403
|
-
initial: {
|
|
404
|
-
height: 0,
|
|
405
|
-
bottom: 0
|
|
406
|
-
},
|
|
407
|
-
animate: {
|
|
408
|
-
height: isFullScreen ? '100%' : 'auto',
|
|
409
|
-
bottom: 0
|
|
410
|
-
},
|
|
411
|
-
exit: {
|
|
412
|
-
height: 0,
|
|
413
|
-
bottom: 0
|
|
414
|
-
},
|
|
415
|
-
transition: {
|
|
416
|
-
duration: 0.3
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
};
|
|
420
|
-
var Modal = function Modal(props) {
|
|
421
|
-
var isOpen = props.isOpen,
|
|
422
|
-
onClose = props.onClose,
|
|
423
|
-
_props$className = props.className,
|
|
424
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
425
|
-
_props$size = props.size,
|
|
426
|
-
size = _props$size === void 0 ? 'medium' : _props$size,
|
|
427
|
-
_props$closeOnOutside = props.closeOnOutsideClick,
|
|
428
|
-
closeOnOutsideClick = _props$closeOnOutside === void 0 ? true : _props$closeOnOutside,
|
|
429
|
-
isMobileFullScreen = props.isMobileFullScreen,
|
|
430
|
-
rest = _objectWithoutProperties(props, _excluded$2);
|
|
431
|
-
var isMobile = useIsMobile();
|
|
432
|
-
var _useState = useState(null),
|
|
433
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
434
|
-
containerRef = _useState2[0],
|
|
435
|
-
setContainerRef = _useState2[1];
|
|
436
|
-
useOnOutsideClick(containerRef, onClose, closeOnOutsideClick && isOpen, useId());
|
|
437
|
-
useHideBodyScroll(isOpen);
|
|
438
|
-
return /*#__PURE__*/React.createElement(AnimatePresenceWrapper, null, isOpen ? /*#__PURE__*/React.createElement(motion.div, {
|
|
439
|
-
className: classNames('modal', "modal--".concat(size), className),
|
|
440
|
-
initial: {
|
|
441
|
-
opacity: 0
|
|
442
|
-
},
|
|
443
|
-
animate: {
|
|
444
|
-
opacity: 1
|
|
445
|
-
},
|
|
446
|
-
exit: {
|
|
447
|
-
opacity: 0
|
|
448
|
-
},
|
|
449
|
-
transition: {
|
|
450
|
-
duration: isMobile ? 0 : 0.4
|
|
451
|
-
}
|
|
452
|
-
}, /*#__PURE__*/React.createElement(motion.div, _extends({
|
|
453
|
-
className: classNames('modal__container', {
|
|
454
|
-
modal__container_fullScreen: isMobile && isMobileFullScreen
|
|
455
|
-
}),
|
|
456
|
-
ref: setContainerRef
|
|
457
|
-
}, isMobile ? MOBILE_ANIMATION(isMobileFullScreen) : DESKTOP_ANIMATION), /*#__PURE__*/React.createElement(ModalContent, _extends({}, rest, {
|
|
458
|
-
onClose: onClose
|
|
459
|
-
})))) : null);
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
var PopoverMobile = function PopoverMobile(props) {
|
|
463
|
-
var dataId = props.dataId,
|
|
464
|
-
text = props.text,
|
|
465
|
-
linkAddons = props.linkAddons,
|
|
466
|
-
mobileTitle = props.mobileTitle,
|
|
467
|
-
hideMessage = props.hideMessage,
|
|
468
|
-
_props$clicked = props.clicked,
|
|
469
|
-
clicked = _props$clicked === void 0 ? false : _props$clicked,
|
|
470
|
-
children = props.children;
|
|
471
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Modal, {
|
|
472
|
-
closeIcon: true,
|
|
473
|
-
title: mobileTitle,
|
|
474
|
-
onClose: hideMessage,
|
|
475
|
-
isOpen: clicked
|
|
476
|
-
}, clicked && /*#__PURE__*/React.createElement(React.Fragment, null, linkAddons ? /*#__PURE__*/React.createElement(Link, {
|
|
477
|
-
dataId: linkAddons.dataId,
|
|
478
|
-
url: linkAddons.url,
|
|
479
|
-
beforeLink: linkAddons.beforeLink,
|
|
480
|
-
afterLink: linkAddons.afterLink,
|
|
481
|
-
target: linkAddons.target,
|
|
482
|
-
className: 'popover__link'
|
|
483
|
-
}, text) : /*#__PURE__*/React.createElement(Text, {
|
|
484
|
-
dataId: dataId ? "".concat(dataId, "-popover-text") : '',
|
|
485
|
-
type: "primary",
|
|
486
|
-
weight: "regular",
|
|
487
|
-
lineHeight: "medium",
|
|
488
|
-
size: "small"
|
|
489
|
-
}, text))), children);
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
var _excluded$1 = ["elemRef", "id", "clicked"];
|
|
493
|
-
var Popover = function Popover(props) {
|
|
494
|
-
var elemRef = props.elemRef,
|
|
495
|
-
id = props.id,
|
|
496
|
-
clicked = props.clicked,
|
|
497
|
-
rest = _objectWithoutProperties(props, _excluded$1);
|
|
498
|
-
var isMobile = useIsMobile();
|
|
499
|
-
var _useState = useState(false),
|
|
500
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
501
|
-
isClicked = _useState2[0],
|
|
502
|
-
setIsClicked = _useState2[1];
|
|
503
|
-
var _useState3 = useState(elemRef || null),
|
|
504
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
505
|
-
parent = _useState4[0],
|
|
506
|
-
setElement = _useState4[1];
|
|
507
|
-
var showMessage = function showMessage() {
|
|
508
|
-
return setIsClicked(true);
|
|
509
|
-
};
|
|
510
|
-
var hideMessage = function hideMessage() {
|
|
511
|
-
return setIsClicked(false);
|
|
512
|
-
};
|
|
513
|
-
useEffect(function () {
|
|
514
|
-
if (parent) {
|
|
515
|
-
parent.addEventListener('click', showMessage);
|
|
516
|
-
}
|
|
517
|
-
}, [parent]);
|
|
518
|
-
useEffect(function () {
|
|
519
|
-
if (id) {
|
|
520
|
-
var element = document.getElementById(id.toString());
|
|
521
|
-
setElement(element);
|
|
522
|
-
}
|
|
523
|
-
}, [id]);
|
|
524
|
-
useEffect(function () {
|
|
525
|
-
if (clicked === false) {
|
|
526
|
-
setIsClicked(clicked);
|
|
527
|
-
}
|
|
528
|
-
}, [clicked]);
|
|
529
|
-
return isMobile ? /*#__PURE__*/React.createElement(PopoverMobile, _extends({}, rest, {
|
|
530
|
-
clicked: isClicked,
|
|
531
|
-
hideMessage: hideMessage
|
|
532
|
-
})) : /*#__PURE__*/React.createElement(PopoverDesktop, _extends({}, rest, {
|
|
533
|
-
parent: parent,
|
|
534
|
-
clicked: isClicked,
|
|
535
|
-
showMessage: showMessage,
|
|
536
|
-
hideMessage: hideMessage
|
|
537
|
-
}));
|
|
538
|
-
};
|
|
539
|
-
|
|
540
|
-
var Checkbox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
541
|
-
var label = props.label,
|
|
542
|
-
disabled = props.disabled,
|
|
543
|
-
_props$required = props.required,
|
|
544
|
-
required = _props$required === void 0 ? false : _props$required,
|
|
545
|
-
link = props.link,
|
|
546
|
-
name = props.name,
|
|
547
|
-
setFieldValue = props.setFieldValue,
|
|
548
|
-
selectedValue = props.selectedValue,
|
|
549
|
-
value = props.value,
|
|
550
|
-
_props$className = props.className,
|
|
551
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
552
|
-
_props$iconProps = props.iconProps,
|
|
553
|
-
iconProps = _props$iconProps === void 0 ? {
|
|
554
|
-
name: 'checkmark'
|
|
555
|
-
} : _props$iconProps,
|
|
556
|
-
_props$dataId = props.dataId,
|
|
557
|
-
dataId = _props$dataId === void 0 ? '' : _props$dataId,
|
|
558
|
-
onClick = props.onClick,
|
|
559
|
-
beforeLink = props.beforeLink,
|
|
560
|
-
afterLink = props.afterLink,
|
|
561
|
-
_props$helperText = props.helperText,
|
|
562
|
-
helperText = _props$helperText === void 0 ? '' : _props$helperText,
|
|
563
|
-
popoverAddons = props.popoverAddons,
|
|
564
|
-
isInvalid = props.isInvalid;
|
|
565
|
-
var localRef = useRef(null);
|
|
566
|
-
var inputRef = ref && Object.keys(ref).length ? ref : localRef;
|
|
567
|
-
var isChecked = !!value || selectedValue;
|
|
568
|
-
var changeHandler = function changeHandler() {
|
|
569
|
-
if (name && setFieldValue) {
|
|
570
|
-
setFieldValue(name, !isChecked, {
|
|
571
|
-
shouldValidate: !isChecked
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
if (onClick) {
|
|
575
|
-
onClick(!isChecked);
|
|
576
|
-
}
|
|
577
|
-
};
|
|
578
|
-
var checkboxLabelPopover = popoverAddons ? /*#__PURE__*/React.createElement(Popover, _extends({
|
|
579
|
-
id: "".concat(popoverAddons.id)
|
|
580
|
-
}, popoverAddons), /*#__PURE__*/React.createElement("div", {
|
|
581
|
-
id: "".concat(popoverAddons.id)
|
|
582
|
-
}, /*#__PURE__*/React.createElement(IconInfo, {
|
|
583
|
-
dataId: "".concat(dataId, "-icon"),
|
|
584
|
-
type: "information",
|
|
585
|
-
size: "xsmall",
|
|
586
|
-
className: 'ml-4 pointer',
|
|
587
|
-
onClick: function onClick(e) {
|
|
588
|
-
e.stopPropagation();
|
|
589
|
-
changeHandler();
|
|
590
|
-
}
|
|
591
|
-
}))) : null;
|
|
592
|
-
var checkboxLabel = useMemo(function () {
|
|
593
|
-
if (!label) {
|
|
594
|
-
return null;
|
|
595
|
-
}
|
|
596
|
-
if (typeof label !== 'string') {
|
|
597
|
-
return label;
|
|
598
|
-
}
|
|
599
|
-
if (!link) {
|
|
600
|
-
return /*#__PURE__*/React.createElement(Text, {
|
|
601
|
-
type: disabled ? 'disabled' : 'primary',
|
|
602
|
-
className: "controller__label"
|
|
603
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, label, required && /*#__PURE__*/React.createElement("sup", null, "*")));
|
|
604
|
-
}
|
|
605
|
-
return /*#__PURE__*/React.createElement(Text, {
|
|
606
|
-
type: disabled ? 'disabled' : 'primary',
|
|
607
|
-
className: "controller__label"
|
|
608
|
-
}, /*#__PURE__*/React.createElement(React.Fragment, null, beforeLink && /*#__PURE__*/React.createElement("span", {
|
|
609
|
-
className: "mr-4"
|
|
610
|
-
}, beforeLink), /*#__PURE__*/React.createElement(Link, {
|
|
611
|
-
dataId: dataId,
|
|
612
|
-
url: link,
|
|
613
|
-
target: "_blank"
|
|
614
|
-
}, label), afterLink && /*#__PURE__*/React.createElement("span", {
|
|
615
|
-
className: "ml-4"
|
|
616
|
-
}, afterLink), required && /*#__PURE__*/React.createElement("sup", null, "*")));
|
|
617
|
-
}, [label, link]);
|
|
618
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("label", {
|
|
619
|
-
className: classNames('controller', _defineProperty({
|
|
620
|
-
'controller--checkbox': true,
|
|
621
|
-
'controller--disabled': disabled,
|
|
622
|
-
'controller--error': isInvalid
|
|
623
|
-
}, className, !!className))
|
|
624
|
-
}, /*#__PURE__*/React.createElement("input", {
|
|
625
|
-
"data-id": dataId,
|
|
626
|
-
type: "checkbox",
|
|
627
|
-
ref: inputRef,
|
|
628
|
-
tabIndex: 0,
|
|
629
|
-
onChange: changeHandler,
|
|
630
|
-
checked: Boolean(isChecked),
|
|
631
|
-
disabled: disabled
|
|
632
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
633
|
-
className: "controller__icon"
|
|
634
|
-
}, /*#__PURE__*/React.createElement(IconDynamicComponent, {
|
|
635
|
-
componentName: iconProps.name,
|
|
636
|
-
size: "xxsmall",
|
|
637
|
-
type: disabled ? 'disabled' : 'inverse',
|
|
638
|
-
className: "controller__mark"
|
|
639
|
-
})), checkboxLabel ? /*#__PURE__*/React.createElement("div", {
|
|
640
|
-
className: "controller__right"
|
|
641
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
642
|
-
className: "flexbox"
|
|
643
|
-
}, checkboxLabel, checkboxLabelPopover), helperText ? /*#__PURE__*/React.createElement(Text, {
|
|
644
|
-
size: "small",
|
|
645
|
-
type: disabled ? 'disabled' : 'secondary'
|
|
646
|
-
}, helperText) : null) : null));
|
|
647
|
-
});
|
|
648
|
-
Checkbox.displayName = 'Checkbox';
|
|
649
|
-
|
|
650
|
-
var _excluded = ["buttonText", "type", "size", "className", "iconProps", "buttonActionType", "disabled", "isLoading", "formId", "dataId", "onClick", "refHandler", "children"];
|
|
651
|
-
var Button = function Button(props) {
|
|
652
|
-
var buttonText = props.buttonText,
|
|
653
|
-
_props$type = props.type,
|
|
654
|
-
type = _props$type === void 0 ? 'primary' : _props$type,
|
|
655
|
-
_props$size = props.size,
|
|
656
|
-
size = _props$size === void 0 ? 'large' : _props$size,
|
|
657
|
-
_props$className = props.className,
|
|
658
|
-
className = _props$className === void 0 ? '' : _props$className,
|
|
659
|
-
iconProps = props.iconProps,
|
|
660
|
-
_props$buttonActionTy = props.buttonActionType,
|
|
661
|
-
buttonActionType = _props$buttonActionTy === void 0 ? 'button' : _props$buttonActionTy,
|
|
662
|
-
disabled = props.disabled,
|
|
663
|
-
isLoading = props.isLoading,
|
|
664
|
-
formId = props.formId,
|
|
665
|
-
_props$dataId = props.dataId,
|
|
666
|
-
dataId = _props$dataId === void 0 ? '' : _props$dataId,
|
|
667
|
-
onClick = props.onClick,
|
|
668
|
-
_props$refHandler = props.refHandler,
|
|
669
|
-
refHandler = _props$refHandler === void 0 ? null : _props$refHandler,
|
|
670
|
-
children = props.children,
|
|
671
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
672
|
-
var justIcon = !buttonText && !children && iconProps !== undefined;
|
|
673
|
-
var clickHandler = function clickHandler(e) {
|
|
674
|
-
if (disabled || isLoading) {
|
|
675
|
-
return;
|
|
676
|
-
}
|
|
677
|
-
onClick === null || onClick === void 0 || onClick(e);
|
|
678
|
-
};
|
|
679
|
-
return /*#__PURE__*/React.createElement("button", _extends({
|
|
680
|
-
ref: refHandler,
|
|
681
|
-
"data-id": dataId,
|
|
682
|
-
disabled: disabled,
|
|
683
|
-
type: buttonActionType,
|
|
684
|
-
className: classNames('btn', "btn--".concat(type), "btn--".concat(size), _defineProperty({
|
|
685
|
-
'btn--icon': justIcon
|
|
686
|
-
}, "btn--icon-".concat((iconProps === null || iconProps === void 0 ? void 0 : iconProps.alignment) || 'left'), !isLoading && !justIcon && (iconProps === null || iconProps === void 0 ? void 0 : iconProps.Component)), className),
|
|
687
|
-
onClick: clickHandler,
|
|
688
|
-
form: formId
|
|
689
|
-
}, rest), isLoading ? /*#__PURE__*/React.createElement(Loader, {
|
|
690
|
-
size: size,
|
|
691
|
-
type: LITE_LOADER_TYPES.indexOf(type) === -1 ? 'dark' : 'lite'
|
|
692
|
-
}) : /*#__PURE__*/React.createElement(React.Fragment, null, iconProps !== null && iconProps !== void 0 && iconProps.Component ? /*#__PURE__*/React.createElement(iconProps.Component, {
|
|
693
|
-
size: ICON_SIZE_MAPPING[iconProps.size || size],
|
|
694
|
-
type: ICON_TYPE_MAPPING[iconProps.type || type],
|
|
695
|
-
className: "btn__icon"
|
|
696
|
-
}) : null, buttonText || children ? /*#__PURE__*/React.createElement("span", {
|
|
697
|
-
className: "btn__text"
|
|
698
|
-
}, buttonText || children) : null));
|
|
699
|
-
};
|
|
700
|
-
|
|
701
|
-
var Alert = function Alert(props) {
|
|
702
|
-
var buttonProps = props.buttonProps,
|
|
703
|
-
_props$type = props.type,
|
|
704
|
-
type = _props$type === void 0 ? 'information' : _props$type,
|
|
705
|
-
_props$position = props.position,
|
|
706
|
-
position = _props$position === void 0 ? 'inline' : _props$position,
|
|
707
|
-
text = props.text,
|
|
708
|
-
subtext = props.subtext,
|
|
709
|
-
closeIcon = props.closeIcon,
|
|
710
|
-
onClose = props.onClose,
|
|
711
|
-
_props$className = props.className,
|
|
712
|
-
className = _props$className === void 0 ? '' : _props$className;
|
|
713
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
714
|
-
className: classNames('alert', "alert--".concat(type, " alert--").concat(position), className)
|
|
715
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
716
|
-
className: "alert__content"
|
|
717
|
-
}, /*#__PURE__*/React.createElement(IconDynamicComponent, {
|
|
718
|
-
componentName: ICONS_MAPPING[type],
|
|
719
|
-
size: "small",
|
|
720
|
-
type: TYPE_MAPPING[type]
|
|
721
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
722
|
-
className: "alert__text pl-8"
|
|
723
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Text, {
|
|
724
|
-
type: "primary",
|
|
725
|
-
size: "standard",
|
|
726
|
-
weight: "regular",
|
|
727
|
-
lineHeight: "large"
|
|
728
|
-
}, text), subtext ? /*#__PURE__*/React.createElement(Text, {
|
|
729
|
-
className: 'mt-4',
|
|
730
|
-
type: "secondary",
|
|
731
|
-
size: "small",
|
|
732
|
-
weight: "regular",
|
|
733
|
-
lineHeight: "large"
|
|
734
|
-
}, subtext) : null), buttonProps ? /*#__PURE__*/React.createElement("div", {
|
|
735
|
-
className: "alert__actions"
|
|
736
|
-
}, buttonProps.confirm && /*#__PURE__*/React.createElement(Button, _extends({
|
|
737
|
-
size: "medium",
|
|
738
|
-
type: "secondary"
|
|
739
|
-
}, buttonProps.confirm)), buttonProps.cancel && /*#__PURE__*/React.createElement(Button, _extends({
|
|
740
|
-
size: "medium",
|
|
741
|
-
type: "tertiary",
|
|
742
|
-
className: "ml-12"
|
|
743
|
-
}, buttonProps.cancel))) : null), closeIcon ? /*#__PURE__*/React.createElement(IconDismissFilled, {
|
|
744
|
-
type: TYPE_MAPPING[type],
|
|
745
|
-
size: "xsmall",
|
|
746
|
-
className: "ml-12 pointer",
|
|
747
|
-
onClick: onClose
|
|
748
|
-
}) : null));
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
export { Alert as A, Button as B, Checkbox as C, DropzoneFileUpload as D, ErrorItem as E, MOBILE_ANIMATION as M, Popover as P, Modal as a, getDropzoneLocale as b, PreviewItem as c, ModalContent as d, PopoverMobile as e, formatFileSize as f, generateAreaContent as g, shortenFileName as s };
|