@zohodesk/components 1.0.0-temp-41 → 1.0.0-temp-42
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/README.md +1 -0
- package/es/Appearance/dark/mode/darkMode.module.css +355 -392
- package/es/Appearance/default/mode/defaultMode.module.css +355 -394
- package/es/Avatar/Avatar.js +2 -1
- package/es/Avatar/__tests__/Avatar.spec.js +0 -1
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -1
- package/es/Button/__tests__/Button.spec.js +0 -1
- package/es/Buttongroup/__test__/Buttongroup.spec.js +0 -1
- package/es/DateTime/DateTime.js +6 -3
- package/es/DateTime/DateWidget.js +5 -2
- package/es/DateTime/DateWidget.module.css +4 -0
- package/es/DateTime/YearView.js +6 -5
- package/es/DateTime/common.js +9 -2
- package/es/DateTime/dateFormatUtils/dateFormat.js +76 -57
- package/es/DateTime/dateFormatUtils/index.js +12 -7
- package/es/DateTime/dateFormatUtils/timeChange.js +4 -3
- package/es/DateTime/dateFormatUtils/yearChange.js +4 -3
- package/es/DateTime/validator.js +0 -1
- package/es/Label/__tests__/Label.spec.js +0 -2
- package/es/Layout/utils.js +2 -1
- package/es/ListItem/ListItem.js +0 -2
- package/es/ListItem/ListItemWithIcon.js +0 -2
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +15 -10
- package/es/MultiSelect/AdvancedMultiSelect.js +6 -7
- package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/es/MultiSelect/MultiSelect.js +23 -11
- package/es/MultiSelect/MultiSelect.module.css +13 -8
- package/es/MultiSelect/MultiSelectWithAvatar.js +3 -6
- package/es/MultiSelect/SelectedOptions.js +2 -3
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -1
- package/es/Popup/Popup.js +14 -8
- package/es/Popup/viewPort.js +14 -9
- package/es/Provider/IdProvider.js +5 -4
- package/es/Provider/LibraryContext.js +6 -5
- package/es/Provider/NumberGenerator/NumberGenerator.js +17 -15
- package/es/Provider/ZindexProvider.js +5 -4
- package/es/Radio/Radio.js +2 -1
- package/es/Radio/Radio.module.css +2 -2
- package/es/Responsive/CustomResponsive.js +11 -8
- package/es/Responsive/ResizeComponent.js +3 -1
- package/es/Responsive/Responsive.js +12 -9
- package/es/Responsive/docs/Responsive__Custom.docs.js +49 -44
- package/es/Responsive/docs/Responsive__default.docs.js +77 -74
- package/es/Responsive/sizeObservers.js +5 -1
- package/es/Ribbon/__tests__/Ribbon.spec.js +0 -1
- package/es/RippleEffect/RippleEffect.js +4 -7
- package/es/RippleEffect/RippleEffect.module.css +0 -3
- package/es/Select/GroupSelect.js +2 -1
- package/es/Select/Select.js +16 -1
- package/es/Select/Select.module.css +1 -1
- package/es/Select/SelectWithAvatar.js +4 -7
- package/es/Select/docs/Select__default.docs.js +2 -1
- package/es/Stencils/__tests__/Stencils.spec.js +0 -1
- package/es/Tab/Tab.js +27 -26
- package/es/Tab/TabContent.js +17 -14
- package/es/Tab/TabContentWrapper.js +17 -14
- package/es/Tab/TabWrapper.js +15 -14
- package/es/Tab/Tabs.js +2 -1
- package/es/Tab/docs/Tab__default.docs.js +0 -1
- package/es/Tag/Tag.js +4 -10
- package/es/Tag/Tag.module.css +11 -14
- package/es/Tag/docs/Tag__default.docs.js +0 -70
- package/es/TextBox/__tests__/TextBox.spec.js +0 -1
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +2 -5
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -1
- package/es/Textarea/__tests__/Textarea.spec.js +0 -1
- package/es/Tooltip/Tooltip.js +0 -1
- package/es/a11y/FocusScope/FocusScope.js +10 -4
- package/es/beta/FocusRing/FocusRing.js +4 -1
- package/es/utils/Common.js +31 -11
- package/es/utils/datetime/common.js +6 -3
- package/es/utils/dropDownUtils.js +6 -5
- package/es/utils/getInitial.js +3 -1
- package/lib/Accordion/Accordion.js +3 -3
- package/lib/Accordion/AccordionItem.js +3 -3
- package/lib/Accordion/docs/Accordion__Demo.docs.js +3 -3
- package/lib/Animation/Animation.js +3 -3
- package/lib/Animation/docs/Animation__default.docs.js +3 -3
- package/lib/Animation/docs/Animation__fadeIn.docs.js +3 -3
- package/lib/Animation/docs/Animation__scaleIn.docs.js +3 -3
- package/lib/Animation/docs/Animation__skewIn.docs.js +3 -3
- package/lib/Animation/docs/Animation__slideDown.docs.js +3 -3
- package/lib/Animation/docs/Animation__slideLeft.docs.js +3 -3
- package/lib/Animation/docs/Animation__zoomIn.docs.js +3 -3
- package/lib/AppContainer/AppContainer.js +3 -3
- package/lib/AppContainer/docs/AppContainer__default.docs.js +3 -3
- package/lib/Appearance/dark/mode/darkMode.module.css +355 -392
- package/lib/Appearance/default/mode/defaultMode.module.css +355 -394
- package/lib/Avatar/Avatar.js +3 -3
- package/lib/Avatar/docs/Avatar__custom.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__default.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__palette.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__text.docs.js +3 -3
- package/lib/AvatarTeam/AvatarTeam.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +3 -3
- package/lib/Button/Button.js +3 -3
- package/lib/Button/docs/Button__custom.docs.js +3 -3
- package/lib/Button/docs/Button__default.docs.js +3 -3
- package/lib/Buttongroup/Buttongroup.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +3 -3
- package/lib/Card/Card.js +4 -4
- package/lib/Card/__tests__/Card.spec.js +1 -1
- package/lib/Card/docs/Card__Custom.docs.js +3 -3
- package/lib/Card/docs/Card__Default.docs.js +3 -3
- package/lib/Card/docs/Card__Scroll.docs.js +3 -3
- package/lib/Card/index.js +7 -7
- package/lib/CheckBox/CheckBox.js +3 -3
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +3 -3
- package/lib/CheckBox/docs/CheckBox__default.docs.js +3 -3
- package/lib/DateTime/CalendarView.js +4 -4
- package/lib/DateTime/DateTime.js +3 -3
- package/lib/DateTime/DateTimePopupFooter.js +3 -3
- package/lib/DateTime/DateTimePopupHeader.js +3 -3
- package/lib/DateTime/DateWidget.js +3 -3
- package/lib/DateTime/DateWidget.module.css +4 -0
- package/lib/DateTime/DaysRow.js +3 -3
- package/lib/DateTime/Time.js +3 -3
- package/lib/DateTime/YearView.js +3 -3
- package/lib/DateTime/__tests__/CalendarView.spec.js +1 -1
- package/lib/DateTime/__tests__/DateTime.spec.js +1 -1
- package/lib/DateTime/constants.js +1 -1
- package/lib/DateTime/dateFormatUtils/dateFormat.js +2 -2
- package/lib/DateTime/dateFormatUtils/index.js +13 -13
- package/lib/DateTime/docs/DateTime__default.docs.js +3 -3
- package/lib/DateTime/docs/DateWidget__default.docs.js +3 -3
- package/lib/DateTime/objectUtils.js +2 -2
- package/lib/DropBox/DropBox.js +3 -3
- package/lib/DropBox/docs/DropBox__custom.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__position.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__size.docs.js +3 -3
- package/lib/DropDown/DropDown.js +4 -4
- package/lib/DropDown/DropDownHeading.js +3 -3
- package/lib/DropDown/DropDownItem.js +3 -3
- package/lib/DropDown/DropDownSearch.js +3 -3
- package/lib/DropDown/DropDownSeparator.js +3 -3
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +3 -3
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +3 -3
- package/lib/Label/Label.js +3 -3
- package/lib/Label/docs/Label__clipped.docs.js +3 -3
- package/lib/Label/docs/Label__custom.docs.js +3 -3
- package/lib/Label/docs/Label__palette.docs.js +3 -3
- package/lib/Label/docs/Label__size.docs.js +3 -3
- package/lib/Label/docs/Label__type.docs.js +3 -3
- package/lib/Layout/Box.js +1 -1
- package/lib/Layout/Container.js +1 -1
- package/lib/Layout/docs/Layout__Hidden.docs.js +3 -3
- package/lib/Layout/docs/Layout__default.docs.js +3 -3
- package/lib/Layout/docs/Layout__four_Column.docs.js +3 -3
- package/lib/Layout/docs/Layout__three_Column.docs.js +3 -3
- package/lib/Layout/docs/Layout__two_Column.docs.js +3 -3
- package/lib/Layout/index.js +4 -4
- package/lib/Layout/utils.js +2 -2
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -3
- package/lib/ListItem/ListItem.js +3 -3
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithCheckBox.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +3 -3
- package/lib/ListItem/ListItemWithRadio.js +3 -3
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItem__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItem__default.docs.js +3 -3
- package/lib/Modal/Modal.js +3 -3
- package/lib/Modal/__docs__/Modal__default.docs.js +3 -3
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -10
- package/lib/MultiSelect/AdvancedMultiSelect.js +6 -9
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/lib/MultiSelect/EmptyState.js +3 -3
- package/lib/MultiSelect/MultiSelect.js +14 -11
- package/lib/MultiSelect/MultiSelect.module.css +13 -8
- package/lib/MultiSelect/MultiSelectHeader.js +3 -3
- package/lib/MultiSelect/MultiSelectWithAvatar.js +6 -9
- package/lib/MultiSelect/SelectedOptions.js +5 -6
- package/lib/MultiSelect/Suggestions.js +5 -5
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +3 -3
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +3 -3
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +3 -3
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +3 -3
- package/lib/PopOver/PopOver.js +4 -4
- package/lib/PopOver/docs/PopOver__default.docs.js +3 -3
- package/lib/Popup/Popup.js +3 -3
- package/lib/Popup/__tests__/Popup.spec.js +3 -3
- package/lib/Provider/IdProvider.js +3 -3
- package/lib/Provider/LibraryContext.js +3 -3
- package/lib/Provider/NumberGenerator/NumberGenerator.js +2 -2
- package/lib/Provider/ZindexProvider.js +1 -1
- package/lib/Provider/docs/Provider_Id__Class.docs.js +3 -3
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +3 -3
- package/lib/Provider.js +3 -3
- package/lib/Radio/Radio.js +6 -4
- package/lib/Radio/Radio.module.css +2 -2
- package/lib/Radio/docs/Radio__custom.docs.js +3 -3
- package/lib/Radio/docs/Radio__default.docs.js +3 -3
- package/lib/Responsive/CustomResponsive.js +4 -4
- package/lib/Responsive/RefWrapper.js +1 -1
- package/lib/Responsive/ResizeComponent.js +3 -3
- package/lib/Responsive/ResizeObserver.js +1 -1
- package/lib/Responsive/Responsive.js +6 -5
- package/lib/Responsive/docs/Responsive__Custom.docs.js +3 -3
- package/lib/Responsive/docs/Responsive__default.docs.js +3 -3
- package/lib/Responsive/sizeObservers.js +6 -5
- package/lib/Responsive/utils/index.js +3 -2
- package/lib/Responsive/utils/shallowCompare.js +1 -1
- package/lib/Ribbon/Ribbon.js +3 -3
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +3 -3
- package/lib/Ribbon/docs/Ribbon__default.docs.js +3 -3
- package/lib/RippleEffect/RippleEffect.js +4 -7
- package/lib/RippleEffect/RippleEffect.module.css +0 -3
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +3 -3
- package/lib/Select/GroupSelect.js +3 -3
- package/lib/Select/Select.js +19 -5
- package/lib/Select/Select.module.css +1 -1
- package/lib/Select/SelectWithAvatar.js +7 -10
- package/lib/Select/SelectWithIcon.js +3 -3
- package/lib/Select/docs/GroupSelect__default.docs.js +3 -3
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +3 -3
- package/lib/Select/docs/SelectWithIcon__default.docs.js +3 -3
- package/lib/Select/docs/Select__default.docs.js +3 -3
- package/lib/Stencils/Stencils.js +3 -3
- package/lib/Stencils/docs/Stencils__custom.docs.js +3 -3
- package/lib/Stencils/docs/Stencils__default.docs.js +3 -3
- package/lib/Switch/Switch.js +3 -3
- package/lib/Switch/docs/Switch__custom.docs.js +3 -3
- package/lib/Switch/docs/Switch__default.docs.js +3 -3
- package/lib/Tab/Tab.js +1 -1
- package/lib/Tab/TabWrapper.js +1 -1
- package/lib/Tab/Tabs.js +3 -3
- package/lib/Tab/docs/Tab__default.docs.js +3 -3
- package/lib/Tab/index.js +10 -10
- package/lib/Tag/Tag.js +7 -13
- package/lib/Tag/Tag.module.css +11 -14
- package/lib/Tag/docs/Tag__custom.docs.js +3 -3
- package/lib/Tag/docs/Tag__default.docs.js +3 -73
- package/lib/TextBox/TextBox.js +3 -3
- package/lib/TextBox/docs/TextBox__custom.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__default.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__size.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__variant.docs.js +3 -3
- package/lib/TextBoxIcon/TextBoxIcon.js +4 -4
- package/lib/TextBoxIcon/TextBoxIcon.module.css +2 -5
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +3 -3
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +3 -3
- package/lib/Textarea/Textarea.js +3 -3
- package/lib/Textarea/docs/Textarea__animated.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__custom.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__default.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__disabled.docs.js +3 -3
- package/lib/Tooltip/Tooltip.js +3 -3
- package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -3
- package/lib/Tooltip/docs/Tooltip__default.docs.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +3 -3
- package/lib/a11y/FocusScope/FocusScope.js +2 -2
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +3 -3
- package/lib/beta/FocusRing/FocusRing.js +3 -3
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +3 -3
- package/lib/deprecated/PortalLayer/PortalLayer.js +3 -3
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +3 -3
- package/lib/index.js +310 -310
- package/lib/semantic/Button/Button.js +3 -3
- package/lib/semantic/Button/docs/Button__default.docs.js +3 -3
- package/lib/utils/Common.js +20 -16
- package/lib/utils/datetime/common.js +10 -10
- package/lib/utils/dropDownUtils.js +2 -2
- package/lib/utils/shallowEqual.js +1 -1
- package/package.json +2 -2
- package/preprocess/componentAppearanceColors.js +65 -0
- package/preprocess/componentThemeColors.js +1 -1
- package/preprocess/ctaThemeColors.js +1 -1
- package/preprocess/index.js +2 -1
- package/preprocess/json/componentAppearanceVariableJson.js +1515 -0
- /package/preprocess/json/{componentVariableJson.js → componentThemeVariableJson.js} +0 -0
- /package/preprocess/json/{ctaVariableJson.js → ctaThemeVariableJson.js} +0 -0
|
@@ -292,7 +292,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
292
292
|
} = this.props;
|
|
293
293
|
const highLightedSelectOptionsLen = highLightedSelectOptions.length;
|
|
294
294
|
|
|
295
|
-
if (isPopupOpen && (keyCode === 38 || keyCode === 40 || keyCode === 13 || keyCode === 27)) {
|
|
295
|
+
if (isPopupOpen && (keyCode === 38 || keyCode === 40 || keyCode === 13 || keyCode === 27 || keyCode === 9)) {
|
|
296
296
|
suggestions = this.handleFilterSuggestions();
|
|
297
297
|
}
|
|
298
298
|
|
|
@@ -420,6 +420,13 @@ export class MultiSelectComponent extends React.Component {
|
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
} else if (keyCode === 27) {// this.handlePopupClose(e);
|
|
423
|
+
} else if (keyCode === 9) {
|
|
424
|
+
const selectedOption = suggestions[hoverOption] || {};
|
|
425
|
+
const {
|
|
426
|
+
id
|
|
427
|
+
} = selectedOption;
|
|
428
|
+
isPopupOpen && !getIsEmptyValue(id) && this.handleSelectOption(id, e);
|
|
429
|
+
this.handlePopupClose(e);
|
|
423
430
|
}
|
|
424
431
|
}
|
|
425
432
|
|
|
@@ -535,7 +542,11 @@ export class MultiSelectComponent extends React.Component {
|
|
|
535
542
|
}
|
|
536
543
|
}
|
|
537
544
|
|
|
538
|
-
handleFetchOptions(
|
|
545
|
+
handleFetchOptions() {
|
|
546
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
547
|
+
args[_key] = arguments[_key];
|
|
548
|
+
}
|
|
549
|
+
|
|
539
550
|
const [APICall, searchStr] = args;
|
|
540
551
|
const {
|
|
541
552
|
isFetchingOptions
|
|
@@ -601,7 +612,9 @@ export class MultiSelectComponent extends React.Component {
|
|
|
601
612
|
});
|
|
602
613
|
}
|
|
603
614
|
|
|
604
|
-
handleClickSelectedOption(
|
|
615
|
+
handleClickSelectedOption() {
|
|
616
|
+
let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
617
|
+
let e = arguments.length > 1 ? arguments[1] : undefined;
|
|
605
618
|
const {
|
|
606
619
|
selectedOptions
|
|
607
620
|
} = this.props;
|
|
@@ -682,7 +695,9 @@ export class MultiSelectComponent extends React.Component {
|
|
|
682
695
|
getNextOptions && getNextOptions(searchStr);
|
|
683
696
|
}
|
|
684
697
|
|
|
685
|
-
handleChange(
|
|
698
|
+
handleChange() {
|
|
699
|
+
let selectedOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
700
|
+
let e = arguments.length > 1 ? arguments[1] : undefined;
|
|
686
701
|
const {
|
|
687
702
|
optionsNormalize
|
|
688
703
|
} = this.state;
|
|
@@ -855,8 +870,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
855
870
|
a11y,
|
|
856
871
|
children,
|
|
857
872
|
customChildrenClass,
|
|
858
|
-
getFooter
|
|
859
|
-
needEffect
|
|
873
|
+
getFooter
|
|
860
874
|
} = this.props;
|
|
861
875
|
const {
|
|
862
876
|
clearText = 'Clear all',
|
|
@@ -884,7 +898,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
884
898
|
const ariaErrorId = this.getNextAriaId();
|
|
885
899
|
const isShowClearIcon = !isReadOnly && !isDisabled && !disableAction && selectedOptions.length > 1;
|
|
886
900
|
return /*#__PURE__*/React.createElement("div", {
|
|
887
|
-
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}
|
|
901
|
+
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
|
|
888
902
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
889
903
|
"data-title": isDisabled ? title : '',
|
|
890
904
|
onClick: this.handleInputFocus
|
|
@@ -1088,8 +1102,7 @@ MultiSelectComponent.propTypes = {
|
|
|
1088
1102
|
children: PropTypes.node,
|
|
1089
1103
|
customChildrenClass: PropTypes.string,
|
|
1090
1104
|
disabledOptions: PropTypes.arrayOf(PropTypes.string),
|
|
1091
|
-
getFooter: PropTypes.func
|
|
1092
|
-
needEffect: PropTypes.bool
|
|
1105
|
+
getFooter: PropTypes.func
|
|
1093
1106
|
};
|
|
1094
1107
|
MultiSelectComponent.defaultProps = {
|
|
1095
1108
|
animationStyle: 'bounce',
|
|
@@ -1119,8 +1132,7 @@ MultiSelectComponent.defaultProps = {
|
|
|
1119
1132
|
a11y: {},
|
|
1120
1133
|
textBoxClass: '',
|
|
1121
1134
|
palette: 'default',
|
|
1122
|
-
isSearchClearOnSelect: true
|
|
1123
|
-
needEffect: true
|
|
1135
|
+
isSearchClearOnSelect: true
|
|
1124
1136
|
};
|
|
1125
1137
|
|
|
1126
1138
|
if (false) {
|
|
@@ -2,9 +2,14 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.disabled
|
|
6
|
-
|
|
5
|
+
.disabled {
|
|
6
|
+
composes: disabled from '../common/common.module.css';
|
|
7
7
|
}
|
|
8
|
+
|
|
9
|
+
.readOnly {
|
|
10
|
+
composes: readonly from '../common/common.module.css';
|
|
11
|
+
}
|
|
12
|
+
|
|
8
13
|
.container {
|
|
9
14
|
max-height: var(--zd_size120);
|
|
10
15
|
composes: oflowy from '../common/common.module.css';
|
|
@@ -17,28 +22,28 @@
|
|
|
17
22
|
.borderColor_transparent {
|
|
18
23
|
border-bottom-color: var(--zdt_multiselect_transparent_border);
|
|
19
24
|
}
|
|
20
|
-
.
|
|
25
|
+
.borderColor_transparent:hover {
|
|
21
26
|
border-bottom-color: var(--zdt_multiselect_transparent_hover_border);
|
|
22
27
|
}
|
|
23
|
-
.
|
|
28
|
+
.borderColor_transparent.active {
|
|
24
29
|
border-bottom-color: var(--zdt_multiselect_transparent_active_border);
|
|
25
30
|
}
|
|
26
31
|
.borderColor_default {
|
|
27
32
|
border-bottom-color: var(--zdt_multiselect_default_border);
|
|
28
33
|
}
|
|
29
|
-
.
|
|
34
|
+
.borderColor_default:hover {
|
|
30
35
|
border-bottom-color: var(--zdt_multiselect_default_hover_border);
|
|
31
36
|
}
|
|
32
|
-
.
|
|
37
|
+
.borderColor_default.active {
|
|
33
38
|
border-bottom-color: var(--zdt_multiselect_default_active_border);
|
|
34
39
|
}
|
|
35
40
|
.borderColor_dark {
|
|
36
41
|
border-bottom-color: var(--zdt_multiselect_dark_border);
|
|
37
42
|
}
|
|
38
|
-
.
|
|
43
|
+
.borderColor_dark:hover {
|
|
39
44
|
border-bottom-color: var(--zdt_multiselect_dark_hover_border);
|
|
40
45
|
}
|
|
41
|
-
.
|
|
46
|
+
.borderColor_dark.active {
|
|
42
47
|
border-bottom-color: var(--zdt_multiselect_dark_active_border);
|
|
43
48
|
}
|
|
44
49
|
|
|
@@ -87,8 +87,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
87
87
|
a11y,
|
|
88
88
|
children,
|
|
89
89
|
customChildrenClass,
|
|
90
|
-
isBoxPaddingNeed
|
|
91
|
-
needEffect
|
|
90
|
+
isBoxPaddingNeed
|
|
92
91
|
} = this.props;
|
|
93
92
|
const {
|
|
94
93
|
clearText = 'Clear all'
|
|
@@ -116,7 +115,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
116
115
|
const popUpState = !isReadOnly && !isDisabled && !disableAction && isPopupOpen;
|
|
117
116
|
const isShowClearIcon = !isReadOnly && !isDisabled && !disableAction && selectedOptions.length > 1;
|
|
118
117
|
return /*#__PURE__*/React.createElement("div", {
|
|
119
|
-
className: ` ${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}
|
|
118
|
+
className: ` ${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
|
|
120
119
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
121
120
|
"data-title": isDisabled ? title : '',
|
|
122
121
|
onClick: this.handleInputFocus
|
|
@@ -289,7 +288,6 @@ MultiSelectWithAvatarComponent.propTypes = {
|
|
|
289
288
|
palette: PropTypes.oneOf(['default', 'dark']),
|
|
290
289
|
htmlId: PropTypes.string,
|
|
291
290
|
isBoxPaddingNeed: PropTypes.bool,
|
|
292
|
-
needEffect: PropTypes.bool,
|
|
293
291
|
|
|
294
292
|
/**** Popup props ****/
|
|
295
293
|
isPopupOpen: PropTypes.bool,
|
|
@@ -339,8 +337,7 @@ MultiSelectWithAvatarComponent.defaultProps = {
|
|
|
339
337
|
a11y: {},
|
|
340
338
|
palette: 'default',
|
|
341
339
|
isBoxPaddingNeed: true,
|
|
342
|
-
isSearchClearOnSelect: true
|
|
343
|
-
needEffect: true
|
|
340
|
+
isSearchClearOnSelect: true
|
|
344
341
|
};
|
|
345
342
|
MultiSelectWithAvatarComponent.displayName = 'MultiSelectWithAvatar';
|
|
346
343
|
const MultiSelectWithAvatar = Popup(MultiSelectWithAvatarComponent);
|
|
@@ -37,14 +37,13 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
37
37
|
} = option;
|
|
38
38
|
const commonProps = {
|
|
39
39
|
disabled: isDisabled,
|
|
40
|
-
onRemove: isDisabled
|
|
40
|
+
onRemove: isDisabled ? null : onRemove,
|
|
41
41
|
text: value,
|
|
42
42
|
palette: isDarkPalette,
|
|
43
43
|
onSelectTag: isReadOnly ? null : onSelect,
|
|
44
44
|
getRef: getRef,
|
|
45
45
|
initial: value,
|
|
46
|
-
id: id
|
|
47
|
-
isReadOnly: isReadOnly
|
|
46
|
+
id: id
|
|
48
47
|
};
|
|
49
48
|
|
|
50
49
|
if (optionType === 'avatar') {
|
|
@@ -39,7 +39,8 @@ export default class AdvancedGroupMultiSelect__default extends React.Component {
|
|
|
39
39
|
return Promise.resolve();
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
handleSelectOptions(
|
|
42
|
+
handleSelectOptions() {
|
|
43
|
+
let selectedGroupOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
43
44
|
this.setState({
|
|
44
45
|
selectedGroupOptions
|
|
45
46
|
});
|
package/es/Popup/Popup.js
CHANGED
|
@@ -40,13 +40,17 @@ const defaultState = {
|
|
|
40
40
|
|
|
41
41
|
/* eslint-disable react/prop-types */
|
|
42
42
|
|
|
43
|
-
const Popup = function (Component
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
const Popup = function (Component) {
|
|
44
|
+
let group = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'global';
|
|
45
|
+
let needResizeHandling = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
46
|
+
let {
|
|
47
|
+
isAbsolutePositioningNeeded: isAbsolutePopup = true,
|
|
48
|
+
isArrow: needPopupArrow = false,
|
|
49
|
+
customOrder: customPositionOrder = [],
|
|
50
|
+
scrollDebounceTime: popupScrollDebounceTime = 0,
|
|
51
|
+
closeOnScroll: closeOnScrollPopup = false
|
|
52
|
+
} = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
53
|
+
|
|
50
54
|
class Popup extends React.Component {
|
|
51
55
|
constructor(props) {
|
|
52
56
|
super(props);
|
|
@@ -412,7 +416,9 @@ const Popup = function (Component, group = 'global', needResizeHandling = true,
|
|
|
412
416
|
e && e.nativeEvent && e.nativeEvent.stopImmediatePropagation && e.nativeEvent.stopImmediatePropagation();
|
|
413
417
|
}
|
|
414
418
|
|
|
415
|
-
handlePopupPosition(
|
|
419
|
+
handlePopupPosition() {
|
|
420
|
+
let defaultPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'bottomCenter';
|
|
421
|
+
let isResizeHandling = arguments.length > 1 ? arguments[1] : undefined;
|
|
416
422
|
// isResizeHandling --->>> Window resize and dropBox resize
|
|
417
423
|
const {
|
|
418
424
|
direction
|
package/es/Popup/viewPort.js
CHANGED
|
@@ -77,10 +77,12 @@ let viewPort = {
|
|
|
77
77
|
getViewPortEle: el => {
|
|
78
78
|
return el.closest('[data-viewport-container=true]') ? el.closest('[data-viewport-container=true]') : document.documentElement;
|
|
79
79
|
},
|
|
80
|
-
possibilities: (el, relativeBox, customFrame
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
possibilities: function (el, relativeBox, customFrame) {
|
|
81
|
+
let {
|
|
82
|
+
needArrow,
|
|
83
|
+
isAbsolute
|
|
84
|
+
} = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
85
|
+
|
|
84
86
|
if (!el) {
|
|
85
87
|
return;
|
|
86
88
|
}
|
|
@@ -301,11 +303,14 @@ let viewPort = {
|
|
|
301
303
|
bottom: relativeBoxGap.center.bottom - rectGap.bottom
|
|
302
304
|
};
|
|
303
305
|
},
|
|
304
|
-
betterView: (popup, relativeBox
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
betterView: function (popup, relativeBox) {
|
|
307
|
+
let defaultView = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
308
|
+
let customFrame = arguments.length > 3 ? arguments[3] : undefined;
|
|
309
|
+
let {
|
|
310
|
+
needArrow,
|
|
311
|
+
isAbsolute,
|
|
312
|
+
customOrder = []
|
|
313
|
+
} = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
309
314
|
let customScrollFrame = isAbsolute ? customFrame : '';
|
|
310
315
|
let viewPortPossibilities = viewPort.possibilities(popup, relativeBox, customScrollFrame, {
|
|
311
316
|
needArrow,
|
|
@@ -30,10 +30,11 @@ function getDeletedIndexes() {
|
|
|
30
30
|
return deletedIndexes;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
function callback({
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
function callback(_ref) {
|
|
34
|
+
let {
|
|
35
|
+
globalId,
|
|
36
|
+
deletedIndexes
|
|
37
|
+
} = _ref;
|
|
37
38
|
setGlobalId(globalId);
|
|
38
39
|
setDeletedIndexes(deletedIndexes);
|
|
39
40
|
}
|
|
@@ -3,11 +3,12 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import LibraryContextInit from './LibraryContextInit';
|
|
4
4
|
import { getLibraryConfig } from './Config';
|
|
5
5
|
|
|
6
|
-
const LibraryContextProvider =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
const LibraryContextProvider = _ref => {
|
|
7
|
+
let {
|
|
8
|
+
isReducedMotion = getLibraryConfig('isReducedMotion'),
|
|
9
|
+
direction = getLibraryConfig('direction'),
|
|
10
|
+
children
|
|
11
|
+
} = _ref;
|
|
11
12
|
const [value, setValue] = useState({
|
|
12
13
|
isReducedMotion,
|
|
13
14
|
direction
|
|
@@ -50,13 +50,14 @@ export function decreaseGlobalIds(numbers, deletedIndexes, globalId) {
|
|
|
50
50
|
deletedIndexes
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
export function useNumberGenerator({
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
export function useNumberGenerator(_ref) {
|
|
54
|
+
let {
|
|
55
|
+
getGlobalId,
|
|
56
|
+
prefix,
|
|
57
|
+
getGlobalPrefix,
|
|
58
|
+
getDeletedIndexes,
|
|
59
|
+
callback
|
|
60
|
+
} = _ref;
|
|
60
61
|
let presentValues = useRef([]),
|
|
61
62
|
presentIndex = useRef(0);
|
|
62
63
|
prefix = typeof prefix === 'undefined' ? '' : `${prefix}_`;
|
|
@@ -83,14 +84,15 @@ export function useNumberGenerator({
|
|
|
83
84
|
presentIndex.current = -1;
|
|
84
85
|
return getNextId;
|
|
85
86
|
}
|
|
86
|
-
export function getNumberGenerators({
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
export function getNumberGenerators(_ref2) {
|
|
88
|
+
let {
|
|
89
|
+
Component,
|
|
90
|
+
prefix,
|
|
91
|
+
getGlobalPrefix,
|
|
92
|
+
getGlobalId,
|
|
93
|
+
getDeletedIndexes,
|
|
94
|
+
callback
|
|
95
|
+
} = _ref2;
|
|
94
96
|
let presentIndex = 0,
|
|
95
97
|
presentValues = [],
|
|
96
98
|
{
|
|
@@ -27,10 +27,11 @@ function getDeletedIndexes() {
|
|
|
27
27
|
return deletedIndexes;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
function callback({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
function callback(_ref) {
|
|
31
|
+
let {
|
|
32
|
+
globalId,
|
|
33
|
+
deletedIndexes
|
|
34
|
+
} = _ref;
|
|
34
35
|
setInitialZIndex(globalId);
|
|
35
36
|
setDeletedIndexes(deletedIndexes);
|
|
36
37
|
}
|
package/es/Radio/Radio.js
CHANGED
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import Label from '../Label/Label';
|
|
5
5
|
import { Container, Box } from '../Layout';
|
|
6
|
+
import CssProvider from '../Provider/CssProvider';
|
|
6
7
|
import style from './Radio.module.css';
|
|
7
8
|
export default class Radio extends React.Component {
|
|
8
9
|
constructor(props) {
|
|
@@ -44,7 +45,7 @@ export default class Radio extends React.Component {
|
|
|
44
45
|
customRadio = '',
|
|
45
46
|
customLabel = ''
|
|
46
47
|
} = customClass;
|
|
47
|
-
let accessMode = isReadOnly ? style.readonly : disabled ?
|
|
48
|
+
let accessMode = isReadOnly ? style.readonly : disabled ? CssProvider('isDisabled') : style.pointer;
|
|
48
49
|
let toolTip = disabled ? disabledTitle : title ? title : null;
|
|
49
50
|
let {
|
|
50
51
|
ariaHidden,
|
|
@@ -98,7 +98,9 @@ ResponsiveSender.propTypes = {
|
|
|
98
98
|
domRefKey: PropTypes.string,
|
|
99
99
|
responsiveId: PropTypes.string
|
|
100
100
|
};
|
|
101
|
-
export function useResponsiveReceiver(
|
|
101
|
+
export function useResponsiveReceiver() {
|
|
102
|
+
let responsiveId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultResponsiveId;
|
|
103
|
+
let query = arguments.length > 1 ? arguments[1] : undefined;
|
|
102
104
|
const [, forceUpdate] = useState();
|
|
103
105
|
const totalContextData = useContext(ResponsiveContext);
|
|
104
106
|
const validSizeContextData = totalContextData[validSizeResponsiveId];
|
|
@@ -170,13 +172,14 @@ export function useResponsiveReceiver(responsiveId = defaultResponsiveId, query)
|
|
|
170
172
|
updateLatestData();
|
|
171
173
|
return data.current;
|
|
172
174
|
}
|
|
173
|
-
export function ResponsiveReceiver({
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
export function ResponsiveReceiver(_ref) {
|
|
176
|
+
let {
|
|
177
|
+
children,
|
|
178
|
+
responsiveId,
|
|
179
|
+
query,
|
|
180
|
+
eleRef,
|
|
181
|
+
domRefKey
|
|
182
|
+
} = _ref;
|
|
180
183
|
const data = useResponsiveReceiver(responsiveId, query);
|
|
181
184
|
const child = children(data);
|
|
182
185
|
return eleRef ? /*#__PURE__*/React.createElement(DOMRefWrapper, {
|
|
@@ -163,7 +163,9 @@ export default class ResizeComponent extends React.Component {
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
constructChildren(
|
|
166
|
+
constructChildren() {
|
|
167
|
+
let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
168
|
+
let responsive = arguments.length > 1 ? arguments[1] : undefined;
|
|
167
169
|
const {
|
|
168
170
|
childrenList,
|
|
169
171
|
getData
|
|
@@ -102,7 +102,8 @@ ResponsiveSender.propTypes = {
|
|
|
102
102
|
responsiveId: PropTypes.string // matcher: PropTypes.func
|
|
103
103
|
|
|
104
104
|
};
|
|
105
|
-
export function useResponsiveReceiver(
|
|
105
|
+
export function useResponsiveReceiver() {
|
|
106
|
+
let responsiveId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultResponsiveId;
|
|
106
107
|
const [_, forceUpdate] = useState();
|
|
107
108
|
let totalContextData = useContext(ResponsiveContext);
|
|
108
109
|
let contextData = totalContextData[responsiveId] || totalContextData[defaultResponsiveId]; // NOTE: this for fallback of if responsive receiver id wrong
|
|
@@ -149,7 +150,8 @@ export function useResponsiveReceiver(responsiveId = defaultResponsiveId) {
|
|
|
149
150
|
return value1 <= width && value2 >= width || breakPoint1 === breakPoint || breakPoint2 === breakPoint;
|
|
150
151
|
},
|
|
151
152
|
|
|
152
|
-
deviceOnly(
|
|
153
|
+
deviceOnly() {
|
|
154
|
+
let breakPoints = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
153
155
|
return breakPoints.includes(breakPoint);
|
|
154
156
|
},
|
|
155
157
|
|
|
@@ -174,13 +176,14 @@ export function useResponsiveReceiver(responsiveId = defaultResponsiveId) {
|
|
|
174
176
|
// ) : null;
|
|
175
177
|
// }
|
|
176
178
|
|
|
177
|
-
export function ResponsiveReceiver({
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
export function ResponsiveReceiver(_ref) {
|
|
180
|
+
let {
|
|
181
|
+
children,
|
|
182
|
+
responsiveId,
|
|
183
|
+
hiddenSizes,
|
|
184
|
+
eleRef,
|
|
185
|
+
domRefKey
|
|
186
|
+
} = _ref;
|
|
184
187
|
const data = useResponsiveReceiver(responsiveId);
|
|
185
188
|
const {
|
|
186
189
|
breakPoint
|
|
@@ -5,9 +5,10 @@ import Radio from '../../Radio/Radio'; // eslint-disable-next-line css-modules/n
|
|
|
5
5
|
|
|
6
6
|
import style from './style.module.css'; // eslint-disable-next-line react/prop-types
|
|
7
7
|
|
|
8
|
-
function WindowSizeBar({
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
function WindowSizeBar(_ref) {
|
|
9
|
+
let {
|
|
10
|
+
isTouchDevice
|
|
11
|
+
} = _ref;
|
|
11
12
|
let [{
|
|
12
13
|
windowWidth,
|
|
13
14
|
windowHeight
|
|
@@ -44,11 +45,12 @@ export default class Responsive__Custom extends React.Component {
|
|
|
44
45
|
this.switchToOr = this.handleMethodChange.bind(this, 'orFunction');
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
customQuery({
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
customQuery(_ref2) {
|
|
49
|
+
let {
|
|
50
|
+
mediaQueryOR,
|
|
51
|
+
mediaQueryAND,
|
|
52
|
+
isTouchDevice
|
|
53
|
+
} = _ref2;
|
|
52
54
|
const {
|
|
53
55
|
method
|
|
54
56
|
} = this.state;
|
|
@@ -152,42 +154,45 @@ export default class Responsive__Custom extends React.Component {
|
|
|
152
154
|
} = this.state;
|
|
153
155
|
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(ResponsiveSender, null, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
154
156
|
query: this.customQuery
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
157
|
+
}, _ref3 => {
|
|
158
|
+
let {
|
|
159
|
+
isQureyMatched,
|
|
160
|
+
isTouchDevice
|
|
161
|
+
} = _ref3;
|
|
162
|
+
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(WindowSizeBar, {
|
|
163
|
+
isTouchDevice: isTouchDevice
|
|
164
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
165
|
+
flexible: true,
|
|
166
|
+
scroll: "vertical"
|
|
167
|
+
}, /*#__PURE__*/React.createElement(Container, {
|
|
168
|
+
isCover: false,
|
|
169
|
+
alignBox: "row",
|
|
170
|
+
align: "vertical",
|
|
171
|
+
wrap: "wrap"
|
|
172
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
173
|
+
text: "AND Function",
|
|
174
|
+
onChange: this.switchToAnd,
|
|
175
|
+
name: "AndFunction",
|
|
176
|
+
checked: method === 'AndFunction'
|
|
177
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
178
|
+
style: {
|
|
179
|
+
margin: '20px'
|
|
180
|
+
}
|
|
181
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
182
|
+
text: "OR Function",
|
|
183
|
+
onChange: this.switchToOr,
|
|
184
|
+
name: "orFunction",
|
|
185
|
+
checked: method === 'orFunction'
|
|
186
|
+
}))), /*#__PURE__*/React.createElement(Container, {
|
|
187
|
+
isCover: false,
|
|
188
|
+
alignBox: "row",
|
|
189
|
+
align: "both",
|
|
190
|
+
wrap: "wrap"
|
|
191
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
192
|
+
shrink: true,
|
|
193
|
+
className: ` ${style.box} ${isQureyMatched ? style.selected : ''} `
|
|
194
|
+
}, "minWidth: 700, maxWidth: 800 || minHeight: 700, maxHeight: 800"))));
|
|
195
|
+
})));
|
|
191
196
|
}
|
|
192
197
|
|
|
193
198
|
}
|