@zohodesk/components 1.0.0-temp-444 → 1.0.0-temp-667
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 +16 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +3 -18
- package/assets/Appearance/default/mode/defaultMode.module.css +2 -17
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +5 -20
- package/es/AppContainer/AppContainer.js +1 -1
- package/es/Avatar/Avatar.js +1 -1
- package/es/Avatar/Avatar.module.css +11 -9
- package/es/AvatarTeam/AvatarTeam.js +1 -1
- package/es/AvatarTeam/AvatarTeam.module.css +21 -7
- package/es/Button/Button.module.css +97 -24
- package/es/Buttongroup/Buttongroup.module.css +37 -8
- package/es/CheckBox/CheckBox.js +1 -1
- package/es/CheckBox/CheckBox.module.css +29 -19
- package/es/DateTime/DateTime.js +4 -2
- package/es/DateTime/DateTime.module.css +40 -13
- package/es/DateTime/DateWidget.js +4 -2
- package/es/DateTime/DateWidget.module.css +9 -5
- package/es/DateTime/YearView.module.css +17 -6
- package/es/DropBox/DropBox.js +1 -1
- package/es/DropBox/DropBox.module.css +47 -11
- package/es/DropDown/DropDownHeading.module.css +7 -3
- package/es/DropDown/DropDownItem.module.css +32 -6
- package/es/LightNightMode/Colors.json +496 -397
- package/es/LightNightMode/docs/AlternativeColors.docs.js +21 -1
- package/es/ListItem/ListContainer.js +1 -1
- package/es/ListItem/ListItem.js +1 -1
- package/es/ListItem/ListItem.module.css +69 -33
- package/es/ListItem/ListItemWithAvatar.js +1 -1
- package/es/ListItem/ListItemWithCheckBox.js +1 -1
- package/es/ListItem/ListItemWithIcon.js +1 -1
- package/es/ListItem/ListItemWithRadio.js +1 -1
- package/es/Modal/Modal.js +1 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +14 -7
- package/es/MultiSelect/AdvancedMultiSelect.js +20 -8
- package/es/MultiSelect/MultiSelect.module.css +36 -11
- package/es/MultiSelect/SelectedOptions.js +1 -1
- package/es/MultiSelect/SelectedOptions.module.css +8 -2
- package/es/MultiSelect/Suggestions.js +1 -1
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Popup/Popup.js +1 -1
- package/es/Radio/Radio.module.css +18 -10
- package/es/Responsive/ResizeComponent.js +15 -73
- package/es/Responsive/ResizeObserver.js +2 -6
- package/es/Responsive/docs/style.module.css +17 -8
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
- package/es/Ribbon/Ribbon.module.css +93 -28
- package/es/RippleEffect/RippleEffect.module.css +37 -44
- package/es/Select/Select.js +30 -8
- package/es/Select/Select.module.css +12 -2
- package/es/Select/docs/Select__default.docs.js +1 -1
- package/es/Stencils/Stencils.module.css +21 -3
- package/es/Switch/Switch.js +1 -1
- package/es/Switch/Switch.module.css +9 -9
- package/es/Tab/Tab.js +1 -1
- package/es/Tab/Tab.module.css +16 -7
- package/es/Tab/TabWrapper.js +1 -1
- package/es/Tab/Tabs.js +1 -1
- package/es/Tab/Tabs.module.css +42 -8
- package/es/Tab/docs/tabdocs.module.css +1 -1
- package/es/Tag/Tag.module.css +36 -14
- package/es/TextBox/TextBox.js +1 -1
- package/es/TextBox/TextBox.module.css +7 -11
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +12 -5
- package/es/Textarea/Textarea.js +1 -1
- package/es/Textarea/Textarea.module.css +6 -7
- package/es/Tooltip/Tooltip.module.css +9 -8
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
- package/es/beta/FocusRing/FocusRing.module.css +51 -26
- package/es/common/animation.module.css +219 -21
- package/es/common/basicReset.module.css +2 -12
- package/es/common/common.module.css +62 -18
- package/es/common/customscroll.module.css +17 -21
- package/es/common/docStyle.module.css +79 -32
- package/es/common/transition.module.css +50 -10
- package/es/css.js +0 -1
- package/{lib/MultiSelect → es/deprecated}/AdvancedMultiSelect.module.css +1 -1
- package/es/deprecated/advancedMultiSelectVariableJson.js +80 -0
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/lib/Accordion/Accordion.js +2 -2
- package/lib/Accordion/AccordionItem.js +2 -2
- package/lib/Accordion/docs/Accordion__Demo.docs.js +2 -2
- package/lib/Animation/Animation.js +2 -2
- package/lib/Animation/docs/Animation__default.docs.js +2 -2
- package/lib/Animation/docs/Animation__fadeIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__scaleIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__skewIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__slideDown.docs.js +2 -2
- package/lib/Animation/docs/Animation__slideLeft.docs.js +2 -2
- package/lib/Animation/docs/Animation__zoomIn.docs.js +2 -2
- package/lib/AppContainer/AppContainer.js +11 -4
- package/lib/AppContainer/docs/AppContainer__default.docs.js +2 -2
- package/lib/Avatar/Avatar.js +3 -3
- package/lib/Avatar/docs/Avatar__custom.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__default.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__palette.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__text.docs.js +2 -2
- package/lib/AvatarTeam/AvatarTeam.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +2 -2
- package/lib/Button/Button.js +2 -2
- package/lib/Button/docs/Button__custom.docs.js +2 -2
- package/lib/Button/docs/Button__default.docs.js +2 -2
- package/lib/Buttongroup/Buttongroup.js +2 -2
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +2 -2
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +2 -2
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +2 -2
- package/lib/Card/Card.js +2 -2
- package/lib/Card/docs/Card__Custom.docs.js +2 -2
- package/lib/Card/docs/Card__Default.docs.js +2 -2
- package/lib/Card/docs/Card__Scroll.docs.js +2 -2
- package/lib/CheckBox/CheckBox.js +5 -4
- package/lib/CheckBox/CheckBox.module.css +12 -8
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +2 -2
- package/lib/CheckBox/docs/CheckBox__default.docs.js +2 -2
- package/lib/DateTime/CalendarView.js +2 -2
- package/lib/DateTime/DateTime.js +50 -22
- package/lib/DateTime/DateTime.module.css +1 -1
- package/lib/DateTime/DateTimePopupFooter.js +2 -2
- package/lib/DateTime/DateTimePopupHeader.js +2 -2
- package/lib/DateTime/DateWidget.js +14 -4
- package/lib/DateTime/DateWidget.module.css +0 -4
- package/lib/DateTime/DaysRow.js +2 -2
- package/lib/DateTime/Time.js +2 -2
- package/lib/DateTime/YearView.js +2 -2
- package/lib/DateTime/YearView.module.css +1 -0
- package/lib/DateTime/docs/DateTime__default.docs.js +2 -2
- package/lib/DateTime/docs/DateWidget__default.docs.js +2 -2
- package/lib/DropBox/DropBox.js +4 -4
- package/lib/DropBox/docs/DropBox__custom.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__position.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__size.docs.js +2 -2
- package/lib/DropDown/DropDown.js +2 -2
- package/lib/DropDown/DropDownHeading.js +2 -2
- package/lib/DropDown/DropDownItem.js +2 -2
- package/lib/DropDown/DropDownSearch.js +2 -2
- package/lib/DropDown/DropDownSeparator.js +2 -2
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +2 -2
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +2 -2
- package/lib/Label/Label.js +2 -2
- package/lib/Label/docs/Label__clipped.docs.js +2 -2
- package/lib/Label/docs/Label__custom.docs.js +2 -2
- package/lib/Label/docs/Label__palette.docs.js +2 -2
- package/lib/Label/docs/Label__size.docs.js +2 -2
- package/lib/Label/docs/Label__type.docs.js +2 -2
- package/lib/Layout/docs/Layout__Hidden.docs.js +2 -2
- package/lib/Layout/docs/Layout__default.docs.js +2 -2
- package/lib/Layout/docs/Layout__four_Column.docs.js +2 -2
- package/lib/Layout/docs/Layout__three_Column.docs.js +2 -2
- package/lib/Layout/docs/Layout__two_Column.docs.js +2 -2
- package/lib/LightNightMode/Colors.json +496 -397
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +25 -3
- package/lib/ListItem/ListContainer.js +8 -5
- package/lib/ListItem/ListItem.js +4 -4
- package/lib/ListItem/ListItem.module.css +18 -19
- package/lib/ListItem/ListItemWithAvatar.js +4 -4
- package/lib/ListItem/ListItemWithCheckBox.js +4 -4
- package/lib/ListItem/ListItemWithIcon.js +4 -4
- package/lib/ListItem/ListItemWithRadio.js +4 -4
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItem__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItem__default.docs.js +2 -2
- package/lib/Modal/Modal.js +3 -3
- package/lib/Modal/__docs__/Modal__default.docs.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +120 -88
- package/lib/MultiSelect/AdvancedMultiSelect.js +99 -62
- package/lib/MultiSelect/EmptyState.js +2 -2
- package/lib/MultiSelect/MultiSelect.js +90 -64
- package/lib/MultiSelect/MultiSelect.module.css +15 -2
- package/lib/MultiSelect/MultiSelectHeader.js +2 -2
- package/lib/MultiSelect/MultiSelectWithAvatar.js +80 -55
- package/lib/MultiSelect/SelectedOptions.js +3 -3
- package/lib/MultiSelect/Suggestions.js +3 -3
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -2
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +2 -2
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +2 -2
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +2 -2
- package/lib/PopOver/PopOver.js +13 -6
- package/lib/PopOver/docs/PopOver__default.docs.js +2 -2
- package/lib/Popup/Popup.js +3 -3
- package/lib/Popup/__tests__/Popup.spec.js +2 -2
- package/lib/Provider/Config.js +3 -1
- package/lib/Provider/docs/Provider_Id__Class.docs.js +2 -2
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +2 -2
- package/lib/Provider.js +34 -100
- package/lib/Radio/Radio.js +2 -2
- package/lib/Radio/Radio.module.css +8 -6
- package/lib/Radio/docs/Radio__custom.docs.js +2 -2
- package/lib/Radio/docs/Radio__default.docs.js +2 -2
- package/lib/Responsive/ResizeComponent.js +2 -2
- package/lib/Responsive/Responsive.js +2 -2
- package/lib/Responsive/docs/Responsive__Custom.docs.js +2 -2
- package/lib/Responsive/docs/Responsive__default.docs.js +2 -2
- package/lib/Responsive/sizeObservers.js +3 -3
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +130 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
- package/lib/Ribbon/Ribbon.js +2 -2
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +2 -2
- package/lib/Ribbon/docs/Ribbon__default.docs.js +2 -2
- package/lib/RippleEffect/RippleEffect.module.css +37 -15
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +2 -2
- package/lib/Select/GroupSelect.js +102 -79
- package/lib/Select/Select.js +142 -87
- package/lib/Select/Select.module.css +6 -0
- package/lib/Select/SelectWithAvatar.js +98 -73
- package/lib/Select/SelectWithIcon.js +99 -76
- package/lib/Select/docs/GroupSelect__default.docs.js +2 -2
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +2 -2
- package/lib/Select/docs/SelectWithIcon__default.docs.js +2 -2
- package/lib/Select/docs/Select__default.docs.js +3 -3
- package/lib/Stencils/Stencils.js +2 -2
- package/lib/Stencils/docs/Stencils__custom.docs.js +2 -2
- package/lib/Stencils/docs/Stencils__default.docs.js +2 -2
- package/lib/Switch/Switch.js +3 -3
- package/lib/Switch/Switch.module.css +3 -2
- package/lib/Switch/docs/Switch__custom.docs.js +2 -2
- package/lib/Switch/docs/Switch__default.docs.js +2 -2
- package/lib/Tab/Tab.js +1 -1
- package/lib/Tab/TabWrapper.js +1 -1
- package/lib/Tab/Tabs.js +70 -47
- package/lib/Tab/Tabs.module.css +2 -1
- package/lib/Tab/docs/Tab__default.docs.js +2 -2
- package/lib/Tag/Tag.js +3 -3
- package/lib/Tag/Tag.module.css +6 -2
- package/lib/Tag/docs/Tag__custom.docs.js +2 -2
- package/lib/Tag/docs/Tag__default.docs.js +2 -2
- package/lib/TextBox/TextBox.js +3 -3
- package/lib/TextBox/docs/TextBox__custom.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__default.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__size.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__variant.docs.js +2 -2
- package/lib/TextBoxIcon/TextBoxIcon.js +3 -3
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +2 -2
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +2 -2
- package/lib/Textarea/Textarea.js +3 -3
- package/lib/Textarea/docs/Textarea__animated.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__custom.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__default.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__disabled.docs.js +2 -2
- package/lib/Tooltip/Tooltip.js +62 -10
- package/lib/Tooltip/Tooltip.module.css +6 -1
- package/lib/Tooltip/__tests__/Tooltip.spec.js +2 -2
- package/lib/Tooltip/docs/Tooltip__default.docs.js +52 -13
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -2
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +2 -2
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +2 -2
- package/lib/common/docStyle.module.css +6 -2
- package/lib/css.js +0 -2
- package/{es/MultiSelect → lib/deprecated}/AdvancedMultiSelect.module.css +23 -9
- package/lib/deprecated/PortalLayer/PortalLayer.js +2 -2
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +2 -2
- package/lib/deprecated/advancedMultiSelectVariableJson.js +82 -0
- package/lib/index.js +10 -1
- package/lib/semantic/Button/Button.js +2 -2
- package/lib/semantic/Button/docs/Button__default.docs.js +2 -2
- package/package.json +4 -4
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
|
|
14
|
+
var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
|
|
15
|
+
|
|
16
|
+
var _Layout = require("../Layout");
|
|
17
|
+
|
|
18
|
+
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
19
|
+
|
|
20
|
+
var _ResponsiveDropBoxModule = _interopRequireDefault(require("./ResponsiveDropBox.module.css"));
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
|
+
|
|
26
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
+
|
|
28
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
|
+
|
|
30
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
31
|
+
|
|
32
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
33
|
+
|
|
34
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
35
|
+
|
|
36
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
37
|
+
|
|
38
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
39
|
+
|
|
40
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
41
|
+
|
|
42
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
43
|
+
|
|
44
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
45
|
+
|
|
46
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
|
+
|
|
48
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
49
|
+
|
|
50
|
+
var ResponsiveDropBox = /*#__PURE__*/function (_Component) {
|
|
51
|
+
_inherits(ResponsiveDropBox, _Component);
|
|
52
|
+
|
|
53
|
+
var _super = _createSuper(ResponsiveDropBox);
|
|
54
|
+
|
|
55
|
+
function ResponsiveDropBox(props) {
|
|
56
|
+
var _this;
|
|
57
|
+
|
|
58
|
+
_classCallCheck(this, ResponsiveDropBox);
|
|
59
|
+
|
|
60
|
+
_this = _super.call(this, props);
|
|
61
|
+
_this.responsiveFunc = _this.responsiveFunc.bind(_assertThisInitialized(_this));
|
|
62
|
+
return _this;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
_createClass(ResponsiveDropBox, [{
|
|
66
|
+
key: "responsiveFunc",
|
|
67
|
+
value: function responsiveFunc(_ref) {
|
|
68
|
+
var mediaQueryOR = _ref.mediaQueryOR;
|
|
69
|
+
return {
|
|
70
|
+
tabletMode: mediaQueryOR([{
|
|
71
|
+
maxWidth: 700
|
|
72
|
+
}])
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}, {
|
|
76
|
+
key: "render",
|
|
77
|
+
value: function render() {
|
|
78
|
+
var _this$props = this.props,
|
|
79
|
+
children = _this$props.children,
|
|
80
|
+
_this$props$customCla = _this$props.customClass,
|
|
81
|
+
customClass = _this$props$customCla === void 0 ? {} : _this$props$customCla,
|
|
82
|
+
isResponsivePadding = _this$props.isResponsivePadding,
|
|
83
|
+
alignBox = _this$props.alignBox;
|
|
84
|
+
var _customClass$customDr = customClass.customDropBox,
|
|
85
|
+
customDropBox = _customClass$customDr === void 0 ? '' : _customClass$customDr,
|
|
86
|
+
_customClass$customMo = customClass.customMobileDropBox,
|
|
87
|
+
customMobileDropBox = _customClass$customMo === void 0 ? '' : _customClass$customMo,
|
|
88
|
+
_customClass$customDr2 = customClass.customDropBoxWrap,
|
|
89
|
+
customDropBoxWrap = _customClass$customDr2 === void 0 ? '' : _customClass$customDr2,
|
|
90
|
+
_customClass$customMo2 = customClass.customMobileDropBoxWrap,
|
|
91
|
+
customMobileDropBoxWrap = _customClass$customMo2 === void 0 ? '' : _customClass$customMo2,
|
|
92
|
+
_customClass$customRe = customClass.customResponsiveContainer,
|
|
93
|
+
customResponsiveContainer = _customClass$customRe === void 0 ? '' : _customClass$customRe;
|
|
94
|
+
var dropBoxClasses = {
|
|
95
|
+
customDropBox: "".concat(customDropBox),
|
|
96
|
+
customMobileDropBox: "".concat(customMobileDropBox),
|
|
97
|
+
customDropBoxWrap: "".concat(customDropBoxWrap),
|
|
98
|
+
customMobileDropBoxWrap: "".concat(customMobileDropBoxWrap),
|
|
99
|
+
customResponsiveContainer: "".concat(customResponsiveContainer)
|
|
100
|
+
};
|
|
101
|
+
return /*#__PURE__*/_react["default"].createElement(_DropBox["default"], _extends({}, this.props, {
|
|
102
|
+
customClass: dropBoxClasses
|
|
103
|
+
}), /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
104
|
+
query: this.responsiveFunc,
|
|
105
|
+
responsiveId: "Helmet"
|
|
106
|
+
}, function (_ref2) {
|
|
107
|
+
var tabletMode = _ref2.tabletMode;
|
|
108
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
109
|
+
alignBox: alignBox,
|
|
110
|
+
isCover: false,
|
|
111
|
+
className: "".concat(tabletMode ? _ResponsiveDropBoxModule["default"].dropBoxContainer : '', " ").concat(tabletMode && isResponsivePadding ? _ResponsiveDropBoxModule["default"].boxPadding : '', " ").concat(customResponsiveContainer)
|
|
112
|
+
}, children);
|
|
113
|
+
}));
|
|
114
|
+
}
|
|
115
|
+
}]);
|
|
116
|
+
|
|
117
|
+
return ResponsiveDropBox;
|
|
118
|
+
}(_react.Component);
|
|
119
|
+
|
|
120
|
+
exports["default"] = ResponsiveDropBox;
|
|
121
|
+
ResponsiveDropBox.propTypes = {
|
|
122
|
+
children: _propTypes["default"].element,
|
|
123
|
+
customClass: _propTypes["default"].object,
|
|
124
|
+
isResponsivePadding: _propTypes["default"].bool,
|
|
125
|
+
alignBox: _propTypes["default"].oneOf(['column', 'row'])
|
|
126
|
+
};
|
|
127
|
+
ResponsiveDropBox.defaultProps = {
|
|
128
|
+
isResponsivePadding: false,
|
|
129
|
+
alignBox: 'column'
|
|
130
|
+
};
|
package/lib/Ribbon/Ribbon.js
CHANGED
|
@@ -23,7 +23,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
23
23
|
|
|
24
24
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
25
|
|
|
26
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
26
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
27
|
|
|
28
28
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
33
33
|
|
|
34
34
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
35
|
|
|
36
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
36
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
37
|
|
|
38
38
|
var Ribbon = /*#__PURE__*/function (_React$Component) {
|
|
39
39
|
_inherits(Ribbon, _React$Component);
|
|
@@ -25,7 +25,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
25
25
|
|
|
26
26
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
27
|
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
29
|
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
35
35
|
|
|
36
36
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
37
37
|
|
|
38
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
39
|
|
|
40
40
|
var Ribbon__custom = /*#__PURE__*/function (_React$Component) {
|
|
41
41
|
_inherits(Ribbon__custom, _React$Component);
|
|
@@ -23,7 +23,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
23
23
|
|
|
24
24
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
25
25
|
|
|
26
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
26
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
27
|
|
|
28
28
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
33
33
|
|
|
34
34
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
35
|
|
|
36
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
36
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
37
|
|
|
38
38
|
var Ribbon__default = /*#__PURE__*/function (_React$Component) {
|
|
39
39
|
_inherits(Ribbon__default, _React$Component);
|
|
@@ -8,43 +8,61 @@
|
|
|
8
8
|
.default.defaultHover {
|
|
9
9
|
border-color: var(--zdt_rippleeffect_hover_border);
|
|
10
10
|
}
|
|
11
|
-
.hoverEffect:hover.primary.defaultHover, .hoverEffect:
|
|
11
|
+
.hoverEffect:hover.primary.defaultHover, .hoverEffect:hover.primary.borderHover
|
|
12
|
+
/* .hoverEffect:focus.primary.borderHover */
|
|
13
|
+
{
|
|
12
14
|
border-color: var(--zdt_rippleeffect_primary_border);
|
|
13
15
|
}
|
|
14
|
-
.primary.defaultHover, .hoverEffect:hover.primary.active.border
|
|
16
|
+
.primary.defaultHover, .hoverEffect:hover.primary.active.border
|
|
17
|
+
/* .hoverEffect:focus.primary.active.border */
|
|
18
|
+
{
|
|
15
19
|
border-color: var(--zdt_rippleeffect_primary_active_border);
|
|
16
20
|
}
|
|
17
|
-
.primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
|
|
21
|
+
.primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
|
|
22
|
+
/* .hoverEffect:focus.primaryLight.borderHover */
|
|
23
|
+
{
|
|
18
24
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
19
25
|
}
|
|
20
|
-
.green.defaultHover, .hoverEffect:hover.green.borderHover
|
|
26
|
+
.green.defaultHover, .hoverEffect:hover.green.borderHover
|
|
27
|
+
/* .hoverEffect:focus.green.borderHover */
|
|
28
|
+
{
|
|
21
29
|
border-color: var(--zdt_rippleeffect_green_border);
|
|
22
30
|
}
|
|
23
|
-
.hoverEffect:hover.default.defaultHover
|
|
31
|
+
.hoverEffect:hover.default.defaultHover
|
|
32
|
+
/* .hoverEffect:focus.default.defaultHover */
|
|
33
|
+
{
|
|
24
34
|
border-color: var(--zdt_rippleeffect_slate_border);
|
|
25
35
|
}
|
|
26
|
-
.hoverEffect:hover.default.borderHover
|
|
36
|
+
.hoverEffect:hover.default.borderHover
|
|
37
|
+
/* .hoverEffect:focus.default.borderHover */
|
|
38
|
+
{
|
|
27
39
|
border-color: var(--zdt_rippleeffect_navy_border);
|
|
28
40
|
}
|
|
29
|
-
.hoverEffect:hover.default.bgHover
|
|
41
|
+
.hoverEffect:hover.default.bgHover
|
|
42
|
+
/* .hoverEffect:focus.default.bgHover */
|
|
43
|
+
{
|
|
30
44
|
background-color: var(--zdt_rippleeffect_hover_bg);
|
|
31
45
|
}
|
|
32
|
-
.hoverEffect:hover.primaryLight.bgHover
|
|
46
|
+
.hoverEffect:hover.primaryLight.bgHover
|
|
47
|
+
/* .hoverEffect:focus.primaryLight.bgHover */
|
|
48
|
+
{
|
|
33
49
|
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
34
50
|
}
|
|
35
51
|
.primaryFilled {
|
|
36
52
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
37
53
|
}
|
|
38
|
-
.hoverEffect:hover.primaryFilled, .
|
|
54
|
+
.hoverEffect:hover.primaryFilled, .primaryFilled.active {
|
|
39
55
|
background-color: var(--zdt_rippleeffect_primaryfilled_bg);
|
|
40
56
|
}
|
|
41
|
-
.hoverEffect:hover.green.bgHover
|
|
57
|
+
.hoverEffect:hover.green.bgHover
|
|
58
|
+
/* .hoverEffect:focus.green.bgHover */
|
|
59
|
+
{
|
|
42
60
|
background-color: var(--zdt_rippleeffect_green_bg);
|
|
43
61
|
}
|
|
44
|
-
.default.active, .hoverEffect:hover.default.active, .
|
|
62
|
+
.default.active, .hoverEffect:hover.default.active, .primaryLight.active, .primaryDark.active {
|
|
45
63
|
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
46
64
|
}
|
|
47
|
-
.default.active.border, .hoverEffect:hover.default.active.border, .
|
|
65
|
+
.default.active.border, .hoverEffect:hover.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
|
|
48
66
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
49
67
|
}
|
|
50
68
|
.green.active {
|
|
@@ -56,13 +74,17 @@
|
|
|
56
74
|
.primary.active {
|
|
57
75
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
58
76
|
}
|
|
59
|
-
.danger.defaultHover, .hoverEffect:hover.danger.borderHover
|
|
77
|
+
.danger.defaultHover, .hoverEffect:hover.danger.borderHover
|
|
78
|
+
/* .hoverEffect:focus.danger.borderHover */
|
|
79
|
+
{
|
|
60
80
|
border-color: var(--zdt_rippleeffect_danger_border);
|
|
61
81
|
}
|
|
62
|
-
.hoverEffect:hover.danger.bgHover, .
|
|
82
|
+
.hoverEffect:hover.danger.bgHover, .danger.active {
|
|
63
83
|
background-color: var(--zdt_rippleeffect_danger_bg);
|
|
64
84
|
}
|
|
65
|
-
.hoverEffect:hover.primaryDark.bgHover
|
|
85
|
+
.hoverEffect:hover.primaryDark.bgHover
|
|
86
|
+
/* .hoverEffect:focus.primaryDark.bgHover */
|
|
87
|
+
{
|
|
66
88
|
background-color: var(--zdt_rippleeffect_primary_dark_bg);
|
|
67
89
|
}
|
|
68
90
|
.notAllowed {
|
|
@@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
21
21
|
|
|
22
22
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
23
23
|
|
|
24
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
24
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
25
|
|
|
26
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
27
27
|
|
|
@@ -31,7 +31,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
31
31
|
|
|
32
32
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
33
33
|
|
|
34
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
34
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
35
|
|
|
36
36
|
var RippleEffect__default = /*#__PURE__*/function (_React$Component) {
|
|
37
37
|
_inherits(RippleEffect__default, _React$Component);
|
|
@@ -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");
|
|
@@ -65,7 +67,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
65
67
|
|
|
66
68
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
67
69
|
|
|
68
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
70
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
69
71
|
|
|
70
72
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
71
73
|
|
|
@@ -75,7 +77,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
75
77
|
|
|
76
78
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
77
79
|
|
|
78
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
80
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
79
81
|
|
|
80
82
|
/* eslint-disable react/no-unused-prop-types */
|
|
81
83
|
|
|
@@ -192,7 +194,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
192
194
|
}
|
|
193
195
|
|
|
194
196
|
if (selectedOption !== prevProps.selectedOption) {
|
|
195
|
-
var _this$handleGetSelect2 = this.handleGetSelectedId(this.props,
|
|
197
|
+
var _this$handleGetSelect2 = this.handleGetSelectedId(this.props, newOptionIds),
|
|
196
198
|
_selectedId = _this$handleGetSelect2.selectedId,
|
|
197
199
|
_hoverIndex = _this$handleGetSelect2.hoverIndex;
|
|
198
200
|
|
|
@@ -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
|
|