@geneui/components 2.11.2 → 2.12.1
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} +291 -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 +40 -0
- package/{Card.js → Card/index.js} +82 -94
- package/{CardList.js → CardList/index.js} +118 -165
- package/{CellMeasurerCache-b786dd93.js → CellMeasurerCache-bc2163c1.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} +46 -43
- package/{DatePicker.js → DatePicker/index.js} +106 -108
- package/{index-0199942c.js → DatePickerInput/index.js} +103 -89
- 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 +86 -0
- package/{FormContainer.js → FormContainer/index.js} +25 -26
- package/FormableCheckbox/index.js +26 -0
- package/FormableDatePicker/index.js +42 -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 +287 -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/{index-5e96cb4d.js → PopoverV2/index.js} +57 -1006
- 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-8b9c3afa.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} +132 -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 +556 -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} +45 -42
- package/ValidatableDropdown/index.js +139 -0
- package/ValidatableElements/index.js +68 -0
- package/ValidatableMultiSelectDropdown/index.js +150 -0
- package/{ValidatableNumberInput.js → ValidatableNumberInput/index.js} +34 -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-45eafea6.js +90 -0
- package/index-583e0b30.js +4 -0
- package/{index-8c98317a.js → index-78d2ea5b.js} +678 -752
- package/{index-ac59cb10.js → index-a0e4e333.js} +6 -6
- package/{index-e8776f3d.js → index-b1e429a7.js} +1 -1
- package/index-bd525a3a.js +10054 -0
- package/index.d.ts +115 -0
- package/index.js +138 -113
- package/index.mobile.d.ts +16 -0
- package/jsx-runtime-57b40d9e.js +957 -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,18 @@
|
|
|
1
|
+
import { useRef, useCallback, useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
function useClick(callback) {
|
|
4
|
+
const ref = useRef();
|
|
5
|
+
const handleClick = useCallback(e => {
|
|
6
|
+
if (ref.current && ref.current.contains(e.target)) {
|
|
7
|
+
callback && callback(e);
|
|
8
|
+
}
|
|
9
|
+
}, [ref.current, callback]);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
document.addEventListener('mousedown', handleClick);
|
|
12
|
+
return () => document.removeEventListener('mousedown', handleClick);
|
|
13
|
+
}, [handleClick]);
|
|
14
|
+
const setRef = node => ref.current = node;
|
|
15
|
+
return setRef;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { useClick as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
const useDebounce = (value, delay) => {
|
|
4
|
+
const [debouncedValue, setDebouncedValue] = useState(value);
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
const handler = setTimeout(() => {
|
|
7
|
+
setDebouncedValue(value);
|
|
8
|
+
}, delay);
|
|
9
|
+
return () => {
|
|
10
|
+
clearTimeout(handler);
|
|
11
|
+
};
|
|
12
|
+
}, [delay, value]);
|
|
13
|
+
return debouncedValue;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { useDebounce as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { a as clientConfigs, m as mobileScreenSize } from '
|
|
2
|
-
import
|
|
1
|
+
import { a as clientConfigs, m as mobileScreenSize } from '../configs-fed6ac34.js';
|
|
2
|
+
import useWindowSize from './useWindowSize.js';
|
|
3
|
+
import 'react';
|
|
3
4
|
|
|
4
5
|
function useDeviceType(screenType) {
|
|
5
6
|
const {
|
|
@@ -12,4 +13,4 @@ function useDeviceType(screenType) {
|
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
export { useDeviceType as
|
|
16
|
+
export { useDeviceType as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useRef, useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
const useDidMount = function () {
|
|
4
|
+
let callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : () => {};
|
|
5
|
+
let deps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
6
|
+
const _isFirstUpdate = useRef(true);
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
if (!_isFirstUpdate.current) {
|
|
9
|
+
callback();
|
|
10
|
+
}
|
|
11
|
+
_isFirstUpdate.current = false;
|
|
12
|
+
}, deps);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { useDidMount as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useCallback } from 'react';
|
|
2
|
+
|
|
3
|
+
const useImgDownload = () => useCallback(function (url, name) {
|
|
4
|
+
let customHeaders = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
5
|
+
fetch(url, {
|
|
6
|
+
headers: {
|
|
7
|
+
...customHeaders
|
|
8
|
+
}
|
|
9
|
+
}).then(response => response.blob()).then(blob => {
|
|
10
|
+
const blobURL = URL.createObjectURL(blob);
|
|
11
|
+
const a = document.createElement('a');
|
|
12
|
+
a.href = blobURL;
|
|
13
|
+
a.download = name && name.length ? name : 'download';
|
|
14
|
+
a.click();
|
|
15
|
+
}).catch(error => console.log(error));
|
|
16
|
+
}, []);
|
|
17
|
+
|
|
18
|
+
export { useImgDownload as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
import { n as noop } from '../index-a0e4e333.js';
|
|
3
|
+
import 'prop-types';
|
|
4
|
+
import '../dateValidation-67caec66.js';
|
|
5
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
6
|
+
import 'react-dom';
|
|
7
|
+
|
|
8
|
+
const useMount = function () {
|
|
9
|
+
let onMount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : noop;
|
|
10
|
+
return useEffect(onMount, []);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { useMount as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
const defaultOptions = {
|
|
4
|
+
attributes: true,
|
|
5
|
+
childList: true,
|
|
6
|
+
subtree: true
|
|
7
|
+
};
|
|
8
|
+
const useMutationObserver = function (ref, callback) {
|
|
9
|
+
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultOptions;
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (ref.current) {
|
|
12
|
+
const observer = new MutationObserver(callback);
|
|
13
|
+
observer.observe(ref.current, options);
|
|
14
|
+
return () => {
|
|
15
|
+
observer.disconnect();
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}, [callback, options]);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { useMutationObserver as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useRef, useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
const usePrevious = (callback, deps) => {
|
|
4
|
+
const previous = useRef();
|
|
5
|
+
const value = useMemo(() => callback(previous.current), deps);
|
|
6
|
+
previous.current = value;
|
|
7
|
+
return value;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { usePrevious as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useRef, useCallback } from 'react';
|
|
2
|
+
|
|
3
|
+
const useThrottle = (callback, delay) => {
|
|
4
|
+
const ref = useRef(null);
|
|
5
|
+
return useCallback(function () {
|
|
6
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7
|
+
args[_key] = arguments[_key];
|
|
8
|
+
}
|
|
9
|
+
clearTimeout(ref.current);
|
|
10
|
+
ref.current = setTimeout(() => {
|
|
11
|
+
callback(...args);
|
|
12
|
+
}, delay);
|
|
13
|
+
}, [callback, delay]);
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { useThrottle as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useState, useCallback } from 'react';
|
|
2
|
+
|
|
3
|
+
function useToggle(defaultValue) {
|
|
4
|
+
const [state, setState] = useState(!!defaultValue);
|
|
5
|
+
const toggle = useCallback(value => {
|
|
6
|
+
setState(prev => typeof value === 'undefined' ? !prev : !!value);
|
|
7
|
+
}, []);
|
|
8
|
+
return [state, toggle];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { useToggle as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useRef, useCallback } from 'react';
|
|
2
|
+
import useForceUpdate from './useForceUpdate.js';
|
|
3
|
+
|
|
4
|
+
const useUpdatableRef = initial => {
|
|
5
|
+
const ref = useRef(initial);
|
|
6
|
+
const forceUpdate = useForceUpdate();
|
|
7
|
+
const update = useCallback(value => {
|
|
8
|
+
if (ref.current !== value) forceUpdate();
|
|
9
|
+
ref.current = value;
|
|
10
|
+
}, []);
|
|
11
|
+
return [ref, update];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { useUpdatableRef as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useRef, useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
function useUpdate(callback, dependencies) {
|
|
4
|
+
const initial = useRef(true);
|
|
5
|
+
useEffect(initial.current ? () => {
|
|
6
|
+
initial.current = false;
|
|
7
|
+
} : callback, dependencies);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { useUpdate as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect } from 'react';
|
|
2
|
-
import
|
|
2
|
+
import useWindowSize from './useWindowSize.js';
|
|
3
3
|
|
|
4
4
|
function useWidth(ref) {
|
|
5
5
|
const [width, setWidth] = useState(null);
|
|
@@ -12,4 +12,4 @@ function useWidth(ref) {
|
|
|
12
12
|
return width;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export { useWidth as
|
|
15
|
+
export { useWidth as default };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
/* eslint-disable no-unused-vars */
|
|
7
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
9
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
|
|
11
|
+
function toObject(val) {
|
|
12
|
+
if (val === null || val === undefined) {
|
|
13
|
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return Object(val);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function shouldUseNative() {
|
|
20
|
+
try {
|
|
21
|
+
if (!Object.assign) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Detect buggy property enumeration order in older V8 versions.
|
|
26
|
+
|
|
27
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
28
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
29
|
+
test1[5] = 'de';
|
|
30
|
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
35
|
+
var test2 = {};
|
|
36
|
+
for (var i = 0; i < 10; i++) {
|
|
37
|
+
test2['_' + String.fromCharCode(i)] = i;
|
|
38
|
+
}
|
|
39
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
40
|
+
return test2[n];
|
|
41
|
+
});
|
|
42
|
+
if (order2.join('') !== '0123456789') {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
47
|
+
var test3 = {};
|
|
48
|
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
49
|
+
test3[letter] = letter;
|
|
50
|
+
});
|
|
51
|
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
52
|
+
'abcdefghijklmnopqrst') {
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return true;
|
|
57
|
+
} catch (err) {
|
|
58
|
+
// We don't expect any of the above to throw, but better to be safe.
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
64
|
+
var from;
|
|
65
|
+
var to = toObject(target);
|
|
66
|
+
var symbols;
|
|
67
|
+
|
|
68
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
69
|
+
from = Object(arguments[s]);
|
|
70
|
+
|
|
71
|
+
for (var key in from) {
|
|
72
|
+
if (hasOwnProperty.call(from, key)) {
|
|
73
|
+
to[key] = from[key];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (getOwnPropertySymbols) {
|
|
78
|
+
symbols = getOwnPropertySymbols(from);
|
|
79
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
80
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
81
|
+
to[symbols[i]] = from[symbols[i]];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return to;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export { objectAssign as o };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { s as styleInject } from './style-inject.es-746bb8ed.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = "[data-gene-ui-version=\"2.12.1\"] .dropdown-holder{--input-message-padding-side:2rem;max-width:100%}[data-gene-ui-version=\"2.12.1\"] .dropdown-holder .read-only-cursor-default{cursor:default}[data-gene-ui-version=\"2.12.1\"] .dropdown-holder:not(.f-content-size){width:100%}[data-gene-ui-version=\"2.12.1\"] .dropdown-holder.a-minimal.s-small{--input-message-padding-side:0.7rem}[data-gene-ui-version=\"2.12.1\"] .pointer-events-none-dropdown:active{pointer-events:none}[data-gene-ui-version=\"2.12.1\"] .dropdown-actions{align-items:center;color:var(--hero);display:flex;font:600 1.6rem/2rem var(--font-family);height:6.1rem;padding-inline-end:3rem;padding-inline-start:2rem;width:100%}[data-gene-ui-version=\"2.12.1\"] .dropdown-actions:not(:only-child){border-bottom:1px solid rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.12.1\"] .dropdown-actions>li:first-child{flex:auto}[data-gene-ui-version=\"2.12.1\"] .dropdown-actions>li:nth-child(2){flex-shrink:0}[data-gene-ui-version=\"2.12.1\"] .dropdown-item{align-items:center;display:flex;font:600 1.4rem/1.8rem var(--font-family);height:4rem;justify-content:flex-start;padding:0 1.4rem;transition:color .4s,background .4s;width:100%}@media (hover:hover){[data-gene-ui-version=\"2.12.1\"] .dropdown-item.hovered,[data-gene-ui-version=\"2.12.1\"] .dropdown-item:not(.hover-disabled):hover{background:rgba(var(--background-sc-rgb),.05)}}html[dir=rtl] .dropdown-item{justify-content:flex-end}[data-gene-ui-version=\"2.12.1\"] .dropdown-item:not(.read-only){cursor:pointer}html[dir=rtl] .dropdown-item:not(.sticky-option,.group-title){display:flex;flex-direction:row-reverse;justify-content:flex-start;width:100%}html[dir=rtl] .dropdown-item:not(.sticky-option,.group-title) p{flex-grow:1!important}html[dir=rtl] .dropdown-item .crs-holder .label-holder.has-label{grid-template-columns:1fr auto}html[dir=rtl] .dropdown-item .crs-holder .label-holder.has-label>:first-child{order:0}html[dir=rtl] .dropdown-item .crs-holder .label-holder.has-label>:last-child{order:1}[data-gene-ui-version=\"2.12.1\"] .dropdown-item.sticky-option{position:-webkit-sticky;position:sticky;top:0;z-index:10}[data-gene-ui-version=\"2.12.1\"] .dropdown-item.sticky-option.hovered{background:var(--background-hover)}[data-gene-ui-version=\"2.12.1\"] .dropdown-item.sticky-option:not(.hovered){background:var(--background)}@media (hover:hover){[data-gene-ui-version=\"2.12.1\"] .dropdown-item.sticky-option:not(.hover-disabled):hover{background:var(--background-hover)}}html[dir=rtl] .dropdown-item.sticky-option{display:flex;justify-content:flex-start;width:100%}html[dir=rtl] .dropdown-item.sticky-option .label-holder{display:flex;flex-direction:row-reverse}[data-gene-ui-version=\"2.12.1\"] .dropdown-item>p{align-items:center;display:flex;flex:auto;overflow:hidden}html[dir=rtl] .dropdown-item>p{flex:none}[data-gene-ui-version=\"2.12.1\"] .dropdown-item>p i{flex-shrink:0}html:not([dir=rtl]) .dropdown-item>p i{margin-right:1.2rem}html[dir=rtl] .dropdown-item>p i{margin-left:1.2rem}[data-gene-ui-version=\"2.12.1\"] .dropdown-item>p span{flex:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-gene-ui-version=\"2.12.1\"] .dropdown-item>small{flex-shrink:0}[data-gene-ui-version=\"2.12.1\"] .dropdown-item>small.bc-icon-selected:before{display:block;transform:scale(0);transition:transform .4s}[data-gene-ui-version=\"2.12.1\"] .selected.dropdown-item>small.bc-icon-selected:before{transform:scale(1)}[data-gene-ui-version=\"2.12.1\"] .dropdown-item.selected{color:var(--hero)}[data-gene-ui-version=\"2.12.1\"] .dropdown-item.disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"2.12.1\"] .dropdown-item.group-title{background:#0000;color:rgba(var(--background-sc-rgb),.75);display:flex;font-size:12px;font-weight:600;height:25px;line-height:16px;padding:0 1.2rem 0 .8rem;pointer-events:none}[data-gene-ui-version=\"2.12.1\"] .dropdown-item.group-title:hover{background:#0000}html[dir=rtl] .dropdown-item.group-title{flex-direction:row-reverse;justify-content:space-between;padding:0 .8rem 0 1.2rem}[data-gene-ui-version=\"2.12.1\"] .dropdown-item .group-title-icon{color:rgba(var(--background-sc-rgb),.75);pointer-events:auto}[data-gene-ui-version=\"2.12.1\"] .dropdown-item.groupLastChild{border-bottom:1px solid rgba(var(--background-sc-rgb),.16)}[data-gene-ui-version=\"2.12.1\"] .popover-positioner.mobile-view .dropdown-item{height:4.8rem;padding:0 2rem}[data-gene-ui-version=\"2.12.1\"] .temporary-full-width{width:100%}[data-gene-ui-version=\"2.12.1\"] .dropdown-item-tag{flex-shrink:0;font:600 1.4rem/1.8rem var(--font-family);opacity:.5}[data-gene-ui-version=\"2.12.1\"] .busy-loader{align-items:center;border-radius:100%;display:block;display:flex;height:19rem;justify-content:center;margin:0 1rem}";
|
|
4
|
+
styleInject(css_248z);
|