@zohodesk/components 1.0.0-temp-41 → 1.0.0-temp-42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/es/Appearance/dark/mode/darkMode.module.css +355 -392
- package/es/Appearance/default/mode/defaultMode.module.css +355 -394
- package/es/Avatar/Avatar.js +2 -1
- package/es/Avatar/__tests__/Avatar.spec.js +0 -1
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +0 -1
- package/es/Button/__tests__/Button.spec.js +0 -1
- package/es/Buttongroup/__test__/Buttongroup.spec.js +0 -1
- package/es/DateTime/DateTime.js +6 -3
- package/es/DateTime/DateWidget.js +5 -2
- package/es/DateTime/DateWidget.module.css +4 -0
- package/es/DateTime/YearView.js +6 -5
- package/es/DateTime/common.js +9 -2
- package/es/DateTime/dateFormatUtils/dateFormat.js +76 -57
- package/es/DateTime/dateFormatUtils/index.js +12 -7
- package/es/DateTime/dateFormatUtils/timeChange.js +4 -3
- package/es/DateTime/dateFormatUtils/yearChange.js +4 -3
- package/es/DateTime/validator.js +0 -1
- package/es/Label/__tests__/Label.spec.js +0 -2
- package/es/Layout/utils.js +2 -1
- package/es/ListItem/ListItem.js +0 -2
- package/es/ListItem/ListItemWithIcon.js +0 -2
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +15 -10
- package/es/MultiSelect/AdvancedMultiSelect.js +6 -7
- package/es/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/es/MultiSelect/MultiSelect.js +23 -11
- package/es/MultiSelect/MultiSelect.module.css +13 -8
- package/es/MultiSelect/MultiSelectWithAvatar.js +3 -6
- package/es/MultiSelect/SelectedOptions.js +2 -3
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -1
- package/es/Popup/Popup.js +14 -8
- package/es/Popup/viewPort.js +14 -9
- package/es/Provider/IdProvider.js +5 -4
- package/es/Provider/LibraryContext.js +6 -5
- package/es/Provider/NumberGenerator/NumberGenerator.js +17 -15
- package/es/Provider/ZindexProvider.js +5 -4
- package/es/Radio/Radio.js +2 -1
- package/es/Radio/Radio.module.css +2 -2
- package/es/Responsive/CustomResponsive.js +11 -8
- package/es/Responsive/ResizeComponent.js +3 -1
- package/es/Responsive/Responsive.js +12 -9
- package/es/Responsive/docs/Responsive__Custom.docs.js +49 -44
- package/es/Responsive/docs/Responsive__default.docs.js +77 -74
- package/es/Responsive/sizeObservers.js +5 -1
- package/es/Ribbon/__tests__/Ribbon.spec.js +0 -1
- package/es/RippleEffect/RippleEffect.js +4 -7
- package/es/RippleEffect/RippleEffect.module.css +0 -3
- package/es/Select/GroupSelect.js +2 -1
- package/es/Select/Select.js +16 -1
- package/es/Select/Select.module.css +1 -1
- package/es/Select/SelectWithAvatar.js +4 -7
- package/es/Select/docs/Select__default.docs.js +2 -1
- package/es/Stencils/__tests__/Stencils.spec.js +0 -1
- package/es/Tab/Tab.js +27 -26
- package/es/Tab/TabContent.js +17 -14
- package/es/Tab/TabContentWrapper.js +17 -14
- package/es/Tab/TabWrapper.js +15 -14
- package/es/Tab/Tabs.js +2 -1
- package/es/Tab/docs/Tab__default.docs.js +0 -1
- package/es/Tag/Tag.js +4 -10
- package/es/Tag/Tag.module.css +11 -14
- package/es/Tag/docs/Tag__default.docs.js +0 -70
- package/es/TextBox/__tests__/TextBox.spec.js +0 -1
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +2 -5
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +0 -1
- package/es/Textarea/__tests__/Textarea.spec.js +0 -1
- package/es/Tooltip/Tooltip.js +0 -1
- package/es/a11y/FocusScope/FocusScope.js +10 -4
- package/es/beta/FocusRing/FocusRing.js +4 -1
- package/es/utils/Common.js +31 -11
- package/es/utils/datetime/common.js +6 -3
- package/es/utils/dropDownUtils.js +6 -5
- package/es/utils/getInitial.js +3 -1
- package/lib/Accordion/Accordion.js +3 -3
- package/lib/Accordion/AccordionItem.js +3 -3
- package/lib/Accordion/docs/Accordion__Demo.docs.js +3 -3
- package/lib/Animation/Animation.js +3 -3
- package/lib/Animation/docs/Animation__default.docs.js +3 -3
- package/lib/Animation/docs/Animation__fadeIn.docs.js +3 -3
- package/lib/Animation/docs/Animation__scaleIn.docs.js +3 -3
- package/lib/Animation/docs/Animation__skewIn.docs.js +3 -3
- package/lib/Animation/docs/Animation__slideDown.docs.js +3 -3
- package/lib/Animation/docs/Animation__slideLeft.docs.js +3 -3
- package/lib/Animation/docs/Animation__zoomIn.docs.js +3 -3
- package/lib/AppContainer/AppContainer.js +3 -3
- package/lib/AppContainer/docs/AppContainer__default.docs.js +3 -3
- package/lib/Appearance/dark/mode/darkMode.module.css +355 -392
- package/lib/Appearance/default/mode/defaultMode.module.css +355 -394
- package/lib/Avatar/Avatar.js +3 -3
- package/lib/Avatar/docs/Avatar__custom.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__default.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__palette.docs.js +3 -3
- package/lib/Avatar/docs/Avatar__text.docs.js +3 -3
- package/lib/AvatarTeam/AvatarTeam.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +3 -3
- package/lib/Button/Button.js +3 -3
- package/lib/Button/docs/Button__custom.docs.js +3 -3
- package/lib/Button/docs/Button__default.docs.js +3 -3
- package/lib/Buttongroup/Buttongroup.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +3 -3
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +3 -3
- package/lib/Card/Card.js +4 -4
- package/lib/Card/__tests__/Card.spec.js +1 -1
- package/lib/Card/docs/Card__Custom.docs.js +3 -3
- package/lib/Card/docs/Card__Default.docs.js +3 -3
- package/lib/Card/docs/Card__Scroll.docs.js +3 -3
- package/lib/Card/index.js +7 -7
- package/lib/CheckBox/CheckBox.js +3 -3
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +3 -3
- package/lib/CheckBox/docs/CheckBox__default.docs.js +3 -3
- package/lib/DateTime/CalendarView.js +4 -4
- package/lib/DateTime/DateTime.js +3 -3
- package/lib/DateTime/DateTimePopupFooter.js +3 -3
- package/lib/DateTime/DateTimePopupHeader.js +3 -3
- package/lib/DateTime/DateWidget.js +3 -3
- package/lib/DateTime/DateWidget.module.css +4 -0
- package/lib/DateTime/DaysRow.js +3 -3
- package/lib/DateTime/Time.js +3 -3
- package/lib/DateTime/YearView.js +3 -3
- package/lib/DateTime/__tests__/CalendarView.spec.js +1 -1
- package/lib/DateTime/__tests__/DateTime.spec.js +1 -1
- package/lib/DateTime/constants.js +1 -1
- package/lib/DateTime/dateFormatUtils/dateFormat.js +2 -2
- package/lib/DateTime/dateFormatUtils/index.js +13 -13
- package/lib/DateTime/docs/DateTime__default.docs.js +3 -3
- package/lib/DateTime/docs/DateWidget__default.docs.js +3 -3
- package/lib/DateTime/objectUtils.js +2 -2
- package/lib/DropBox/DropBox.js +3 -3
- package/lib/DropBox/docs/DropBox__custom.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__position.docs.js +3 -3
- package/lib/DropBox/docs/DropBox__size.docs.js +3 -3
- package/lib/DropDown/DropDown.js +4 -4
- package/lib/DropDown/DropDownHeading.js +3 -3
- package/lib/DropDown/DropDownItem.js +3 -3
- package/lib/DropDown/DropDownSearch.js +3 -3
- package/lib/DropDown/DropDownSeparator.js +3 -3
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +3 -3
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +3 -3
- package/lib/Label/Label.js +3 -3
- package/lib/Label/docs/Label__clipped.docs.js +3 -3
- package/lib/Label/docs/Label__custom.docs.js +3 -3
- package/lib/Label/docs/Label__palette.docs.js +3 -3
- package/lib/Label/docs/Label__size.docs.js +3 -3
- package/lib/Label/docs/Label__type.docs.js +3 -3
- package/lib/Layout/Box.js +1 -1
- package/lib/Layout/Container.js +1 -1
- package/lib/Layout/docs/Layout__Hidden.docs.js +3 -3
- package/lib/Layout/docs/Layout__default.docs.js +3 -3
- package/lib/Layout/docs/Layout__four_Column.docs.js +3 -3
- package/lib/Layout/docs/Layout__three_Column.docs.js +3 -3
- package/lib/Layout/docs/Layout__two_Column.docs.js +3 -3
- package/lib/Layout/index.js +4 -4
- package/lib/Layout/utils.js +2 -2
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -3
- package/lib/ListItem/ListItem.js +3 -3
- package/lib/ListItem/ListItemWithAvatar.js +3 -3
- package/lib/ListItem/ListItemWithCheckBox.js +3 -3
- package/lib/ListItem/ListItemWithIcon.js +3 -3
- package/lib/ListItem/ListItemWithRadio.js +3 -3
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +3 -3
- package/lib/ListItem/docs/ListItem__custom.docs.js +3 -3
- package/lib/ListItem/docs/ListItem__default.docs.js +3 -3
- package/lib/Modal/Modal.js +3 -3
- package/lib/Modal/__docs__/Modal__default.docs.js +3 -3
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -10
- package/lib/MultiSelect/AdvancedMultiSelect.js +6 -9
- package/lib/MultiSelect/AdvancedMultiSelect.module.css +8 -8
- package/lib/MultiSelect/EmptyState.js +3 -3
- package/lib/MultiSelect/MultiSelect.js +14 -11
- package/lib/MultiSelect/MultiSelect.module.css +13 -8
- package/lib/MultiSelect/MultiSelectHeader.js +3 -3
- package/lib/MultiSelect/MultiSelectWithAvatar.js +6 -9
- package/lib/MultiSelect/SelectedOptions.js +5 -6
- package/lib/MultiSelect/Suggestions.js +5 -5
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +3 -3
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +3 -3
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +3 -3
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +3 -3
- package/lib/PopOver/PopOver.js +4 -4
- package/lib/PopOver/docs/PopOver__default.docs.js +3 -3
- package/lib/Popup/Popup.js +3 -3
- package/lib/Popup/__tests__/Popup.spec.js +3 -3
- package/lib/Provider/IdProvider.js +3 -3
- package/lib/Provider/LibraryContext.js +3 -3
- package/lib/Provider/NumberGenerator/NumberGenerator.js +2 -2
- package/lib/Provider/ZindexProvider.js +1 -1
- package/lib/Provider/docs/Provider_Id__Class.docs.js +3 -3
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +3 -3
- package/lib/Provider.js +3 -3
- package/lib/Radio/Radio.js +6 -4
- package/lib/Radio/Radio.module.css +2 -2
- package/lib/Radio/docs/Radio__custom.docs.js +3 -3
- package/lib/Radio/docs/Radio__default.docs.js +3 -3
- package/lib/Responsive/CustomResponsive.js +4 -4
- package/lib/Responsive/RefWrapper.js +1 -1
- package/lib/Responsive/ResizeComponent.js +3 -3
- package/lib/Responsive/ResizeObserver.js +1 -1
- package/lib/Responsive/Responsive.js +6 -5
- package/lib/Responsive/docs/Responsive__Custom.docs.js +3 -3
- package/lib/Responsive/docs/Responsive__default.docs.js +3 -3
- package/lib/Responsive/sizeObservers.js +6 -5
- package/lib/Responsive/utils/index.js +3 -2
- package/lib/Responsive/utils/shallowCompare.js +1 -1
- package/lib/Ribbon/Ribbon.js +3 -3
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +3 -3
- package/lib/Ribbon/docs/Ribbon__default.docs.js +3 -3
- package/lib/RippleEffect/RippleEffect.js +4 -7
- package/lib/RippleEffect/RippleEffect.module.css +0 -3
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +3 -3
- package/lib/Select/GroupSelect.js +3 -3
- package/lib/Select/Select.js +19 -5
- package/lib/Select/Select.module.css +1 -1
- package/lib/Select/SelectWithAvatar.js +7 -10
- package/lib/Select/SelectWithIcon.js +3 -3
- package/lib/Select/docs/GroupSelect__default.docs.js +3 -3
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +3 -3
- package/lib/Select/docs/SelectWithIcon__default.docs.js +3 -3
- package/lib/Select/docs/Select__default.docs.js +3 -3
- package/lib/Stencils/Stencils.js +3 -3
- package/lib/Stencils/docs/Stencils__custom.docs.js +3 -3
- package/lib/Stencils/docs/Stencils__default.docs.js +3 -3
- package/lib/Switch/Switch.js +3 -3
- package/lib/Switch/docs/Switch__custom.docs.js +3 -3
- package/lib/Switch/docs/Switch__default.docs.js +3 -3
- package/lib/Tab/Tab.js +1 -1
- package/lib/Tab/TabWrapper.js +1 -1
- package/lib/Tab/Tabs.js +3 -3
- package/lib/Tab/docs/Tab__default.docs.js +3 -3
- package/lib/Tab/index.js +10 -10
- package/lib/Tag/Tag.js +7 -13
- package/lib/Tag/Tag.module.css +11 -14
- package/lib/Tag/docs/Tag__custom.docs.js +3 -3
- package/lib/Tag/docs/Tag__default.docs.js +3 -73
- package/lib/TextBox/TextBox.js +3 -3
- package/lib/TextBox/docs/TextBox__custom.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__default.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__size.docs.js +3 -3
- package/lib/TextBox/docs/TextBox__variant.docs.js +3 -3
- package/lib/TextBoxIcon/TextBoxIcon.js +4 -4
- package/lib/TextBoxIcon/TextBoxIcon.module.css +2 -5
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +3 -3
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +3 -3
- package/lib/Textarea/Textarea.js +3 -3
- package/lib/Textarea/docs/Textarea__animated.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__custom.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__default.docs.js +3 -3
- package/lib/Textarea/docs/Textarea__disabled.docs.js +3 -3
- package/lib/Tooltip/Tooltip.js +3 -3
- package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -3
- package/lib/Tooltip/docs/Tooltip__default.docs.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +3 -3
- package/lib/a11y/FocusScope/FocusScope.js +2 -2
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +3 -3
- package/lib/beta/FocusRing/FocusRing.js +3 -3
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +3 -3
- package/lib/deprecated/PortalLayer/PortalLayer.js +3 -3
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +3 -3
- package/lib/index.js +310 -310
- package/lib/semantic/Button/Button.js +3 -3
- package/lib/semantic/Button/docs/Button__default.docs.js +3 -3
- package/lib/utils/Common.js +20 -16
- package/lib/utils/datetime/common.js +10 -10
- package/lib/utils/dropDownUtils.js +2 -2
- package/lib/utils/shallowEqual.js +1 -1
- package/package.json +2 -2
- package/preprocess/componentAppearanceColors.js +65 -0
- package/preprocess/componentThemeColors.js +1 -1
- package/preprocess/ctaThemeColors.js +1 -1
- package/preprocess/index.js +2 -1
- package/preprocess/json/componentAppearanceVariableJson.js +1515 -0
- /package/preprocess/json/{componentVariableJson.js → componentThemeVariableJson.js} +0 -0
- /package/preprocess/json/{ctaVariableJson.js → ctaThemeVariableJson.js} +0 -0
|
@@ -8,80 +8,83 @@ import { Container, Box } from '../../Layout';
|
|
|
8
8
|
import style from './style.module.css';
|
|
9
9
|
export default class Responsive__default extends React.Component {
|
|
10
10
|
render() {
|
|
11
|
-
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(ResponsiveReceiver, null,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
11
|
+
return /*#__PURE__*/React.createElement(Container, null, /*#__PURE__*/React.createElement(ResponsiveReceiver, null, _ref => {
|
|
12
|
+
let {
|
|
13
|
+
breakPoint,
|
|
14
|
+
deviceUpto,
|
|
15
|
+
deviceBetween,
|
|
16
|
+
deviceOnly,
|
|
17
|
+
isTouchDevice
|
|
18
|
+
} = _ref;
|
|
19
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Box, {
|
|
20
|
+
className: style.header
|
|
21
|
+
}, ` ${breakPoint} ${isTouchDevice} `), /*#__PURE__*/React.createElement(Box, {
|
|
22
|
+
flexible: true,
|
|
23
|
+
scroll: "vertical"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
className: style.subHeading
|
|
26
|
+
}, "Common Break Points"), /*#__PURE__*/React.createElement(Container, {
|
|
27
|
+
isCover: false,
|
|
28
|
+
alignBox: "row",
|
|
29
|
+
wrap: "wrap"
|
|
30
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
31
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE']) ? style.selected : ''} `
|
|
32
|
+
}, "MOBILE - 480"), /*#__PURE__*/React.createElement(Box, {
|
|
33
|
+
className: ` ${style.box} ${deviceOnly(['TABLET_S']) ? style.selected : ''} `
|
|
34
|
+
}, "TABLET_S - 640"), /*#__PURE__*/React.createElement(Box, {
|
|
35
|
+
className: ` ${style.box} ${deviceOnly(['TABLET']) ? style.selected : ''} `
|
|
36
|
+
}, "TABLET - 768"), /*#__PURE__*/React.createElement(Box, {
|
|
37
|
+
className: ` ${style.box} ${deviceOnly(['LAPTOP_S']) ? style.selected : ''} `
|
|
38
|
+
}, "LAPTOP_S - 1024"), /*#__PURE__*/React.createElement(Box, {
|
|
39
|
+
className: ` ${style.box} ${deviceOnly(['LAPTOP']) ? style.selected : ''} `
|
|
40
|
+
}, "LAPTOP - 1440")), /*#__PURE__*/React.createElement("div", {
|
|
41
|
+
className: style.subHeading
|
|
42
|
+
}, "Other Break Points"), /*#__PURE__*/React.createElement(Container, {
|
|
43
|
+
isCover: false,
|
|
44
|
+
alignBox: "row",
|
|
45
|
+
wrap: "wrap"
|
|
46
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
47
|
+
className: ` ${style.box} ${deviceOnly(['MONITOR']) ? style.selected : ''} `
|
|
48
|
+
}, "MONITOR - 1920"), /*#__PURE__*/React.createElement(Box, {
|
|
49
|
+
className: ` ${style.box} ${deviceOnly(['MONITOR_M']) ? style.selected : ''} `
|
|
50
|
+
}, "MONITOR_M - 1600"), /*#__PURE__*/React.createElement(Box, {
|
|
51
|
+
className: ` ${style.box} ${deviceOnly(['LAPTOP_M']) ? style.selected : ''} `
|
|
52
|
+
}, "LAPTOP_M - 1280"), /*#__PURE__*/React.createElement(Box, {
|
|
53
|
+
className: ` ${style.box} ${deviceOnly(['TABLET_M']) ? style.selected : ''} `
|
|
54
|
+
}, "TABLET_M - 720"), /*#__PURE__*/React.createElement(Box, {
|
|
55
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE_M']) ? style.selected : ''} `
|
|
56
|
+
}, "MOBILE_M - 375.04"), /*#__PURE__*/React.createElement(Box, {
|
|
57
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE_S']) ? style.selected : ''} `
|
|
58
|
+
}, "MOBILE_S - 360"), /*#__PURE__*/React.createElement(Box, {
|
|
59
|
+
className: ` ${style.box} ${deviceOnly(['MOBILE_XS']) ? style.selected : ''} `
|
|
60
|
+
}, "MOBILE_XS - 320")), /*#__PURE__*/React.createElement("div", {
|
|
61
|
+
className: style.subHeading
|
|
62
|
+
}, "Device Between"), /*#__PURE__*/React.createElement(Container, {
|
|
63
|
+
isCover: false,
|
|
64
|
+
alignBox: "row",
|
|
65
|
+
wrap: "wrap"
|
|
66
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
67
|
+
className: ` ${style.box} ${deviceBetween('MOBILE_XS', 'TABLET') ? style.selected : ''} `
|
|
68
|
+
}, "MOBILE - TABLET"), /*#__PURE__*/React.createElement(Box, {
|
|
69
|
+
className: ` ${style.box} ${deviceBetween('TABLET_M', 'LAPTOP') ? style.selected : ''} `
|
|
70
|
+
}, "TABLET - LAPTOP"), /*#__PURE__*/React.createElement(Box, {
|
|
71
|
+
className: ` ${style.box} ${deviceBetween('LAPTOP_M', 'MONITOR') ? style.selected : ''} `
|
|
72
|
+
}, "LAPTOP - MONITOR")), /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: style.subHeading
|
|
74
|
+
}, "Device Upto"), /*#__PURE__*/React.createElement(Container, {
|
|
75
|
+
isCover: false,
|
|
76
|
+
alignBox: "row",
|
|
77
|
+
wrap: "wrap"
|
|
78
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
79
|
+
className: ` ${style.box} ${deviceUpto('MONITOR') ? style.selected : ''} `
|
|
80
|
+
}, "MONITOR"), /*#__PURE__*/React.createElement(Box, {
|
|
81
|
+
className: ` ${style.box} ${deviceUpto('LAPTOP') ? style.selected : ''} `
|
|
82
|
+
}, "LAPTOP"), /*#__PURE__*/React.createElement(Box, {
|
|
83
|
+
className: ` ${style.box} ${deviceUpto('TABLET') ? style.selected : ''} `
|
|
84
|
+
}, "TABLET"), /*#__PURE__*/React.createElement(Box, {
|
|
85
|
+
className: ` ${style.box} ${deviceUpto('MOBILE') ? style.selected : ''} `
|
|
86
|
+
}, "MOBILE"))));
|
|
87
|
+
}));
|
|
85
88
|
}
|
|
86
89
|
|
|
87
90
|
}
|
|
@@ -68,7 +68,11 @@ export class Subscribale {
|
|
|
68
68
|
this.subscribers.length && this.disconnect();
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
dispatch(
|
|
71
|
+
dispatch() {
|
|
72
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
73
|
+
args[_key] = arguments[_key];
|
|
74
|
+
}
|
|
75
|
+
|
|
72
76
|
this.subscribers.forEach(subscriber => {
|
|
73
77
|
subscriber(...args);
|
|
74
78
|
});
|
|
@@ -10,10 +10,9 @@ export default function RippleEffect(props) {
|
|
|
10
10
|
palette,
|
|
11
11
|
hoverType,
|
|
12
12
|
isNeedEffect,
|
|
13
|
-
needBorder
|
|
14
|
-
isCopyTextEnabled
|
|
13
|
+
needBorder
|
|
15
14
|
} = props;
|
|
16
|
-
let className = isNeedEffect ? `${style.effect} ${style[palette]} ${needBorder ? style.border : ''} ${style[`${hoverType}Hover`] ? style[`${hoverType}Hover`] : ''} ${isActive && !isDisabled ? style.active : ''} ${isDisabled ? '' : style.hoverEffect} ${
|
|
15
|
+
let className = isNeedEffect ? `${style.effect} ${style[palette]} ${needBorder ? style.border : ''} ${style[`${hoverType}Hover`] ? style[`${hoverType}Hover`] : ''} ${isActive && !isDisabled ? style.active : ''} ${isDisabled ? '' : style.hoverEffect} ${isDisabled ? CssProvider('isDisabled') : ''}` : '';
|
|
17
16
|
let child = React.Children.only(children);
|
|
18
17
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
19
18
|
className: `${child.props.className || ''} ${className}`
|
|
@@ -25,8 +24,7 @@ RippleEffect.defaultProps = {
|
|
|
25
24
|
isNeedEffect: true,
|
|
26
25
|
needBorder: true,
|
|
27
26
|
hoverType: 'default',
|
|
28
|
-
palette: 'default'
|
|
29
|
-
isCopyTextEnabled: false
|
|
27
|
+
palette: 'default'
|
|
30
28
|
};
|
|
31
29
|
RippleEffect.propTypes = {
|
|
32
30
|
children: PropTypes.node,
|
|
@@ -35,8 +33,7 @@ RippleEffect.propTypes = {
|
|
|
35
33
|
isDisabled: PropTypes.bool,
|
|
36
34
|
isNeedEffect: PropTypes.bool,
|
|
37
35
|
needBorder: PropTypes.bool,
|
|
38
|
-
palette: PropTypes.oneOf(['default', 'primary', 'primaryLight', 'primaryFilled', 'primaryDark', 'green', 'danger'])
|
|
39
|
-
isCopyTextEnabled: PropTypes.bool
|
|
36
|
+
palette: PropTypes.oneOf(['default', 'primary', 'primaryLight', 'primaryFilled', 'primaryDark', 'green', 'danger'])
|
|
40
37
|
};
|
|
41
38
|
|
|
42
39
|
if (false) {
|
package/es/Select/GroupSelect.js
CHANGED
|
@@ -489,7 +489,8 @@ export class GroupSelectComponent extends PureComponent {
|
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
handleFetchOptions(APICall
|
|
492
|
+
handleFetchOptions(APICall) {
|
|
493
|
+
let searchStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
493
494
|
// let funcArgs = args.slice(1, args.length);
|
|
494
495
|
let {
|
|
495
496
|
isFetchingOptions = false
|
package/es/Select/Select.js
CHANGED
|
@@ -346,6 +346,20 @@ export class SelectComponent extends Component {
|
|
|
346
346
|
this.valueInput && this.valueInput.focus({
|
|
347
347
|
preventScroll: true
|
|
348
348
|
}); //this.handlePopupClose(e);
|
|
349
|
+
} else if (keyCode === 9) {
|
|
350
|
+
let option = options[hoverIndex];
|
|
351
|
+
let {
|
|
352
|
+
id
|
|
353
|
+
} = option || {};
|
|
354
|
+
|
|
355
|
+
if (isPopupOpen && !getIsEmptyValue(id)) {
|
|
356
|
+
onChange && onChange(id, optionsNormalize[id]);
|
|
357
|
+
needCloseOnSelect && this.handlePopupClose(e);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
if (!isPopupOpen && isPopupOpenOnEnter) {
|
|
361
|
+
this.togglePopup(e);
|
|
362
|
+
}
|
|
349
363
|
}
|
|
350
364
|
}
|
|
351
365
|
|
|
@@ -441,7 +455,8 @@ export class SelectComponent extends Component {
|
|
|
441
455
|
}
|
|
442
456
|
}
|
|
443
457
|
|
|
444
|
-
handleFetchOptions(APICall
|
|
458
|
+
handleFetchOptions(APICall) {
|
|
459
|
+
let searchStr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
445
460
|
// let funcArgs = args.slice(1, args.length);
|
|
446
461
|
let {
|
|
447
462
|
isFetchingOptions = false
|
|
@@ -141,8 +141,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
141
141
|
tagSize,
|
|
142
142
|
groupName,
|
|
143
143
|
i18nKeys,
|
|
144
|
-
htmlId
|
|
145
|
-
needEffect
|
|
144
|
+
htmlId
|
|
146
145
|
} = this.props;
|
|
147
146
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
148
147
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
@@ -165,7 +164,7 @@ class SelectWithAvatarComponent extends SelectComponent {
|
|
|
165
164
|
let setAriaId = this.getNextAriaId();
|
|
166
165
|
let ariaErrorId = this.getNextAriaId();
|
|
167
166
|
return /*#__PURE__*/React.createElement("div", {
|
|
168
|
-
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${
|
|
167
|
+
className: `${style.wrapper} ${isDisabled ? style.disabled : ''} ${isReadOnly ? style.readOnly : ''} ${className ? className : ''}`,
|
|
169
168
|
"data-id": `${isDisabled ? `${dataId}_disabled` : isReadOnly ? `${dataId}_readOnly` : dataId}`,
|
|
170
169
|
"data-title": isDisabled ? title : ''
|
|
171
170
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
@@ -343,8 +342,7 @@ SelectWithAvatarComponent.propTypes = {
|
|
|
343
342
|
title: PropTypes.string,
|
|
344
343
|
togglePopup: PropTypes.func,
|
|
345
344
|
valueField: PropTypes.string,
|
|
346
|
-
htmlId: PropTypes.string
|
|
347
|
-
needEffect: PropTypes.bool
|
|
345
|
+
htmlId: PropTypes.string
|
|
348
346
|
};
|
|
349
347
|
SelectWithAvatarComponent.defaultProps = {
|
|
350
348
|
animationStyle: 'bounce',
|
|
@@ -365,8 +363,7 @@ SelectWithAvatarComponent.defaultProps = {
|
|
|
365
363
|
dataId: 'selectWithAvatar',
|
|
366
364
|
borderColor: 'default',
|
|
367
365
|
isSearchClearOnClose: true,
|
|
368
|
-
i18nKeys: {}
|
|
369
|
-
needEffect: true
|
|
366
|
+
i18nKeys: {}
|
|
370
367
|
};
|
|
371
368
|
SelectWithAvatarComponent.displayName = 'SelectWithAvatar';
|
|
372
369
|
let SelectWithAvatar = Popup(SelectWithAvatarComponent);
|
|
@@ -87,7 +87,8 @@ export default class Select__default extends React.Component {
|
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
customChildren(
|
|
90
|
+
customChildren() {
|
|
91
|
+
let serach = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
91
92
|
return /*#__PURE__*/React.createElement("div", null, serach.searchString, "Custom Children");
|
|
92
93
|
}
|
|
93
94
|
|
package/es/Tab/Tab.js
CHANGED
|
@@ -22,32 +22,33 @@ const tabTypes = {
|
|
|
22
22
|
tab: 'tabDelta'
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
export default function Tab({
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
25
|
+
export default function Tab(_ref) {
|
|
26
|
+
let {
|
|
27
|
+
id,
|
|
28
|
+
style,
|
|
29
|
+
text,
|
|
30
|
+
children,
|
|
31
|
+
className,
|
|
32
|
+
dataId,
|
|
33
|
+
title,
|
|
34
|
+
titlePosition,
|
|
35
|
+
activeClass,
|
|
36
|
+
href,
|
|
37
|
+
isLink,
|
|
38
|
+
isDisabled,
|
|
39
|
+
tourId,
|
|
40
|
+
onClick,
|
|
41
|
+
isActive,
|
|
42
|
+
getTabRef,
|
|
43
|
+
onSelect,
|
|
44
|
+
type,
|
|
45
|
+
isAnimate,
|
|
46
|
+
needBorder,
|
|
47
|
+
needAppearance,
|
|
48
|
+
align,
|
|
49
|
+
isVirtual,
|
|
50
|
+
customProps
|
|
51
|
+
} = _ref;
|
|
51
52
|
let clickListener = useCallback(event => {
|
|
52
53
|
if (isLink && event && (event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)) {
|
|
53
54
|
event && event.stopPropagation();
|
package/es/Tab/TabContent.js
CHANGED
|
@@ -4,20 +4,23 @@ import { Container } from '../Layout';
|
|
|
4
4
|
import style from './TabContent.module.css';
|
|
5
5
|
/* eslint-disable react/forbid-component-props */
|
|
6
6
|
|
|
7
|
-
const TabContent =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
const TabContent = _ref => {
|
|
8
|
+
let {
|
|
9
|
+
children,
|
|
10
|
+
scroll,
|
|
11
|
+
dataId,
|
|
12
|
+
id
|
|
13
|
+
} = _ref;
|
|
14
|
+
return /*#__PURE__*/React.createElement(Container, {
|
|
15
|
+
className: style.container,
|
|
16
|
+
scroll: scroll,
|
|
17
|
+
dataId: `${dataId}_TabContent`,
|
|
18
|
+
isScrollAttribute: true,
|
|
19
|
+
"aria-labelledby": id,
|
|
20
|
+
tabindex: "0",
|
|
21
|
+
role: "tabpanel"
|
|
22
|
+
}, children);
|
|
23
|
+
};
|
|
21
24
|
|
|
22
25
|
TabContent.defaultProps = {
|
|
23
26
|
dataId: 'tabContent'
|
|
@@ -3,20 +3,23 @@ import { PropTypes } from 'prop-types';
|
|
|
3
3
|
import { Box } from '../Layout';
|
|
4
4
|
/* eslint-disable react/forbid-component-props */
|
|
5
5
|
|
|
6
|
-
const TabContentWrapper =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
const TabContentWrapper = _ref => {
|
|
7
|
+
let {
|
|
8
|
+
style,
|
|
9
|
+
className,
|
|
10
|
+
children,
|
|
11
|
+
dataId,
|
|
12
|
+
selectedTab,
|
|
13
|
+
onScroll
|
|
14
|
+
} = _ref;
|
|
15
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
16
|
+
flexible: true,
|
|
17
|
+
style: style,
|
|
18
|
+
dataId: dataId,
|
|
19
|
+
className: className,
|
|
20
|
+
onScroll: onScroll
|
|
21
|
+
}, React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
|
|
22
|
+
};
|
|
20
23
|
|
|
21
24
|
TabContentWrapper.defaultProps = {
|
|
22
25
|
children: []
|
package/es/Tab/TabWrapper.js
CHANGED
|
@@ -4,20 +4,21 @@ import React, { useState, useCallback } from 'react';
|
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { Container } from '../Layout';
|
|
6
6
|
|
|
7
|
-
function TabWrapper({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
function TabWrapper(_ref) {
|
|
8
|
+
let {
|
|
9
|
+
defaultTab,
|
|
10
|
+
hookToDisableInternalState,
|
|
11
|
+
onSelect,
|
|
12
|
+
type,
|
|
13
|
+
isAnimate,
|
|
14
|
+
needTabBorder,
|
|
15
|
+
needBorder,
|
|
16
|
+
needPadding,
|
|
17
|
+
needAppearance,
|
|
18
|
+
align,
|
|
19
|
+
dataId,
|
|
20
|
+
children
|
|
21
|
+
} = _ref;
|
|
21
22
|
let [selectedTabInternal, setSelected] = useState(!hookToDisableInternalState ? defaultTab || 0 : null);
|
|
22
23
|
const setSelectedTab = useCallback(id => {
|
|
23
24
|
if (!hookToDisableInternalState) {
|
package/es/Tab/Tabs.js
CHANGED
|
@@ -95,7 +95,8 @@ class Tabs extends React.Component {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
setMaxDim(
|
|
98
|
+
setMaxDim() {
|
|
99
|
+
let totalDimension = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
99
100
|
let {
|
|
100
101
|
selectedTab
|
|
101
102
|
} = this.props; // let actual = Object.keys(tabDimensions).reduce(
|
package/es/Tag/Tag.js
CHANGED
|
@@ -78,9 +78,7 @@ export default class Tag extends PureComponent {
|
|
|
78
78
|
tooltip,
|
|
79
79
|
avatarPalette,
|
|
80
80
|
customClass,
|
|
81
|
-
a11y
|
|
82
|
-
needEffect,
|
|
83
|
-
isReadOnly
|
|
81
|
+
a11y
|
|
84
82
|
} = this.props;
|
|
85
83
|
let {
|
|
86
84
|
customTag = '',
|
|
@@ -95,7 +93,7 @@ export default class Tag extends PureComponent {
|
|
|
95
93
|
} = a11y;
|
|
96
94
|
let isDarkPalette = palette === 'dark';
|
|
97
95
|
return /*#__PURE__*/React.createElement("div", {
|
|
98
|
-
className: `${style.container} ${
|
|
96
|
+
className: `${style.container} ${active ? `${style.selected} ${style[`active${palette}`]}` : ''} ${onRemove ? active ? `${style[`active${size}Effect`]}` : '' : ''} ${style[size]} ${rounded ? style.lgRadius : style.smRadius} ${style[palette]} ${disabled ? style.disabled : ''} ${onSelectTag ? style.pointer : ''} ${customTag}`,
|
|
99
97
|
"data-id": active ? `${dataId}_TagSelected` : `${dataId}_Tag`,
|
|
100
98
|
onClick: this.handleSelect,
|
|
101
99
|
ref: this.getRef,
|
|
@@ -150,9 +148,7 @@ Tag.defaultProps = {
|
|
|
150
148
|
size: 'medium',
|
|
151
149
|
dataId: 'tag',
|
|
152
150
|
customClass: {},
|
|
153
|
-
a11y: {}
|
|
154
|
-
needEffect: true,
|
|
155
|
-
isReadOnly: false
|
|
151
|
+
a11y: {}
|
|
156
152
|
};
|
|
157
153
|
Tag.propTypes = {
|
|
158
154
|
active: PropTypes.bool,
|
|
@@ -183,9 +179,7 @@ Tag.propTypes = {
|
|
|
183
179
|
}),
|
|
184
180
|
a11y: PropTypes.shape({
|
|
185
181
|
clearLabel: PropTypes.string
|
|
186
|
-
})
|
|
187
|
-
needEffect: PropTypes.bool,
|
|
188
|
-
isReadOnly: PropTypes.bool
|
|
182
|
+
})
|
|
189
183
|
};
|
|
190
184
|
|
|
191
185
|
if (false) {
|