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
|
@@ -2,11 +2,12 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { Input } from '../Input/Input.js';
|
|
5
|
-
import { B as Button } from '../../Alert
|
|
5
|
+
import { B as Button } from '../../Alert--0rz5XL1.js';
|
|
6
6
|
import { Select } from '../Select/Select/Select.js';
|
|
7
7
|
import '../Select/MultiSelect/MultiSelect.js';
|
|
8
8
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
9
9
|
import { Text } from '../Text/Text.js';
|
|
10
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
10
11
|
import 'dayjs';
|
|
11
12
|
import classNames from 'classnames';
|
|
12
13
|
import '@babel/runtime/helpers/extends';
|
|
@@ -14,24 +15,23 @@ import '../../consts/index.js';
|
|
|
14
15
|
import '../../hooks/useScreenSize.js';
|
|
15
16
|
import 'react-hook-form';
|
|
16
17
|
import 'react-syntax-highlighter';
|
|
18
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
17
19
|
import 'react-dom';
|
|
18
|
-
import '
|
|
20
|
+
import 'motion/react';
|
|
19
21
|
import { IconChevronRight } from '../SVGIcons/IconChevronRight.js';
|
|
20
|
-
import { IconChevronLeft } from '../SVGIcons/IconChevronLeft.js';
|
|
21
|
-
import { IconMore } from '../SVGIcons/IconMore.js';
|
|
22
22
|
import { IconChevronDoubleLeft } from '../SVGIcons/IconChevronDoubleLeft.js';
|
|
23
23
|
import { IconChevronDoubleRight } from '../SVGIcons/IconChevronDoubleRight.js';
|
|
24
|
+
import { IconChevronLeft } from '../SVGIcons/IconChevronLeft.js';
|
|
25
|
+
import { IconMore } from '../SVGIcons/IconMore.js';
|
|
24
26
|
import '../Collapse/CollapseGroup/CollapseGroup.js';
|
|
25
27
|
import '../Select/SharedComponents/ContentTop.js';
|
|
26
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
27
28
|
import { OPTIONS } from './constants/index.js';
|
|
28
29
|
import 'react-input-mask';
|
|
29
30
|
import 'react-number-format';
|
|
30
31
|
import '../../helperComponents/Label/Label.js';
|
|
31
32
|
import '../../utils/helpers.js';
|
|
32
33
|
import '../../helperComponents/ErrorMessage/ErrorMessage.js';
|
|
33
|
-
import '
|
|
34
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
34
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
35
35
|
import '../SVGIcons/IconCheckmarkCircleFilled.js';
|
|
36
36
|
import '../../type/file-upload.js';
|
|
37
37
|
import '../Alert/consts.js';
|
|
@@ -40,6 +40,7 @@ import 'react-dropzone';
|
|
|
40
40
|
import '../SVGIcons/IconUpload.js';
|
|
41
41
|
import '../FileUpload/types.js';
|
|
42
42
|
import '../../helpers/format-date.js';
|
|
43
|
+
import 'dayjs/plugin/utc';
|
|
43
44
|
import '../../helpers/locale.js';
|
|
44
45
|
import '../../type/locale.js';
|
|
45
46
|
import '../../helpers/storage.js';
|
|
@@ -59,6 +60,7 @@ import '../../hooks/useHideOnScroll.js';
|
|
|
59
60
|
import '../Link/Link.js';
|
|
60
61
|
import '../Popover/PopoverDesktop.js';
|
|
61
62
|
import '../SVGIcons/IconInfo.js';
|
|
63
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
62
64
|
import '@babel/runtime/helpers/typeof';
|
|
63
65
|
import '../SVGIcons/IconDismissFilled.js';
|
|
64
66
|
import '../SVGIcons/IconDelete.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import { B as Button } from '../../Alert
|
|
3
|
+
import { B as Button } from '../../Alert--0rz5XL1.js';
|
|
4
4
|
import '@babel/runtime/helpers/defineProperty';
|
|
5
5
|
import 'classnames';
|
|
6
6
|
import { IconSettings } from '../SVGIcons/IconSettings.js';
|
|
@@ -13,21 +13,23 @@ import 'dayjs';
|
|
|
13
13
|
import '../../hooks/useScreenSize.js';
|
|
14
14
|
import 'react-hook-form';
|
|
15
15
|
import '@babel/runtime/helpers/extends';
|
|
16
|
-
import '
|
|
16
|
+
import 'motion/react';
|
|
17
17
|
import '../Collapse/CollapseGroup/CollapseGroup.js';
|
|
18
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
18
19
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
19
20
|
import { Tooltip } from '../Tooltip/Tooltip.js';
|
|
20
21
|
import 'react-syntax-highlighter';
|
|
22
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
21
23
|
import '../Alert/consts.js';
|
|
22
24
|
import '../Text/Text.js';
|
|
23
25
|
import '../../utils/helpers.js';
|
|
24
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
25
26
|
import '../../helperComponents/Loader/Loader.js';
|
|
26
27
|
import 'react-dropzone';
|
|
27
28
|
import '../SVGIcons/IconUpload.js';
|
|
28
29
|
import '../../type/file-upload.js';
|
|
29
30
|
import '../FileUpload/types.js';
|
|
30
31
|
import '../../helpers/format-date.js';
|
|
32
|
+
import 'dayjs/plugin/utc';
|
|
31
33
|
import '../../helpers/locale.js';
|
|
32
34
|
import '../../type/locale.js';
|
|
33
35
|
import '../../helpers/storage.js';
|
|
@@ -45,8 +47,8 @@ import '../../hooks/useGetElemPositions.js';
|
|
|
45
47
|
import '../../hooks/useGetTooltipPosition.js';
|
|
46
48
|
import '../../hooks/useHideOnScroll.js';
|
|
47
49
|
import '../SVGIcons/IconInfo.js';
|
|
48
|
-
import '
|
|
49
|
-
import '
|
|
50
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
51
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
50
52
|
import '@babel/runtime/helpers/typeof';
|
|
51
53
|
import '../SVGIcons/IconDismissFilled.js';
|
|
52
54
|
import '../SVGIcons/IconDelete.js';
|
|
@@ -56,7 +58,6 @@ import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
|
56
58
|
import '../../helpers/download-file.js';
|
|
57
59
|
import '../Button/consts.js';
|
|
58
60
|
import '../../helperComponents/Label/Label.js';
|
|
59
|
-
import '../SVGIcons/IconCheckmark.js';
|
|
60
61
|
import '../../helperComponents/OptionItem/OptionItem.js';
|
|
61
62
|
import '../Avatar/Avatar.js';
|
|
62
63
|
import '../FileUpload/FileUpload.js';
|
|
@@ -67,6 +68,7 @@ import '../../helperComponents/ErrorMessage/ErrorMessage.js';
|
|
|
67
68
|
import '../SVGIcons/IconEditFilled.js';
|
|
68
69
|
import '../SVGIcons/IconEdit.js';
|
|
69
70
|
import '../SVGIcons/IconAttach.js';
|
|
71
|
+
import '../SVGIcons/IconCheckmark.js';
|
|
70
72
|
import '../Collapse/CollapseItem/CollapseItem.js';
|
|
71
73
|
import '../SVGIcons/IconChevronRight.js';
|
|
72
74
|
import '../Divider/Divider.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { forwardRef, useRef, useEffect } from 'react';
|
|
2
|
-
import { C as Checkbox } from '../../Alert
|
|
2
|
+
import { C as Checkbox } from '../../Alert--0rz5XL1.js';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import '@babel/runtime/helpers/extends';
|
|
5
5
|
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';
|
|
@@ -11,9 +11,10 @@ import { useTableControl } from './hooks/useTableControl.js';
|
|
|
11
11
|
import { Text } from '../Text/Text.js';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
13
|
import { Empty } from '../Empty/Empty.js';
|
|
14
|
-
import { B as Button } from '../../Alert
|
|
14
|
+
import { B as Button } from '../../Alert--0rz5XL1.js';
|
|
15
15
|
import { IconChevronDown } from '../SVGIcons/IconChevronDown.js';
|
|
16
16
|
import { IconChevronUp } from '../SVGIcons/IconChevronUp.js';
|
|
17
|
+
import 'react-loading-skeleton/dist/skeleton.css';
|
|
17
18
|
import '@babel/runtime/helpers/extends';
|
|
18
19
|
import '../SVGIcons/IconArrowDown.js';
|
|
19
20
|
import '../SVGIcons/IconArrowSort.js';
|
|
@@ -32,12 +33,13 @@ import 'react-dropzone';
|
|
|
32
33
|
import '../SVGIcons/IconUpload.js';
|
|
33
34
|
import '../FileUpload/types.js';
|
|
34
35
|
import '../../helpers/format-date.js';
|
|
36
|
+
import 'dayjs/plugin/utc';
|
|
35
37
|
import '../../helpers/locale.js';
|
|
36
38
|
import '../../type/locale.js';
|
|
37
39
|
import '../../helpers/storage.js';
|
|
38
40
|
import 'react-toastify';
|
|
39
41
|
import '../../hooks/useGetIsMobile.js';
|
|
40
|
-
import '
|
|
42
|
+
import 'motion/react';
|
|
41
43
|
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
42
44
|
import '../../hooks/useOnOutsideClick.js';
|
|
43
45
|
import '../../hooks/useHideBodyScroll.js';
|
|
@@ -50,11 +52,12 @@ import '../../hooks/useGetElemPositions.js';
|
|
|
50
52
|
import '../../hooks/useGetTooltipPosition.js';
|
|
51
53
|
import '../../hooks/useHideOnScroll.js';
|
|
52
54
|
import 'react-syntax-highlighter';
|
|
55
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
53
56
|
import '../Link/Link.js';
|
|
54
57
|
import '../Popover/PopoverDesktop.js';
|
|
55
58
|
import '../SVGIcons/IconInfo.js';
|
|
56
|
-
import '
|
|
57
|
-
import '
|
|
59
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
60
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
58
61
|
import '@babel/runtime/helpers/typeof';
|
|
59
62
|
import '../SVGIcons/IconDismissFilled.js';
|
|
60
63
|
import '../SVGIcons/IconDelete.js';
|
|
@@ -9,7 +9,7 @@ import { arrayMove } from '@dnd-kit/sortable';
|
|
|
9
9
|
import { loadTableSettings } from '../loadTableSettings.js';
|
|
10
10
|
import { useTableColumnSettings } from './useTableColumnSettings.js';
|
|
11
11
|
import { STORAGE_TYPE, TABLE_NAME_PREFIX } from '../constants/index.js';
|
|
12
|
-
import '../../../Alert
|
|
12
|
+
import '../../../Alert--0rz5XL1.js';
|
|
13
13
|
import '@babel/runtime/helpers/extends';
|
|
14
14
|
import '../../Alert/consts.js';
|
|
15
15
|
import 'classnames';
|
|
@@ -26,12 +26,13 @@ import 'react-dropzone';
|
|
|
26
26
|
import '../../SVGIcons/IconUpload.js';
|
|
27
27
|
import '../../FileUpload/types.js';
|
|
28
28
|
import '../../../helpers/format-date.js';
|
|
29
|
+
import 'dayjs/plugin/utc';
|
|
29
30
|
import '../../../helpers/locale.js';
|
|
30
31
|
import '../../../type/locale.js';
|
|
31
32
|
import '../../../helpers/storage.js';
|
|
32
33
|
import 'react-toastify';
|
|
33
34
|
import '../../../hooks/useGetIsMobile.js';
|
|
34
|
-
import '
|
|
35
|
+
import 'motion/react';
|
|
35
36
|
import '../../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
36
37
|
import '../../../hooks/useOnOutsideClick.js';
|
|
37
38
|
import '../../../hooks/useHideBodyScroll.js';
|
|
@@ -44,11 +45,12 @@ import '../../../hooks/useGetElemPositions.js';
|
|
|
44
45
|
import '../../../hooks/useGetTooltipPosition.js';
|
|
45
46
|
import '../../../hooks/useHideOnScroll.js';
|
|
46
47
|
import 'react-syntax-highlighter';
|
|
48
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
47
49
|
import '../../Link/Link.js';
|
|
48
50
|
import '../../Popover/PopoverDesktop.js';
|
|
49
51
|
import '../../SVGIcons/IconInfo.js';
|
|
50
|
-
import '
|
|
51
|
-
import '
|
|
52
|
+
import '../../IconDynamicComponent/IconDynamicComponent.js';
|
|
53
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
52
54
|
import '@babel/runtime/helpers/typeof';
|
|
53
55
|
import '../../SVGIcons/IconDismissFilled.js';
|
|
54
56
|
import '../../SVGIcons/IconDelete.js';
|
|
@@ -84,8 +86,7 @@ function useTableControl(_ref) {
|
|
|
84
86
|
var savedSettings = shouldPersistToStorage && tableName ? loadTableSettings(tableName) : {
|
|
85
87
|
columnVisibility: {},
|
|
86
88
|
columnSizing: {},
|
|
87
|
-
columnOrder: []
|
|
88
|
-
};
|
|
89
|
+
columnOrder: []};
|
|
89
90
|
var _useState = useState(null),
|
|
90
91
|
_useState2 = _slicedToArray(_useState, 2),
|
|
91
92
|
activeId = _useState2[0],
|
|
@@ -198,6 +199,18 @@ function useTableControl(_ref) {
|
|
|
198
199
|
acc[key] = false;
|
|
199
200
|
return acc;
|
|
200
201
|
}, {});
|
|
202
|
+
var columnPinning = useMemo(function () {
|
|
203
|
+
var left = [];
|
|
204
|
+
memoizedColumns.forEach(function (col) {
|
|
205
|
+
if (col.enablePinning && col.id) {
|
|
206
|
+
left.push(col.id);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
return {
|
|
210
|
+
left: left,
|
|
211
|
+
right: ['actions']
|
|
212
|
+
};
|
|
213
|
+
}, [memoizedColumns]);
|
|
201
214
|
var table = useReactTable({
|
|
202
215
|
data: data,
|
|
203
216
|
columns: reorderedColumns,
|
|
@@ -209,15 +222,7 @@ function useTableControl(_ref) {
|
|
|
209
222
|
columnSizing: columnSizing,
|
|
210
223
|
rowSelection: rowSelection,
|
|
211
224
|
columnVisibility: _objectSpread(_objectSpread({}, hiddenColumns), columnVisibility),
|
|
212
|
-
columnPinning:
|
|
213
|
-
left: ['select'],
|
|
214
|
-
right: ['actions']
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
defaultColumn: {
|
|
218
|
-
minSize: 200,
|
|
219
|
-
size: 150,
|
|
220
|
-
maxSize: 400
|
|
225
|
+
columnPinning: columnPinning
|
|
221
226
|
},
|
|
222
227
|
onPaginationChange: handlePaginationChange,
|
|
223
228
|
onColumnSizingChange: handleColumnSizingChange,
|
|
@@ -20,7 +20,7 @@ import 'dayjs';
|
|
|
20
20
|
import 'react-loading-skeleton';
|
|
21
21
|
import './hooks/useTableControl.js';
|
|
22
22
|
import './IndeterminateCheckbox.js';
|
|
23
|
-
import '../../Alert
|
|
23
|
+
import '../../Alert--0rz5XL1.js';
|
|
24
24
|
import '../Alert/consts.js';
|
|
25
25
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
26
26
|
import '../../helperComponents/Loader/Loader.js';
|
|
@@ -32,12 +32,13 @@ import 'react-dropzone';
|
|
|
32
32
|
import '../SVGIcons/IconUpload.js';
|
|
33
33
|
import '../FileUpload/types.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';
|
|
@@ -50,11 +51,12 @@ import '../../hooks/useGetElemPositions.js';
|
|
|
50
51
|
import '../../hooks/useGetTooltipPosition.js';
|
|
51
52
|
import '../../hooks/useHideOnScroll.js';
|
|
52
53
|
import 'react-syntax-highlighter';
|
|
54
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
53
55
|
import '../Link/Link.js';
|
|
54
56
|
import '../Popover/PopoverDesktop.js';
|
|
55
57
|
import '../SVGIcons/IconInfo.js';
|
|
56
|
-
import '
|
|
57
|
-
import '
|
|
58
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
59
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
58
60
|
import '@babel/runtime/helpers/typeof';
|
|
59
61
|
import '../SVGIcons/IconDismissFilled.js';
|
|
60
62
|
import '../SVGIcons/IconDelete.js';
|
|
@@ -70,10 +72,10 @@ import '../Empty/Empty.js';
|
|
|
70
72
|
import '../Image/Image.js';
|
|
71
73
|
import '../SVGIcons/IconChevronDown.js';
|
|
72
74
|
import '../SVGIcons/IconChevronUp.js';
|
|
75
|
+
import 'react-loading-skeleton/dist/skeleton.css';
|
|
73
76
|
import '../SVGIcons/IconSettings.js';
|
|
74
77
|
import '../Switcher/Switcher.js';
|
|
75
78
|
import '../../helperComponents/Label/Label.js';
|
|
76
|
-
import '../SVGIcons/IconCheckmark.js';
|
|
77
79
|
import '../Menu/Menu.js';
|
|
78
80
|
import 'react-dom';
|
|
79
81
|
import '../../helperComponents/OptionItem/OptionItem.js';
|
|
@@ -86,6 +88,7 @@ import '../../helperComponents/ErrorMessage/ErrorMessage.js';
|
|
|
86
88
|
import '../SVGIcons/IconEditFilled.js';
|
|
87
89
|
import '../SVGIcons/IconEdit.js';
|
|
88
90
|
import '../SVGIcons/IconAttach.js';
|
|
91
|
+
import '../SVGIcons/IconCheckmark.js';
|
|
89
92
|
import '../Collapse/CollapseGroup/CollapseGroup.js';
|
|
90
93
|
import '../Collapse/CollapseItem/CollapseItem.js';
|
|
91
94
|
import '../SVGIcons/IconChevronRight.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementType, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
type TTextTypes = 'primary' | 'secondary' | 'tertiary' | 'disabled' | 'inverse' | 'selected' | 'brand' | 'danger' | 'warning' | 'success' | 'information' | 'discovery';
|
|
3
|
-
type TTextSize = 'xxsmall' | 'xsmall' | 'small' | 'standard' | 'medium' | 'large';
|
|
3
|
+
export type TTextSize = 'xxsmall' | 'xsmall' | 'small' | 'standard' | 'medium' | 'large' | 'xlarge';
|
|
4
4
|
type TTextWeight = 'regular' | 'semibold' | 'bold' | 'bolder';
|
|
5
5
|
type TTextLineHeight = 'xsmall' | 'small' | 'medium' | 'large';
|
|
6
6
|
export interface TextPropTypes {
|
|
@@ -12,12 +12,12 @@ import '../../consts/index.js';
|
|
|
12
12
|
import 'dayjs';
|
|
13
13
|
import '../../hooks/useScreenSize.js';
|
|
14
14
|
import 'react-hook-form';
|
|
15
|
-
import '../../Alert
|
|
15
|
+
import '../../Alert--0rz5XL1.js';
|
|
16
16
|
import 'react-syntax-highlighter';
|
|
17
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
17
18
|
import { IconCheckmarkCircleFilled } from '../SVGIcons/IconCheckmarkCircleFilled.js';
|
|
18
19
|
import '../../utils/helpers.js';
|
|
19
|
-
import '
|
|
20
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
20
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
21
21
|
import '../../type/file-upload.js';
|
|
22
22
|
import '../Alert/consts.js';
|
|
23
23
|
import '../../helperComponents/Loader/Loader.js';
|
|
@@ -25,12 +25,13 @@ import 'react-dropzone';
|
|
|
25
25
|
import '../SVGIcons/IconUpload.js';
|
|
26
26
|
import '../FileUpload/types.js';
|
|
27
27
|
import '../../helpers/format-date.js';
|
|
28
|
+
import 'dayjs/plugin/utc';
|
|
28
29
|
import '../../helpers/locale.js';
|
|
29
30
|
import '../../type/locale.js';
|
|
30
31
|
import '../../helpers/storage.js';
|
|
31
32
|
import 'react-toastify';
|
|
32
33
|
import '../../hooks/useGetIsMobile.js';
|
|
33
|
-
import '
|
|
34
|
+
import 'motion/react';
|
|
34
35
|
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
35
36
|
import '../../hooks/useOnOutsideClick.js';
|
|
36
37
|
import '../../hooks/useHideBodyScroll.js';
|
|
@@ -45,6 +46,7 @@ import '../../hooks/useHideOnScroll.js';
|
|
|
45
46
|
import '../Link/Link.js';
|
|
46
47
|
import '../Popover/PopoverDesktop.js';
|
|
47
48
|
import '../SVGIcons/IconInfo.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';
|
|
@@ -8,8 +8,7 @@ import 'classnames';
|
|
|
8
8
|
import '../../utils/helpers.js';
|
|
9
9
|
import 'dayjs';
|
|
10
10
|
import '../../helperComponents/ErrorMessage/ErrorMessage.js';
|
|
11
|
-
import '
|
|
12
|
-
import '../../helperComponents/IconDynamicComponent/constants.js';
|
|
11
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
13
12
|
import '@babel/runtime/helpers/slicedToArray';
|
|
14
13
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
15
14
|
import '@babel/runtime/helpers/defineProperty';
|
|
@@ -17,19 +16,20 @@ import '../../consts/index.js';
|
|
|
17
16
|
import '../../type/file-upload.js';
|
|
18
17
|
import '../../hooks/useScreenSize.js';
|
|
19
18
|
import 'react-hook-form';
|
|
20
|
-
import '../../Alert
|
|
19
|
+
import '../../Alert--0rz5XL1.js';
|
|
21
20
|
import '../Alert/consts.js';
|
|
22
21
|
import '../../helperComponents/Loader/Loader.js';
|
|
23
22
|
import 'react-dropzone';
|
|
24
23
|
import '../SVGIcons/IconUpload.js';
|
|
25
24
|
import '../FileUpload/types.js';
|
|
26
25
|
import '../../helpers/format-date.js';
|
|
26
|
+
import 'dayjs/plugin/utc';
|
|
27
27
|
import '../../helpers/locale.js';
|
|
28
28
|
import '../../type/locale.js';
|
|
29
29
|
import '../../helpers/storage.js';
|
|
30
30
|
import 'react-toastify';
|
|
31
31
|
import '../../hooks/useGetIsMobile.js';
|
|
32
|
-
import '
|
|
32
|
+
import 'motion/react';
|
|
33
33
|
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
34
34
|
import '../../hooks/useOnOutsideClick.js';
|
|
35
35
|
import '../../hooks/useHideBodyScroll.js';
|
|
@@ -42,9 +42,11 @@ import '../../hooks/useGetElemPositions.js';
|
|
|
42
42
|
import '../../hooks/useGetTooltipPosition.js';
|
|
43
43
|
import '../../hooks/useHideOnScroll.js';
|
|
44
44
|
import 'react-syntax-highlighter';
|
|
45
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
45
46
|
import '../Link/Link.js';
|
|
46
47
|
import '../Popover/PopoverDesktop.js';
|
|
47
48
|
import '../SVGIcons/IconInfo.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';
|