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
package/components/Card/Card.js
CHANGED
|
@@ -1,31 +1,81 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
2
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
4
|
-
import React, { useState } from 'react';
|
|
4
|
+
import React, { useState, useEffect } from 'react';
|
|
5
5
|
import { CardContext } from './CardContext.js';
|
|
6
6
|
import { Card as Card$1 } from './CardComponent/Card.js';
|
|
7
7
|
import { CardHead } from './CardComponent/CardHead.js';
|
|
8
8
|
import { CardBody } from './CardComponent/CardBody.js';
|
|
9
|
+
import { CardFooter } from './CardComponent/CardFooter.js';
|
|
10
|
+
import { noop } from '../../utils/helpers.js';
|
|
9
11
|
import 'classnames';
|
|
10
|
-
import '../../utils/helpers.js';
|
|
11
|
-
import 'dayjs';
|
|
12
12
|
import '../SVGIcons/IconChevronDown.js';
|
|
13
13
|
import '../SVGIcons/IconChevronRight.js';
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
14
|
+
import '../../Alert--0rz5XL1.js';
|
|
15
|
+
import '@babel/runtime/helpers/extends';
|
|
16
|
+
import '../Alert/consts.js';
|
|
17
|
+
import '../Text/Text.js';
|
|
18
|
+
import 'dayjs';
|
|
19
|
+
import '../../helperComponents/Loader/Loader.js';
|
|
20
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
21
|
+
import '../../consts/index.js';
|
|
22
|
+
import '../../type/file-upload.js';
|
|
23
|
+
import '../../hooks/useScreenSize.js';
|
|
24
|
+
import 'react-hook-form';
|
|
25
|
+
import 'react-dropzone';
|
|
26
|
+
import '../SVGIcons/IconUpload.js';
|
|
27
|
+
import '../FileUpload/types.js';
|
|
28
|
+
import '../../helpers/format-date.js';
|
|
29
|
+
import 'dayjs/plugin/utc';
|
|
30
|
+
import '../../helpers/locale.js';
|
|
31
|
+
import '../../type/locale.js';
|
|
32
|
+
import '../../helpers/storage.js';
|
|
33
|
+
import 'react-toastify';
|
|
34
|
+
import '../../hooks/useGetIsMobile.js';
|
|
35
|
+
import 'motion/react';
|
|
16
36
|
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
37
|
+
import '../../hooks/useOnOutsideClick.js';
|
|
38
|
+
import '../../hooks/useHideBodyScroll.js';
|
|
39
|
+
import '../SVGIcons/IconDismiss.js';
|
|
40
|
+
import '../Tooltip/types.js';
|
|
41
|
+
import '../Tooltip/Tooltip.js';
|
|
42
|
+
import '../../hooks/useGetTooltipStyles.js';
|
|
43
|
+
import '../../hooks/useGetElemSizes.js';
|
|
44
|
+
import '../../hooks/useGetElemPositions.js';
|
|
45
|
+
import '../../hooks/useGetTooltipPosition.js';
|
|
46
|
+
import '../../hooks/useHideOnScroll.js';
|
|
47
|
+
import 'react-syntax-highlighter';
|
|
48
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
49
|
+
import '../Link/Link.js';
|
|
50
|
+
import '../Popover/PopoverDesktop.js';
|
|
51
|
+
import '../SVGIcons/IconInfo.js';
|
|
52
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
53
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
54
|
+
import '@babel/runtime/helpers/typeof';
|
|
55
|
+
import '../SVGIcons/IconDismissFilled.js';
|
|
56
|
+
import '../SVGIcons/IconDelete.js';
|
|
57
|
+
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
58
|
+
import '../Progress/Progress.js';
|
|
59
|
+
import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
60
|
+
import '../../helpers/download-file.js';
|
|
61
|
+
import '../Button/consts.js';
|
|
62
|
+
import '../Divider/Divider.js';
|
|
17
63
|
|
|
18
|
-
var _excluded = ["children", "isExpanded"];
|
|
64
|
+
var _excluded = ["children", "isExpanded", "isExpandedFromParent"];
|
|
19
65
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
20
66
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
21
67
|
var CardComponent = function CardComponent(_ref) {
|
|
22
68
|
var children = _ref.children,
|
|
23
69
|
isExpanded = _ref.isExpanded,
|
|
70
|
+
isExpandedFromParent = _ref.isExpandedFromParent,
|
|
24
71
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
72
|
var _useState = useState(isExpanded !== null && isExpanded !== void 0 ? isExpanded : false),
|
|
26
73
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27
74
|
isCardExpanded = _useState2[0],
|
|
28
75
|
toggleIsExpanded = _useState2[1];
|
|
76
|
+
useEffect(function () {
|
|
77
|
+
return typeof isExpandedFromParent === 'boolean' ? toggleIsExpanded(isExpandedFromParent) : noop;
|
|
78
|
+
}, [isExpandedFromParent]);
|
|
29
79
|
return /*#__PURE__*/React.createElement(CardContext.Provider, {
|
|
30
80
|
value: _objectSpread(_objectSpread({}, rest), {}, {
|
|
31
81
|
isExpanded: isCardExpanded,
|
|
@@ -35,7 +85,8 @@ var CardComponent = function CardComponent(_ref) {
|
|
|
35
85
|
};
|
|
36
86
|
var Card = Object.assign(CardComponent, {
|
|
37
87
|
Head: CardHead,
|
|
38
|
-
Body: CardBody
|
|
88
|
+
Body: CardBody,
|
|
89
|
+
Footer: CardFooter
|
|
39
90
|
});
|
|
40
91
|
|
|
41
92
|
export { Card };
|
|
@@ -12,7 +12,8 @@ var Card = function Card(_ref) {
|
|
|
12
12
|
className = _useCardContext.className,
|
|
13
13
|
title = _useCardContext.title,
|
|
14
14
|
dataId = _useCardContext.dataId,
|
|
15
|
-
id = _useCardContext.id
|
|
15
|
+
id = _useCardContext.id,
|
|
16
|
+
noBorder = _useCardContext.noBorder;
|
|
16
17
|
var _ref2 = title !== null && title !== void 0 ? title : {
|
|
17
18
|
alignment: 'left',
|
|
18
19
|
color: 'blue'
|
|
@@ -21,9 +22,9 @@ var Card = function Card(_ref) {
|
|
|
21
22
|
color = _ref2.color,
|
|
22
23
|
text = _ref2.text;
|
|
23
24
|
return /*#__PURE__*/React.createElement("div", {
|
|
24
|
-
className: classNames('card', _defineProperty({
|
|
25
|
+
className: classNames('card', _defineProperty(_defineProperty({
|
|
25
26
|
'card--expanded': isExpanded
|
|
26
|
-
}, "card--title--alignment--".concat(alignment), title), className),
|
|
27
|
+
}, "card--title--alignment--".concat(alignment), title), 'card--noBorder', noBorder), className),
|
|
27
28
|
id: "".concat(id || ''),
|
|
28
29
|
"data-id": generateDataTestId('card-item', dataId)
|
|
29
30
|
}, title && /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { motion } from '
|
|
2
|
+
import { motion } from 'motion/react';
|
|
3
3
|
import { useCardContext } from '../CardContext.js';
|
|
4
4
|
import { Divider } from '../../Divider/Divider.js';
|
|
5
5
|
import { AnimatePresenceWrapper } from '../../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
@@ -8,11 +8,11 @@ import 'classnames';
|
|
|
8
8
|
var CardBody = function CardBody(_ref) {
|
|
9
9
|
var children = _ref.children;
|
|
10
10
|
var _useCardContext = useCardContext(),
|
|
11
|
-
isExpanded = _useCardContext.isExpanded
|
|
12
|
-
|
|
11
|
+
isExpanded = _useCardContext.isExpanded,
|
|
12
|
+
noDivider = _useCardContext.noDivider;
|
|
13
13
|
return /*#__PURE__*/React.createElement(AnimatePresenceWrapper, {
|
|
14
14
|
initial: false
|
|
15
|
-
}, /*#__PURE__*/React.createElement(motion.div, {
|
|
15
|
+
}, isExpanded && /*#__PURE__*/React.createElement(motion.div, {
|
|
16
16
|
initial: {
|
|
17
17
|
height: 0
|
|
18
18
|
},
|
|
@@ -29,7 +29,7 @@ var CardBody = function CardBody(_ref) {
|
|
|
29
29
|
}
|
|
30
30
|
}, /*#__PURE__*/React.createElement("div", {
|
|
31
31
|
className: "card__content--body"
|
|
32
|
-
}, /*#__PURE__*/React.createElement(Divider, {
|
|
32
|
+
}, !noDivider && /*#__PURE__*/React.createElement(Divider, {
|
|
33
33
|
type: "primary",
|
|
34
34
|
isHorizontal: true,
|
|
35
35
|
className: "card__divider"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useCardContext } from '../CardContext.js';
|
|
3
|
+
|
|
4
|
+
var CardFooter = function CardFooter(_ref) {
|
|
5
|
+
var children = _ref.children;
|
|
6
|
+
var _useCardContext = useCardContext(),
|
|
7
|
+
isExpanded = _useCardContext.isExpanded;
|
|
8
|
+
return !isExpanded && /*#__PURE__*/React.createElement("div", {
|
|
9
|
+
className: "card__content--footer"
|
|
10
|
+
}, children);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { CardFooter };
|
|
@@ -1,9 +1,60 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useCardContext } from '../CardContext.js';
|
|
3
3
|
import '@babel/runtime/helpers/defineProperty';
|
|
4
|
-
import 'classnames';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
5
|
import { IconChevronDown } from '../../SVGIcons/IconChevronDown.js';
|
|
6
6
|
import { IconChevronRight } from '../../SVGIcons/IconChevronRight.js';
|
|
7
|
+
import { noop } from '../../../utils/helpers.js';
|
|
8
|
+
import { B as Button } from '../../../Alert--0rz5XL1.js';
|
|
9
|
+
import 'dayjs';
|
|
10
|
+
import '@babel/runtime/helpers/extends';
|
|
11
|
+
import '../../Alert/consts.js';
|
|
12
|
+
import '../../Text/Text.js';
|
|
13
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
14
|
+
import '../../../helperComponents/Loader/Loader.js';
|
|
15
|
+
import '@babel/runtime/helpers/slicedToArray';
|
|
16
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
17
|
+
import '../../../consts/index.js';
|
|
18
|
+
import '../../../type/file-upload.js';
|
|
19
|
+
import '../../../hooks/useScreenSize.js';
|
|
20
|
+
import 'react-hook-form';
|
|
21
|
+
import 'react-dropzone';
|
|
22
|
+
import '../../SVGIcons/IconUpload.js';
|
|
23
|
+
import '../../FileUpload/types.js';
|
|
24
|
+
import '../../../helpers/format-date.js';
|
|
25
|
+
import 'dayjs/plugin/utc';
|
|
26
|
+
import '../../../helpers/locale.js';
|
|
27
|
+
import '../../../type/locale.js';
|
|
28
|
+
import '../../../helpers/storage.js';
|
|
29
|
+
import 'react-toastify';
|
|
30
|
+
import '../../../hooks/useGetIsMobile.js';
|
|
31
|
+
import 'motion/react';
|
|
32
|
+
import '../../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
33
|
+
import '../../../hooks/useOnOutsideClick.js';
|
|
34
|
+
import '../../../hooks/useHideBodyScroll.js';
|
|
35
|
+
import '../../SVGIcons/IconDismiss.js';
|
|
36
|
+
import '../../Tooltip/types.js';
|
|
37
|
+
import '../../Tooltip/Tooltip.js';
|
|
38
|
+
import '../../../hooks/useGetTooltipStyles.js';
|
|
39
|
+
import '../../../hooks/useGetElemSizes.js';
|
|
40
|
+
import '../../../hooks/useGetElemPositions.js';
|
|
41
|
+
import '../../../hooks/useGetTooltipPosition.js';
|
|
42
|
+
import '../../../hooks/useHideOnScroll.js';
|
|
43
|
+
import 'react-syntax-highlighter';
|
|
44
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
45
|
+
import '../../Link/Link.js';
|
|
46
|
+
import '../../Popover/PopoverDesktop.js';
|
|
47
|
+
import '../../SVGIcons/IconInfo.js';
|
|
48
|
+
import '../../IconDynamicComponent/IconDynamicComponent.js';
|
|
49
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
50
|
+
import '@babel/runtime/helpers/typeof';
|
|
51
|
+
import '../../SVGIcons/IconDismissFilled.js';
|
|
52
|
+
import '../../SVGIcons/IconDelete.js';
|
|
53
|
+
import '../../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
54
|
+
import '../../Progress/Progress.js';
|
|
55
|
+
import '../../SVGIcons/IconArrowDownloadFilled.js';
|
|
56
|
+
import '../../../helpers/download-file.js';
|
|
57
|
+
import '../../Button/consts.js';
|
|
7
58
|
|
|
8
59
|
var CardHead = function CardHead(_ref) {
|
|
9
60
|
var children = _ref.children;
|
|
@@ -19,11 +70,22 @@ var CardHead = function CardHead(_ref) {
|
|
|
19
70
|
});
|
|
20
71
|
}, []);
|
|
21
72
|
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
-
className:
|
|
73
|
+
className: classNames('card__content--header', {
|
|
74
|
+
'card__content--header--expandable': isExpandable
|
|
75
|
+
}),
|
|
76
|
+
onClick: isExpandable ? onToggleExpand : noop
|
|
23
77
|
}, children, isExpandable && /*#__PURE__*/React.createElement("div", {
|
|
24
|
-
className: "card__content--header--expand"
|
|
25
|
-
|
|
26
|
-
|
|
78
|
+
className: "card__content--header--expand"
|
|
79
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
80
|
+
iconProps: {
|
|
81
|
+
Component: isExpanded ? IconChevronDown : IconChevronRight
|
|
82
|
+
},
|
|
83
|
+
className: classNames({
|
|
84
|
+
'card__content--header--expand--icon': isExpanded
|
|
85
|
+
}),
|
|
86
|
+
type: "tertiary",
|
|
87
|
+
size: "medium"
|
|
88
|
+
})));
|
|
27
89
|
};
|
|
28
90
|
|
|
29
91
|
export { CardHead };
|
package/components/Card/index.js
CHANGED
|
@@ -11,7 +11,53 @@ import 'dayjs';
|
|
|
11
11
|
import './CardComponent/CardHead.js';
|
|
12
12
|
import '../SVGIcons/IconChevronDown.js';
|
|
13
13
|
import '../SVGIcons/IconChevronRight.js';
|
|
14
|
+
import '../../Alert--0rz5XL1.js';
|
|
15
|
+
import '@babel/runtime/helpers/extends';
|
|
16
|
+
import '../Alert/consts.js';
|
|
17
|
+
import '../Text/Text.js';
|
|
18
|
+
import '../../helperComponents/Loader/Loader.js';
|
|
19
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
20
|
+
import '../../consts/index.js';
|
|
21
|
+
import '../../type/file-upload.js';
|
|
22
|
+
import '../../hooks/useScreenSize.js';
|
|
23
|
+
import 'react-hook-form';
|
|
24
|
+
import 'react-dropzone';
|
|
25
|
+
import '../SVGIcons/IconUpload.js';
|
|
26
|
+
import '../FileUpload/types.js';
|
|
27
|
+
import '../../helpers/format-date.js';
|
|
28
|
+
import 'dayjs/plugin/utc';
|
|
29
|
+
import '../../helpers/locale.js';
|
|
30
|
+
import '../../type/locale.js';
|
|
31
|
+
import '../../helpers/storage.js';
|
|
32
|
+
import 'react-toastify';
|
|
33
|
+
import '../../hooks/useGetIsMobile.js';
|
|
34
|
+
import 'motion/react';
|
|
35
|
+
import '../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
36
|
+
import '../../hooks/useOnOutsideClick.js';
|
|
37
|
+
import '../../hooks/useHideBodyScroll.js';
|
|
38
|
+
import '../SVGIcons/IconDismiss.js';
|
|
39
|
+
import '../Tooltip/types.js';
|
|
40
|
+
import '../Tooltip/Tooltip.js';
|
|
41
|
+
import '../../hooks/useGetTooltipStyles.js';
|
|
42
|
+
import '../../hooks/useGetElemSizes.js';
|
|
43
|
+
import '../../hooks/useGetElemPositions.js';
|
|
44
|
+
import '../../hooks/useGetTooltipPosition.js';
|
|
45
|
+
import '../../hooks/useHideOnScroll.js';
|
|
46
|
+
import 'react-syntax-highlighter';
|
|
47
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
48
|
+
import '../Link/Link.js';
|
|
49
|
+
import '../Popover/PopoverDesktop.js';
|
|
50
|
+
import '../SVGIcons/IconInfo.js';
|
|
51
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
52
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
53
|
+
import '@babel/runtime/helpers/typeof';
|
|
54
|
+
import '../SVGIcons/IconDismissFilled.js';
|
|
55
|
+
import '../SVGIcons/IconDelete.js';
|
|
56
|
+
import '../FileUpload/DropzoneFileUpload/FilePreview.js';
|
|
57
|
+
import '../Progress/Progress.js';
|
|
58
|
+
import '../SVGIcons/IconArrowDownloadFilled.js';
|
|
59
|
+
import '../../helpers/download-file.js';
|
|
60
|
+
import '../Button/consts.js';
|
|
14
61
|
import './CardComponent/CardBody.js';
|
|
15
|
-
import 'framer-motion';
|
|
16
62
|
import '../Divider/Divider.js';
|
|
17
|
-
import '
|
|
63
|
+
import './CardComponent/CardFooter.js';
|
|
@@ -8,6 +8,9 @@ export type TCardProps = {
|
|
|
8
8
|
title?: TCardTitle;
|
|
9
9
|
isExpandable?: boolean;
|
|
10
10
|
isExpanded?: boolean;
|
|
11
|
+
isExpandedFromParent?: boolean;
|
|
12
|
+
noBorder?: boolean;
|
|
13
|
+
noDivider?: boolean;
|
|
11
14
|
onExpand?: (isExpanded: boolean) => void;
|
|
12
15
|
children: ReactNode;
|
|
13
16
|
className?: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TCardGroupProps } from './types';
|
|
3
|
+
export declare const CardGroup: (({ children, ...rest }: TCardGroupProps) => React.ReactElement) & {
|
|
4
|
+
Head: ({ children }: {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Body: ({ children }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { CardGroupContext } from './CardGroupContext.js';
|
|
5
|
+
import { CardGroup as CardGroup$1 } from './CardGroupComponent/CardGroup.js';
|
|
6
|
+
import { CardGroupHead } from './CardGroupComponent/CardHead.js';
|
|
7
|
+
import { CardGroupBody } from './CardGroupComponent/CardBody.js';
|
|
8
|
+
import 'classnames';
|
|
9
|
+
import '../../utils/helpers.js';
|
|
10
|
+
import 'dayjs';
|
|
11
|
+
|
|
12
|
+
var _excluded = ["children"];
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
var CardComponent = function CardComponent(_ref) {
|
|
16
|
+
var children = _ref.children,
|
|
17
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
return /*#__PURE__*/React.createElement(CardGroupContext.Provider, {
|
|
19
|
+
value: _objectSpread({}, rest)
|
|
20
|
+
}, /*#__PURE__*/React.createElement(CardGroup$1, null, children));
|
|
21
|
+
};
|
|
22
|
+
var CardGroup = Object.assign(CardComponent, {
|
|
23
|
+
Head: CardGroupHead,
|
|
24
|
+
Body: CardGroupBody
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export { CardGroup };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { useMemo, useId } from 'react';
|
|
2
|
+
|
|
3
|
+
var CardGroupBody = function CardGroupBody(_ref) {
|
|
4
|
+
var children = _ref.children;
|
|
5
|
+
var isChildrenArray = useMemo(function () {
|
|
6
|
+
return Array.isArray(children);
|
|
7
|
+
}, [children]);
|
|
8
|
+
var componentKey = useId();
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
className: "card--group__content--body"
|
|
11
|
+
}, isChildrenArray && (children === null || children === void 0 ? void 0 : children.map(function (child, id) {
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: "card--group__child",
|
|
14
|
+
key: "".concat(componentKey, "_").concat(id)
|
|
15
|
+
}, child);
|
|
16
|
+
})), !isChildrenArray && children);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { CardGroupBody };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { generateDataTestId } from '../../../utils/helpers.js';
|
|
5
|
+
import { useCardGroupContext } from '../CardGroupContext.js';
|
|
6
|
+
import 'dayjs';
|
|
7
|
+
|
|
8
|
+
var CardGroup = function CardGroup(_ref) {
|
|
9
|
+
var children = _ref.children;
|
|
10
|
+
var _useCardGroupContext = useCardGroupContext(),
|
|
11
|
+
className = _useCardGroupContext.className,
|
|
12
|
+
title = _useCardGroupContext.title,
|
|
13
|
+
dataId = _useCardGroupContext.dataId,
|
|
14
|
+
id = _useCardGroupContext.id;
|
|
15
|
+
var _ref2 = title !== null && title !== void 0 ? title : {
|
|
16
|
+
alignment: 'left'
|
|
17
|
+
},
|
|
18
|
+
alignment = _ref2.alignment;
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: classNames('card--group', _defineProperty({}, "card--group--title--alignment--".concat(alignment), title), className),
|
|
21
|
+
id: "".concat(id || ''),
|
|
22
|
+
"data-id": generateDataTestId('card--group-item', dataId)
|
|
23
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
24
|
+
className: "card--group__content"
|
|
25
|
+
}, children));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export { CardGroup };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useCardGroupContext } from '../CardGroupContext.js';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
|
|
6
|
+
var CardGroupHead = function CardGroupHead(_ref) {
|
|
7
|
+
var children = _ref.children;
|
|
8
|
+
var _useCardGroupContext = useCardGroupContext(),
|
|
9
|
+
title = _useCardGroupContext.title;
|
|
10
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
11
|
+
className: "card--group__content--header"
|
|
12
|
+
}, title && /*#__PURE__*/React.createElement("div", {
|
|
13
|
+
className: classNames('card--group__title', _defineProperty({}, "card--group__title--".concat(title.color), title.color))
|
|
14
|
+
}, title.text), /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
className: "card--group__content--header--component"
|
|
16
|
+
}, children));
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { CardGroupHead };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TCardGroupProps } from './types';
|
|
2
|
+
interface ICardGroupContext extends Omit<TCardGroupProps, 'children'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const CardGroupContext: import("react").Context<ICardGroupContext>;
|
|
5
|
+
export declare const useCardGroupContext: () => ICardGroupContext;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
var CardGroupContext = /*#__PURE__*/createContext({});
|
|
4
|
+
var useCardGroupContext = function useCardGroupContext() {
|
|
5
|
+
return useContext(CardGroupContext);
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export { CardGroupContext, useCardGroupContext };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardGroup';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { CardGroup } from './CardGroup.js';
|
|
2
|
+
import '@babel/runtime/helpers/defineProperty';
|
|
3
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
4
|
+
import 'react';
|
|
5
|
+
import './CardGroupContext.js';
|
|
6
|
+
import './CardGroupComponent/CardGroup.js';
|
|
7
|
+
import 'classnames';
|
|
8
|
+
import '../../utils/helpers.js';
|
|
9
|
+
import 'dayjs';
|
|
10
|
+
import './CardGroupComponent/CardHead.js';
|
|
11
|
+
import './CardGroupComponent/CardBody.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type TCardGroupTitle = {
|
|
3
|
+
alignment?: 'top' | 'bottom' | 'left' | 'right';
|
|
4
|
+
text: string;
|
|
5
|
+
color: 'blue' | 'purple' | 'yellow' | 'pink' | 'green' | 'grey';
|
|
6
|
+
};
|
|
7
|
+
export type TCardGroupProps = {
|
|
8
|
+
title?: TCardGroupTitle;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
dataId?: string;
|
|
13
|
+
noDivider?: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -2,32 +2,32 @@ import '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import '@babel/runtime/helpers/extends';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
export { C as Checkbox } from '../../Alert
|
|
5
|
+
export { C as Checkbox } from '../../Alert--0rz5XL1.js';
|
|
6
6
|
import '../Link/Link.js';
|
|
7
7
|
import '../Text/Text.js';
|
|
8
8
|
import '../SVGIcons/IconInfo.js';
|
|
9
|
-
import '
|
|
9
|
+
import '../IconDynamicComponent/IconDynamicComponent.js';
|
|
10
|
+
import '../Alert/consts.js';
|
|
11
|
+
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
10
12
|
import 'dayjs';
|
|
13
|
+
import '../../helperComponents/Loader/Loader.js';
|
|
11
14
|
import '@babel/runtime/helpers/slicedToArray';
|
|
12
15
|
import '@babel/runtime/helpers/toConsumableArray';
|
|
13
|
-
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
14
16
|
import '../../consts/index.js';
|
|
17
|
+
import '../../type/file-upload.js';
|
|
15
18
|
import '../../hooks/useScreenSize.js';
|
|
16
19
|
import 'react-hook-form';
|
|
17
|
-
import 'react-syntax-highlighter';
|
|
18
|
-
import '../Alert/consts.js';
|
|
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';
|
|
@@ -40,7 +40,10 @@ import '../../hooks/useGetElemPositions.js';
|
|
|
40
40
|
import '../../hooks/useGetTooltipPosition.js';
|
|
41
41
|
import '../../hooks/useHideOnScroll.js';
|
|
42
42
|
import '../../utils/helpers.js';
|
|
43
|
+
import 'react-syntax-highlighter';
|
|
44
|
+
import 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
43
45
|
import '../Popover/PopoverDesktop.js';
|
|
46
|
+
import 'react-toastify/dist/ReactToastify.css';
|
|
44
47
|
import '@babel/runtime/helpers/typeof';
|
|
45
48
|
import '../SVGIcons/IconDismissFilled.js';
|
|
46
49
|
import '../SVGIcons/IconDelete.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 { C as Checkbox } from '../../Alert
|
|
1
|
+
export { C as Checkbox } 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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
2
2
|
import React, { useState, useCallback } from 'react';
|
|
3
|
-
import { motion } from '
|
|
3
|
+
import { motion } from 'motion/react';
|
|
4
4
|
import { Divider } from '../../Divider/Divider.js';
|
|
5
5
|
import { AnimatePresenceWrapper } from '../../../helperComponents/AnimatePresenceWrapper/AnimatePresenceWrapper.js';
|
|
6
6
|
import classNames from 'classnames';
|
|
@@ -36,7 +36,7 @@ var Collapse = function Collapse(props) {
|
|
|
36
36
|
});
|
|
37
37
|
}, []);
|
|
38
38
|
return /*#__PURE__*/React.createElement("div", {
|
|
39
|
-
className: classNames('collapse', {
|
|
39
|
+
className: classNames('collapse collapse--v2', {
|
|
40
40
|
'collapse--opened': isOpen
|
|
41
41
|
}, className),
|
|
42
42
|
id: "".concat(id || ''),
|