@zohodesk/components 1.0.0-temp-42 → 1.0.0-temp-43
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 +3 -0
- package/es/Animation/docs/Animation__default.docs.js +2 -2
- package/es/Animation/docs/Animation__fadeIn.docs.js +2 -2
- package/es/Animation/docs/Animation__scaleIn.docs.js +2 -2
- package/es/Animation/docs/Animation__skewIn.docs.js +2 -2
- package/es/Animation/docs/Animation__slideDown.docs.js +2 -2
- package/es/Animation/docs/Animation__slideLeft.docs.js +2 -2
- package/es/Animation/docs/Animation__zoomIn.docs.js +2 -2
- package/es/Appearance/dark/mode/darkMode.module.css +69 -69
- package/es/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +2 -2
- package/es/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/red/redDarkComponentTheme.module.css +2 -2
- package/es/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +1 -1
- package/es/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +2 -2
- package/es/Appearance/default/mode/defaultMode.module.css +158 -158
- package/es/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +28 -28
- package/es/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -5
- package/es/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +4 -4
- package/es/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +4 -4
- package/es/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/red/redDefaultComponentTheme.module.css +4 -4
- package/es/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
- package/es/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +4 -4
- package/es/Avatar/Avatar.js +1 -2
- package/es/Avatar/__tests__/Avatar.spec.js +1 -0
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -0
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +1 -1
- package/es/Button/__tests__/Button.spec.js +1 -0
- package/es/Buttongroup/__test__/Buttongroup.spec.js +1 -0
- package/es/Card/Card.module.css +3 -3
- package/es/Card/docs/Card__Default.docs.js +4 -4
- package/es/Card/docs/Card__Scroll.docs.js +4 -4
- package/es/DateTime/DateTime.js +3 -6
- package/es/DateTime/DateWidget.js +2 -5
- package/es/DateTime/DateWidget.module.css +0 -4
- package/es/DateTime/YearView.js +5 -6
- package/es/DateTime/common.js +2 -9
- package/es/DateTime/dateFormatUtils/dateFormat.js +57 -76
- package/es/DateTime/dateFormatUtils/index.js +7 -12
- package/es/DateTime/dateFormatUtils/timeChange.js +3 -4
- package/es/DateTime/dateFormatUtils/yearChange.js +3 -4
- package/es/DateTime/validator.js +1 -0
- package/es/Label/__tests__/Label.spec.js +2 -0
- package/es/Layout/docs/Layout__Hidden.docs.js +1 -1
- package/es/Layout/docs/Layout__four_Column.docs.js +1 -1
- package/es/Layout/docs/Layout__three_Column.docs.js +1 -1
- package/es/Layout/utils.js +1 -2
- package/es/ListItem/ListItem.js +2 -0
- package/es/ListItem/ListItemWithIcon.js +2 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +10 -15
- package/es/MultiSelect/AdvancedMultiSelect.js +7 -6
- package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/es/MultiSelect/MultiSelect.js +10 -15
- package/es/MultiSelect/MultiSelect.module.css +8 -13
- package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
- package/es/MultiSelect/SelectedOptions.js +3 -2
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +1 -2
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Popup/Popup.js +8 -14
- package/es/Popup/viewPort.js +9 -14
- package/es/Provider/IdProvider.js +4 -5
- package/es/Provider/LibraryContext.js +5 -6
- package/es/Provider/NumberGenerator/NumberGenerator.js +15 -17
- package/es/Provider/ZindexProvider.js +4 -5
- package/es/Radio/Radio.js +1 -2
- package/es/Radio/Radio.module.css +2 -2
- package/es/Responsive/CustomResponsive.js +8 -11
- package/es/Responsive/ResizeComponent.js +1 -3
- package/es/Responsive/Responsive.js +9 -12
- package/es/Responsive/docs/Responsive__Custom.docs.js +44 -49
- package/es/Responsive/docs/Responsive__default.docs.js +74 -77
- package/es/Responsive/sizeObservers.js +1 -5
- package/es/Ribbon/__tests__/Ribbon.spec.js +1 -0
- package/es/RippleEffect/RippleEffect.js +7 -4
- package/es/RippleEffect/RippleEffect.module.css +3 -0
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +8 -8
- package/es/Select/GroupSelect.js +1 -2
- package/es/Select/Select.js +1 -2
- package/es/Select/Select.module.css +1 -1
- package/es/Select/SelectWithAvatar.js +7 -4
- package/es/Select/docs/Select__default.docs.js +1 -2
- package/es/Stencils/__tests__/Stencils.spec.js +1 -0
- package/es/Tab/Tab.js +26 -27
- package/es/Tab/TabContent.js +14 -17
- package/es/Tab/TabContentWrapper.js +14 -17
- package/es/Tab/TabWrapper.js +14 -15
- package/es/Tab/Tabs.js +1 -2
- package/es/Tab/docs/Tab__default.docs.js +1 -0
- package/es/Tag/Tag.js +10 -4
- package/es/Tag/Tag.module.css +14 -11
- package/es/Tag/docs/Tag__default.docs.js +70 -0
- package/es/TextBox/__tests__/TextBox.spec.js +1 -0
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +5 -2
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -0
- package/es/Textarea/__tests__/Textarea.spec.js +1 -0
- package/es/Tooltip/Tooltip.js +1 -0
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
- package/es/a11y/FocusScope/FocusScope.js +4 -10
- package/es/beta/FocusRing/FocusRing.js +1 -4
- package/es/common/docStyle.module.css +9 -9
- package/es/utils/Common.js +11 -31
- package/es/utils/datetime/common.js +3 -6
- package/es/utils/dropDownUtils.js +5 -6
- package/es/utils/getInitial.js +1 -3
- 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 +5 -5
- package/lib/Animation/docs/Animation__fadeIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__scaleIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__skewIn.docs.js +5 -5
- package/lib/Animation/docs/Animation__slideDown.docs.js +5 -5
- package/lib/Animation/docs/Animation__slideLeft.docs.js +5 -5
- package/lib/Animation/docs/Animation__zoomIn.docs.js +5 -5
- 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 +69 -69
- package/lib/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +2 -2
- package/lib/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/green/greenDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/green/greenDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/orange/orangeDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/red/redDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/red/redDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +1 -1
- package/lib/Appearance/dark/themes/yellow/yellowDarkComponentTheme.module.css +2 -2
- package/lib/Appearance/default/mode/defaultMode.module.css +158 -158
- package/lib/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +28 -28
- package/lib/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +5 -5
- package/lib/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/green/greenDefaultComponentTheme.module.css +4 -4
- package/lib/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/orange/orangeDefaultComponentTheme.module.css +4 -4
- package/lib/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/red/redDefaultComponentTheme.module.css +4 -4
- package/lib/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
- package/lib/Appearance/default/themes/yellow/yellowDefaultComponentTheme.module.css +4 -4
- 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 +4 -4
- 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/Card.module.css +3 -3
- 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 +7 -7
- package/lib/Card/docs/Card__Scroll.docs.js +7 -7
- 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 +0 -4
- 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 +4 -4
- package/lib/Layout/docs/Layout__default.docs.js +3 -3
- package/lib/Layout/docs/Layout__four_Column.docs.js +4 -4
- package/lib/Layout/docs/Layout__three_Column.docs.js +4 -4
- 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 +10 -7
- package/lib/MultiSelect/AdvancedMultiSelect.js +9 -6
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/lib/MultiSelect/EmptyState.js +3 -3
- package/lib/MultiSelect/MultiSelect.js +10 -7
- package/lib/MultiSelect/MultiSelect.module.css +8 -13
- package/lib/MultiSelect/MultiSelectHeader.js +3 -3
- package/lib/MultiSelect/MultiSelectWithAvatar.js +9 -6
- package/lib/MultiSelect/SelectedOptions.js +6 -5
- 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/PopOver.module.css +1 -1
- 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 +4 -6
- 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 +5 -6
- 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 +5 -6
- package/lib/Responsive/utils/index.js +2 -3
- 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 +7 -4
- package/lib/RippleEffect/RippleEffect.module.css +3 -0
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +11 -11
- package/lib/Select/GroupSelect.js +3 -3
- package/lib/Select/Select.js +3 -3
- package/lib/Select/Select.module.css +1 -1
- package/lib/Select/SelectWithAvatar.js +10 -7
- 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 +13 -7
- package/lib/Tag/Tag.module.css +14 -11
- package/lib/Tag/docs/Tag__custom.docs.js +3 -3
- package/lib/Tag/docs/Tag__default.docs.js +73 -3
- 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 +5 -2
- 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 +5 -5
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +5 -5
- 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/common/docStyle.module.css +9 -9
- package/lib/deprecated/PortalLayer/PortalLayer.js +3 -3
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +3 -3
- package/lib/index.js +308 -308
- package/lib/semantic/Button/Button.js +3 -3
- package/lib/semantic/Button/docs/Button__default.docs.js +3 -3
- package/lib/utils/Common.js +16 -20
- 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 +5 -5
- package/preprocess/componentAppearanceColors.js +1 -1
- package/preprocess/json/componentAppearanceVariableJson.js +230 -230
- package/preprocess/json/componentThemeVariableJson.js +33 -33
- package/preprocess/json/ctaThemeVariableJson.js +38 -38
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "core-js/modules/es.string.replace";
|
|
2
|
+
|
|
1
3
|
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); }
|
|
2
4
|
|
|
3
5
|
/**** Libraries ****/
|
|
@@ -254,9 +254,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
254
254
|
}) : this.togglePopup(e);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
handleClickSelectedOption() {
|
|
258
|
-
let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
259
|
-
let e = arguments.length > 1 ? arguments[1] : undefined;
|
|
257
|
+
handleClickSelectedOption(id = '', e) {
|
|
260
258
|
let {
|
|
261
259
|
selectedOptionIds
|
|
262
260
|
} = this.state;
|
|
@@ -527,11 +525,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
527
525
|
});
|
|
528
526
|
}
|
|
529
527
|
|
|
530
|
-
handleFetchOptions() {
|
|
531
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
532
|
-
args[_key] = arguments[_key];
|
|
533
|
-
}
|
|
534
|
-
|
|
528
|
+
handleFetchOptions(...args) {
|
|
535
529
|
let [APICall, searchStr] = args;
|
|
536
530
|
let {
|
|
537
531
|
isFetchingOptions
|
|
@@ -644,9 +638,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
644
638
|
this.handleChange([]);
|
|
645
639
|
}
|
|
646
640
|
|
|
647
|
-
handleChange() {
|
|
648
|
-
let selectedOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
649
|
-
let e = arguments.length > 1 ? arguments[1] : undefined;
|
|
641
|
+
handleChange(selectedOptions = [], e) {
|
|
650
642
|
let {
|
|
651
643
|
onChange,
|
|
652
644
|
needToCloseOnSelect,
|
|
@@ -855,7 +847,8 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
855
847
|
i18nKeys,
|
|
856
848
|
a11y,
|
|
857
849
|
isSearchClearOnSelect,
|
|
858
|
-
palette
|
|
850
|
+
palette,
|
|
851
|
+
needEffect
|
|
859
852
|
} = this.props;
|
|
860
853
|
let {
|
|
861
854
|
clearText = 'Clear all'
|
|
@@ -884,7 +877,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
884
877
|
let setAriaId = this.getNextAriaId();
|
|
885
878
|
let ariaErrorId = this.getNextAriaId();
|
|
886
879
|
return /*#__PURE__*/React.createElement("div", {
|
|
887
|
-
className: `${style.wrapper} ${isDisabled ? style.disabled : ''}`,
|
|
880
|
+
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
888
881
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
889
882
|
"data-title": isDisabled ? title : '',
|
|
890
883
|
onClick: this.handleInputFocus
|
|
@@ -1060,7 +1053,8 @@ AdvancedGroupMultiSelect.defaultProps = {
|
|
|
1060
1053
|
isPadding: false,
|
|
1061
1054
|
i18nKeys: {},
|
|
1062
1055
|
a11y: {},
|
|
1063
|
-
isSearchClearOnSelect: true
|
|
1056
|
+
isSearchClearOnSelect: true,
|
|
1057
|
+
needEffect: PropTypes.bool
|
|
1064
1058
|
};
|
|
1065
1059
|
AdvancedGroupMultiSelect.propTypes = {
|
|
1066
1060
|
animationStyle: PropTypes.string,
|
|
@@ -1110,7 +1104,8 @@ AdvancedGroupMultiSelect.propTypes = {
|
|
|
1110
1104
|
variant: PropTypes.string,
|
|
1111
1105
|
htmlId: PropTypes.string,
|
|
1112
1106
|
isSearchClearOnSelect: PropTypes.bool,
|
|
1113
|
-
palette: PropTypes.oneOf(['default', 'dark'])
|
|
1107
|
+
palette: PropTypes.oneOf(['default', 'dark']),
|
|
1108
|
+
needEffect: true
|
|
1114
1109
|
};
|
|
1115
1110
|
|
|
1116
1111
|
if (false) {
|
|
@@ -76,9 +76,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
76
76
|
return suggestions;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
handleChange() {
|
|
80
|
-
let selectedOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
81
|
-
let e = arguments.length > 1 ? arguments[1] : undefined;
|
|
79
|
+
handleChange(selectedOptions = [], e) {
|
|
82
80
|
const {
|
|
83
81
|
optionsNormalize,
|
|
84
82
|
searchStr
|
|
@@ -349,7 +347,8 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
349
347
|
borderColor,
|
|
350
348
|
isBoxPaddingNeed,
|
|
351
349
|
getFooter,
|
|
352
|
-
customProps
|
|
350
|
+
customProps,
|
|
351
|
+
needEffect
|
|
353
352
|
} = this.props;
|
|
354
353
|
let {
|
|
355
354
|
SuggestionsProps = {},
|
|
@@ -382,7 +381,7 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
382
381
|
const setAriaId = this.getNextAriaId();
|
|
383
382
|
const ariaErrorId = this.getNextAriaId();
|
|
384
383
|
return /*#__PURE__*/React.createElement("div", {
|
|
385
|
-
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
|
|
384
|
+
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
386
385
|
"data-id": dataIdMultiSelectComp,
|
|
387
386
|
"data-title": isDisabled ? title : '',
|
|
388
387
|
onClick: this.handleInputFocus
|
|
@@ -525,6 +524,7 @@ AdvancedMultiSelectComponent.propTypes = {
|
|
|
525
524
|
//For grouping multiSelect
|
|
526
525
|
getPublicMethods: PropTypes.func,
|
|
527
526
|
optionType: PropTypes.oneOf(['default', 'avatar', 'icon']),
|
|
527
|
+
needEffect: PropTypes.bool,
|
|
528
528
|
animationStyle: PropTypes.string,
|
|
529
529
|
defaultDropBoxPosition: PropTypes.oneOf(['bottom', 'top', 'left', 'right']),
|
|
530
530
|
dropBoxSize: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
@@ -599,7 +599,8 @@ AdvancedMultiSelectComponent.defaultProps = {
|
|
|
599
599
|
borderColor: 'default',
|
|
600
600
|
isBoxPaddingNeed: true,
|
|
601
601
|
isSearchClearOnSelect: true,
|
|
602
|
-
customProps: {}
|
|
602
|
+
customProps: {},
|
|
603
|
+
needEffect: true
|
|
603
604
|
};
|
|
604
605
|
AdvancedMultiSelectComponent.displayName = 'AdvancedMultiSelect';
|
|
605
606
|
const AdvancedMultiSelect = Popup(AdvancedMultiSelectComponent);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.wrapper {
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
|
-
.disabled {
|
|
5
|
-
|
|
4
|
+
.disabled, .readOnly {
|
|
5
|
+
cursor: not-allowed;
|
|
6
6
|
}
|
|
7
7
|
.container {
|
|
8
8
|
max-height: var(--zd_size120);
|
|
@@ -16,28 +16,28 @@
|
|
|
16
16
|
.borderColor_transparent {
|
|
17
17
|
border-bottom-color: var(--zdt_advancedmultiselect_transparent_border);
|
|
18
18
|
}
|
|
19
|
-
.borderColor_transparent:hover {
|
|
19
|
+
.effect .borderColor_transparent:hover {
|
|
20
20
|
border-bottom-color: var(--zdt_advancedmultiselect_transparent_hover_border);
|
|
21
21
|
}
|
|
22
|
-
.borderColor_transparent.active {
|
|
22
|
+
.effect .borderColor_transparent.active {
|
|
23
23
|
border-bottom-color: var(--zdt_advancedmultiselect_transparent_active_border);
|
|
24
24
|
}
|
|
25
25
|
.borderColor_default {
|
|
26
26
|
border-bottom-color: var(--zdt_advancedmultiselect_default_border);
|
|
27
27
|
}
|
|
28
|
-
.borderColor_default:hover {
|
|
28
|
+
.effect .borderColor_default:hover {
|
|
29
29
|
border-bottom-color: var(--zdt_advancedmultiselect_default_hover_border);
|
|
30
30
|
}
|
|
31
|
-
.borderColor_default.active {
|
|
31
|
+
.effect .borderColor_default.active {
|
|
32
32
|
border-bottom-color: var(--zdt_advancedmultiselect_default_active_border);
|
|
33
33
|
}
|
|
34
34
|
.borderColor_dark {
|
|
35
35
|
border-bottom-color: var(--zdt_advancedmultiselect_dark_border);
|
|
36
36
|
}
|
|
37
|
-
.borderColor_dark:hover {
|
|
37
|
+
.effect .borderColor_dark:hover {
|
|
38
38
|
border-bottom-color: var(--zdt_advancedmultiselect_dark_hover_border);
|
|
39
39
|
}
|
|
40
|
-
.borderColor_dark.active {
|
|
40
|
+
.effect .borderColor_dark.active {
|
|
41
41
|
border-bottom-color: var(--zdt_advancedmultiselect_dark_active_border);
|
|
42
42
|
}
|
|
43
43
|
[dir=ltr] .container.medium {
|
|
@@ -542,11 +542,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
|
|
545
|
-
handleFetchOptions() {
|
|
546
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
547
|
-
args[_key] = arguments[_key];
|
|
548
|
-
}
|
|
549
|
-
|
|
545
|
+
handleFetchOptions(...args) {
|
|
550
546
|
const [APICall, searchStr] = args;
|
|
551
547
|
const {
|
|
552
548
|
isFetchingOptions
|
|
@@ -612,9 +608,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
612
608
|
});
|
|
613
609
|
}
|
|
614
610
|
|
|
615
|
-
handleClickSelectedOption() {
|
|
616
|
-
let id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
617
|
-
let e = arguments.length > 1 ? arguments[1] : undefined;
|
|
611
|
+
handleClickSelectedOption(id = '', e) {
|
|
618
612
|
const {
|
|
619
613
|
selectedOptions
|
|
620
614
|
} = this.props;
|
|
@@ -695,9 +689,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
695
689
|
getNextOptions && getNextOptions(searchStr);
|
|
696
690
|
}
|
|
697
691
|
|
|
698
|
-
handleChange() {
|
|
699
|
-
let selectedOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
700
|
-
let e = arguments.length > 1 ? arguments[1] : undefined;
|
|
692
|
+
handleChange(selectedOptions = [], e) {
|
|
701
693
|
const {
|
|
702
694
|
optionsNormalize
|
|
703
695
|
} = this.state;
|
|
@@ -870,7 +862,8 @@ export class MultiSelectComponent extends React.Component {
|
|
|
870
862
|
a11y,
|
|
871
863
|
children,
|
|
872
864
|
customChildrenClass,
|
|
873
|
-
getFooter
|
|
865
|
+
getFooter,
|
|
866
|
+
needEffect
|
|
874
867
|
} = this.props;
|
|
875
868
|
const {
|
|
876
869
|
clearText = 'Clear all',
|
|
@@ -898,7 +891,7 @@ export class MultiSelectComponent extends React.Component {
|
|
|
898
891
|
const ariaErrorId = this.getNextAriaId();
|
|
899
892
|
const isShowClearIcon = !isReadOnly && !isDisabled && !disableAction && selectedOptions.length > 1;
|
|
900
893
|
return /*#__PURE__*/React.createElement("div", {
|
|
901
|
-
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
|
|
894
|
+
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
902
895
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
903
896
|
"data-title": isDisabled ? title : '',
|
|
904
897
|
onClick: this.handleInputFocus
|
|
@@ -1102,7 +1095,8 @@ MultiSelectComponent.propTypes = {
|
|
|
1102
1095
|
children: PropTypes.node,
|
|
1103
1096
|
customChildrenClass: PropTypes.string,
|
|
1104
1097
|
disabledOptions: PropTypes.arrayOf(PropTypes.string),
|
|
1105
|
-
getFooter: PropTypes.func
|
|
1098
|
+
getFooter: PropTypes.func,
|
|
1099
|
+
needEffect: PropTypes.bool
|
|
1106
1100
|
};
|
|
1107
1101
|
MultiSelectComponent.defaultProps = {
|
|
1108
1102
|
animationStyle: 'bounce',
|
|
@@ -1132,7 +1126,8 @@ MultiSelectComponent.defaultProps = {
|
|
|
1132
1126
|
a11y: {},
|
|
1133
1127
|
textBoxClass: '',
|
|
1134
1128
|
palette: 'default',
|
|
1135
|
-
isSearchClearOnSelect: true
|
|
1129
|
+
isSearchClearOnSelect: true,
|
|
1130
|
+
needEffect: true
|
|
1136
1131
|
};
|
|
1137
1132
|
|
|
1138
1133
|
if (false) {
|
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.disabled {
|
|
6
|
-
|
|
5
|
+
.disabled, .readOnly {
|
|
6
|
+
cursor: not-allowed;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
.readOnly {
|
|
10
|
-
composes: readonly from '../common/common.module.css';
|
|
11
|
-
}
|
|
12
|
-
|
|
13
8
|
.container {
|
|
14
9
|
max-height: var(--zd_size120);
|
|
15
10
|
composes: oflowy from '../common/common.module.css';
|
|
@@ -22,28 +17,28 @@
|
|
|
22
17
|
.borderColor_transparent {
|
|
23
18
|
border-bottom-color: var(--zdt_multiselect_transparent_border);
|
|
24
19
|
}
|
|
25
|
-
.borderColor_transparent:hover {
|
|
20
|
+
.effect .borderColor_transparent:hover {
|
|
26
21
|
border-bottom-color: var(--zdt_multiselect_transparent_hover_border);
|
|
27
22
|
}
|
|
28
|
-
.borderColor_transparent.active {
|
|
23
|
+
.effect .borderColor_transparent.active {
|
|
29
24
|
border-bottom-color: var(--zdt_multiselect_transparent_active_border);
|
|
30
25
|
}
|
|
31
26
|
.borderColor_default {
|
|
32
27
|
border-bottom-color: var(--zdt_multiselect_default_border);
|
|
33
28
|
}
|
|
34
|
-
.borderColor_default:hover {
|
|
29
|
+
.effect .borderColor_default:hover {
|
|
35
30
|
border-bottom-color: var(--zdt_multiselect_default_hover_border);
|
|
36
31
|
}
|
|
37
|
-
.borderColor_default.active {
|
|
32
|
+
.effect .borderColor_default.active {
|
|
38
33
|
border-bottom-color: var(--zdt_multiselect_default_active_border);
|
|
39
34
|
}
|
|
40
35
|
.borderColor_dark {
|
|
41
36
|
border-bottom-color: var(--zdt_multiselect_dark_border);
|
|
42
37
|
}
|
|
43
|
-
.borderColor_dark:hover {
|
|
38
|
+
.effect .borderColor_dark:hover {
|
|
44
39
|
border-bottom-color: var(--zdt_multiselect_dark_hover_border);
|
|
45
40
|
}
|
|
46
|
-
.borderColor_dark.active {
|
|
41
|
+
.effect .borderColor_dark.active {
|
|
47
42
|
border-bottom-color: var(--zdt_multiselect_dark_active_border);
|
|
48
43
|
}
|
|
49
44
|
|
|
@@ -87,7 +87,8 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
87
87
|
a11y,
|
|
88
88
|
children,
|
|
89
89
|
customChildrenClass,
|
|
90
|
-
isBoxPaddingNeed
|
|
90
|
+
isBoxPaddingNeed,
|
|
91
|
+
needEffect
|
|
91
92
|
} = this.props;
|
|
92
93
|
const {
|
|
93
94
|
clearText = 'Clear all'
|
|
@@ -115,7 +116,7 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
115
116
|
const popUpState = !isReadOnly && !isDisabled && !disableAction && isPopupOpen;
|
|
116
117
|
const isShowClearIcon = !isReadOnly && !isDisabled && !disableAction && selectedOptions.length > 1;
|
|
117
118
|
return /*#__PURE__*/React.createElement("div", {
|
|
118
|
-
className: ` ${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''}`,
|
|
119
|
+
className: ` ${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${disableAction ? CssProvider('isBlock') : ''} ${borderColor === 'transparent' ? style.transparentContainer : ''} ${needEffect && !(isDisabled || isReadOnly) ? style.effect : ''}`,
|
|
119
120
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
120
121
|
"data-title": isDisabled ? title : '',
|
|
121
122
|
onClick: this.handleInputFocus
|
|
@@ -288,6 +289,7 @@ MultiSelectWithAvatarComponent.propTypes = {
|
|
|
288
289
|
palette: PropTypes.oneOf(['default', 'dark']),
|
|
289
290
|
htmlId: PropTypes.string,
|
|
290
291
|
isBoxPaddingNeed: PropTypes.bool,
|
|
292
|
+
needEffect: PropTypes.bool,
|
|
291
293
|
|
|
292
294
|
/**** Popup props ****/
|
|
293
295
|
isPopupOpen: PropTypes.bool,
|
|
@@ -337,7 +339,8 @@ MultiSelectWithAvatarComponent.defaultProps = {
|
|
|
337
339
|
a11y: {},
|
|
338
340
|
palette: 'default',
|
|
339
341
|
isBoxPaddingNeed: true,
|
|
340
|
-
isSearchClearOnSelect: true
|
|
342
|
+
isSearchClearOnSelect: true,
|
|
343
|
+
needEffect: true
|
|
341
344
|
};
|
|
342
345
|
MultiSelectWithAvatarComponent.displayName = 'MultiSelectWithAvatar';
|
|
343
346
|
const MultiSelectWithAvatar = Popup(MultiSelectWithAvatarComponent);
|
|
@@ -37,13 +37,14 @@ export default class SelectedOptions extends React.PureComponent {
|
|
|
37
37
|
} = option;
|
|
38
38
|
const commonProps = {
|
|
39
39
|
disabled: isDisabled,
|
|
40
|
-
onRemove: isDisabled ? null : onRemove,
|
|
40
|
+
onRemove: isDisabled || isReadOnly ? 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
|
|
46
|
+
id: id,
|
|
47
|
+
isReadOnly: isReadOnly
|
|
47
48
|
};
|
|
48
49
|
|
|
49
50
|
if (optionType === 'avatar') {
|
|
@@ -39,8 +39,7 @@ export default class AdvancedGroupMultiSelect__default extends React.Component {
|
|
|
39
39
|
return Promise.resolve();
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
handleSelectOptions() {
|
|
43
|
-
let selectedGroupOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
42
|
+
handleSelectOptions(selectedGroupOptions = []) {
|
|
44
43
|
this.setState({
|
|
45
44
|
selectedGroupOptions
|
|
46
45
|
});
|
package/es/Popup/Popup.js
CHANGED
|
@@ -40,17 +40,13 @@ const defaultState = {
|
|
|
40
40
|
|
|
41
41
|
/* eslint-disable react/prop-types */
|
|
42
42
|
|
|
43
|
-
const Popup = function (Component
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
scrollDebounceTime: popupScrollDebounceTime = 0,
|
|
51
|
-
closeOnScroll: closeOnScrollPopup = false
|
|
52
|
-
} = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
53
|
-
|
|
43
|
+
const Popup = function (Component, group = 'global', needResizeHandling = true, {
|
|
44
|
+
isAbsolutePositioningNeeded: isAbsolutePopup = true,
|
|
45
|
+
isArrow: needPopupArrow = false,
|
|
46
|
+
customOrder: customPositionOrder = [],
|
|
47
|
+
scrollDebounceTime: popupScrollDebounceTime = 0,
|
|
48
|
+
closeOnScroll: closeOnScrollPopup = false
|
|
49
|
+
} = {}) {
|
|
54
50
|
class Popup extends React.Component {
|
|
55
51
|
constructor(props) {
|
|
56
52
|
super(props);
|
|
@@ -416,9 +412,7 @@ const Popup = function (Component) {
|
|
|
416
412
|
e && e.nativeEvent && e.nativeEvent.stopImmediatePropagation && e.nativeEvent.stopImmediatePropagation();
|
|
417
413
|
}
|
|
418
414
|
|
|
419
|
-
handlePopupPosition() {
|
|
420
|
-
let defaultPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'bottomCenter';
|
|
421
|
-
let isResizeHandling = arguments.length > 1 ? arguments[1] : undefined;
|
|
415
|
+
handlePopupPosition(defaultPosition = 'bottomCenter', isResizeHandling) {
|
|
422
416
|
// isResizeHandling --->>> Window resize and dropBox resize
|
|
423
417
|
const {
|
|
424
418
|
direction
|
package/es/Popup/viewPort.js
CHANGED
|
@@ -77,12 +77,10 @@ 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:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
} = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
85
|
-
|
|
80
|
+
possibilities: (el, relativeBox, customFrame, {
|
|
81
|
+
needArrow,
|
|
82
|
+
isAbsolute
|
|
83
|
+
} = {}) => {
|
|
86
84
|
if (!el) {
|
|
87
85
|
return;
|
|
88
86
|
}
|
|
@@ -303,14 +301,11 @@ let viewPort = {
|
|
|
303
301
|
bottom: relativeBoxGap.center.bottom - rectGap.bottom
|
|
304
302
|
};
|
|
305
303
|
},
|
|
306
|
-
betterView:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
isAbsolute,
|
|
312
|
-
customOrder = []
|
|
313
|
-
} = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
|
|
304
|
+
betterView: (popup, relativeBox, defaultView = '', customFrame, {
|
|
305
|
+
needArrow,
|
|
306
|
+
isAbsolute,
|
|
307
|
+
customOrder = []
|
|
308
|
+
} = {}) => {
|
|
314
309
|
let customScrollFrame = isAbsolute ? customFrame : '';
|
|
315
310
|
let viewPortPossibilities = viewPort.possibilities(popup, relativeBox, customScrollFrame, {
|
|
316
311
|
needArrow,
|
|
@@ -30,11 +30,10 @@ function getDeletedIndexes() {
|
|
|
30
30
|
return deletedIndexes;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
function callback(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} = _ref;
|
|
33
|
+
function callback({
|
|
34
|
+
globalId,
|
|
35
|
+
deletedIndexes
|
|
36
|
+
}) {
|
|
38
37
|
setGlobalId(globalId);
|
|
39
38
|
setDeletedIndexes(deletedIndexes);
|
|
40
39
|
}
|
|
@@ -3,12 +3,11 @@ 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
|
-
|
|
11
|
-
} = _ref;
|
|
6
|
+
const LibraryContextProvider = ({
|
|
7
|
+
isReducedMotion = getLibraryConfig('isReducedMotion'),
|
|
8
|
+
direction = getLibraryConfig('direction'),
|
|
9
|
+
children
|
|
10
|
+
}) => {
|
|
12
11
|
const [value, setValue] = useState({
|
|
13
12
|
isReducedMotion,
|
|
14
13
|
direction
|
|
@@ -50,14 +50,13 @@ export function decreaseGlobalIds(numbers, deletedIndexes, globalId) {
|
|
|
50
50
|
deletedIndexes
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
export function useNumberGenerator(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
} = _ref;
|
|
53
|
+
export function useNumberGenerator({
|
|
54
|
+
getGlobalId,
|
|
55
|
+
prefix,
|
|
56
|
+
getGlobalPrefix,
|
|
57
|
+
getDeletedIndexes,
|
|
58
|
+
callback
|
|
59
|
+
}) {
|
|
61
60
|
let presentValues = useRef([]),
|
|
62
61
|
presentIndex = useRef(0);
|
|
63
62
|
prefix = typeof prefix === 'undefined' ? '' : `${prefix}_`;
|
|
@@ -84,15 +83,14 @@ export function useNumberGenerator(_ref) {
|
|
|
84
83
|
presentIndex.current = -1;
|
|
85
84
|
return getNextId;
|
|
86
85
|
}
|
|
87
|
-
export function getNumberGenerators(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
} = _ref2;
|
|
86
|
+
export function getNumberGenerators({
|
|
87
|
+
Component,
|
|
88
|
+
prefix,
|
|
89
|
+
getGlobalPrefix,
|
|
90
|
+
getGlobalId,
|
|
91
|
+
getDeletedIndexes,
|
|
92
|
+
callback
|
|
93
|
+
}) {
|
|
96
94
|
let presentIndex = 0,
|
|
97
95
|
presentValues = [],
|
|
98
96
|
{
|
|
@@ -27,11 +27,10 @@ function getDeletedIndexes() {
|
|
|
27
27
|
return deletedIndexes;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
function callback(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} = _ref;
|
|
30
|
+
function callback({
|
|
31
|
+
globalId,
|
|
32
|
+
deletedIndexes
|
|
33
|
+
}) {
|
|
35
34
|
setInitialZIndex(globalId);
|
|
36
35
|
setDeletedIndexes(deletedIndexes);
|
|
37
36
|
}
|
package/es/Radio/Radio.js
CHANGED
|
@@ -3,7 +3,6 @@ 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';
|
|
7
6
|
import style from './Radio.module.css';
|
|
8
7
|
export default class Radio extends React.Component {
|
|
9
8
|
constructor(props) {
|
|
@@ -45,7 +44,7 @@ export default class Radio extends React.Component {
|
|
|
45
44
|
customRadio = '',
|
|
46
45
|
customLabel = ''
|
|
47
46
|
} = customClass;
|
|
48
|
-
let accessMode = isReadOnly ? style.readonly : disabled ?
|
|
47
|
+
let accessMode = isReadOnly ? style.readonly : disabled ? style.disabled : style.pointer;
|
|
49
48
|
let toolTip = disabled ? disabledTitle : title ? title : null;
|
|
50
49
|
let {
|
|
51
50
|
ariaHidden,
|
|
@@ -98,9 +98,7 @@ ResponsiveSender.propTypes = {
|
|
|
98
98
|
domRefKey: PropTypes.string,
|
|
99
99
|
responsiveId: PropTypes.string
|
|
100
100
|
};
|
|
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;
|
|
101
|
+
export function useResponsiveReceiver(responsiveId = defaultResponsiveId, query) {
|
|
104
102
|
const [, forceUpdate] = useState();
|
|
105
103
|
const totalContextData = useContext(ResponsiveContext);
|
|
106
104
|
const validSizeContextData = totalContextData[validSizeResponsiveId];
|
|
@@ -172,14 +170,13 @@ export function useResponsiveReceiver() {
|
|
|
172
170
|
updateLatestData();
|
|
173
171
|
return data.current;
|
|
174
172
|
}
|
|
175
|
-
export function ResponsiveReceiver(
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
} = _ref;
|
|
173
|
+
export function ResponsiveReceiver({
|
|
174
|
+
children,
|
|
175
|
+
responsiveId,
|
|
176
|
+
query,
|
|
177
|
+
eleRef,
|
|
178
|
+
domRefKey
|
|
179
|
+
}) {
|
|
183
180
|
const data = useResponsiveReceiver(responsiveId, query);
|
|
184
181
|
const child = children(data);
|
|
185
182
|
return eleRef ? /*#__PURE__*/React.createElement(DOMRefWrapper, {
|
|
@@ -163,9 +163,7 @@ export default class ResizeComponent extends React.Component {
|
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
constructChildren() {
|
|
167
|
-
let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
168
|
-
let responsive = arguments.length > 1 ? arguments[1] : undefined;
|
|
166
|
+
constructChildren(dataCount = 0, responsive) {
|
|
169
167
|
const {
|
|
170
168
|
childrenList,
|
|
171
169
|
getData
|
|
@@ -102,8 +102,7 @@ ResponsiveSender.propTypes = {
|
|
|
102
102
|
responsiveId: PropTypes.string // matcher: PropTypes.func
|
|
103
103
|
|
|
104
104
|
};
|
|
105
|
-
export function useResponsiveReceiver() {
|
|
106
|
-
let responsiveId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultResponsiveId;
|
|
105
|
+
export function useResponsiveReceiver(responsiveId = defaultResponsiveId) {
|
|
107
106
|
const [_, forceUpdate] = useState();
|
|
108
107
|
let totalContextData = useContext(ResponsiveContext);
|
|
109
108
|
let contextData = totalContextData[responsiveId] || totalContextData[defaultResponsiveId]; // NOTE: this for fallback of if responsive receiver id wrong
|
|
@@ -150,8 +149,7 @@ export function useResponsiveReceiver() {
|
|
|
150
149
|
return value1 <= width && value2 >= width || breakPoint1 === breakPoint || breakPoint2 === breakPoint;
|
|
151
150
|
},
|
|
152
151
|
|
|
153
|
-
deviceOnly() {
|
|
154
|
-
let breakPoints = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
152
|
+
deviceOnly(breakPoints = []) {
|
|
155
153
|
return breakPoints.includes(breakPoint);
|
|
156
154
|
},
|
|
157
155
|
|
|
@@ -176,14 +174,13 @@ export function useResponsiveReceiver() {
|
|
|
176
174
|
// ) : null;
|
|
177
175
|
// }
|
|
178
176
|
|
|
179
|
-
export function ResponsiveReceiver(
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
} = _ref;
|
|
177
|
+
export function ResponsiveReceiver({
|
|
178
|
+
children,
|
|
179
|
+
responsiveId,
|
|
180
|
+
hiddenSizes,
|
|
181
|
+
eleRef,
|
|
182
|
+
domRefKey
|
|
183
|
+
}) {
|
|
187
184
|
const data = useResponsiveReceiver(responsiveId);
|
|
188
185
|
const {
|
|
189
186
|
breakPoint
|