@zohodesk/components 1.0.0-alpha-237 → 1.0.0-alpha-240
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 +19 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +1 -3
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +1 -1
- package/assets/Appearance/default/mode/defaultMode.module.css +2 -4
- package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +1 -1
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +356 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +42 -0
- package/docs/external/active-line.js +72 -0
- package/docs/external/autorefresh.js +47 -0
- package/docs/external/codemirror.js +9681 -0
- package/docs/external/css/hopscotch.css +576 -0
- package/docs/external/css/styleGuide.css +1100 -0
- package/docs/external/css.js +466 -0
- package/docs/external/designTokens.js +1 -0
- package/docs/external/foldcode.js +152 -0
- package/docs/external/format.js +129 -0
- package/docs/external/htmlmixed.js +84 -0
- package/docs/external/images/bottom.png +0 -0
- package/docs/external/images/bottombg.jpg +0 -0
- package/docs/external/images/desk.png +0 -0
- package/docs/external/images/desklogo.png +0 -0
- package/docs/external/images/menu.png +0 -0
- package/docs/external/index.html +127 -0
- package/docs/external/javascript.js +422 -0
- package/docs/external/jsx.js +148 -0
- package/docs/external/matchbrackets.js +145 -0
- package/docs/external/xml.js +322 -0
- package/docs/package.json +41 -0
- package/docs/src/index.js +1311 -0
- package/es/Accordion/docs/Accordion__Demo.docs.js +80 -0
- package/es/Animation/docs/Animation__default.docs.js +34 -0
- package/es/Animation/docs/Animation__fadeIn.docs.js +34 -0
- package/es/Animation/docs/Animation__scaleIn.docs.js +34 -0
- package/es/Animation/docs/Animation__skewIn.docs.js +34 -0
- package/es/Animation/docs/Animation__slideDown.docs.js +34 -0
- package/es/Animation/docs/Animation__slideLeft.docs.js +34 -0
- package/es/Animation/docs/Animation__zoomIn.docs.js +34 -0
- package/es/AppContainer/AppContainer.js +6 -1
- package/es/AppContainer/docs/AppContainer__default.docs.js +20 -0
- package/es/Avatar/docs/Avatar__custom.docs.js +29 -0
- package/es/Avatar/docs/Avatar__default.docs.js +29 -0
- package/es/Avatar/docs/Avatar__palette.docs.js +49 -0
- package/es/Avatar/docs/Avatar__text.docs.js +28 -0
- package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +73 -0
- package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +31 -0
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +50 -0
- package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +49 -0
- package/es/Button/docs/Button__custom.docs.js +771 -0
- package/es/Button/docs/Button__default.docs.js +536 -0
- package/es/Buttongroup/docs/Buttongroup__custom.docs.js +37 -0
- package/es/Buttongroup/docs/Buttongroup__footer.docs.js +33 -0
- package/es/Buttongroup/docs/Buttongroup__header.docs.js +42 -0
- package/es/Card/docs/Card__Custom.docs.js +34 -0
- package/es/Card/docs/Card__Default.docs.js +37 -0
- package/es/Card/docs/Card__Scroll.docs.js +59 -0
- package/es/CheckBox/docs/CheckBox__custom.docs.js +293 -0
- package/es/CheckBox/docs/CheckBox__default.docs.js +219 -0
- package/es/DateTime/DateTime.js +46 -19
- package/es/DateTime/DateWidget.js +10 -2
- package/es/DateTime/DateWidget.module.css +0 -4
- package/es/DateTime/docs/DateTime__default.docs.js +91 -0
- package/es/DateTime/docs/DateWidget__default.docs.js +183 -0
- package/es/DateTime/docs/timezonedata.json +1 -0
- package/es/DropBox/docs/DropBox__custom.docs.js +66 -0
- package/es/DropBox/docs/DropBox__customOrder.docs.js +92 -0
- package/es/DropBox/docs/DropBox__fixedPosition.docs.js +91 -0
- package/es/DropBox/docs/DropBox__position.docs.js +87 -0
- package/es/DropBox/docs/DropBox__size.docs.js +61 -0
- package/es/DropDown/docs/DropDownHeading__custom.docs.js +23 -0
- package/es/DropDown/docs/DropDownHeading__default.docs.js +21 -0
- package/es/Label/docs/Label__clipped.docs.js +27 -0
- package/es/Label/docs/Label__custom.docs.js +30 -0
- package/es/Label/docs/Label__palette.docs.js +42 -0
- package/es/Label/docs/Label__size.docs.js +29 -0
- package/es/Label/docs/Label__type.docs.js +37 -0
- package/es/Layout/docs/Layout__Hidden.docs.js +77 -0
- package/es/Layout/docs/Layout__default.docs.js +49 -0
- package/es/Layout/docs/Layout__four_Column.docs.js +85 -0
- package/es/Layout/docs/Layout__three_Column.docs.js +76 -0
- package/es/Layout/docs/Layout__two_Column.docs.js +69 -0
- package/es/LightNightMode/docs/AlternativeColors.docs.js +74 -0
- package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +155 -0
- package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +112 -0
- package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +91 -0
- package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +65 -0
- package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +68 -0
- package/es/ListItem/docs/ListItemWithIcon__default.docs.js +62 -0
- package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +91 -0
- package/es/ListItem/docs/ListItemWithRadio__default.docs.js +65 -0
- package/es/ListItem/docs/ListItem__custom.docs.js +114 -0
- package/es/ListItem/docs/ListItem__default.docs.js +82 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +100 -75
- package/es/MultiSelect/AdvancedMultiSelect.js +75 -49
- package/es/MultiSelect/MultiSelect.js +80 -55
- package/es/MultiSelect/MultiSelect.module.css +6 -1
- package/es/MultiSelect/MultiSelectWithAvatar.js +77 -52
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +125 -0
- package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +114 -0
- package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +141 -0
- package/es/MultiSelect/docs/MultiSelect__default.docs.js +161 -0
- package/es/PopOver/PopOver.js +10 -4
- package/es/PopOver/docs/PopOver__default.docs.js +32 -0
- package/es/Provider/Config.js +1 -2
- package/es/Provider/docs/Provider_Id__Class.docs.js +29 -0
- package/es/Provider/docs/Provider_Id__Function.docs.js +18 -0
- package/es/Provider/docs/Provider_Zindex__Class.docs.js +32 -0
- package/es/Provider/docs/Provider_Zindex__Function.docs.js +23 -0
- package/es/Provider.js +72 -35
- package/es/Radio/docs/Radio__custom.docs.js +245 -0
- package/es/Radio/docs/Radio__default.docs.js +169 -0
- package/es/Responsive/docs/Responsive__Custom.docs.js +206 -0
- package/es/Responsive/docs/Responsive__default.docs.js +97 -0
- package/es/Responsive/docs/style.module.css +56 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +74 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
- package/es/Ribbon/docs/Ribbon__custom.docs.js +386 -0
- package/es/Ribbon/docs/Ribbon__default.docs.js +342 -0
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +435 -0
- package/es/Select/GroupSelect.js +99 -74
- package/es/Select/Select.js +95 -68
- package/es/Select/Select.module.css +6 -0
- package/es/Select/SelectWithAvatar.js +91 -66
- package/es/Select/SelectWithIcon.js +99 -74
- package/es/Select/docs/GroupSelect__default.docs.js +149 -0
- package/es/Select/docs/SelectWithAvatar__default.docs.js +97 -0
- package/es/Select/docs/SelectWithIcon__default.docs.js +138 -0
- package/es/Select/docs/Select__default.docs.js +288 -0
- package/es/Stencils/docs/Stencils__custom.docs.js +45 -0
- package/es/Stencils/docs/Stencils__default.docs.js +50 -0
- package/es/Switch/docs/Switch__custom.docs.js +153 -0
- package/es/Switch/docs/Switch__default.docs.js +107 -0
- package/es/Tab/Tabs.js +68 -43
- package/es/Tab/Tabs.module.css +2 -1
- package/es/Tab/docs/Tab__default.docs.js +258 -0
- package/es/Tab/docs/tabdocs.module.css +29 -0
- package/es/Tag/docs/Tag__custom.docs.js +368 -0
- package/es/Tag/docs/Tag__default.docs.js +323 -0
- package/es/TextBox/docs/TextBox__custom.docs.js +43 -0
- package/es/TextBox/docs/TextBox__default.docs.js +40 -0
- package/es/TextBox/docs/TextBox__size.docs.js +38 -0
- package/es/TextBox/docs/TextBox__variant.docs.js +38 -0
- package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +89 -0
- package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +61 -0
- package/es/Textarea/docs/Textarea__animated.docs.js +41 -0
- package/es/Textarea/docs/Textarea__custom.docs.js +82 -0
- package/es/Textarea/docs/Textarea__default.docs.js +76 -0
- package/es/Textarea/docs/Textarea__disabled.docs.js +29 -0
- package/es/Tooltip/Tooltip.js +40 -2
- package/es/Tooltip/docs/Tooltip__default.docs.js +371 -0
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +97 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +150 -0
- package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +139 -0
- package/es/beta/FocusRing/docs/FocusRing__default.docs.js +48 -0
- package/es/common/docStyle.module.css +6 -2
- package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +72 -0
- package/es/index.js +2 -1
- package/es/semantic/Button/docs/Button__default.docs.js +20 -0
- package/lib/Accordion/docs/Accordion__Demo.docs.js +126 -0
- package/lib/Animation/docs/Animation__default.docs.js +85 -0
- package/lib/Animation/docs/Animation__fadeIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__scaleIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__skewIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__slideDown.docs.js +85 -0
- package/lib/Animation/docs/Animation__slideLeft.docs.js +85 -0
- package/lib/Animation/docs/Animation__zoomIn.docs.js +85 -0
- package/lib/AppContainer/AppContainer.js +7 -0
- package/lib/AppContainer/docs/AppContainer__default.docs.js +70 -0
- package/lib/Avatar/docs/Avatar__custom.docs.js +87 -0
- package/lib/Avatar/docs/Avatar__default.docs.js +83 -0
- package/lib/Avatar/docs/Avatar__palette.docs.js +107 -0
- package/lib/Avatar/docs/Avatar__text.docs.js +86 -0
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +124 -0
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +82 -0
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +101 -0
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +100 -0
- package/lib/Button/docs/Button__custom.docs.js +826 -0
- package/lib/Button/docs/Button__default.docs.js +590 -0
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +89 -0
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +85 -0
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +98 -0
- package/lib/Card/docs/Card__Custom.docs.js +90 -0
- package/lib/Card/docs/Card__Default.docs.js +92 -0
- package/lib/Card/docs/Card__Scroll.docs.js +114 -0
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +348 -0
- package/lib/CheckBox/docs/CheckBox__default.docs.js +273 -0
- package/lib/DateTime/DateTime.js +46 -20
- package/lib/DateTime/DateWidget.js +10 -2
- package/lib/DateTime/DateWidget.module.css +0 -4
- package/lib/DateTime/docs/DateTime__default.docs.js +142 -0
- package/lib/DateTime/docs/DateWidget__default.docs.js +240 -0
- package/lib/DateTime/docs/timezonedata.json +1 -0
- package/lib/DropBox/docs/DropBox__custom.docs.js +122 -0
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +141 -0
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +140 -0
- package/lib/DropBox/docs/DropBox__position.docs.js +142 -0
- package/lib/DropBox/docs/DropBox__size.docs.js +116 -0
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +73 -0
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +70 -0
- package/lib/Label/docs/Label__clipped.docs.js +81 -0
- package/lib/Label/docs/Label__custom.docs.js +85 -0
- package/lib/Label/docs/Label__palette.docs.js +96 -0
- package/lib/Label/docs/Label__size.docs.js +83 -0
- package/lib/Label/docs/Label__type.docs.js +91 -0
- package/lib/Layout/docs/Layout__Hidden.docs.js +127 -0
- package/lib/Layout/docs/Layout__default.docs.js +98 -0
- package/lib/Layout/docs/Layout__four_Column.docs.js +135 -0
- package/lib/Layout/docs/Layout__three_Column.docs.js +126 -0
- package/lib/Layout/docs/Layout__two_Column.docs.js +119 -0
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +131 -0
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +206 -0
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +162 -0
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +142 -0
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +115 -0
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +119 -0
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +112 -0
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +142 -0
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +115 -0
- package/lib/ListItem/docs/ListItem__custom.docs.js +164 -0
- package/lib/ListItem/docs/ListItem__default.docs.js +131 -0
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +99 -77
- package/lib/MultiSelect/AdvancedMultiSelect.js +76 -50
- package/lib/MultiSelect/MultiSelect.js +81 -56
- package/lib/MultiSelect/MultiSelect.module.css +6 -1
- package/lib/MultiSelect/MultiSelectWithAvatar.js +78 -53
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +177 -0
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +165 -0
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +191 -0
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +214 -0
- package/lib/PopOver/PopOver.js +11 -4
- package/lib/PopOver/docs/PopOver__default.docs.js +86 -0
- package/lib/Provider/Config.js +1 -2
- package/lib/Provider/docs/Provider_Id__Class.docs.js +77 -0
- package/lib/Provider/docs/Provider_Id__Function.docs.js +29 -0
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +80 -0
- package/lib/Provider/docs/Provider_Zindex__Function.docs.js +34 -0
- package/lib/Provider.js +88 -37
- package/lib/Radio/docs/Radio__custom.docs.js +299 -0
- package/lib/Radio/docs/Radio__default.docs.js +222 -0
- package/lib/Responsive/docs/Responsive__Custom.docs.js +272 -0
- package/lib/Responsive/docs/Responsive__default.docs.js +142 -0
- package/lib/Responsive/docs/style.module.css +56 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +130 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +437 -0
- package/lib/Ribbon/docs/Ribbon__default.docs.js +392 -0
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +484 -0
- package/lib/Select/GroupSelect.js +99 -76
- package/lib/Select/Select.js +102 -75
- package/lib/Select/Select.module.css +6 -0
- package/lib/Select/SelectWithAvatar.js +96 -71
- package/lib/Select/SelectWithIcon.js +97 -74
- package/lib/Select/docs/GroupSelect__default.docs.js +199 -0
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +152 -0
- package/lib/Select/docs/SelectWithIcon__default.docs.js +190 -0
- package/lib/Select/docs/Select__default.docs.js +340 -0
- package/lib/Stencils/docs/Stencils__custom.docs.js +96 -0
- package/lib/Stencils/docs/Stencils__default.docs.js +101 -0
- package/lib/Switch/docs/Switch__custom.docs.js +203 -0
- package/lib/Switch/docs/Switch__default.docs.js +156 -0
- package/lib/Tab/Tabs.js +67 -44
- package/lib/Tab/Tabs.module.css +2 -1
- package/lib/Tab/docs/Tab__default.docs.js +308 -0
- package/lib/Tab/docs/tabdocs.module.css +29 -0
- package/lib/Tag/docs/Tag__custom.docs.js +423 -0
- package/lib/Tag/docs/Tag__default.docs.js +377 -0
- package/lib/TextBox/docs/TextBox__custom.docs.js +98 -0
- package/lib/TextBox/docs/TextBox__default.docs.js +95 -0
- package/lib/TextBox/docs/TextBox__size.docs.js +93 -0
- package/lib/TextBox/docs/TextBox__variant.docs.js +93 -0
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +145 -0
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +117 -0
- package/lib/Textarea/docs/Textarea__animated.docs.js +95 -0
- package/lib/Textarea/docs/Textarea__custom.docs.js +137 -0
- package/lib/Textarea/docs/Textarea__default.docs.js +130 -0
- package/lib/Textarea/docs/Textarea__disabled.docs.js +83 -0
- package/lib/Tooltip/Tooltip.js +47 -2
- package/lib/Tooltip/docs/Tooltip__default.docs.js +430 -0
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +150 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +206 -0
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +191 -0
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +101 -0
- package/lib/common/docStyle.module.css +6 -2
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +145 -0
- package/lib/index.js +10 -1
- package/lib/semantic/Button/docs/Button__default.docs.js +66 -0
- package/package.json +7 -7
|
@@ -13,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
15
15
|
|
|
16
|
-
var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
|
|
17
|
-
|
|
18
16
|
var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon/TextBoxIcon"));
|
|
19
17
|
|
|
20
18
|
var _TextBox = _interopRequireDefault(require("../TextBox/TextBox"));
|
|
@@ -33,6 +31,10 @@ var _Layout = require("../Layout");
|
|
|
33
31
|
|
|
34
32
|
var _IdProvider = require("../Provider/IdProvider");
|
|
35
33
|
|
|
34
|
+
var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
|
|
35
|
+
|
|
36
|
+
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
37
|
+
|
|
36
38
|
var _SelectModule = _interopRequireDefault(require("./Select.module.css"));
|
|
37
39
|
|
|
38
40
|
var _dropDownUtils = require("../utils/dropDownUtils");
|
|
@@ -601,6 +603,16 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
601
603
|
var searchStr = this.state.searchStr;
|
|
602
604
|
isNextOptions && getNextOptions && this.handleFetchOptions(getNextOptions, searchStr);
|
|
603
605
|
}
|
|
606
|
+
}, {
|
|
607
|
+
key: "responsiveFunc",
|
|
608
|
+
value: function responsiveFunc(_ref2) {
|
|
609
|
+
var mediaQueryOR = _ref2.mediaQueryOR;
|
|
610
|
+
return {
|
|
611
|
+
tabletMode: mediaQueryOR([{
|
|
612
|
+
maxWidth: 700
|
|
613
|
+
}])
|
|
614
|
+
};
|
|
615
|
+
}
|
|
604
616
|
}, {
|
|
605
617
|
key: "render",
|
|
606
618
|
value: function render() {
|
|
@@ -660,9 +672,9 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
660
672
|
suggestionGroups = _this$handleFilterSug4.suggestionGroups,
|
|
661
673
|
suggestionOptionIds = _this$handleFilterSug4.suggestionOptionIds;
|
|
662
674
|
|
|
663
|
-
var
|
|
664
|
-
|
|
665
|
-
selected =
|
|
675
|
+
var _ref3 = normalizedFormatOptions[selectedId] || {},
|
|
676
|
+
_ref3$value = _ref3.value,
|
|
677
|
+
selected = _ref3$value === void 0 ? '' : _ref3$value;
|
|
666
678
|
|
|
667
679
|
var setAriaId = this.getNextAriaId();
|
|
668
680
|
var ariaErrorId = this.getNextAriaId();
|
|
@@ -741,78 +753,89 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
741
753
|
},
|
|
742
754
|
autoComplete: false,
|
|
743
755
|
isFocus: isPopupReady
|
|
744
|
-
}))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
}, suggestionGroups.length ? suggestionGroups.map(function (group) {
|
|
778
|
-
var groupId = group.id,
|
|
779
|
-
groupName = group.name,
|
|
780
|
-
options = group.options;
|
|
781
|
-
var hoverId = suggestionOptionIds[hoverIndex];
|
|
782
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
783
|
-
key: groupId
|
|
784
|
-
}, groupName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
785
|
-
className: _SelectModule["default"].groupTitle
|
|
786
|
-
}, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
|
|
787
|
-
text: groupName,
|
|
788
|
-
a11y: {
|
|
789
|
-
role: 'heading'
|
|
790
|
-
}
|
|
791
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
792
|
-
activeId: selectedId,
|
|
793
|
-
suggestions: options,
|
|
794
|
-
getRef: _this7.suggestionItemRef,
|
|
795
|
-
hoverId: hoverId,
|
|
796
|
-
onClick: _this7.handleChange,
|
|
797
|
-
onMouseEnter: _this7.handleMouseEnter,
|
|
798
|
-
selectedOptions: [selectedId],
|
|
799
|
-
needTick: needTick,
|
|
800
|
-
needBorder: false,
|
|
801
|
-
htmlId: setAriaId,
|
|
756
|
+
}))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
757
|
+
query: this.responsiveFunc,
|
|
758
|
+
responsiveId: "Helmet"
|
|
759
|
+
}, function (_ref4) {
|
|
760
|
+
var tabletMode = _ref4.tabletMode;
|
|
761
|
+
return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], {
|
|
762
|
+
animationStyle: animationStyle,
|
|
763
|
+
boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
|
|
764
|
+
getRef: getContainerRef,
|
|
765
|
+
isActive: isPopupReady,
|
|
766
|
+
isAnimate: true,
|
|
767
|
+
isArrow: false,
|
|
768
|
+
onClick: removeClose,
|
|
769
|
+
needResponsive: needResponsive,
|
|
770
|
+
isPadding: false,
|
|
771
|
+
isResponsivePadding: getFooter ? false : true,
|
|
772
|
+
alignBox: "row"
|
|
773
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
774
|
+
flexible: true
|
|
775
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
776
|
+
customClass: _SelectModule["default"].box,
|
|
777
|
+
onScroll: _this7.handleScroll
|
|
778
|
+
}, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
779
|
+
className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
|
|
780
|
+
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
781
|
+
inputRef: _this7.searchInputRef,
|
|
782
|
+
maxLength: maxLength,
|
|
783
|
+
onChange: _this7.handleSearch,
|
|
784
|
+
onKeyDown: _this7.handleKeyDown,
|
|
785
|
+
placeHolder: searchBoxPlaceHolder,
|
|
786
|
+
size: searchBoxSize,
|
|
787
|
+
value: searchStr,
|
|
788
|
+
onClear: _this7.handleClearSearch,
|
|
802
789
|
a11y: {
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
790
|
+
ariaControls: setAriaId,
|
|
791
|
+
ariaAutocomplete: 'list',
|
|
792
|
+
ariaDescribedby: ariaErrorId
|
|
793
|
+
},
|
|
794
|
+
autoComplete: false
|
|
795
|
+
}))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
796
|
+
shrink: true,
|
|
797
|
+
customClass: !tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '',
|
|
798
|
+
eleRef: _this7.suggestionContainerRef
|
|
799
|
+
}, suggestionGroups.length ? suggestionGroups.map(function (group) {
|
|
800
|
+
var groupId = group.id,
|
|
801
|
+
groupName = group.name,
|
|
802
|
+
options = group.options;
|
|
803
|
+
var hoverId = suggestionOptionIds[hoverIndex];
|
|
804
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
805
|
+
key: groupId
|
|
806
|
+
}, groupName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
807
|
+
className: _SelectModule["default"].groupTitle
|
|
808
|
+
}, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
|
|
809
|
+
text: groupName,
|
|
810
|
+
a11y: {
|
|
811
|
+
role: 'heading'
|
|
812
|
+
}
|
|
813
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
814
|
+
activeId: selectedId,
|
|
815
|
+
suggestions: options,
|
|
816
|
+
getRef: _this7.suggestionItemRef,
|
|
817
|
+
hoverId: hoverId,
|
|
818
|
+
onClick: _this7.handleChange,
|
|
819
|
+
onMouseEnter: _this7.handleMouseEnter,
|
|
820
|
+
selectedOptions: [selectedId],
|
|
821
|
+
needTick: needTick,
|
|
822
|
+
needBorder: false,
|
|
823
|
+
htmlId: setAriaId,
|
|
824
|
+
a11y: {
|
|
825
|
+
ariaParentRole: 'listbox',
|
|
826
|
+
role: 'option'
|
|
827
|
+
}
|
|
828
|
+
}));
|
|
829
|
+
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
830
|
+
options: revampedGroups,
|
|
831
|
+
searchString: searchStr,
|
|
832
|
+
suggestions: suggestionGroups,
|
|
833
|
+
dataId: dataIdSrchEmptyMsg,
|
|
834
|
+
isLoading: isFetchingOptions,
|
|
835
|
+
i18nKeys: i18nKeys,
|
|
836
|
+
htmlId: ariaErrorId
|
|
837
|
+
})), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)));
|
|
838
|
+
}) : null);
|
|
816
839
|
}
|
|
817
840
|
}]);
|
|
818
841
|
|
package/lib/Select/Select.js
CHANGED
|
@@ -13,8 +13,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
15
15
|
|
|
16
|
-
var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
|
|
17
|
-
|
|
18
16
|
var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon/TextBoxIcon"));
|
|
19
17
|
|
|
20
18
|
var _Layout = require("../Layout");
|
|
@@ -31,6 +29,10 @@ var _IdProvider = require("../Provider/IdProvider");
|
|
|
31
29
|
|
|
32
30
|
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
33
31
|
|
|
32
|
+
var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
|
|
33
|
+
|
|
34
|
+
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
35
|
+
|
|
34
36
|
var _dropDownUtils = require("../utils/dropDownUtils");
|
|
35
37
|
|
|
36
38
|
var _Common = require("../utils/Common.js");
|
|
@@ -321,6 +323,16 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
321
323
|
|
|
322
324
|
needCloseOnSelect && this.handlePopupClose(e);
|
|
323
325
|
}
|
|
326
|
+
}, {
|
|
327
|
+
key: "responsiveFunc",
|
|
328
|
+
value: function responsiveFunc(_ref) {
|
|
329
|
+
var mediaQueryOR = _ref.mediaQueryOR;
|
|
330
|
+
return {
|
|
331
|
+
tabletMode: mediaQueryOR([{
|
|
332
|
+
maxWidth: 700
|
|
333
|
+
}])
|
|
334
|
+
};
|
|
335
|
+
}
|
|
324
336
|
}, {
|
|
325
337
|
key: "handleKeyDown",
|
|
326
338
|
value: function handleKeyDown(e) {
|
|
@@ -373,8 +385,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
373
385
|
} else if (keyCode === 13) {
|
|
374
386
|
var option = options[hoverIndex];
|
|
375
387
|
|
|
376
|
-
var
|
|
377
|
-
id =
|
|
388
|
+
var _ref2 = option || {},
|
|
389
|
+
id = _ref2.id;
|
|
378
390
|
|
|
379
391
|
if (isPopupOpen && !(0, _Common.getIsEmptyValue)(id) && onChange) {
|
|
380
392
|
onChange(id, optionsNormalize[id]);
|
|
@@ -391,8 +403,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
391
403
|
} else if (keyCode === 9) {
|
|
392
404
|
var _option = options[hoverIndex];
|
|
393
405
|
|
|
394
|
-
var
|
|
395
|
-
_id =
|
|
406
|
+
var _ref3 = _option || {},
|
|
407
|
+
_id = _ref3.id;
|
|
396
408
|
|
|
397
409
|
if (isPopupOpen && !(0, _Common.getIsEmptyValue)(_id)) {
|
|
398
410
|
onChange && onChange(_id, optionsNormalize[_id]);
|
|
@@ -627,8 +639,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
627
639
|
var changeValue = function changeValue() {
|
|
628
640
|
var optionDetails = _this6.autoSelectSuggestions[_this6.autoSelectIndex];
|
|
629
641
|
|
|
630
|
-
var
|
|
631
|
-
id =
|
|
642
|
+
var _ref4 = optionDetails || {},
|
|
643
|
+
id = _ref4.id;
|
|
632
644
|
|
|
633
645
|
if (!(0, _Common.getIsEmptyValue)(id)) {
|
|
634
646
|
_this6.handleChange(id);
|
|
@@ -712,6 +724,8 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
712
724
|
}, {
|
|
713
725
|
key: "render",
|
|
714
726
|
value: function render() {
|
|
727
|
+
var _this7 = this;
|
|
728
|
+
|
|
715
729
|
var _this$props11 = this.props,
|
|
716
730
|
needSearch = _this$props11.needSearch,
|
|
717
731
|
dropBoxSize = _this$props11.dropBoxSize,
|
|
@@ -871,73 +885,86 @@ var SelectComponent = /*#__PURE__*/function (_Component) {
|
|
|
871
885
|
autoComplete: autoComplete,
|
|
872
886
|
isFocus: isPopupReady,
|
|
873
887
|
customProps: TextBoxProps
|
|
874
|
-
})), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
},
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
888
|
+
})), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
889
|
+
query: this.responsiveFunc,
|
|
890
|
+
responsiveId: "Helmet"
|
|
891
|
+
}, function (_ref5) {
|
|
892
|
+
var tabletMode = _ref5.tabletMode;
|
|
893
|
+
return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], {
|
|
894
|
+
animationStyle: animationStyle,
|
|
895
|
+
boxPosition: position || "".concat(defaultDropBoxPosition),
|
|
896
|
+
getRef: getContainerRef,
|
|
897
|
+
isActive: isPopupReady,
|
|
898
|
+
isAnimate: true,
|
|
899
|
+
isArrow: false,
|
|
900
|
+
onClick: removeClose,
|
|
901
|
+
needResponsive: needResponsive,
|
|
902
|
+
dataId: "".concat(dataId, "_suggestions"),
|
|
903
|
+
size: boxSize,
|
|
904
|
+
isPadding: false,
|
|
905
|
+
isResponsivePadding: getFooter ? false : true,
|
|
906
|
+
alignBox: "row"
|
|
907
|
+
}, !getChildren ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
908
|
+
flexible: true
|
|
909
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
910
|
+
onScroll: _this7.handleScroll
|
|
911
|
+
}, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
912
|
+
className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
|
|
913
|
+
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
914
|
+
a11y: {
|
|
915
|
+
ariaControls: setAriaId,
|
|
916
|
+
ariaAutocomplete: 'list',
|
|
917
|
+
ariaDescribedby: ariaErrorId
|
|
918
|
+
},
|
|
919
|
+
inputRef: _this7.searchInputRef,
|
|
920
|
+
maxLength: maxLength,
|
|
921
|
+
onChange: _this7.handleSearch,
|
|
922
|
+
onKeyDown: _this7.handleKeyDown,
|
|
923
|
+
placeHolder: searchBoxPlaceHolder,
|
|
924
|
+
size: searchBoxSize,
|
|
925
|
+
value: searchStr,
|
|
926
|
+
onClear: _this7.handleClearSearch,
|
|
927
|
+
dataId: "".concat(dataId, "_search"),
|
|
928
|
+
i18nKeys: TextBoxIcon_i18n,
|
|
929
|
+
autoComplete: autoComplete,
|
|
930
|
+
customProps: {
|
|
931
|
+
TextBoxProps: DropdownSearchTextBoxProps
|
|
932
|
+
}
|
|
933
|
+
}))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
934
|
+
shrink: true,
|
|
935
|
+
customClass: !tabletMode && dropBoxSize ? _SelectModule["default"][dropBoxSize] : '',
|
|
936
|
+
eleRef: _this7.suggestionContainerRef
|
|
937
|
+
}, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
938
|
+
activeId: selectedId,
|
|
939
|
+
suggestions: suggestions,
|
|
940
|
+
getRef: _this7.suggestionItemRef,
|
|
941
|
+
hoverOption: hoverIndex,
|
|
942
|
+
onClick: _this7.handleChange,
|
|
943
|
+
onMouseEnter: _this7.handleMouseEnter,
|
|
944
|
+
dataId: "".concat(dataId, "_Options"),
|
|
945
|
+
needTick: needTick,
|
|
946
|
+
needBorder: needListBorder,
|
|
947
|
+
selectedOptions: [selectedId],
|
|
948
|
+
className: "".concat(tabletMode ? _SelectModule["default"].responsivelistItemContainer : _SelectModule["default"].listItemContainer),
|
|
949
|
+
listItemSize: listItemSize,
|
|
950
|
+
htmlId: setAriaId,
|
|
951
|
+
a11y: {
|
|
952
|
+
ariaParentRole: 'listbox',
|
|
953
|
+
role: 'option'
|
|
954
|
+
}
|
|
955
|
+
}, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
956
|
+
isLoading: isFetchingOptions,
|
|
957
|
+
options: options,
|
|
958
|
+
searchString: searchStr,
|
|
959
|
+
suggestions: suggestions,
|
|
960
|
+
dataId: dataId,
|
|
961
|
+
getCustomEmptyState: getCustomEmptyState ? _this7.handleGetAddNewOptionText : null,
|
|
962
|
+
i18nKeys: i18nKeys,
|
|
963
|
+
htmlId: ariaErrorId
|
|
964
|
+
})), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)) : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
965
|
+
flexible: true
|
|
966
|
+
}, getChildren()));
|
|
967
|
+
}) : null);
|
|
941
968
|
}
|
|
942
969
|
}]);
|
|
943
970
|
|
|
@@ -46,6 +46,9 @@
|
|
|
46
46
|
.listItemContainer {
|
|
47
47
|
padding: var(--zd_size10) 0;
|
|
48
48
|
}
|
|
49
|
+
.responsivelistItemContainer {
|
|
50
|
+
padding: var(--zd_size10) 0 0;
|
|
51
|
+
}
|
|
49
52
|
.readonly {
|
|
50
53
|
--textboxicon_icon_cursor: not-allowed;
|
|
51
54
|
}
|
|
@@ -85,6 +88,9 @@
|
|
|
85
88
|
.dropBoxList {
|
|
86
89
|
padding: var(--zd_size10) 0;
|
|
87
90
|
}
|
|
91
|
+
.responsivedropBoxList{
|
|
92
|
+
padding: var(--zd_size10) 0 0 0;
|
|
93
|
+
}
|
|
88
94
|
.rotate {
|
|
89
95
|
transform: rotateX(180deg);
|
|
90
96
|
}
|