@zohodesk/components 1.0.0-temp-236 → 1.0.0-temp-239
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 +13 -3
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +5 -5
- package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +1 -1
- package/assets/Appearance/light/mode/Component_LightMode.module.css +5 -5
- package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +1 -1
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +5 -5
- package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +1 -1
- package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +1 -1
- package/es/Accordion/Accordion.js +85 -0
- package/es/Accordion/AccordionItem.js +63 -0
- package/es/Accordion/__tests__/Accordion.spec.js +11 -0
- package/es/Accordion/__tests__/AccordionItem.spec.js +16 -0
- package/es/Accordion/__tests__/__snapshots__/Accordion.spec.js.snap +12 -0
- package/es/Accordion/__tests__/__snapshots__/AccordionItem.spec.js.snap +23 -0
- package/es/Accordion/index.js +2 -0
- package/es/Accordion/props/defaultProps.js +12 -0
- package/es/Accordion/props/propTypes.js +33 -0
- package/es/Animation/Animation.js +52 -0
- package/es/Animation/__tests__/Animation.spec.js +14 -0
- package/es/Animation/__tests__/__snapshots__/Animation.spec.js.snap +11 -0
- package/es/Animation/props/defaultProps.js +7 -0
- package/es/Animation/props/propTypes.js +12 -0
- package/es/Animation/utils.js +83 -0
- package/es/AppContainer/AppContainer.js +139 -0
- package/es/AppContainer/AppContainer.module.css +18 -0
- package/es/AppContainer/__tests__/AppContainer.spec.js +82 -0
- package/es/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +201 -0
- package/es/AppContainer/props/defaultProps.js +10 -0
- package/es/AppContainer/props/propTypes.js +17 -0
- package/es/Avatar/Avatar.js +195 -0
- package/es/Avatar/Avatar.module.css +176 -0
- package/es/Avatar/__tests__/Avatar.spec.js +181 -0
- package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -0
- package/es/Avatar/props/defaultProps.js +17 -0
- package/es/Avatar/props/propTypes.js +26 -0
- package/es/AvatarTeam/AvatarTeam.js +84 -0
- package/es/AvatarTeam/AvatarTeam.module.css +189 -0
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +138 -0
- package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -0
- package/es/AvatarTeam/props/defaultProps.js +17 -0
- package/es/AvatarTeam/props/propTypes.js +28 -0
- package/es/Button/Button.js +76 -0
- package/es/Button/__tests__/Button.spec.js +242 -0
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +412 -0
- package/es/Button/css/Button.module.css +613 -0
- package/es/Button/css/cssJSLogic.js +58 -0
- package/es/Button/index.js +2 -0
- package/es/Button/props/defaultProps.js +18 -0
- package/es/Button/props/propTypes.js +28 -0
- package/es/Buttongroup/Buttongroup.js +50 -0
- package/es/Buttongroup/Buttongroup.module.css +105 -0
- package/es/Buttongroup/__tests__/Buttongroup.spec.js +37 -0
- package/es/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -0
- package/es/Buttongroup/props/defaultProps.js +6 -0
- package/es/Buttongroup/props/propTypes.js +9 -0
- package/es/Card/Card.js +305 -0
- package/es/Card/Card.module.css +20 -0
- package/es/Card/__tests__/Card.spec.js +90 -0
- package/es/Card/__tests__/__snapshots__/Card.spec.js.snap +56 -0
- package/es/Card/index.js +4 -0
- package/es/Card/props/defaultProps.js +26 -0
- package/es/Card/props/propTypes.js +49 -0
- package/es/CheckBox/CheckBox.js +172 -0
- package/es/CheckBox/CheckBox.module.css +160 -0
- package/es/CheckBox/__tests__/CheckBox.spec.js +240 -0
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +1878 -0
- package/es/CheckBox/props/defaultProps.js +18 -0
- package/es/CheckBox/props/propTypes.js +42 -0
- package/es/DateTime/CalendarView.js +223 -0
- package/es/DateTime/DateTime.js +779 -0
- package/es/DateTime/DateTime.module.css +249 -0
- package/es/DateTime/DateTimePopupFooter.js +47 -0
- package/es/DateTime/DateTimePopupHeader.js +105 -0
- package/es/DateTime/DateWidget.js +1142 -0
- package/es/DateTime/DateWidget.module.css +39 -0
- package/es/DateTime/DaysRow.js +32 -0
- package/es/DateTime/Time.js +181 -0
- package/es/DateTime/YearView.js +264 -0
- package/es/DateTime/YearView.module.css +99 -0
- package/es/DateTime/__tests__/CalendarView.spec.js +13 -0
- package/es/DateTime/__tests__/DateTime.spec.js +21 -0
- package/es/DateTime/__tests__/DateTimePopupFooter.spec.js +11 -0
- package/es/DateTime/__tests__/DateTimePopupHeader.spec.js +11 -0
- package/es/DateTime/__tests__/DateWidget.spec.js +11 -0
- package/es/DateTime/__tests__/DaysRow.spec.js +13 -0
- package/es/DateTime/__tests__/Time.spec.js +11 -0
- package/es/DateTime/__tests__/YearView.spec.js +10 -0
- package/es/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +312 -0
- package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +938 -0
- package/es/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +34 -0
- package/es/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +72 -0
- package/es/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +79 -0
- package/es/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +12 -0
- package/es/DateTime/__tests__/__snapshots__/Time.spec.js.snap +310 -0
- package/es/DateTime/common.js +25 -0
- package/es/DateTime/constants.js +57 -0
- package/es/DateTime/dateFormatUtils/dateFormat.js +616 -0
- package/es/DateTime/dateFormatUtils/dateFormats.js +42 -0
- package/es/DateTime/dateFormatUtils/dayChange.js +83 -0
- package/es/DateTime/dateFormatUtils/index.js +267 -0
- package/es/DateTime/dateFormatUtils/monthChange.js +90 -0
- package/es/DateTime/dateFormatUtils/timeChange.js +228 -0
- package/es/DateTime/dateFormatUtils/yearChange.js +121 -0
- package/es/DateTime/index.js +1 -0
- package/es/DateTime/objectUtils.js +55 -0
- package/es/DateTime/props/defaultProps.js +65 -0
- package/es/DateTime/props/propTypes.js +203 -0
- package/es/DateTime/typeChecker.js +19 -0
- package/es/DateTime/validator.js +327 -0
- package/es/DropBox/DropBox.js +80 -0
- package/es/DropBox/DropBoxElement/DropBoxElement.js +137 -0
- package/es/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +28 -0
- package/es/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +95 -0
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +442 -0
- package/es/DropBox/DropBoxElement/css/cssJSLogic.js +91 -0
- package/es/DropBox/DropBoxElement/props/defaultProps.js +18 -0
- package/es/DropBox/DropBoxElement/props/propTypes.js +51 -0
- package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +54 -0
- package/es/DropBox/DropBoxPositionMapping.js +142 -0
- package/es/DropBox/__tests__/DropBox.spec.js +11 -0
- package/es/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +36 -0
- package/es/DropBox/css/DropBox.module.css +59 -0
- package/es/DropBox/css/cssJSLogic.js +14 -0
- package/es/DropBox/props/defaultProps.js +14 -0
- package/es/DropBox/props/propTypes.js +16 -0
- package/es/DropBox/utils/isMobilePopover.js +17 -0
- package/es/DropDown/DropDown.js +76 -0
- package/es/DropDown/DropDown.module.css +5 -0
- package/es/DropDown/DropDownHeading.js +44 -0
- package/es/DropDown/DropDownHeading.module.css +53 -0
- package/es/DropDown/DropDownItem.js +76 -0
- package/es/DropDown/DropDownItem.module.css +94 -0
- package/es/DropDown/DropDownSearch.js +68 -0
- package/es/DropDown/DropDownSearch.module.css +14 -0
- package/es/DropDown/DropDownSeparator.js +15 -0
- package/es/DropDown/DropDownSeparator.module.css +7 -0
- package/es/DropDown/__tests__/DropDown.spec.js +11 -0
- package/es/DropDown/__tests__/DropDownHeading.spec.js +11 -0
- package/es/DropDown/__tests__/DropDownItem.spec.js +11 -0
- package/es/DropDown/__tests__/DropDownSearch.spec.js +11 -0
- package/es/DropDown/__tests__/DropDownSeparator.spec.js +11 -0
- package/es/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +54 -0
- package/es/DropDown/__tests__/__snapshots__/DropDownHeading.spec.js.snap +12 -0
- package/es/DropDown/__tests__/__snapshots__/DropDownItem.spec.js.snap +11 -0
- package/es/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +20 -0
- package/es/DropDown/__tests__/__snapshots__/DropDownSeparator.spec.js.snap +9 -0
- package/es/DropDown/index.js +7 -0
- package/es/DropDown/props/defaultProps.js +21 -0
- package/es/DropDown/props/propTypes.js +66 -0
- package/es/Heading/Heading.js +38 -0
- package/es/Heading/Heading.module.css +5 -0
- package/es/Heading/__tests__/Heading.spec.js +20 -0
- package/es/Heading/__tests__/__snapshots__/Heading.spec.js.snap +63 -0
- package/es/Heading/props/defaultProps.js +5 -0
- package/es/Heading/props/propTypes.js +12 -0
- package/es/Label/Label.js +51 -0
- package/es/Label/Label.module.css +57 -0
- package/es/Label/LabelColors.module.css +21 -0
- package/es/Label/__tests__/Label.spec.js +99 -0
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -0
- package/es/Label/props/defaultProps.js +11 -0
- package/es/Label/props/propTypes.js +19 -0
- package/es/Layout/Box.js +115 -0
- package/es/Layout/Container.js +132 -0
- package/es/Layout/Layout.module.css +336 -0
- package/es/Layout/__tests__/Box.spec.js +11 -0
- package/es/Layout/__tests__/Container.spec.js +11 -0
- package/es/Layout/__tests__/__snapshots__/Box.spec.js.snap +16 -0
- package/es/Layout/__tests__/__snapshots__/Container.spec.js.snap +16 -0
- package/es/Layout/index.js +10 -0
- package/es/Layout/props/defaultProps.js +16 -0
- package/es/Layout/props/propTypes.js +46 -0
- package/es/Layout/utils.js +30 -0
- package/es/ListItem/ListContainer.js +105 -0
- package/es/ListItem/ListItem.js +151 -0
- package/es/ListItem/ListItem.module.css +261 -0
- package/es/ListItem/ListItemWithAvatar.js +178 -0
- package/es/ListItem/ListItemWithCheckBox.js +134 -0
- package/es/ListItem/ListItemWithIcon.js +158 -0
- package/es/ListItem/ListItemWithRadio.js +137 -0
- package/es/ListItem/__tests__/ListContainer.spec.js +19 -0
- package/es/ListItem/__tests__/ListItem.spec.js +11 -0
- package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +46 -0
- package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +46 -0
- package/es/ListItem/__tests__/ListItemWithIcon.spec.js +46 -0
- package/es/ListItem/__tests__/ListItemWithRadio.spec.js +46 -0
- package/es/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +27 -0
- package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +29 -0
- package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +222 -0
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +492 -0
- package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +222 -0
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +487 -0
- package/es/ListItem/index.js +6 -0
- package/es/ListItem/props/defaultProps.js +105 -0
- package/es/ListItem/props/propTypes.js +220 -0
- package/es/Modal/Modal.js +174 -0
- package/es/Modal/Portal/Portal.js +33 -0
- package/es/Modal/Portal/__tests__/Portal.spec.js +28 -0
- package/es/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +30 -0
- package/es/Modal/Portal/props/defaultProps.js +3 -0
- package/es/Modal/Portal/props/propTypes.js +5 -0
- package/es/Modal/__tests__/Modal.spec.js +15 -0
- package/es/Modal/__tests__/__snapshots__/Modal.spec.js.snap +26 -0
- package/es/Modal/props/defaultProps.js +3 -0
- package/es/Modal/props/propTypes.js +7 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +1109 -0
- package/es/MultiSelect/AdvancedMultiSelect.js +604 -0
- package/es/MultiSelect/EmptyState.js +65 -0
- package/es/MultiSelect/MobileHeader/MobileHeader.js +50 -0
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -0
- package/es/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +11 -0
- package/es/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +39 -0
- package/es/MultiSelect/MobileHeader/props/defaultProps.js +7 -0
- package/es/MultiSelect/MobileHeader/props/propTypes.js +7 -0
- package/es/MultiSelect/MultiSelect.js +1186 -0
- package/es/MultiSelect/MultiSelect.module.css +216 -0
- package/es/MultiSelect/MultiSelectHeader.js +32 -0
- package/es/MultiSelect/MultiSelectWithAvatar.js +218 -0
- package/es/MultiSelect/SelectedOptions.js +86 -0
- package/es/MultiSelect/SelectedOptions.module.css +15 -0
- package/es/MultiSelect/Suggestions.js +225 -0
- package/es/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +12 -0
- package/es/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +47 -0
- package/es/MultiSelect/__tests__/EmptyState.spec.js +15 -0
- package/es/MultiSelect/__tests__/MultiSelect.spec.js +36 -0
- package/es/MultiSelect/__tests__/MultiSelectHeader.spec.js +21 -0
- package/es/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +11 -0
- package/es/MultiSelect/__tests__/SelectedOptions.spec.js +28 -0
- package/es/MultiSelect/__tests__/Suggestions.spec.js +71 -0
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +74 -0
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +534 -0
- package/es/MultiSelect/__tests__/__snapshots__/EmptyState.spec.js.snap +12 -0
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +339 -0
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +63 -0
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +85 -0
- package/es/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +80 -0
- package/es/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +363 -0
- package/es/MultiSelect/constants.js +6 -0
- package/es/MultiSelect/index.js +4 -0
- package/es/MultiSelect/props/defaultProps.js +173 -0
- package/es/MultiSelect/props/propTypes.js +300 -0
- package/es/PopOver/PopOver.js +211 -0
- package/es/PopOver/PopOver.module.css +9 -0
- package/es/PopOver/__tests__/PopOver.spec.js +11 -0
- package/es/PopOver/__tests__/__snapshots__/PopOver.spec.js.snap +13 -0
- package/es/PopOver/index.js +3 -0
- package/es/PopOver/props/defaultProps.js +7 -0
- package/es/PopOver/props/propTypes.js +53 -0
- package/es/Popup/Popup.js +1072 -0
- package/es/Popup/PositionMapping.js +72 -0
- package/es/Popup/Registry.js +36 -0
- package/es/Popup/intersectionObserver.js +49 -0
- package/es/Popup/props/propTypes.js +30 -0
- package/es/Popup/viewPort.js +373 -0
- package/es/Provider/AvatarSize.js +13 -0
- package/es/Provider/Config.js +21 -0
- package/es/Provider/CssProvider.js +16 -0
- package/es/Provider/IdProvider.js +66 -0
- package/es/Provider/LibraryContext.js +57 -0
- package/es/Provider/LibraryContextInit.js +3 -0
- package/es/Provider/NumberGenerator/NumberGenerator.js +136 -0
- package/es/Provider/ZindexProvider.js +57 -0
- package/es/Provider/index.js +4 -0
- package/es/Radio/Radio.js +138 -0
- package/es/Radio/Radio.module.css +115 -0
- package/es/Radio/__tests__/Radio.spec.js +238 -0
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1916 -0
- package/es/Radio/props/defaultProps.js +15 -0
- package/es/Radio/props/propTypes.js +41 -0
- package/es/Responsive/CustomResponsive.js +195 -0
- package/es/Responsive/RefWrapper.js +38 -0
- package/es/Responsive/ResizeComponent.js +197 -0
- package/es/Responsive/ResizeObserver.js +76 -0
- package/es/Responsive/ResizeObserverWithPolyfill.js +140 -0
- package/es/Responsive/Responsive.js +194 -0
- package/es/Responsive/index.js +9 -0
- package/es/Responsive/props/defaultProps.js +13 -0
- package/es/Responsive/props/propTypes.js +25 -0
- package/es/Responsive/sizeObservers.js +141 -0
- package/es/Responsive/utils/index.js +52 -0
- package/es/Responsive/utils/shallowCompare.js +28 -0
- package/es/Responsive/windowResizeObserver.js +51 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +65 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
- package/es/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +11 -0
- package/es/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +42 -0
- package/es/ResponsiveDropBox/props/defaultProps.js +4 -0
- package/es/ResponsiveDropBox/props/propTypes.js +8 -0
- package/es/Ribbon/Ribbon.js +51 -0
- package/es/Ribbon/Ribbon.module.css +500 -0
- package/es/Ribbon/__tests__/Ribbon.spec.js +52 -0
- package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -0
- package/es/Ribbon/props/defaultProps.js +9 -0
- package/es/Ribbon/props/propTypes.js +11 -0
- package/es/RippleEffect/RippleEffect.js +30 -0
- package/es/RippleEffect/RippleEffect.module.css +109 -0
- package/es/RippleEffect/__tests__/RippleEffect.spec.js +69 -0
- package/es/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +161 -0
- package/es/RippleEffect/props/defaultProps.js +10 -0
- package/es/RippleEffect/props/propTypes.js +12 -0
- package/es/Select/GroupSelect.js +825 -0
- package/es/Select/Select.js +1016 -0
- package/es/Select/Select.module.css +138 -0
- package/es/Select/SelectWithAvatar.js +358 -0
- package/es/Select/SelectWithIcon.js +563 -0
- package/es/Select/__tests__/GroupSelect.spec.js +19 -0
- package/es/Select/__tests__/Select.spec.js +1153 -0
- package/es/Select/__tests__/SelectWithAvatar.spec.js +12 -0
- package/es/Select/__tests__/SelectWithIcon.spec.js +12 -0
- package/es/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +90 -0
- package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +10446 -0
- package/es/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +45 -0
- package/es/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +108 -0
- package/es/Select/index.js +4 -0
- package/es/Select/props/defaultProps.js +131 -0
- package/es/Select/props/propTypes.js +311 -0
- package/es/Stencils/Stencils.js +24 -0
- package/es/Stencils/Stencils.module.css +100 -0
- package/es/Stencils/__tests__/Stencils.spec.js +54 -0
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +105 -0
- package/es/Stencils/props/defaultProps.js +7 -0
- package/es/Stencils/props/propTypes.js +8 -0
- package/es/Switch/Switch.js +99 -0
- package/es/Switch/Switch.module.css +128 -0
- package/es/Switch/__tests__/Switch.spec.js +156 -0
- package/es/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -0
- package/es/Switch/props/defaultProps.js +11 -0
- package/es/Switch/props/propTypes.js +28 -0
- package/es/Tab/Tab.js +110 -0
- package/es/Tab/Tab.module.css +100 -0
- package/es/Tab/TabContent.js +30 -0
- package/es/Tab/TabContent.module.css +4 -0
- package/es/Tab/TabContentWrapper.js +33 -0
- package/es/Tab/TabWrapper.js +56 -0
- package/es/Tab/Tabs.js +723 -0
- package/es/Tab/Tabs.module.css +167 -0
- package/es/Tab/__tests__/Tab.spec.js +11 -0
- package/es/Tab/__tests__/TabContent.spec.js +11 -0
- package/es/Tab/__tests__/TabContentWrapper.spec.js +11 -0
- package/es/Tab/__tests__/TabLayout.spec.js +34 -0
- package/es/Tab/__tests__/TabWrapper.spec.js +11 -0
- package/es/Tab/__tests__/Tabs.spec.js +11 -0
- package/es/Tab/__tests__/__snapshots__/Tab.spec.js.snap +22 -0
- package/es/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +19 -0
- package/es/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +12 -0
- package/es/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +341 -0
- package/es/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +20 -0
- package/es/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +33 -0
- package/es/Tab/index.js +5 -0
- package/es/Tab/props/defaultProps.js +51 -0
- package/es/Tab/props/propTypes.js +117 -0
- package/es/Tab/utils/tabConfigs.js +18 -0
- package/es/Tag/Tag.js +163 -0
- package/es/Tag/Tag.module.css +254 -0
- package/es/Tag/__tests__/Tag.spec.js +252 -0
- package/es/Tag/__tests__/__snapshots__/Tag.spec.js.snap +3074 -0
- package/es/Tag/props/defaultProps.js +16 -0
- package/es/Tag/props/propTypes.js +42 -0
- package/es/TextBox/TextBox.js +189 -0
- package/es/TextBox/TextBox.module.css +197 -0
- package/es/TextBox/__tests__/TextBox.spec.js +327 -0
- package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +615 -0
- package/es/TextBox/props/defaultProps.js +20 -0
- package/es/TextBox/props/propTypes.js +53 -0
- package/es/TextBoxIcon/TextBoxIcon.js +203 -0
- package/es/TextBoxIcon/TextBoxIcon.module.css +79 -0
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +268 -0
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +1784 -0
- package/es/TextBoxIcon/props/defaultProps.js +24 -0
- package/es/TextBoxIcon/props/propTypes.js +55 -0
- package/es/Textarea/Textarea.js +125 -0
- package/es/Textarea/Textarea.module.css +148 -0
- package/es/Textarea/__tests__/Textarea.spec.js +266 -0
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +525 -0
- package/es/Textarea/props/defaultProps.js +18 -0
- package/es/Textarea/props/propTypes.js +35 -0
- package/es/Tooltip/Tooltip.js +530 -0
- package/es/Tooltip/Tooltip.module.css +133 -0
- package/es/Tooltip/props/defaultProps.js +4 -0
- package/es/Tooltip/props/propTypes.js +5 -0
- package/es/Typography/Typography.js +38 -0
- package/es/Typography/css/Typography.module.css +489 -0
- package/es/Typography/css/cssJSLogic.js +56 -0
- package/es/Typography/props/defaultProps.js +8 -0
- package/es/Typography/props/propTypes.js +27 -0
- package/es/Typography/utils/index.js +50 -0
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +77 -0
- package/es/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +11 -0
- package/es/VelocityAnimation/VelocityAnimation/__tests__/__snapshots__/VelocityAnimation.spec.js.snap +9 -0
- package/es/VelocityAnimation/VelocityAnimation/props/defaultProps.js +7 -0
- package/es/VelocityAnimation/VelocityAnimation/props/propTypes.js +12 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +144 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +19 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/__snapshots__/VelocityAnimationGroup.spec.js.snap +11 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +15 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +22 -0
- package/es/VelocityAnimation/index.js +2 -0
- package/es/common/a11y.module.css +4 -0
- package/es/common/animation.module.css +624 -0
- package/es/common/avatarsizes.module.css +49 -0
- package/es/common/basic.module.css +31 -0
- package/es/common/basicReset.module.css +40 -0
- package/es/common/boxShadow.module.css +34 -0
- package/es/common/common.module.css +566 -0
- package/es/common/customscroll.module.css +142 -0
- package/es/common/reset.module.css +13 -0
- package/es/common/transition.module.css +146 -0
- package/es/components_layer.module.css +1 -0
- package/es/css.js +41 -0
- package/es/deprecated/PortalLayer/PortalLayer.js +108 -0
- package/es/deprecated/PortalLayer/props/defaultProps.js +5 -0
- package/es/deprecated/PortalLayer/props/propTypes.js +20 -0
- package/es/deprecated/Switch/Switch.js +94 -0
- package/es/deprecated/Switch/props/defaultProps.js +11 -0
- package/es/deprecated/Switch/props/propTypes.js +28 -0
- package/es/index.js +42 -0
- package/es/semantic/Button/Button.js +60 -0
- package/es/semantic/Button/__tests__/Button.spec.js +11 -0
- package/es/semantic/Button/__tests__/__snapshots__/Button.spec.js.snap +15 -0
- package/es/semantic/Button/props/defaultProps.js +12 -0
- package/es/semantic/Button/props/propTypes.js +22 -0
- package/es/semantic/Button/semanticButton.module.css +9 -0
- package/es/semantic/index.js +1 -0
- package/es/utils/Common.js +417 -0
- package/es/utils/ContextOptimizer.js +38 -0
- package/es/utils/constant.js +2 -0
- package/es/utils/constructFullName.js +13 -0
- package/es/utils/cssUtils.js +11 -0
- package/es/utils/datetime/GMTZones.js +48 -0
- package/es/utils/datetime/common.js +204 -0
- package/es/utils/debounce.js +23 -0
- package/es/utils/dropDownUtils.js +510 -0
- package/es/utils/dummyFunction.js +1 -0
- package/es/utils/getHTMLFontSize.js +4 -0
- package/es/utils/getInitial.js +24 -0
- package/es/utils/index.js +1 -0
- package/es/utils/scrollTo.js +13 -0
- package/es/utils/shallowEqual.js +32 -0
- package/es/v1/Accordion/Accordion.js +66 -0
- package/es/v1/Accordion/AccordionItem.js +57 -0
- package/es/v1/Accordion/index.js +2 -0
- package/es/v1/Accordion/props/defaultProps.js +12 -0
- package/es/v1/Accordion/props/propTypes.js +33 -0
- package/es/v1/Animation/Animation.js +45 -0
- package/es/v1/Animation/props/defaultProps.js +7 -0
- package/es/v1/Animation/props/propTypes.js +12 -0
- package/es/v1/Animation/utils.js +83 -0
- package/es/v1/AppContainer/AppContainer.js +115 -0
- package/es/v1/AppContainer/props/defaultProps.js +10 -0
- package/es/v1/AppContainer/props/propTypes.js +17 -0
- package/es/v1/Avatar/Avatar.js +139 -0
- package/es/v1/Avatar/props/defaultProps.js +17 -0
- package/es/v1/Avatar/props/propTypes.js +26 -0
- package/es/v1/AvatarTeam/AvatarTeam.js +70 -0
- package/es/v1/AvatarTeam/props/defaultProps.js +17 -0
- package/es/v1/AvatarTeam/props/propTypes.js +27 -0
- package/es/v1/Button/Button.js +67 -0
- package/es/v1/Button/props/defaultProps.js +18 -0
- package/es/v1/Button/props/propTypes.js +28 -0
- package/es/v1/Buttongroup/Buttongroup.js +31 -0
- package/es/v1/Buttongroup/props/defaultProps.js +6 -0
- package/es/v1/Buttongroup/props/propTypes.js +9 -0
- package/es/v1/Card/Card.js +237 -0
- package/es/v1/Card/index.js +4 -0
- package/es/v1/Card/props/defaultProps.js +25 -0
- package/es/v1/Card/props/propTypes.js +48 -0
- package/es/v1/CheckBox/CheckBox.js +161 -0
- package/es/v1/CheckBox/props/defaultProps.js +18 -0
- package/es/v1/CheckBox/props/propTypes.js +41 -0
- package/es/v1/DateTime/CalendarView.js +254 -0
- package/es/v1/DateTime/DateTime.js +779 -0
- package/es/v1/DateTime/DateTimePopupFooter.js +47 -0
- package/es/v1/DateTime/DateTimePopupHeader.js +105 -0
- package/es/v1/DateTime/DateWidget.js +1134 -0
- package/es/v1/DateTime/DaysRow.js +32 -0
- package/es/v1/DateTime/Time.js +181 -0
- package/es/v1/DateTime/YearView.js +264 -0
- package/es/v1/DateTime/index.js +1 -0
- package/es/v1/DateTime/props/defaultProps.js +63 -0
- package/es/v1/DateTime/props/propTypes.js +206 -0
- package/es/v1/DropBox/DropBox.js +79 -0
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +133 -0
- package/es/v1/DropBox/DropBoxElement/props/defaultProps.js +18 -0
- package/es/v1/DropBox/DropBoxElement/props/propTypes.js +51 -0
- package/es/v1/DropBox/props/defaultProps.js +14 -0
- package/es/v1/DropBox/props/propTypes.js +16 -0
- package/es/v1/DropBox/utils/isMobilePopover.js +17 -0
- package/es/v1/DropDown/DropDown.js +53 -0
- package/es/v1/DropDown/DropDownHeading.js +36 -0
- package/es/v1/DropDown/DropDownItem.js +56 -0
- package/es/v1/DropDown/DropDownSearch.js +58 -0
- package/es/v1/DropDown/DropDownSeparator.js +12 -0
- package/es/v1/DropDown/props/defaultProps.js +21 -0
- package/es/v1/DropDown/props/propTypes.js +66 -0
- package/es/v1/Heading/Heading.js +35 -0
- package/es/v1/Heading/props/defaultProps.js +5 -0
- package/es/v1/Heading/props/propTypes.js +12 -0
- package/es/v1/Label/Label.js +40 -0
- package/es/v1/Label/props/defaultProps.js +11 -0
- package/es/v1/Label/props/propTypes.js +19 -0
- package/es/v1/Layout/Box.js +115 -0
- package/es/v1/Layout/Container.js +132 -0
- package/es/v1/Layout/index.js +2 -0
- package/es/v1/Layout/props/defaultProps.js +16 -0
- package/es/v1/Layout/props/propTypes.js +46 -0
- package/es/v1/ListItem/ListContainer.js +104 -0
- package/es/v1/ListItem/ListItem.js +123 -0
- package/es/v1/ListItem/ListItemWithAvatar.js +143 -0
- package/es/v1/ListItem/ListItemWithCheckBox.js +104 -0
- package/es/v1/ListItem/ListItemWithIcon.js +126 -0
- package/es/v1/ListItem/ListItemWithRadio.js +105 -0
- package/es/v1/ListItem/index.js +6 -0
- package/es/v1/ListItem/props/defaultProps.js +97 -0
- package/es/v1/ListItem/props/propTypes.js +202 -0
- package/es/v1/Modal/Modal.js +125 -0
- package/es/v1/Modal/props/defaultProps.js +3 -0
- package/es/v1/Modal/props/propTypes.js +7 -0
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1092 -0
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +583 -0
- package/es/v1/MultiSelect/EmptyState.js +64 -0
- package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +50 -0
- package/es/v1/MultiSelect/MobileHeader/props/defaultProps.js +7 -0
- package/es/v1/MultiSelect/MobileHeader/props/propTypes.js +7 -0
- package/es/v1/MultiSelect/MultiSelect.js +1119 -0
- package/es/v1/MultiSelect/MultiSelectHeader.js +32 -0
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +208 -0
- package/es/v1/MultiSelect/SelectedOptions.js +84 -0
- package/es/v1/MultiSelect/Suggestions.js +141 -0
- package/es/v1/MultiSelect/index.js +4 -0
- package/es/v1/MultiSelect/props/defaultProps.js +165 -0
- package/es/v1/MultiSelect/props/propTypes.js +322 -0
- package/es/v1/PopOver/PopOver.js +176 -0
- package/es/v1/PopOver/props/defaultProps.js +7 -0
- package/es/v1/PopOver/props/propTypes.js +53 -0
- package/es/v1/Popup/Popup.js +644 -0
- package/es/v1/Radio/Radio.js +130 -0
- package/es/v1/Radio/props/defaultProps.js +15 -0
- package/es/v1/Radio/props/propTypes.js +40 -0
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +56 -0
- package/es/v1/ResponsiveDropBox/props/defaultProps.js +4 -0
- package/es/v1/ResponsiveDropBox/props/propTypes.js +8 -0
- package/es/v1/Ribbon/Ribbon.js +33 -0
- package/es/v1/Ribbon/props/defaultProps.js +9 -0
- package/es/v1/Ribbon/props/propTypes.js +11 -0
- package/es/v1/RippleEffect/RippleEffect.js +25 -0
- package/es/v1/RippleEffect/props/defaultProps.js +10 -0
- package/es/v1/RippleEffect/props/propTypes.js +12 -0
- package/es/v1/Select/GroupSelect.js +818 -0
- package/es/v1/Select/Select.js +975 -0
- package/es/v1/Select/SelectWithAvatar.js +356 -0
- package/es/v1/Select/SelectWithIcon.js +545 -0
- package/es/v1/Select/index.js +4 -0
- package/es/v1/Select/props/defaultProps.js +126 -0
- package/es/v1/Select/props/propTypes.js +297 -0
- package/es/v1/Stencils/Stencils.js +26 -0
- package/es/v1/Stencils/props/defaultProps.js +6 -0
- package/es/v1/Stencils/props/propTypes.js +7 -0
- package/es/v1/Switch/Switch.js +138 -0
- package/es/v1/Switch/__tests__/Switch.spec.js +30 -0
- package/es/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +135 -0
- package/es/v1/Switch/contants/index.js +24 -0
- package/es/v1/Switch/css/Switch_v1.module.css +140 -0
- package/es/v1/Switch/css/cssJSLogic.js +48 -0
- package/es/v1/Switch/props/defaultProps.js +11 -0
- package/es/v1/Switch/props/propTypes.js +36 -0
- package/es/v1/Switch/useSwitch.js +33 -0
- package/es/v1/Tab/Tab.js +106 -0
- package/es/v1/Tab/TabContent.js +30 -0
- package/es/v1/Tab/TabContentWrapper.js +33 -0
- package/es/v1/Tab/TabWrapper.js +55 -0
- package/es/v1/Tab/Tabs.js +619 -0
- package/es/v1/Tab/index.js +5 -0
- package/es/v1/Tab/props/defaultProps.js +51 -0
- package/es/v1/Tab/props/propTypes.js +117 -0
- package/es/v1/Tab/v1Tab.module.css +100 -0
- package/es/v1/Tab/v1TabContent.module.css +4 -0
- package/es/v1/Tab/v1Tabs.module.css +167 -0
- package/es/v1/Tag/Tag.js +140 -0
- package/es/v1/Tag/props/defaultProps.js +15 -0
- package/es/v1/Tag/props/propTypes.js +36 -0
- package/es/v1/TextBox/TextBox.js +160 -0
- package/es/v1/TextBox/props/defaultProps.js +20 -0
- package/es/v1/TextBox/props/propTypes.js +56 -0
- package/es/v1/TextBoxIcon/TextBoxIcon.js +166 -0
- package/es/v1/TextBoxIcon/props/defaultProps.js +24 -0
- package/es/v1/TextBoxIcon/props/propTypes.js +53 -0
- package/es/v1/Textarea/Textarea.js +100 -0
- package/es/v1/Textarea/props/defaultProps.js +17 -0
- package/es/v1/Textarea/props/propTypes.js +31 -0
- package/es/v1/Tooltip/Tooltip.js +530 -0
- package/es/v1/Tooltip/props/defaultProps.js +4 -0
- package/es/v1/Tooltip/props/propTypes.js +5 -0
- package/es/v1/Typography/Typography.js +38 -0
- package/es/v1/Typography/css/cssJSLogic.js +56 -0
- package/es/v1/Typography/css/v1_Typography.module.css +380 -0
- package/es/v1/Typography/props/defaultProps.js +8 -0
- package/es/v1/Typography/props/propTypes.js +27 -0
- package/es/v1/Typography/utils/index.js +50 -0
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +69 -0
- package/es/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +7 -0
- package/es/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +12 -0
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +99 -0
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +15 -0
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +19 -0
- package/es/v1/semantic/Button/Button.js +53 -0
- package/es/v1/semantic/Button/props/defaultProps.js +12 -0
- package/es/v1/semantic/Button/props/propTypes.js +22 -0
- package/es/v1/semantic/index.js +1 -0
- package/lib/Accordion/Accordion.js +134 -0
- package/lib/Accordion/AccordionItem.js +111 -0
- package/lib/Accordion/__tests__/Accordion.spec.js +18 -0
- package/lib/Accordion/__tests__/AccordionItem.spec.js +24 -0
- package/lib/Accordion/__tests__/__snapshots__/Accordion.spec.js.snap +12 -0
- package/lib/Accordion/__tests__/__snapshots__/AccordionItem.spec.js.snap +23 -0
- package/lib/Accordion/index.js +23 -0
- package/lib/Accordion/props/defaultProps.js +20 -0
- package/lib/Accordion/props/propTypes.js +45 -0
- package/lib/Animation/Animation.js +102 -0
- package/lib/Animation/__tests__/Animation.spec.js +21 -0
- package/lib/Animation/__tests__/__snapshots__/Animation.spec.js.snap +11 -0
- package/lib/Animation/props/defaultProps.js +14 -0
- package/lib/Animation/props/propTypes.js +23 -0
- package/lib/Animation/utils.js +94 -0
- package/lib/AppContainer/AppContainer.js +210 -0
- package/lib/AppContainer/AppContainer.module.css +18 -0
- package/lib/AppContainer/__tests__/AppContainer.spec.js +90 -0
- package/lib/AppContainer/__tests__/__snapshots__/AppContainer.spec.js.snap +201 -0
- package/lib/AppContainer/props/defaultProps.js +17 -0
- package/lib/AppContainer/props/propTypes.js +28 -0
- package/lib/Avatar/Avatar.js +253 -0
- package/lib/Avatar/Avatar.module.css +176 -0
- package/lib/Avatar/__tests__/Avatar.spec.js +188 -0
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +591 -0
- package/lib/Avatar/props/defaultProps.js +24 -0
- package/lib/Avatar/props/propTypes.js +37 -0
- package/lib/AvatarTeam/AvatarTeam.js +133 -0
- package/lib/AvatarTeam/AvatarTeam.module.css +189 -0
- package/lib/AvatarTeam/__tests__/AvatarTeam.spec.js +145 -0
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +705 -0
- package/lib/AvatarTeam/props/defaultProps.js +24 -0
- package/lib/AvatarTeam/props/propTypes.js +40 -0
- package/lib/Button/Button.js +91 -0
- package/lib/Button/__tests__/Button.spec.js +256 -0
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +412 -0
- package/lib/Button/css/Button.module.css +613 -0
- package/lib/Button/css/cssJSLogic.js +45 -0
- package/lib/Button/index.js +23 -0
- package/lib/Button/props/defaultProps.js +27 -0
- package/lib/Button/props/propTypes.js +40 -0
- package/lib/Buttongroup/Buttongroup.js +100 -0
- package/lib/Buttongroup/Buttongroup.module.css +105 -0
- package/lib/Buttongroup/__tests__/Buttongroup.spec.js +44 -0
- package/lib/Buttongroup/__tests__/__snapshots__/Buttongroup.spec.js.snap +191 -0
- package/lib/Buttongroup/props/defaultProps.js +13 -0
- package/lib/Buttongroup/props/propTypes.js +20 -0
- package/lib/Card/Card.js +399 -0
- package/lib/Card/Card.module.css +20 -0
- package/lib/Card/__tests__/Card.spec.js +135 -0
- package/lib/Card/__tests__/__snapshots__/Card.spec.js.snap +56 -0
- package/lib/Card/index.js +37 -0
- package/lib/Card/props/defaultProps.js +36 -0
- package/lib/Card/props/propTypes.js +63 -0
- package/lib/CheckBox/CheckBox.js +223 -0
- package/lib/CheckBox/CheckBox.module.css +160 -0
- package/lib/CheckBox/__tests__/CheckBox.spec.js +248 -0
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +1878 -0
- package/lib/CheckBox/props/defaultProps.js +25 -0
- package/lib/CheckBox/props/propTypes.js +53 -0
- package/lib/DateTime/CalendarView.js +290 -0
- package/lib/DateTime/DateTime.js +879 -0
- package/lib/DateTime/DateTime.module.css +249 -0
- package/lib/DateTime/DateTimePopupFooter.js +96 -0
- package/lib/DateTime/DateTimePopupHeader.js +166 -0
- package/lib/DateTime/DateWidget.js +1173 -0
- package/lib/DateTime/DateWidget.module.css +39 -0
- package/lib/DateTime/DaysRow.js +81 -0
- package/lib/DateTime/Time.js +270 -0
- package/lib/DateTime/YearView.js +325 -0
- package/lib/DateTime/YearView.module.css +99 -0
- package/lib/DateTime/__tests__/CalendarView.spec.js +20 -0
- package/lib/DateTime/__tests__/DateTime.spec.js +28 -0
- package/lib/DateTime/__tests__/DateTimePopupFooter.spec.js +18 -0
- package/lib/DateTime/__tests__/DateTimePopupHeader.spec.js +18 -0
- package/lib/DateTime/__tests__/DateWidget.spec.js +18 -0
- package/lib/DateTime/__tests__/DaysRow.spec.js +20 -0
- package/lib/DateTime/__tests__/Time.spec.js +18 -0
- package/lib/DateTime/__tests__/YearView.spec.js +17 -0
- package/lib/DateTime/__tests__/__snapshots__/CalendarView.spec.js.snap +312 -0
- package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +938 -0
- package/lib/DateTime/__tests__/__snapshots__/DateTimePopupFooter.spec.js.snap +34 -0
- package/lib/DateTime/__tests__/__snapshots__/DateTimePopupHeader.spec.js.snap +72 -0
- package/lib/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +79 -0
- package/lib/DateTime/__tests__/__snapshots__/DaysRow.spec.js.snap +12 -0
- package/lib/DateTime/__tests__/__snapshots__/Time.spec.js.snap +310 -0
- package/lib/DateTime/common.js +36 -0
- package/lib/DateTime/constants.js +77 -0
- package/lib/DateTime/dateFormatUtils/dateFormat.js +627 -0
- package/lib/DateTime/dateFormatUtils/dateFormats.js +50 -0
- package/lib/DateTime/dateFormatUtils/dayChange.js +83 -0
- package/lib/DateTime/dateFormatUtils/index.js +307 -0
- package/lib/DateTime/dateFormatUtils/monthChange.js +96 -0
- package/lib/DateTime/dateFormatUtils/timeChange.js +240 -0
- package/lib/DateTime/dateFormatUtils/yearChange.js +121 -0
- package/lib/DateTime/index.js +15 -0
- package/lib/DateTime/objectUtils.js +76 -0
- package/lib/DateTime/props/defaultProps.js +78 -0
- package/lib/DateTime/props/propTypes.js +235 -0
- package/lib/DateTime/typeChecker.js +26 -0
- package/lib/DateTime/validator.js +353 -0
- package/lib/DropBox/DropBox.js +109 -0
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +150 -0
- package/lib/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +35 -0
- package/lib/DropBox/DropBoxElement/__tests__/__snapshots__/DropBoxElement.spec.js.snap +95 -0
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +442 -0
- package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +81 -0
- package/lib/DropBox/DropBoxElement/props/defaultProps.js +25 -0
- package/lib/DropBox/DropBoxElement/props/propTypes.js +62 -0
- package/lib/DropBox/DropBoxElement/useDropboxPosCalc.js +60 -0
- package/lib/DropBox/DropBoxPositionMapping.js +149 -0
- package/lib/DropBox/__tests__/DropBox.spec.js +18 -0
- package/lib/DropBox/__tests__/__snapshots__/DropBox.spec.js.snap +36 -0
- package/lib/DropBox/css/DropBox.module.css +59 -0
- package/lib/DropBox/css/cssJSLogic.js +20 -0
- package/lib/DropBox/props/defaultProps.js +30 -0
- package/lib/DropBox/props/propTypes.js +35 -0
- package/lib/DropBox/utils/isMobilePopover.js +25 -0
- package/lib/DropDown/DropDown.js +171 -0
- package/lib/DropDown/DropDown.module.css +5 -0
- package/lib/DropDown/DropDownHeading.js +93 -0
- package/lib/DropDown/DropDownHeading.module.css +53 -0
- package/lib/DropDown/DropDownItem.js +127 -0
- package/lib/DropDown/DropDownItem.module.css +94 -0
- package/lib/DropDown/DropDownSearch.js +117 -0
- package/lib/DropDown/DropDownSearch.module.css +14 -0
- package/lib/DropDown/DropDownSeparator.js +64 -0
- package/lib/DropDown/DropDownSeparator.module.css +7 -0
- package/lib/DropDown/__tests__/DropDown.spec.js +18 -0
- package/lib/DropDown/__tests__/DropDownHeading.spec.js +18 -0
- package/lib/DropDown/__tests__/DropDownItem.spec.js +18 -0
- package/lib/DropDown/__tests__/DropDownSearch.spec.js +18 -0
- package/lib/DropDown/__tests__/DropDownSeparator.spec.js +18 -0
- package/lib/DropDown/__tests__/__snapshots__/DropDown.spec.js.snap +54 -0
- package/lib/DropDown/__tests__/__snapshots__/DropDownHeading.spec.js.snap +12 -0
- package/lib/DropDown/__tests__/__snapshots__/DropDownItem.spec.js.snap +11 -0
- package/lib/DropDown/__tests__/__snapshots__/DropDownSearch.spec.js.snap +20 -0
- package/lib/DropDown/__tests__/__snapshots__/DropDownSeparator.spec.js.snap +9 -0
- package/lib/DropDown/index.js +65 -0
- package/lib/DropDown/props/defaultProps.js +31 -0
- package/lib/DropDown/props/propTypes.js +87 -0
- package/lib/Heading/Heading.js +94 -0
- package/lib/Heading/Heading.module.css +5 -0
- package/lib/Heading/__tests__/Heading.spec.js +27 -0
- package/lib/Heading/__tests__/__snapshots__/Heading.spec.js.snap +63 -0
- package/lib/Heading/props/defaultProps.js +12 -0
- package/lib/Heading/props/propTypes.js +23 -0
- package/lib/Label/Label.js +97 -0
- package/lib/Label/Label.module.css +57 -0
- package/lib/Label/LabelColors.module.css +21 -0
- package/lib/Label/__tests__/Label.spec.js +106 -0
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +312 -0
- package/lib/Label/props/defaultProps.js +18 -0
- package/lib/Label/props/propTypes.js +30 -0
- package/lib/Layout/Box.js +128 -0
- package/lib/Layout/Container.js +145 -0
- package/lib/Layout/Layout.module.css +336 -0
- package/lib/Layout/__tests__/Box.spec.js +18 -0
- package/lib/Layout/__tests__/Container.spec.js +18 -0
- package/lib/Layout/__tests__/__snapshots__/Box.spec.js.snap +16 -0
- package/lib/Layout/__tests__/__snapshots__/Container.spec.js.snap +16 -0
- package/lib/Layout/index.js +23 -0
- package/lib/Layout/props/defaultProps.js +24 -0
- package/lib/Layout/props/propTypes.js +58 -0
- package/lib/Layout/utils.js +59 -0
- package/lib/ListItem/ListContainer.js +129 -0
- package/lib/ListItem/ListItem.js +204 -0
- package/lib/ListItem/ListItem.module.css +261 -0
- package/lib/ListItem/ListItemWithAvatar.js +234 -0
- package/lib/ListItem/ListItemWithCheckBox.js +195 -0
- package/lib/ListItem/ListItemWithIcon.js +213 -0
- package/lib/ListItem/ListItemWithRadio.js +198 -0
- package/lib/ListItem/__tests__/ListContainer.spec.js +26 -0
- package/lib/ListItem/__tests__/ListItem.spec.js +18 -0
- package/lib/ListItem/__tests__/ListItemWithAvatar.spec.js +53 -0
- package/lib/ListItem/__tests__/ListItemWithCheckBox.spec.js +53 -0
- package/lib/ListItem/__tests__/ListItemWithIcon.spec.js +53 -0
- package/lib/ListItem/__tests__/ListItemWithRadio.spec.js +53 -0
- package/lib/ListItem/__tests__/__snapshots__/ListContainer.spec.js.snap +27 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +29 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +222 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +492 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +222 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +487 -0
- package/lib/ListItem/index.js +55 -0
- package/lib/ListItem/props/defaultProps.js +117 -0
- package/lib/ListItem/props/propTypes.js +214 -0
- package/lib/Modal/Modal.js +236 -0
- package/lib/Modal/Portal/Portal.js +46 -0
- package/lib/Modal/Portal/__tests__/Portal.spec.js +37 -0
- package/lib/Modal/Portal/__tests__/__snapshots__/Portal.spec.js.snap +30 -0
- package/lib/Modal/Portal/props/defaultProps.js +10 -0
- package/lib/Modal/Portal/props/propTypes.js +16 -0
- package/lib/Modal/__tests__/Modal.spec.js +22 -0
- package/lib/Modal/__tests__/__snapshots__/Modal.spec.js.snap +26 -0
- package/lib/Modal/props/defaultProps.js +10 -0
- package/lib/Modal/props/propTypes.js +18 -0
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +1198 -0
- package/lib/MultiSelect/AdvancedMultiSelect.js +673 -0
- package/lib/MultiSelect/EmptyState.js +114 -0
- package/lib/MultiSelect/MobileHeader/MobileHeader.js +62 -0
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -0
- package/lib/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +18 -0
- package/lib/MultiSelect/MobileHeader/__tests__/__snapshots__/MobileHeader.spec.js.snap +39 -0
- package/lib/MultiSelect/MobileHeader/props/defaultProps.js +14 -0
- package/lib/MultiSelect/MobileHeader/props/propTypes.js +18 -0
- package/lib/MultiSelect/MultiSelect.js +1269 -0
- package/lib/MultiSelect/MultiSelect.module.css +216 -0
- package/lib/MultiSelect/MultiSelectHeader.js +78 -0
- package/lib/MultiSelect/MultiSelectWithAvatar.js +276 -0
- package/lib/MultiSelect/SelectedOptions.js +132 -0
- package/lib/MultiSelect/SelectedOptions.module.css +15 -0
- package/lib/MultiSelect/Suggestions.js +279 -0
- package/lib/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +20 -0
- package/lib/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +56 -0
- package/lib/MultiSelect/__tests__/EmptyState.spec.js +22 -0
- package/lib/MultiSelect/__tests__/MultiSelect.spec.js +43 -0
- package/lib/MultiSelect/__tests__/MultiSelectHeader.spec.js +28 -0
- package/lib/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +18 -0
- package/lib/MultiSelect/__tests__/SelectedOptions.spec.js +35 -0
- package/lib/MultiSelect/__tests__/Suggestions.spec.js +78 -0
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +74 -0
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +534 -0
- package/lib/MultiSelect/__tests__/__snapshots__/EmptyState.spec.js.snap +12 -0
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +339 -0
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectHeader.spec.js.snap +63 -0
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +85 -0
- package/lib/MultiSelect/__tests__/__snapshots__/SelectedOptions.spec.js.snap +80 -0
- package/lib/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +363 -0
- package/lib/MultiSelect/constants.js +13 -0
- package/lib/MultiSelect/index.js +39 -0
- package/lib/MultiSelect/props/defaultProps.js +189 -0
- package/lib/MultiSelect/props/propTypes.js +325 -0
- package/lib/PopOver/PopOver.js +293 -0
- package/lib/PopOver/PopOver.module.css +9 -0
- package/lib/PopOver/__tests__/PopOver.spec.js +18 -0
- package/lib/PopOver/__tests__/__snapshots__/PopOver.spec.js.snap +13 -0
- package/lib/PopOver/index.js +31 -0
- package/lib/PopOver/props/defaultProps.js +15 -0
- package/lib/PopOver/props/propTypes.js +66 -0
- package/lib/Popup/Popup.js +1196 -0
- package/lib/Popup/PositionMapping.js +81 -0
- package/lib/Popup/Registry.js +46 -0
- package/lib/Popup/intersectionObserver.js +72 -0
- package/lib/Popup/props/propTypes.js +51 -0
- package/lib/Popup/viewPort.js +367 -0
- package/lib/Provider/AvatarSize.js +24 -0
- package/lib/Provider/Config.js +30 -0
- package/lib/Provider/CssProvider.js +27 -0
- package/lib/Provider/IdProvider.js +80 -0
- package/lib/Provider/LibraryContext.js +94 -0
- package/lib/Provider/LibraryContextInit.js +15 -0
- package/lib/Provider/NumberGenerator/NumberGenerator.js +174 -0
- package/lib/Provider/ZindexProvider.js +69 -0
- package/lib/Provider/index.js +81 -0
- package/lib/Radio/Radio.js +189 -0
- package/lib/Radio/Radio.module.css +115 -0
- package/lib/Radio/__tests__/Radio.spec.js +246 -0
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +1916 -0
- package/lib/Radio/props/defaultProps.js +22 -0
- package/lib/Radio/props/propTypes.js +52 -0
- package/lib/Responsive/CustomResponsive.js +242 -0
- package/lib/Responsive/RefWrapper.js +56 -0
- package/lib/Responsive/ResizeComponent.js +268 -0
- package/lib/Responsive/ResizeObserver.js +100 -0
- package/lib/Responsive/ResizeObserverWithPolyfill.js +168 -0
- package/lib/Responsive/Responsive.js +274 -0
- package/lib/Responsive/index.js +55 -0
- package/lib/Responsive/props/defaultProps.js +23 -0
- package/lib/Responsive/props/propTypes.js +39 -0
- package/lib/Responsive/sizeObservers.js +214 -0
- package/lib/Responsive/utils/index.js +70 -0
- package/lib/Responsive/utils/shallowCompare.js +38 -0
- package/lib/Responsive/windowResizeObserver.js +63 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +124 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
- package/lib/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +18 -0
- package/lib/ResponsiveDropBox/__tests__/__snapshots__/ResponsiveDropBox.spec.js.snap +42 -0
- package/lib/ResponsiveDropBox/props/defaultProps.js +11 -0
- package/lib/ResponsiveDropBox/props/propTypes.js +27 -0
- package/lib/Ribbon/Ribbon.js +98 -0
- package/lib/Ribbon/Ribbon.module.css +500 -0
- package/lib/Ribbon/__tests__/Ribbon.spec.js +59 -0
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +374 -0
- package/lib/Ribbon/props/defaultProps.js +16 -0
- package/lib/Ribbon/props/propTypes.js +22 -0
- package/lib/RippleEffect/RippleEffect.js +45 -0
- package/lib/RippleEffect/RippleEffect.module.css +109 -0
- package/lib/RippleEffect/__tests__/RippleEffect.spec.js +76 -0
- package/lib/RippleEffect/__tests__/__snapshots__/RippleEffect.spec.js.snap +161 -0
- package/lib/RippleEffect/props/defaultProps.js +17 -0
- package/lib/RippleEffect/props/propTypes.js +23 -0
- package/lib/Select/GroupSelect.js +901 -0
- package/lib/Select/Select.js +1067 -0
- package/lib/Select/Select.module.css +138 -0
- package/lib/Select/SelectWithAvatar.js +408 -0
- package/lib/Select/SelectWithIcon.js +632 -0
- package/lib/Select/__tests__/GroupSelect.spec.js +27 -0
- package/lib/Select/__tests__/Select.spec.js +1398 -0
- package/lib/Select/__tests__/SelectWithAvatar.spec.js +20 -0
- package/lib/Select/__tests__/SelectWithIcon.spec.js +20 -0
- package/lib/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +90 -0
- package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +10446 -0
- package/lib/Select/__tests__/__snapshots__/SelectWithAvatar.spec.js.snap +45 -0
- package/lib/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +108 -0
- package/lib/Select/index.js +39 -0
- package/lib/Select/props/defaultProps.js +129 -0
- package/lib/Select/props/propTypes.js +333 -0
- package/lib/Stencils/Stencils.js +72 -0
- package/lib/Stencils/Stencils.module.css +100 -0
- package/lib/Stencils/__tests__/Stencils.spec.js +61 -0
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +105 -0
- package/lib/Stencils/props/defaultProps.js +14 -0
- package/lib/Stencils/props/propTypes.js +19 -0
- package/lib/Switch/Switch.js +152 -0
- package/lib/Switch/Switch.module.css +128 -0
- package/lib/Switch/__tests__/Switch.spec.js +163 -0
- package/lib/Switch/__tests__/__snapshots__/Switch.spec.js.snap +831 -0
- package/lib/Switch/props/defaultProps.js +18 -0
- package/lib/Switch/props/propTypes.js +39 -0
- package/lib/Tab/Tab.js +134 -0
- package/lib/Tab/Tab.module.css +100 -0
- package/lib/Tab/TabContent.js +42 -0
- package/lib/Tab/TabContent.module.css +4 -0
- package/lib/Tab/TabContentWrapper.js +47 -0
- package/lib/Tab/TabWrapper.js +91 -0
- package/lib/Tab/Tabs.js +787 -0
- package/lib/Tab/Tabs.module.css +167 -0
- package/lib/Tab/__tests__/Tab.spec.js +18 -0
- package/lib/Tab/__tests__/TabContent.spec.js +18 -0
- package/lib/Tab/__tests__/TabContentWrapper.spec.js +18 -0
- package/lib/Tab/__tests__/TabLayout.spec.js +41 -0
- package/lib/Tab/__tests__/TabWrapper.spec.js +18 -0
- package/lib/Tab/__tests__/Tabs.spec.js +18 -0
- package/lib/Tab/__tests__/__snapshots__/Tab.spec.js.snap +22 -0
- package/lib/Tab/__tests__/__snapshots__/TabContent.spec.js.snap +19 -0
- package/lib/Tab/__tests__/__snapshots__/TabContentWrapper.spec.js.snap +12 -0
- package/lib/Tab/__tests__/__snapshots__/TabLayout.spec.js.snap +341 -0
- package/lib/Tab/__tests__/__snapshots__/TabWrapper.spec.js.snap +20 -0
- package/lib/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +33 -0
- package/lib/Tab/index.js +47 -0
- package/lib/Tab/props/defaultProps.js +62 -0
- package/lib/Tab/props/propTypes.js +132 -0
- package/lib/Tab/utils/tabConfigs.js +27 -0
- package/lib/Tag/Tag.js +219 -0
- package/lib/Tag/Tag.module.css +254 -0
- package/lib/Tag/__tests__/Tag.spec.js +270 -0
- package/lib/Tag/__tests__/__snapshots__/Tag.spec.js.snap +3074 -0
- package/lib/Tag/props/defaultProps.js +23 -0
- package/lib/Tag/props/propTypes.js +55 -0
- package/lib/TextBox/TextBox.js +233 -0
- package/lib/TextBox/TextBox.module.css +197 -0
- package/lib/TextBox/__tests__/TextBox.spec.js +334 -0
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +615 -0
- package/lib/TextBox/props/defaultProps.js +27 -0
- package/lib/TextBox/props/propTypes.js +64 -0
- package/lib/TextBoxIcon/TextBoxIcon.js +253 -0
- package/lib/TextBoxIcon/TextBoxIcon.module.css +79 -0
- package/lib/TextBoxIcon/__tests__/TextBoxIcon.spec.js +279 -0
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +1784 -0
- package/lib/TextBoxIcon/props/defaultProps.js +31 -0
- package/lib/TextBoxIcon/props/propTypes.js +74 -0
- package/lib/Textarea/Textarea.js +168 -0
- package/lib/Textarea/Textarea.module.css +148 -0
- package/lib/Textarea/__tests__/Textarea.spec.js +273 -0
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +525 -0
- package/lib/Textarea/props/defaultProps.js +25 -0
- package/lib/Textarea/props/propTypes.js +46 -0
- package/lib/Tooltip/Tooltip.js +599 -0
- package/lib/Tooltip/Tooltip.module.css +133 -0
- package/lib/Tooltip/props/defaultProps.js +11 -0
- package/lib/Tooltip/props/propTypes.js +16 -0
- package/lib/Typography/Typography.js +56 -0
- package/lib/Typography/css/Typography.module.css +489 -0
- package/lib/Typography/css/cssJSLogic.js +48 -0
- package/lib/Typography/props/defaultProps.js +15 -0
- package/lib/Typography/props/propTypes.js +38 -0
- package/lib/Typography/utils/index.js +59 -0
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +126 -0
- package/lib/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +18 -0
- package/lib/VelocityAnimation/VelocityAnimation/__tests__/__snapshots__/VelocityAnimation.spec.js.snap +9 -0
- package/lib/VelocityAnimation/VelocityAnimation/props/defaultProps.js +14 -0
- package/lib/VelocityAnimation/VelocityAnimation/props/propTypes.js +23 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +216 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +26 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/__tests__/__snapshots__/VelocityAnimationGroup.spec.js.snap +11 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +22 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +33 -0
- package/lib/VelocityAnimation/index.js +23 -0
- package/lib/common/a11y.module.css +4 -0
- package/lib/common/animation.module.css +624 -0
- package/lib/common/avatarsizes.module.css +49 -0
- package/lib/common/basic.module.css +31 -0
- package/lib/common/basicReset.module.css +40 -0
- package/lib/common/boxShadow.module.css +34 -0
- package/lib/common/common.module.css +566 -0
- package/lib/common/customscroll.module.css +142 -0
- package/lib/common/reset.module.css +13 -0
- package/lib/common/transition.module.css +146 -0
- package/lib/components_layer.module.css +1 -0
- package/lib/css.js +83 -0
- package/lib/deprecated/PortalLayer/PortalLayer.js +153 -0
- package/lib/deprecated/PortalLayer/props/defaultProps.js +12 -0
- package/lib/deprecated/PortalLayer/props/propTypes.js +32 -0
- package/lib/deprecated/Switch/Switch.js +108 -0
- package/lib/deprecated/Switch/props/defaultProps.js +18 -0
- package/lib/deprecated/Switch/props/propTypes.js +39 -0
- package/lib/index.js +417 -0
- package/lib/semantic/Button/Button.js +104 -0
- package/lib/semantic/Button/__tests__/Button.spec.js +18 -0
- package/lib/semantic/Button/__tests__/__snapshots__/Button.spec.js.snap +15 -0
- package/lib/semantic/Button/props/defaultProps.js +19 -0
- package/lib/semantic/Button/props/propTypes.js +33 -0
- package/lib/semantic/Button/semanticButton.module.css +9 -0
- package/lib/semantic/index.js +15 -0
- package/lib/utils/Common.js +521 -0
- package/lib/utils/ContextOptimizer.js +49 -0
- package/lib/utils/constant.js +10 -0
- package/lib/utils/constructFullName.js +34 -0
- package/lib/utils/cssUtils.js +22 -0
- package/lib/utils/datetime/GMTZones.js +55 -0
- package/lib/utils/datetime/common.js +251 -0
- package/lib/utils/debounce.js +30 -0
- package/lib/utils/dropDownUtils.js +691 -0
- package/lib/utils/dummyFunction.js +10 -0
- package/lib/utils/getHTMLFontSize.js +11 -0
- package/lib/utils/getInitial.js +33 -0
- package/lib/utils/index.js +103 -0
- package/lib/utils/scrollTo.js +22 -0
- package/lib/utils/shallowEqual.js +41 -0
- package/lib/v1/Accordion/Accordion.js +98 -0
- package/lib/v1/Accordion/AccordionItem.js +68 -0
- package/lib/v1/Accordion/index.js +23 -0
- package/lib/v1/Accordion/props/defaultProps.js +20 -0
- package/lib/v1/Accordion/props/propTypes.js +45 -0
- package/lib/v1/Animation/Animation.js +61 -0
- package/lib/v1/Animation/props/defaultProps.js +14 -0
- package/lib/v1/Animation/props/propTypes.js +23 -0
- package/lib/v1/Animation/utils.js +94 -0
- package/lib/v1/AppContainer/AppContainer.js +146 -0
- package/lib/v1/AppContainer/props/defaultProps.js +17 -0
- package/lib/v1/AppContainer/props/propTypes.js +28 -0
- package/lib/v1/Avatar/Avatar.js +191 -0
- package/lib/v1/Avatar/props/defaultProps.js +24 -0
- package/lib/v1/Avatar/props/propTypes.js +37 -0
- package/lib/v1/AvatarTeam/AvatarTeam.js +81 -0
- package/lib/v1/AvatarTeam/props/defaultProps.js +24 -0
- package/lib/v1/AvatarTeam/props/propTypes.js +38 -0
- package/lib/v1/Button/Button.js +82 -0
- package/lib/v1/Button/props/defaultProps.js +27 -0
- package/lib/v1/Button/props/propTypes.js +40 -0
- package/lib/v1/Buttongroup/Buttongroup.js +44 -0
- package/lib/v1/Buttongroup/props/defaultProps.js +13 -0
- package/lib/v1/Buttongroup/props/propTypes.js +20 -0
- package/lib/v1/Card/Card.js +269 -0
- package/lib/v1/Card/index.js +37 -0
- package/lib/v1/Card/props/defaultProps.js +35 -0
- package/lib/v1/Card/props/propTypes.js +62 -0
- package/lib/v1/CheckBox/CheckBox.js +172 -0
- package/lib/v1/CheckBox/props/defaultProps.js +25 -0
- package/lib/v1/CheckBox/props/propTypes.js +52 -0
- package/lib/v1/DateTime/CalendarView.js +322 -0
- package/lib/v1/DateTime/DateTime.js +877 -0
- package/lib/v1/DateTime/DateTimePopupFooter.js +96 -0
- package/lib/v1/DateTime/DateTimePopupHeader.js +166 -0
- package/lib/v1/DateTime/DateWidget.js +1163 -0
- package/lib/v1/DateTime/DaysRow.js +81 -0
- package/lib/v1/DateTime/Time.js +270 -0
- package/lib/v1/DateTime/YearView.js +325 -0
- package/lib/v1/DateTime/index.js +15 -0
- package/lib/v1/DateTime/props/defaultProps.js +76 -0
- package/lib/v1/DateTime/props/propTypes.js +238 -0
- package/lib/v1/DropBox/DropBox.js +109 -0
- package/lib/v1/DropBox/DropBoxElement/DropBoxElement.js +146 -0
- package/lib/v1/DropBox/DropBoxElement/props/defaultProps.js +25 -0
- package/lib/v1/DropBox/DropBoxElement/props/propTypes.js +62 -0
- package/lib/v1/DropBox/props/defaultProps.js +30 -0
- package/lib/v1/DropBox/props/propTypes.js +35 -0
- package/lib/v1/DropBox/utils/isMobilePopover.js +25 -0
- package/lib/v1/DropDown/DropDown.js +74 -0
- package/lib/v1/DropDown/DropDownHeading.js +47 -0
- package/lib/v1/DropDown/DropDownItem.js +75 -0
- package/lib/v1/DropDown/DropDownSearch.js +77 -0
- package/lib/v1/DropDown/DropDownSeparator.js +24 -0
- package/lib/v1/DropDown/props/defaultProps.js +31 -0
- package/lib/v1/DropDown/props/propTypes.js +87 -0
- package/lib/v1/Heading/Heading.js +53 -0
- package/lib/v1/Heading/props/defaultProps.js +12 -0
- package/lib/v1/Heading/props/propTypes.js +23 -0
- package/lib/v1/Label/Label.js +51 -0
- package/lib/v1/Label/props/defaultProps.js +18 -0
- package/lib/v1/Label/props/propTypes.js +30 -0
- package/lib/v1/Layout/Box.js +128 -0
- package/lib/v1/Layout/Container.js +145 -0
- package/lib/v1/Layout/index.js +23 -0
- package/lib/v1/Layout/props/defaultProps.js +24 -0
- package/lib/v1/Layout/props/propTypes.js +58 -0
- package/lib/v1/ListItem/ListContainer.js +128 -0
- package/lib/v1/ListItem/ListItem.js +138 -0
- package/lib/v1/ListItem/ListItemWithAvatar.js +167 -0
- package/lib/v1/ListItem/ListItemWithCheckBox.js +126 -0
- package/lib/v1/ListItem/ListItemWithIcon.js +143 -0
- package/lib/v1/ListItem/ListItemWithRadio.js +127 -0
- package/lib/v1/ListItem/index.js +55 -0
- package/lib/v1/ListItem/props/defaultProps.js +109 -0
- package/lib/v1/ListItem/props/propTypes.js +196 -0
- package/lib/v1/Modal/Modal.js +166 -0
- package/lib/v1/Modal/props/defaultProps.js +10 -0
- package/lib/v1/Modal/props/propTypes.js +18 -0
- package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1180 -0
- package/lib/v1/MultiSelect/AdvancedMultiSelect.js +649 -0
- package/lib/v1/MultiSelect/EmptyState.js +112 -0
- package/lib/v1/MultiSelect/MobileHeader/MobileHeader.js +62 -0
- package/lib/v1/MultiSelect/MobileHeader/props/defaultProps.js +14 -0
- package/lib/v1/MultiSelect/MobileHeader/props/propTypes.js +18 -0
- package/lib/v1/MultiSelect/MultiSelect.js +1202 -0
- package/lib/v1/MultiSelect/MultiSelectHeader.js +78 -0
- package/lib/v1/MultiSelect/MultiSelectWithAvatar.js +262 -0
- package/lib/v1/MultiSelect/SelectedOptions.js +130 -0
- package/lib/v1/MultiSelect/Suggestions.js +196 -0
- package/lib/v1/MultiSelect/index.js +39 -0
- package/lib/v1/MultiSelect/props/defaultProps.js +181 -0
- package/lib/v1/MultiSelect/props/propTypes.js +350 -0
- package/lib/v1/PopOver/PopOver.js +197 -0
- package/lib/v1/PopOver/props/defaultProps.js +15 -0
- package/lib/v1/PopOver/props/propTypes.js +66 -0
- package/lib/v1/Popup/Popup.js +715 -0
- package/lib/v1/Radio/Radio.js +141 -0
- package/lib/v1/Radio/props/defaultProps.js +22 -0
- package/lib/v1/Radio/props/propTypes.js +51 -0
- package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +79 -0
- package/lib/v1/ResponsiveDropBox/props/defaultProps.js +11 -0
- package/lib/v1/ResponsiveDropBox/props/propTypes.js +27 -0
- package/lib/v1/Ribbon/Ribbon.js +44 -0
- package/lib/v1/Ribbon/props/defaultProps.js +16 -0
- package/lib/v1/Ribbon/props/propTypes.js +22 -0
- package/lib/v1/RippleEffect/RippleEffect.js +40 -0
- package/lib/v1/RippleEffect/props/defaultProps.js +17 -0
- package/lib/v1/RippleEffect/props/propTypes.js +23 -0
- package/lib/v1/Select/GroupSelect.js +894 -0
- package/lib/v1/Select/Select.js +1025 -0
- package/lib/v1/Select/SelectWithAvatar.js +406 -0
- package/lib/v1/Select/SelectWithIcon.js +607 -0
- package/lib/v1/Select/index.js +39 -0
- package/lib/v1/Select/props/defaultProps.js +125 -0
- package/lib/v1/Select/props/propTypes.js +319 -0
- package/lib/v1/Stencils/Stencils.js +43 -0
- package/lib/v1/Stencils/props/defaultProps.js +13 -0
- package/lib/v1/Stencils/props/propTypes.js +18 -0
- package/lib/v1/Switch/Switch.js +159 -0
- package/lib/v1/Switch/__tests__/Switch.spec.js +37 -0
- package/lib/v1/Switch/__tests__/__snapshots__/Switch.spec.js.snap +135 -0
- package/lib/v1/Switch/contants/index.js +34 -0
- package/lib/v1/Switch/css/Switch_v1.module.css +140 -0
- package/lib/v1/Switch/css/cssJSLogic.js +37 -0
- package/lib/v1/Switch/props/defaultProps.js +18 -0
- package/lib/v1/Switch/props/propTypes.js +47 -0
- package/lib/v1/Switch/useSwitch.js +56 -0
- package/lib/v1/Tab/Tab.js +132 -0
- package/lib/v1/Tab/TabContent.js +42 -0
- package/lib/v1/Tab/TabContentWrapper.js +47 -0
- package/lib/v1/Tab/TabWrapper.js +89 -0
- package/lib/v1/Tab/Tabs.js +688 -0
- package/lib/v1/Tab/index.js +47 -0
- package/lib/v1/Tab/props/defaultProps.js +62 -0
- package/lib/v1/Tab/props/propTypes.js +132 -0
- package/lib/v1/Tab/v1Tab.module.css +100 -0
- package/lib/v1/Tab/v1TabContent.module.css +4 -0
- package/lib/v1/Tab/v1Tabs.module.css +167 -0
- package/lib/v1/Tag/Tag.js +160 -0
- package/lib/v1/Tag/props/defaultProps.js +22 -0
- package/lib/v1/Tag/props/propTypes.js +47 -0
- package/lib/v1/TextBox/TextBox.js +175 -0
- package/lib/v1/TextBox/props/defaultProps.js +27 -0
- package/lib/v1/TextBox/props/propTypes.js +62 -0
- package/lib/v1/TextBoxIcon/TextBoxIcon.js +206 -0
- package/lib/v1/TextBoxIcon/props/defaultProps.js +31 -0
- package/lib/v1/TextBoxIcon/props/propTypes.js +72 -0
- package/lib/v1/Textarea/Textarea.js +118 -0
- package/lib/v1/Textarea/props/defaultProps.js +24 -0
- package/lib/v1/Textarea/props/propTypes.js +42 -0
- package/lib/v1/Tooltip/Tooltip.js +599 -0
- package/lib/v1/Tooltip/props/defaultProps.js +11 -0
- package/lib/v1/Tooltip/props/propTypes.js +16 -0
- package/lib/v1/Typography/Typography.js +56 -0
- package/lib/v1/Typography/css/cssJSLogic.js +48 -0
- package/lib/v1/Typography/css/v1_Typography.module.css +380 -0
- package/lib/v1/Typography/props/defaultProps.js +15 -0
- package/lib/v1/Typography/props/propTypes.js +38 -0
- package/lib/v1/Typography/utils/index.js +59 -0
- package/lib/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +90 -0
- package/lib/v1/VelocityAnimation/VelocityAnimation/props/defaultProps.js +14 -0
- package/lib/v1/VelocityAnimation/VelocityAnimation/props/propTypes.js +23 -0
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +126 -0
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js +22 -0
- package/lib/v1/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js +30 -0
- package/lib/v1/semantic/Button/Button.js +63 -0
- package/lib/v1/semantic/Button/props/defaultProps.js +19 -0
- package/lib/v1/semantic/Button/props/propTypes.js +33 -0
- package/lib/v1/semantic/index.js +15 -0
- package/package.json +7 -12
- package/.cli/MissedPropType_Keys.html +0 -101
- package/.cli/PropLessFiles.html +0 -101
- package/.cli/PropUnificationExcludeFilesArray.js +0 -231
- package/.cli/PropValidationExcludeFilesArray.js +0 -1
- package/.cli/ThemeValidationExcludeFiles.js +0 -1
- package/.cli/UnValidatedFiles.html +0 -101
- package/.cli/config/variables/variableMapping.json +0 -13
- package/.cli/propValidation_report.html +0 -182
- package/.cli/themeValidate/stringContains.js +0 -1
- package/PropValidationExcludeFilesArray.js +0 -1
- package/coverage/__testUtils__/MockResizeObserver.js.html +0 -163
- package/coverage/__testUtils__/index.html +0 -116
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/coverage-final.json +0 -14
- package/coverage/coverage-summary.json +0 -15
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -206
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/src/Accordion/Accordion.js.html +0 -307
- package/coverage/src/Accordion/AccordionItem.js.html +0 -232
- package/coverage/src/Accordion/index.html +0 -116
- package/coverage/src/Accordion/props/defaultProps.js.html +0 -124
- package/coverage/src/Accordion/props/index.html +0 -131
- package/coverage/src/Accordion/props/propTypes.js.html +0 -190
- package/coverage/src/Animation/Animation.js.html +0 -256
- package/coverage/src/Animation/index.html +0 -131
- package/coverage/src/Animation/props/defaultProps.js.html +0 -106
- package/coverage/src/Animation/props/index.html +0 -131
- package/coverage/src/Animation/props/propTypes.js.html +0 -124
- package/coverage/src/Animation/utils.js.html +0 -331
- package/coverage/src/AppContainer/AppContainer.js.html +0 -475
- package/coverage/src/AppContainer/AppContainer.module.css.html +0 -139
- package/coverage/src/AppContainer/index.html +0 -116
- package/coverage/src/AppContainer/props/defaultProps.js.html +0 -115
- package/coverage/src/AppContainer/props/index.html +0 -131
- package/coverage/src/AppContainer/props/propTypes.js.html +0 -139
- package/coverage/src/Avatar/Avatar.js.html +0 -652
- package/coverage/src/Avatar/Avatar.module.css.html +0 -556
- package/coverage/src/Avatar/index.html +0 -131
- package/coverage/src/Avatar/props/defaultProps.js.html +0 -136
- package/coverage/src/Avatar/props/index.html +0 -131
- package/coverage/src/Avatar/props/propTypes.js.html +0 -166
- package/coverage/src/AvatarTeam/AvatarTeam.js.html +0 -340
- package/coverage/src/AvatarTeam/AvatarTeam.module.css.html +0 -610
- package/coverage/src/AvatarTeam/index.html +0 -131
- package/coverage/src/AvatarTeam/props/defaultProps.js.html +0 -136
- package/coverage/src/AvatarTeam/props/index.html +0 -116
- package/coverage/src/AvatarTeam/props/propTypes.js.html +0 -172
- package/coverage/src/Button/Button.js.html +0 -337
- package/coverage/src/Button/css/Button.module.css.html +0 -1693
- package/coverage/src/Button/css/cssJSLogic.js.html +0 -220
- package/coverage/src/Button/css/index.html +0 -131
- package/coverage/src/Button/index.html +0 -116
- package/coverage/src/Button/props/defaultProps.js.html +0 -142
- package/coverage/src/Button/props/index.html +0 -131
- package/coverage/src/Button/props/propTypes.js.html +0 -220
- package/coverage/src/Buttongroup/Buttongroup.js.html +0 -220
- package/coverage/src/Buttongroup/Buttongroup.module.css.html +0 -298
- package/coverage/src/Buttongroup/index.html +0 -131
- package/coverage/src/Buttongroup/props/defaultProps.js.html +0 -103
- package/coverage/src/Buttongroup/props/index.html +0 -131
- package/coverage/src/Buttongroup/props/propTypes.js.html +0 -115
- package/coverage/src/Card/Card.js.html +0 -976
- package/coverage/src/Card/Card.module.css.html +0 -145
- package/coverage/src/Card/index.html +0 -131
- package/coverage/src/Card/props/defaultProps.js.html +0 -172
- package/coverage/src/Card/props/index.html +0 -131
- package/coverage/src/Card/props/propTypes.js.html +0 -244
- package/coverage/src/CheckBox/CheckBox.js.html +0 -625
- package/coverage/src/CheckBox/CheckBox.module.css.html +0 -547
- package/coverage/src/CheckBox/index.html +0 -131
- package/coverage/src/CheckBox/props/defaultProps.js.html +0 -139
- package/coverage/src/CheckBox/props/index.html +0 -131
- package/coverage/src/CheckBox/props/propTypes.js.html +0 -214
- package/coverage/src/DateTime/CalendarView.js.html +0 -706
- package/coverage/src/DateTime/DateTime.js.html +0 -1954
- package/coverage/src/DateTime/DateTime.module.css.html +0 -733
- package/coverage/src/DateTime/DateTimePopupFooter.js.html +0 -187
- package/coverage/src/DateTime/DateTimePopupHeader.js.html +0 -346
- package/coverage/src/DateTime/DateWidget.js.html +0 -2920
- package/coverage/src/DateTime/DateWidget.module.css.html +0 -190
- package/coverage/src/DateTime/DaysRow.js.html +0 -178
- package/coverage/src/DateTime/Time.js.html +0 -595
- package/coverage/src/DateTime/YearView.js.html +0 -736
- package/coverage/src/DateTime/YearView.module.css.html +0 -340
- package/coverage/src/DateTime/constants.js.html +0 -370
- package/coverage/src/DateTime/dateFormatUtils/dateFormat.js.html +0 -1714
- package/coverage/src/DateTime/dateFormatUtils/dateFormats.js.html +0 -436
- package/coverage/src/DateTime/dateFormatUtils/dayChange.js.html +0 -289
- package/coverage/src/DateTime/dateFormatUtils/index.html +0 -146
- package/coverage/src/DateTime/dateFormatUtils/index.js.html +0 -748
- package/coverage/src/DateTime/dateFormatUtils/monthChange.js.html +0 -325
- package/coverage/src/DateTime/dateFormatUtils/timeChange.js.html +0 -748
- package/coverage/src/DateTime/dateFormatUtils/yearChange.js.html +0 -427
- package/coverage/src/DateTime/index.html +0 -146
- package/coverage/src/DateTime/objectUtils.js.html +0 -274
- package/coverage/src/DateTime/props/defaultProps.js.html +0 -298
- package/coverage/src/DateTime/props/index.html +0 -131
- package/coverage/src/DateTime/props/propTypes.js.html +0 -721
- package/coverage/src/DateTime/typeChecker.js.html +0 -148
- package/coverage/src/DateTime/validator.js.html +0 -1378
- package/coverage/src/DropBox/DropBox.js.html +0 -355
- package/coverage/src/DropBox/DropBoxElement/DropBoxElement.js.html +0 -463
- package/coverage/src/DropBox/DropBoxElement/css/DropBoxElement.module.css.html +0 -1336
- package/coverage/src/DropBox/DropBoxElement/css/cssJSLogic.js.html +0 -349
- package/coverage/src/DropBox/DropBoxElement/css/index.html +0 -131
- package/coverage/src/DropBox/DropBoxElement/index.html +0 -131
- package/coverage/src/DropBox/DropBoxElement/props/defaultProps.js.html +0 -139
- package/coverage/src/DropBox/DropBoxElement/props/index.html +0 -131
- package/coverage/src/DropBox/DropBoxElement/props/propTypes.js.html +0 -313
- package/coverage/src/DropBox/DropBoxElement/useDropboxPosCalc.js.html +0 -244
- package/coverage/src/DropBox/DropBoxPositionMapping.js.html +0 -511
- package/coverage/src/DropBox/css/DropBox.module.css.html +0 -208
- package/coverage/src/DropBox/css/cssJSLogic.js.html +0 -118
- package/coverage/src/DropBox/css/index.html +0 -131
- package/coverage/src/DropBox/index.html +0 -131
- package/coverage/src/DropBox/props/defaultProps.js.html +0 -136
- package/coverage/src/DropBox/props/index.html +0 -131
- package/coverage/src/DropBox/props/propTypes.js.html +0 -142
- package/coverage/src/DropBox/utils/index.html +0 -116
- package/coverage/src/DropBox/utils/isMobilePopover.js.html +0 -133
- package/coverage/src/DropDown/DropDown.js.html +0 -310
- package/coverage/src/DropDown/DropDown.module.css.html +0 -100
- package/coverage/src/DropDown/DropDownHeading.js.html +0 -196
- package/coverage/src/DropDown/DropDownHeading.module.css.html +0 -232
- package/coverage/src/DropDown/DropDownItem.js.html +0 -271
- package/coverage/src/DropDown/DropDownItem.module.css.html +0 -289
- package/coverage/src/DropDown/DropDownSearch.js.html +0 -229
- package/coverage/src/DropDown/DropDownSearch.module.css.html +0 -127
- package/coverage/src/DropDown/DropDownSeparator.js.html +0 -118
- package/coverage/src/DropDown/DropDownSeparator.module.css.html +0 -106
- package/coverage/src/DropDown/index.html +0 -131
- package/coverage/src/DropDown/props/defaultProps.js.html +0 -127
- package/coverage/src/DropDown/props/index.html +0 -131
- package/coverage/src/DropDown/props/propTypes.js.html +0 -310
- package/coverage/src/Heading/Heading.js.html +0 -193
- package/coverage/src/Heading/Heading.module.css.html +0 -97
- package/coverage/src/Heading/index.html +0 -131
- package/coverage/src/Heading/props/defaultProps.js.html +0 -100
- package/coverage/src/Heading/props/index.html +0 -131
- package/coverage/src/Heading/props/propTypes.js.html +0 -124
- package/coverage/src/Label/Label.js.html +0 -250
- package/coverage/src/Label/Label.module.css.html +0 -256
- package/coverage/src/Label/LabelColors.module.css.html +0 -145
- package/coverage/src/Label/index.html +0 -146
- package/coverage/src/Label/props/defaultProps.js.html +0 -118
- package/coverage/src/Label/props/index.html +0 -131
- package/coverage/src/Label/props/propTypes.js.html +0 -145
- package/coverage/src/Layout/Box.js.html +0 -367
- package/coverage/src/Layout/Container.js.html +0 -439
- package/coverage/src/Layout/Layout.module.css.html +0 -1090
- package/coverage/src/Layout/index.html +0 -176
- package/coverage/src/Layout/index.js.html +0 -118
- package/coverage/src/Layout/props/defaultProps.js.html +0 -136
- package/coverage/src/Layout/props/index.html +0 -131
- package/coverage/src/Layout/props/propTypes.js.html +0 -262
- package/coverage/src/Layout/utils.js.html +0 -199
- package/coverage/src/ListItem/ListContainer.js.html +0 -385
- package/coverage/src/ListItem/ListItem.js.html +0 -493
- package/coverage/src/ListItem/ListItem.module.css.html +0 -793
- package/coverage/src/ListItem/ListItemWithAvatar.js.html +0 -577
- package/coverage/src/ListItem/ListItemWithCheckBox.js.html +0 -430
- package/coverage/src/ListItem/ListItemWithIcon.js.html +0 -520
- package/coverage/src/ListItem/ListItemWithRadio.js.html +0 -445
- package/coverage/src/ListItem/index.html +0 -146
- package/coverage/src/ListItem/props/defaultProps.js.html +0 -415
- package/coverage/src/ListItem/props/index.html +0 -131
- package/coverage/src/ListItem/props/propTypes.js.html +0 -763
- package/coverage/src/Modal/Modal.js.html +0 -562
- package/coverage/src/Modal/Portal/Portal.js.html +0 -166
- package/coverage/src/Modal/Portal/index.html +0 -116
- package/coverage/src/Modal/Portal/props/defaultProps.js.html +0 -97
- package/coverage/src/Modal/Portal/props/index.html +0 -131
- package/coverage/src/Modal/Portal/props/propTypes.js.html +0 -100
- package/coverage/src/Modal/index.html +0 -116
- package/coverage/src/Modal/props/defaultProps.js.html +0 -94
- package/coverage/src/Modal/props/index.html +0 -131
- package/coverage/src/Modal/props/propTypes.js.html +0 -109
- package/coverage/src/MultiSelect/AdvancedGroupMultiSelect.js.html +0 -3085
- package/coverage/src/MultiSelect/AdvancedMultiSelect.js.html +0 -1762
- package/coverage/src/MultiSelect/EmptyState.js.html +0 -277
- package/coverage/src/MultiSelect/MobileHeader/MobileHeader.js.html +0 -214
- package/coverage/src/MultiSelect/MobileHeader/MobileHeader.module.css.html +0 -133
- package/coverage/src/MultiSelect/MobileHeader/index.html +0 -131
- package/coverage/src/MultiSelect/MobileHeader/props/defaultProps.js.html +0 -97
- package/coverage/src/MultiSelect/MobileHeader/props/index.html +0 -131
- package/coverage/src/MultiSelect/MobileHeader/props/propTypes.js.html +0 -109
- package/coverage/src/MultiSelect/MultiSelect.js.html +0 -3346
- package/coverage/src/MultiSelect/MultiSelect.module.css.html +0 -658
- package/coverage/src/MultiSelect/MultiSelectHeader.js.html +0 -187
- package/coverage/src/MultiSelect/MultiSelectWithAvatar.js.html +0 -772
- package/coverage/src/MultiSelect/SelectedOptions.js.html +0 -307
- package/coverage/src/MultiSelect/SelectedOptions.module.css.html +0 -112
- package/coverage/src/MultiSelect/Suggestions.js.html +0 -736
- package/coverage/src/MultiSelect/constants.js.html +0 -100
- package/coverage/src/MultiSelect/index.html +0 -146
- package/coverage/src/MultiSelect/props/defaultProps.js.html +0 -628
- package/coverage/src/MultiSelect/props/index.html +0 -131
- package/coverage/src/MultiSelect/props/propTypes.js.html +0 -1063
- package/coverage/src/PopOver/PopOver.js.html +0 -670
- package/coverage/src/PopOver/PopOver.module.css.html +0 -109
- package/coverage/src/PopOver/index.html +0 -131
- package/coverage/src/PopOver/props/defaultProps.js.html +0 -109
- package/coverage/src/PopOver/props/index.html +0 -116
- package/coverage/src/PopOver/props/propTypes.js.html +0 -253
- package/coverage/src/Popup/Popup.js.html +0 -2869
- package/coverage/src/Popup/PositionMapping.js.html +0 -310
- package/coverage/src/Popup/Registry.js.html +0 -205
- package/coverage/src/Popup/index.html +0 -176
- package/coverage/src/Popup/intersectionObserver.js.html +0 -223
- package/coverage/src/Popup/props/index.html +0 -116
- package/coverage/src/Popup/props/propTypes.js.html +0 -232
- package/coverage/src/Popup/viewPort.js.html +0 -1492
- package/coverage/src/Provider/AvatarSize.js.html +0 -124
- package/coverage/src/Provider/Config.js.html +0 -151
- package/coverage/src/Provider/CssProvider.js.html +0 -133
- package/coverage/src/Provider/IdProvider.js.html +0 -289
- package/coverage/src/Provider/LibraryContextInit.js.html +0 -97
- package/coverage/src/Provider/NumberGenerator/NumberGenerator.js.html +0 -523
- package/coverage/src/Provider/NumberGenerator/index.html +0 -116
- package/coverage/src/Provider/ZindexProvider.js.html +0 -253
- package/coverage/src/Provider/index.html +0 -116
- package/coverage/src/Radio/Radio.js.html +0 -472
- package/coverage/src/Radio/Radio.module.css.html +0 -412
- package/coverage/src/Radio/index.html +0 -131
- package/coverage/src/Radio/props/defaultProps.js.html +0 -130
- package/coverage/src/Radio/props/index.html +0 -131
- package/coverage/src/Radio/props/propTypes.js.html +0 -211
- package/coverage/src/Responsive/CustomResponsive.js.html +0 -622
- package/coverage/src/Responsive/RefWrapper.js.html +0 -214
- package/coverage/src/Responsive/ResizeObserver.js.html +0 -274
- package/coverage/src/Responsive/index.html +0 -161
- package/coverage/src/Responsive/props/defaultProps.js.html +0 -133
- package/coverage/src/Responsive/props/index.html +0 -131
- package/coverage/src/Responsive/props/propTypes.js.html +0 -172
- package/coverage/src/Responsive/sizeObservers.js.html +0 -460
- package/coverage/src/Responsive/utils/index.html +0 -116
- package/coverage/src/Responsive/utils/shallowCompare.js.html +0 -148
- package/coverage/src/ResponsiveDropBox/ResponsiveDropBox.js.html +0 -259
- package/coverage/src/ResponsiveDropBox/ResponsiveDropBox.module.css.html +0 -103
- package/coverage/src/ResponsiveDropBox/index.html +0 -131
- package/coverage/src/ResponsiveDropBox/props/defaultProps.js.html +0 -97
- package/coverage/src/ResponsiveDropBox/props/index.html +0 -131
- package/coverage/src/ResponsiveDropBox/props/propTypes.js.html +0 -115
- package/coverage/src/Ribbon/Ribbon.js.html +0 -229
- package/coverage/src/Ribbon/Ribbon.module.css.html +0 -1348
- package/coverage/src/Ribbon/index.html +0 -131
- package/coverage/src/Ribbon/props/defaultProps.js.html +0 -112
- package/coverage/src/Ribbon/props/index.html +0 -131
- package/coverage/src/Ribbon/props/propTypes.js.html +0 -121
- package/coverage/src/RippleEffect/RippleEffect.js.html +0 -172
- package/coverage/src/RippleEffect/RippleEffect.module.css.html +0 -472
- package/coverage/src/RippleEffect/index.html +0 -131
- package/coverage/src/RippleEffect/props/defaultProps.js.html +0 -115
- package/coverage/src/RippleEffect/props/index.html +0 -131
- package/coverage/src/RippleEffect/props/propTypes.js.html +0 -124
- package/coverage/src/Select/GroupSelect.js.html +0 -2209
- package/coverage/src/Select/Select.js.html +0 -2647
- package/coverage/src/Select/Select.module.css.html +0 -463
- package/coverage/src/Select/SelectWithAvatar.js.html +0 -1114
- package/coverage/src/Select/SelectWithIcon.js.html +0 -1573
- package/coverage/src/Select/index.html +0 -131
- package/coverage/src/Select/props/defaultProps.js.html +0 -490
- package/coverage/src/Select/props/index.html +0 -131
- package/coverage/src/Select/props/propTypes.js.html +0 -1138
- package/coverage/src/Stencils/Stencils.js.html +0 -136
- package/coverage/src/Stencils/Stencils.module.css.html +0 -337
- package/coverage/src/Stencils/index.html +0 -131
- package/coverage/src/Stencils/props/defaultProps.js.html +0 -106
- package/coverage/src/Stencils/props/index.html +0 -131
- package/coverage/src/Stencils/props/propTypes.js.html +0 -112
- package/coverage/src/Switch/Switch.js.html +0 -376
- package/coverage/src/Switch/Switch.module.css.html +0 -481
- package/coverage/src/Switch/index.html +0 -131
- package/coverage/src/Switch/props/defaultProps.js.html +0 -118
- package/coverage/src/Switch/props/index.html +0 -131
- package/coverage/src/Switch/props/propTypes.js.html +0 -172
- package/coverage/src/Tab/Tab.js.html +0 -454
- package/coverage/src/Tab/Tab.module.css.html +0 -358
- package/coverage/src/Tab/TabContent.js.html +0 -163
- package/coverage/src/Tab/TabContent.module.css.html +0 -97
- package/coverage/src/Tab/TabContentWrapper.js.html +0 -139
- package/coverage/src/Tab/TabWrapper.js.html +0 -274
- package/coverage/src/Tab/Tabs.js.html +0 -2026
- package/coverage/src/Tab/Tabs.module.css.html +0 -493
- package/coverage/src/Tab/index.html +0 -161
- package/coverage/src/Tab/index.js.html +0 -100
- package/coverage/src/Tab/props/defaultProps.js.html +0 -250
- package/coverage/src/Tab/props/index.html +0 -131
- package/coverage/src/Tab/props/propTypes.js.html +0 -451
- package/coverage/src/Tab/utils/index.html +0 -116
- package/coverage/src/Tab/utils/tabConfigs.js.html +0 -142
- package/coverage/src/Tag/Tag.js.html +0 -544
- package/coverage/src/Tag/Tag.module.css.html +0 -781
- package/coverage/src/Tag/index.html +0 -131
- package/coverage/src/Tag/props/defaultProps.js.html +0 -133
- package/coverage/src/Tag/props/index.html +0 -131
- package/coverage/src/Tag/props/propTypes.js.html +0 -244
- package/coverage/src/TextBox/TextBox.js.html +0 -619
- package/coverage/src/TextBox/TextBox.module.css.html +0 -685
- package/coverage/src/TextBox/index.html +0 -131
- package/coverage/src/TextBox/props/defaultProps.js.html +0 -145
- package/coverage/src/TextBox/props/index.html +0 -131
- package/coverage/src/TextBox/props/propTypes.js.html +0 -247
- package/coverage/src/TextBoxIcon/TextBoxIcon.js.html +0 -661
- package/coverage/src/TextBoxIcon/TextBoxIcon.module.css.html +0 -301
- package/coverage/src/TextBoxIcon/index.html +0 -131
- package/coverage/src/TextBoxIcon/props/defaultProps.js.html +0 -157
- package/coverage/src/TextBoxIcon/props/index.html +0 -131
- package/coverage/src/TextBoxIcon/props/propTypes.js.html +0 -256
- package/coverage/src/Textarea/Textarea.js.html +0 -463
- package/coverage/src/Textarea/Textarea.module.css.html +0 -532
- package/coverage/src/Textarea/index.html +0 -131
- package/coverage/src/Textarea/props/defaultProps.js.html +0 -139
- package/coverage/src/Textarea/props/index.html +0 -131
- package/coverage/src/Textarea/props/propTypes.js.html +0 -193
- package/coverage/src/Tooltip/Tooltip.js.html +0 -1795
- package/coverage/src/Tooltip/Tooltip.module.css.html +0 -484
- package/coverage/src/Tooltip/index.html +0 -131
- package/coverage/src/Tooltip/props/defaultProps.js.html +0 -97
- package/coverage/src/Tooltip/props/index.html +0 -131
- package/coverage/src/Tooltip/props/propTypes.js.html +0 -103
- package/coverage/src/VelocityAnimation/VelocityAnimation/VelocityAnimation.js.html +0 -283
- package/coverage/src/VelocityAnimation/VelocityAnimation/index.html +0 -116
- package/coverage/src/VelocityAnimation/VelocityAnimation/props/defaultProps.js.html +0 -106
- package/coverage/src/VelocityAnimation/VelocityAnimation/props/index.html +0 -131
- package/coverage/src/VelocityAnimation/VelocityAnimation/props/propTypes.js.html +0 -124
- package/coverage/src/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js.html +0 -502
- package/coverage/src/VelocityAnimation/VelocityAnimationGroup/index.html +0 -116
- package/coverage/src/VelocityAnimation/VelocityAnimationGroup/props/defaultProps.js.html +0 -130
- package/coverage/src/VelocityAnimation/VelocityAnimationGroup/props/index.html +0 -131
- package/coverage/src/VelocityAnimation/VelocityAnimationGroup/props/propTypes.js.html +0 -154
- package/coverage/src/common/a11y.module.css.html +0 -94
- package/coverage/src/common/avatarsizes.module.css.html +0 -229
- package/coverage/src/common/basic.module.css.html +0 -178
- package/coverage/src/common/boxShadow.module.css.html +0 -184
- package/coverage/src/common/common.module.css.html +0 -1645
- package/coverage/src/common/index.html +0 -116
- package/coverage/src/common/transition.module.css.html +0 -403
- package/coverage/src/semantic/Button/Button.js.html +0 -220
- package/coverage/src/semantic/Button/index.html +0 -131
- package/coverage/src/semantic/Button/props/defaultProps.js.html +0 -121
- package/coverage/src/semantic/Button/props/index.html +0 -131
- package/coverage/src/semantic/Button/props/propTypes.js.html +0 -154
- package/coverage/src/semantic/Button/semanticButton.module.css.html +0 -112
- package/coverage/src/utils/Common.js.html +0 -1267
- package/coverage/src/utils/ContextOptimizer.js.html +0 -196
- package/coverage/src/utils/cssUtils.js.html +0 -118
- package/coverage/src/utils/datetime/GMTZones.js.html +0 -229
- package/coverage/src/utils/datetime/common.js.html +0 -790
- package/coverage/src/utils/datetime/index.html +0 -131
- package/coverage/src/utils/dropDownUtils.js.html +0 -1897
- package/coverage/src/utils/dummyFunction.js.html +0 -88
- package/coverage/src/utils/getInitial.js.html +0 -139
- package/coverage/src/utils/index.html +0 -116
- package/coverage/src/utils/shallowEqual.js.html +0 -181
- package/coverage/src/v1/Switch/Switch.js.html +0 -433
- package/coverage/src/v1/Switch/contants/index.html +0 -116
- package/coverage/src/v1/Switch/contants/index.js.html +0 -166
- package/coverage/src/v1/Switch/css/Switch_v1.module.css.html +0 -439
- package/coverage/src/v1/Switch/css/cssJSLogic.js.html +0 -220
- package/coverage/src/v1/Switch/css/index.html +0 -131
- package/coverage/src/v1/Switch/index.html +0 -131
- package/coverage/src/v1/Switch/props/defaultProps.js.html +0 -115
- package/coverage/src/v1/Switch/props/index.html +0 -131
- package/coverage/src/v1/Switch/props/propTypes.js.html +0 -193
- package/coverage/src/v1/Switch/useSwitch.js.html +0 -154
- package/propValidationArg.json +0 -12
|
@@ -0,0 +1,1196 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics"));
|
|
13
|
+
|
|
14
|
+
var _propTypes = require("./props/propTypes");
|
|
15
|
+
|
|
16
|
+
var _Common = require("../utils/Common.js");
|
|
17
|
+
|
|
18
|
+
var _viewPort = _interopRequireDefault(require("./viewPort"));
|
|
19
|
+
|
|
20
|
+
var _PositionMapping = require("./PositionMapping.js");
|
|
21
|
+
|
|
22
|
+
var _ResizeObserver = _interopRequireDefault(require("@zohodesk/virtualizer/lib/commons/ResizeObserver.js"));
|
|
23
|
+
|
|
24
|
+
var _intersectionObserver = require("./intersectionObserver");
|
|
25
|
+
|
|
26
|
+
var _DropBoxPositionMapping = require("../DropBox/DropBoxPositionMapping.js");
|
|
27
|
+
|
|
28
|
+
var _isMobilePopover = _interopRequireDefault(require("../DropBox/utils/isMobilePopover.js"));
|
|
29
|
+
|
|
30
|
+
var _selectn = _interopRequireDefault(require("selectn"));
|
|
31
|
+
|
|
32
|
+
var _Registry = _interopRequireDefault(require("./Registry.js"));
|
|
33
|
+
|
|
34
|
+
var _excluded = ["isMobile"];
|
|
35
|
+
|
|
36
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
|
+
|
|
38
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
39
|
+
|
|
40
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
41
|
+
|
|
42
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
43
|
+
|
|
44
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
45
|
+
|
|
46
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
47
|
+
|
|
48
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
49
|
+
|
|
50
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
51
|
+
|
|
52
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
53
|
+
|
|
54
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
55
|
+
|
|
56
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
57
|
+
|
|
58
|
+
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); } }
|
|
59
|
+
|
|
60
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
61
|
+
|
|
62
|
+
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); }
|
|
63
|
+
|
|
64
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
65
|
+
|
|
66
|
+
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); }; }
|
|
67
|
+
|
|
68
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
69
|
+
|
|
70
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
71
|
+
|
|
72
|
+
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; } }
|
|
73
|
+
|
|
74
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
75
|
+
|
|
76
|
+
global.closeGroupPopups = function (groupName) {
|
|
77
|
+
var groupPopups = _Registry["default"].popups[groupName] || [];
|
|
78
|
+
groupPopups.forEach(function (popup) {
|
|
79
|
+
popup.state.isPopupOpen && popup.setState({
|
|
80
|
+
isPopupOpen: false,
|
|
81
|
+
isPopupReady: false
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
var defaultState = {
|
|
87
|
+
position: 'bottomCenter',
|
|
88
|
+
height: '0px',
|
|
89
|
+
positions: {},
|
|
90
|
+
//{bottomCenter: true, bottomLeft: false, ...}
|
|
91
|
+
positionsOffset: {},
|
|
92
|
+
//{bottomCenter: {left: ‘’,top: ‘’ }, .....}
|
|
93
|
+
targetOffset: {},
|
|
94
|
+
//{height: ‘’, width: ‘’,}
|
|
95
|
+
popupOffset: {},
|
|
96
|
+
//{height: ‘’, width: ‘’,}
|
|
97
|
+
isAbsolutePositioningNeeded: true
|
|
98
|
+
};
|
|
99
|
+
var SCROLL_BLOCK_EVENTS = Object.freeze([{
|
|
100
|
+
name: 'wheel',
|
|
101
|
+
handlerName: 'handleBlockScroll',
|
|
102
|
+
options: {
|
|
103
|
+
capture: true,
|
|
104
|
+
passive: false
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
name: 'touchmove',
|
|
108
|
+
handlerName: 'handleBlockScroll',
|
|
109
|
+
options: {
|
|
110
|
+
capture: true,
|
|
111
|
+
passive: false
|
|
112
|
+
}
|
|
113
|
+
}, {
|
|
114
|
+
name: 'scroll',
|
|
115
|
+
handlerName: 'handlePositionChange',
|
|
116
|
+
options: {
|
|
117
|
+
capture: true,
|
|
118
|
+
passive: false
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
name: 'keydown',
|
|
122
|
+
handlerName: 'preventKeyboardScroll',
|
|
123
|
+
options: {
|
|
124
|
+
capture: true,
|
|
125
|
+
passive: false
|
|
126
|
+
}
|
|
127
|
+
}]);
|
|
128
|
+
var IFRAME_SCROLL_BLOCK_EVENTS = Object.freeze(SCROLL_BLOCK_EVENTS.filter(function (event) {
|
|
129
|
+
return event.name !== 'keydown';
|
|
130
|
+
}));
|
|
131
|
+
var CLICK_EVENTS = Object.freeze([{
|
|
132
|
+
name: 'click',
|
|
133
|
+
handlerName: 'documentClickHandler',
|
|
134
|
+
options: {
|
|
135
|
+
capture: false,
|
|
136
|
+
passive: false
|
|
137
|
+
}
|
|
138
|
+
}, {
|
|
139
|
+
name: 'click',
|
|
140
|
+
handlerName: 'documentClickHandler1',
|
|
141
|
+
options: {
|
|
142
|
+
capture: true,
|
|
143
|
+
passive: false
|
|
144
|
+
}
|
|
145
|
+
}]);
|
|
146
|
+
/* eslint-disable react/no-deprecated */
|
|
147
|
+
|
|
148
|
+
/* eslint-disable react/prop-types */
|
|
149
|
+
|
|
150
|
+
var Popup = function Popup(Component) {
|
|
151
|
+
var group = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'global';
|
|
152
|
+
var needResizeHandling = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
153
|
+
|
|
154
|
+
var _ref = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
|
|
155
|
+
_ref$isAbsolutePositi = _ref.isAbsolutePositioningNeeded,
|
|
156
|
+
isAbsolutePopup = _ref$isAbsolutePositi === void 0 ? true : _ref$isAbsolutePositi,
|
|
157
|
+
_ref$isArrow = _ref.isArrow,
|
|
158
|
+
needPopupArrow = _ref$isArrow === void 0 ? false : _ref$isArrow,
|
|
159
|
+
_ref$customOrder = _ref.customOrder,
|
|
160
|
+
customPositionOrder = _ref$customOrder === void 0 ? [] : _ref$customOrder,
|
|
161
|
+
_ref$scrollDebounceTi = _ref.scrollDebounceTime,
|
|
162
|
+
popupScrollDebounceTime = _ref$scrollDebounceTi === void 0 ? 0 : _ref$scrollDebounceTi,
|
|
163
|
+
_ref$closeOnScroll = _ref.closeOnScroll,
|
|
164
|
+
closeOnScrollPopup = _ref$closeOnScroll === void 0 ? false : _ref$closeOnScroll,
|
|
165
|
+
_ref$isOutsideScrollB = _ref.isOutsideScrollBlocked,
|
|
166
|
+
isOutsideScrollBlock = _ref$isOutsideScrollB === void 0 ? false : _ref$isOutsideScrollB;
|
|
167
|
+
|
|
168
|
+
var Popup = /*#__PURE__*/function (_React$Component) {
|
|
169
|
+
_inherits(Popup, _React$Component);
|
|
170
|
+
|
|
171
|
+
var _super = _createSuper(Popup);
|
|
172
|
+
|
|
173
|
+
function Popup(props) {
|
|
174
|
+
var _this;
|
|
175
|
+
|
|
176
|
+
_classCallCheck(this, Popup);
|
|
177
|
+
|
|
178
|
+
_this = _super.call(this, props);
|
|
179
|
+
_this.state = {
|
|
180
|
+
isPopupOpen: props.isPopupOpen || false,
|
|
181
|
+
position: 'bottomCenter',
|
|
182
|
+
height: '0px',
|
|
183
|
+
isPopupReady: props.isPopupOpen || false,
|
|
184
|
+
positions: {},
|
|
185
|
+
//{bottomCenter: true, bottomLeft: false, ...}
|
|
186
|
+
positionsOffset: {},
|
|
187
|
+
//{bottomCenter: {left: ‘’,top: ‘’ }, .....}
|
|
188
|
+
targetOffset: {},
|
|
189
|
+
//{height: ‘’, width: ‘’,}
|
|
190
|
+
popupOffset: {},
|
|
191
|
+
//{height: ‘’, width: ‘’,}
|
|
192
|
+
isAbsolutePositioningNeeded: true,
|
|
193
|
+
isMobile: false
|
|
194
|
+
};
|
|
195
|
+
_this.togglePopup = _this.togglePopup.bind(_assertThisInitialized(_this));
|
|
196
|
+
_this.documentClickHandler = _this.documentClickHandler.bind(_assertThisInitialized(_this));
|
|
197
|
+
_this.documentClickHandler1 = _this.documentClickHandler1.bind(_assertThisInitialized(_this));
|
|
198
|
+
_this.removeClose = _this.removeClose.bind(_assertThisInitialized(_this));
|
|
199
|
+
_this.documentKeyupHandler = _this.documentKeyupHandler.bind(_assertThisInitialized(_this));
|
|
200
|
+
_this.openPopupOnly = _this.openPopupOnly.bind(_assertThisInitialized(_this));
|
|
201
|
+
_this.closePopupOnly = _this.closePopupOnly.bind(_assertThisInitialized(_this));
|
|
202
|
+
_this.getTargetRef = _this.getTargetRef.bind(_assertThisInitialized(_this));
|
|
203
|
+
_this.getContainerRef = _this.getContainerRef.bind(_assertThisInitialized(_this));
|
|
204
|
+
_this.handlePopupPosition = _this.handlePopupPosition.bind(_assertThisInitialized(_this));
|
|
205
|
+
_this.handleResize = (0, _Common.debounce)(_this.handleResize.bind(_assertThisInitialized(_this)), 300);
|
|
206
|
+
_this.handlePopupResize = _this.handlePopupResize.bind(_assertThisInitialized(_this));
|
|
207
|
+
_this.getIsAbsolutePopup = _this.getIsAbsolutePopup.bind(_assertThisInitialized(_this));
|
|
208
|
+
_this.getIsOutsideScrollBlocked = _this.getIsOutsideScrollBlocked.bind(_assertThisInitialized(_this));
|
|
209
|
+
_this.getNeedArrow = _this.getNeedArrow.bind(_assertThisInitialized(_this));
|
|
210
|
+
_this.getCustomPositionOrder = _this.getCustomPositionOrder.bind(_assertThisInitialized(_this));
|
|
211
|
+
_this.handleOpenPopupPositionChange = _this.handleOpenPopupPositionChange.bind(_assertThisInitialized(_this));
|
|
212
|
+
_this.getScrollDebounceTime = _this.getScrollDebounceTime.bind(_assertThisInitialized(_this));
|
|
213
|
+
_this.getCloseOnScrollPopup = _this.getCloseOnScrollPopup.bind(_assertThisInitialized(_this));
|
|
214
|
+
_this.handleCloseLastOpenedGroup = _this.handleCloseLastOpenedGroup.bind(_assertThisInitialized(_this));
|
|
215
|
+
_this.handleDocumentMouseDown = _this.handleDocumentMouseDown.bind(_assertThisInitialized(_this));
|
|
216
|
+
_this.handleDocumentFocus = _this.handleDocumentFocus.bind(_assertThisInitialized(_this));
|
|
217
|
+
_this.handleGetNeedPrevent = _this.handleGetNeedPrevent.bind(_assertThisInitialized(_this));
|
|
218
|
+
_this.handleBlockScroll = _this.handleBlockScroll.bind(_assertThisInitialized(_this));
|
|
219
|
+
_this.handlePositionChange = _this.handlePositionChange.bind(_assertThisInitialized(_this));
|
|
220
|
+
_this.preventKeyboardScroll = _this.preventKeyboardScroll.bind(_assertThisInitialized(_this));
|
|
221
|
+
_this.updateListeners = _this.updateListeners.bind(_assertThisInitialized(_this));
|
|
222
|
+
_this.addScrollBlockListeners = _this.addScrollBlockListeners.bind(_assertThisInitialized(_this));
|
|
223
|
+
_this.removeScrollBlockListeners = _this.removeScrollBlockListeners.bind(_assertThisInitialized(_this));
|
|
224
|
+
_this.addScrollToUpdateListeners = _this.addScrollToUpdateListeners.bind(_assertThisInitialized(_this));
|
|
225
|
+
_this.removeScrollToUpdateListeners = _this.removeScrollToUpdateListeners.bind(_assertThisInitialized(_this));
|
|
226
|
+
_this.handleAddingScrollBlock = _this.handleAddingScrollBlock.bind(_assertThisInitialized(_this));
|
|
227
|
+
_this.handleRemovingScrollBlock = _this.handleRemovingScrollBlock.bind(_assertThisInitialized(_this));
|
|
228
|
+
_this.handleIntersectionObserver = _this.handleIntersectionObserver.bind(_assertThisInitialized(_this));
|
|
229
|
+
_this.updateVisibilityOnIntersection = _this.updateVisibilityOnIntersection.bind(_assertThisInitialized(_this));
|
|
230
|
+
_this.handleAddingScrollToUpdatePosition = _this.handleAddingScrollToUpdatePosition.bind(_assertThisInitialized(_this));
|
|
231
|
+
_this.handleRemovingScrollToUpdatePosition = _this.handleRemovingScrollToUpdatePosition.bind(_assertThisInitialized(_this));
|
|
232
|
+
_this.setContainerDynamicPositioning = _this.setContainerDynamicPositioning.bind(_assertThisInitialized(_this));
|
|
233
|
+
_this.updatePopupState = _this.updatePopupState.bind(_assertThisInitialized(_this));
|
|
234
|
+
_this.handleScrollAndBlockEvents = _this.handleScrollAndBlockEvents.bind(_assertThisInitialized(_this));
|
|
235
|
+
_this.handleIframeEventListeners = _this.handleIframeEventListeners.bind(_assertThisInitialized(_this));
|
|
236
|
+
_this.handleDropElementStyleUpdate = _this.handleDropElementStyleUpdate.bind(_assertThisInitialized(_this));
|
|
237
|
+
_this.waitForDropElement = _this.waitForDropElement.bind(_assertThisInitialized(_this));
|
|
238
|
+
_this.positionRef = /*#__PURE__*/_react["default"].createRef();
|
|
239
|
+
_this.rootElement = _Registry["default"].getRootElement();
|
|
240
|
+
_this.popupObserver = new _ResizeObserver["default"](_this.handlePopupResize);
|
|
241
|
+
_this.cancelRaf = _this.cancelRaf.bind(_assertThisInitialized(_this));
|
|
242
|
+
_this.cancelPendingAnimationFrames = _this.cancelPendingAnimationFrames.bind(_assertThisInitialized(_this));
|
|
243
|
+
_this.setPositionRafId = null;
|
|
244
|
+
_this.resizePositionRafId = null; //dropBoxSize
|
|
245
|
+
|
|
246
|
+
_this.size = null;
|
|
247
|
+
_this.isTargetElementVisible = false;
|
|
248
|
+
_this.isAbsolutePopup = isAbsolutePopup;
|
|
249
|
+
_this.needPopupArrow = needPopupArrow;
|
|
250
|
+
_this.customPositionOrder = customPositionOrder;
|
|
251
|
+
_this.scrollDebounceTime = popupScrollDebounceTime;
|
|
252
|
+
_this.closeOnScroll = closeOnScrollPopup;
|
|
253
|
+
_this.isOutsideScrollBlock = isOutsideScrollBlock;
|
|
254
|
+
|
|
255
|
+
var scrollDebounceTime = _this.getScrollDebounceTime(_assertThisInitialized(_this));
|
|
256
|
+
|
|
257
|
+
_this.updatePositionOnScroll = scrollDebounceTime > 0 ? (0, _Common.debounce)(_this.updatePositionOnScroll.bind(_assertThisInitialized(_this)), scrollDebounceTime) : _this.updatePositionOnScroll.bind(_assertThisInitialized(_this)); // this.handleScroll = debounce(this.handleScroll.bind(this), scrollDebounceTime);
|
|
258
|
+
|
|
259
|
+
return _this;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
_createClass(Popup, [{
|
|
263
|
+
key: "componentDidMount",
|
|
264
|
+
value: function componentDidMount() {
|
|
265
|
+
var group = this.getGroup();
|
|
266
|
+
var groupPopups = _Registry["default"].popups[group] || [];
|
|
267
|
+
groupPopups.push(this);
|
|
268
|
+
_Registry["default"].popups[group] = groupPopups;
|
|
269
|
+
|
|
270
|
+
if (Object.keys(_Registry["default"].popups).length === 1 && groupPopups.length === 1 && _Registry["default"].listenerPopupRef === undefined) {
|
|
271
|
+
_Registry["default"].listenerPopupRef = this;
|
|
272
|
+
|
|
273
|
+
_Registry["default"].listenerPopupRef.updateListeners(true, CLICK_EVENTS, document);
|
|
274
|
+
|
|
275
|
+
document.addEventListener('keyup', _Registry["default"].listenerPopupRef.documentKeyupHandler, false); // document.addEventListener('scroll', Registry.listenerPopupRef.handleScroll, true);
|
|
276
|
+
|
|
277
|
+
window.addEventListener('resize', _Registry["default"].listenerPopupRef.handleResize);
|
|
278
|
+
document.addEventListener('mousedown', _Registry["default"].listenerPopupRef.handleDocumentMouseDown, true);
|
|
279
|
+
document.addEventListener('focus', _Registry["default"].listenerPopupRef.handleDocumentFocus, true);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}, {
|
|
283
|
+
key: "UNSAFE_componentWillReceiveProps",
|
|
284
|
+
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
285
|
+
var isPopupOpen = this.state.isPopupOpen;
|
|
286
|
+
|
|
287
|
+
if (typeof nextProps.isPopupOpen !== 'undefined' && nextProps.isPopupOpen !== isPopupOpen) {
|
|
288
|
+
this.setState({
|
|
289
|
+
isPopupOpen: nextProps.isPopupOpen,
|
|
290
|
+
isPopupReady: nextProps.isPopupOpen
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}, {
|
|
295
|
+
key: "handleScrollAndBlockEvents",
|
|
296
|
+
value: function handleScrollAndBlockEvents(shouldAdd) {
|
|
297
|
+
if (shouldAdd) {
|
|
298
|
+
this.handleAddingScrollBlock();
|
|
299
|
+
this.handleAddingScrollToUpdatePosition();
|
|
300
|
+
} else {
|
|
301
|
+
this.handleRemovingScrollBlock();
|
|
302
|
+
this.handleRemovingScrollToUpdatePosition();
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}, {
|
|
306
|
+
key: "handleIframeEventListeners",
|
|
307
|
+
value: function handleIframeEventListeners(shouldAdd, eventList) {
|
|
308
|
+
var _this2 = this;
|
|
309
|
+
|
|
310
|
+
this.rootElement.querySelectorAll('iframe').forEach(function (frame) {
|
|
311
|
+
var frameDocument = frame.contentDocument;
|
|
312
|
+
|
|
313
|
+
if (frameDocument) {
|
|
314
|
+
_this2.updateListeners(shouldAdd, eventList, frameDocument);
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
}, {
|
|
319
|
+
key: "componentDidUpdate",
|
|
320
|
+
value: function componentDidUpdate(prevProps, prevState) {
|
|
321
|
+
var _this$state = this.state,
|
|
322
|
+
isPopupReady = _this$state.isPopupReady,
|
|
323
|
+
isMobile = _this$state.isMobile;
|
|
324
|
+
|
|
325
|
+
var _ref2 = prevState || {},
|
|
326
|
+
_ref2$isPopupReady = _ref2.isPopupReady,
|
|
327
|
+
oldStateOpen = _ref2$isPopupReady === void 0 ? false : _ref2$isPopupReady,
|
|
328
|
+
oldIsMobileState = _ref2.isMobile;
|
|
329
|
+
|
|
330
|
+
var dropElement = this.dropElement;
|
|
331
|
+
var propResizeHandling = this.props.needResizeHandling;
|
|
332
|
+
|
|
333
|
+
if (oldStateOpen !== isPopupReady) {
|
|
334
|
+
if (isPopupReady && dropElement && (propResizeHandling !== undefined ? propResizeHandling : needResizeHandling)) {
|
|
335
|
+
this.popupObserver.replaceObservationElement(dropElement);
|
|
336
|
+
} else if (!isPopupReady) {
|
|
337
|
+
this.size = null;
|
|
338
|
+
this.popupObserver.disconnect();
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
if (oldStateOpen !== isPopupReady && !isMobile || oldIsMobileState !== isMobile) {
|
|
343
|
+
var shouldAdd = isPopupReady && !isMobile;
|
|
344
|
+
this.handleScrollAndBlockEvents(shouldAdd);
|
|
345
|
+
this.handleIframeEventListeners(shouldAdd, CLICK_EVENTS);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}, {
|
|
349
|
+
key: "cancelRaf",
|
|
350
|
+
value: function cancelRaf(refName) {
|
|
351
|
+
var id = this[refName];
|
|
352
|
+
|
|
353
|
+
if (id) {
|
|
354
|
+
cancelAnimationFrame(id);
|
|
355
|
+
this[refName] = null;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}, {
|
|
359
|
+
key: "cancelPendingAnimationFrames",
|
|
360
|
+
value: function cancelPendingAnimationFrames() {
|
|
361
|
+
this.cancelRaf('setPositionRafId');
|
|
362
|
+
this.cancelRaf('resizePositionRafId');
|
|
363
|
+
}
|
|
364
|
+
}, {
|
|
365
|
+
key: "componentWillUnmount",
|
|
366
|
+
value: function componentWillUnmount() {
|
|
367
|
+
var _this3 = this;
|
|
368
|
+
|
|
369
|
+
var group = this.getGroup();
|
|
370
|
+
_Registry["default"].popups = Object.keys(_Registry["default"].popups).reduce(function (res, groupName) {
|
|
371
|
+
if (groupName === group) {
|
|
372
|
+
var groupPopups = _Registry["default"].popups[group];
|
|
373
|
+
var newGroupPopups = groupPopups.filter(function (popup) {
|
|
374
|
+
return popup !== _this3;
|
|
375
|
+
});
|
|
376
|
+
newGroupPopups.length === 0 && _Registry["default"].lastOpenedGroup.indexOf(group) >= 0 && _Registry["default"].lastOpenedGroup.splice(_Registry["default"].lastOpenedGroup.indexOf(group), 1);
|
|
377
|
+
res[group] = newGroupPopups;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
return res;
|
|
381
|
+
}, _Registry["default"].popups);
|
|
382
|
+
this.handleRemovingScrollBlock();
|
|
383
|
+
this.handleRemovingScrollToUpdatePosition();
|
|
384
|
+
this.handleIframeEventListeners(false, CLICK_EVENTS);
|
|
385
|
+
var noPopups = true;
|
|
386
|
+
|
|
387
|
+
for (var i in _Registry["default"].popups) {
|
|
388
|
+
if (_Registry["default"].popups[i].length >= 1) {
|
|
389
|
+
noPopups = false;
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
if (this.popupObserver) {
|
|
395
|
+
this.popupObserver.disconnect();
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
if (noPopups && _Registry["default"].listenerPopupRef !== undefined) {
|
|
399
|
+
_Registry["default"].listenerPopupRef.updateListeners(false, CLICK_EVENTS, document);
|
|
400
|
+
|
|
401
|
+
document.removeEventListener('keyup', _Registry["default"].listenerPopupRef.documentKeyupHandler); // document.removeEventListener('scroll', Registry.listenerPopupRef.handleScroll);
|
|
402
|
+
|
|
403
|
+
window.removeEventListener('resize', _Registry["default"].listenerPopupRef.handleResize);
|
|
404
|
+
document.removeEventListener('mousedown', _Registry["default"].listenerPopupRef.handleDocumentMouseDown, true);
|
|
405
|
+
document.removeEventListener('focus', _Registry["default"].listenerPopupRef.handleDocumentFocus, true);
|
|
406
|
+
_Registry["default"].listenerPopupRef = undefined;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
this.cancelPendingAnimationFrames();
|
|
410
|
+
}
|
|
411
|
+
}, {
|
|
412
|
+
key: "handleAddingScrollBlock",
|
|
413
|
+
value: function handleAddingScrollBlock() {
|
|
414
|
+
var isAbsolutePositioningNeeded = this.getIsAbsolutePopup(this);
|
|
415
|
+
var isOutsideScrollBlocked = this.getIsOutsideScrollBlocked(this);
|
|
416
|
+
|
|
417
|
+
if (isOutsideScrollBlocked && !isAbsolutePositioningNeeded) {
|
|
418
|
+
(0, _intersectionObserver.addIntersectionObserver)(this.placeHolderElement, this.handleIntersectionObserver);
|
|
419
|
+
this.addScrollBlockListeners();
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}, {
|
|
423
|
+
key: "handleRemovingScrollBlock",
|
|
424
|
+
value: function handleRemovingScrollBlock() {
|
|
425
|
+
var isAbsolutePositioningNeeded = this.getIsAbsolutePopup(this);
|
|
426
|
+
var isOutsideScrollBlocked = this.getIsOutsideScrollBlocked(this);
|
|
427
|
+
|
|
428
|
+
if (isOutsideScrollBlocked && !isAbsolutePositioningNeeded) {
|
|
429
|
+
(0, _intersectionObserver.removeIntersectionObserver)(this.placeHolderElement, this.handleIntersectionObserver);
|
|
430
|
+
this.removeScrollBlockListeners();
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}, {
|
|
434
|
+
key: "handleAddingScrollToUpdatePosition",
|
|
435
|
+
value: function handleAddingScrollToUpdatePosition() {
|
|
436
|
+
var isAbsolutePositioningNeeded = this.getIsAbsolutePopup(this);
|
|
437
|
+
var isOutsideScrollBlocked = this.getIsOutsideScrollBlocked(this);
|
|
438
|
+
|
|
439
|
+
if (!isOutsideScrollBlocked && !isAbsolutePositioningNeeded) {
|
|
440
|
+
(0, _intersectionObserver.addIntersectionObserver)(this.placeHolderElement, this.updateVisibilityOnIntersection);
|
|
441
|
+
var shouldAddScrollToUpdatePositionListeners = _Registry["default"].getOpenedScrollableFixedPopups().length === 1 && _Registry["default"].scrollableListenerPopupRef === undefined;
|
|
442
|
+
|
|
443
|
+
if (shouldAddScrollToUpdatePositionListeners) {
|
|
444
|
+
_Registry["default"].scrollableListenerPopupRef = this;
|
|
445
|
+
|
|
446
|
+
_Registry["default"].scrollableListenerPopupRef.addScrollToUpdateListeners();
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}, {
|
|
451
|
+
key: "handleRemovingScrollToUpdatePosition",
|
|
452
|
+
value: function handleRemovingScrollToUpdatePosition() {
|
|
453
|
+
var isAbsolutePositioningNeeded = this.getIsAbsolutePopup(this);
|
|
454
|
+
var isOutsideScrollBlocked = this.getIsOutsideScrollBlocked(this);
|
|
455
|
+
|
|
456
|
+
if (!isOutsideScrollBlocked && !isAbsolutePositioningNeeded) {
|
|
457
|
+
(0, _intersectionObserver.removeIntersectionObserver)(this.placeHolderElement, this.updateVisibilityOnIntersection);
|
|
458
|
+
var shouldRemoveScrollToUpdatePositionListeners = _Registry["default"].getOpenedScrollableFixedPopups().length === 0 && _Registry["default"].scrollableListenerPopupRef !== undefined;
|
|
459
|
+
|
|
460
|
+
if (shouldRemoveScrollToUpdatePositionListeners) {
|
|
461
|
+
_Registry["default"].scrollableListenerPopupRef.removeScrollToUpdateListeners();
|
|
462
|
+
|
|
463
|
+
_Registry["default"].scrollableListenerPopupRef = undefined;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}, {
|
|
468
|
+
key: "handleDropElementStyleUpdate",
|
|
469
|
+
value: function handleDropElementStyleUpdate(_ref3) {
|
|
470
|
+
var _ref3$top = _ref3.top,
|
|
471
|
+
top = _ref3$top === void 0 ? '' : _ref3$top,
|
|
472
|
+
_ref3$left = _ref3.left,
|
|
473
|
+
left = _ref3$left === void 0 ? '' : _ref3$left,
|
|
474
|
+
_ref3$bottom = _ref3.bottom,
|
|
475
|
+
bottom = _ref3$bottom === void 0 ? '' : _ref3$bottom,
|
|
476
|
+
_ref3$right = _ref3.right,
|
|
477
|
+
right = _ref3$right === void 0 ? '' : _ref3$right;
|
|
478
|
+
var dropElement = this.dropElement;
|
|
479
|
+
Object.assign(dropElement.style, {
|
|
480
|
+
top: top ? "".concat(top, "px") : '',
|
|
481
|
+
left: left ? "".concat(left, "px") : '',
|
|
482
|
+
right: right ? "".concat(right, "px") : '',
|
|
483
|
+
bottom: bottom ? "".concat(bottom, "px") : ''
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
}, {
|
|
487
|
+
key: "waitForDropElement",
|
|
488
|
+
value: function waitForDropElement(callback) {
|
|
489
|
+
var _this4 = this;
|
|
490
|
+
|
|
491
|
+
var maxRetries = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;
|
|
492
|
+
var delay = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 100;
|
|
493
|
+
|
|
494
|
+
if (this.dropElement) {
|
|
495
|
+
callback();
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
if (maxRetries <= 0) {
|
|
500
|
+
console.warn('Popup: dropElement not available after maximum retries');
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
setTimeout(function () {
|
|
505
|
+
_this4.waitForDropElement(callback, maxRetries - 1, Math.min(delay * 1.5, 1000));
|
|
506
|
+
}, delay);
|
|
507
|
+
}
|
|
508
|
+
}, {
|
|
509
|
+
key: "setContainerDynamicPositioning",
|
|
510
|
+
value: function setContainerDynamicPositioning(betterPosition, needArrow) {
|
|
511
|
+
var _this5 = this;
|
|
512
|
+
|
|
513
|
+
var dropElement = this.dropElement;
|
|
514
|
+
var isMobile = this.state.isMobile;
|
|
515
|
+
|
|
516
|
+
if (!dropElement) {
|
|
517
|
+
// Wait for dropElement to be available (in case it's being loaded from a chunk)
|
|
518
|
+
this.waitForDropElement(function () {
|
|
519
|
+
var _ref4 = betterPosition || _Common.DUMMY_OBJECT,
|
|
520
|
+
view = _ref4.view,
|
|
521
|
+
viewsOffset = _ref4.viewsOffset;
|
|
522
|
+
|
|
523
|
+
var styleToApply = (0, _selectn["default"])("".concat(view), viewsOffset);
|
|
524
|
+
|
|
525
|
+
if (isMobile) {
|
|
526
|
+
_this5.handleDropElementStyleUpdate({
|
|
527
|
+
top: '',
|
|
528
|
+
left: '',
|
|
529
|
+
right: '',
|
|
530
|
+
bottom: ''
|
|
531
|
+
});
|
|
532
|
+
} else {
|
|
533
|
+
_this5.handleDropElementStyleUpdate(styleToApply);
|
|
534
|
+
|
|
535
|
+
if (_this5.positionRef.current !== view) {
|
|
536
|
+
dropElement.setAttribute('data-position', "".concat(view));
|
|
537
|
+
dropElement.setAttribute('data-box-direction', (0, _selectn["default"])("".concat(view, ".direction"), _DropBoxPositionMapping.positionMapping));
|
|
538
|
+
|
|
539
|
+
if (needArrow) {
|
|
540
|
+
dropElement.setAttribute('data-arrow-position', (0, _selectn["default"])("".concat(view, ".arrowPosition"), _DropBoxPositionMapping.positionMapping));
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
_this5.positionRef.current = view;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
});
|
|
547
|
+
return;
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}, {
|
|
551
|
+
key: "updatePositionOnScroll",
|
|
552
|
+
value: function updatePositionOnScroll(e) {
|
|
553
|
+
var scrollablePopups = _Registry["default"].getOpenedScrollableFixedPopups(); // Check if the event target is outside all dropElements
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
scrollablePopups.forEach(function (_ref5) {
|
|
557
|
+
var placeHolderElement = _ref5.placeHolderElement,
|
|
558
|
+
defaultPosition = _ref5.defaultPosition,
|
|
559
|
+
isTargetElementVisible = _ref5.isTargetElementVisible,
|
|
560
|
+
handlePopupPosition = _ref5.handlePopupPosition;
|
|
561
|
+
|
|
562
|
+
if (e.target.contains(placeHolderElement) && isTargetElementVisible) {
|
|
563
|
+
handlePopupPosition(defaultPosition, true);
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
}, {
|
|
568
|
+
key: "updateListeners",
|
|
569
|
+
value: function updateListeners() {
|
|
570
|
+
var _this6 = this;
|
|
571
|
+
|
|
572
|
+
var add = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
573
|
+
var eventList = arguments.length > 1 ? arguments[1] : undefined;
|
|
574
|
+
var element = arguments.length > 2 ? arguments[2] : undefined;
|
|
575
|
+
var method = add ? 'addEventListener' : 'removeEventListener';
|
|
576
|
+
eventList.forEach(function (_ref6) {
|
|
577
|
+
var name = _ref6.name,
|
|
578
|
+
handlerName = _ref6.handlerName,
|
|
579
|
+
options = _ref6.options;
|
|
580
|
+
var handler = _this6[handlerName];
|
|
581
|
+
|
|
582
|
+
if (handler) {
|
|
583
|
+
element[method](name, handler, options);
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
}, {
|
|
588
|
+
key: "addScrollBlockListeners",
|
|
589
|
+
value: function addScrollBlockListeners() {
|
|
590
|
+
// Only add scroll block listeners if at least one open popup needs outside scroll blocked
|
|
591
|
+
var shouldAddScrollBlockListeners = _Registry["default"].getOpenedScrollBlockedFixedPopups().length === 1 && _Registry["default"].scrollBlockedListenerPopupRef === undefined;
|
|
592
|
+
|
|
593
|
+
if (shouldAddScrollBlockListeners) {
|
|
594
|
+
_Registry["default"].scrollBlockedListenerPopupRef = this; // Main document
|
|
595
|
+
|
|
596
|
+
_Registry["default"].scrollBlockedListenerPopupRef.updateListeners(true, SCROLL_BLOCK_EVENTS, document); // Attach event listeners to all iframes within rootElement
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
_Registry["default"].scrollBlockedListenerPopupRef.handleIframeEventListeners(true, IFRAME_SCROLL_BLOCK_EVENTS);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}, {
|
|
603
|
+
key: "removeScrollBlockListeners",
|
|
604
|
+
value: function removeScrollBlockListeners() {
|
|
605
|
+
// Only remove scroll block listeners if at least one open popup needs outside scroll blocked
|
|
606
|
+
var shouldRemoveScrollBlockListeners = _Registry["default"].getOpenedScrollBlockedFixedPopups().length === 0 && _Registry["default"].scrollBlockedListenerPopupRef !== undefined;
|
|
607
|
+
|
|
608
|
+
if (shouldRemoveScrollBlockListeners) {
|
|
609
|
+
_Registry["default"].scrollBlockedListenerPopupRef.updateListeners(false, SCROLL_BLOCK_EVENTS, document);
|
|
610
|
+
|
|
611
|
+
_Registry["default"].scrollBlockedListenerPopupRef.handleIframeEventListeners(false, IFRAME_SCROLL_BLOCK_EVENTS);
|
|
612
|
+
|
|
613
|
+
_Registry["default"].scrollBlockedListenerPopupRef = undefined;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}, {
|
|
617
|
+
key: "addScrollToUpdateListeners",
|
|
618
|
+
value: function addScrollToUpdateListeners() {
|
|
619
|
+
document.addEventListener('scroll', this.updatePositionOnScroll, {
|
|
620
|
+
capture: true,
|
|
621
|
+
passive: false
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
}, {
|
|
625
|
+
key: "removeScrollToUpdateListeners",
|
|
626
|
+
value: function removeScrollToUpdateListeners() {
|
|
627
|
+
document.removeEventListener('scroll', this.updatePositionOnScroll, {
|
|
628
|
+
capture: true,
|
|
629
|
+
passive: false
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
}, {
|
|
633
|
+
key: "handleBlockScroll",
|
|
634
|
+
value: function handleBlockScroll(event) {
|
|
635
|
+
var scrollBlockedPopups = _Registry["default"].getOpenedScrollBlockedFixedPopups(); // Check if the event target is outside all dropElements
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
var isOutsideAllDropElements = scrollBlockedPopups.every(function (_ref7) {
|
|
639
|
+
var dropElement = _ref7.dropElement;
|
|
640
|
+
return dropElement && dropElement !== event.target && !dropElement.contains(event.target);
|
|
641
|
+
});
|
|
642
|
+
|
|
643
|
+
if (isOutsideAllDropElements) {
|
|
644
|
+
event.preventDefault();
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}, {
|
|
648
|
+
key: "handlePositionChange",
|
|
649
|
+
value: function handlePositionChange(event) {
|
|
650
|
+
var scrollBlockedPopups = _Registry["default"].getOpenedScrollBlockedFixedPopups();
|
|
651
|
+
|
|
652
|
+
scrollBlockedPopups.forEach(function (_ref8) {
|
|
653
|
+
var placeHolderElement = _ref8.placeHolderElement,
|
|
654
|
+
dropElement = _ref8.dropElement,
|
|
655
|
+
handlePopupPosition = _ref8.handlePopupPosition,
|
|
656
|
+
state = _ref8.state;
|
|
657
|
+
|
|
658
|
+
if (dropElement && dropElement !== event.target && !dropElement.contains(event.target) && placeHolderElement && placeHolderElement !== event.target && !placeHolderElement.contains(event.target) && event.target.contains(placeHolderElement)) {
|
|
659
|
+
handlePopupPosition(state.position, true);
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
}, {
|
|
664
|
+
key: "preventKeyboardScroll",
|
|
665
|
+
value: function preventKeyboardScroll(event) {
|
|
666
|
+
var keys = [32, 37, 38, 39, 40]; // Space, Arrow keys
|
|
667
|
+
|
|
668
|
+
var scrollBlockedPopups = _Registry["default"].getOpenedScrollBlockedFixedPopups(); // Check if the event target is outside all dropElements
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
var isOutsideAllDropElements = scrollBlockedPopups.every(function (_ref9) {
|
|
672
|
+
var dropElement = _ref9.dropElement;
|
|
673
|
+
return dropElement && dropElement !== event.target && !dropElement.contains(event.target) && keys.includes(event.keyCode);
|
|
674
|
+
});
|
|
675
|
+
|
|
676
|
+
if (isOutsideAllDropElements) {
|
|
677
|
+
event.preventDefault();
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
}, {
|
|
681
|
+
key: "handleIntersectionObserver",
|
|
682
|
+
value: function handleIntersectionObserver(entry) {
|
|
683
|
+
if (entry.intersectionRatio === 0 && entry.isIntersecting === false) {
|
|
684
|
+
this.closePopupOnly();
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}, {
|
|
688
|
+
key: "updateVisibilityOnIntersection",
|
|
689
|
+
value: function updateVisibilityOnIntersection(entry) {
|
|
690
|
+
var dropElement = this.dropElement;
|
|
691
|
+
if (!dropElement) return;
|
|
692
|
+
|
|
693
|
+
if (entry.isIntersecting === true) {
|
|
694
|
+
this.isTargetElementVisible = true;
|
|
695
|
+
dropElement.setAttribute('data-visible', 'visible');
|
|
696
|
+
} else if (entry.intersectionRatio === 0 && entry.isIntersecting === false) {
|
|
697
|
+
this.isTargetElementVisible = false;
|
|
698
|
+
dropElement.setAttribute('data-visible', 'hidden');
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}, {
|
|
702
|
+
key: "getGroup",
|
|
703
|
+
value: function getGroup() {
|
|
704
|
+
var popupGroup = this.props.popupGroup;
|
|
705
|
+
return popupGroup || group;
|
|
706
|
+
}
|
|
707
|
+
}, {
|
|
708
|
+
key: "getNeedArrow",
|
|
709
|
+
value: function getNeedArrow(popup) {
|
|
710
|
+
var isArrow = popup.props.isArrow;
|
|
711
|
+
var needPopupArrow = popup.needPopupArrow;
|
|
712
|
+
return isArrow !== undefined ? isArrow : needPopupArrow;
|
|
713
|
+
}
|
|
714
|
+
}, {
|
|
715
|
+
key: "getScrollDebounceTime",
|
|
716
|
+
value: function getScrollDebounceTime(popup) {
|
|
717
|
+
var scrollDebounceTime = popup.props.scrollDebounceTime;
|
|
718
|
+
var popupScrollDebounceTime = popup.scrollDebounceTime;
|
|
719
|
+
return scrollDebounceTime !== undefined ? scrollDebounceTime : popupScrollDebounceTime;
|
|
720
|
+
}
|
|
721
|
+
}, {
|
|
722
|
+
key: "getCloseOnScrollPopup",
|
|
723
|
+
value: function getCloseOnScrollPopup(popup) {
|
|
724
|
+
var closeOnScroll = popup.props.closeOnScroll;
|
|
725
|
+
var closeOnScrollPopup = popup.closeOnScroll;
|
|
726
|
+
return closeOnScroll !== undefined ? closeOnScroll : closeOnScrollPopup;
|
|
727
|
+
}
|
|
728
|
+
}, {
|
|
729
|
+
key: "getIsAbsolutePopup",
|
|
730
|
+
value: function getIsAbsolutePopup(popup) {
|
|
731
|
+
var isAbsolutePositioningNeeded = popup.props.isAbsolutePositioningNeeded;
|
|
732
|
+
var isAbsolutePopup = popup.isAbsolutePopup;
|
|
733
|
+
return isAbsolutePositioningNeeded !== undefined ? isAbsolutePositioningNeeded : isAbsolutePopup;
|
|
734
|
+
}
|
|
735
|
+
}, {
|
|
736
|
+
key: "getIsOutsideScrollBlocked",
|
|
737
|
+
value: function getIsOutsideScrollBlocked(popup) {
|
|
738
|
+
var isOutsideScrollBlocked = popup.props.isOutsideScrollBlocked;
|
|
739
|
+
var isOutsideScrollBlock = popup.isOutsideScrollBlock;
|
|
740
|
+
return isOutsideScrollBlocked !== undefined ? isOutsideScrollBlocked : isOutsideScrollBlock;
|
|
741
|
+
}
|
|
742
|
+
}, {
|
|
743
|
+
key: "getCustomPositionOrder",
|
|
744
|
+
value: function getCustomPositionOrder(popup) {
|
|
745
|
+
var _popup$props$customOr = popup.props.customOrder,
|
|
746
|
+
customOrder = _popup$props$customOr === void 0 ? [] : _popup$props$customOr;
|
|
747
|
+
var customPositionOrder = popup.customPositionOrder;
|
|
748
|
+
return customOrder.length !== 0 ? customOrder : customPositionOrder;
|
|
749
|
+
}
|
|
750
|
+
}, {
|
|
751
|
+
key: "togglePopup",
|
|
752
|
+
value: function togglePopup(e, defaultPosition) {
|
|
753
|
+
var _this7 = this;
|
|
754
|
+
|
|
755
|
+
var group = this.getGroup();
|
|
756
|
+
this.removeClose(e);
|
|
757
|
+
var isPopupOpen = this.state.isPopupOpen;
|
|
758
|
+
var groupPopups = _Registry["default"].popups[group] || [];
|
|
759
|
+
_Registry["default"].lastOpenedGroup = !isPopupOpen && _Registry["default"].lastOpenedGroup.indexOf(group) === -1 ? [group].concat(_toConsumableArray(_Registry["default"].lastOpenedGroup)) : _Registry["default"].lastOpenedGroup;
|
|
760
|
+
isPopupOpen && _Registry["default"].lastOpenedGroup.splice(0, 1);
|
|
761
|
+
groupPopups.forEach(function (popup) {
|
|
762
|
+
if (popup !== _this7 && popup.state.isPopupOpen) {
|
|
763
|
+
popup.setState({
|
|
764
|
+
isPopupOpen: false,
|
|
765
|
+
isPopupReady: false
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
});
|
|
769
|
+
|
|
770
|
+
if (isPopupOpen) {
|
|
771
|
+
this.setState({
|
|
772
|
+
isPopupOpen: false,
|
|
773
|
+
isPopupReady: false
|
|
774
|
+
});
|
|
775
|
+
} else {
|
|
776
|
+
this.handlePopupPosition(defaultPosition);
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
}, {
|
|
780
|
+
key: "openPopupOnly",
|
|
781
|
+
value: function openPopupOnly(e, defaultPosition) {
|
|
782
|
+
var group = this.getGroup();
|
|
783
|
+
this.removeClose(e);
|
|
784
|
+
_Registry["default"].lastOpenedGroup = _Registry["default"].lastOpenedGroup.indexOf(group) === -1 ? [group].concat(_toConsumableArray(_Registry["default"].lastOpenedGroup)) : _Registry["default"].lastOpenedGroup;
|
|
785
|
+
this.handlePopupPosition(defaultPosition);
|
|
786
|
+
}
|
|
787
|
+
}, {
|
|
788
|
+
key: "closePopupOnly",
|
|
789
|
+
value: function closePopupOnly(e) {
|
|
790
|
+
this.removeClose(e);
|
|
791
|
+
var isPopupOpen = this.state.isPopupOpen;
|
|
792
|
+
|
|
793
|
+
if (isPopupOpen) {
|
|
794
|
+
_Registry["default"].lastOpenedGroup.splice(0, 1);
|
|
795
|
+
|
|
796
|
+
this.setState({
|
|
797
|
+
isPopupOpen: false,
|
|
798
|
+
isPopupReady: false
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}, {
|
|
803
|
+
key: "handleCloseLastOpenedGroup",
|
|
804
|
+
value: function handleCloseLastOpenedGroup() {
|
|
805
|
+
var groupPopups = _Registry["default"].lastOpenedGroup.length ? _Registry["default"].popups[_Registry["default"].lastOpenedGroup[0]] || [] : [];
|
|
806
|
+
|
|
807
|
+
_Registry["default"].lastOpenedGroup.splice(0, 1);
|
|
808
|
+
|
|
809
|
+
groupPopups.forEach(function (popup) {
|
|
810
|
+
popup.state.isPopupOpen && popup.setState({
|
|
811
|
+
isPopupOpen: false,
|
|
812
|
+
isPopupReady: false
|
|
813
|
+
});
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
}, {
|
|
817
|
+
key: "handleDocumentMouseDown",
|
|
818
|
+
value: function handleDocumentMouseDown(e) {
|
|
819
|
+
var needPrevent = this.handleGetNeedPrevent(e);
|
|
820
|
+
|
|
821
|
+
if (needPrevent) {
|
|
822
|
+
this.removeClose(e);
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}, {
|
|
826
|
+
key: "handleDocumentFocus",
|
|
827
|
+
value: function handleDocumentFocus(e) {
|
|
828
|
+
var needPrevent = this.handleGetNeedPrevent(e);
|
|
829
|
+
|
|
830
|
+
if (needPrevent) {
|
|
831
|
+
this.removeClose(e);
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
}, {
|
|
835
|
+
key: "handleGetNeedPrevent",
|
|
836
|
+
value: function handleGetNeedPrevent(e) {
|
|
837
|
+
var needPrevent = false;
|
|
838
|
+
|
|
839
|
+
if (_Registry["default"].lastOpenedGroup.length > 1) {
|
|
840
|
+
var target = e.target;
|
|
841
|
+
var groupPopups = _Registry["default"].lastOpenedGroup.length ? _Registry["default"].popups[_Registry["default"].lastOpenedGroup[0]] : [];
|
|
842
|
+
var openedPopup = null; // eslint-disable-next-line guard-for-in
|
|
843
|
+
|
|
844
|
+
for (var i in groupPopups) {
|
|
845
|
+
var isPopupOpen = groupPopups[i].state.isPopupOpen;
|
|
846
|
+
|
|
847
|
+
if (isPopupOpen) {
|
|
848
|
+
openedPopup = groupPopups[i];
|
|
849
|
+
break;
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
if (openedPopup) {
|
|
854
|
+
var _openedPopup = openedPopup,
|
|
855
|
+
dropElement = _openedPopup.dropElement,
|
|
856
|
+
placeHolderElement = _openedPopup.placeHolderElement;
|
|
857
|
+
var isDropBoxChild = (0, _Common.isDescendant)(dropElement, target);
|
|
858
|
+
var isTargetChild = (0, _Common.isDescendant)(placeHolderElement, target); // const isPopupMassUpdateChild = isDescendant(
|
|
859
|
+
// massUpdateParent,
|
|
860
|
+
// dropElement
|
|
861
|
+
// );
|
|
862
|
+
|
|
863
|
+
if (!isDropBoxChild && !isTargetChild // && isPopupMassUpdateChild
|
|
864
|
+
) {
|
|
865
|
+
needPrevent = true;
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
return needPrevent;
|
|
871
|
+
}
|
|
872
|
+
}, {
|
|
873
|
+
key: "documentClickHandler1",
|
|
874
|
+
value: function documentClickHandler1(e) {
|
|
875
|
+
var needPrevent = this.handleGetNeedPrevent(e);
|
|
876
|
+
|
|
877
|
+
if (needPrevent) {
|
|
878
|
+
this.removeClose(e);
|
|
879
|
+
this.handleCloseLastOpenedGroup();
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}, {
|
|
883
|
+
key: "documentClickHandler",
|
|
884
|
+
value: function documentClickHandler() {
|
|
885
|
+
try {
|
|
886
|
+
Object.keys(_Registry["default"].popups).forEach(function (groupName) {
|
|
887
|
+
var groupPopups = _Registry["default"].popups[groupName] || [];
|
|
888
|
+
groupPopups.forEach(function (popup) {
|
|
889
|
+
popup.state.isPopupOpen && (!popup.props.checkBeforeClose || popup.props.checkBeforeClose && popup.props.checkBeforeClose()) && !(0, _Common.isTextSelected)() && popup.setState({
|
|
890
|
+
isPopupOpen: false,
|
|
891
|
+
isPopupReady: false
|
|
892
|
+
});
|
|
893
|
+
});
|
|
894
|
+
});
|
|
895
|
+
_Registry["default"].lastOpenedGroup = [];
|
|
896
|
+
} catch (e) {// eslint-disable-next-line no-console
|
|
897
|
+
//console.error('popup component not unmounted properly', e);
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}, {
|
|
901
|
+
key: "documentKeyupHandler",
|
|
902
|
+
value: function documentKeyupHandler(e) {
|
|
903
|
+
try {
|
|
904
|
+
if (e.keyCode === 27) {
|
|
905
|
+
this.handleCloseLastOpenedGroup();
|
|
906
|
+
}
|
|
907
|
+
} catch (e) {// eslint-disable-next-line no-console
|
|
908
|
+
//console.log('error', e);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
}, {
|
|
912
|
+
key: "removeClose",
|
|
913
|
+
value: function removeClose(e) {
|
|
914
|
+
// e && e.preventDefault && e.preventDefault();
|
|
915
|
+
(0, _Common.cancelBubblingEffect)(e);
|
|
916
|
+
}
|
|
917
|
+
}, {
|
|
918
|
+
key: "updatePopupState",
|
|
919
|
+
value: function updatePopupState(view, views, viewsOffset, targetOffset, popupOffset, isAbsolute) {
|
|
920
|
+
var isMobile = (0, _isMobilePopover["default"])(true);
|
|
921
|
+
this.setState({
|
|
922
|
+
isPopupReady: true,
|
|
923
|
+
position: view,
|
|
924
|
+
positions: views,
|
|
925
|
+
positionsOffset: viewsOffset,
|
|
926
|
+
targetOffset: targetOffset,
|
|
927
|
+
popupOffset: popupOffset,
|
|
928
|
+
isAbsolutePositioningNeeded: isAbsolute,
|
|
929
|
+
isMobile: isMobile
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
}, {
|
|
933
|
+
key: "handlePopupPosition",
|
|
934
|
+
value: function handlePopupPosition() {
|
|
935
|
+
var _this8 = this;
|
|
936
|
+
|
|
937
|
+
var defaultPosition = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'bottomCenter';
|
|
938
|
+
var isUpdatePosition = arguments.length > 1 ? arguments[1] : undefined;
|
|
939
|
+
|
|
940
|
+
// isUpdatePosition --->>> Window resize and dropBox resize and to update the position
|
|
941
|
+
var _ref10 = this.context || {},
|
|
942
|
+
direction = _ref10.direction;
|
|
943
|
+
|
|
944
|
+
var placeHolderElement = this.placeHolderElement,
|
|
945
|
+
dropElement = this.dropElement;
|
|
946
|
+
var needArrow = this.getNeedArrow(this);
|
|
947
|
+
var isAbsolute = this.getIsAbsolutePopup(this);
|
|
948
|
+
var customOrder = this.getCustomPositionOrder(this);
|
|
949
|
+
|
|
950
|
+
if (direction === 'rtl') {
|
|
951
|
+
defaultPosition = isAbsolute ? _PositionMapping.rtlAbsolutePositionMapping[defaultPosition] : _PositionMapping.rtlFixedPositionMapping[defaultPosition];
|
|
952
|
+
} else {
|
|
953
|
+
defaultPosition = isAbsolute ? _PositionMapping.absolutePositionMapping[defaultPosition] : defaultPosition;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
if (!placeHolderElement && !dropElement) {
|
|
957
|
+
var isMobile = (0, _isMobilePopover["default"])(true);
|
|
958
|
+
this.setState({
|
|
959
|
+
isPopupOpen: true,
|
|
960
|
+
isPopupReady: true,
|
|
961
|
+
isMobile: isMobile
|
|
962
|
+
});
|
|
963
|
+
return;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
var setPosition = function setPosition() {
|
|
967
|
+
_this8.cancelRaf('setPositionRafId');
|
|
968
|
+
|
|
969
|
+
_this8.setPositionRafId = requestAnimationFrame(function () {
|
|
970
|
+
var placeHolderElement = _this8.placeHolderElement,
|
|
971
|
+
dropElement = _this8.dropElement;
|
|
972
|
+
var _this8$state = _this8.state,
|
|
973
|
+
position = _this8$state.position,
|
|
974
|
+
isPopupReady = _this8$state.isPopupReady;
|
|
975
|
+
var scrollContainer = placeHolderElement ? placeHolderElement.closest('[data-scroll=true]') || document.body : document.body;
|
|
976
|
+
|
|
977
|
+
var betterPosition = _viewPort["default"].betterView(dropElement, placeHolderElement, defaultPosition, scrollContainer, {
|
|
978
|
+
needArrow: needArrow,
|
|
979
|
+
isAbsolute: isAbsolute,
|
|
980
|
+
customOrder: customOrder
|
|
981
|
+
});
|
|
982
|
+
|
|
983
|
+
var _ref11 = betterPosition || _Common.DUMMY_OBJECT,
|
|
984
|
+
view = _ref11.view,
|
|
985
|
+
views = _ref11.views,
|
|
986
|
+
viewsOffset = _ref11.viewsOffset,
|
|
987
|
+
targetOffset = _ref11.targetOffset,
|
|
988
|
+
popupOffset = _ref11.popupOffset;
|
|
989
|
+
|
|
990
|
+
if (!isAbsolute) {
|
|
991
|
+
if (!isPopupReady) {
|
|
992
|
+
_this8.updatePopupState(view, views, viewsOffset, targetOffset, popupOffset, isAbsolute);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
_this8.setContainerDynamicPositioning(betterPosition, needArrow);
|
|
996
|
+
} else {
|
|
997
|
+
if (position !== view || !isPopupReady) {
|
|
998
|
+
_this8.updatePopupState(view, views, viewsOffset, targetOffset, popupOffset, isAbsolute);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
_this8.setPositionRafId = null;
|
|
1003
|
+
});
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
if (isUpdatePosition) {
|
|
1007
|
+
setPosition();
|
|
1008
|
+
} else {
|
|
1009
|
+
this.defaultPosition = defaultPosition;
|
|
1010
|
+
this.setState({
|
|
1011
|
+
isPopupOpen: true,
|
|
1012
|
+
isPopupReady: false
|
|
1013
|
+
}, setPosition);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
}, {
|
|
1017
|
+
key: "handleOpenPopupPositionChange",
|
|
1018
|
+
value: function handleOpenPopupPositionChange() {
|
|
1019
|
+
var _this9 = this;
|
|
1020
|
+
|
|
1021
|
+
Object.keys(_Registry["default"].popups).forEach(function (groupName) {
|
|
1022
|
+
var groupPopups = _Registry["default"].popups[groupName] || [];
|
|
1023
|
+
groupPopups.forEach(function (popup) {
|
|
1024
|
+
if (popup.state.isPopupOpen) {
|
|
1025
|
+
var placeHolderElement = popup.placeHolderElement,
|
|
1026
|
+
dropElement = popup.dropElement,
|
|
1027
|
+
defaultPosition = popup.defaultPosition;
|
|
1028
|
+
var _popup$state = popup.state,
|
|
1029
|
+
position = _popup$state.position,
|
|
1030
|
+
_popup$state$position = _popup$state.positionsOffset,
|
|
1031
|
+
positionsOffset = _popup$state$position === void 0 ? {} : _popup$state$position;
|
|
1032
|
+
|
|
1033
|
+
if (placeHolderElement && dropElement) {
|
|
1034
|
+
var scrollContainer = placeHolderElement.closest('[data-scroll=true]') || document.body;
|
|
1035
|
+
|
|
1036
|
+
_this9.cancelRaf('resizePositionRafId');
|
|
1037
|
+
|
|
1038
|
+
_this9.resizePositionRafId = requestAnimationFrame(function () {
|
|
1039
|
+
var needArrow = _this9.getNeedArrow(popup);
|
|
1040
|
+
|
|
1041
|
+
var isAbsolute = _this9.getIsAbsolutePopup(popup);
|
|
1042
|
+
|
|
1043
|
+
var customOrder = _this9.getCustomPositionOrder(popup);
|
|
1044
|
+
|
|
1045
|
+
var isMobile = (0, _isMobilePopover["default"])(true);
|
|
1046
|
+
|
|
1047
|
+
var betterPosition = _viewPort["default"].betterView(dropElement, placeHolderElement, defaultPosition, scrollContainer, {
|
|
1048
|
+
needArrow: needArrow,
|
|
1049
|
+
isAbsolute: isAbsolute,
|
|
1050
|
+
customOrder: customOrder
|
|
1051
|
+
});
|
|
1052
|
+
|
|
1053
|
+
var _ref12 = betterPosition || {},
|
|
1054
|
+
view = _ref12.view,
|
|
1055
|
+
views = _ref12.views,
|
|
1056
|
+
_ref12$viewsOffset = _ref12.viewsOffset,
|
|
1057
|
+
viewsOffset = _ref12$viewsOffset === void 0 ? {} : _ref12$viewsOffset,
|
|
1058
|
+
targetOffset = _ref12.targetOffset,
|
|
1059
|
+
popupOffset = _ref12.popupOffset;
|
|
1060
|
+
|
|
1061
|
+
var _ref13 = positionsOffset[position] || {},
|
|
1062
|
+
_ref13$left = _ref13.left,
|
|
1063
|
+
oldLeft = _ref13$left === void 0 ? '' : _ref13$left,
|
|
1064
|
+
_ref13$top = _ref13.top,
|
|
1065
|
+
oldTop = _ref13$top === void 0 ? '' : _ref13$top,
|
|
1066
|
+
_ref13$bottom = _ref13.bottom,
|
|
1067
|
+
oldBottom = _ref13$bottom === void 0 ? '' : _ref13$bottom,
|
|
1068
|
+
_ref13$right = _ref13.right,
|
|
1069
|
+
oldRight = _ref13$right === void 0 ? '' : _ref13$right;
|
|
1070
|
+
|
|
1071
|
+
var _ref14 = viewsOffset[view] || {},
|
|
1072
|
+
_ref14$left = _ref14.left,
|
|
1073
|
+
left = _ref14$left === void 0 ? '' : _ref14$left,
|
|
1074
|
+
_ref14$top = _ref14.top,
|
|
1075
|
+
top = _ref14$top === void 0 ? '' : _ref14$top,
|
|
1076
|
+
_ref14$bottom = _ref14.bottom,
|
|
1077
|
+
bottom = _ref14$bottom === void 0 ? '' : _ref14$bottom,
|
|
1078
|
+
_ref14$right = _ref14.right,
|
|
1079
|
+
right = _ref14$right === void 0 ? '' : _ref14$right;
|
|
1080
|
+
|
|
1081
|
+
var changeState = isAbsolute ? position !== view : oldLeft !== left || oldTop !== top || oldBottom !== bottom || oldRight !== right; // let isInViewPort = viewPort.isInViewPort(
|
|
1082
|
+
// placeHolderElement,
|
|
1083
|
+
// scrollContainer
|
|
1084
|
+
// );
|
|
1085
|
+
|
|
1086
|
+
if (changeState) {
|
|
1087
|
+
popup.setState({
|
|
1088
|
+
position: view,
|
|
1089
|
+
positions: views,
|
|
1090
|
+
positionsOffset: viewsOffset,
|
|
1091
|
+
targetOffset: targetOffset,
|
|
1092
|
+
popupOffset: popupOffset,
|
|
1093
|
+
isAbsolutePositioningNeeded: isAbsolute,
|
|
1094
|
+
isMobile: isMobile
|
|
1095
|
+
});
|
|
1096
|
+
} // if (!isInViewPort && !isAbsolute) {
|
|
1097
|
+
// popup.setState({ isPopupOpen: false, isPopupReady: false });
|
|
1098
|
+
// } else if (view && changeState) {
|
|
1099
|
+
// popup.setState({
|
|
1100
|
+
// position: view,
|
|
1101
|
+
// positions: views,
|
|
1102
|
+
// positionsOffset: viewsOffset,
|
|
1103
|
+
// targetOffset,
|
|
1104
|
+
// popupOffset,
|
|
1105
|
+
// isAbsolutePositioningNeeded: isAbsolute
|
|
1106
|
+
// });
|
|
1107
|
+
// }
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
_this9.resizePositionRafId = null;
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
});
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
}, {
|
|
1118
|
+
key: "handleResize",
|
|
1119
|
+
value: function handleResize() {
|
|
1120
|
+
this.handleOpenPopupPositionChange();
|
|
1121
|
+
} // handleScroll(e) {
|
|
1122
|
+
// // this.handleOpenPopupPositionChange();
|
|
1123
|
+
// const { closeOnScroll } = this.getCloseOnScrollPopup(this);
|
|
1124
|
+
// const { isPopupReady } = this.state;
|
|
1125
|
+
// if (isPopupReady) {
|
|
1126
|
+
// console.log('onscrollPopupREady');
|
|
1127
|
+
// }
|
|
1128
|
+
// if (isPopupReady && closeOnScroll) {
|
|
1129
|
+
// console.log(this, 'handle Scroll');
|
|
1130
|
+
// this.togglePopup(e);
|
|
1131
|
+
// }
|
|
1132
|
+
// }
|
|
1133
|
+
|
|
1134
|
+
}, {
|
|
1135
|
+
key: "handlePopupResize",
|
|
1136
|
+
value: function handlePopupResize(popupSize) {
|
|
1137
|
+
var height = popupSize.height,
|
|
1138
|
+
width = popupSize.width;
|
|
1139
|
+
|
|
1140
|
+
var _ref15 = this.size || {},
|
|
1141
|
+
_ref15$height = _ref15.height,
|
|
1142
|
+
oldHeight = _ref15$height === void 0 ? 0 : _ref15$height,
|
|
1143
|
+
_ref15$width = _ref15.width,
|
|
1144
|
+
oldWidth = _ref15$width === void 0 ? 0 : _ref15$width;
|
|
1145
|
+
|
|
1146
|
+
var _this$state2 = this.state,
|
|
1147
|
+
isPopupReady = _this$state2.isPopupReady,
|
|
1148
|
+
position = _this$state2.position;
|
|
1149
|
+
|
|
1150
|
+
if (isPopupReady && this.size && (oldHeight !== height || width !== oldWidth)) {
|
|
1151
|
+
this.handlePopupPosition(position, true);
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
this.size = popupSize;
|
|
1155
|
+
}
|
|
1156
|
+
}, {
|
|
1157
|
+
key: "getTargetRef",
|
|
1158
|
+
value: function getTargetRef(el) {
|
|
1159
|
+
this.placeHolderElement = el;
|
|
1160
|
+
}
|
|
1161
|
+
}, {
|
|
1162
|
+
key: "getContainerRef",
|
|
1163
|
+
value: function getContainerRef(el) {
|
|
1164
|
+
this.dropElement = el;
|
|
1165
|
+
}
|
|
1166
|
+
}, {
|
|
1167
|
+
key: "render",
|
|
1168
|
+
value: function render() {
|
|
1169
|
+
// const { isPopupReady, isPopupOpen } = this.state;
|
|
1170
|
+
var _this$state3 = this.state,
|
|
1171
|
+
isMobile = _this$state3.isMobile,
|
|
1172
|
+
restState = _objectWithoutProperties(_this$state3, _excluded); // const localState = isPopupReady ? this.state : {};
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
return /*#__PURE__*/_react["default"].createElement(Component, _extends({}, this.props, restState, {
|
|
1176
|
+
openPopupOnly: this.openPopupOnly,
|
|
1177
|
+
closePopupOnly: this.closePopupOnly,
|
|
1178
|
+
togglePopup: this.togglePopup,
|
|
1179
|
+
removeClose: this.removeClose,
|
|
1180
|
+
getTargetRef: this.getTargetRef,
|
|
1181
|
+
getContainerRef: this.getContainerRef
|
|
1182
|
+
}));
|
|
1183
|
+
}
|
|
1184
|
+
}]);
|
|
1185
|
+
|
|
1186
|
+
return Popup;
|
|
1187
|
+
}(_react["default"].Component);
|
|
1188
|
+
|
|
1189
|
+
Popup.displayName = Component.displayName || Component.name || Popup.name;
|
|
1190
|
+
Popup.contextTypes = _propTypes.ContextTypes;
|
|
1191
|
+
Popup.propTypes = _propTypes.PopupPropTypes;
|
|
1192
|
+
return (0, _hoistNonReactStatics["default"])(Popup, Component);
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1195
|
+
var _default = Popup;
|
|
1196
|
+
exports["default"] = _default;
|