@geneui/components 2.11.1 → 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.js → Alert/index.js} +19 -20
- package/Avatar/index.js +30 -0
- package/{Badge.js → Badge/index.js} +13 -14
- package/{Breadcrumb.js → Breadcrumb/index.js} +32 -31
- package/{BusyLoader.js → BusyLoader/index.js} +11 -12
- package/{Button.js → Button/index.js} +20 -21
- package/CHANGELOG.md +56 -0
- package/{Card.js → Card/index.js} +82 -94
- package/{CardList.js → CardList/index.js} +118 -165
- package/{CellMeasurerCache-c11cec83.js → CellMeasurerCache-bc2163c1.js} +2 -2
- package/{index-0cf65939.js → Charts/index.js} +17103 -30439
- 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-5e722d91.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} +83 -73
- 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.js → Image/index.js} +29 -30
- package/ImagePreview/index.js +481 -0
- package/{KeyValue.js → KeyValue/index.js} +11 -12
- package/LICENSE +21 -0
- package/{Label.js → Label/index.js} +8 -9
- package/LinkButton/index.js +67 -0
- package/{Menu.js → Menu/index.js} +39 -34
- package/{MobileNavigation.js → MobileNavigation/index.js} +19 -20
- 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} +44 -35
- package/{Notification.js → Notification/index.js} +24 -25
- package/{Option.js → Option/index.js} +37 -39
- package/Overlay/index.js +189 -0
- package/{Overspread.js → Overspread/index.js} +65 -121
- package/{Pagination.js → Pagination/index.js} +35 -34
- package/Paper/index.js +96 -0
- package/{index-a4635754.js → Popover/index.js} +48 -58
- package/{index-702bf24a.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.js → Progress/index.js} +24 -25
- 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-b7928765.js → RichEditor-8b9c3afa.js} +18 -18
- package/{Scrollbar.js → Scrollbar/index.js} +15 -17
- package/{Search.js → Search/index.js} +25 -24
- package/{SearchWithDropdown.js → SearchWithDropdown/index.js} +47 -104
- package/{Section.js → Section/index.js} +15 -16
- package/{SkeletonLoader.js → SkeletonLoader/index.js} +13 -14
- package/{Slider.js → Slider/index.js} +46 -43
- package/{Status.js → Status/index.js} +23 -24
- package/{Steps.js → Steps/index.js} +42 -41
- package/{index-5cea9a7d.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.js → Tabs/index.js} +27 -28
- package/{Tag.js → Tag/index.js} +17 -18
- 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.js → Timeline/index.js} +19 -20
- package/{Title.js → Title/index.js} +13 -14
- 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-d9e8a888.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-a59530cd.js → index-583e0b30.js} +1 -1
- package/{index-67f4d4d1.js → index-78d2ea5b.js} +684 -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/Avatar.js +0 -77
- 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/ImagePreview.js +0 -99
- package/LinkButton.js +0 -104
- package/ModuleTitle.js +0 -99
- package/Overlay.js +0 -99
- package/Paper.js +0 -97
- package/Popover.js +0 -20
- package/PopoverV2.js +0 -19
- package/Profile.js +0 -99
- package/Range.js +0 -14
- package/RichEditor.js +0 -13
- package/SuggestionList.js +0 -15
- package/Table.js +0 -102
- package/TimePicker.js +0 -99
- 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-b7a33c58.js +0 -11
- package/index-e0af0caf.js +0 -1182
- package/useMount-6fef51a5.js +0 -9
package/Overlay/index.js
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
|
+
import React__default, { useState, useMemo, useCallback, useEffect } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { c as classnames } from '../index-6ff23041.js';
|
|
5
|
+
import { p as positions } from '../configs-fed6ac34.js';
|
|
6
|
+
import { n as noop } from '../index-a0e4e333.js';
|
|
7
|
+
import useKeyDown from '../hooks/useKeyDown.js';
|
|
8
|
+
import useClickOutside from '../hooks/useClickOutside.js';
|
|
9
|
+
import CustomScrollbar from '../Scrollbar/index.js';
|
|
10
|
+
import Button from '../Button/index.js';
|
|
11
|
+
import Divider from '../Divider/index.js';
|
|
12
|
+
import ModuleTitle from '../ModuleTitle/index.js';
|
|
13
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
14
|
+
import '../dateValidation-67caec66.js';
|
|
15
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
16
|
+
import 'react-dom';
|
|
17
|
+
import '../Icon/index.js';
|
|
18
|
+
import '../Tooltip/index.js';
|
|
19
|
+
import '../Popover-f4d1cac0.js';
|
|
20
|
+
import '../hooks/useDeviceType.js';
|
|
21
|
+
import '../hooks/useWindowSize.js';
|
|
22
|
+
import '../GeneUIProvider/index.js';
|
|
23
|
+
|
|
24
|
+
var css_248z = "[data-gene-ui-version=\"2.12.1\"] .overlay-back-drop{animation:fadeIn 1s forwards;background:rgba(var(--background-rgb),.6);height:100%;left:0;opacity:0;position:fixed;top:0;width:100%;z-index:299}@keyframes fadeIn{to{opacity:1}}[data-gene-ui-version=\"2.12.1\"] .overlay-holder{display:flex;flex-direction:column;position:fixed;transition:width .4s,height .4s;z-index:300}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-horizontal{animation:slideInX .4s linear forwards;background:var(--background);bottom:0;top:var(--header-height,0)}@keyframes slideInX{to{transform:translateX(0)}}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-horizontal.p-left{box-shadow:.5rem 0 .6rem 0 #0000000d;transform:translateX(-120%)}html:not([dir=rtl]) .overlay-holder.t-horizontal.p-left{left:0}html[dir=rtl] .overlay-holder.t-horizontal.p-left{box-shadow:-.5rem 0 .6rem 0 #0000000d;right:0;transform:translateX(120%)}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-horizontal.p-left .overlay-close{border-radius:0 .4rem .4rem 0;box-shadow:.5rem 0 .6rem 0 #0000000d}html:not([dir=rtl]) .overlay-holder.t-horizontal.p-left .overlay-close{left:100%}html[dir=rtl] .overlay-holder.t-horizontal.p-left .overlay-close{border-radius:.4rem 0 0 .4rem;box-shadow:-.5rem 0 .6rem 0 #0000000d;right:100%}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-horizontal.p-right{box-shadow:-.5rem 0 .6rem 0 #0000000d;transform:translateX(120%)}html:not([dir=rtl]) .overlay-holder.t-horizontal.p-right{right:0}html[dir=rtl] .overlay-holder.t-horizontal.p-right{box-shadow:.5rem 0 .6rem 0 #0000000d;left:0;transform:translateX(-120%)}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-horizontal.p-right .overlay-close{border-radius:.4rem 0 0 .4rem;box-shadow:-.5rem 0 .6rem 0 #0000000d}html:not([dir=rtl]) .overlay-holder.t-horizontal.p-right .overlay-close{right:100%}html[dir=rtl] .overlay-holder.t-horizontal.p-right .overlay-close{border-radius:0 .4rem .4rem 0;box-shadow:.5rem 0 .6rem 0 #0000000d;left:100%}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-horizontal.s-half{width:50%}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-horizontal.s-wide{width:75%}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-horizontal.s-minimal{width:30rem}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-vertical{animation:slideInY .4s linear forwards;background:var(--background);height:25vh;left:0;width:100%}@keyframes slideInY{to{transform:translateY(0)}}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-vertical.s-extended{height:50vh}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-vertical.p-top{border-radius:0 0 2rem 2rem;box-shadow:0 .3rem .6rem 0 #0000000d;top:0;transform:translateY(-120%)}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-vertical.p-top .extend-reduce{box-shadow:0 .3rem .6rem 0 #0000000d;top:100%;transform:translate(-50%,-50%)}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-vertical.p-bottom{border-radius:2rem 2rem 0 0;bottom:0;box-shadow:0 -.3rem .6rem 0 #0000000d;flex-direction:column-reverse;transform:translateY(120%)}[data-gene-ui-version=\"2.12.1\"] .overlay-holder.t-vertical.p-bottom .extend-reduce{bottom:100%;box-shadow:0 -.3rem .6rem 0 #0000000d;transform:translate(-50%,50%)}[data-gene-ui-version=\"2.12.1\"] .overlay-head{flex-shrink:0;position:relative;z-index:1}[data-gene-ui-version=\"2.12.1\"] .overlay-close{align-items:center;background:var(--background);display:flex;height:6rem;justify-content:center;position:absolute;top:0;width:6rem}[data-gene-ui-version=\"2.12.1\"] .overlay-body{display:flex;flex:auto;flex-direction:column;position:relative}[data-gene-ui-version=\"2.12.1\"] .overlay-body>.scroll-holder{height:100%;left:0;position:absolute!important;top:0;width:100%}[data-gene-ui-version=\"2.12.1\"] .overlay-body>.scroll-holder>.scroll-content{align-items:stretch;display:flex;flex-direction:column;justify-content:flex-start}[data-gene-ui-version=\"2.12.1\"] .overlay-body .overlay-content{flex:auto;padding:2.1rem 1.9rem}[data-gene-ui-version=\"2.12.1\"] .overlay-body .overlay-footer{display:flex;flex-shrink:0;justify-content:flex-end}[data-gene-ui-version=\"2.12.1\"] .overlay-body .overlay-footer>*{margin:1rem}[data-gene-ui-version=\"2.12.1\"] .extend-reduce{background:var(--background);border-radius:3.6rem;color:var(--hero);cursor:pointer;font:600 1.4rem/1.8rem var(--font-family);height:3.6rem;left:50%;min-width:14rem;padding:0 2rem;position:absolute;text-align:center;transition:color .3s,background .3s}[data-gene-ui-version=\"2.12.1\"] .extend-reduce:hover{background:var(--hero);color:var(--hero-sc)}";
|
|
25
|
+
styleInject(css_248z);
|
|
26
|
+
|
|
27
|
+
const horizontalSizes = ['half', 'wide', 'minimal'];
|
|
28
|
+
function Overlay(_ref) {
|
|
29
|
+
let {
|
|
30
|
+
position,
|
|
31
|
+
title,
|
|
32
|
+
description,
|
|
33
|
+
horizontalSize,
|
|
34
|
+
headerActions,
|
|
35
|
+
footer,
|
|
36
|
+
children,
|
|
37
|
+
onClose,
|
|
38
|
+
onClickOutside,
|
|
39
|
+
className,
|
|
40
|
+
closeText,
|
|
41
|
+
reduceText,
|
|
42
|
+
extendText,
|
|
43
|
+
withBackDrop,
|
|
44
|
+
onToggle,
|
|
45
|
+
isExtended,
|
|
46
|
+
...restProps
|
|
47
|
+
} = _ref;
|
|
48
|
+
const setRef = useClickOutside(onClickOutside);
|
|
49
|
+
const [extended, setExtended] = useState(!!isExtended);
|
|
50
|
+
const isControlled = useMemo(() => typeof isExtended === 'boolean', [isExtended]);
|
|
51
|
+
const isVertical = useMemo(() => position === 'top' || position === 'bottom', [position]);
|
|
52
|
+
const toggleExtended = useCallback(() => setExtended(prev => !prev), []);
|
|
53
|
+
const handleToggle = useCallback(event => {
|
|
54
|
+
isControlled ? onToggle(event, extended) : toggleExtended();
|
|
55
|
+
}, [onToggle, extended]);
|
|
56
|
+
useKeyDown(e => onClose(e), [], {
|
|
57
|
+
current: window
|
|
58
|
+
}, ['Escape']);
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
setExtended(isExtended);
|
|
61
|
+
}, [isExtended]);
|
|
62
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", _extends({
|
|
63
|
+
className: classnames(className, 'overlay-holder', "p-".concat(position), {
|
|
64
|
+
't-vertical': isVertical,
|
|
65
|
+
't-horizontal': !isVertical,
|
|
66
|
+
's-extended': isVertical && extended,
|
|
67
|
+
["s-".concat(horizontalSize)]: !isVertical
|
|
68
|
+
})
|
|
69
|
+
}, restProps, {
|
|
70
|
+
ref: setRef
|
|
71
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
72
|
+
className: "overlay-head"
|
|
73
|
+
}, /*#__PURE__*/React__default.createElement(ModuleTitle, {
|
|
74
|
+
size: "extra-big",
|
|
75
|
+
title: title,
|
|
76
|
+
description: description,
|
|
77
|
+
position: isVertical ? position : 'top',
|
|
78
|
+
cornerRadius: isVertical ? 'position-radius' : 'no-radius'
|
|
79
|
+
}, headerActions, isVertical && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Divider, {
|
|
80
|
+
type: "vertical"
|
|
81
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
82
|
+
onClick: onClose,
|
|
83
|
+
appearance: "minimal"
|
|
84
|
+
}, closeText))), !isVertical && /*#__PURE__*/React__default.createElement("div", {
|
|
85
|
+
className: "overlay-close"
|
|
86
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
87
|
+
onClick: onClose,
|
|
88
|
+
icon: "bc-icon-close",
|
|
89
|
+
appearance: "minimal",
|
|
90
|
+
color: "default"
|
|
91
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
92
|
+
className: "overlay-body"
|
|
93
|
+
}, /*#__PURE__*/React__default.createElement(CustomScrollbar, null, /*#__PURE__*/React__default.createElement("div", {
|
|
94
|
+
className: "overlay-content"
|
|
95
|
+
}, children), isVertical && /*#__PURE__*/React__default.createElement("div", {
|
|
96
|
+
className: "overlay-footer"
|
|
97
|
+
}, footer)), isVertical && /*#__PURE__*/React__default.createElement("button", {
|
|
98
|
+
onClick: handleToggle,
|
|
99
|
+
className: "extend-reduce"
|
|
100
|
+
}, extended ? reduceText : extendText))), withBackDrop && /*#__PURE__*/React__default.createElement("div", {
|
|
101
|
+
className: "overlay-back-drop"
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
Overlay.propTypes = {
|
|
105
|
+
/**
|
|
106
|
+
* Controls position of the element
|
|
107
|
+
*/
|
|
108
|
+
position: PropTypes.oneOf(positions),
|
|
109
|
+
/**
|
|
110
|
+
* Title for element
|
|
111
|
+
*/
|
|
112
|
+
title: PropTypes.string,
|
|
113
|
+
/**
|
|
114
|
+
* Description text for element
|
|
115
|
+
*/
|
|
116
|
+
description: PropTypes.string,
|
|
117
|
+
/**
|
|
118
|
+
* Controls size of the element
|
|
119
|
+
*/
|
|
120
|
+
horizontalSize: PropTypes.oneOf(horizontalSizes),
|
|
121
|
+
/**
|
|
122
|
+
* Header action bar,
|
|
123
|
+
* React valid elements
|
|
124
|
+
*/
|
|
125
|
+
headerActions: PropTypes.node,
|
|
126
|
+
/**
|
|
127
|
+
* Overlay footer
|
|
128
|
+
* React valid elements
|
|
129
|
+
*/
|
|
130
|
+
footer: PropTypes.node,
|
|
131
|
+
/**
|
|
132
|
+
* Overlay content
|
|
133
|
+
* Valid React elements
|
|
134
|
+
*/
|
|
135
|
+
children: PropTypes.node,
|
|
136
|
+
/**
|
|
137
|
+
* Fires event when user click on close button
|
|
138
|
+
* (event: Event) => void
|
|
139
|
+
*/
|
|
140
|
+
onClose: PropTypes.func,
|
|
141
|
+
/**
|
|
142
|
+
* CSS class for element
|
|
143
|
+
*/
|
|
144
|
+
className: PropTypes.string,
|
|
145
|
+
/**
|
|
146
|
+
* Custom text for close button
|
|
147
|
+
*/
|
|
148
|
+
closeText: PropTypes.string,
|
|
149
|
+
/**
|
|
150
|
+
* Custom text for reduce button
|
|
151
|
+
*/
|
|
152
|
+
reduceText: PropTypes.string,
|
|
153
|
+
/**
|
|
154
|
+
* Custom text for extend button
|
|
155
|
+
*/
|
|
156
|
+
extendText: PropTypes.string,
|
|
157
|
+
/**
|
|
158
|
+
* Fires event when user click on outside of content
|
|
159
|
+
* (event: Event) => void
|
|
160
|
+
*/
|
|
161
|
+
onClickOutside: PropTypes.func,
|
|
162
|
+
/**
|
|
163
|
+
* Adds a white layer on the background when Overlay opens
|
|
164
|
+
*/
|
|
165
|
+
withBackDrop: PropTypes.bool,
|
|
166
|
+
/**
|
|
167
|
+
* with onToggle prop you wash the event listener pressing the open and close button
|
|
168
|
+
* (event: Event, extend: Boolean) => void
|
|
169
|
+
*/
|
|
170
|
+
onToggle: PropTypes.func,
|
|
171
|
+
/**
|
|
172
|
+
* using isExtended props you can control the opening of the component
|
|
173
|
+
* if you add this prop then the component becomes controlled from outside
|
|
174
|
+
*/
|
|
175
|
+
isExtended: PropTypes.bool
|
|
176
|
+
};
|
|
177
|
+
Overlay.defaultProps = {
|
|
178
|
+
position: positions[2],
|
|
179
|
+
horizontalSize: horizontalSizes[0],
|
|
180
|
+
closeText: 'Close',
|
|
181
|
+
reduceText: 'Reduce',
|
|
182
|
+
onClickOutside: noop,
|
|
183
|
+
extendText: 'Extend',
|
|
184
|
+
onClose: noop,
|
|
185
|
+
onToggle: noop,
|
|
186
|
+
withBackDrop: false
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
export { Overlay as default };
|
|
@@ -1,104 +1,48 @@
|
|
|
1
|
-
import { _ as _extends } from '
|
|
1
|
+
import { _ as _extends } from '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
2
|
import React__default, { useState, useRef, useEffect, useCallback } from 'react';
|
|
3
|
-
import
|
|
4
|
-
import { n as noop } from '
|
|
5
|
-
import '
|
|
6
|
-
import
|
|
7
|
-
import Icon from '
|
|
8
|
-
import Portal from '
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import '
|
|
13
|
-
import
|
|
14
|
-
import '
|
|
15
|
-
import './_commonjsHelpers-24198af3.js';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { n as noop } from '../index-a0e4e333.js';
|
|
5
|
+
import '../configs-fed6ac34.js';
|
|
6
|
+
import useClickOutside from '../hooks/useClickOutside.js';
|
|
7
|
+
import Icon from '../Icon/index.js';
|
|
8
|
+
import Portal from '../Portal/index.js';
|
|
9
|
+
import Popover from '../Popover/index.js';
|
|
10
|
+
import Menu from '../Menu/index.js';
|
|
11
|
+
import { D as Dropdown } from '../index-bd525a3a.js';
|
|
12
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
13
|
+
import '../dateValidation-67caec66.js';
|
|
14
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
16
15
|
import 'react-dom';
|
|
17
|
-
import '
|
|
18
|
-
import '
|
|
19
|
-
import '
|
|
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
|
-
import '
|
|
34
|
-
import '
|
|
35
|
-
import '
|
|
36
|
-
import '
|
|
37
|
-
import '
|
|
38
|
-
import '
|
|
39
|
-
import '
|
|
40
|
-
import '
|
|
41
|
-
import '
|
|
42
|
-
import '
|
|
43
|
-
import '
|
|
44
|
-
import '
|
|
45
|
-
import './Switcher.js';
|
|
46
|
-
import './ValidatableNumberInput.js';
|
|
47
|
-
import './ValidatableTextInput.js';
|
|
48
|
-
import './ValidatableDatePicker.js';
|
|
49
|
-
import './index-5e722d91.js';
|
|
50
|
-
import './index-702bf24a.js';
|
|
51
|
-
import './index-122432cd.js';
|
|
52
|
-
import './debounce-4419bc2f.js';
|
|
53
|
-
import './DatePicker.js';
|
|
54
|
-
import './localization-4ba17032.js';
|
|
55
|
-
import './checkTimeValidation-e56771be.js';
|
|
56
|
-
import './useEllipsisDetection-ef536015.js';
|
|
57
|
-
import './Tabs.js';
|
|
58
|
-
import './Steps.js';
|
|
59
|
-
import './Timeline.js';
|
|
60
|
-
import './Card.js';
|
|
61
|
-
import './MobilePopup.js';
|
|
62
|
-
import './SkeletonLoader.js';
|
|
63
|
-
import './KeyValue.js';
|
|
64
|
-
import './configs.js';
|
|
65
|
-
import './Tag.js';
|
|
66
|
-
import './Alert.js';
|
|
67
|
-
import './index-00fe8887.js';
|
|
68
|
-
import './rangeAndSlider-20599da4.js';
|
|
69
|
-
import './Slider.js';
|
|
70
|
-
import './Pagination.js';
|
|
71
|
-
import './Divider.js';
|
|
72
|
-
import './objectWithoutPropertiesLoose-299691d8.js';
|
|
73
|
-
import './clsx.m-2bb6df4b.js';
|
|
74
|
-
import './index-a59530cd.js';
|
|
75
|
-
import './Notification.js';
|
|
76
|
-
import './Modal.js';
|
|
77
|
-
import './Collapse.js';
|
|
78
|
-
import './Status.js';
|
|
79
|
-
import './Avatar.js';
|
|
80
|
-
import './Search.js';
|
|
81
|
-
import './TextLink.js';
|
|
82
|
-
import './Label.js';
|
|
83
|
-
import './Paper.js';
|
|
84
|
-
import './Badge.js';
|
|
85
|
-
import './Time.js';
|
|
86
|
-
import './Title.js';
|
|
87
|
-
import './Option.js';
|
|
88
|
-
import './index-b7a33c58.js';
|
|
89
|
-
import './QRCode.js';
|
|
90
|
-
import './Progress.js';
|
|
91
|
-
import './MobileNavigation.js';
|
|
92
|
-
import './Products.js';
|
|
93
|
-
import './Breadcrumb.js';
|
|
94
|
-
import './Section.js';
|
|
95
|
-
import './ColorPicker.js';
|
|
96
|
-
import './NavigationMenu.js';
|
|
97
|
-
import './Textarea.js';
|
|
98
|
-
import './AdvancedSearch.js';
|
|
99
|
-
import './LinkButton.js';
|
|
16
|
+
import '../index-6ff23041.js';
|
|
17
|
+
import '../GeneUIProvider/index.js';
|
|
18
|
+
import '../Popover-f4d1cac0.js';
|
|
19
|
+
import '../index-122432cd.js';
|
|
20
|
+
import '../hooks/useDeviceType.js';
|
|
21
|
+
import '../hooks/useWindowSize.js';
|
|
22
|
+
import '../hooks/useUpdatableRef.js';
|
|
23
|
+
import '../hooks/useForceUpdate.js';
|
|
24
|
+
import '../Scrollbar/index.js';
|
|
25
|
+
import '../guid-8ddf77b3.js';
|
|
26
|
+
import '../Option/index.js';
|
|
27
|
+
import '../hooks/useEllipsisDetection.js';
|
|
28
|
+
import '../Tooltip/index.js';
|
|
29
|
+
import '../objectWithoutPropertiesLoose-d8a4a68c.js';
|
|
30
|
+
import '../react-lifecycles-compat.es-6e1f3768.js';
|
|
31
|
+
import '../clsx.m-2bb6df4b.js';
|
|
32
|
+
import '../hooks/useMount.js';
|
|
33
|
+
import '../hooks/useClick.js';
|
|
34
|
+
import '../hooks/useKeyDown.js';
|
|
35
|
+
import '../BusyLoader/index.js';
|
|
36
|
+
import '../Empty/index.js';
|
|
37
|
+
import '../ExtendedInput/index.js';
|
|
38
|
+
import '../SuggestionList/index.js';
|
|
39
|
+
import '../config-0ca92874.js';
|
|
40
|
+
import '../Checkbox/index.js';
|
|
41
|
+
import '../checkboxRadioSwitcher-5b69d7bd.js';
|
|
42
|
+
import '../index-583e0b30.js';
|
|
43
|
+
import '../Tag/index.js';
|
|
100
44
|
|
|
101
|
-
var css_248z = "[data-gene-ui-version=\"2.
|
|
45
|
+
var css_248z = "[data-gene-ui-version=\"2.12.1\"] .overspread-container{height:100%;left:0;overflow:hidden;position:fixed;top:0;width:100%;z-index:300}[data-gene-ui-version=\"2.12.1\"] .overspread-holder{animation:overspread-reveal .5s forwards;background:var(--background);display:grid;grid-template-columns:100%;grid-template-rows:auto 1fr;height:100%;transform:translate3d(0,100%,0);width:100%}@keyframes overspread-reveal{to{transform:translateZ(0)}}[data-gene-ui-version=\"2.12.1\"] .overspread-head{border-bottom:1px solid rgba(var(--background-sc-rgb),.05);display:grid;grid-template-areas:\"left center right\";grid-template-columns:1fr auto 1fr;padding:0 1rem;position:relative;width:100%}[data-gene-ui-version=\"2.12.1\"] .overspread-head>li{align-items:center;display:flex;height:4.6rem;overflow:hidden}[data-gene-ui-version=\"2.12.1\"] .overspread-head>li.over-h-act{font:600 1.5rem/2.3rem var(--font-family);grid-area:left;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;width:100%}[data-gene-ui-version=\"2.12.1\"] .overspread-head>li.over-h-act:last-child{grid-area:right;justify-content:flex-end}[data-gene-ui-version=\"2.12.1\"] .overspread-head>li.over-h-tt{font:600 1.7rem/2.3rem var(--font-family);grid-area:center}[data-gene-ui-version=\"2.12.1\"] .overspread-head>li>*{margin:0 .5rem}[data-gene-ui-version=\"2.12.1\"] .overspread-head>li .color-hero{color:var(--hero)}[data-gene-ui-version=\"2.12.1\"] .overspread-head button{transition:opacity .4s}[data-gene-ui-version=\"2.12.1\"] .overspread-head button:disabled{opacity:.5;pointer-events:none}[data-gene-ui-version=\"2.12.1\"] .overspread-body{-webkit-overflow-scrolling:touch;overflow-y:auto;padding:1.5rem}[data-gene-ui-version=\"2.12.1\"] .overspread-search{position:relative}[data-gene-ui-version=\"2.12.1\"] .overspread-search:not(:focus-within,.show-search) input{height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}[data-gene-ui-version=\"2.12.1\"] .overspread-search:not(:focus-within,.show-search) .bc-icon-search{pointer-events:none}[data-gene-ui-version=\"2.12.1\"] .overspread-search:not(:focus-within,.show-search) .bc-icon-close{display:none}[data-gene-ui-version=\"2.12.1\"] .overspread-search.show-search,[data-gene-ui-version=\"2.12.1\"] .overspread-search:focus-within{background:var(--background);display:flex;left:0;margin:0;padding:0 1rem;position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:10}[data-gene-ui-version=\"2.12.1\"] .overspread-search.show-search>*,[data-gene-ui-version=\"2.12.1\"] .overspread-search:focus-within>*{padding:0 .5rem}[data-gene-ui-version=\"2.12.1\"] .overspread-search.show-search .bc-icon-search,[data-gene-ui-version=\"2.12.1\"] .overspread-search:focus-within .bc-icon-search{display:none}[data-gene-ui-version=\"2.12.1\"] .overspread-search.show-search input,[data-gene-ui-version=\"2.12.1\"] .overspread-search:focus-within input{font:600 1.4rem var(--font-family);height:2.4rem;width:100%}[data-gene-ui-version=\"2.12.1\"] .overspread-search.show-search input::input-placeholder,[data-gene-ui-version=\"2.12.1\"] .overspread-search:focus-within input::input-placeholder{color:rgba(var(--background-sc-rgb),.5);font-size:1.4rem;font-weight:600}[data-gene-ui-version=\"2.12.1\"] .overspread-search.show-search input:placeholder,[data-gene-ui-version=\"2.12.1\"] .overspread-search:focus-within input:placeholder{color:rgba(var(--background-sc-rgb),.5);font-size:1.4rem;font-weight:600}[data-gene-ui-version=\"2.12.1\"] .overspread-search.show-search input::placeholder,[data-gene-ui-version=\"2.12.1\"] .overspread-search:focus-within input::placeholder{color:rgba(var(--background-sc-rgb),.5);font-size:1.4rem;font-weight:600}[data-gene-ui-version=\"2.12.1\"] .overspread-search.show-search input:input-placeholder,[data-gene-ui-version=\"2.12.1\"] .overspread-search:focus-within input:input-placeholder{color:rgba(var(--background-sc-rgb),.5);font-size:1.4rem;font-weight:600}[data-gene-ui-version=\"2.12.1\"] .back-button-holder{align-items:center;cursor:pointer;display:flex}";
|
|
102
46
|
styleInject(css_248z);
|
|
103
47
|
|
|
104
48
|
function Overspread(props) {
|
|
@@ -229,99 +173,99 @@ function Overspread(props) {
|
|
|
229
173
|
}, children))));
|
|
230
174
|
}
|
|
231
175
|
Overspread.propTypes = {
|
|
232
|
-
title:
|
|
176
|
+
title: PropTypes.string,
|
|
233
177
|
/**
|
|
234
178
|
* Enables title's dropdown,
|
|
235
179
|
*/
|
|
236
|
-
titleHasOptions:
|
|
180
|
+
titleHasOptions: PropTypes.bool,
|
|
237
181
|
/**
|
|
238
182
|
* Fires event for handling change of value/selected option
|
|
239
183
|
* ((event: Event) => void)
|
|
240
184
|
*/
|
|
241
|
-
onSelectingTitleOption:
|
|
185
|
+
onSelectingTitleOption: PropTypes.func,
|
|
242
186
|
/**
|
|
243
187
|
* Title's dropdown data
|
|
244
188
|
*/
|
|
245
|
-
dataForTitleWithOptions:
|
|
189
|
+
dataForTitleWithOptions: PropTypes.array,
|
|
246
190
|
/**
|
|
247
191
|
* Default value for title's dropdown
|
|
248
192
|
*/
|
|
249
|
-
defaultValueForTitleWithOptions:
|
|
193
|
+
defaultValueForTitleWithOptions: PropTypes.object,
|
|
250
194
|
/**
|
|
251
195
|
* Enables search,
|
|
252
196
|
*/
|
|
253
|
-
hasSearch:
|
|
197
|
+
hasSearch: PropTypes.bool,
|
|
254
198
|
/**
|
|
255
199
|
* Fires event when user types in search field
|
|
256
200
|
* (event: Event) => void
|
|
257
201
|
*/
|
|
258
|
-
searchOutput:
|
|
202
|
+
searchOutput: PropTypes.func,
|
|
259
203
|
/**
|
|
260
204
|
* Displays dropdown on the right corner,
|
|
261
205
|
*/
|
|
262
|
-
hasOptions:
|
|
206
|
+
hasOptions: PropTypes.bool,
|
|
263
207
|
/**
|
|
264
208
|
* Right corner dropdown's data
|
|
265
209
|
*/
|
|
266
|
-
dataForOptions:
|
|
210
|
+
dataForOptions: PropTypes.array,
|
|
267
211
|
/**
|
|
268
212
|
* Fires event for handling change of value/selected option
|
|
269
213
|
* ((event: Event) => void)
|
|
270
214
|
*/
|
|
271
|
-
onSelectingOption:
|
|
215
|
+
onSelectingOption: PropTypes.func,
|
|
272
216
|
/** Opened state */
|
|
273
|
-
opened:
|
|
217
|
+
opened: PropTypes.bool,
|
|
274
218
|
/**
|
|
275
219
|
* Any valid node
|
|
276
220
|
*/
|
|
277
|
-
children:
|
|
221
|
+
children: PropTypes.node,
|
|
278
222
|
/**
|
|
279
223
|
* Enables done button on the right corner,
|
|
280
224
|
*/
|
|
281
|
-
hasDone:
|
|
225
|
+
hasDone: PropTypes.bool,
|
|
282
226
|
/**
|
|
283
227
|
* Shows done icon instead of text
|
|
284
228
|
*/
|
|
285
|
-
doneWithIcon:
|
|
229
|
+
doneWithIcon: PropTypes.bool,
|
|
286
230
|
/**
|
|
287
231
|
* Done button disabled state
|
|
288
232
|
*/
|
|
289
|
-
disabledDone:
|
|
233
|
+
disabledDone: PropTypes.bool,
|
|
290
234
|
/**
|
|
291
235
|
* Custom text for done button
|
|
292
236
|
*/
|
|
293
|
-
doneText:
|
|
237
|
+
doneText: PropTypes.string,
|
|
294
238
|
/**
|
|
295
239
|
* Fires event when done button is clicked
|
|
296
240
|
* ((event: Event) => void)
|
|
297
241
|
*/
|
|
298
|
-
onDone:
|
|
242
|
+
onDone: PropTypes.func,
|
|
299
243
|
/**
|
|
300
244
|
* Enables back button on the left corner,
|
|
301
245
|
*/
|
|
302
|
-
hasBack:
|
|
246
|
+
hasBack: PropTypes.bool,
|
|
303
247
|
/**
|
|
304
248
|
* Custom text for back button
|
|
305
249
|
*/
|
|
306
|
-
backText:
|
|
250
|
+
backText: PropTypes.string,
|
|
307
251
|
/**
|
|
308
252
|
* Displays chevron icon in back button
|
|
309
253
|
*/
|
|
310
|
-
backWithIcon:
|
|
254
|
+
backWithIcon: PropTypes.bool,
|
|
311
255
|
/**
|
|
312
256
|
* Fires event when back button is clicked
|
|
313
257
|
* ((event: Event) => void)
|
|
314
258
|
*/
|
|
315
|
-
onBack:
|
|
259
|
+
onBack: PropTypes.func,
|
|
316
260
|
/**
|
|
317
261
|
* Fires event when close icon is clicked
|
|
318
262
|
* ((event: Event) => void)
|
|
319
263
|
*/
|
|
320
|
-
onClose:
|
|
264
|
+
onClose: PropTypes.func,
|
|
321
265
|
/**
|
|
322
266
|
* Function calls when the animation ends.
|
|
323
267
|
*/
|
|
324
|
-
onAnimationEnd:
|
|
268
|
+
onAnimationEnd: PropTypes.func
|
|
325
269
|
};
|
|
326
270
|
Overspread.defaultProps = {
|
|
327
271
|
hasSearch: false,
|
|
@@ -1,31 +1,32 @@
|
|
|
1
1
|
import React__default, { useState, useCallback } from 'react';
|
|
2
|
-
import
|
|
3
|
-
import { c as classnames } from '
|
|
4
|
-
import { a as conflictPropsLog, k as keyboardHandler } from '
|
|
5
|
-
import Button from '
|
|
6
|
-
import Divider from '
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import '
|
|
10
|
-
import
|
|
11
|
-
import '
|
|
12
|
-
import './_commonjsHelpers-24198af3.js';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { c as classnames } from '../index-6ff23041.js';
|
|
4
|
+
import { a as conflictPropsLog, k as keyboardHandler } from '../index-a0e4e333.js';
|
|
5
|
+
import Button from '../Button/index.js';
|
|
6
|
+
import Divider from '../Divider/index.js';
|
|
7
|
+
import Tooltip from '../Tooltip/index.js';
|
|
8
|
+
import TextInput from '../ValidatableTextInput/index.js';
|
|
9
|
+
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
10
|
+
import '../dateValidation-67caec66.js';
|
|
11
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
13
12
|
import 'react-dom';
|
|
14
|
-
import '
|
|
15
|
-
import '
|
|
16
|
-
import '
|
|
17
|
-
import '
|
|
18
|
-
import '
|
|
19
|
-
import '
|
|
20
|
-
import '
|
|
21
|
-
import '
|
|
22
|
-
import '
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
25
|
-
import '
|
|
26
|
-
import '
|
|
13
|
+
import '../_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
14
|
+
import '../Icon/index.js';
|
|
15
|
+
import '../Popover-f4d1cac0.js';
|
|
16
|
+
import '../configs-fed6ac34.js';
|
|
17
|
+
import '../hooks/useDeviceType.js';
|
|
18
|
+
import '../hooks/useWindowSize.js';
|
|
19
|
+
import '../GeneUIProvider/index.js';
|
|
20
|
+
import '../hooks/useMount.js';
|
|
21
|
+
import '../ExtendedInput/index.js';
|
|
22
|
+
import '../hooks/useEllipsisDetection.js';
|
|
23
|
+
import '../SuggestionList/index.js';
|
|
24
|
+
import '../hooks/useKeyDown.js';
|
|
25
|
+
import '../hooks/useClickOutside.js';
|
|
26
|
+
import '../config-0ca92874.js';
|
|
27
|
+
import '../Scrollbar/index.js';
|
|
27
28
|
|
|
28
|
-
var css_248z = "[data-gene-ui-version=\"2.
|
|
29
|
+
var css_248z = "[data-gene-ui-version=\"2.12.1\"] .pagination-holder{align-items:center;display:flex}[data-gene-ui-version=\"2.12.1\"] .pagination-holder .icon{cursor:pointer}[data-gene-ui-version=\"2.12.1\"] .pagination-holder .defaultCursor{cursor:default}[data-gene-ui-version=\"2.12.1\"] .pagination-holder .input-element{text-align:center}";
|
|
29
30
|
styleInject(css_248z);
|
|
30
31
|
|
|
31
32
|
const drawCount = 5;
|
|
@@ -215,37 +216,37 @@ Pagination.propTypes = {
|
|
|
215
216
|
* Fires event when user changes the page
|
|
216
217
|
* (page: Number) => void
|
|
217
218
|
*/
|
|
218
|
-
onChange:
|
|
219
|
+
onChange: PropTypes.func,
|
|
219
220
|
/**
|
|
220
221
|
* Initially selected page
|
|
221
222
|
*/
|
|
222
|
-
selected:
|
|
223
|
+
selected: PropTypes.number,
|
|
223
224
|
/**
|
|
224
225
|
* Custom text if element will indicate error
|
|
225
226
|
*/
|
|
226
|
-
errorText:
|
|
227
|
+
errorText: PropTypes.string,
|
|
227
228
|
/**
|
|
228
229
|
* Turn on/off pagination's autofocus
|
|
229
230
|
*/
|
|
230
|
-
autoFocus:
|
|
231
|
+
autoFocus: PropTypes.bool,
|
|
231
232
|
/**
|
|
232
233
|
* Initially selected page
|
|
233
234
|
*/
|
|
234
|
-
defaultSelected:
|
|
235
|
+
defaultSelected: PropTypes.number,
|
|
235
236
|
/**
|
|
236
237
|
* Total pages count
|
|
237
238
|
*/
|
|
238
|
-
count:
|
|
239
|
+
count: PropTypes.number.isRequired,
|
|
239
240
|
/**
|
|
240
241
|
* Text for next icon tooltip.
|
|
241
242
|
*/
|
|
242
|
-
nextIconTooltipText:
|
|
243
|
+
nextIconTooltipText: PropTypes.string,
|
|
243
244
|
/**
|
|
244
245
|
* Text for previous icon tooltip.
|
|
245
246
|
*/
|
|
246
|
-
previousIconTooltipText:
|
|
247
|
+
previousIconTooltipText: PropTypes.string,
|
|
247
248
|
// TODO: bad naming
|
|
248
|
-
supportedKeyCodes:
|
|
249
|
+
supportedKeyCodes: PropTypes.arrayOf(PropTypes.number)
|
|
249
250
|
};
|
|
250
251
|
Pagination.defaultProps = {
|
|
251
252
|
count: 1,
|