hrm_ui_lib 2.0.0-alpha.2 → 2.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{Alert-w8FkRd9I.js → Alert--0rz5XL1.js} +22 -14
- package/assets/images/under-construction.svg +9 -0
- package/assets/styles/styles.css +4459 -4533
- package/assets/styles/styles.scss +1 -3
- package/components/Alert/Alert.js +12 -10
- package/components/Alert/index.js +6 -4
- package/components/Avatar/Avatar.js +7 -5
- package/components/Avatar/AvatarGroup.js +6 -4
- package/components/Avatar/index.js +6 -4
- package/components/BadgeV2/BadgeV2.d.ts +2 -2
- package/components/BadgeV2/BadgeV2.js +20 -8
- package/components/BadgeV2/types.d.ts +5 -2
- package/components/Button/Button.js +6 -4
- package/components/Button/index.js +6 -4
- package/components/ButtonGroup/ButtonGroup.d.ts +2 -0
- package/components/ButtonGroup/ButtonGroup.js +46 -0
- package/components/ButtonGroup/ButtonGroupItem.d.ts +2 -0
- package/components/ButtonGroup/ButtonGroupItem.js +52 -0
- package/components/ButtonGroup/consts.d.ts +8 -0
- package/components/ButtonGroup/consts.js +12 -0
- package/components/ButtonGroup/index.d.ts +1 -0
- package/components/ButtonGroup/index.js +10 -0
- package/components/ButtonGroup/types.d.ts +23 -0
- package/components/ButtonGroup/types.js +1 -0
- package/components/Card/Card.d.ts +5 -2
- package/components/Card/Card.js +58 -7
- package/components/Card/CardComponent/Card.js +4 -3
- package/components/Card/CardComponent/CardBody.d.ts +1 -1
- package/components/Card/CardComponent/CardBody.js +5 -5
- package/components/Card/CardComponent/CardFooter.d.ts +4 -0
- package/components/Card/CardComponent/CardFooter.js +13 -0
- package/components/Card/CardComponent/CardHead.js +67 -5
- package/components/Card/index.js +48 -2
- package/components/Card/types.d.ts +3 -0
- package/components/CardGroup/CardGroup.d.ts +10 -0
- package/components/CardGroup/CardGroup.js +27 -0
- package/components/CardGroup/CardGroupComponent/CardBody.d.ts +4 -0
- package/components/CardGroup/CardGroupComponent/CardBody.js +19 -0
- package/components/CardGroup/CardGroupComponent/CardGroup.d.ts +4 -0
- package/components/CardGroup/CardGroupComponent/CardGroup.js +28 -0
- package/components/CardGroup/CardGroupComponent/CardHead.d.ts +4 -0
- package/components/CardGroup/CardGroupComponent/CardHead.js +19 -0
- package/components/CardGroup/CardGroupContext.d.ts +6 -0
- package/components/CardGroup/CardGroupContext.js +8 -0
- package/components/CardGroup/index.d.ts +1 -0
- package/components/CardGroup/index.js +11 -0
- package/components/CardGroup/types.d.ts +14 -0
- package/components/CardGroup/types.js +1 -0
- package/components/Checkbox/Checkbox.js +11 -9
- package/components/Checkbox/index.js +6 -4
- package/components/Checkbox/types.d.ts +1 -0
- package/components/Collapse/Collapse/Collapse.js +2 -2
- package/components/Collapse/CollapseGroup/CollapseGroup.js +1 -1
- package/components/Collapse/CollapseItem/CollapseItem.js +1 -1
- package/components/Collapse/index.js +1 -1
- package/components/Collapse/types.d.ts +1 -1
- package/components/Copy/Copy.js +6 -4
- package/components/Copy/index.js +6 -4
- package/components/Counter/Counter.js +6 -4
- package/components/Counter/index.js +6 -4
- package/components/DatePicker/CustomHeader/CustomHeader.js +7 -5
- package/components/DatePicker/RangeDatePicker/RangeDatePicker.js +12 -4
- package/components/DatePicker/RangeDatePicker/RangeDatePickerDesktop.js +12 -4
- package/components/DatePicker/RangeDatePicker/RangeDatePickerMobile.js +12 -4
- package/components/DatePicker/RangeDatePicker/index.js +12 -4
- package/components/DatePicker/SimpleDatePicker/SimpleDatePicker.js +12 -4
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerDesktop.js +12 -4
- package/components/DatePicker/SimpleDatePicker/SimpleDatePickerMobile.js +12 -4
- package/components/DatePicker/SimpleDatePicker/index.js +12 -4
- package/components/DatePicker/TimePicker/MobileModalContent.js +7 -4
- package/components/DatePicker/TimePicker/TimePicker.js +14 -5
- package/components/DatePicker/TimePicker/TimePickerDesktop.js +13 -7
- package/components/DatePicker/TimePicker/TimePickerMobile.js +8 -5
- package/components/DatePicker/TimePicker/index.js +14 -5
- package/components/DatePicker/hooks.js +8 -2139
- package/components/DatePicker/index.js +14 -5
- package/components/Divider/Divider.js +6 -3
- package/components/Divider/types.d.ts +1 -0
- package/components/Empty/Empty.js +6 -4
- package/components/Empty/index.js +6 -4
- package/components/FileUpload/DropzoneFileUpload/DropzoneFileUpload.js +6 -4
- package/components/FileUpload/DropzoneFileUpload/ErrorItem.js +6 -4
- package/components/FileUpload/DropzoneFileUpload/PreviewItem.js +14 -12
- package/components/FileUpload/DropzoneFileUpload/helpers.js +6 -4
- package/components/FileUpload/DropzoneFileUpload/index.js +6 -4
- package/components/FileUpload/FileUpload.js +7 -5
- package/components/FileUpload/UploadItems.js +7 -5
- package/components/FileUpload/index.js +7 -5
- package/components/FormContainer/FormContainer.js +22 -12
- package/components/FormContainer/index.js +7 -5
- package/components/FormContainer/types.d.ts +1 -0
- package/components/FormField/FormField.js +6 -4
- package/components/FormField/index.js +7 -5
- package/components/IconDynamicComponent/IconDynamicComponent.d.ts +8 -0
- package/components/IconDynamicComponent/IconDynamicComponent.js +39 -0
- package/{helperComponents → components}/IconDynamicComponent/index.js +1 -1
- package/components/Input/Input.js +6 -4
- package/components/Input/index.js +6 -4
- package/components/Menu/Menu.js +7 -5
- package/components/Menu/NestedMenu.js +7 -5
- package/components/Menu/index.js +7 -5
- package/components/Modal/Modal.js +6 -4
- package/components/Modal/ModalConfirmation.js +6 -4
- package/components/Modal/ModalContent.js +6 -4
- package/components/Modal/index.js +6 -4
- package/components/More/More.js +6 -4
- package/components/More/index.js +6 -4
- package/components/Popover/Popover.js +6 -4
- package/components/Popover/PopoverDesktop.js +1 -1
- package/components/Popover/PopoverMobile.js +6 -4
- package/components/Popover/index.js +6 -4
- package/components/Popover/types.d.ts +2 -1
- package/components/Radio/RadioGroup.js +7 -5
- package/components/Radio/index.js +7 -5
- package/components/SVGIcons/IconAirplaneTakeOff.d.ts +4 -0
- package/components/SVGIcons/IconAirplaneTakeOff.js +29 -0
- package/components/SVGIcons/IconAirplaneTakeOffFilled.d.ts +4 -0
- package/components/SVGIcons/IconAirplaneTakeOffFilled.js +29 -0
- package/components/SVGIcons/IconChartPerson.d.ts +4 -0
- package/components/SVGIcons/IconChartPerson.js +29 -0
- package/components/SVGIcons/IconChartPersonFilled.d.ts +4 -0
- package/components/SVGIcons/IconChartPersonFilled.js +29 -0
- package/components/SVGIcons/IconFastAcceleration.d.ts +4 -0
- package/components/SVGIcons/IconFastAcceleration.js +29 -0
- package/components/SVGIcons/IconFastAccelerationFilled.d.ts +4 -0
- package/components/SVGIcons/IconFastAccelerationFilled.js +29 -0
- package/components/SVGIcons/IconFeed.d.ts +4 -0
- package/components/SVGIcons/IconFeed.js +29 -0
- package/components/SVGIcons/IconFeedFilled.d.ts +4 -0
- package/components/SVGIcons/IconFeedFilled.js +29 -0
- package/components/SVGIcons/IconLibrary.d.ts +4 -0
- package/components/SVGIcons/IconLibrary.js +29 -0
- package/components/SVGIcons/IconLibraryFilled.d.ts +4 -0
- package/components/SVGIcons/IconLibraryFilled.js +29 -0
- package/components/SVGIcons/IconPeopleList.d.ts +4 -0
- package/components/SVGIcons/IconPeopleList.js +29 -0
- package/components/SVGIcons/IconPeopleListFilled.d.ts +4 -0
- package/components/SVGIcons/IconPeopleListFilled.js +29 -0
- package/components/SVGIcons/IconPeopleTeam.d.ts +4 -0
- package/components/SVGIcons/IconPeopleTeam.js +29 -0
- package/components/SVGIcons/IconPeopleTeamFilled.d.ts +4 -0
- package/components/SVGIcons/IconPeopleTeamFilled.js +29 -0
- package/components/SVGIcons/IconTrophy.d.ts +4 -0
- package/components/SVGIcons/IconTrophy.js +29 -0
- package/components/SVGIcons/IconTrophyFilled.d.ts +4 -0
- package/components/SVGIcons/IconTrophyFilled.js +29 -0
- package/components/SVGIcons/IconUs.d.ts +4 -0
- package/components/SVGIcons/IconUs.js +72 -0
- package/components/SVGIcons/icon-names.d.ts +2 -0
- package/components/SVGIcons/icon-names.js +3 -0
- package/components/SVGIcons/index.d.ts +19 -2
- package/components/SVGIcons/index.js +19 -2
- package/components/Select/ButtonSelect/ButtonSelect.js +7 -5
- package/components/Select/FilterSelect/FilterDropdown.js +7 -5
- package/components/Select/FilterSelect/FilterGroupDropdown.js +6 -4
- package/components/Select/FilterSelect/FilterSelect.js +6 -4
- package/components/Select/MultiSelect/MobileWrapper.js +6 -4
- package/components/Select/MultiSelect/MultiBase/MultiBase.js +7 -5
- package/components/Select/MultiSelect/MultiSelect.js +6 -4
- package/components/Select/MultiSelect/MultiSelectGrouped/MultiSelectGrouped.js +7 -5
- package/components/Select/MultiSelect/MultiSelectWithTabs/MultiSelectWithTabs.js +7 -5
- package/components/Select/MultiSelect/OptionsWrapper.js +6 -4
- package/components/Select/NestedSelect/NestedSelect.js +7 -5
- package/components/Select/Select/Select.js +6 -4
- package/components/Select/Select/SelectDesktop/index.js +7 -5
- package/components/Select/Select/SelectMobile/MobileTopContent.js +6 -4
- package/components/Select/Select/SelectMobile/index.js +7 -5
- package/components/Select/SharedComponents/Actions.js +7 -5
- package/components/Select/SharedComponents/ButtonSelectWrapper/ButtonSelectWrapper.js +8 -6
- package/components/Select/SharedComponents/ContentTop.js +6 -4
- package/components/Select/SharedComponents/Footer.js +6 -4
- package/components/Select/SharedComponents/InputSelectWrapper/InputSelectWrapper.js +6 -4
- package/components/Select/SharedComponents/index.js +6 -4
- package/components/Select/index.js +6 -4
- package/components/SideSheet/Footer/Footer.js +6 -4
- package/components/SideSheet/SideSheet.js +6 -4
- package/components/SideSheet/index.js +6 -4
- package/components/Snackbar/Snackbar.js +14 -12
- package/components/Snackbar/index.js +6 -4
- package/components/Switcher/Switcher.js +27 -19
- package/components/Switcher/index.js +7 -6
- package/components/Switcher/types.d.ts +2 -0
- package/components/Tab/Tab.js +4 -2
- package/components/Table/Header.d.ts +2 -1
- package/components/Table/Header.js +19 -8
- package/components/Table/IndeterminateCheckbox.d.ts +1 -0
- package/components/Table/IndeterminateCheckbox.js +12 -6
- package/components/Table/Row.d.ts +2 -1
- package/components/Table/Row.js +24 -9
- package/components/Table/Table.d.ts +1 -1
- package/components/Table/Table.js +60 -17
- package/components/Table/index.js +8 -4
- package/components/Table/localization.d.ts +5 -0
- package/components/Table/localization.js +13 -0
- package/components/Table/types.d.ts +6 -0
- package/components/Table/utils.js +36 -8
- package/components/TableV2/AdvancedPagination.js +9 -7
- package/components/TableV2/ColumnSettings.js +8 -6
- package/components/TableV2/IndeterminateCheckbox.js +6 -4
- package/components/TableV2/Table.js +7 -4
- package/components/TableV2/hooks/useTableControl.js +20 -15
- package/components/TableV2/index.js +8 -5
- package/components/Text/types.d.ts +1 -1
- package/components/Textarea/Textarea.js +6 -4
- package/components/Textarea/index.js +6 -4
- package/components/Tooltip/types.d.ts +0 -1
- package/components/UnderConstruction/UnderConstruction.d.ts +3 -0
- package/components/UnderConstruction/UnderConstruction.js +38 -0
- package/components/UnderConstruction/index.d.ts +1 -0
- package/components/UnderConstruction/index.js +8 -0
- package/components/UnderConstruction/localization.d.ts +4 -0
- package/components/UnderConstruction/localization.js +16 -0
- package/components/UnderConstruction/types.d.ts +12 -0
- package/components/UnderConstruction/types.js +1 -0
- package/helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js +1 -1
- package/helperComponents/AnimatePresenceWrapper/index.js +1 -1
- package/helperComponents/CodeBlock/CodeBlock.js +1 -154
- package/helperComponents/CodeBlock/index.js +1 -0
- package/helperComponents/ErrorMessage/ErrorMessage.js +2 -2
- package/helperComponents/ErrorMessage/index.js +2 -2
- package/helperComponents/GoToWebPage/GoToWebPage.js +6 -4
- package/helperComponents/OptionItem/OptionItem.js +7 -5
- package/helperComponents/OptionItem/index.js +6 -4
- package/helperComponents/index.d.ts +0 -1
- package/helperComponents/index.js +7 -5
- package/helpers/check-authorization.js +8 -6
- package/helpers/format-date.js +1 -22
- package/helpers/index.js +6 -4
- package/hooks/useHideOnScroll.d.ts +1 -1
- package/hooks/useHideOnScroll.js +5 -4
- package/i18n.d.ts +4 -0
- package/i18n.js +50 -0
- package/index.d.ts +3 -0
- package/index.js +46 -7
- package/package.json +6 -5
- package/helperComponents/IconDynamicComponent/IconDynamicComponent.d.ts +0 -9
- package/helperComponents/IconDynamicComponent/IconDynamicComponent.js +0 -26
- package/helperComponents/IconDynamicComponent/constants.d.ts +0 -3
- package/helperComponents/IconDynamicComponent/constants.js +0 -33
- /package/{helperComponents → components}/IconDynamicComponent/index.d.ts +0 -0
|
@@ -3,31 +3,31 @@ import 'react';
|
|
|
3
3
|
import './consts.js';
|
|
4
4
|
import 'classnames';
|
|
5
5
|
import '../Text/Text.js';
|
|
6
|
-
export { A as Alert } from '../../Alert
|
|
6
|
+
export { A as Alert } from '../../Alert--0rz5XL1.js';
|
|
7
7
|
import '../SVGIcons/IconDismissFilled.js';
|
|
8
|
-
import '
|
|
8
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
9
|
+
import '../../utils/helpers.js';
|
|
9
10
|
import 'dayjs';
|
|
11
|
+
import '@babel/runtime/helpers/defineProperty';
|
|
12
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
13
|
+
import '../../helperComponents/Loader/Loader.js';
|
|
10
14
|
import '@babel/runtime/helpers/slicedToArray';
|
|
11
15
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
12
16
|
import '../../consts/index.js';
|
|
17
|
+
import '../../type/file-upload.js';
|
|
13
18
|
import '../../hooks/useScreenSize.js';
|
|
14
19
|
import 'react-hook-form';
|
|
15
|
-
import '@babel/runtime/helpers/defineProperty';
|
|
16
|
-
import 'react-syntax-highlighter';
|
|
17
|
-
import '../../utils/helpers.js';
|
|
18
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
19
|
-
import '../../helperComponents/Loader/Loader.js';
|
|
20
20
|
import 'react-dropzone';
|
|
21
21
|
import '../SVGIcons/IconUpload.js';
|
|
22
|
-
import '../../type/file-upload.js';
|
|
23
22
|
import '../FileUpload/types.js';
|
|
24
23
|
import '../../helpers/format-date.js';
|
|
24
|
+
import 'dayjs/plugin/utc';
|
|
25
25
|
import '../../helpers/locale.js';
|
|
26
26
|
import '../../type/locale.js';
|
|
27
27
|
import '../../helpers/storage.js';
|
|
28
28
|
import 'react-toastify';
|
|
29
29
|
import '../../hooks/useGetIsMobile.js';
|
|
30
|
-
import '
|
|
30
|
+
import 'motion/react';
|
|
31
31
|
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
32
32
|
import '../../hooks/useOnOutsideClick.js';
|
|
33
33
|
import '../../hooks/useHideBodyScroll.js';
|
|
@@ -39,9 +39,12 @@ import '../../hooks/useGetElemSizes.js';
|
|
|
39
39
|
import '../../hooks/useGetElemPositions.js';
|
|
40
40
|
import '../../hooks/useGetTooltipPosition.js';
|
|
41
41
|
import '../../hooks/useHideOnScroll.js';
|
|
42
|
+
import 'react-syntax-highlighter';
|
|
43
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
42
44
|
import '../Link/Link.js';
|
|
43
45
|
import '../Popover/PopoverDesktop.js';
|
|
44
46
|
import '../SVGIcons/IconInfo.js';
|
|
47
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
45
48
|
import '@babel/runtime/helpers/typeof';
|
|
46
49
|
import '../SVGIcons/IconDelete.js';
|
|
47
50
|
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
@@ -49,4 +52,3 @@ import '../Progress/Progress.js';
|
|
|
49
52
|
import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
50
53
|
import '../../helpers/download-file.js';
|
|
51
54
|
import '../Button/consts.js';
|
|
52
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Alert } from '../../Alert
|
|
1
|
+
export { A as Alert } from '../../Alert--0rz5XL1.js';
|
|
2
2
|
import '@babel/runtime/helpers/extends';
|
|
3
3
|
import 'react';
|
|
4
4
|
import './consts.js';
|
|
@@ -19,12 +19,13 @@ import 'react-dropzone';
|
|
|
19
19
|
import '../SVGIcons/IconUpload.js';
|
|
20
20
|
import '../FileUpload/types.js';
|
|
21
21
|
import '../../helpers/format-date.js';
|
|
22
|
+
import 'dayjs/plugin/utc';
|
|
22
23
|
import '../../helpers/locale.js';
|
|
23
24
|
import '../../type/locale.js';
|
|
24
25
|
import '../../helpers/storage.js';
|
|
25
26
|
import 'react-toastify';
|
|
26
27
|
import '../../hooks/useGetIsMobile.js';
|
|
27
|
-
import '
|
|
28
|
+
import 'motion/react';
|
|
28
29
|
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
29
30
|
import '../../hooks/useOnOutsideClick.js';
|
|
30
31
|
import '../../hooks/useHideBodyScroll.js';
|
|
@@ -37,11 +38,12 @@ import '../../hooks/useGetElemPositions.js';
|
|
|
37
38
|
import '../../hooks/useGetTooltipPosition.js';
|
|
38
39
|
import '../../hooks/useHideOnScroll.js';
|
|
39
40
|
import 'react-syntax-highlighter';
|
|
41
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
40
42
|
import '../Link/Link.js';
|
|
41
43
|
import '../Popover/PopoverDesktop.js';
|
|
42
44
|
import '../SVGIcons/IconInfo.js';
|
|
43
|
-
import '
|
|
44
|
-
import '
|
|
45
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
46
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
45
47
|
import '@babel/runtime/helpers/typeof';
|
|
46
48
|
import '../SVGIcons/IconDismissFilled.js';
|
|
47
49
|
import '../SVGIcons/IconDelete.js';
|
|
@@ -2,13 +2,14 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { FileUpload } from '../FileUpload/FileUpload.js';
|
|
5
|
-
import '../../Alert
|
|
5
|
+
import '../../Alert--0rz5XL1.js';
|
|
6
6
|
import { FileUploadMode } from '../FileUpload/types.js';
|
|
7
7
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
8
8
|
import '../../helperComponents/Label/Label.js';
|
|
9
9
|
import '../Text/Text.js';
|
|
10
10
|
import '../../utils/helpers.js';
|
|
11
11
|
import 'dayjs';
|
|
12
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
12
13
|
import '@babel/runtime/helpers/extends';
|
|
13
14
|
import '../../consts/index.js';
|
|
14
15
|
import '@babel/runtime/helpers/defineProperty';
|
|
@@ -16,28 +17,28 @@ import '../../type/file-upload.js';
|
|
|
16
17
|
import '../../hooks/useScreenSize.js';
|
|
17
18
|
import 'react-hook-form';
|
|
18
19
|
import 'react-syntax-highlighter';
|
|
20
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
19
21
|
import '../FileUpload/UploadItems.js';
|
|
20
22
|
import '../../hooks/useFormProps.js';
|
|
21
23
|
import '../../context/types.js';
|
|
22
24
|
import '../../helperComponents/ErrorMessage/ErrorMessage.js';
|
|
23
|
-
import '
|
|
24
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
25
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
25
26
|
import '../SVGIcons/IconDelete.js';
|
|
26
27
|
import '../SVGIcons/IconEditFilled.js';
|
|
27
28
|
import '../SVGIcons/IconEdit.js';
|
|
28
29
|
import '../SVGIcons/IconAttach.js';
|
|
29
30
|
import '../Alert/consts.js';
|
|
30
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
31
31
|
import '../../helperComponents/Loader/Loader.js';
|
|
32
32
|
import 'react-dropzone';
|
|
33
33
|
import '../SVGIcons/IconUpload.js';
|
|
34
34
|
import '../../helpers/format-date.js';
|
|
35
|
+
import 'dayjs/plugin/utc';
|
|
35
36
|
import '../../helpers/locale.js';
|
|
36
37
|
import '../../type/locale.js';
|
|
37
38
|
import '../../helpers/storage.js';
|
|
38
39
|
import 'react-toastify';
|
|
39
40
|
import '../../hooks/useGetIsMobile.js';
|
|
40
|
-
import '
|
|
41
|
+
import 'motion/react';
|
|
41
42
|
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
42
43
|
import '../../hooks/useOnOutsideClick.js';
|
|
43
44
|
import '../../hooks/useHideBodyScroll.js';
|
|
@@ -52,6 +53,7 @@ import '../../hooks/useHideOnScroll.js';
|
|
|
52
53
|
import '../Link/Link.js';
|
|
53
54
|
import '../Popover/PopoverDesktop.js';
|
|
54
55
|
import '../SVGIcons/IconInfo.js';
|
|
56
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
55
57
|
import '@babel/runtime/helpers/typeof';
|
|
56
58
|
import '../SVGIcons/IconDismissFilled.js';
|
|
57
59
|
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
@@ -21,7 +21,7 @@ import '../../type/file-upload.js';
|
|
|
21
21
|
import '../FileUpload/FileUpload.js';
|
|
22
22
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
23
23
|
import '../FileUpload/types.js';
|
|
24
|
-
import '../../Alert
|
|
24
|
+
import '../../Alert--0rz5XL1.js';
|
|
25
25
|
import '@babel/runtime/helpers/extends';
|
|
26
26
|
import '../Alert/consts.js';
|
|
27
27
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -29,22 +29,24 @@ import '../../helperComponents/Loader/Loader.js';
|
|
|
29
29
|
import 'react-dropzone';
|
|
30
30
|
import '../SVGIcons/IconUpload.js';
|
|
31
31
|
import '../../helpers/format-date.js';
|
|
32
|
+
import 'dayjs/plugin/utc';
|
|
32
33
|
import '../../helpers/locale.js';
|
|
33
34
|
import '../../type/locale.js';
|
|
34
35
|
import '../../helpers/storage.js';
|
|
35
36
|
import 'react-toastify';
|
|
36
37
|
import '../../hooks/useGetIsMobile.js';
|
|
37
|
-
import '
|
|
38
|
+
import 'motion/react';
|
|
38
39
|
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
39
40
|
import '../../hooks/useOnOutsideClick.js';
|
|
40
41
|
import '../../hooks/useHideBodyScroll.js';
|
|
41
42
|
import '../SVGIcons/IconDismiss.js';
|
|
42
43
|
import 'react-syntax-highlighter';
|
|
44
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
43
45
|
import '../Link/Link.js';
|
|
44
46
|
import '../Popover/PopoverDesktop.js';
|
|
45
47
|
import '../SVGIcons/IconInfo.js';
|
|
46
|
-
import '
|
|
47
|
-
import '
|
|
48
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
49
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
48
50
|
import '@babel/runtime/helpers/typeof';
|
|
49
51
|
import '../SVGIcons/IconDismissFilled.js';
|
|
50
52
|
import '../SVGIcons/IconDelete.js';
|
|
@@ -6,7 +6,7 @@ import 'classnames';
|
|
|
6
6
|
import '../FileUpload/FileUpload.js';
|
|
7
7
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
8
8
|
import '../FileUpload/types.js';
|
|
9
|
-
import '../../Alert
|
|
9
|
+
import '../../Alert--0rz5XL1.js';
|
|
10
10
|
import '@babel/runtime/helpers/extends';
|
|
11
11
|
import '../Alert/consts.js';
|
|
12
12
|
import '../Text/Text.js';
|
|
@@ -22,12 +22,13 @@ import 'react-hook-form';
|
|
|
22
22
|
import 'react-dropzone';
|
|
23
23
|
import '../SVGIcons/IconUpload.js';
|
|
24
24
|
import '../../helpers/format-date.js';
|
|
25
|
+
import 'dayjs/plugin/utc';
|
|
25
26
|
import '../../helpers/locale.js';
|
|
26
27
|
import '../../type/locale.js';
|
|
27
28
|
import '../../helpers/storage.js';
|
|
28
29
|
import 'react-toastify';
|
|
29
30
|
import '../../hooks/useGetIsMobile.js';
|
|
30
|
-
import '
|
|
31
|
+
import 'motion/react';
|
|
31
32
|
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
32
33
|
import '../../hooks/useOnOutsideClick.js';
|
|
33
34
|
import '../../hooks/useHideBodyScroll.js';
|
|
@@ -40,11 +41,12 @@ import '../../hooks/useGetElemPositions.js';
|
|
|
40
41
|
import '../../hooks/useGetTooltipPosition.js';
|
|
41
42
|
import '../../hooks/useHideOnScroll.js';
|
|
42
43
|
import 'react-syntax-highlighter';
|
|
44
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
43
45
|
import '../Link/Link.js';
|
|
44
46
|
import '../Popover/PopoverDesktop.js';
|
|
45
47
|
import '../SVGIcons/IconInfo.js';
|
|
46
|
-
import '
|
|
47
|
-
import '
|
|
48
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
49
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
48
50
|
import '@babel/runtime/helpers/typeof';
|
|
49
51
|
import '../SVGIcons/IconDismissFilled.js';
|
|
50
52
|
import '../SVGIcons/IconDelete.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const BadgeV2: (props:
|
|
2
|
+
import { TBadgeV2Props } from './types';
|
|
3
|
+
export declare const BadgeV2: (props: TBadgeV2Props) => ReactElement;
|
|
@@ -15,26 +15,38 @@ var BadgeV2 = function BadgeV2(props) {
|
|
|
15
15
|
text = props.text,
|
|
16
16
|
_props$className = props.className,
|
|
17
17
|
className = _props$className === void 0 ? '' : _props$className,
|
|
18
|
-
iconProps = props.iconProps
|
|
18
|
+
iconProps = props.iconProps,
|
|
19
|
+
withDot = props.withDot,
|
|
20
|
+
dot = props.dot,
|
|
21
|
+
disabled = props.disabled;
|
|
19
22
|
var _ref = iconProps !== null && iconProps !== void 0 ? iconProps : {},
|
|
20
23
|
_ref$size = _ref.size,
|
|
21
24
|
iconSize = _ref$size === void 0 ? 'small' : _ref$size,
|
|
22
25
|
iconType = _ref.type,
|
|
23
26
|
_ref$alignment = _ref.alignment,
|
|
24
27
|
iconAlignment = _ref$alignment === void 0 ? 'left' : _ref$alignment;
|
|
25
|
-
|
|
28
|
+
var baseClassName = classNames("badge-v2 badge-v2--".concat(type, " badge-v2--").concat(style, " badge-v2--").concat(size), {
|
|
29
|
+
'badge-v2--disabled': disabled
|
|
30
|
+
}, className);
|
|
31
|
+
if (dot) {
|
|
32
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
33
|
+
className: classNames(baseClassName, 'badge-v2--dot')
|
|
34
|
+
});
|
|
35
|
+
}
|
|
26
36
|
return /*#__PURE__*/React.createElement("div", {
|
|
27
|
-
className:
|
|
28
|
-
},
|
|
37
|
+
className: baseClassName
|
|
38
|
+
}, withDot ? /*#__PURE__*/React.createElement("div", {
|
|
39
|
+
className: classNames(baseClassName, 'badge-v2--dot badge-v2--with-dot')
|
|
40
|
+
}) : null, !withDot && iconProps && iconAlignment === 'left' ? /*#__PURE__*/React.createElement(iconProps.Component, {
|
|
29
41
|
size: iconSize,
|
|
30
42
|
type: iconType
|
|
31
|
-
}), typeof text === 'string' || typeof text === 'number' ? /*#__PURE__*/React.createElement(Text, {
|
|
43
|
+
}) : null, typeof text === 'string' || typeof text === 'number' ? /*#__PURE__*/React.createElement(Text, {
|
|
32
44
|
size: "xsmall",
|
|
33
|
-
className: "
|
|
34
|
-
},
|
|
45
|
+
className: "badge-v2__inner"
|
|
46
|
+
}, text) : /*#__PURE__*/React.isValidElement(text) ? text : null, !withDot && iconProps && iconAlignment === 'right' ? /*#__PURE__*/React.createElement(iconProps.Component, {
|
|
35
47
|
size: iconSize,
|
|
36
48
|
type: iconType
|
|
37
|
-
}));
|
|
49
|
+
}) : null);
|
|
38
50
|
};
|
|
39
51
|
|
|
40
52
|
export { BadgeV2 };
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { TSVGIconType } from '../SVGIcons/types';
|
|
3
|
-
export interface
|
|
3
|
+
export interface TBadgeV2Props extends IFormCompProps {
|
|
4
4
|
text?: number | string | ReactNode;
|
|
5
|
-
type?: 'gray' | 'blue' | 'orange' | 'red' | 'green' | 'yellow' | 'purple' | 'sky' | 'pink' | 'teal'
|
|
5
|
+
type?: 'gray' | 'blue' | 'orange' | 'red' | 'green' | 'yellow' | 'purple' | 'sky' | 'pink' | 'teal';
|
|
6
6
|
size?: 'large' | 'small';
|
|
7
7
|
style?: 'filled' | 'light' | 'lighter' | 'stroke';
|
|
8
8
|
iconProps?: TIconProps;
|
|
9
9
|
className?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
dot?: boolean;
|
|
12
|
+
withDot?: boolean;
|
|
10
13
|
}
|
|
11
14
|
export declare enum BadgeSize {
|
|
12
15
|
small = "small",
|
|
@@ -7,11 +7,12 @@ import 'dayjs';
|
|
|
7
7
|
import '../../helperComponents/Loader/Loader.js';
|
|
8
8
|
import '@babel/runtime/helpers/slicedToArray';
|
|
9
9
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
10
|
-
export { B as Button } from '../../Alert
|
|
10
|
+
export { B as Button } from '../../Alert--0rz5XL1.js';
|
|
11
11
|
import '../../consts/index.js';
|
|
12
12
|
import '../../hooks/useScreenSize.js';
|
|
13
13
|
import 'react-hook-form';
|
|
14
14
|
import 'react-syntax-highlighter';
|
|
15
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
15
16
|
import './consts.js';
|
|
16
17
|
import '../Alert/consts.js';
|
|
17
18
|
import '../Text/Text.js';
|
|
@@ -21,12 +22,13 @@ import '../SVGIcons/IconUpload.js';
|
|
|
21
22
|
import '../../type/file-upload.js';
|
|
22
23
|
import '../FileUpload/types.js';
|
|
23
24
|
import '../../helpers/format-date.js';
|
|
25
|
+
import 'dayjs/plugin/utc';
|
|
24
26
|
import '../../helpers/locale.js';
|
|
25
27
|
import '../../type/locale.js';
|
|
26
28
|
import '../../helpers/storage.js';
|
|
27
29
|
import 'react-toastify';
|
|
28
30
|
import '../../hooks/useGetIsMobile.js';
|
|
29
|
-
import '
|
|
31
|
+
import 'motion/react';
|
|
30
32
|
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
31
33
|
import '../../hooks/useOnOutsideClick.js';
|
|
32
34
|
import '../../hooks/useHideBodyScroll.js';
|
|
@@ -41,8 +43,8 @@ import '../../hooks/useHideOnScroll.js';
|
|
|
41
43
|
import '../Link/Link.js';
|
|
42
44
|
import '../Popover/PopoverDesktop.js';
|
|
43
45
|
import '../SVGIcons/IconInfo.js';
|
|
44
|
-
import '
|
|
45
|
-
import '
|
|
46
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
47
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
46
48
|
import '@babel/runtime/helpers/typeof';
|
|
47
49
|
import '../SVGIcons/IconDismissFilled.js';
|
|
48
50
|
import '../SVGIcons/IconDelete.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Button } from '../../Alert
|
|
1
|
+
export { B as Button } from '../../Alert--0rz5XL1.js';
|
|
2
2
|
import '@babel/runtime/helpers/extends';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../Alert/consts.js';
|
|
@@ -19,12 +19,13 @@ import 'react-dropzone';
|
|
|
19
19
|
import '../SVGIcons/IconUpload.js';
|
|
20
20
|
import '../FileUpload/types.js';
|
|
21
21
|
import '../../helpers/format-date.js';
|
|
22
|
+
import 'dayjs/plugin/utc';
|
|
22
23
|
import '../../helpers/locale.js';
|
|
23
24
|
import '../../type/locale.js';
|
|
24
25
|
import '../../helpers/storage.js';
|
|
25
26
|
import 'react-toastify';
|
|
26
27
|
import '../../hooks/useGetIsMobile.js';
|
|
27
|
-
import '
|
|
28
|
+
import 'motion/react';
|
|
28
29
|
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
29
30
|
import '../../hooks/useOnOutsideClick.js';
|
|
30
31
|
import '../../hooks/useHideBodyScroll.js';
|
|
@@ -37,11 +38,12 @@ import '../../hooks/useGetElemPositions.js';
|
|
|
37
38
|
import '../../hooks/useGetTooltipPosition.js';
|
|
38
39
|
import '../../hooks/useHideOnScroll.js';
|
|
39
40
|
import 'react-syntax-highlighter';
|
|
41
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
40
42
|
import '../Link/Link.js';
|
|
41
43
|
import '../Popover/PopoverDesktop.js';
|
|
42
44
|
import '../SVGIcons/IconInfo.js';
|
|
43
|
-
import '
|
|
44
|
-
import '
|
|
45
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
46
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
45
47
|
import '@babel/runtime/helpers/typeof';
|
|
46
48
|
import '../SVGIcons/IconDismissFilled.js';
|
|
47
49
|
import '../SVGIcons/IconDelete.js';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
2
|
+
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { ButtonGroupItem } from './ButtonGroupItem.js';
|
|
6
|
+
import '../Text/Text.js';
|
|
7
|
+
import '../../utils/helpers.js';
|
|
8
|
+
import 'dayjs';
|
|
9
|
+
import './consts.js';
|
|
10
|
+
|
|
11
|
+
var ButtonGroup = function ButtonGroup(_ref) {
|
|
12
|
+
var buttons = _ref.buttons,
|
|
13
|
+
_ref$activeIndex = _ref.activeIndex,
|
|
14
|
+
activeIndex = _ref$activeIndex === void 0 ? 0 : _ref$activeIndex,
|
|
15
|
+
className = _ref.className,
|
|
16
|
+
type = _ref.type,
|
|
17
|
+
size = _ref.size,
|
|
18
|
+
disabled = _ref.disabled,
|
|
19
|
+
onTabChange = _ref.onTabChange;
|
|
20
|
+
var _useState = useState(activeIndex),
|
|
21
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
22
|
+
activeItem = _useState2[0],
|
|
23
|
+
setActiveItem = _useState2[1];
|
|
24
|
+
var handleItemClick = function handleItemClick(index) {
|
|
25
|
+
if (disabled || activeItem === index) return;
|
|
26
|
+
setActiveItem(index);
|
|
27
|
+
onTabChange === null || onTabChange === void 0 || onTabChange(index);
|
|
28
|
+
};
|
|
29
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: classNames('button-group', className)
|
|
31
|
+
}, buttons.map(function (button) {
|
|
32
|
+
return /*#__PURE__*/React.createElement(ButtonGroupItem, _extends({
|
|
33
|
+
key: "buttonGroup_".concat(button.id)
|
|
34
|
+
}, button, {
|
|
35
|
+
type: type,
|
|
36
|
+
size: size,
|
|
37
|
+
isActive: activeItem === button.id,
|
|
38
|
+
disabled: disabled,
|
|
39
|
+
onClick: function onClick() {
|
|
40
|
+
return handleItemClick(button.id);
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
43
|
+
}));
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { ButtonGroup };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { Text } from '../Text/Text.js';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { ICON_SIZE_MAPPING, TEXT_SIZE_MAPPING } from './consts.js';
|
|
5
|
+
import '../../utils/helpers.js';
|
|
6
|
+
import 'dayjs';
|
|
7
|
+
|
|
8
|
+
var ButtonGroupItem = function ButtonGroupItem(_ref) {
|
|
9
|
+
var _icons$left, _icons$right;
|
|
10
|
+
var buttonText = _ref.buttonText,
|
|
11
|
+
_ref$size = _ref.size,
|
|
12
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
13
|
+
_ref$type = _ref.type,
|
|
14
|
+
type = _ref$type === void 0 ? 'primary' : _ref$type,
|
|
15
|
+
isActive = _ref.isActive,
|
|
16
|
+
disabled = _ref.disabled,
|
|
17
|
+
onClick = _ref.onClick,
|
|
18
|
+
className = _ref.className,
|
|
19
|
+
icons = _ref.icons;
|
|
20
|
+
var onClickHandler = function onClickHandler(event) {
|
|
21
|
+
event.preventDefault();
|
|
22
|
+
event.stopPropagation();
|
|
23
|
+
onClick === null || onClick === void 0 || onClick();
|
|
24
|
+
};
|
|
25
|
+
var iconType = useMemo(function () {
|
|
26
|
+
if (disabled) {
|
|
27
|
+
return 'disabled';
|
|
28
|
+
}
|
|
29
|
+
if (isActive) {
|
|
30
|
+
return 'primary';
|
|
31
|
+
}
|
|
32
|
+
return 'tertiary';
|
|
33
|
+
}, [disabled, isActive]);
|
|
34
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: classNames('button-group-item', "button-group-item__".concat(type), "button-group-item__".concat(size), {
|
|
36
|
+
active: isActive,
|
|
37
|
+
disabled: disabled
|
|
38
|
+
}, className),
|
|
39
|
+
onClick: onClickHandler
|
|
40
|
+
}, icons !== null && icons !== void 0 && (_icons$left = icons.left) !== null && _icons$left !== void 0 && _icons$left.Component ? /*#__PURE__*/React.createElement(icons.left.Component, {
|
|
41
|
+
size: ICON_SIZE_MAPPING[size],
|
|
42
|
+
type: iconType
|
|
43
|
+
}) : null, /*#__PURE__*/React.createElement(Text, {
|
|
44
|
+
size: TEXT_SIZE_MAPPING[size],
|
|
45
|
+
type: iconType
|
|
46
|
+
}, buttonText), icons !== null && icons !== void 0 && (_icons$right = icons.right) !== null && _icons$right !== void 0 && _icons$right.Component ? /*#__PURE__*/React.createElement(icons.right.Component, {
|
|
47
|
+
size: ICON_SIZE_MAPPING[size],
|
|
48
|
+
type: iconType
|
|
49
|
+
}) : null);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export { ButtonGroupItem };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ButtonGroup';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { ButtonGroup } from './ButtonGroup.js';
|
|
2
|
+
import '@babel/runtime/helpers/extends';
|
|
3
|
+
import '@babel/runtime/helpers/slicedToArray';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'classnames';
|
|
6
|
+
import './ButtonGroupItem.js';
|
|
7
|
+
import '../Text/Text.js';
|
|
8
|
+
import '../../utils/helpers.js';
|
|
9
|
+
import 'dayjs';
|
|
10
|
+
import './consts.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ISVGIconProps } from '../SVGIcons/types';
|
|
2
|
+
interface IButtonGroupBase {
|
|
3
|
+
type?: 'primary';
|
|
4
|
+
size?: 'small' | 'medium' | 'large';
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IButtonGroupItem extends IButtonGroupBase {
|
|
9
|
+
buttonText: string;
|
|
10
|
+
isActive?: boolean;
|
|
11
|
+
id: string | number;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
icons?: {
|
|
14
|
+
left?: ISVGIconProps;
|
|
15
|
+
right?: ISVGIconProps;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface IButtonGroup extends IButtonGroupBase {
|
|
19
|
+
buttons: IButtonGroupItem[];
|
|
20
|
+
activeIndex: number | string;
|
|
21
|
+
onTabChange?: (index: number | string) => void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TCardProps } from './types';
|
|
3
|
-
export declare const Card: (({ children, isExpanded, ...rest }: TCardProps) => React.ReactElement) & {
|
|
3
|
+
export declare const Card: (({ children, isExpanded, isExpandedFromParent, ...rest }: TCardProps) => React.ReactElement) & {
|
|
4
4
|
Head: ({ children }: {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
Body: ({ children }: {
|
|
8
8
|
children: React.ReactNode;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
Footer: ({ children }: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}) => false | import("react/jsx-runtime").JSX.Element;
|
|
10
13
|
};
|