@zohodesk/components 1.0.0-temp-193 → 1.0.0-temp-194
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/.cli/propValidation_report.html +1 -1
- package/es/AppContainer/AppContainer.js +10 -9
- package/es/Avatar/Avatar.js +4 -5
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/Button/Button.js +5 -6
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/DateTime/DateTime.js +2 -8
- package/es/DateTime/DateWidget.js +3 -14
- package/es/DateTime/Time.js +13 -30
- package/es/DateTime/props/defaultProps.js +2 -4
- package/es/DateTime/props/propTypes.js +3 -6
- package/es/DropBox/DropBox.js +10 -11
- package/es/DropDown/DropDown.js +2 -1
- package/es/ListItem/ListContainer.js +6 -5
- package/es/ListItem/ListItem.js +4 -5
- package/es/ListItem/ListItemWithAvatar.js +4 -5
- package/es/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/ListItem/ListItemWithIcon.js +4 -5
- package/es/ListItem/ListItemWithRadio.js +4 -5
- package/es/Modal/Modal.js +4 -5
- package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
- package/es/MultiSelect/MultiSelectWithAvatar.js +4 -5
- package/es/MultiSelect/SelectedOptions.js +6 -8
- package/es/MultiSelect/Suggestions.js +6 -8
- package/es/Popup/Popup.js +3 -4
- package/es/Radio/Radio.js +8 -8
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
- package/es/Select/Select.js +4 -5
- package/es/Switch/Switch.js +8 -8
- package/es/Tab/Tab.js +4 -5
- package/es/Tab/TabContentWrapper.js +4 -5
- package/es/Tab/TabWrapper.js +5 -6
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/props/propTypes.js +1 -0
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/Textarea/Textarea.js +4 -6
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
- package/es/v1/AppContainer/AppContainer.js +10 -9
- package/es/v1/Avatar/Avatar.js +4 -5
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +5 -6
- package/es/v1/CheckBox/CheckBox.js +8 -8
- package/es/v1/DropBox/DropBox.js +10 -11
- package/es/v1/DropDown/DropDown.js +2 -1
- package/es/v1/ListItem/ListContainer.js +6 -5
- package/es/v1/ListItem/ListItem.js +4 -5
- package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
- package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
- package/es/v1/ListItem/ListItemWithIcon.js +4 -5
- package/es/v1/ListItem/ListItemWithRadio.js +4 -5
- package/es/v1/Modal/Modal.js +4 -5
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +8 -9
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +4 -5
- package/es/v1/MultiSelect/SelectedOptions.js +6 -8
- package/es/v1/MultiSelect/Suggestions.js +6 -8
- package/es/v1/Popup/Popup.js +3 -4
- package/es/v1/Radio/Radio.js +8 -8
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
- package/es/v1/Select/Select.js +4 -5
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +4 -5
- package/es/v1/Tab/TabContentWrapper.js +4 -5
- package/es/v1/Tab/TabWrapper.js +2 -4
- package/es/v1/Tab/Tabs.js +16 -16
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
- package/es/v1/Textarea/Textarea.js +4 -6
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
- package/lib/DateTime/DateTime.js +2 -13
- package/lib/DateTime/DateWidget.js +3 -19
- package/lib/DateTime/Time.js +13 -35
- package/lib/DateTime/props/defaultProps.js +2 -4
- package/lib/DateTime/props/propTypes.js +3 -6
- package/lib/Tab/TabWrapper.js +3 -2
- package/lib/Tab/props/propTypes.js +1 -0
- package/package.json +1 -1
- package/result.json +1 -1
package/es/v1/Radio/Radio.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -63,7 +61,7 @@ const Radio = props => {
|
|
|
63
61
|
getRef && getRef(ele, value);
|
|
64
62
|
}
|
|
65
63
|
|
|
66
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
64
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
67
65
|
dataId: value ? value.toLowerCase() : 'RadioComp',
|
|
68
66
|
isCover: false,
|
|
69
67
|
isInline: text ? false : true,
|
|
@@ -79,8 +77,9 @@ const Radio = props => {
|
|
|
79
77
|
"aria-Hidden": ariaHidden,
|
|
80
78
|
"aria-label": ariaLabel,
|
|
81
79
|
"aria-labelledby": ariaLabelledby,
|
|
82
|
-
"aria-readonly": ariaReadonly
|
|
83
|
-
|
|
80
|
+
"aria-readonly": ariaReadonly,
|
|
81
|
+
...ContainerProps
|
|
82
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
84
83
|
className: `${style.radio} ${checked ? `${style[`rdBox${palette}`]}` : ''}
|
|
85
84
|
${isReadOnly || disabled ? '' : `${style[`hover${palette}`]}`} ${style[size]} ${isFilled ? style.filled : ''} ${style[`centerPath${palette}`]} ${customRadio}`
|
|
86
85
|
}, /*#__PURE__*/React.createElement("input", {
|
|
@@ -106,7 +105,7 @@ const Radio = props => {
|
|
|
106
105
|
}) : null))), text && /*#__PURE__*/React.createElement(Box, {
|
|
107
106
|
flexible: true,
|
|
108
107
|
className: style.text
|
|
109
|
-
}, /*#__PURE__*/React.createElement(Label,
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
110
109
|
text: text,
|
|
111
110
|
palette: labelPalette,
|
|
112
111
|
size: labelSize,
|
|
@@ -116,8 +115,9 @@ const Radio = props => {
|
|
|
116
115
|
variant: variant,
|
|
117
116
|
title: toolTip ? toolTip : text,
|
|
118
117
|
customClass: `${checked && active ? `${style[`${palette}checkedActive`]}` : ''}
|
|
119
|
-
${style[`${palette}Label`]} ${accessMode} ${customLabel}
|
|
120
|
-
|
|
118
|
+
${style[`${palette}Label`]} ${accessMode} ${customLabel}`,
|
|
119
|
+
...LabelProps
|
|
120
|
+
})), children);
|
|
121
121
|
};
|
|
122
122
|
|
|
123
123
|
export default Radio;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { useCallback } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -38,9 +36,9 @@ export default function ResponsiveDropBox(props) {
|
|
|
38
36
|
}])
|
|
39
37
|
};
|
|
40
38
|
}, []);
|
|
41
|
-
return /*#__PURE__*/React.createElement(DropBox,
|
|
39
|
+
return /*#__PURE__*/React.createElement(DropBox, { ...props,
|
|
42
40
|
customClass: dropBoxClasses
|
|
43
|
-
}
|
|
41
|
+
}, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
44
42
|
query: responsiveFunc,
|
|
45
43
|
responsiveId: "Helmet"
|
|
46
44
|
}, _ref2 => {
|
package/es/v1/Select/Select.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
/**** Libraries ****/
|
|
4
2
|
import React, { Component } from 'react';
|
|
5
3
|
import { Select_defaultProps } from './props/defaultProps';
|
|
@@ -919,7 +917,7 @@ export class SelectComponent extends Component {
|
|
|
919
917
|
shrink: true,
|
|
920
918
|
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
921
919
|
eleRef: this.suggestionContainerRef
|
|
922
|
-
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions,
|
|
920
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
923
921
|
activeId: selectedId,
|
|
924
922
|
suggestions: suggestions,
|
|
925
923
|
getRef: this.suggestionItemRef,
|
|
@@ -936,8 +934,9 @@ export class SelectComponent extends Component {
|
|
|
936
934
|
a11y: {
|
|
937
935
|
ariaParentRole: 'listbox',
|
|
938
936
|
role: 'option'
|
|
939
|
-
}
|
|
940
|
-
|
|
937
|
+
},
|
|
938
|
+
...SuggestionsProps
|
|
939
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
941
940
|
isLoading: isFetchingOptions,
|
|
942
941
|
options: options,
|
|
943
942
|
searchString: searchStr,
|
package/es/v1/Switch/Switch.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -45,7 +43,7 @@ const Switch = props => {
|
|
|
45
43
|
customLabel = ''
|
|
46
44
|
} = customClass;
|
|
47
45
|
size !== 'small' ? size = 'switch_medium' : size = 'switch_small';
|
|
48
|
-
return /*#__PURE__*/React.createElement(Container,
|
|
46
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
49
47
|
align: "vertical",
|
|
50
48
|
isCover: false,
|
|
51
49
|
alignBox: "row",
|
|
@@ -54,8 +52,9 @@ const Switch = props => {
|
|
|
54
52
|
"data-title": disabled ? disableTitle : title,
|
|
55
53
|
"aria-checked": checked,
|
|
56
54
|
role: "switch",
|
|
57
|
-
dataSelectorId: dataSelectorId
|
|
58
|
-
|
|
55
|
+
dataSelectorId: dataSelectorId,
|
|
56
|
+
...SwitchProps
|
|
57
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
59
58
|
className: `${style[size]} ${customSwitchSize}`
|
|
60
59
|
}, /*#__PURE__*/React.createElement("input", {
|
|
61
60
|
type: "checkbox",
|
|
@@ -73,15 +72,16 @@ const Switch = props => {
|
|
|
73
72
|
"data-test-id": dataId,
|
|
74
73
|
className: `${style.label} ${style[`${size}Label`]} ${customSwitch}`,
|
|
75
74
|
tabIndex: isReadOnly || disabled ? '-1' : '0'
|
|
76
|
-
})), text && /*#__PURE__*/React.createElement(Label,
|
|
75
|
+
})), text && /*#__PURE__*/React.createElement(Label, {
|
|
77
76
|
text: text,
|
|
78
77
|
palette: labelPalette,
|
|
79
78
|
id: id,
|
|
80
79
|
size: labelSize,
|
|
81
80
|
type: "subtitle",
|
|
82
81
|
onClick: !disabled || !isReadOnly ? onChange : null,
|
|
83
|
-
customClass: customLabel
|
|
84
|
-
|
|
82
|
+
customClass: customLabel,
|
|
83
|
+
...LabelProps
|
|
84
|
+
}));
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
Switch.defaultProps = defaultProps;
|
package/es/v1/Tab/Tab.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { useMemo, useCallback } from 'react';
|
|
4
2
|
import { Tab_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { Tab_propTypes } from './props/propTypes';
|
|
@@ -67,7 +65,7 @@ export default function Tab(_ref) {
|
|
|
67
65
|
let activeClasses = cs([needAppearance && activeWithAppearance, activeClass]);
|
|
68
66
|
let inActiveClasses = needAppearance && cs([styles[styleContent.tab], tabTypes[type] && styles[`${`${type}Hover`}`]]);
|
|
69
67
|
let tabClass = cs([styles.tab, align === 'vertical' ? styles.vertical : styles.horizontal, isDisabled && styles.disabled, needBorder && !isAnimate && needAppearance && styles.border, isActive ? activeClasses : inActiveClasses, className]);
|
|
70
|
-
return /*#__PURE__*/React.createElement(Box,
|
|
68
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
71
69
|
tourId: tourId,
|
|
72
70
|
tagName: isLink ? 'a' : 'div',
|
|
73
71
|
className: tabClass,
|
|
@@ -85,8 +83,9 @@ export default function Tab(_ref) {
|
|
|
85
83
|
"aria-selected": isActive ? true : false,
|
|
86
84
|
tabIndex: isLink ? undefined : isActive && !isDisabled ? '0' : '0',
|
|
87
85
|
"aria-label": text ? text : null,
|
|
88
|
-
dataSelectorId: dataSelectorId
|
|
89
|
-
|
|
86
|
+
dataSelectorId: dataSelectorId,
|
|
87
|
+
...customProps
|
|
88
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
90
89
|
alignBox: "row",
|
|
91
90
|
align: "both",
|
|
92
91
|
className: styles.textContainer
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React from 'react';
|
|
4
2
|
import { TabContentWrapper_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { TabContentWrapper_propTypes } from './props/propTypes';
|
|
@@ -18,15 +16,16 @@ const TabContentWrapper = _ref => {
|
|
|
18
16
|
tagName,
|
|
19
17
|
a11y
|
|
20
18
|
} = _ref;
|
|
21
|
-
return /*#__PURE__*/React.createElement(Box,
|
|
19
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
22
20
|
flexible: true,
|
|
23
21
|
style: style,
|
|
24
22
|
dataId: dataId,
|
|
25
23
|
className: className,
|
|
26
24
|
onScroll: onScroll,
|
|
27
25
|
dataSelectorId: dataSelectorId,
|
|
28
|
-
tagName: tagName
|
|
29
|
-
|
|
26
|
+
tagName: tagName,
|
|
27
|
+
...a11y
|
|
28
|
+
}, React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
|
|
30
29
|
};
|
|
31
30
|
|
|
32
31
|
TabContentWrapper.defaultProps = TabContentWrapper_defaultProps;
|
package/es/v1/Tab/TabWrapper.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { useState, useCallback } from 'react';
|
|
4
2
|
import { TabWrapper_defaultProps } from './props/defaultProps';
|
|
5
3
|
import { TabWrapper_propTypes } from './props/propTypes';
|
|
@@ -37,7 +35,7 @@ function TabWrapper(_ref) {
|
|
|
37
35
|
let TabsChild = child.type;
|
|
38
36
|
let selectedTab = hookToDisableInternalState ? defaultTab : selectedTabInternal;
|
|
39
37
|
return /*#__PURE__*/React.createElement(TabsChild // eslint-disable-next-line react/no-array-index-key
|
|
40
|
-
,
|
|
38
|
+
, { ...child.props,
|
|
41
39
|
selectedTab: selectedTab,
|
|
42
40
|
onSelect: setSelectedTab,
|
|
43
41
|
type: type,
|
|
@@ -48,7 +46,7 @@ function TabWrapper(_ref) {
|
|
|
48
46
|
needAppearance: needAppearance,
|
|
49
47
|
hookToDisableInternalState: hookToDisableInternalState,
|
|
50
48
|
align: align
|
|
51
|
-
})
|
|
49
|
+
});
|
|
52
50
|
}));
|
|
53
51
|
}
|
|
54
52
|
|
package/es/v1/Tab/Tabs.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { useState, useRef, useEffect, useCallback } from 'react';
|
|
4
2
|
import useEffectCallOnlyAfterState from '@zohodesk/hooks/es/utils/useEffectCallOnlyAfterState';
|
|
5
3
|
import Tab from './Tab';
|
|
@@ -394,7 +392,7 @@ const Tabs = props => {
|
|
|
394
392
|
classProps.className = itemClass;
|
|
395
393
|
}
|
|
396
394
|
|
|
397
|
-
return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(MainTab,
|
|
395
|
+
return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(MainTab, { ...child.props,
|
|
398
396
|
key: child.props.id,
|
|
399
397
|
getTabRef: getTabRef,
|
|
400
398
|
onSelect: onSelect // recalculateDimension={tabElement.current[recalculateDimension]}
|
|
@@ -405,22 +403,23 @@ const Tabs = props => {
|
|
|
405
403
|
needBorder: needTabBorder,
|
|
406
404
|
needAppearance: needAppearance,
|
|
407
405
|
align: align,
|
|
408
|
-
isVirtual: isVirtual
|
|
409
|
-
|
|
406
|
+
isVirtual: isVirtual,
|
|
407
|
+
...classProps
|
|
408
|
+
});
|
|
410
409
|
}), React.Children.count(moreTabs) ? /*#__PURE__*/React.createElement(Box, {
|
|
411
410
|
className: `${tabsStyle.menu} `,
|
|
412
411
|
dataSelectorId: `${dataSelectorId}_moreIcon`
|
|
413
|
-
}, /*#__PURE__*/React.createElement(Container,
|
|
412
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
414
413
|
className: `${btnstyle.buttonReset} ${moreButtonClass} ${isPopupOpen ? moreButtonActiveClass : ''}`,
|
|
415
414
|
align: "both",
|
|
416
415
|
onClick: togglePopupLocal,
|
|
417
416
|
dataId: "moreTabs",
|
|
418
|
-
eleRef: getTargetRef
|
|
419
|
-
|
|
417
|
+
eleRef: getTargetRef,
|
|
418
|
+
...MoreButtonProps,
|
|
420
419
|
"aria-label": "MoreTabs",
|
|
421
420
|
role: "link",
|
|
422
421
|
tagName: "button"
|
|
423
|
-
}
|
|
422
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
424
423
|
name: iconName,
|
|
425
424
|
size: iconSize
|
|
426
425
|
})), isPopupOpen && /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
@@ -430,7 +429,7 @@ const Tabs = props => {
|
|
|
430
429
|
let {
|
|
431
430
|
tabletMode
|
|
432
431
|
} = _ref2;
|
|
433
|
-
return /*#__PURE__*/React.createElement(ResponsiveDropBox,
|
|
432
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
434
433
|
isActive: isPopupReady,
|
|
435
434
|
isAnimate: true,
|
|
436
435
|
size: "medium",
|
|
@@ -440,12 +439,12 @@ const Tabs = props => {
|
|
|
440
439
|
boxPosition: position,
|
|
441
440
|
getRef: getContainerRef,
|
|
442
441
|
isBoxPaddingNeed: true,
|
|
443
|
-
isArrow: false
|
|
444
|
-
|
|
442
|
+
isArrow: false,
|
|
443
|
+
...DropBoxProps,
|
|
445
444
|
isResponsivePadding: true,
|
|
446
445
|
needFocusScope: true,
|
|
447
446
|
onClose: togglePopupLocal
|
|
448
|
-
}
|
|
447
|
+
}, getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(props), /*#__PURE__*/React.createElement(Box, {
|
|
449
448
|
flexible: true,
|
|
450
449
|
shrink: true,
|
|
451
450
|
scroll: "vertical",
|
|
@@ -466,7 +465,7 @@ const Tabs = props => {
|
|
|
466
465
|
dataId
|
|
467
466
|
} = child.props;
|
|
468
467
|
const value = text ? text : showTitleInMoreOptions ? title : null;
|
|
469
|
-
return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(ListItem,
|
|
468
|
+
return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(ListItem, {
|
|
470
469
|
key: id,
|
|
471
470
|
value: value,
|
|
472
471
|
onClick: moreTabSelect,
|
|
@@ -479,8 +478,9 @@ const Tabs = props => {
|
|
|
479
478
|
customListItem: menuItemClass
|
|
480
479
|
},
|
|
481
480
|
target: "self",
|
|
482
|
-
dataId: `${dataId}_Tab
|
|
483
|
-
|
|
481
|
+
dataId: `${dataId}_Tab`,
|
|
482
|
+
...ListItemProps
|
|
483
|
+
}, !showTitleInMoreOptions ? children : null);
|
|
484
484
|
})));
|
|
485
485
|
})) : null);
|
|
486
486
|
}
|
package/es/v1/TextBox/TextBox.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { memo, useRef, useCallback } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -113,7 +111,7 @@ function TextBox(props) {
|
|
|
113
111
|
|
|
114
112
|
let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.border : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect} ${isFocus ? style.focus : ''}` : `${style.basic}`;
|
|
115
113
|
value = value === null || value === undefined ? '' : value;
|
|
116
|
-
return /*#__PURE__*/React.createElement("input",
|
|
114
|
+
return /*#__PURE__*/React.createElement("input", {
|
|
117
115
|
"aria-label": ariaLabel,
|
|
118
116
|
"aria-invalid": ariaInvalid,
|
|
119
117
|
"aria-autocomplete": ariaAutocomplete,
|
|
@@ -147,8 +145,10 @@ function TextBox(props) {
|
|
|
147
145
|
value: value,
|
|
148
146
|
onScroll: isScrollPrevent ? handlePreventTextBoxScroll : '',
|
|
149
147
|
onKeyPress: onKeyPress,
|
|
150
|
-
onMouseDown: onMouseDown
|
|
151
|
-
|
|
148
|
+
onMouseDown: onMouseDown,
|
|
149
|
+
...options.current,
|
|
150
|
+
...customProps
|
|
151
|
+
});
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
TextBox.defaultProps = defaultProps;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { useState, useRef, useCallback } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -98,7 +96,7 @@ export default function TextBoxIcon(props) {
|
|
|
98
96
|
"data-title": isDisabled ? title : null
|
|
99
97
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
100
98
|
flexible: true
|
|
101
|
-
}, /*#__PURE__*/React.createElement(TextBox,
|
|
99
|
+
}, /*#__PURE__*/React.createElement(TextBox, { ...props,
|
|
102
100
|
dataId: dataId,
|
|
103
101
|
size: size,
|
|
104
102
|
variant: variant,
|
|
@@ -126,7 +124,7 @@ export default function TextBoxIcon(props) {
|
|
|
126
124
|
isScrollPrevent: isScrollPrevent,
|
|
127
125
|
customClass: customTextBox,
|
|
128
126
|
customProps: TextBoxProps
|
|
129
|
-
}))
|
|
127
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
130
128
|
className: `${style.iconContainer} ${customTBoxIcon}`
|
|
131
129
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
132
130
|
alignBox: "row"
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { useRef } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -72,12 +70,12 @@ export default function Textarea(props) {
|
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.needBorder : style.noBorder} ${resize ? style[resizes.current[resize]] : style[resizes.current.none]} ${animated ? `${style[`${size}animated`]}` : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect}` : `${style.basic}`;
|
|
75
|
-
return /*#__PURE__*/React.createElement("textarea",
|
|
73
|
+
return /*#__PURE__*/React.createElement("textarea", {
|
|
76
74
|
"aria-label": ariaLabel,
|
|
77
75
|
"aria-labelledby": ariaLabelledby,
|
|
78
76
|
className: `${customClass} ${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${classList} ${style[`borderColor_${borderColor}`]}`,
|
|
79
|
-
placeholder: placeHolder
|
|
80
|
-
|
|
77
|
+
placeholder: placeHolder,
|
|
78
|
+
...options.current,
|
|
81
79
|
"data-id": dataId,
|
|
82
80
|
"data-test-id": dataId,
|
|
83
81
|
maxLength: maxLength,
|
|
@@ -89,7 +87,7 @@ export default function Textarea(props) {
|
|
|
89
87
|
value: text,
|
|
90
88
|
id: htmlId,
|
|
91
89
|
"data-selector-id": dataSelectorId
|
|
92
|
-
})
|
|
90
|
+
});
|
|
93
91
|
}
|
|
94
92
|
Textarea.defaultProps = defaultProps;
|
|
95
93
|
Textarea.propTypes = propTypes; // if (__DOCS__) {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
|
|
3
1
|
import React, { useContext } from 'react';
|
|
4
2
|
import { defaultProps } from './props/defaultProps';
|
|
5
3
|
import { propTypes } from './props/propTypes';
|
|
@@ -81,14 +79,15 @@ export default function VelocityAnimationGroup(props) {
|
|
|
81
79
|
delay: exitDelay ? exitDelay : 0,
|
|
82
80
|
display: 'none'
|
|
83
81
|
};
|
|
84
|
-
return /*#__PURE__*/React.createElement(VelocityTransitionGroup,
|
|
82
|
+
return /*#__PURE__*/React.createElement(VelocityTransitionGroup, {
|
|
85
83
|
enter: enterAnimation,
|
|
86
84
|
leave: exitAnimation,
|
|
87
85
|
component: component && component,
|
|
88
86
|
runOnMount: runOnMount,
|
|
89
87
|
enterHideStyle: enterHideStyle,
|
|
90
|
-
enterShowStyle: enterShowStyle
|
|
91
|
-
|
|
88
|
+
enterShowStyle: enterShowStyle,
|
|
89
|
+
...childProps
|
|
90
|
+
}, isActive ? children : null);
|
|
92
91
|
}
|
|
93
92
|
VelocityAnimationGroup.defaultProps = { ...defaultProps,
|
|
94
93
|
component: React.Fragment
|
package/lib/DateTime/DateTime.js
CHANGED
|
@@ -43,12 +43,6 @@ var _dateFormat = require("./dateFormatUtils/dateFormat");
|
|
|
43
43
|
|
|
44
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
45
45
|
|
|
46
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
47
|
-
|
|
48
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
49
|
-
|
|
50
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
51
|
-
|
|
52
46
|
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
53
47
|
|
|
54
48
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -730,11 +724,7 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
730
724
|
positionsOffset = _this$props7.positionsOffset,
|
|
731
725
|
targetOffset = _this$props7.targetOffset,
|
|
732
726
|
isRestrictScroll = _this$props7.isRestrictScroll,
|
|
733
|
-
dropBoxPortalId = _this$props7.dropBoxPortalId
|
|
734
|
-
_this$props7$customPr = _this$props7.customProps,
|
|
735
|
-
customProps = _this$props7$customPr === void 0 ? {} : _this$props7$customPr;
|
|
736
|
-
var _customProps$TimeProp = customProps.TimeProps,
|
|
737
|
-
TimeProps = _customProps$TimeProp === void 0 ? {} : _customProps$TimeProp;
|
|
727
|
+
dropBoxPortalId = _this$props7.dropBoxPortalId;
|
|
738
728
|
var _i18nKeys$timeText = i18nKeys.timeText,
|
|
739
729
|
timeText = _i18nKeys$timeText === void 0 ? 'Time' : _i18nKeys$timeText,
|
|
740
730
|
_i18nKeys$submitText = i18nKeys.submitText,
|
|
@@ -800,8 +790,7 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
800
790
|
ampmSuggestions: this.ampmSuggestions,
|
|
801
791
|
onAmPmSelect: this.amPmSelect,
|
|
802
792
|
amPm: amPm,
|
|
803
|
-
is24Hour: is24Hour
|
|
804
|
-
customProps: _objectSpread({}, TimeProps)
|
|
793
|
+
is24Hour: is24Hour
|
|
805
794
|
}) : null, needAction ? /*#__PURE__*/_react["default"].createElement(_DateTimePopupFooter["default"], {
|
|
806
795
|
submitText: submitText,
|
|
807
796
|
onSubmit: this.handleSelect,
|
|
@@ -47,12 +47,6 @@ var _constants = require("./constants");
|
|
|
47
47
|
|
|
48
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
49
49
|
|
|
50
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
51
|
-
|
|
52
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
53
|
-
|
|
54
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
55
|
-
|
|
56
50
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
57
51
|
|
|
58
52
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -1019,13 +1013,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1019
1013
|
dropBoxPortalId = _this$props11.dropBoxPortalId,
|
|
1020
1014
|
a11y = _this$props11.a11y,
|
|
1021
1015
|
boxSize = _this$props11.boxSize,
|
|
1022
|
-
onError = _this$props11.onError
|
|
1023
|
-
_this$props11$customP = _this$props11.customProps,
|
|
1024
|
-
customProps = _this$props11$customP === void 0 ? {} : _this$props11$customP;
|
|
1025
|
-
var _customProps$DateTime = customProps.DateTimeProps,
|
|
1026
|
-
DateTimeProps = _customProps$DateTime === void 0 ? {} : _customProps$DateTime,
|
|
1027
|
-
_customProps$TextBoxP = customProps.TextBoxProps,
|
|
1028
|
-
TextBoxProps = _customProps$TextBoxP === void 0 ? {} : _customProps$TextBoxP;
|
|
1016
|
+
onError = _this$props11.onError;
|
|
1029
1017
|
var _this$state6 = this.state,
|
|
1030
1018
|
_this$state6$selected = _this$state6.selected,
|
|
1031
1019
|
value = _this$state6$selected === void 0 ? '' : _this$state6$selected,
|
|
@@ -1077,10 +1065,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1077
1065
|
iconOnHover: iconOnHover,
|
|
1078
1066
|
isFocus: isPopupReady,
|
|
1079
1067
|
autoComplete: false,
|
|
1080
|
-
a11y: a11y
|
|
1081
|
-
customProps: {
|
|
1082
|
-
TextBoxProps: _objectSpread({}, TextBoxProps)
|
|
1083
|
-
}
|
|
1068
|
+
a11y: a11y
|
|
1084
1069
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
1085
1070
|
align: "both",
|
|
1086
1071
|
onClick: isDisabled || isReadOnly ? null : this.handleDateIconClick
|
|
@@ -1117,8 +1102,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1117
1102
|
isRestrictScroll: isRestrictScroll,
|
|
1118
1103
|
dropBoxPortalId: dropBoxPortalId,
|
|
1119
1104
|
boxSize: boxSize,
|
|
1120
|
-
onError: onError
|
|
1121
|
-
customProps: _objectSpread({}, DateTimeProps)
|
|
1105
|
+
onError: onError
|
|
1122
1106
|
}));
|
|
1123
1107
|
}
|
|
1124
1108
|
}]);
|
package/lib/DateTime/Time.js
CHANGED
|
@@ -25,14 +25,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
|
-
|
|
30
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31
|
-
|
|
32
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
33
|
-
|
|
34
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
35
|
-
|
|
36
28
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
37
29
|
|
|
38
30
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -82,15 +74,7 @@ var Time = /*#__PURE__*/function (_PureComponent) {
|
|
|
82
74
|
ampmSuggestions = _this$props.ampmSuggestions,
|
|
83
75
|
onAmPmSelect = _this$props.onAmPmSelect,
|
|
84
76
|
amPm = _this$props.amPm,
|
|
85
|
-
is24Hour = _this$props.is24Hour
|
|
86
|
-
_this$props$customPro = _this$props.customProps,
|
|
87
|
-
customProps = _this$props$customPro === void 0 ? {} : _this$props$customPro;
|
|
88
|
-
var _customProps$HourComp = customProps.HourCompProps,
|
|
89
|
-
HourCompProps = _customProps$HourComp === void 0 ? {} : _customProps$HourComp,
|
|
90
|
-
_customProps$MinuteCo = customProps.MinuteCompProps,
|
|
91
|
-
MinuteCompProps = _customProps$MinuteCo === void 0 ? {} : _customProps$MinuteCo,
|
|
92
|
-
_customProps$AmPmComp = customProps.AmPmCompProps,
|
|
93
|
-
AmPmCompProps = _customProps$AmPmComp === void 0 ? {} : _customProps$AmPmComp;
|
|
77
|
+
is24Hour = _this$props.is24Hour;
|
|
94
78
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
95
79
|
className: _DateTimeModule["default"].text
|
|
96
80
|
}, timeText), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
@@ -107,8 +91,7 @@ var Time = /*#__PURE__*/function (_PureComponent) {
|
|
|
107
91
|
onHourSelect: onHourSelect,
|
|
108
92
|
hours: hours,
|
|
109
93
|
needResponsive: needResponsive,
|
|
110
|
-
hourEmptyText: hourEmptyText
|
|
111
|
-
customProps: _objectSpread({}, HourCompProps)
|
|
94
|
+
hourEmptyText: hourEmptyText
|
|
112
95
|
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
113
96
|
flexible: true,
|
|
114
97
|
className: _DateTimeModule["default"].dropDownContainer
|
|
@@ -117,8 +100,7 @@ var Time = /*#__PURE__*/function (_PureComponent) {
|
|
|
117
100
|
onMinutesSelect: onMinutesSelect,
|
|
118
101
|
mins: mins,
|
|
119
102
|
minuteEmptyText: minuteEmptyText,
|
|
120
|
-
needResponsive: needResponsive
|
|
121
|
-
customProps: _objectSpread({}, MinuteCompProps)
|
|
103
|
+
needResponsive: needResponsive
|
|
122
104
|
})), !is24Hour ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
123
105
|
flexible: true,
|
|
124
106
|
className: _DateTimeModule["default"].dropDownContainer
|
|
@@ -126,8 +108,7 @@ var Time = /*#__PURE__*/function (_PureComponent) {
|
|
|
126
108
|
ampmSuggestions: ampmSuggestions,
|
|
127
109
|
onAmPmSelect: onAmPmSelect,
|
|
128
110
|
amPm: amPm,
|
|
129
|
-
needResponsive: needResponsive
|
|
130
|
-
customProps: _objectSpread({}, AmPmCompProps)
|
|
111
|
+
needResponsive: needResponsive
|
|
131
112
|
})) : null));
|
|
132
113
|
}
|
|
133
114
|
}]);
|
|
@@ -158,9 +139,8 @@ var Hour = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
158
139
|
onHourSelect = _this$props2.onHourSelect,
|
|
159
140
|
hours = _this$props2.hours,
|
|
160
141
|
needResponsive = _this$props2.needResponsive,
|
|
161
|
-
hourEmptyText = _this$props2.hourEmptyText
|
|
162
|
-
|
|
163
|
-
return /*#__PURE__*/_react["default"].createElement(_Select["default"], _extends({
|
|
142
|
+
hourEmptyText = _this$props2.hourEmptyText;
|
|
143
|
+
return /*#__PURE__*/_react["default"].createElement(_Select["default"], {
|
|
164
144
|
options: hourSuggestions,
|
|
165
145
|
onChange: onHourSelect,
|
|
166
146
|
selectedValue: hours,
|
|
@@ -179,7 +159,7 @@ var Hour = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
179
159
|
needListBorder: true,
|
|
180
160
|
needTick: false,
|
|
181
161
|
listItemSize: "small"
|
|
182
|
-
}
|
|
162
|
+
});
|
|
183
163
|
}
|
|
184
164
|
}]);
|
|
185
165
|
|
|
@@ -205,9 +185,8 @@ var Minute = /*#__PURE__*/function (_React$PureComponent2) {
|
|
|
205
185
|
onMinutesSelect = _this$props3.onMinutesSelect,
|
|
206
186
|
mins = _this$props3.mins,
|
|
207
187
|
minuteEmptyText = _this$props3.minuteEmptyText,
|
|
208
|
-
needResponsive = _this$props3.needResponsive
|
|
209
|
-
|
|
210
|
-
return /*#__PURE__*/_react["default"].createElement(_Select["default"], _extends({
|
|
188
|
+
needResponsive = _this$props3.needResponsive;
|
|
189
|
+
return /*#__PURE__*/_react["default"].createElement(_Select["default"], {
|
|
211
190
|
options: minSuggestions,
|
|
212
191
|
onChange: onMinutesSelect,
|
|
213
192
|
selectedValue: mins,
|
|
@@ -226,7 +205,7 @@ var Minute = /*#__PURE__*/function (_React$PureComponent2) {
|
|
|
226
205
|
needListBorder: true,
|
|
227
206
|
needTick: false,
|
|
228
207
|
listItemSize: "small"
|
|
229
|
-
}
|
|
208
|
+
});
|
|
230
209
|
}
|
|
231
210
|
}]);
|
|
232
211
|
|
|
@@ -251,9 +230,8 @@ var AmPm = /*#__PURE__*/function (_React$PureComponent3) {
|
|
|
251
230
|
ampmSuggestions = _this$props4.ampmSuggestions,
|
|
252
231
|
onAmPmSelect = _this$props4.onAmPmSelect,
|
|
253
232
|
amPm = _this$props4.amPm,
|
|
254
|
-
needResponsive = _this$props4.needResponsive
|
|
255
|
-
|
|
256
|
-
return /*#__PURE__*/_react["default"].createElement(_Select["default"], _extends({
|
|
233
|
+
needResponsive = _this$props4.needResponsive;
|
|
234
|
+
return /*#__PURE__*/_react["default"].createElement(_Select["default"], {
|
|
257
235
|
options: ampmSuggestions,
|
|
258
236
|
onChange: onAmPmSelect,
|
|
259
237
|
selectedValue: amPm,
|
|
@@ -268,7 +246,7 @@ var AmPm = /*#__PURE__*/function (_React$PureComponent3) {
|
|
|
268
246
|
needListBorder: true,
|
|
269
247
|
needTick: false,
|
|
270
248
|
listItemSize: "small"
|
|
271
|
-
}
|
|
249
|
+
});
|
|
272
250
|
}
|
|
273
251
|
}]);
|
|
274
252
|
|
|
@@ -28,8 +28,7 @@ var DateTime_defaultProps = {
|
|
|
28
28
|
i18nKeys: {},
|
|
29
29
|
is24Hour: false,
|
|
30
30
|
isDefaultPosition: false,
|
|
31
|
-
customDateFormat: null
|
|
32
|
-
customProps: {}
|
|
31
|
+
customDateFormat: null
|
|
33
32
|
};
|
|
34
33
|
exports.DateTime_defaultProps = DateTime_defaultProps;
|
|
35
34
|
var DateWidget_defaultProps = {
|
|
@@ -66,7 +65,6 @@ var DateTimePopupFooter_defaultProps = {
|
|
|
66
65
|
};
|
|
67
66
|
exports.DateTimePopupFooter_defaultProps = DateTimePopupFooter_defaultProps;
|
|
68
67
|
var Time_defaultProps = {
|
|
69
|
-
dataId: 'Time'
|
|
70
|
-
customProps: {}
|
|
68
|
+
dataId: 'Time'
|
|
71
69
|
};
|
|
72
70
|
exports.Time_defaultProps = Time_defaultProps;
|