@zohodesk/components 1.0.0-temp-220.1 → 1.0.0-temp-221
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/es/Accordion/Accordion.js +2 -2
- package/es/Accordion/AccordionItem.js +4 -4
- package/es/Accordion/__tests__/Accordion.spec.js +1 -1
- package/es/Accordion/__tests__/AccordionItem.spec.js +1 -1
- package/es/Accordion/index.js +2 -2
- package/es/Animation/Animation.js +3 -3
- package/es/Animation/__tests__/Animation.spec.js +1 -1
- package/es/Animation/utils.js +1 -1
- package/es/AppContainer/AppContainer.js +9 -9
- package/es/AppContainer/__tests__/AppContainer.spec.js +1 -1
- package/es/Avatar/Avatar.js +5 -5
- package/es/Avatar/__tests__/Avatar.spec.js +1 -1
- package/es/AvatarTeam/AvatarTeam.js +4 -4
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -1
- package/es/AvatarTeam/props/propTypes.js +1 -1
- package/es/Button/Button.js +4 -4
- package/es/Button/__tests__/Button.spec.js +1 -1
- package/es/Button/index.js +2 -2
- package/es/Button/props/defaultProps.js +1 -1
- package/es/Buttongroup/Buttongroup.js +3 -3
- package/es/Buttongroup/__tests__/Buttongroup.spec.js +1 -1
- package/es/Card/Card.js +5 -5
- package/es/Card/__tests__/Card.spec.js +1 -1
- package/es/Card/index.js +4 -4
- package/es/CheckBox/CheckBox.js +6 -6
- package/es/CheckBox/__tests__/CheckBox.spec.js +1 -1
- package/es/DateTime/CalendarView.js +6 -6
- package/es/DateTime/DateTime.js +15 -15
- package/es/DateTime/DateTimePopupFooter.js +5 -5
- package/es/DateTime/DateTimePopupHeader.js +4 -4
- package/es/DateTime/DateWidget.js +17 -17
- package/es/DateTime/DaysRow.js +3 -3
- package/es/DateTime/Time.js +5 -5
- package/es/DateTime/YearView.js +6 -6
- package/es/DateTime/__tests__/CalendarView.spec.js +1 -1
- package/es/DateTime/__tests__/DateTime.spec.js +1 -1
- package/es/DateTime/__tests__/DateTimePopupFooter.spec.js +1 -1
- package/es/DateTime/__tests__/DateTimePopupHeader.spec.js +1 -1
- package/es/DateTime/__tests__/DateWidget.spec.js +1 -1
- package/es/DateTime/__tests__/DaysRow.spec.js +1 -1
- package/es/DateTime/__tests__/Time.spec.js +1 -1
- package/es/DateTime/__tests__/YearView.spec.js +1 -1
- package/es/DateTime/dateFormatUtils/dateFormat.js +4 -4
- package/es/DateTime/dateFormatUtils/dayChange.js +2 -2
- package/es/DateTime/dateFormatUtils/index.js +3 -3
- package/es/DateTime/dateFormatUtils/monthChange.js +2 -2
- package/es/DateTime/dateFormatUtils/timeChange.js +2 -2
- package/es/DateTime/dateFormatUtils/yearChange.js +2 -2
- package/es/DateTime/index.js +1 -1
- package/es/DateTime/props/propTypes.js +1 -1
- package/es/DateTime/validator.js +2 -2
- package/es/DropBox/DropBox.js +9 -9
- package/es/DropBox/DropBoxElement/DropBoxElement.js +6 -6
- package/es/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +1 -1
- package/es/DropBox/DropBoxElement/css/cssJSLogic.js +1 -1
- package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +1 -1
- package/es/DropBox/__tests__/DropBox.spec.js +1 -1
- package/es/DropBox/css/cssJSLogic.js +1 -1
- package/es/DropBox/props/defaultProps.js +1 -1
- package/es/DropBox/props/propTypes.js +1 -1
- package/es/DropBox/utils/isMobilePopover.js +1 -1
- package/es/DropDown/DropDown.js +4 -4
- package/es/DropDown/DropDownHeading.js +3 -3
- package/es/DropDown/DropDownItem.js +3 -3
- package/es/DropDown/DropDownSearch.js +4 -4
- package/es/DropDown/DropDownSeparator.js +2 -2
- package/es/DropDown/__tests__/DropDown.spec.js +1 -1
- package/es/DropDown/__tests__/DropDownHeading.spec.js +1 -1
- package/es/DropDown/__tests__/DropDownItem.spec.js +1 -1
- package/es/DropDown/__tests__/DropDownSearch.spec.js +1 -1
- package/es/DropDown/__tests__/DropDownSeparator.spec.js +1 -1
- package/es/DropDown/index.js +7 -7
- package/es/DropDown/props/propTypes.js +1 -1
- package/es/Heading/Heading.js +4 -4
- package/es/Heading/__tests__/Heading.spec.js +1 -1
- package/es/Label/Label.js +4 -4
- package/es/Label/__tests__/Label.spec.js +1 -1
- package/es/Layout/Box.js +4 -4
- package/es/Layout/Container.js +4 -4
- package/es/Layout/__tests__/Box.spec.js +1 -1
- package/es/Layout/__tests__/Container.spec.js +1 -1
- package/es/Layout/index.js +2 -2
- package/es/ListItem/ListContainer.js +6 -6
- package/es/ListItem/ListItem.js +5 -5
- package/es/ListItem/ListItemWithAvatar.js +7 -7
- package/es/ListItem/ListItemWithCheckBox.js +6 -6
- package/es/ListItem/ListItemWithIcon.js +5 -5
- package/es/ListItem/ListItemWithRadio.js +6 -6
- package/es/ListItem/__tests__/ListContainer.spec.js +1 -1
- package/es/ListItem/__tests__/ListItem.spec.js +1 -1
- package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +1 -1
- package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +1 -1
- package/es/ListItem/__tests__/ListItemWithIcon.spec.js +1 -1
- package/es/ListItem/__tests__/ListItemWithRadio.spec.js +1 -1
- package/es/ListItem/index.js +6 -6
- package/es/ListItem/props/propTypes.js +2 -2
- package/es/Modal/Modal.js +3 -3
- package/es/Modal/__tests__/Modal.spec.js +1 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
- package/es/MultiSelect/AdvancedMultiSelect.js +17 -17
- package/es/MultiSelect/EmptyState.js +3 -3
- package/es/MultiSelect/MobileHeader/MobileHeader.js +5 -5
- package/es/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +1 -1
- package/es/MultiSelect/MultiSelect.js +20 -20
- package/es/MultiSelect/MultiSelectHeader.js +4 -4
- package/es/MultiSelect/MultiSelectWithAvatar.js +16 -16
- package/es/MultiSelect/SelectedOptions.js +5 -5
- package/es/MultiSelect/Suggestions.js +6 -6
- package/es/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +1 -1
- package/es/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +1 -1
- package/es/MultiSelect/__tests__/EmptyState.spec.js +1 -1
- package/es/MultiSelect/__tests__/MultiSelect.spec.js +1 -1
- package/es/MultiSelect/__tests__/MultiSelectHeader.spec.js +1 -1
- package/es/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +1 -1
- package/es/MultiSelect/__tests__/SelectedOptions.spec.js +1 -1
- package/es/MultiSelect/__tests__/Suggestions.spec.js +1 -1
- package/es/MultiSelect/index.js +4 -4
- package/es/MultiSelect/props/defaultProps.js +1 -1
- package/es/PopOver/PopOver.js +6 -6
- package/es/PopOver/__tests__/PopOver.spec.js +1 -1
- package/es/PopOver/index.js +3 -3
- package/es/Popup/Popup.js +28 -59
- package/es/Provider/AvatarSize.js +1 -1
- package/es/Provider/CssProvider.js +1 -1
- package/es/Provider/IdProvider.js +2 -2
- package/es/Provider/LibraryContext.js +2 -2
- package/es/Provider/ZindexProvider.js +2 -2
- package/es/Provider/index.js +4 -4
- package/es/Radio/Radio.js +6 -6
- package/es/Radio/__tests__/Radio.spec.js +1 -1
- package/es/Radio/props/propTypes.js +1 -1
- package/es/Responsive/CustomResponsive.js +7 -7
- package/es/Responsive/ResizeComponent.js +2 -2
- package/es/Responsive/Responsive.js +6 -6
- package/es/Responsive/index.js +3 -3
- package/es/Responsive/utils/index.js +1 -1
- package/es/Responsive/windowResizeObserver.js +1 -1
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
- package/es/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +1 -1
- package/es/ResponsiveDropBox/props/propTypes.js +1 -1
- package/es/Ribbon/Ribbon.js +3 -3
- package/es/Ribbon/__tests__/Ribbon.spec.js +1 -1
- package/es/RippleEffect/RippleEffect.js +4 -4
- package/es/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
- package/es/Select/GroupSelect.js +16 -16
- package/es/Select/Select.js +15 -15
- package/es/Select/SelectWithAvatar.js +17 -17
- package/es/Select/SelectWithIcon.js +13 -13
- package/es/Select/__tests__/GroupSelect.spec.js +1 -1
- package/es/Select/__tests__/Select.spec.js +1 -1
- package/es/Select/__tests__/SelectWithAvatar.spec.js +1 -1
- package/es/Select/__tests__/SelectWithIcon.spec.js +1 -1
- package/es/Select/index.js +4 -4
- package/es/Select/props/defaultProps.js +1 -1
- package/es/Stencils/Stencils.js +3 -3
- package/es/Stencils/__tests__/Stencils.spec.js +1 -1
- package/es/Switch/Switch.js +5 -5
- package/es/Switch/__tests__/Switch.spec.js +1 -1
- package/es/Tab/Tab.js +5 -5
- package/es/Tab/TabContent.js +4 -4
- package/es/Tab/TabContentWrapper.js +3 -3
- package/es/Tab/TabWrapper.js +3 -3
- package/es/Tab/Tabs.js +13 -13
- package/es/Tab/__tests__/Tab.spec.js +1 -1
- package/es/Tab/__tests__/TabContent.spec.js +1 -1
- package/es/Tab/__tests__/TabContentWrapper.spec.js +1 -1
- package/es/Tab/__tests__/TabWrapper.spec.js +1 -1
- package/es/Tab/__tests__/Tabs.spec.js +1 -1
- package/es/Tab/index.js +5 -5
- package/es/Tag/Tag.js +7 -7
- package/es/Tag/__tests__/Tag.spec.js +1 -1
- package/es/Tag/props/propTypes.js +1 -1
- package/es/TextBox/TextBox.js +3 -3
- package/es/TextBox/__tests__/TextBox.spec.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.js +6 -6
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -1
- package/es/TextBoxIcon/props/propTypes.js +1 -1
- package/es/Textarea/Textarea.js +3 -3
- package/es/Textarea/__tests__/Textarea.spec.js +1 -1
- package/es/Tooltip/Tooltip.js +6 -6
- package/es/Typography/Typography.js +4 -4
- package/es/Typography/css/cssJSLogic.js +1 -1
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/es/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +1 -1
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +1 -1
- package/es/VelocityAnimation/index.js +2 -2
- package/es/css.js +37 -37
- package/es/deprecated/PortalLayer/PortalLayer.js +3 -3
- package/es/index.js +39 -39
- package/es/semantic/Button/Button.js +3 -3
- package/es/semantic/Button/__tests__/Button.spec.js +1 -1
- package/es/semantic/index.js +1 -1
- package/es/utils/Common.js +1 -1
- package/es/utils/ContextOptimizer.js +1 -1
- package/es/utils/cssUtils.js +1 -1
- package/es/utils/datetime/common.js +1 -1
- package/es/utils/dropDownUtils.js +1 -1
- package/es/utils/index.js +1 -1
- package/es/v1/Accordion/Accordion.js +2 -2
- package/es/v1/Accordion/AccordionItem.js +4 -4
- package/es/v1/Accordion/index.js +2 -2
- package/es/v1/Animation/Animation.js +3 -3
- package/es/v1/Animation/utils.js +1 -1
- package/es/v1/AppContainer/AppContainer.js +8 -8
- package/es/v1/Avatar/Avatar.js +5 -5
- package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
- package/es/v1/Button/Button.js +4 -4
- package/es/v1/Button/props/defaultProps.js +1 -1
- package/es/v1/Buttongroup/Buttongroup.js +3 -3
- package/es/v1/Card/Card.js +5 -5
- package/es/v1/Card/index.js +4 -4
- package/es/v1/CheckBox/CheckBox.js +6 -6
- package/es/v1/DateTime/CalendarView.js +7 -7
- package/es/v1/DateTime/DateTime.js +15 -15
- package/es/v1/DateTime/DateTimePopupFooter.js +5 -5
- package/es/v1/DateTime/DateTimePopupHeader.js +4 -4
- package/es/v1/DateTime/DateWidget.js +17 -17
- package/es/v1/DateTime/DaysRow.js +3 -3
- package/es/v1/DateTime/Time.js +5 -5
- package/es/v1/DateTime/YearView.js +6 -6
- package/es/v1/DateTime/index.js +1 -1
- package/es/v1/DateTime/props/propTypes.js +1 -1
- package/es/v1/DropBox/DropBox.js +9 -9
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +6 -6
- package/es/v1/DropBox/props/defaultProps.js +1 -1
- package/es/v1/DropBox/props/propTypes.js +1 -1
- package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/es/v1/DropDown/DropDown.js +4 -4
- package/es/v1/DropDown/DropDownHeading.js +3 -3
- package/es/v1/DropDown/DropDownItem.js +3 -3
- package/es/v1/DropDown/DropDownSearch.js +4 -4
- package/es/v1/DropDown/DropDownSeparator.js +2 -2
- package/es/v1/DropDown/props/propTypes.js +1 -1
- package/es/v1/Heading/Heading.js +4 -4
- package/es/v1/Label/Label.js +4 -4
- package/es/v1/Layout/Box.js +4 -4
- package/es/v1/Layout/Container.js +4 -4
- package/es/v1/Layout/index.js +2 -2
- package/es/v1/ListItem/ListContainer.js +6 -6
- package/es/v1/ListItem/ListItem.js +5 -5
- package/es/v1/ListItem/ListItemWithAvatar.js +7 -7
- package/es/v1/ListItem/ListItemWithCheckBox.js +6 -6
- package/es/v1/ListItem/ListItemWithIcon.js +5 -5
- package/es/v1/ListItem/ListItemWithRadio.js +6 -6
- package/es/v1/ListItem/index.js +6 -6
- package/es/v1/Modal/Modal.js +3 -3
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +17 -17
- package/es/v1/MultiSelect/EmptyState.js +3 -3
- package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -5
- package/es/v1/MultiSelect/MultiSelect.js +19 -19
- package/es/v1/MultiSelect/MultiSelectHeader.js +4 -4
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +16 -16
- package/es/v1/MultiSelect/SelectedOptions.js +5 -5
- package/es/v1/MultiSelect/Suggestions.js +6 -6
- package/es/v1/MultiSelect/index.js +4 -4
- package/es/v1/MultiSelect/props/defaultProps.js +1 -1
- package/es/v1/PopOver/PopOver.js +6 -6
- package/es/v1/Popup/Popup.js +3 -3
- package/es/v1/Radio/Radio.js +5 -5
- package/es/v1/Radio/props/propTypes.js +1 -1
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
- package/es/v1/ResponsiveDropBox/props/propTypes.js +1 -1
- package/es/v1/Ribbon/Ribbon.js +3 -3
- package/es/v1/RippleEffect/RippleEffect.js +4 -4
- package/es/v1/Select/GroupSelect.js +16 -16
- package/es/v1/Select/Select.js +15 -15
- package/es/v1/Select/SelectWithAvatar.js +17 -17
- package/es/v1/Select/SelectWithIcon.js +13 -13
- package/es/v1/Select/index.js +4 -4
- package/es/v1/Select/props/defaultProps.js +1 -1
- package/es/v1/Stencils/Stencils.js +3 -3
- package/es/v1/Switch/Switch.js +5 -5
- package/es/v1/Tab/Tab.js +5 -5
- package/es/v1/Tab/TabContent.js +4 -4
- package/es/v1/Tab/TabContentWrapper.js +3 -3
- package/es/v1/Tab/TabWrapper.js +3 -3
- package/es/v1/Tab/Tabs.js +13 -13
- package/es/v1/Tab/index.js +5 -5
- package/es/v1/Tag/Tag.js +7 -7
- package/es/v1/TextBox/TextBox.js +3 -3
- package/es/v1/TextBoxIcon/TextBoxIcon.js +6 -6
- package/es/v1/TextBoxIcon/props/propTypes.js +1 -1
- package/es/v1/Textarea/Textarea.js +3 -3
- package/es/v1/Tooltip/Tooltip.js +6 -6
- package/es/v1/Typography/Typography.js +4 -4
- package/es/v1/Typography/css/cssJSLogic.js +1 -1
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/es/v1/semantic/Button/Button.js +3 -3
- package/es/v1/semantic/index.js +1 -1
- package/lib/AvatarTeam/AvatarTeam.js +1 -1
- package/lib/ListItem/ListItemWithAvatar.js +2 -2
- package/lib/ListItem/ListItemWithCheckBox.js +1 -1
- package/lib/ListItem/ListItemWithRadio.js +1 -1
- package/lib/Popup/Popup.js +59 -92
- package/lib/Radio/props/propTypes.js +1 -1
- package/lib/v1/Radio/props/propTypes.js +1 -1
- package/package.json +1 -1
- package/result.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import { propTypes as TextBox_propTypes } from
|
|
2
|
+
import { propTypes as TextBox_propTypes } from '../../TextBox/props/propTypes';
|
|
3
3
|
export const propTypes = { ...TextBox_propTypes,
|
|
4
4
|
borderColor: PropTypes.oneOf(['transparent', 'default', 'error']),
|
|
5
5
|
children: PropTypes.node,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
4
|
-
import style from
|
|
2
|
+
import { defaultProps } from './props/defaultProps';
|
|
3
|
+
import { propTypes } from './props/propTypes';
|
|
4
|
+
import style from '../../Textarea/Textarea.module.css';
|
|
5
5
|
export default function Textarea(props) {
|
|
6
6
|
let {
|
|
7
7
|
size,
|
package/es/v1/Tooltip/Tooltip.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
4
|
-
import { getLibraryConfig } from
|
|
5
|
-
import ResizeObserver from
|
|
2
|
+
import { defaultProps } from './props/defaultProps';
|
|
3
|
+
import { propTypes } from './props/propTypes';
|
|
4
|
+
import { getLibraryConfig } from '../../Provider/Config';
|
|
5
|
+
import ResizeObserver from '../../Responsive/ResizeObserver';
|
|
6
6
|
import selectn from 'selectn';
|
|
7
|
-
import { whiteSpaceClassMapping } from
|
|
8
|
-
import style from
|
|
7
|
+
import { whiteSpaceClassMapping } from '../../utils/cssUtils';
|
|
8
|
+
import style from '../../Tooltip/Tooltip.module.css';
|
|
9
9
|
export default class Tooltip extends React.Component {
|
|
10
10
|
constructor(props) {
|
|
11
11
|
super(props);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
4
|
-
import cssJSLogic from
|
|
2
|
+
import { defaultProps } from './props/defaultProps';
|
|
3
|
+
import { propTypes } from './props/propTypes';
|
|
4
|
+
import cssJSLogic from './css/cssJSLogic';
|
|
5
5
|
import { mergeStyle } from '@zohodesk/utils';
|
|
6
|
-
import defaultStyle from
|
|
6
|
+
import defaultStyle from './css/v1_Typography.module.css';
|
|
7
7
|
|
|
8
8
|
const Typography = props => {
|
|
9
9
|
const {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
2
|
+
import { defaultProps } from './props/defaultProps';
|
|
3
|
+
import { propTypes } from './props/propTypes';
|
|
4
4
|
import { VelocityComponent } from 'velocity-react';
|
|
5
5
|
import 'velocity-animate/velocity.ui';
|
|
6
|
-
import LibraryContext from
|
|
6
|
+
import LibraryContext from '../../../Provider/LibraryContextInit';
|
|
7
7
|
export default function VelocityAnimation(props) {
|
|
8
8
|
let {
|
|
9
9
|
children,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
2
|
+
import { defaultProps } from './props/defaultProps';
|
|
3
|
+
import { propTypes } from './props/propTypes';
|
|
4
4
|
import { VelocityTransitionGroup } from 'velocity-react';
|
|
5
5
|
import 'velocity-animate/velocity.ui';
|
|
6
|
-
import LibraryContext from
|
|
6
|
+
import LibraryContext from '../../../Provider/LibraryContextInit';
|
|
7
7
|
|
|
8
8
|
function clearProps(props) {
|
|
9
9
|
let newProps = Object.assign({}, props);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { defaultProps } from
|
|
3
|
-
import { propTypes } from
|
|
4
|
-
import style from
|
|
2
|
+
import { defaultProps } from './props/defaultProps';
|
|
3
|
+
import { propTypes } from './props/propTypes';
|
|
4
|
+
import style from '../../../semantic/Button/semanticButton.module.css';
|
|
5
5
|
export default function Button(props) {
|
|
6
6
|
const {
|
|
7
7
|
value,
|
package/es/v1/semantic/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as SemanticButton } from
|
|
1
|
+
export { default as SemanticButton } from './Button/Button';
|
|
@@ -13,7 +13,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
13
13
|
|
|
14
14
|
var _propTypes = require("./props/propTypes");
|
|
15
15
|
|
|
16
|
-
var _Avatar = _interopRequireDefault(require("
|
|
16
|
+
var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/Avatar/Avatar"));
|
|
17
17
|
|
|
18
18
|
var _AvatarTeamModule = _interopRequireDefault(require("./AvatarTeam.module.css"));
|
|
19
19
|
|
|
@@ -17,9 +17,9 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
17
17
|
|
|
18
18
|
var _propTypes = require("./props/propTypes");
|
|
19
19
|
|
|
20
|
-
var _Avatar = _interopRequireDefault(require("
|
|
20
|
+
var _Avatar = _interopRequireDefault(require("@zohodesk/components/es/Avatar/Avatar"));
|
|
21
21
|
|
|
22
|
-
var _AvatarTeam = _interopRequireDefault(require("
|
|
22
|
+
var _AvatarTeam = _interopRequireDefault(require("@zohodesk/components/es/AvatarTeam/AvatarTeam"));
|
|
23
23
|
|
|
24
24
|
var _icons = require("@zohodesk/icons");
|
|
25
25
|
|
|
@@ -15,7 +15,7 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
15
15
|
|
|
16
16
|
var _propTypes = require("./props/propTypes");
|
|
17
17
|
|
|
18
|
-
var _CheckBox = _interopRequireDefault(require("
|
|
18
|
+
var _CheckBox = _interopRequireDefault(require("@zohodesk/components/es/CheckBox/CheckBox"));
|
|
19
19
|
|
|
20
20
|
var _Layout = require("../Layout");
|
|
21
21
|
|
|
@@ -9,7 +9,7 @@ exports["default"] = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
-
var _Radio = _interopRequireDefault(require("
|
|
12
|
+
var _Radio = _interopRequireDefault(require("@zohodesk/components/es/Radio/Radio"));
|
|
13
13
|
|
|
14
14
|
var _Layout = require("../Layout");
|
|
15
15
|
|
package/lib/Popup/Popup.js
CHANGED
|
@@ -147,9 +147,8 @@ var Popup = function Popup(Component) {
|
|
|
147
147
|
isMobile: false
|
|
148
148
|
};
|
|
149
149
|
_this.togglePopup = _this.togglePopup.bind(_assertThisInitialized(_this));
|
|
150
|
-
_this.closePopups = _this.closePopups.bind(_assertThisInitialized(_this));
|
|
151
|
-
_this.handleDocumentInteraction = _this.handleDocumentInteraction.bind(_assertThisInitialized(_this));
|
|
152
150
|
_this.documentClickHandler = _this.documentClickHandler.bind(_assertThisInitialized(_this));
|
|
151
|
+
_this.documentClickHandler1 = _this.documentClickHandler1.bind(_assertThisInitialized(_this));
|
|
153
152
|
_this.removeClose = _this.removeClose.bind(_assertThisInitialized(_this));
|
|
154
153
|
_this.documentKeyupHandler = _this.documentKeyupHandler.bind(_assertThisInitialized(_this));
|
|
155
154
|
_this.openPopupOnly = _this.openPopupOnly.bind(_assertThisInitialized(_this));
|
|
@@ -211,11 +210,11 @@ var Popup = function Popup(Component) {
|
|
|
211
210
|
popups[group] = groupPopups;
|
|
212
211
|
|
|
213
212
|
if (Object.keys(popups).length === 1 && groupPopups.length === 1) {
|
|
214
|
-
document.addEventListener('click', this.handleDocumentInteraction, true);
|
|
215
213
|
document.addEventListener('click', this.documentClickHandler, false);
|
|
216
214
|
document.addEventListener('keyup', this.documentKeyupHandler, false); // document.addEventListener('scroll', this.handleScroll, true);
|
|
217
215
|
|
|
218
216
|
window.addEventListener('resize', this.handleResize);
|
|
217
|
+
document.addEventListener('click', this.documentClickHandler1, true);
|
|
219
218
|
document.addEventListener('mousedown', this.handleDocumentMouseDown, true);
|
|
220
219
|
document.addEventListener('focus', this.handleDocumentFocus, true);
|
|
221
220
|
}
|
|
@@ -305,11 +304,11 @@ var Popup = function Popup(Component) {
|
|
|
305
304
|
}
|
|
306
305
|
|
|
307
306
|
if (noPopups) {
|
|
308
|
-
document.removeEventListener('click', this.
|
|
309
|
-
document.removeEventListener('click', this.documentClickHandler, false);
|
|
307
|
+
document.removeEventListener('click', this.documentClickHandler);
|
|
310
308
|
document.removeEventListener('keyup', this.documentKeyupHandler); // document.removeEventListener('scroll', this.handleScroll);
|
|
311
309
|
|
|
312
310
|
window.removeEventListener('resize', this.handleResize);
|
|
311
|
+
document.removeEventListener('click', this.documentClickHandler1, true);
|
|
313
312
|
document.removeEventListener('mousedown', this.handleDocumentMouseDown, true);
|
|
314
313
|
document.removeEventListener('focus', this.handleDocumentFocus, true);
|
|
315
314
|
}
|
|
@@ -690,63 +689,31 @@ var Popup = function Popup(Component) {
|
|
|
690
689
|
return needPrevent;
|
|
691
690
|
}
|
|
692
691
|
}, {
|
|
693
|
-
key: "
|
|
694
|
-
value: function
|
|
695
|
-
var
|
|
692
|
+
key: "documentClickHandler1",
|
|
693
|
+
value: function documentClickHandler1(e) {
|
|
694
|
+
var needPrevent = this.handleGetNeedPrevent(e);
|
|
696
695
|
|
|
696
|
+
if (needPrevent) {
|
|
697
|
+
this.removeClose(e);
|
|
698
|
+
this.handleCloseLastOpenedGroup();
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}, {
|
|
702
|
+
key: "documentClickHandler",
|
|
703
|
+
value: function documentClickHandler() {
|
|
697
704
|
try {
|
|
698
705
|
Object.keys(popups).forEach(function (groupName) {
|
|
699
|
-
var
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
var _ref5 = e || {},
|
|
707
|
-
target = _ref5.target;
|
|
708
|
-
|
|
709
|
-
var canClosePopup = !popup.props.checkBeforeClose || popup.props.checkBeforeClose && popup.props.checkBeforeClose() && !(0, _Common.isTextSelected)();
|
|
710
|
-
var isOutsideClick = checkTarget && placeHolderElement && dropElement && placeHolderElement !== target && !placeHolderElement.contains(target) && dropElement !== target && !dropElement.contains(target);
|
|
711
|
-
|
|
712
|
-
if (canClosePopup && (!checkTarget || isOutsideClick)) {
|
|
713
|
-
popup.setState({
|
|
714
|
-
isPopupOpen: false,
|
|
715
|
-
isPopupReady: false
|
|
716
|
-
});
|
|
717
|
-
}
|
|
706
|
+
var groupPopups = popups[groupName] || [];
|
|
707
|
+
groupPopups.forEach(function (popup) {
|
|
708
|
+
popup.state.isPopupOpen && (!popup.props.checkBeforeClose || popup.props.checkBeforeClose && popup.props.checkBeforeClose()) && !(0, _Common.isTextSelected)() && popup.setState({
|
|
709
|
+
isPopupOpen: false,
|
|
710
|
+
isPopupReady: false
|
|
711
|
+
});
|
|
718
712
|
});
|
|
719
713
|
});
|
|
720
714
|
lastOpenedGroup = [];
|
|
721
|
-
} catch (
|
|
722
|
-
//console.error('popup component not unmounted properly',
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
}, {
|
|
726
|
-
key: "documentClickHandler",
|
|
727
|
-
value: function documentClickHandler(e) {
|
|
728
|
-
// Handles document click events to close all popups.
|
|
729
|
-
// This function closes all popups without checking if the click occurred outside the popup.
|
|
730
|
-
this.closePopups(e, false);
|
|
731
|
-
}
|
|
732
|
-
}, {
|
|
733
|
-
key: "handleDocumentInteraction",
|
|
734
|
-
value: function handleDocumentInteraction(e) {
|
|
735
|
-
// Handles interactions with the document to determine whether to close the popup.
|
|
736
|
-
// This function is specifically designed to close the popup when clicking outside of it.
|
|
737
|
-
// Check if the click event should prevent popup closure.
|
|
738
|
-
var needPrevent = this.handleGetNeedPrevent(e);
|
|
739
|
-
|
|
740
|
-
if (needPrevent) {
|
|
741
|
-
// If the click event should prevent popup closure:
|
|
742
|
-
// - Stop the event propagation.
|
|
743
|
-
// - Close the last opened group of popups.
|
|
744
|
-
this.removeClose(e);
|
|
745
|
-
this.handleCloseLastOpenedGroup();
|
|
746
|
-
} else {
|
|
747
|
-
// If the click event does not need to prevent popup closure:
|
|
748
|
-
// - Close all popups, but only if the click occurred outside the popup elements.
|
|
749
|
-
this.closePopups(e, true);
|
|
715
|
+
} catch (e) {// eslint-disable-next-line no-console
|
|
716
|
+
//console.error('popup component not unmounted properly', e);
|
|
750
717
|
}
|
|
751
718
|
}
|
|
752
719
|
}, {
|
|
@@ -790,8 +757,8 @@ var Popup = function Popup(Component) {
|
|
|
790
757
|
var isUpdatePosition = arguments.length > 1 ? arguments[1] : undefined;
|
|
791
758
|
|
|
792
759
|
// isUpdatePosition --->>> Window resize and dropBox resize and to update the position
|
|
793
|
-
var
|
|
794
|
-
direction =
|
|
760
|
+
var _ref5 = this.context || {},
|
|
761
|
+
direction = _ref5.direction;
|
|
795
762
|
|
|
796
763
|
var placeHolderElement = this.placeHolderElement,
|
|
797
764
|
dropElement = this.dropElement;
|
|
@@ -830,12 +797,12 @@ var Popup = function Popup(Component) {
|
|
|
830
797
|
customOrder: customOrder
|
|
831
798
|
});
|
|
832
799
|
|
|
833
|
-
var
|
|
834
|
-
view =
|
|
835
|
-
views =
|
|
836
|
-
viewsOffset =
|
|
837
|
-
targetOffset =
|
|
838
|
-
popupOffset =
|
|
800
|
+
var _ref6 = betterPosition || _Common.DUMMY_OBJECT,
|
|
801
|
+
view = _ref6.view,
|
|
802
|
+
views = _ref6.views,
|
|
803
|
+
viewsOffset = _ref6.viewsOffset,
|
|
804
|
+
targetOffset = _ref6.targetOffset,
|
|
805
|
+
popupOffset = _ref6.popupOffset;
|
|
839
806
|
|
|
840
807
|
if (!isAbsolute) {
|
|
841
808
|
if (!isPopupReady) {
|
|
@@ -899,33 +866,33 @@ var Popup = function Popup(Component) {
|
|
|
899
866
|
customOrder: customOrder
|
|
900
867
|
});
|
|
901
868
|
|
|
902
|
-
var
|
|
903
|
-
view =
|
|
904
|
-
views =
|
|
905
|
-
|
|
906
|
-
viewsOffset =
|
|
907
|
-
targetOffset =
|
|
908
|
-
popupOffset =
|
|
909
|
-
|
|
910
|
-
var
|
|
869
|
+
var _ref7 = betterPosition || {},
|
|
870
|
+
view = _ref7.view,
|
|
871
|
+
views = _ref7.views,
|
|
872
|
+
_ref7$viewsOffset = _ref7.viewsOffset,
|
|
873
|
+
viewsOffset = _ref7$viewsOffset === void 0 ? {} : _ref7$viewsOffset,
|
|
874
|
+
targetOffset = _ref7.targetOffset,
|
|
875
|
+
popupOffset = _ref7.popupOffset;
|
|
876
|
+
|
|
877
|
+
var _ref8 = positionsOffset[position] || {},
|
|
878
|
+
_ref8$left = _ref8.left,
|
|
879
|
+
oldLeft = _ref8$left === void 0 ? '' : _ref8$left,
|
|
880
|
+
_ref8$top = _ref8.top,
|
|
881
|
+
oldTop = _ref8$top === void 0 ? '' : _ref8$top,
|
|
882
|
+
_ref8$bottom = _ref8.bottom,
|
|
883
|
+
oldBottom = _ref8$bottom === void 0 ? '' : _ref8$bottom,
|
|
884
|
+
_ref8$right = _ref8.right,
|
|
885
|
+
oldRight = _ref8$right === void 0 ? '' : _ref8$right;
|
|
886
|
+
|
|
887
|
+
var _ref9 = viewsOffset[view] || {},
|
|
911
888
|
_ref9$left = _ref9.left,
|
|
912
|
-
|
|
889
|
+
left = _ref9$left === void 0 ? '' : _ref9$left,
|
|
913
890
|
_ref9$top = _ref9.top,
|
|
914
|
-
|
|
891
|
+
top = _ref9$top === void 0 ? '' : _ref9$top,
|
|
915
892
|
_ref9$bottom = _ref9.bottom,
|
|
916
|
-
|
|
893
|
+
bottom = _ref9$bottom === void 0 ? '' : _ref9$bottom,
|
|
917
894
|
_ref9$right = _ref9.right,
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
var _ref10 = viewsOffset[view] || {},
|
|
921
|
-
_ref10$left = _ref10.left,
|
|
922
|
-
left = _ref10$left === void 0 ? '' : _ref10$left,
|
|
923
|
-
_ref10$top = _ref10.top,
|
|
924
|
-
top = _ref10$top === void 0 ? '' : _ref10$top,
|
|
925
|
-
_ref10$bottom = _ref10.bottom,
|
|
926
|
-
bottom = _ref10$bottom === void 0 ? '' : _ref10$bottom,
|
|
927
|
-
_ref10$right = _ref10.right,
|
|
928
|
-
right = _ref10$right === void 0 ? '' : _ref10$right;
|
|
895
|
+
right = _ref9$right === void 0 ? '' : _ref9$right;
|
|
929
896
|
|
|
930
897
|
var changeState = isAbsolute ? position !== view : oldLeft !== left || oldTop !== top || oldBottom !== bottom || oldRight !== right; // let isInViewPort = viewPort.isInViewPort(
|
|
931
898
|
// placeHolderElement,
|
|
@@ -984,11 +951,11 @@ var Popup = function Popup(Component) {
|
|
|
984
951
|
var height = popupSize.height,
|
|
985
952
|
width = popupSize.width;
|
|
986
953
|
|
|
987
|
-
var
|
|
988
|
-
|
|
989
|
-
oldHeight =
|
|
990
|
-
|
|
991
|
-
oldWidth =
|
|
954
|
+
var _ref10 = this.size || {},
|
|
955
|
+
_ref10$height = _ref10.height,
|
|
956
|
+
oldHeight = _ref10$height === void 0 ? 0 : _ref10$height,
|
|
957
|
+
_ref10$width = _ref10.width,
|
|
958
|
+
oldWidth = _ref10$width === void 0 ? 0 : _ref10$width;
|
|
992
959
|
|
|
993
960
|
var _this$state2 = this.state,
|
|
994
961
|
isPopupReady = _this$state2.isPopupReady,
|
|
@@ -39,7 +39,7 @@ var propTypes = {
|
|
|
39
39
|
ariaChecked: _propTypes["default"].bool,
|
|
40
40
|
ariaHidden: _propTypes["default"].bool,
|
|
41
41
|
role: _propTypes["default"].string,
|
|
42
|
-
tabIndex: _propTypes["default"].oneOfType(_propTypes["default"].string, _propTypes["default"].number),
|
|
42
|
+
tabIndex: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
43
43
|
ariaLabelledby: _propTypes["default"].string,
|
|
44
44
|
ariaLabel: _propTypes["default"].string,
|
|
45
45
|
ariaReadonly: _propTypes["default"].bool
|
|
@@ -39,7 +39,7 @@ var propTypes = {
|
|
|
39
39
|
ariaChecked: _propTypes["default"].bool,
|
|
40
40
|
ariaHidden: _propTypes["default"].bool,
|
|
41
41
|
role: _propTypes["default"].string,
|
|
42
|
-
tabIndex: _propTypes["default"].oneOfType(_propTypes["default"].string, _propTypes["default"].number),
|
|
42
|
+
tabIndex: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
43
43
|
ariaLabelledby: _propTypes["default"].string,
|
|
44
44
|
ariaLabel: _propTypes["default"].string,
|
|
45
45
|
ariaReadonly: _propTypes["default"].bool
|