@geneui/components 2.11.2 → 2.12.2
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/{ActionableList.js → ActionableList/index.js} +83 -152
- package/{AdvancedSearch.js → AdvancedSearch/index.js} +290 -304
- package/Alert/index.js +97 -0
- package/Avatar/index.js +30 -0
- package/Badge/index.js +75 -0
- package/{Breadcrumb.js → Breadcrumb/index.js} +32 -31
- package/BusyLoader/index.js +68 -0
- package/Button/index.js +129 -0
- package/CHANGELOG.md +53 -0
- package/{Card.js → Card/index.js} +82 -94
- package/{CardList.js → CardList/index.js} +120 -165
- package/{CellMeasurerCache-b786dd93.js → CellMeasurerCache-3741d716.js} +2 -2
- package/{index-9164a86d.js → Charts/index.js} +17103 -30447
- package/{Checkbox.js → Checkbox/index.js} +37 -38
- package/{CheckboxGroup.js → CheckboxGroup/index.js} +41 -42
- package/{CheckboxGroupWithSearch.js → CheckboxGroupWithSearch/index.js} +64 -65
- package/{Collapse.js → Collapse/index.js} +28 -29
- package/{ColorPicker.js → ColorPicker/index.js} +16 -16
- package/ComboBox/index.js +525 -0
- package/Counter/index.js +310 -0
- package/{DateFilter.js → DateFilter/index.js} +45 -43
- package/{DatePicker.js → DatePicker/index.js} +106 -108
- package/{index-0199942c.js → DatePickerInput/index.js} +114 -100
- package/{Divider.js → Divider/index.js} +9 -10
- package/{Drawer.js → Drawer/index.js} +40 -41
- package/Dropdown/index.js +41 -0
- package/{Editor.js → Editor/index.js} +165 -164
- package/{Empty.js → Empty/index.js} +12 -13
- package/{ExtendedInput.js → ExtendedInput/index.js} +81 -71
- package/Form/index.js +83 -0
- package/{FormContainer.js → FormContainer/index.js} +25 -26
- package/FormableCheckbox/index.js +26 -0
- package/FormableDatePicker/index.js +41 -0
- package/FormableDropdown/index.js +48 -0
- package/FormableEditor/index.js +24 -0
- package/{FormableHOC-21051057.js → FormableHOC-55263162.js} +3 -3
- package/FormableMultiSelectDropdown/index.js +48 -0
- package/FormableNumberInput/index.js +32 -0
- package/FormableRadio/index.js +22 -0
- package/FormableSwitcher/index.js +22 -0
- package/FormableTextInput/index.js +32 -0
- package/FormableUploader/index.js +42 -0
- package/GeneUIProvider/index.js +282 -0
- package/{Grid.js → Grid/index.js} +27 -27
- package/Holder/index.js +261 -0
- package/{Icon.js → Icon/index.js} +9 -10
- package/Image/index.js +129 -0
- package/ImagePreview/index.js +481 -0
- package/{KeyValue.js → KeyValue/index.js} +11 -12
- package/LICENSE +21 -0
- package/Label/index.js +57 -0
- package/LinkButton/index.js +67 -0
- package/{Menu.js → Menu/index.js} +27 -28
- package/MobileNavigation/index.js +94 -0
- package/{MobilePopup.js → MobilePopup/index.js} +42 -41
- package/{Modal.js → Modal/index.js} +39 -40
- package/ModuleTitle/index.js +143 -0
- package/{NavigationMenu.js → NavigationMenu/index.js} +30 -29
- package/Notification/index.js +119 -0
- package/Option/index.js +184 -0
- package/Overlay/index.js +189 -0
- package/Overspread/index.js +289 -0
- package/{Pagination.js → Pagination/index.js} +35 -34
- package/Paper/index.js +96 -0
- package/{index-084588e9.js → Popover/index.js} +48 -58
- package/PopoverV2/index.js +18 -0
- package/{Portal.js → Portal/index.js} +7 -8
- package/{Products.js → Products/index.js} +20 -21
- package/Profile/index.js +585 -0
- package/Progress/index.js +199 -0
- package/{QRCode.js → QRCode/index.js} +4 -6
- package/{Radio.js → Radio/index.js} +25 -26
- package/{RadioGroup.js → RadioGroup/index.js} +17 -18
- package/{index-00fe8887.js → Range/index.js} +29 -32
- package/RichEditor/index.js +13 -0
- package/{RichEditor-98accead.js → RichEditor-8b0f7ccd.js} +18 -18
- package/{Scrollbar.js → Scrollbar/index.js} +15 -17
- package/{Search.js → Search/index.js} +25 -24
- package/SearchWithDropdown/index.js +138 -0
- package/Section/index.js +61 -0
- package/{SkeletonLoader.js → SkeletonLoader/index.js} +13 -14
- package/{Slider.js → Slider/index.js} +46 -43
- package/Status/index.js +103 -0
- package/Steps/index.js +313 -0
- package/{index-897d8240.js → SuggestionList/index.js} +15 -38
- package/{Switcher.js → Switcher/index.js} +30 -31
- package/Table/index.js +53 -0
- package/{TableCompositions.js → TableCompositions/index.js} +131 -168
- package/Tabs/index.js +235 -0
- package/Tag/index.js +102 -0
- package/{TextLink.js → TextLink/index.js} +3 -3
- package/{Textarea.js → Textarea/index.js} +66 -65
- package/{Time.js → Time/index.js} +13 -14
- package/TimePicker/index.js +555 -0
- package/Timeline/index.js +113 -0
- package/Title/index.js +65 -0
- package/{Toaster.js → Toaster/index.js} +19 -20
- package/{Tooltip.js → Tooltip/index.js} +27 -28
- package/{TransferList.js → TransferList/index.js} +44 -55
- package/{index-135b9d17.js → Uploader/index.js} +119 -116
- package/{ValidatableCheckbox.js → ValidatableCheckbox/index.js} +23 -24
- package/{ValidatableDatePicker.js → ValidatableDatePicker/index.js} +44 -42
- package/ValidatableDropdown/index.js +139 -0
- package/ValidatableElements/index.js +65 -0
- package/ValidatableMultiSelectDropdown/index.js +150 -0
- package/{ValidatableNumberInput.js → ValidatableNumberInput/index.js} +41 -33
- package/{ValidatableRadio.js → ValidatableRadio/index.js} +19 -20
- package/{ValidatableSwitcher.js → ValidatableSwitcher/index.js} +19 -20
- package/{ValidatableTextInput.js → ValidatableTextInput/index.js} +32 -31
- package/{ValidatableTimeInput.js → ValidatableTimeInput/index.js} +31 -30
- package/{ValidatableUploader.js → ValidatableUploader/index.js} +36 -34
- package/Widget/index.js +227 -0
- package/config-0ca92874.js +31 -0
- package/{configs-91c86664.js → configs-fed6ac34.js} +28 -1
- package/hooks/useBodyScroll.js +16 -0
- package/hooks/useClick.js +18 -0
- package/{useClickOutside-5183e396.js → hooks/useClickOutside.js} +1 -1
- package/hooks/useDebounceHook.js +16 -0
- package/{useDeviceType-dd51db38.js → hooks/useDeviceType.js} +4 -3
- package/hooks/useDidMount.js +15 -0
- package/{useEllipsisDetection-ef536015.js → hooks/useEllipsisDetection.js} +1 -1
- package/hooks/useForceUpdate.js +8 -0
- package/hooks/useImgDownload.js +18 -0
- package/{useKeyDown-38102ae7.js → hooks/useKeyDown.js} +1 -1
- package/hooks/useMount.js +13 -0
- package/hooks/useMutationObserver.js +21 -0
- package/hooks/usePrevious.js +10 -0
- package/hooks/useThrottle.js +16 -0
- package/hooks/useToggle.js +11 -0
- package/hooks/useUpdatableRef.js +14 -0
- package/hooks/useUpdate.js +10 -0
- package/{useWidth-9f4647f8.js → hooks/useWidth.js} +2 -2
- package/{useWindowSize-80369d76.js → hooks/useWindowSize.js} +1 -1
- package/{index-8c98317a.js → index-11eea761.js} +678 -752
- package/index-2ad83e03.js +4 -0
- package/index-34e47647.js +10054 -0
- package/index-45eafea6.js +90 -0
- package/{index-5e96cb4d.js → index-462461c0.js} +50 -48
- package/{index-ac59cb10.js → index-a0e4e333.js} +6 -6
- package/{index-e8776f3d.js → index-b1e429a7.js} +1 -1
- package/index.d.ts +115 -0
- package/index.js +137 -113
- package/index.mobile.d.ts +16 -0
- package/lib/atoms/Avatar/Avatar.d.ts +34 -0
- package/lib/atoms/Avatar/index.d.ts +1 -0
- package/lib/atoms/LinkButton/LinkButton.d.ts +46 -0
- package/lib/atoms/LinkButton/index.d.ts +1 -0
- package/{objectWithoutPropertiesLoose-299691d8.js → objectWithoutPropertiesLoose-d8a4a68c.js} +12 -12
- package/package.json +42 -22
- package/{rangeAndSlider-20599da4.js → rangeAndSlider-0301a458.js} +220 -375
- package/{react-beautiful-dnd.esm-38c37304.js → react-beautiful-dnd.esm-04c14563.js} +9 -9
- package/react-lifecycles-compat.es-6e1f3768.js +158 -0
- package/Alert.js +0 -98
- package/Avatar.js +0 -77
- package/Badge.js +0 -76
- package/BusyLoader.js +0 -69
- package/Button.js +0 -130
- package/Charts.js +0 -99
- package/ComboBox.js +0 -99
- package/Counter.js +0 -99
- package/DatePickerInput.js +0 -30
- package/Dropdown.js +0 -99
- package/Form.js +0 -116
- package/FormableCheckbox.js +0 -27
- package/FormableDatePicker.js +0 -39
- package/FormableDropdown.js +0 -105
- package/FormableEditor.js +0 -24
- package/FormableMultiSelectDropdown.js +0 -105
- package/FormableNumberInput.js +0 -31
- package/FormableRadio.js +0 -23
- package/FormableSwitcher.js +0 -23
- package/FormableTextInput.js +0 -31
- package/FormableUploader.js +0 -40
- package/GeneUIProvider.js +0 -256
- package/Holder.js +0 -99
- package/Image.js +0 -130
- package/ImagePreview.js +0 -99
- package/Label.js +0 -58
- package/LinkButton.js +0 -104
- package/MobileNavigation.js +0 -95
- package/ModuleTitle.js +0 -99
- package/Notification.js +0 -120
- package/Option.js +0 -186
- package/Overlay.js +0 -99
- package/Overspread.js +0 -343
- package/Paper.js +0 -97
- package/Popover.js +0 -20
- package/PopoverV2.js +0 -19
- package/Profile.js +0 -99
- package/Progress.js +0 -200
- package/Range.js +0 -14
- package/RichEditor.js +0 -13
- package/SearchWithDropdown.js +0 -195
- package/Section.js +0 -62
- package/Status.js +0 -104
- package/Steps.js +0 -312
- package/SuggestionList.js +0 -15
- package/Table.js +0 -102
- package/Tabs.js +0 -236
- package/Tag.js +0 -103
- package/TimePicker.js +0 -99
- package/Timeline.js +0 -114
- package/Title.js +0 -66
- package/Uploader.js +0 -32
- package/ValidatableDropdown.js +0 -99
- package/ValidatableElements.js +0 -99
- package/ValidatableMultiSelectDropdown.js +0 -99
- package/Widget.js +0 -99
- package/globalStyling-9c60a159.js +0 -4
- package/index-2030e31c.js +0 -4
- package/index-b7a33c58.js +0 -11
- package/index-e0af0caf.js +0 -1182
- package/useMount-6fef51a5.js +0 -9
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { c as classnames } from '../index-6ff23041.js';
|
|
5
|
+
import { c as childrenOf } from '../index-a0e4e333.js';
|
|
6
|
+
import Icon from '../Icon/index.js';
|
|
7
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
8
|
+
import '../dateValidation-67caec66.js';
|
|
9
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
10
|
+
import 'react-dom';
|
|
11
|
+
|
|
12
|
+
var css_248z$1 = "[data-gene-ui-version=\"2.12.2\"] .timeline-item{display:flex;font-weight:600;line-height:1.36}[data-gene-ui-version=\"2.12.2\"] .timeline-item.c-success{--hero:var(--confirm);--hero-hover:var(--confirm-hover);--hero-sc:var(--confirm-sc);--hero-rgb:var(--confirm-rgb);--hero-sc-rgb:var(--confirm-sc-rgb)}[data-gene-ui-version=\"2.12.2\"] .timeline-item.c-danger{--hero:var(--danger);--hero-hover:var(--danger-hover);--hero-sc:var(--danger-sc);--hero-rgb:var(--danger-rgb);--hero-sc-rgb:var(--danger-sc-rgb)}[data-gene-ui-version=\"2.12.2\"] .timeline-item:not(:last-child).with-line .t-line:before{background:rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.12.2\"] .timeline-item:not(:last-child) .t-texts{padding:0 0 2rem}[data-gene-ui-version=\"2.12.2\"] .timeline-item>li{display:flex}[data-gene-ui-version=\"2.12.2\"] .timeline-item.a-default .t-texts>*+*{margin:0 0 0 1rem}html[dir=rtl] .timeline-item.a-default .t-texts>*+*{margin:0 1rem 0 0}[data-gene-ui-version=\"2.12.2\"] .timeline-item.a-compact .t-texts{flex-direction:column}[data-gene-ui-version=\"2.12.2\"] .timeline-item.a-compact .t-texts>*+*{margin:.5rem 0 0}[data-gene-ui-version=\"2.12.2\"] .timeline-item .t-line{flex-shrink:0;position:relative}[data-gene-ui-version=\"2.12.2\"] .timeline-item .t-line:before{content:\"\";display:block;height:100%;margin:0 .5rem;width:1px}[data-gene-ui-version=\"2.12.2\"] .timeline-item .t-texts{flex:auto;margin:0 0 0 1.5rem}html[dir=rtl] .timeline-item .t-texts{margin:0 1.5rem 0 0}[data-gene-ui-version=\"2.12.2\"] .timeline-item .t-description{color:rgba(var(--background-sc-rgb),.6);font:600 1.2rem/1.8rem var(--font-family)}[data-gene-ui-version=\"2.12.2\"] .timeline-item .t-description,[data-gene-ui-version=\"2.12.2\"] .timeline-item .t-title{max-width:100%}[data-gene-ui-version=\"2.12.2\"] .timeline-item .icon{background:var(--background);border-radius:100%;color:var(--hero);left:50%;position:absolute;top:0;transform:translate3d(-50%,-.3rem,0)}[data-gene-ui-version=\"2.12.2\"] .timeline-item .t-icon{background:var(--background);border:.2rem solid var(--hero);border-radius:100%;box-shadow:0 0 0 .4rem var(--background);font-size:1.5rem;height:1.1rem;left:0;position:absolute;top:.4rem;width:1.1rem}[data-gene-ui-version=\"2.12.2\"] .timeline-item .t-icon.bc-icon-loader{top:.2rem}";
|
|
13
|
+
styleInject(css_248z$1);
|
|
14
|
+
|
|
15
|
+
const timelineColors = ['hero', 'success', 'danger'];
|
|
16
|
+
const timelineAppearances = ['default', 'compact'];
|
|
17
|
+
function TimelineItem(props) {
|
|
18
|
+
const {
|
|
19
|
+
icon,
|
|
20
|
+
title,
|
|
21
|
+
color,
|
|
22
|
+
withLine,
|
|
23
|
+
isLoading,
|
|
24
|
+
className,
|
|
25
|
+
appearance,
|
|
26
|
+
description,
|
|
27
|
+
...restProps
|
|
28
|
+
} = props;
|
|
29
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
30
|
+
className: classnames('timeline-item', "a-".concat(appearance), "c-".concat(color), className, {
|
|
31
|
+
'with-line': withLine
|
|
32
|
+
})
|
|
33
|
+
}, restProps), /*#__PURE__*/React__default.createElement("li", {
|
|
34
|
+
className: "t-line"
|
|
35
|
+
}, isLoading ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
36
|
+
type: "bc-icon-loader"
|
|
37
|
+
}) : icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
38
|
+
type: icon
|
|
39
|
+
}) : /*#__PURE__*/React__default.createElement("div", {
|
|
40
|
+
className: "t-icon"
|
|
41
|
+
})), /*#__PURE__*/React__default.createElement("li", {
|
|
42
|
+
className: "t-texts"
|
|
43
|
+
}, !!title && /*#__PURE__*/React__default.createElement("div", {
|
|
44
|
+
className: "t-title"
|
|
45
|
+
}, title), !!description && /*#__PURE__*/React__default.createElement("div", {
|
|
46
|
+
className: "t-description"
|
|
47
|
+
}, description)));
|
|
48
|
+
}
|
|
49
|
+
TimelineItem.propTypes = {
|
|
50
|
+
/**
|
|
51
|
+
* Is loading state.
|
|
52
|
+
*/
|
|
53
|
+
isLoading: PropTypes.bool,
|
|
54
|
+
/**
|
|
55
|
+
* Title for item
|
|
56
|
+
*/
|
|
57
|
+
title: PropTypes.string,
|
|
58
|
+
/**
|
|
59
|
+
* Icon for item
|
|
60
|
+
*/
|
|
61
|
+
icon: PropTypes.string,
|
|
62
|
+
/**
|
|
63
|
+
* Render line between items
|
|
64
|
+
*/
|
|
65
|
+
withLine: PropTypes.bool,
|
|
66
|
+
/**
|
|
67
|
+
* Description fot item
|
|
68
|
+
*/
|
|
69
|
+
description: PropTypes.string,
|
|
70
|
+
/**
|
|
71
|
+
* External/Additional className
|
|
72
|
+
*/
|
|
73
|
+
className: PropTypes.string,
|
|
74
|
+
/**
|
|
75
|
+
* Different colors for items
|
|
76
|
+
*/
|
|
77
|
+
color: PropTypes.oneOf(timelineColors),
|
|
78
|
+
/**
|
|
79
|
+
* Any valid React node.
|
|
80
|
+
*/
|
|
81
|
+
appearance: PropTypes.oneOf(timelineAppearances)
|
|
82
|
+
};
|
|
83
|
+
TimelineItem.defaultProps = {
|
|
84
|
+
color: timelineColors[0],
|
|
85
|
+
withLine: true,
|
|
86
|
+
appearance: timelineAppearances[0]
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
var css_248z = "[data-gene-ui-version=\"2.12.2\"] .timeline-holder{display:flex;flex-direction:column}";
|
|
90
|
+
styleInject(css_248z);
|
|
91
|
+
|
|
92
|
+
function Timeline(props) {
|
|
93
|
+
const {
|
|
94
|
+
children,
|
|
95
|
+
className,
|
|
96
|
+
...restProps
|
|
97
|
+
} = props;
|
|
98
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
99
|
+
className: classnames('timeline-holder', className)
|
|
100
|
+
}, restProps), children);
|
|
101
|
+
}
|
|
102
|
+
Timeline.propTypes = {
|
|
103
|
+
/**
|
|
104
|
+
* External/Additional className
|
|
105
|
+
*/
|
|
106
|
+
className: PropTypes.string,
|
|
107
|
+
/**
|
|
108
|
+
* Any valid React node.
|
|
109
|
+
*/
|
|
110
|
+
children: childrenOf([TimelineItem])
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export { Timeline, TimelineItem, timelineAppearances, timelineColors };
|
package/Title/index.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { c as classnames } from '../index-6ff23041.js';
|
|
5
|
+
import { t as titleConfig } from '../configs-fed6ac34.js';
|
|
6
|
+
import Icon from '../Icon/index.js';
|
|
7
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
8
|
+
|
|
9
|
+
var css_248z = "[data-gene-ui-version=\"2.12.2\"] .title-holder{align-items:center;display:flex;font:600 1.4rem/1.8rem var(--font-family);min-height:3.2rem;width:100%}[data-gene-ui-version=\"2.12.2\"] .title-holder.c-hero .title-text{color:var(--hero)}[data-gene-ui-version=\"2.12.2\"] .title-holder>li{align-items:center;display:flex;flex-shrink:0}[data-gene-ui-version=\"2.12.2\"] .title-holder>li.line{flex:auto}[data-gene-ui-version=\"2.12.2\"] .title-holder>li.line i{background:rgba(var(--background-sc-rgb),.1);display:block;height:1px;width:100%}[data-gene-ui-version=\"2.12.2\"] .title-holder>li~li{margin:0 0 0 1rem}html[dir=rtl] .title-holder>li~li{margin:0 1rem 0 0}[data-gene-ui-version=\"2.12.2\"] .title-holder .divider{margin:0 1rem}";
|
|
10
|
+
styleInject(css_248z);
|
|
11
|
+
|
|
12
|
+
function Title(_ref) {
|
|
13
|
+
let {
|
|
14
|
+
icon,
|
|
15
|
+
text,
|
|
16
|
+
actions,
|
|
17
|
+
color,
|
|
18
|
+
withLine,
|
|
19
|
+
className,
|
|
20
|
+
...restProps
|
|
21
|
+
} = _ref;
|
|
22
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
23
|
+
className: classnames('title-holder', "c-".concat(color), className)
|
|
24
|
+
}, restProps), icon && /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
25
|
+
type: icon
|
|
26
|
+
})), /*#__PURE__*/React__default.createElement("li", {
|
|
27
|
+
className: "title-text"
|
|
28
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
29
|
+
className: "ellipsis-text"
|
|
30
|
+
}, text)), /*#__PURE__*/React__default.createElement("li", {
|
|
31
|
+
className: "line"
|
|
32
|
+
}, withLine && /*#__PURE__*/React__default.createElement("i", null)), actions && /*#__PURE__*/React__default.createElement("li", null, actions));
|
|
33
|
+
}
|
|
34
|
+
Title.propTypes = {
|
|
35
|
+
/**
|
|
36
|
+
* Display an icon. Values are the same as "Icon" atoms type prop
|
|
37
|
+
*/
|
|
38
|
+
icon: PropTypes.string,
|
|
39
|
+
/**
|
|
40
|
+
* Text/Component to be displayed. Any valid React node
|
|
41
|
+
*/
|
|
42
|
+
text: PropTypes.node.isRequired,
|
|
43
|
+
/**
|
|
44
|
+
* Actions to be displayed. Any valid React node
|
|
45
|
+
*/
|
|
46
|
+
actions: PropTypes.node,
|
|
47
|
+
/**
|
|
48
|
+
* Title color
|
|
49
|
+
*/
|
|
50
|
+
color: PropTypes.oneOf(titleConfig.color),
|
|
51
|
+
/**
|
|
52
|
+
* Displays a divider line
|
|
53
|
+
*/
|
|
54
|
+
withLine: PropTypes.bool,
|
|
55
|
+
/**
|
|
56
|
+
* Additional className
|
|
57
|
+
*/
|
|
58
|
+
className: PropTypes.string
|
|
59
|
+
};
|
|
60
|
+
Title.defaultProps = {
|
|
61
|
+
color: titleConfig.color[1],
|
|
62
|
+
withLine: false
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export { Title as default };
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { _ as _extends } from '
|
|
1
|
+
import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
2
|
import React__default, { useState, useCallback, useEffect } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import { c as classnames } from '
|
|
5
|
-
import '
|
|
6
|
-
import { g as guid } from '
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { c as classnames } from '../index-6ff23041.js';
|
|
5
|
+
import '../dateValidation-67caec66.js';
|
|
6
|
+
import { g as guid } from '../guid-8ddf77b3.js';
|
|
7
7
|
import 'react-dom';
|
|
8
|
-
import Portal from '
|
|
9
|
-
import Notification from '
|
|
10
|
-
import Alert, { alertTypes } from '
|
|
11
|
-
import '
|
|
12
|
-
import
|
|
13
|
-
import '
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
18
|
-
import './Icon.js';
|
|
8
|
+
import Portal from '../Portal/index.js';
|
|
9
|
+
import Notification from '../Notification/index.js';
|
|
10
|
+
import Alert, { alertTypes } from '../Alert/index.js';
|
|
11
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
12
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
13
|
+
import '../GeneUIProvider/index.js';
|
|
14
|
+
import '../hooks/useDeviceType.js';
|
|
15
|
+
import '../configs-fed6ac34.js';
|
|
16
|
+
import '../hooks/useWindowSize.js';
|
|
17
|
+
import '../Icon/index.js';
|
|
19
18
|
|
|
20
|
-
var css_248z = "[data-gene-ui-version=\"
|
|
19
|
+
var css_248z = "[data-gene-ui-version=\"2.12.2\"] .toaster-holder{max-width:38rem;padding:1.5rem;position:fixed;width:100%;z-index:500}[data-gene-ui-version=\"2.12.2\"] .toaster-holder>*+*{margin:2rem 0 0}[data-gene-ui-version=\"2.12.2\"] .toaster-holder.left-top{left:0;top:var(--header-height,0)}[data-gene-ui-version=\"2.12.2\"] .toaster-holder.left-bottom{bottom:0;left:0}[data-gene-ui-version=\"2.12.2\"] .toaster-holder.right-top{right:0;top:var(--header-height,0)}[data-gene-ui-version=\"2.12.2\"] .toaster-holder.right-bottom{bottom:0;right:0}[data-gene-ui-version=\"2.12.2\"] .toaster-holder.bottom,[data-gene-ui-version=\"2.12.2\"] .toaster-holder.top{left:50%;transform:translate3d(-50%,0,0)}[data-gene-ui-version=\"2.12.2\"] .toaster-holder.top{top:var(--header-height,0)}[data-gene-ui-version=\"2.12.2\"] .toaster-holder.center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}[data-gene-ui-version=\"2.12.2\"] .toaster-holder.bottom{bottom:0}[data-gene-ui-version=\"2.12.2\"] .toaster-holder.mobile-view{transform:none;width:100%}[data-gene-ui-version=\"2.12.2\"] .toaster-holder.mobile-view:not(.top,.bottom){padding:0}[data-gene-ui-version=\"2.12.2\"] .toaster-holder.mobile-view.center:not(.top,.bottom){padding:0 1.5rem}[data-gene-ui-version=\"2.12.2\"] .toaster-holder:empty{pointer-events:none}";
|
|
21
20
|
styleInject(css_248z);
|
|
22
21
|
|
|
23
22
|
const toasterPositions = ['top', 'bottom', 'center', 'left-top', 'left-bottom', 'right-top', 'right-bottom'];
|
|
@@ -95,17 +94,17 @@ Toaster.propTypes = {
|
|
|
95
94
|
/**
|
|
96
95
|
* Determines how long should component be displayed
|
|
97
96
|
*/
|
|
98
|
-
defaultDuration:
|
|
97
|
+
defaultDuration: PropTypes.number,
|
|
99
98
|
/**
|
|
100
99
|
* Determines toaster position on window,
|
|
101
100
|
* On of ['top', 'bottom', 'center', 'left-top', 'left-bottom', 'right-top', 'right-bottom']
|
|
102
101
|
*/
|
|
103
|
-
toasterPosition:
|
|
102
|
+
toasterPosition: PropTypes.string,
|
|
104
103
|
/**
|
|
105
104
|
* Determines notification position on window,
|
|
106
105
|
* On of ['top', 'bottom', 'center', 'left-top', 'left-bottom', 'right-top', 'right-bottom']
|
|
107
106
|
*/
|
|
108
|
-
notificationPosition:
|
|
107
|
+
notificationPosition: PropTypes.string
|
|
109
108
|
};
|
|
110
109
|
Toaster.defaultProps = {
|
|
111
110
|
defaultDuration: 4000,
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { _ as _extends } from '
|
|
1
|
+
import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
2
|
import React__default, { useState, useContext, useCallback, useEffect } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import { c as classnames } from '
|
|
5
|
-
import { _ as _default } from '
|
|
6
|
-
import { p as positions } from '
|
|
7
|
-
import { n as noop } from '
|
|
8
|
-
import
|
|
9
|
-
import { GeneUIDesignSystemContext } from '
|
|
10
|
-
import '
|
|
11
|
-
import
|
|
12
|
-
import './_commonjsHelpers-24198af3.js';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { c as classnames } from '../index-6ff23041.js';
|
|
5
|
+
import { _ as _default } from '../Popover-f4d1cac0.js';
|
|
6
|
+
import { p as positions } from '../configs-fed6ac34.js';
|
|
7
|
+
import { n as noop } from '../index-a0e4e333.js';
|
|
8
|
+
import useDeviceType from '../hooks/useDeviceType.js';
|
|
9
|
+
import { GeneUIDesignSystemContext } from '../GeneUIProvider/index.js';
|
|
10
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
11
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
13
12
|
import 'react-dom';
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
13
|
+
import '../dateValidation-67caec66.js';
|
|
14
|
+
import '../hooks/useWindowSize.js';
|
|
16
15
|
|
|
17
|
-
var css_248z = "[data-gene-ui-version=\"
|
|
16
|
+
var css_248z = "[data-gene-ui-version=\"2.12.2\"] .react-tiny-popover-container{z-index:500}[data-gene-ui-version=\"2.12.2\"] .tooltip-c-p{pointer-events:none}[data-gene-ui-version=\"2.12.2\"] .s-small .tooltip-c-p{padding:1.5rem}[data-gene-ui-version=\"2.12.2\"] .tooltip-content{background:rgba(var(--background-sc-rgb),.6);border-radius:.4rem;color:rgba(var(--background-rgb),.7);font:600 1.2rem/1.6rem var(--font-family);max-width:20rem;padding:.6rem 1rem;word-break:break-word}[data-gene-ui-version=\"2.12.2\"] .tooltip-content>*+*{margin:.2rem 0 0}[data-gene-ui-version=\"2.12.2\"] .tooltip-content .tooltip-title{color:var(--background)}[data-gene-ui-version=\"2.12.2\"] .s-small .tooltip-content{font:600 1rem/1.4rem var(--font-family);padding:.6rem .8rem}";
|
|
18
17
|
styleInject(css_248z);
|
|
19
18
|
|
|
20
19
|
function Tooltip(_ref) {
|
|
@@ -94,54 +93,54 @@ Tooltip.propTypes = {
|
|
|
94
93
|
/**
|
|
95
94
|
* Different sizes for 'Tooltip'.
|
|
96
95
|
*/
|
|
97
|
-
size:
|
|
96
|
+
size: PropTypes.oneOf(['default', 'small']),
|
|
98
97
|
/**
|
|
99
98
|
* Text for 'Tooltip'.
|
|
100
99
|
*/
|
|
101
|
-
text:
|
|
100
|
+
text: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
102
101
|
/**
|
|
103
102
|
* Title for 'Tooltip'.
|
|
104
103
|
*/
|
|
105
|
-
title:
|
|
104
|
+
title: PropTypes.string,
|
|
106
105
|
/**
|
|
107
106
|
* Style object, to have extra styles.
|
|
108
107
|
*/
|
|
109
|
-
style:
|
|
108
|
+
style: PropTypes.object,
|
|
110
109
|
/**
|
|
111
110
|
* Have always visible 'Tooltip'.
|
|
112
111
|
*/
|
|
113
|
-
alwaysShow:
|
|
112
|
+
alwaysShow: PropTypes.bool,
|
|
114
113
|
/**
|
|
115
114
|
* Custom positions(left, top) for 'Tooltip'.
|
|
116
115
|
*/
|
|
117
|
-
customPosition:
|
|
118
|
-
left:
|
|
119
|
-
top:
|
|
116
|
+
customPosition: PropTypes.shape({
|
|
117
|
+
left: PropTypes.number,
|
|
118
|
+
top: PropTypes.number
|
|
120
119
|
}),
|
|
121
120
|
/**
|
|
122
121
|
* Duration for showing 'Tooltip'.
|
|
123
122
|
*/
|
|
124
|
-
transitionDuration:
|
|
123
|
+
transitionDuration: PropTypes.number,
|
|
125
124
|
/**
|
|
126
125
|
* Any valid React node.
|
|
127
126
|
*/
|
|
128
|
-
children:
|
|
127
|
+
children: PropTypes.node,
|
|
129
128
|
/**
|
|
130
129
|
* Disable/Enable repositions.
|
|
131
130
|
*/
|
|
132
|
-
disableReposition:
|
|
131
|
+
disableReposition: PropTypes.bool,
|
|
133
132
|
/**
|
|
134
133
|
* 'Tooltip' position to be displayed
|
|
135
134
|
*/
|
|
136
|
-
position:
|
|
135
|
+
position: PropTypes.oneOf(['auto', ...positions]),
|
|
137
136
|
/**
|
|
138
137
|
* 'Tooltip' padding from the target element
|
|
139
138
|
*/
|
|
140
|
-
padding:
|
|
139
|
+
padding: PropTypes.number,
|
|
141
140
|
/**
|
|
142
141
|
* If isVisible is false, the component will render only children without a tooltip wrapped.
|
|
143
142
|
*/
|
|
144
|
-
isVisible:
|
|
143
|
+
isVisible: PropTypes.bool
|
|
145
144
|
};
|
|
146
145
|
Tooltip.defaultProps = {
|
|
147
146
|
position: 'auto',
|
|
@@ -1,47 +1,36 @@
|
|
|
1
|
-
import React__default, {
|
|
2
|
-
import
|
|
3
|
-
import { P as PublicDraggable, C as ConnectedDroppable, D as DragDropContext } from '
|
|
4
|
-
import { c as classnames } from '
|
|
5
|
-
import { n as noop } from '
|
|
6
|
-
import '
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import CustomScrollbar from '
|
|
13
|
-
import '
|
|
14
|
-
import { s as styleInject } from '
|
|
15
|
-
import Button from '
|
|
16
|
-
import Tooltip from '
|
|
17
|
-
import '
|
|
18
|
-
import '
|
|
1
|
+
import React__default, { forwardRef, useState, useMemo, useEffect, useCallback } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { P as PublicDraggable, C as ConnectedDroppable, D as DragDropContext } from '../react-beautiful-dnd.esm-04c14563.js';
|
|
4
|
+
import { c as classnames } from '../index-6ff23041.js';
|
|
5
|
+
import { n as noop } from '../index-a0e4e333.js';
|
|
6
|
+
import '../configs-fed6ac34.js';
|
|
7
|
+
import useDidMount from '../hooks/useDidMount.js';
|
|
8
|
+
import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
9
|
+
import Icon from '../Icon/index.js';
|
|
10
|
+
import Empty from '../Empty/index.js';
|
|
11
|
+
import Search from '../Search/index.js';
|
|
12
|
+
import CustomScrollbar from '../Scrollbar/index.js';
|
|
13
|
+
import Checkbox from '../Checkbox/index.js';
|
|
14
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
15
|
+
import Button from '../Button/index.js';
|
|
16
|
+
import Tooltip from '../Tooltip/index.js';
|
|
17
|
+
import '../objectWithoutPropertiesLoose-d8a4a68c.js';
|
|
18
|
+
import '../index-b1e429a7.js';
|
|
19
19
|
import 'react-dom';
|
|
20
|
-
import '
|
|
21
|
-
import '
|
|
22
|
-
import '
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
25
|
-
import '
|
|
26
|
-
import '
|
|
27
|
-
import '
|
|
28
|
-
import '
|
|
29
|
-
import '
|
|
30
|
-
import '
|
|
31
|
-
import '
|
|
32
|
-
import '
|
|
33
|
-
|
|
34
|
-
const useDidMount = function () {
|
|
35
|
-
let callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : () => {};
|
|
36
|
-
let deps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
37
|
-
const _isFirstUpdate = useRef(true);
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
if (!_isFirstUpdate.current) {
|
|
40
|
-
callback();
|
|
41
|
-
}
|
|
42
|
-
_isFirstUpdate.current = false;
|
|
43
|
-
}, deps);
|
|
44
|
-
};
|
|
20
|
+
import '../dateValidation-67caec66.js';
|
|
21
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
22
|
+
import '../ExtendedInput/index.js';
|
|
23
|
+
import '../hooks/useDeviceType.js';
|
|
24
|
+
import '../hooks/useWindowSize.js';
|
|
25
|
+
import '../hooks/useEllipsisDetection.js';
|
|
26
|
+
import '../SuggestionList/index.js';
|
|
27
|
+
import '../hooks/useKeyDown.js';
|
|
28
|
+
import '../hooks/useClickOutside.js';
|
|
29
|
+
import '../config-0ca92874.js';
|
|
30
|
+
import '../Popover-f4d1cac0.js';
|
|
31
|
+
import '../GeneUIProvider/index.js';
|
|
32
|
+
import '../checkboxRadioSwitcher-5b69d7bd.js';
|
|
33
|
+
import '../guid-8ddf77b3.js';
|
|
45
34
|
|
|
46
35
|
function n(n){for(var r=arguments.length,t=Array(r>1?r-1:0),e=1;e<r;e++)t[e-1]=arguments[e];if("production"!==process.env.NODE_ENV){var i=Y[n],o=i?"function"==typeof i?i.apply(null,t):i:"unknown error nr: "+n;throw Error("[Immer] "+o)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map((function(n){return "'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(n){return !!n&&!!n[Q]}function t(n){var r;return !!n&&(function(n){if(!n||"object"!=typeof n)return !1;var r=Object.getPrototypeOf(n);if(null===r)return !0;var t=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return t===Object||"function"==typeof t&&Function.toString.call(t)===Z}(n)||Array.isArray(n)||!!n[L]||!!(null===(r=n.constructor)||void 0===r?void 0:r[L])||s(n)||v(n))}function i(n,r,t){void 0===t&&(t=!1),0===o(n)?(t?Object.keys:nn)(n).forEach((function(e){t&&"symbol"==typeof e||r(e,n[e],n);})):n.forEach((function(t,e){return r(e,t,n)}));}function o(n){var r=n[Q];return r?r.i>3?r.i-4:r.i:Array.isArray(n)?1:s(n)?2:v(n)?3:0}function u(n,r){return 2===o(n)?n.has(r):Object.prototype.hasOwnProperty.call(n,r)}function a(n,r){return 2===o(n)?n.get(r):n[r]}function f(n,r,t){var e=o(n);2===e?n.set(r,t):3===e?n.add(t):n[r]=t;}function c(n,r){return n===r?0!==n||1/n==1/r:n!=n&&r!=r}function s(n){return X&&n instanceof Map}function v(n){return q&&n instanceof Set}function p(n){return n.o||n.t}function l(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var r=rn(n);delete r[Q];for(var t=nn(r),e=0;e<t.length;e++){var i=t[e],o=r[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]});}return Object.create(Object.getPrototypeOf(n),r)}function d(n,e){return void 0===e&&(e=!1),y(n)||r(n)||!t(n)||(o(n)>1&&(n.set=n.add=n.clear=n.delete=h),Object.freeze(n),e&&i(n,(function(n,r){return d(r,!0)}),!0)),n}function h(){n(2);}function y(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function b(r){var t=tn[r];return t||n(18,r),t}function _(){return "production"===process.env.NODE_ENV||U||n(0),U}function j(n,r){r&&(b("Patches"),n.u=[],n.s=[],n.v=r);}function g(n){O(n),n.p.forEach(S),n.p=null;}function O(n){n===U&&(U=n.l);}function w(n){return U={p:[],l:U,h:n,m:!0,_:0}}function S(n){var r=n[Q];0===r.i||1===r.i?r.j():r.g=!0;}function P(r,e){e._=e.p.length;var i=e.p[0],o=void 0!==r&&r!==i;return e.h.O||b("ES5").S(e,r,o),o?(i[Q].P&&(g(e),n(4)),t(r)&&(r=M(e,r),e.l||x(e,r)),e.u&&b("Patches").M(i[Q].t,r,e.u,e.s)):r=M(e,i,[]),g(e),e.u&&e.v(e.u,e.s),r!==H?r:void 0}function M(n,r,t){if(y(r))return r;var e=r[Q];if(!e)return i(r,(function(i,o){return A(n,e,r,i,o,t)}),!0),r;if(e.A!==n)return r;if(!e.P)return x(n,e.t,!0),e.t;if(!e.I){e.I=!0,e.A._--;var o=4===e.i||5===e.i?e.o=l(e.k):e.o,u=o,a=!1;3===e.i&&(u=new Set(o),o.clear(),a=!0),i(u,(function(r,i){return A(n,e,o,r,i,t,a)})),x(n,o,!1),t&&n.u&&b("Patches").N(e,t,n.u,n.s);}return e.o}function A(e,i,o,a,c,s,v){if("production"!==process.env.NODE_ENV&&c===o&&n(5),r(c)){var p=M(e,c,s&&i&&3!==i.i&&!u(i.R,a)?s.concat(a):void 0);if(f(o,a,p),!r(p))return;e.m=!1;}else v&&o.add(c);if(t(c)&&!y(c)){if(!e.h.D&&e._<1)return;M(e,c),i&&i.A.l||x(e,c);}}function x(n,r,t){void 0===t&&(t=!1),!n.l&&n.h.D&&n.m&&d(r,t);}function z(n,r){var t=n[Q];return (t?p(t):n)[r]}function I(n,r){if(r in n)for(var t=Object.getPrototypeOf(n);t;){var e=Object.getOwnPropertyDescriptor(t,r);if(e)return e;t=Object.getPrototypeOf(t);}}function k(n){n.P||(n.P=!0,n.l&&k(n.l));}function E(n){n.o||(n.o=l(n.t));}function N(n,r,t){var e=s(r)?b("MapSet").F(r,t):v(r)?b("MapSet").T(r,t):n.O?function(n,r){var t=Array.isArray(n),e={i:t?1:0,A:r?r.A:_(),P:!1,I:!1,R:{},l:r,t:n,k:null,o:null,j:null,C:!1},i=e,o=en;t&&(i=[e],o=on);var u=Proxy.revocable(i,o),a=u.revoke,f=u.proxy;return e.k=f,e.j=a,f}(r,t):b("ES5").J(r,t);return (t?t.A:_()).p.push(e),e}function R(e){return r(e)||n(22,e),function n(r){if(!t(r))return r;var e,u=r[Q],c=o(r);if(u){if(!u.P&&(u.i<4||!b("ES5").K(u)))return u.t;u.I=!0,e=D(r,c),u.I=!1;}else e=D(r,c);return i(e,(function(r,t){u&&a(u.t,r)===t||f(e,r,n(t));})),3===c?new Set(e):e}(e)}function D(n,r){switch(r){case 2:return new Map(n);case 3:return Array.from(n)}return l(n)}var G,U,W="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),X="undefined"!=typeof Map,q="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,H=W?Symbol.for("immer-nothing"):((G={})["immer-nothing"]=!0,G),L=W?Symbol.for("immer-draftable"):"__$immer_draftable",Q=W?Symbol.for("immer-state"):"__$immer_state",Y={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return "Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return "Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return "Unsupported patch operation: "+n},18:function(n){return "The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return "produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return "'current' expects a draft, got: "+n},23:function(n){return "'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Z=""+Object.prototype.constructor,nn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(n){var r={};return nn(n).forEach((function(t){r[t]=Object.getOwnPropertyDescriptor(n,t);})),r},tn={},en={get:function(n,r){if(r===Q)return n;var e=p(n);if(!u(e,r))return function(n,r,t){var e,i=I(r,t);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,r);var i=e[r];return n.I||!t(i)?i:i===z(n.t,r)?(E(n),n.o[r]=N(n.A.h,i,n)):i},has:function(n,r){return r in p(n)},ownKeys:function(n){return Reflect.ownKeys(p(n))},set:function(n,r,t){var e=I(p(n),r);if(null==e?void 0:e.set)return e.set.call(n.k,t),!0;if(!n.P){var i=z(p(n),r),o=null==i?void 0:i[Q];if(o&&o.t===t)return n.o[r]=t,n.R[r]=!1,!0;if(c(t,i)&&(void 0!==t||u(n.t,r)))return !0;E(n),k(n);}return n.o[r]===t&&(void 0!==t||r in n.o)||Number.isNaN(t)&&Number.isNaN(n.o[r])||(n.o[r]=t,n.R[r]=!0),!0},deleteProperty:function(n,r){return void 0!==z(n.t,r)||r in n.t?(n.R[r]=!1,E(n),k(n)):delete n.R[r],n.o&&delete n.o[r],!0},getOwnPropertyDescriptor:function(n,r){var t=p(n),e=Reflect.getOwnPropertyDescriptor(t,r);return e?{writable:!0,configurable:1!==n.i||"length"!==r,enumerable:e.enumerable,value:t[r]}:e},defineProperty:function(){n(11);},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){n(12);}},on={};i(en,(function(n,r){on[n]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)};})),on.deleteProperty=function(r,t){return "production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&n(13),on.set.call(this,r,t,void 0)},on.set=function(r,t,e){return "production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&n(14),en.set.call(this,r[0],t,e,r[0])};var un=function(){function e(r){var e=this;this.O=B,this.D=!0,this.produce=function(r,i,o){if("function"==typeof r&&"function"!=typeof i){var u=i;i=r;var a=e;return function(n){var r=this;void 0===n&&(n=u);for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];return a.produce(n,(function(n){var t;return (t=i).call.apply(t,[r,n].concat(e))}))}}var f;if("function"!=typeof i&&n(6),void 0!==o&&"function"!=typeof o&&n(7),t(r)){var c=w(e),s=N(e,r,void 0),v=!0;try{f=i(s),v=!1;}finally{v?g(c):O(c);}return "undefined"!=typeof Promise&&f instanceof Promise?f.then((function(n){return j(c,o),P(n,c)}),(function(n){throw g(c),n})):(j(c,o),P(f,c))}if(!r||"object"!=typeof r){if(void 0===(f=i(r))&&(f=r),f===H&&(f=void 0),e.D&&d(f,!0),o){var p=[],l=[];b("Patches").M(r,f,p,l),o(p,l);}return f}n(21,r);},this.produceWithPatches=function(n,r){if("function"==typeof n)return function(r){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return e.produceWithPatches(r,(function(r){return n.apply(void 0,[r].concat(i))}))};var t,i,o=e.produce(n,r,(function(n,r){t=n,i=r;}));return "undefined"!=typeof Promise&&o instanceof Promise?o.then((function(n){return [n,t,i]})):[o,t,i]},"boolean"==typeof(null==r?void 0:r.useProxies)&&this.setUseProxies(r.useProxies),"boolean"==typeof(null==r?void 0:r.autoFreeze)&&this.setAutoFreeze(r.autoFreeze);}var i=e.prototype;return i.createDraft=function(e){t(e)||n(8),r(e)&&(e=R(e));var i=w(this),o=N(this,e,void 0);return o[Q].C=!0,O(i),o},i.finishDraft=function(r,t){var e=r&&r[Q];"production"!==process.env.NODE_ENV&&(e&&e.C||n(9),e.I&&n(10));var i=e.A;return j(i,t),P(void 0,i)},i.setAutoFreeze=function(n){this.D=n;},i.setUseProxies=function(r){r&&!B&&n(20),this.O=r;},i.applyPatches=function(n,t){var e;for(e=t.length-1;e>=0;e--){var i=t[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(t=t.slice(e+1));var o=b("Patches").$;return r(n)?o(n,t):this.produce(n,(function(n){return o(n,t)}))},e}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);var produce = fn;
|
|
47
36
|
|
|
@@ -94,7 +83,7 @@ const DEFAULT_TRANSLATE_MESSAGE = {
|
|
|
94
83
|
};
|
|
95
84
|
const DEFAULT_DATA_ERROR_MESSAGE = 'TransferList: Be sure to send the defaultDate according to the documentation standard';
|
|
96
85
|
|
|
97
|
-
var css_248z$2 = "[data-gene-ui-version=\"
|
|
86
|
+
var css_248z$2 = "[data-gene-ui-version=\"2.12.2\"] .bc-transfer-element{grid-column-gap:1.2rem;--crs-grid-column-gap:2rem;align-items:center;cursor:pointer;display:grid;grid-template-columns:1fr auto;margin:.75rem 0;overflow:hidden;padding:0 1.5rem 0 2rem;transition:color .4s,background .4s,opacity .4s,box-shadow .4s;width:100%}[data-gene-ui-version=\"2.12.2\"] .bc-transfer-element:not(.minimalistic){background:var(--background);border:1px solid rgba(var(--background-sc-rgb),.1);border-radius:1rem;box-shadow:inset 0 0 0 4.2rem rgba(var(--hero-rgb),0),0 .2rem .4rem 0 rgba(var(--hero-rgb),0);height:4.2rem}@media (hover:hover){[data-gene-ui-version=\"2.12.2\"] .bc-transfer-element:not(.minimalistic):hover{border-color:rgba(var(--hero-rgb),.2);box-shadow:inset 0 0 0 4.2rem rgba(var(--hero-rgb),.1),0 .2rem .4rem 0 rgba(var(--hero-rgb),0);color:var(--hero)}}[data-gene-ui-version=\"2.12.2\"] .bc-transfer-element.hovered{border-color:rgba(var(--hero-rgb),.2);box-shadow:inset 0 0 0 4.2rem rgba(var(--hero-rgb),.1),0 .2rem .4rem 0 rgba(var(--hero-rgb),0);color:var(--hero)}[data-gene-ui-version=\"2.12.2\"] .bc-transfer-element.disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"2.12.2\"] .bc-transfer-element.dragged{border-color:rgba(var(--hero-rgb),.1);box-shadow:inset 0 0 0 4.2rem rgba(var(--hero-rgb),.1),0 .2rem .4rem 0 rgba(var(--hero-rgb),.1);color:var(--hero)}[data-gene-ui-version=\"2.12.2\"] .bc-transfer-element.readOnly{cursor:default}[data-gene-ui-version=\"2.12.2\"] .bc-transfer-element.readOnly .crs-holder .crs-component{display:none}[data-gene-ui-version=\"2.12.2\"] .bc-transfer-element>.icon{cursor:grab}[data-gene-ui-version=\"2.12.2\"] .bc-transfer-element>.icon:active{cursor:grabbing}[data-gene-ui-version=\"2.12.2\"] .bc-transfer-element .crs-holder{pointer-events:none}";
|
|
98
87
|
styleInject(css_248z$2);
|
|
99
88
|
|
|
100
89
|
const TransferElement = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
@@ -197,7 +186,7 @@ function TransferListButtons(_ref) {
|
|
|
197
186
|
})));
|
|
198
187
|
}
|
|
199
188
|
|
|
200
|
-
var css_248z$1 = "[data-gene-ui-version=\"
|
|
189
|
+
var css_248z$1 = "[data-gene-ui-version=\"2.12.2\"] .bc-transfer-container{width:100%}[data-gene-ui-version=\"2.12.2\"] .bc-transfer-container>li+li{border-top:1px solid var(--transfer-container-border-color,#0000)}[data-gene-ui-version=\"2.12.2\"] .bc-tl-head{align-items:center;display:flex;font:600 1.4rem/1.8rem var(--font-family);height:5.1rem;justify-content:space-between;padding:0 2rem}[data-gene-ui-version=\"2.12.2\"] .bc-tl-head h5{color:var(--hero)}[data-gene-ui-version=\"2.12.2\"] .bc-tl-head span{color:rgba(var(--background-sc-rgb),.5)}[data-gene-ui-version=\"2.12.2\"] .bc-tl-buttons{--button-external-size:4rem;border-width:medium;border-bottom:0 solid rgba(var(--background-sc-rgb),.1);border-left:1px solid rgba(var(--background-sc-rgb),.1);border-right:1px solid rgba(var(--background-sc-rgb),.1);border-top:0 solid rgba(var(--background-sc-rgb),.1);display:flex;flex-direction:column;flex-shrink:0;justify-content:center;padding:0 1rem}[data-gene-ui-version=\"2.12.2\"] .bc-tl-buttons>*+*{margin:1rem 0 0}[data-gene-ui-version=\"2.12.2\"] .bc-tl-search{padding:2rem}[data-gene-ui-version=\"2.12.2\"] .bc-tl-content-holder{height:var(--transfer-container-content-height);overflow:hidden;position:relative}[data-gene-ui-version=\"2.12.2\"] .bc-tl-content{display:flex;flex-direction:column;justify-content:flex-start;min-height:100%;padding:.7rem 2rem;width:100%}[data-gene-ui-version=\"2.12.2\"] .bc-tl-content>.bc-tl-item{opacity:1!important}[data-gene-ui-version=\"2.12.2\"] .bc-tl-placeholder{align-items:center;display:flex;height:100%;justify-content:center;left:0;padding:0 0 3.6rem;position:absolute;top:0;width:100%}[data-gene-ui-version=\"2.12.2\"] .bc-tl-drop-here{align-items:center;display:flex;flex-direction:column;font:600 1.4rem/1.8rem var(--font-family);text-align:center;width:100%}[data-gene-ui-version=\"2.12.2\"] .bc-tl-drop-here i{color:rgba(var(--hero-rgb),.1);font-size:11rem}";
|
|
201
190
|
styleInject(css_248z$1);
|
|
202
191
|
|
|
203
192
|
function TransferListContainer(_ref) {
|
|
@@ -321,7 +310,7 @@ function TransferListContainer(_ref) {
|
|
|
321
310
|
}, transmissionButtons)));
|
|
322
311
|
}
|
|
323
312
|
|
|
324
|
-
var css_248z = "[data-gene-ui-version=\"
|
|
313
|
+
var css_248z = "[data-gene-ui-version=\"2.12.2\"] .bc-transfer-list{--transfer-container-border-color:rgba(var(--background-sc-rgb),0.1);--transfer-container-content-height:33.4rem;background:var(--background);box-shadow:0 0 0 1px var(--transfer-container-border-color);display:flex;grid-template-columns:1fr auto 1fr;-webkit-user-select:none;user-select:none;width:100%}[data-gene-ui-version=\"2.12.2\"] .bc-transfer-list .scroll-holder .scroll-content{z-index:inherit}";
|
|
325
314
|
styleInject(css_248z);
|
|
326
315
|
|
|
327
316
|
function TransferList(_ref) {
|
|
@@ -471,29 +460,29 @@ TransferList.propTypes = {
|
|
|
471
460
|
* DefaultData there should be objects with different keys names, inside which there should be container data
|
|
472
461
|
* { taskts: [], toDo: [{ id: 1, name: "Element 1", disabled: false }] }
|
|
473
462
|
*/
|
|
474
|
-
defaultData:
|
|
463
|
+
defaultData: PropTypes.object.isRequired,
|
|
475
464
|
/**
|
|
476
465
|
* onChange listen to the change in the container and return you the new object
|
|
477
466
|
*/
|
|
478
|
-
onChange:
|
|
467
|
+
onChange: PropTypes.func,
|
|
479
468
|
/**
|
|
480
469
|
* Using translateMessages prop you can add/change the text title of the containers, count subtitle, empty Text, etc.
|
|
481
470
|
*/
|
|
482
|
-
translateMessages:
|
|
483
|
-
titles:
|
|
484
|
-
countTitle:
|
|
485
|
-
dropHere:
|
|
486
|
-
empty:
|
|
471
|
+
translateMessages: PropTypes.shape({
|
|
472
|
+
titles: PropTypes.object,
|
|
473
|
+
countTitle: PropTypes.object,
|
|
474
|
+
dropHere: PropTypes.string,
|
|
475
|
+
empty: PropTypes.string
|
|
487
476
|
}),
|
|
488
477
|
/**
|
|
489
478
|
* CSS classname to add on the outer container.
|
|
490
479
|
*/
|
|
491
|
-
className:
|
|
480
|
+
className: PropTypes.string,
|
|
492
481
|
/**
|
|
493
482
|
* When do you send: false
|
|
494
483
|
* Hide Select All buttons / items checkboxes / disabled all drag and drop functionality
|
|
495
484
|
*/
|
|
496
|
-
isEditable:
|
|
485
|
+
isEditable: PropTypes.bool
|
|
497
486
|
};
|
|
498
487
|
TransferList.defaultProps = {
|
|
499
488
|
onChange: noop
|