@zohodesk/components 1.0.0-temp-667 → 1.0.0-temp-70
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 +8 -1
- package/es/Accordion/Accordion.js +4 -20
- package/es/Accordion/AccordionItem.js +4 -19
- package/es/Accordion/props/defaultProps.js +8 -0
- package/es/Accordion/props/propTypes.js +30 -0
- package/es/Animation/Animation.js +4 -25
- package/es/Animation/props/defaultProps.js +7 -0
- package/es/Animation/props/propTypes.js +12 -0
- package/es/AppContainer/AppContainer.js +5 -24
- package/es/AppContainer/props/defaultProps.js +8 -0
- package/es/AppContainer/props/propTypes.js +15 -0
- package/es/Avatar/Avatar.js +5 -45
- package/es/Avatar/props/defaultProps.js +13 -0
- package/es/Avatar/props/propTypes.js +22 -0
- package/es/AvatarTeam/AvatarTeam.js +5 -37
- package/es/AvatarTeam/props/defaultProps.js +13 -0
- package/es/AvatarTeam/props/propTypes.js +23 -0
- package/es/Button/Button.js +4 -47
- package/es/Button/props/defaultProps.js +15 -0
- package/es/Button/props/propTypes.js +22 -0
- package/es/Buttongroup/Buttongroup.js +4 -11
- package/es/Buttongroup/props/defaultProps.js +4 -0
- package/es/Buttongroup/props/propTypes.js +7 -0
- package/es/Card/Card.js +12 -60
- package/es/Card/props/defaultProps.js +15 -0
- package/es/Card/props/propTypes.js +43 -0
- package/es/CheckBox/CheckBox.js +5 -60
- package/es/CheckBox/props/defaultProps.js +18 -0
- package/es/CheckBox/props/propTypes.js +41 -0
- package/es/DateTime/CalendarView.js +6 -26
- package/es/DateTime/DateTime.js +4 -62
- package/es/DateTime/DateWidget.js +4 -83
- package/es/DateTime/YearView.js +4 -12
- package/es/DateTime/props/defaultProps.js +50 -0
- package/es/DateTime/props/propTypes.js +130 -0
- package/es/DropBox/DropBox.js +5 -72
- package/es/DropBox/props/defaultProps.js +20 -0
- package/es/DropBox/props/propTypes.js +47 -0
- package/es/DropDown/DropDown.js +7 -34
- package/es/DropDown/DropDownHeading.js +4 -19
- package/es/DropDown/DropDownItem.js +4 -18
- package/es/DropDown/DropDownSearch.js +4 -24
- package/es/DropDown/DropDownSeparator.js +2 -4
- package/es/DropDown/props/defaultProps.js +18 -0
- package/es/DropDown/props/propTypes.js +77 -0
- package/es/Label/Label.js +4 -24
- package/es/Label/props/defaultProps.js +10 -0
- package/es/Label/props/propTypes.js +14 -0
- package/es/Layout/Box.js +15 -30
- package/es/Layout/Container.js +15 -27
- package/es/Layout/Layout.module.css +13 -1
- package/es/Layout/docs/Layout__four_Column.docs.js +16 -22
- package/es/Layout/props/defaultProps.js +12 -0
- package/es/Layout/props/propTypes.js +42 -0
- package/es/ListItem/ListContainer.js +5 -42
- package/es/ListItem/ListItem.js +5 -51
- package/es/ListItem/ListItemWithAvatar.js +5 -57
- package/es/ListItem/ListItemWithCheckBox.js +5 -41
- package/es/ListItem/ListItemWithIcon.js +5 -48
- package/es/ListItem/ListItemWithRadio.js +5 -42
- package/es/ListItem/props/defaultProps.js +85 -0
- package/es/ListItem/props/propTypes.js +185 -0
- package/es/Modal/Modal.js +5 -10
- package/es/Modal/props/defaultProps.js +3 -0
- package/es/Modal/props/propTypes.js +6 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +5 -91
- package/es/MultiSelect/AdvancedMultiSelect.js +5 -114
- package/es/MultiSelect/EmptyState.js +4 -29
- package/es/MultiSelect/MultiSelect.js +4 -113
- package/es/MultiSelect/MultiSelectHeader.js +4 -12
- package/es/MultiSelect/MultiSelectWithAvatar.js +4 -99
- package/es/MultiSelect/SelectedOptions.js +5 -20
- package/es/MultiSelect/Suggestions.js +6 -35
- package/es/MultiSelect/props/defaultProps.js +140 -0
- package/es/MultiSelect/props/propTypes.js +360 -0
- package/es/PopOver/PopOver.js +7 -78
- package/es/PopOver/props/defaultProps.js +7 -0
- package/es/PopOver/props/propTypes.js +53 -0
- package/es/Popup/Popup.js +1 -1
- package/es/Radio/Radio.js +4 -46
- package/es/Radio/props/defaultProps.js +14 -0
- package/es/Radio/props/propTypes.js +32 -0
- package/es/Responsive/CustomResponsive.js +8 -19
- package/es/Responsive/Responsive.js +8 -22
- package/es/Responsive/props/defaultProps.js +13 -0
- package/es/Responsive/props/propTypes.js +25 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +5 -12
- package/es/ResponsiveDropBox/props/defaultProps.js +4 -0
- package/es/ResponsiveDropBox/props/propTypes.js +7 -0
- package/es/Ribbon/Ribbon.js +4 -25
- package/es/Ribbon/props/defaultProps.js +8 -0
- package/es/Ribbon/props/propTypes.js +10 -0
- package/es/RippleEffect/RippleEffect.js +4 -20
- package/es/RippleEffect/props/defaultProps.js +9 -0
- package/es/RippleEffect/props/propTypes.js +11 -0
- package/es/Select/GroupSelect.js +4 -109
- package/es/Select/Select.js +12 -150
- package/es/Select/SelectWithAvatar.js +4 -80
- package/es/Select/SelectWithIcon.js +4 -69
- package/es/Select/docs/Select__default.docs.js +1 -1
- package/es/Select/props/defaultProps.js +110 -0
- package/es/Select/props/propTypes.js +266 -0
- package/es/Stencils/Stencils.js +4 -17
- package/es/Stencils/props/defaultProps.js +6 -0
- package/es/Stencils/props/propTypes.js +7 -0
- package/es/Switch/Switch.js +5 -38
- package/es/Switch/props/defaultProps.js +10 -0
- package/es/Switch/props/propTypes.js +27 -0
- package/es/Tab/Tab.js +5 -32
- package/es/Tab/TabContent.js +4 -10
- package/es/Tab/TabContentWrapper.js +4 -12
- package/es/Tab/TabWrapper.js +5 -26
- package/es/Tab/Tabs.js +7 -69
- package/es/Tab/props/defaultProps.js +39 -0
- package/es/Tab/props/propTypes.js +102 -0
- package/es/Tag/Tag.js +4 -47
- package/es/Tag/props/defaultProps.js +13 -0
- package/es/Tag/props/propTypes.js +34 -0
- package/es/TextBox/TextBox.js +5 -73
- package/es/TextBox/props/defaultProps.js +19 -0
- package/es/TextBox/props/propTypes.js +53 -0
- package/es/TextBoxIcon/TextBoxIcon.js +5 -71
- package/es/TextBoxIcon/props/defaultProps.js +21 -0
- package/es/TextBoxIcon/props/propTypes.js +49 -0
- package/es/Textarea/Textarea.js +5 -48
- package/es/Textarea/props/defaultProps.js +16 -0
- package/es/Textarea/props/propTypes.js +31 -0
- package/es/Tooltip/Tooltip.js +4 -12
- package/es/Tooltip/props/defaultProps.js +4 -0
- package/es/Tooltip/props/propTypes.js +8 -0
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +4 -23
- package/es/VelocityAnimation/VelocityAnimation/props/defaultProps.js +7 -0
- package/es/VelocityAnimation/VelocityAnimation/props/propTypes.js +12 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -38
- package/es/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +15 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +19 -0
- package/es/common/common.module.css +26 -3
- package/es/deprecated/PortalLayer/PortalLayer.js +4 -16
- package/es/deprecated/PortalLayer/props/defaultProps.js +5 -0
- package/es/deprecated/PortalLayer/props/propTypes.js +11 -0
- package/es/index.js +9 -4
- package/es/semantic/Button/Button.js +4 -38
- package/es/semantic/Button/props/defaultProps.js +12 -0
- package/es/semantic/Button/props/propTypes.js +26 -0
- package/es/ucl/Grid/Grid.js +45 -0
- package/es/ucl/Grid/componentNames.js +6 -0
- package/es/ucl/Grid/css/Grid.module.css +217 -0
- package/es/ucl/Grid/css/cssJSLogic.js +46 -0
- package/es/ucl/Grid/docs/Grid__Area_Based_Detail_Layout.docs.js +41 -0
- package/es/ucl/Grid/docs/Grid__Area_Based_List_Layout.docs.js +49 -0
- package/es/ucl/Grid/docs/Grid__Auto_Flow_Row.docs.js +32 -0
- package/es/ucl/Grid/docs/Grid__Basic_Detail_Layout.docs.js +41 -0
- package/es/ucl/Grid/docs/Grid__Box_Alignment.docs.js +37 -0
- package/es/ucl/Grid/docs/Grid__Line_Based_Detail_Layout.docs.js +41 -0
- package/es/ucl/Grid/docs/Grid__Line_Based_List_Layout.docs.js +45 -0
- package/es/ucl/Grid/docs/Grid__default.docs.js +61 -0
- package/es/ucl/Grid/docs/css/gridDocsAreaBasedDetailLayout.module.css +38 -0
- package/es/ucl/Grid/docs/css/gridDocsAreaBasedListLayout.module.css +63 -0
- package/es/ucl/Grid/docs/css/gridDocsAutoFlowRow.module.css +23 -0
- package/es/ucl/Grid/docs/css/gridDocsBasicDetailLayout.module.css +21 -0
- package/es/ucl/Grid/docs/css/gridDocsBoxAlignment.module.css +16 -0
- package/es/ucl/Grid/docs/css/gridDocsDefault.module.css +15 -0
- package/es/ucl/Grid/docs/css/gridDocsLineBasedDetailLayout.module.css +38 -0
- package/es/ucl/Grid/docs/css/gridDocsLineBasedListLayout.module.css +47 -0
- package/es/ucl/Grid/docs/css/gridDocsStyle.module.css +30 -0
- package/es/ucl/Grid/index.js +5 -0
- package/es/ucl/Grid/props/ariaPropTypes.js +6 -0
- package/es/ucl/Grid/props/defaultProps.js +8 -0
- package/es/ucl/Grid/props/propConstants.js +66 -0
- package/es/ucl/Grid/props/propTypes.js +27 -0
- package/lib/Accordion/Accordion.js +7 -22
- package/lib/Accordion/AccordionItem.js +7 -21
- package/lib/Accordion/docs/Accordion__Demo.docs.js +2 -2
- package/lib/Accordion/props/defaultProps.js +16 -0
- package/lib/Accordion/props/propTypes.js +42 -0
- package/lib/Animation/Animation.js +7 -27
- package/lib/Animation/docs/Animation__default.docs.js +2 -2
- package/lib/Animation/docs/Animation__fadeIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__scaleIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__skewIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__slideDown.docs.js +2 -2
- package/lib/Animation/docs/Animation__slideLeft.docs.js +2 -2
- package/lib/Animation/docs/Animation__zoomIn.docs.js +2 -2
- package/lib/Animation/props/defaultProps.js +14 -0
- package/lib/Animation/props/propTypes.js +23 -0
- package/lib/AppContainer/AppContainer.js +8 -26
- package/lib/AppContainer/docs/AppContainer__default.docs.js +2 -2
- package/lib/AppContainer/props/defaultProps.js +15 -0
- package/lib/AppContainer/props/propTypes.js +26 -0
- package/lib/Avatar/Avatar.js +8 -47
- package/lib/Avatar/docs/Avatar__custom.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__default.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__palette.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__text.docs.js +2 -2
- package/lib/Avatar/props/defaultProps.js +20 -0
- package/lib/Avatar/props/propTypes.js +33 -0
- package/lib/AvatarTeam/AvatarTeam.js +8 -39
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +2 -2
- package/lib/AvatarTeam/props/defaultProps.js +20 -0
- package/lib/AvatarTeam/props/propTypes.js +34 -0
- package/lib/Button/Button.js +7 -50
- package/lib/Button/docs/Button__custom.docs.js +2 -2
- package/lib/Button/docs/Button__default.docs.js +2 -2
- package/lib/Button/props/defaultProps.js +24 -0
- package/lib/Button/props/propTypes.js +33 -0
- package/lib/Buttongroup/Buttongroup.js +7 -13
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +2 -2
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +2 -2
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +2 -2
- package/lib/Buttongroup/props/defaultProps.js +11 -0
- package/lib/Buttongroup/props/propTypes.js +18 -0
- package/lib/Card/Card.js +15 -62
- package/lib/Card/docs/Card__Custom.docs.js +2 -2
- package/lib/Card/docs/Card__Default.docs.js +2 -2
- package/lib/Card/docs/Card__Scroll.docs.js +2 -2
- package/lib/Card/props/defaultProps.js +23 -0
- package/lib/Card/props/propTypes.js +57 -0
- package/lib/CheckBox/CheckBox.js +8 -62
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +2 -2
- package/lib/CheckBox/docs/CheckBox__default.docs.js +2 -2
- package/lib/CheckBox/props/defaultProps.js +25 -0
- package/lib/CheckBox/props/propTypes.js +52 -0
- package/lib/DateTime/CalendarView.js +9 -28
- package/lib/DateTime/DateTime.js +7 -64
- package/lib/DateTime/DateTimePopupFooter.js +2 -2
- package/lib/DateTime/DateTimePopupHeader.js +2 -2
- package/lib/DateTime/DateWidget.js +7 -85
- package/lib/DateTime/DaysRow.js +2 -2
- package/lib/DateTime/Time.js +2 -2
- package/lib/DateTime/YearView.js +7 -14
- package/lib/DateTime/docs/DateTime__default.docs.js +2 -2
- package/lib/DateTime/docs/DateWidget__default.docs.js +2 -2
- package/lib/DateTime/props/defaultProps.js +61 -0
- package/lib/DateTime/props/propTypes.js +145 -0
- package/lib/DropBox/DropBox.js +8 -74
- package/lib/DropBox/docs/DropBox__custom.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__position.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__size.docs.js +2 -2
- package/lib/DropBox/props/defaultProps.js +27 -0
- package/lib/DropBox/props/propTypes.js +58 -0
- package/lib/DropDown/DropDown.js +10 -36
- package/lib/DropDown/DropDownHeading.js +7 -21
- package/lib/DropDown/DropDownItem.js +7 -20
- package/lib/DropDown/DropDownSearch.js +7 -25
- package/lib/DropDown/DropDownSeparator.js +4 -6
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +2 -2
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +2 -2
- package/lib/DropDown/props/defaultProps.js +28 -0
- package/lib/DropDown/props/propTypes.js +94 -0
- package/lib/Label/Label.js +7 -26
- package/lib/Label/docs/Label__clipped.docs.js +2 -2
- package/lib/Label/docs/Label__custom.docs.js +2 -2
- package/lib/Label/docs/Label__palette.docs.js +2 -2
- package/lib/Label/docs/Label__size.docs.js +2 -2
- package/lib/Label/docs/Label__type.docs.js +2 -2
- package/lib/Label/props/defaultProps.js +17 -0
- package/lib/Label/props/propTypes.js +25 -0
- package/lib/Layout/Box.js +18 -32
- package/lib/Layout/Container.js +18 -29
- package/lib/Layout/Layout.module.css +13 -1
- package/lib/Layout/docs/Layout__Hidden.docs.js +2 -2
- package/lib/Layout/docs/Layout__default.docs.js +2 -2
- package/lib/Layout/docs/Layout__four_Column.docs.js +18 -24
- package/lib/Layout/docs/Layout__three_Column.docs.js +2 -2
- package/lib/Layout/docs/Layout__two_Column.docs.js +2 -2
- package/lib/Layout/props/defaultProps.js +20 -0
- package/lib/Layout/props/propTypes.js +54 -0
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +2 -2
- package/lib/ListItem/ListContainer.js +7 -43
- package/lib/ListItem/ListItem.js +9 -54
- package/lib/ListItem/ListItemWithAvatar.js +9 -40
- package/lib/ListItem/ListItemWithCheckBox.js +9 -44
- package/lib/ListItem/ListItemWithIcon.js +9 -51
- package/lib/ListItem/ListItemWithRadio.js +9 -45
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItem__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItem__default.docs.js +2 -2
- package/lib/ListItem/props/defaultProps.js +97 -0
- package/lib/ListItem/props/propTypes.js +181 -0
- package/lib/Modal/Modal.js +8 -12
- package/lib/Modal/__docs__/Modal__default.docs.js +2 -2
- package/lib/Modal/props/defaultProps.js +10 -0
- package/lib/Modal/props/propTypes.js +17 -0
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +8 -94
- package/lib/MultiSelect/AdvancedMultiSelect.js +8 -116
- package/lib/MultiSelect/EmptyState.js +7 -31
- package/lib/MultiSelect/MultiSelect.js +7 -115
- package/lib/MultiSelect/MultiSelectHeader.js +7 -14
- package/lib/MultiSelect/MultiSelectWithAvatar.js +7 -101
- package/lib/MultiSelect/SelectedOptions.js +8 -22
- package/lib/MultiSelect/Suggestions.js +9 -37
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -2
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +2 -2
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +2 -2
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +2 -2
- package/lib/MultiSelect/props/defaultProps.js +156 -0
- package/lib/MultiSelect/props/propTypes.js +378 -0
- package/lib/PopOver/PopOver.js +10 -80
- package/lib/PopOver/docs/PopOver__default.docs.js +2 -2
- package/lib/PopOver/props/defaultProps.js +15 -0
- package/lib/PopOver/props/propTypes.js +66 -0
- package/lib/Popup/Popup.js +3 -3
- package/lib/Popup/__tests__/Popup.spec.js +2 -2
- package/lib/Provider/docs/Provider_Id__Class.docs.js +2 -2
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +2 -2
- package/lib/Provider.js +2 -2
- package/lib/Radio/Radio.js +7 -48
- package/lib/Radio/docs/Radio__custom.docs.js +2 -2
- package/lib/Radio/docs/Radio__default.docs.js +2 -2
- package/lib/Radio/props/defaultProps.js +21 -0
- package/lib/Radio/props/propTypes.js +43 -0
- package/lib/Responsive/CustomResponsive.js +11 -21
- package/lib/Responsive/ResizeComponent.js +2 -2
- package/lib/Responsive/Responsive.js +19 -26
- package/lib/Responsive/docs/Responsive__Custom.docs.js +2 -2
- package/lib/Responsive/docs/Responsive__default.docs.js +2 -2
- package/lib/Responsive/props/defaultProps.js +23 -0
- package/lib/Responsive/props/propTypes.js +39 -0
- package/lib/Responsive/sizeObservers.js +3 -3
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +8 -14
- package/lib/ResponsiveDropBox/props/defaultProps.js +11 -0
- package/lib/ResponsiveDropBox/props/propTypes.js +18 -0
- package/lib/Ribbon/Ribbon.js +7 -27
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +2 -2
- package/lib/Ribbon/docs/Ribbon__default.docs.js +2 -2
- package/lib/Ribbon/props/defaultProps.js +15 -0
- package/lib/Ribbon/props/propTypes.js +21 -0
- package/lib/RippleEffect/RippleEffect.js +5 -20
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +2 -2
- package/lib/RippleEffect/props/defaultProps.js +16 -0
- package/lib/RippleEffect/props/propTypes.js +22 -0
- package/lib/Select/GroupSelect.js +7 -111
- package/lib/Select/Select.js +15 -153
- package/lib/Select/SelectWithAvatar.js +7 -82
- package/lib/Select/SelectWithIcon.js +7 -62
- package/lib/Select/docs/GroupSelect__default.docs.js +2 -2
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +2 -2
- package/lib/Select/docs/SelectWithIcon__default.docs.js +2 -2
- package/lib/Select/docs/Select__default.docs.js +3 -3
- package/lib/Select/props/defaultProps.js +113 -0
- package/lib/Select/props/propTypes.js +280 -0
- package/lib/Stencils/Stencils.js +7 -19
- package/lib/Stencils/docs/Stencils__custom.docs.js +2 -2
- package/lib/Stencils/docs/Stencils__default.docs.js +2 -2
- package/lib/Stencils/props/defaultProps.js +13 -0
- package/lib/Stencils/props/propTypes.js +18 -0
- package/lib/Switch/Switch.js +8 -40
- package/lib/Switch/docs/Switch__custom.docs.js +2 -2
- package/lib/Switch/docs/Switch__default.docs.js +2 -2
- package/lib/Switch/props/defaultProps.js +17 -0
- package/lib/Switch/props/propTypes.js +38 -0
- package/lib/Tab/Tab.js +6 -32
- package/lib/Tab/TabContent.js +5 -10
- package/lib/Tab/TabContentWrapper.js +5 -12
- package/lib/Tab/TabWrapper.js +6 -28
- package/lib/Tab/Tabs.js +16 -73
- package/lib/Tab/docs/Tab__default.docs.js +2 -2
- package/lib/Tab/props/defaultProps.js +50 -0
- package/lib/Tab/props/propTypes.js +117 -0
- package/lib/Tag/Tag.js +7 -49
- package/lib/Tag/docs/Tag__custom.docs.js +2 -2
- package/lib/Tag/docs/Tag__default.docs.js +2 -2
- package/lib/Tag/props/defaultProps.js +20 -0
- package/lib/Tag/props/propTypes.js +45 -0
- package/lib/TextBox/TextBox.js +8 -73
- package/lib/TextBox/docs/TextBox__custom.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__default.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__size.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__variant.docs.js +2 -2
- package/lib/TextBox/props/defaultProps.js +26 -0
- package/lib/TextBox/props/propTypes.js +62 -0
- package/lib/TextBoxIcon/TextBoxIcon.js +8 -73
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +2 -2
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +2 -2
- package/lib/TextBoxIcon/props/defaultProps.js +28 -0
- package/lib/TextBoxIcon/props/propTypes.js +60 -0
- package/lib/Textarea/Textarea.js +8 -50
- package/lib/Textarea/docs/Textarea__animated.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__custom.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__default.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__disabled.docs.js +2 -2
- package/lib/Textarea/props/defaultProps.js +23 -0
- package/lib/Textarea/props/propTypes.js +42 -0
- package/lib/Tooltip/Tooltip.js +7 -14
- package/lib/Tooltip/__tests__/Tooltip.spec.js +2 -2
- package/lib/Tooltip/docs/Tooltip__default.docs.js +2 -2
- package/lib/Tooltip/props/defaultProps.js +11 -0
- package/lib/Tooltip/props/propTypes.js +19 -0
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +7 -25
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
- package/lib/VelocityAnimation/VelocityAnimation/props/defaultProps.js +14 -0
- package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +23 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +15 -41
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
- package/lib/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +22 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +30 -0
- package/lib/common/common.module.css +26 -3
- package/lib/deprecated/PortalLayer/PortalLayer.js +7 -18
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +2 -2
- package/lib/deprecated/PortalLayer/props/defaultProps.js +12 -0
- package/lib/deprecated/PortalLayer/props/propTypes.js +22 -0
- package/lib/index.js +70 -20
- package/lib/semantic/Button/Button.js +7 -40
- package/lib/semantic/Button/docs/Button__default.docs.js +2 -2
- package/lib/semantic/Button/props/defaultProps.js +19 -0
- package/lib/semantic/Button/props/propTypes.js +37 -0
- package/lib/ucl/Grid/Grid.js +70 -0
- package/lib/ucl/Grid/componentNames.js +13 -0
- package/lib/ucl/Grid/css/Grid.module.css +217 -0
- package/lib/ucl/Grid/css/cssJSLogic.js +44 -0
- package/lib/{beta/FocusRing/docs/FocusRing__default.docs.js → ucl/Grid/docs/Grid__Area_Based_Detail_Layout.docs.js} +44 -52
- package/lib/ucl/Grid/docs/Grid__Area_Based_List_Layout.docs.js +101 -0
- package/lib/ucl/Grid/docs/Grid__Auto_Flow_Row.docs.js +86 -0
- package/lib/ucl/Grid/docs/Grid__Basic_Detail_Layout.docs.js +93 -0
- package/lib/ucl/Grid/docs/Grid__Box_Alignment.docs.js +91 -0
- package/lib/ucl/Grid/docs/Grid__Line_Based_Detail_Layout.docs.js +93 -0
- package/lib/ucl/Grid/docs/Grid__Line_Based_List_Layout.docs.js +97 -0
- package/lib/ucl/Grid/docs/Grid__default.docs.js +113 -0
- package/lib/ucl/Grid/docs/css/gridDocsAreaBasedDetailLayout.module.css +38 -0
- package/lib/ucl/Grid/docs/css/gridDocsAreaBasedListLayout.module.css +63 -0
- package/lib/ucl/Grid/docs/css/gridDocsAutoFlowRow.module.css +23 -0
- package/lib/ucl/Grid/docs/css/gridDocsBasicDetailLayout.module.css +21 -0
- package/lib/ucl/Grid/docs/css/gridDocsBoxAlignment.module.css +16 -0
- package/lib/ucl/Grid/docs/css/gridDocsDefault.module.css +15 -0
- package/lib/ucl/Grid/docs/css/gridDocsLineBasedDetailLayout.module.css +38 -0
- package/lib/ucl/Grid/docs/css/gridDocsLineBasedListLayout.module.css +47 -0
- package/lib/ucl/Grid/docs/css/gridDocsStyle.module.css +30 -0
- package/lib/ucl/Grid/index.js +31 -0
- package/lib/ucl/Grid/props/ariaPropTypes.js +23 -0
- package/lib/ucl/Grid/props/defaultProps.js +19 -0
- package/lib/ucl/Grid/props/propConstants.js +73 -0
- package/lib/ucl/Grid/props/propTypes.js +46 -0
- package/package.json +8 -4
- package/es/a11y/FocusScope/FocusScope.js +0 -370
- package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -139
- package/es/beta/FocusRing/FocusRing.js +0 -281
- package/es/beta/FocusRing/FocusRing.module.css +0 -152
- package/es/beta/FocusRing/docs/FocusRing__default.docs.js +0 -48
- package/lib/a11y/FocusScope/FocusScope.js +0 -443
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -191
- package/lib/beta/FocusRing/FocusRing.js +0 -338
- package/lib/beta/FocusRing/FocusRing.module.css +0 -152
package/lib/Select/Select.js
CHANGED
|
@@ -9,7 +9,9 @@ exports["default"] = exports.SelectComponent = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _defaultProps = require("./props/defaultProps");
|
|
13
|
+
|
|
14
|
+
var _propTypes = require("./props/propTypes");
|
|
13
15
|
|
|
14
16
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
15
17
|
|
|
@@ -47,7 +49,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
47
49
|
|
|
48
50
|
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; }
|
|
49
51
|
|
|
50
|
-
function _extends() { _extends = Object.assign
|
|
52
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
51
53
|
|
|
52
54
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
53
55
|
|
|
@@ -57,7 +59,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
57
59
|
|
|
58
60
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
59
61
|
|
|
60
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
62
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
61
63
|
|
|
62
64
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
63
65
|
|
|
@@ -67,7 +69,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
67
69
|
|
|
68
70
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
69
71
|
|
|
70
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
72
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
71
73
|
|
|
72
74
|
/* eslint-disable react/no-deprecated */
|
|
73
75
|
|
|
@@ -131,7 +133,6 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
131
133
|
searchStr: '',
|
|
132
134
|
isFetchingOptions: false,
|
|
133
135
|
selectedId: selectedId,
|
|
134
|
-
isFocused: false,
|
|
135
136
|
selectedValueIndex: hoverIndex
|
|
136
137
|
};
|
|
137
138
|
_this.optionsOrder = optionsOrder;
|
|
@@ -139,7 +140,6 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
139
140
|
_this.normalizedFormatOptions = normalizedFormatOptions;
|
|
140
141
|
_this.allSelectedOptions = selectedValueDetails;
|
|
141
142
|
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
142
|
-
_this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));
|
|
143
143
|
_this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_this));
|
|
144
144
|
_this.handleSearch = _this.handleSearch.bind(_assertThisInitialized(_this));
|
|
145
145
|
_this.handleFilterSuggestions = _this.handleFilterSuggestions.bind(_assertThisInitialized(_this));
|
|
@@ -437,7 +437,6 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
437
437
|
var searchStrRegex = (0, _Common.getSearchString)(searchStr);
|
|
438
438
|
var valueStrRegex = (0, _Common.getSearchString)(value);
|
|
439
439
|
var isSearch = searchStrRegex !== valueStrRegex ? true : false;
|
|
440
|
-
console.log(value, "valuevalue");
|
|
441
440
|
this.setState({
|
|
442
441
|
searchStr: value,
|
|
443
442
|
hoverIndex: 0
|
|
@@ -582,13 +581,6 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
582
581
|
value: function suggestionItemRef(el, index, id) {
|
|
583
582
|
this["suggestion_".concat(id)] = el;
|
|
584
583
|
}
|
|
585
|
-
}, {
|
|
586
|
-
key: "onBlur",
|
|
587
|
-
value: function onBlur() {
|
|
588
|
-
this.setState({
|
|
589
|
-
isFocused: false
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
584
|
}, {
|
|
593
585
|
key: "searchInputRef",
|
|
594
586
|
value: function searchInputRef(el) {
|
|
@@ -606,10 +598,6 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
606
598
|
value: function handleSelectFocus() {
|
|
607
599
|
var valueInput = this.valueInput;
|
|
608
600
|
valueInput && valueInput.setSelectionRange(valueInput, 0);
|
|
609
|
-
this.setState({
|
|
610
|
-
isFocused: true
|
|
611
|
-
});
|
|
612
|
-
thi.handleSearch(selected);
|
|
613
601
|
}
|
|
614
602
|
}, {
|
|
615
603
|
key: "handleClearSearch",
|
|
@@ -797,7 +785,6 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
797
785
|
searchStr = _this$state4.searchStr,
|
|
798
786
|
isFetchingOptions = _this$state4.isFetchingOptions,
|
|
799
787
|
selectedId = _this$state4.selectedId,
|
|
800
|
-
isFocused = _this$state4.isFocused,
|
|
801
788
|
options = _this$state4.options;
|
|
802
789
|
var suggestions = this.handleFilterSuggestions();
|
|
803
790
|
var setAriaId = this.getNextAriaId();
|
|
@@ -833,14 +820,11 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
833
820
|
maxLength: maxLength,
|
|
834
821
|
needBorder: needBorder,
|
|
835
822
|
onFocus: this.handleSelectFocus,
|
|
836
|
-
onChange: this.handleSearch,
|
|
837
823
|
onKeyDown: this.handleKeyDown,
|
|
838
|
-
placeHolder: placeHolder
|
|
839
|
-
,
|
|
824
|
+
placeHolder: placeHolder,
|
|
825
|
+
isReadOnly: true,
|
|
840
826
|
size: textBoxSize,
|
|
841
|
-
value:
|
|
842
|
-
onBlur: this.onBlur // defaultValue={selected}
|
|
843
|
-
,
|
|
827
|
+
value: selected,
|
|
844
828
|
variant: textBoxVariant,
|
|
845
829
|
needReadOnlyStyle: isReadOnly ? true : false,
|
|
846
830
|
dataId: "".concat(dataId, "_textBox"),
|
|
@@ -850,7 +834,6 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
850
834
|
},
|
|
851
835
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
852
836
|
onKeyPress: this.handleValueInputChange,
|
|
853
|
-
onClear: this.handleClearSearch,
|
|
854
837
|
borderColor: borderColor,
|
|
855
838
|
htmlId: htmlId,
|
|
856
839
|
isFocus: isPopupReady,
|
|
@@ -888,16 +871,12 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
888
871
|
maxLength: maxLength,
|
|
889
872
|
needBorder: needBorder,
|
|
890
873
|
onFocus: this.handleSelectFocus,
|
|
891
|
-
onChange: this.handleSearch,
|
|
892
874
|
onKeyDown: getChildren && this.handleKeyDown,
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
,
|
|
875
|
+
placeHolder: placeHolder,
|
|
876
|
+
isReadOnly: true,
|
|
896
877
|
needEffect: isReadOnly || isDisabled ? false : true,
|
|
897
878
|
size: textBoxSize,
|
|
898
|
-
value:
|
|
899
|
-
onBlur: this.onBlur // defaultValue={selected}
|
|
900
|
-
,
|
|
879
|
+
value: selected,
|
|
901
880
|
variant: textBoxVariant,
|
|
902
881
|
needReadOnlyStyle: isReadOnly ? true : false,
|
|
903
882
|
dataId: "".concat(dataId, "_textBox"),
|
|
@@ -931,7 +910,7 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
931
910
|
flexible: true
|
|
932
911
|
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
933
912
|
onScroll: _this7.handleScroll
|
|
934
|
-
},
|
|
913
|
+
}, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
935
914
|
className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
|
|
936
915
|
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
937
916
|
a11y: {
|
|
@@ -995,125 +974,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
995
974
|
}(_react.Component);
|
|
996
975
|
|
|
997
976
|
exports.SelectComponent = SelectComponent;
|
|
998
|
-
SelectComponent.propTypes =
|
|
999
|
-
|
|
1000
|
-
autoComplete: _propTypes["default"].bool,
|
|
1001
|
-
autoSelectDebouneTime: _propTypes["default"].number,
|
|
1002
|
-
autoSelectOnType: _propTypes["default"].bool,
|
|
1003
|
-
borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
|
|
1004
|
-
boxSize: _propTypes["default"].string,
|
|
1005
|
-
className: _propTypes["default"].string,
|
|
1006
|
-
closePopupOnly: _propTypes["default"].func,
|
|
1007
|
-
dataId: _propTypes["default"].string,
|
|
1008
|
-
defaultDropBoxPosition: _propTypes["default"].string,
|
|
1009
|
-
dropBoxSize: _propTypes["default"].oneOf(['small', 'medium', 'large']),
|
|
1010
|
-
emptyMessage: _propTypes["default"].string,
|
|
1011
|
-
excludeOptions: _propTypes["default"].array,
|
|
1012
|
-
getChildren: _propTypes["default"].func,
|
|
1013
|
-
getContainerRef: _propTypes["default"].func,
|
|
1014
|
-
getCustomEmptyState: _propTypes["default"].func,
|
|
1015
|
-
getFooter: _propTypes["default"].func,
|
|
1016
|
-
getNextOptions: _propTypes["default"].func,
|
|
1017
|
-
getPopupHandlers: _propTypes["default"].func,
|
|
1018
|
-
getRef: _propTypes["default"].func,
|
|
1019
|
-
getTargetRef: _propTypes["default"].func,
|
|
1020
|
-
i18nKeys: _propTypes["default"].shape({
|
|
1021
|
-
loadingText: _propTypes["default"].string,
|
|
1022
|
-
emptyText: _propTypes["default"].string,
|
|
1023
|
-
noMoreText: _propTypes["default"].string,
|
|
1024
|
-
searchEmptyText: _propTypes["default"].string
|
|
1025
|
-
}),
|
|
1026
|
-
isDefaultSelectValue: _propTypes["default"].bool,
|
|
1027
|
-
isDisabled: _propTypes["default"].bool,
|
|
1028
|
-
isNextOptions: _propTypes["default"].bool,
|
|
1029
|
-
isParentBased: _propTypes["default"].bool,
|
|
1030
|
-
isPopupOpen: _propTypes["default"].bool,
|
|
1031
|
-
isPopupOpenOnEnter: _propTypes["default"].bool,
|
|
1032
|
-
isPopupReady: _propTypes["default"].bool,
|
|
1033
|
-
isReadOnly: _propTypes["default"].bool,
|
|
1034
|
-
isSearchClearOnClose: _propTypes["default"].bool,
|
|
1035
|
-
listItemSize: _propTypes["default"].oneOf(['small', 'medium', 'large']),
|
|
1036
|
-
maxLength: _propTypes["default"].string,
|
|
1037
|
-
needBorder: _propTypes["default"].bool,
|
|
1038
|
-
needCloseOnSelect: _propTypes["default"].bool,
|
|
1039
|
-
needListBorder: _propTypes["default"].bool,
|
|
1040
|
-
needLocalSearch: _propTypes["default"].bool,
|
|
1041
|
-
needResponsive: _propTypes["default"].bool,
|
|
1042
|
-
needSearch: _propTypes["default"].bool,
|
|
1043
|
-
needSelectDownIcon: _propTypes["default"].bool,
|
|
1044
|
-
needTick: _propTypes["default"].bool,
|
|
1045
|
-
onAddNewOption: _propTypes["default"].func,
|
|
1046
|
-
onChange: _propTypes["default"].func.isRequired,
|
|
1047
|
-
onDropBoxClose: _propTypes["default"].func,
|
|
1048
|
-
onDropBoxOpen: _propTypes["default"].func,
|
|
1049
|
-
onKeyDown: _propTypes["default"].func,
|
|
1050
|
-
onSearch: _propTypes["default"].func,
|
|
1051
|
-
options: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])), _propTypes["default"].arrayOf(_propTypes["default"].shape({
|
|
1052
|
-
id: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
1053
|
-
text: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
1054
|
-
}))]).isRequired,
|
|
1055
|
-
placeHolder: _propTypes["default"].string,
|
|
1056
|
-
position: _propTypes["default"].string,
|
|
1057
|
-
removeClose: _propTypes["default"].func,
|
|
1058
|
-
searchBoxPlaceHolder: _propTypes["default"].string,
|
|
1059
|
-
searchBoxSize: _propTypes["default"].string,
|
|
1060
|
-
searchDebounceTime: _propTypes["default"].number,
|
|
1061
|
-
searchEmptyMessage: _propTypes["default"].string,
|
|
1062
|
-
selectedValue: _propTypes["default"].oneOfType([_propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]), _propTypes["default"].shape({
|
|
1063
|
-
id: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
1064
|
-
text: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
1065
|
-
})]),
|
|
1066
|
-
size: _propTypes["default"].oneOf(['small', 'medium']),
|
|
1067
|
-
textBoxSize: _propTypes["default"].string,
|
|
1068
|
-
textBoxVariant: _propTypes["default"].string,
|
|
1069
|
-
textField: _propTypes["default"].string,
|
|
1070
|
-
title: _propTypes["default"].string,
|
|
1071
|
-
togglePopup: _propTypes["default"].func,
|
|
1072
|
-
valueField: _propTypes["default"].string,
|
|
1073
|
-
htmlId: _propTypes["default"].string,
|
|
1074
|
-
children: _propTypes["default"].node,
|
|
1075
|
-
onFocus: _propTypes["default"].func,
|
|
1076
|
-
iconOnHover: _propTypes["default"].bool,
|
|
1077
|
-
customProps: _propTypes["default"].shape({
|
|
1078
|
-
TextBoxProps: _propTypes["default"].object,
|
|
1079
|
-
DropdownSearchTextBoxProps: _propTypes["default"].object,
|
|
1080
|
-
listItemProps: _propTypes["default"].object,
|
|
1081
|
-
SuggestionsProps: _propTypes["default"].object
|
|
1082
|
-
})
|
|
1083
|
-
};
|
|
1084
|
-
SelectComponent.defaultProps = {
|
|
1085
|
-
animationStyle: 'bounce',
|
|
1086
|
-
autoComplete: (0, _Config.getLibraryConfig)('autoComplete'),
|
|
1087
|
-
autoSelectOnType: true,
|
|
1088
|
-
dataId: 'selectComponent',
|
|
1089
|
-
dropBoxSize: 'small',
|
|
1090
|
-
isDefaultSelectValue: true,
|
|
1091
|
-
isDisabled: false,
|
|
1092
|
-
isPopupOpenOnEnter: false,
|
|
1093
|
-
isReadOnly: false,
|
|
1094
|
-
needBorder: true,
|
|
1095
|
-
needLocalSearch: true,
|
|
1096
|
-
needSearch: false,
|
|
1097
|
-
needSelectDownIcon: true,
|
|
1098
|
-
placeHolder: '',
|
|
1099
|
-
searchBoxPlaceHolder: 'Search',
|
|
1100
|
-
searchBoxSize: 'small',
|
|
1101
|
-
size: 'medium',
|
|
1102
|
-
textBoxSize: 'medium',
|
|
1103
|
-
textBoxVariant: 'default',
|
|
1104
|
-
textField: 'text',
|
|
1105
|
-
valueField: 'id',
|
|
1106
|
-
borderColor: 'default',
|
|
1107
|
-
needTick: true,
|
|
1108
|
-
boxSize: 'default',
|
|
1109
|
-
needListBorder: false,
|
|
1110
|
-
needCloseOnSelect: true,
|
|
1111
|
-
isParentBased: true,
|
|
1112
|
-
isSearchClearOnClose: true,
|
|
1113
|
-
i18nKeys: {},
|
|
1114
|
-
iconOnHover: false,
|
|
1115
|
-
customProps: {}
|
|
1116
|
-
};
|
|
977
|
+
SelectComponent.propTypes = _propTypes.Select_propTypes;
|
|
978
|
+
SelectComponent.defaultProps = _defaultProps.Select_defaultProps;
|
|
1117
979
|
SelectComponent.displayName = 'Select';
|
|
1118
980
|
var Select = (0, _Popup["default"])(SelectComponent);
|
|
1119
981
|
Select.defaultProps = SelectComponent.defaultProps;
|
|
@@ -9,7 +9,9 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _defaultProps = require("./props/defaultProps");
|
|
13
|
+
|
|
14
|
+
var _propTypes = require("./props/propTypes");
|
|
13
15
|
|
|
14
16
|
var _Select = require("./Select");
|
|
15
17
|
|
|
@@ -55,7 +57,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
55
57
|
|
|
56
58
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
57
59
|
|
|
58
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
60
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
59
61
|
|
|
60
62
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
61
63
|
|
|
@@ -65,7 +67,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
65
67
|
|
|
66
68
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
67
69
|
|
|
68
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
70
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
69
71
|
|
|
70
72
|
var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
71
73
|
_inherits(SelectWithAvatarComponent, _SelectComponent);
|
|
@@ -361,85 +363,8 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
361
363
|
return SelectWithAvatarComponent;
|
|
362
364
|
}(_Select.SelectComponent);
|
|
363
365
|
|
|
364
|
-
SelectWithAvatarComponent.propTypes =
|
|
365
|
-
|
|
366
|
-
avatarPalette: _propTypes["default"].string,
|
|
367
|
-
borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
|
|
368
|
-
className: _propTypes["default"].string,
|
|
369
|
-
closePopupOnly: _propTypes["default"].func,
|
|
370
|
-
dataId: _propTypes["default"].string,
|
|
371
|
-
defaultDropBoxPosition: _propTypes["default"].oneOf(['bottom', 'top', 'left', 'right']),
|
|
372
|
-
dropBoxSize: _propTypes["default"].oneOf(['small', 'medium', 'large']),
|
|
373
|
-
emptyMessage: _propTypes["default"].string,
|
|
374
|
-
excludeOptions: _propTypes["default"].array,
|
|
375
|
-
getContainerRef: _propTypes["default"].func,
|
|
376
|
-
getNextOptions: _propTypes["default"].func,
|
|
377
|
-
getRef: _propTypes["default"].func,
|
|
378
|
-
groupName: _propTypes["default"].string,
|
|
379
|
-
i18nKeys: _propTypes["default"].shape({
|
|
380
|
-
loadingText: _propTypes["default"].string,
|
|
381
|
-
emptyText: _propTypes["default"].string,
|
|
382
|
-
noMoreText: _propTypes["default"].string,
|
|
383
|
-
searchEmptyText: _propTypes["default"].string
|
|
384
|
-
}),
|
|
385
|
-
isDisabled: _propTypes["default"].bool,
|
|
386
|
-
isNextOptions: _propTypes["default"].bool,
|
|
387
|
-
isPopupOpen: _propTypes["default"].bool,
|
|
388
|
-
isPopupReady: _propTypes["default"].bool,
|
|
389
|
-
isReadOnly: _propTypes["default"].bool,
|
|
390
|
-
isSearchClearOnClose: _propTypes["default"].bool,
|
|
391
|
-
maxLength: _propTypes["default"].string,
|
|
392
|
-
needBorder: _propTypes["default"].bool,
|
|
393
|
-
needLocalSearch: _propTypes["default"].bool,
|
|
394
|
-
needResponsive: _propTypes["default"].bool,
|
|
395
|
-
onChange: _propTypes["default"].func.isRequired,
|
|
396
|
-
onDropBoxClose: _propTypes["default"].func,
|
|
397
|
-
onDropBoxOpen: _propTypes["default"].func,
|
|
398
|
-
onRemove: _propTypes["default"].func,
|
|
399
|
-
onSearch: _propTypes["default"].func,
|
|
400
|
-
options: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].string), _propTypes["default"].arrayOf(_propTypes["default"].shape({
|
|
401
|
-
id: _propTypes["default"].string,
|
|
402
|
-
text: _propTypes["default"].string,
|
|
403
|
-
photoURL: _propTypes["default"].string
|
|
404
|
-
}))]).isRequired,
|
|
405
|
-
position: _propTypes["default"].string,
|
|
406
|
-
removeClose: _propTypes["default"].func,
|
|
407
|
-
searchDebounceTime: _propTypes["default"].number,
|
|
408
|
-
searchEmptyMessage: _propTypes["default"].string,
|
|
409
|
-
selectedValue: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
410
|
-
size: _propTypes["default"].oneOf(['small', 'medium']),
|
|
411
|
-
tagSize: _propTypes["default"].string,
|
|
412
|
-
textBoxSize: _propTypes["default"].string,
|
|
413
|
-
textBoxVariant: _propTypes["default"].string,
|
|
414
|
-
textField: _propTypes["default"].string,
|
|
415
|
-
title: _propTypes["default"].string,
|
|
416
|
-
togglePopup: _propTypes["default"].func,
|
|
417
|
-
valueField: _propTypes["default"].string,
|
|
418
|
-
htmlId: _propTypes["default"].string,
|
|
419
|
-
needEffect: _propTypes["default"].bool
|
|
420
|
-
};
|
|
421
|
-
SelectWithAvatarComponent.defaultProps = {
|
|
422
|
-
animationStyle: 'bounce',
|
|
423
|
-
defaultDropBoxPosition: 'bottom',
|
|
424
|
-
dropBoxSize: 'small',
|
|
425
|
-
isDefaultSelectValue: false,
|
|
426
|
-
isDisabled: false,
|
|
427
|
-
isReadOnly: false,
|
|
428
|
-
needBorder: true,
|
|
429
|
-
needLocalSearch: true,
|
|
430
|
-
needSearch: true,
|
|
431
|
-
placeHolder: '',
|
|
432
|
-
size: 'medium',
|
|
433
|
-
textBoxSize: 'medium',
|
|
434
|
-
textBoxVariant: 'default',
|
|
435
|
-
textField: 'text',
|
|
436
|
-
valueField: 'id',
|
|
437
|
-
dataId: 'selectWithAvatar',
|
|
438
|
-
borderColor: 'default',
|
|
439
|
-
isSearchClearOnClose: true,
|
|
440
|
-
i18nKeys: {},
|
|
441
|
-
needEffect: true
|
|
442
|
-
};
|
|
366
|
+
SelectWithAvatarComponent.propTypes = _propTypes.SelectWithAvatar_propTypes;
|
|
367
|
+
SelectWithAvatarComponent.defaultProps = _defaultProps.SelectWithAvatar_defaultProps;
|
|
443
368
|
SelectWithAvatarComponent.displayName = 'SelectWithAvatar';
|
|
444
369
|
var SelectWithAvatar = (0, _Popup["default"])(SelectWithAvatarComponent);
|
|
445
370
|
SelectWithAvatar.defaultProps = SelectWithAvatarComponent.defaultProps;
|
|
@@ -9,7 +9,9 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _defaultProps = require("./props/defaultProps");
|
|
13
|
+
|
|
14
|
+
var _propTypes = require("./props/propTypes");
|
|
13
15
|
|
|
14
16
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
15
17
|
|
|
@@ -35,16 +37,12 @@ var _Common = require("../utils/Common.js");
|
|
|
35
37
|
|
|
36
38
|
var _SelectModule = _interopRequireDefault(require("./Select.module.css"));
|
|
37
39
|
|
|
38
|
-
var _SelectWithIcon$defau;
|
|
39
|
-
|
|
40
40
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
41
41
|
|
|
42
42
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
43
43
|
|
|
44
44
|
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; }
|
|
45
45
|
|
|
46
|
-
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; }
|
|
47
|
-
|
|
48
46
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
49
47
|
|
|
50
48
|
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); } }
|
|
@@ -53,7 +51,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
53
51
|
|
|
54
52
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
55
53
|
|
|
56
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
54
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
57
55
|
|
|
58
56
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
59
57
|
|
|
@@ -63,7 +61,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
63
61
|
|
|
64
62
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
65
63
|
|
|
66
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
64
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
67
65
|
|
|
68
66
|
var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
69
67
|
_inherits(SelectWithIcon, _Component);
|
|
@@ -511,61 +509,8 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
|
|
|
511
509
|
return SelectWithIcon;
|
|
512
510
|
}(_react.Component);
|
|
513
511
|
|
|
514
|
-
SelectWithIcon.propTypes =
|
|
515
|
-
|
|
516
|
-
borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
|
|
517
|
-
boxPosition: _propTypes["default"].oneOf(['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'rightTop', 'rightBottom', 'rightCenter', 'leftTop', 'leftBottom', 'leftCenter']),
|
|
518
|
-
dataId: _propTypes["default"].string,
|
|
519
|
-
dropBoxSize: _propTypes["default"].oneOf(['small', 'medium', 'large']),
|
|
520
|
-
getContainerRef: _propTypes["default"].func,
|
|
521
|
-
getNextOptions: _propTypes["default"].func,
|
|
522
|
-
getTargetRef: _propTypes["default"].func,
|
|
523
|
-
i18nKeys: _propTypes["default"].shape({
|
|
524
|
-
loadingText: _propTypes["default"].string,
|
|
525
|
-
emptyText: _propTypes["default"].string,
|
|
526
|
-
noMoreText: _propTypes["default"].string,
|
|
527
|
-
searchEmptyText: _propTypes["default"].string
|
|
528
|
-
}),
|
|
529
|
-
iconClass: _propTypes["default"].string,
|
|
530
|
-
iconName: _propTypes["default"].string,
|
|
531
|
-
iconSize: _propTypes["default"].string,
|
|
532
|
-
idKey: _propTypes["default"].string,
|
|
533
|
-
isDisabled: _propTypes["default"].bool,
|
|
534
|
-
isNextOptions: _propTypes["default"].bool,
|
|
535
|
-
isPopupOpen: _propTypes["default"].bool,
|
|
536
|
-
isPopupReady: _propTypes["default"].bool,
|
|
537
|
-
isReadOnly: _propTypes["default"].bool,
|
|
538
|
-
maxLength: _propTypes["default"].string,
|
|
539
|
-
needIcon: _propTypes["default"].bool,
|
|
540
|
-
needListBorder: _propTypes["default"].bool,
|
|
541
|
-
needSearch: _propTypes["default"].bool,
|
|
542
|
-
needTick: _propTypes["default"].bool,
|
|
543
|
-
onChange: _propTypes["default"].func,
|
|
544
|
-
options: _propTypes["default"].array,
|
|
545
|
-
placeHolder: _propTypes["default"].string,
|
|
546
|
-
position: _propTypes["default"].string,
|
|
547
|
-
removeClose: _propTypes["default"].func,
|
|
548
|
-
searchBoxPlaceHolder: _propTypes["default"].string,
|
|
549
|
-
searchEmptyMessage: _propTypes["default"].string,
|
|
550
|
-
selectedId: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
551
|
-
selectedValue: _propTypes["default"].string,
|
|
552
|
-
size: _propTypes["default"].oneOf(['small', 'medium']),
|
|
553
|
-
textBoxSize: _propTypes["default"].oneOf(['small', 'medium', 'xmedium']),
|
|
554
|
-
textBoxVariant: _propTypes["default"].oneOf(['primary', 'secondary', 'default']),
|
|
555
|
-
togglePopup: _propTypes["default"].func,
|
|
556
|
-
valueKey: _propTypes["default"].string,
|
|
557
|
-
htmlId: _propTypes["default"].string
|
|
558
|
-
};
|
|
559
|
-
SelectWithIcon.defaultProps = (_SelectWithIcon$defau = {
|
|
560
|
-
isReadOnly: false,
|
|
561
|
-
isDisabled: false,
|
|
562
|
-
animationStyle: 'bounce',
|
|
563
|
-
valueKey: 'value',
|
|
564
|
-
idKey: 'id',
|
|
565
|
-
needListBorder: false,
|
|
566
|
-
needSearch: false,
|
|
567
|
-
boxSize: 'default'
|
|
568
|
-
}, _defineProperty(_SelectWithIcon$defau, "needListBorder", false), _defineProperty(_SelectWithIcon$defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon$defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon$defau, "needTick", true), _defineProperty(_SelectWithIcon$defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon$defau, "size", 'medium'), _defineProperty(_SelectWithIcon$defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon$defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon$defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon$defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon$defau, "needIcon", true), _defineProperty(_SelectWithIcon$defau, "iconSize", '14'), _defineProperty(_SelectWithIcon$defau, "i18nKeys", {}), _SelectWithIcon$defau);
|
|
512
|
+
SelectWithIcon.propTypes = _propTypes.SelectWithIcon_propTypes;
|
|
513
|
+
SelectWithIcon.defaultProps = _defaultProps.SelectWithIcon_defaultProps;
|
|
569
514
|
|
|
570
515
|
if (false) {
|
|
571
516
|
SelectWithIcon.docs = {
|
|
@@ -25,7 +25,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
25
25
|
|
|
26
26
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
27
|
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
35
35
|
|
|
36
36
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
37
|
|
|
38
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
39
|
|
|
40
40
|
var groupedOptions = [{
|
|
41
41
|
id: 'tickets',
|
|
@@ -27,7 +27,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
27
27
|
|
|
28
28
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
29
|
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
|
|
32
32
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
37
37
|
|
|
38
38
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
39
|
|
|
40
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
41
|
|
|
42
42
|
var option = [{
|
|
43
43
|
text: 'Option 1',
|
|
@@ -25,7 +25,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
25
25
|
|
|
26
26
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
27
|
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
35
35
|
|
|
36
36
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
37
|
|
|
38
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
39
|
|
|
40
40
|
var SelectWithIcon__default = /*#__PURE__*/function (_Component) {
|
|
41
41
|
_inherits(SelectWithIcon__default, _Component);
|
|
@@ -27,7 +27,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
27
27
|
|
|
28
28
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
29
|
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
|
|
32
32
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
37
37
|
|
|
38
38
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
39
|
|
|
40
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
41
|
|
|
42
42
|
var option = [{
|
|
43
43
|
text: 'Apple',
|
|
@@ -154,7 +154,7 @@ var Select__default = /*#__PURE__*/function (_React$Component) {
|
|
|
154
154
|
selectedValue: value,
|
|
155
155
|
needSearch: true,
|
|
156
156
|
emptyMessage: "No matches found",
|
|
157
|
-
placeHolder: "",
|
|
157
|
+
placeHolder: "PlaceHolder",
|
|
158
158
|
searchBoxPlaceHolder: "Search",
|
|
159
159
|
isDefaultSelectValue: false,
|
|
160
160
|
i18nKeys: {
|