@zohodesk/components 1.0.0-temp-667 → 1.0.0-temp-999
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 +7 -0
- package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
- package/es/AppContainer/AppContainer.js +1 -1
- package/es/Avatar/Avatar.js +1 -1
- package/es/Avatar/Avatar.module.css +9 -11
- package/es/AvatarTeam/AvatarTeam.js +1 -1
- package/es/AvatarTeam/AvatarTeam.module.css +7 -21
- package/es/Button/Button.module.css +24 -97
- package/es/Buttongroup/Buttongroup.module.css +8 -37
- package/es/CheckBox/CheckBox.js +1 -1
- package/es/CheckBox/CheckBox.module.css +19 -29
- package/es/DateTime/DateTime.module.css +12 -39
- package/es/DateTime/DateWidget.module.css +5 -9
- package/es/DateTime/YearView.module.css +7 -17
- package/es/DropBox/DropBox.js +1 -1
- package/es/DropBox/DropBox.module.css +11 -47
- package/es/DropDown/DropDownHeading.module.css +3 -7
- package/es/DropDown/DropDownItem.module.css +6 -32
- package/es/ListItem/ListContainer.js +1 -1
- package/es/ListItem/ListItem.js +1 -1
- package/es/ListItem/ListItem.module.css +33 -69
- 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/AdvancedMultiSelect.js +1 -1
- package/es/MultiSelect/AdvancedMultiSelect.module.css +113 -0
- package/es/MultiSelect/MultiSelect.module.css +11 -28
- package/es/MultiSelect/SelectedOptions.js +1 -1
- package/es/MultiSelect/SelectedOptions.module.css +2 -8
- 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 +10 -18
- package/es/Responsive/ResizeComponent.js +82 -15
- package/es/Responsive/ResizeObserver.js +6 -2
- package/es/Responsive/docs/style.module.css +8 -17
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
- package/es/Ribbon/Ribbon.module.css +28 -93
- package/es/RippleEffect/RippleEffect.module.css +44 -37
- package/es/Select/Select.js +8 -30
- package/es/Select/Select.module.css +2 -12
- package/es/Select/docs/Select__default.docs.js +1 -1
- package/es/Stencils/Stencils.module.css +3 -21
- 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 +7 -16
- package/es/Tab/TabWrapper.js +1 -1
- package/es/Tab/Tabs.js +1 -1
- package/es/Tab/Tabs.module.css +8 -42
- package/es/Tab/docs/tabdocs.module.css +1 -1
- package/es/Tag/Tag.module.css +14 -36
- package/es/TextBox/TextBox.js +1 -1
- package/es/TextBox/TextBox.module.css +11 -7
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +5 -12
- package/es/Textarea/Textarea.js +1 -1
- package/es/Textarea/Textarea.module.css +7 -6
- package/es/Tooltip/Tooltip.module.css +8 -9
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
- package/es/beta/FocusRing/FocusRing.module.css +26 -51
- package/es/common/animation.module.css +21 -219
- package/es/common/basicReset.module.css +12 -2
- package/es/common/common.module.css +18 -62
- package/es/common/customscroll.module.css +21 -17
- package/es/common/docStyle.module.css +32 -79
- package/es/common/transition.module.css +10 -50
- package/es/deprecated/AdvancedMultiSelect.module.css +8 -22
- 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 +4 -11
- 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 +4 -5
- package/lib/CheckBox/CheckBox.module.css +8 -12
- 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 +22 -50
- 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 +4 -14
- package/lib/DateTime/DateWidget.module.css +4 -0
- 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 +0 -1
- 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 +397 -496
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -25
- package/lib/ListItem/ListContainer.js +5 -8
- package/lib/ListItem/ListItem.js +4 -4
- package/lib/ListItem/ListItem.module.css +19 -18
- 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 +88 -120
- package/lib/MultiSelect/AdvancedMultiSelect.js +62 -99
- package/lib/{deprecated → MultiSelect}/AdvancedMultiSelect.module.css +1 -1
- package/lib/MultiSelect/EmptyState.js +2 -2
- package/lib/MultiSelect/MultiSelect.js +64 -90
- package/lib/MultiSelect/MultiSelect.module.css +2 -15
- package/lib/MultiSelect/MultiSelectHeader.js +2 -2
- package/lib/MultiSelect/MultiSelectWithAvatar.js +55 -80
- 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 +6 -13
- 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 +1 -3
- 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 +100 -34
- package/lib/Radio/Radio.js +2 -2
- package/lib/Radio/Radio.module.css +6 -8
- 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/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 +15 -37
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +2 -2
- package/lib/Select/GroupSelect.js +79 -102
- package/lib/Select/Select.js +87 -142
- package/lib/Select/Select.module.css +0 -6
- package/lib/Select/SelectWithAvatar.js +73 -98
- package/lib/Select/SelectWithIcon.js +76 -99
- 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 +2 -3
- 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 +47 -70
- package/lib/Tab/Tabs.module.css +1 -2
- package/lib/Tab/docs/Tab__default.docs.js +2 -2
- package/lib/Tag/Tag.js +3 -3
- package/lib/Tag/Tag.module.css +2 -6
- 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 +10 -62
- package/lib/Tooltip/Tooltip.module.css +1 -6
- package/lib/Tooltip/__tests__/Tooltip.spec.js +2 -2
- package/lib/Tooltip/docs/Tooltip__default.docs.js +13 -52
- 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 +2 -6
- package/lib/css.js +2 -0
- package/lib/deprecated/PortalLayer/PortalLayer.js +2 -2
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +2 -2
- package/lib/index.js +1 -10
- package/lib/semantic/Button/Button.js +2 -2
- package/lib/semantic/Button/docs/Button__default.docs.js +2 -2
- package/package.json +6 -5
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +0 -130
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +0 -6
- package/lib/deprecated/advancedMultiSelectVariableJson.js +0 -82
|
@@ -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 || 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
|
|
36
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : 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,61 +8,43 @@
|
|
|
8
8
|
.default.defaultHover {
|
|
9
9
|
border-color: var(--zdt_rippleeffect_hover_border);
|
|
10
10
|
}
|
|
11
|
-
.hoverEffect:hover.primary.defaultHover, .hoverEffect:hover.primary.borderHover
|
|
12
|
-
/* .hoverEffect:focus.primary.borderHover */
|
|
13
|
-
{
|
|
11
|
+
.hoverEffect:hover.primary.defaultHover, .hoverEffect:focus.primary.defaultHover, .hoverEffect:hover.primary.borderHover, .hoverEffect:focus.primary.borderHover {
|
|
14
12
|
border-color: var(--zdt_rippleeffect_primary_border);
|
|
15
13
|
}
|
|
16
|
-
.primary.defaultHover, .hoverEffect:hover.primary.active.border
|
|
17
|
-
/* .hoverEffect:focus.primary.active.border */
|
|
18
|
-
{
|
|
14
|
+
.primary.defaultHover, .hoverEffect:hover.primary.active.border, .hoverEffect:focus.primary.active.border {
|
|
19
15
|
border-color: var(--zdt_rippleeffect_primary_active_border);
|
|
20
16
|
}
|
|
21
|
-
.primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
|
|
22
|
-
/* .hoverEffect:focus.primaryLight.borderHover */
|
|
23
|
-
{
|
|
17
|
+
.primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover, .hoverEffect:focus.primaryLight.borderHover {
|
|
24
18
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
25
19
|
}
|
|
26
|
-
.green.defaultHover, .hoverEffect:hover.green.borderHover
|
|
27
|
-
/* .hoverEffect:focus.green.borderHover */
|
|
28
|
-
{
|
|
20
|
+
.green.defaultHover, .hoverEffect:hover.green.borderHover, .hoverEffect:focus.green.borderHover {
|
|
29
21
|
border-color: var(--zdt_rippleeffect_green_border);
|
|
30
22
|
}
|
|
31
|
-
.hoverEffect:hover.default.defaultHover
|
|
32
|
-
/* .hoverEffect:focus.default.defaultHover */
|
|
33
|
-
{
|
|
23
|
+
.hoverEffect:hover.default.defaultHover, .hoverEffect:focus.default.defaultHover {
|
|
34
24
|
border-color: var(--zdt_rippleeffect_slate_border);
|
|
35
25
|
}
|
|
36
|
-
.hoverEffect:hover.default.borderHover
|
|
37
|
-
/* .hoverEffect:focus.default.borderHover */
|
|
38
|
-
{
|
|
26
|
+
.hoverEffect:hover.default.borderHover, .hoverEffect:focus.default.borderHover {
|
|
39
27
|
border-color: var(--zdt_rippleeffect_navy_border);
|
|
40
28
|
}
|
|
41
|
-
.hoverEffect:hover.default.bgHover
|
|
42
|
-
/* .hoverEffect:focus.default.bgHover */
|
|
43
|
-
{
|
|
29
|
+
.hoverEffect:hover.default.bgHover, .hoverEffect:focus.default.bgHover {
|
|
44
30
|
background-color: var(--zdt_rippleeffect_hover_bg);
|
|
45
31
|
}
|
|
46
|
-
.hoverEffect:hover.primaryLight.bgHover
|
|
47
|
-
/* .hoverEffect:focus.primaryLight.bgHover */
|
|
48
|
-
{
|
|
32
|
+
.hoverEffect:hover.primaryLight.bgHover, .hoverEffect:focus.primaryLight.bgHover {
|
|
49
33
|
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
50
34
|
}
|
|
51
35
|
.primaryFilled {
|
|
52
36
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
53
37
|
}
|
|
54
|
-
.hoverEffect:hover.primaryFilled, .primaryFilled.active {
|
|
38
|
+
.hoverEffect:hover.primaryFilled, .hoverEffect:focus.primaryFilled, .primaryFilled.active {
|
|
55
39
|
background-color: var(--zdt_rippleeffect_primaryfilled_bg);
|
|
56
40
|
}
|
|
57
|
-
.hoverEffect:hover.green.bgHover
|
|
58
|
-
/* .hoverEffect:focus.green.bgHover */
|
|
59
|
-
{
|
|
41
|
+
.hoverEffect:hover.green.bgHover, .hoverEffect:focus.green.bgHover {
|
|
60
42
|
background-color: var(--zdt_rippleeffect_green_bg);
|
|
61
43
|
}
|
|
62
|
-
.default.active, .hoverEffect:hover.default.active, .primaryLight.active, .primaryDark.active {
|
|
44
|
+
.default.active, .hoverEffect:hover.default.active, .hoverEffect:focus.default.active, .primaryLight.active, .primaryDark.active {
|
|
63
45
|
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
64
46
|
}
|
|
65
|
-
.default.active.border, .hoverEffect:hover.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
|
|
47
|
+
.default.active.border, .hoverEffect:hover.default.active.border, .hoverEffect:focus.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
|
|
66
48
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
67
49
|
}
|
|
68
50
|
.green.active {
|
|
@@ -74,17 +56,13 @@
|
|
|
74
56
|
.primary.active {
|
|
75
57
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
76
58
|
}
|
|
77
|
-
.danger.defaultHover, .hoverEffect:hover.danger.borderHover
|
|
78
|
-
/* .hoverEffect:focus.danger.borderHover */
|
|
79
|
-
{
|
|
59
|
+
.danger.defaultHover, .hoverEffect:hover.danger.borderHover, .hoverEffect:focus.danger.borderHover {
|
|
80
60
|
border-color: var(--zdt_rippleeffect_danger_border);
|
|
81
61
|
}
|
|
82
|
-
.hoverEffect:hover.danger.bgHover, .danger.active {
|
|
62
|
+
.hoverEffect:hover.danger.bgHover, .hoverEffect:focus.danger.bgHover, .danger.active {
|
|
83
63
|
background-color: var(--zdt_rippleeffect_danger_bg);
|
|
84
64
|
}
|
|
85
|
-
.hoverEffect:hover.primaryDark.bgHover
|
|
86
|
-
/* .hoverEffect:focus.primaryDark.bgHover */
|
|
87
|
-
{
|
|
65
|
+
.hoverEffect:hover.primaryDark.bgHover, .hoverEffect:focus.primaryDark.bgHover {
|
|
88
66
|
background-color: var(--zdt_rippleeffect_primary_dark_bg);
|
|
89
67
|
}
|
|
90
68
|
.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 || 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
|
|
34
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : 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,6 +13,8 @@ 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
|
+
|
|
16
18
|
var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon/TextBoxIcon"));
|
|
17
19
|
|
|
18
20
|
var _TextBox = _interopRequireDefault(require("../TextBox/TextBox"));
|
|
@@ -31,10 +33,6 @@ var _Layout = require("../Layout");
|
|
|
31
33
|
|
|
32
34
|
var _IdProvider = require("../Provider/IdProvider");
|
|
33
35
|
|
|
34
|
-
var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
|
|
35
|
-
|
|
36
|
-
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
37
|
-
|
|
38
36
|
var _SelectModule = _interopRequireDefault(require("./Select.module.css"));
|
|
39
37
|
|
|
40
38
|
var _dropDownUtils = require("../utils/dropDownUtils");
|
|
@@ -67,7 +65,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
67
65
|
|
|
68
66
|
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); }
|
|
69
67
|
|
|
70
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
68
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
71
69
|
|
|
72
70
|
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); }; }
|
|
73
71
|
|
|
@@ -77,7 +75,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
77
75
|
|
|
78
76
|
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; } }
|
|
79
77
|
|
|
80
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
78
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
81
79
|
|
|
82
80
|
/* eslint-disable react/no-unused-prop-types */
|
|
83
81
|
|
|
@@ -194,7 +192,7 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
194
192
|
}
|
|
195
193
|
|
|
196
194
|
if (selectedOption !== prevProps.selectedOption) {
|
|
197
|
-
var _this$handleGetSelect2 = this.handleGetSelectedId(this.props,
|
|
195
|
+
var _this$handleGetSelect2 = this.handleGetSelectedId(this.props, allOptionIds),
|
|
198
196
|
_selectedId = _this$handleGetSelect2.selectedId,
|
|
199
197
|
_hoverIndex = _this$handleGetSelect2.hoverIndex;
|
|
200
198
|
|
|
@@ -603,16 +601,6 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
603
601
|
var searchStr = this.state.searchStr;
|
|
604
602
|
isNextOptions && getNextOptions && this.handleFetchOptions(getNextOptions, searchStr);
|
|
605
603
|
}
|
|
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
|
-
}
|
|
616
604
|
}, {
|
|
617
605
|
key: "render",
|
|
618
606
|
value: function render() {
|
|
@@ -672,9 +660,9 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
672
660
|
suggestionGroups = _this$handleFilterSug4.suggestionGroups,
|
|
673
661
|
suggestionOptionIds = _this$handleFilterSug4.suggestionOptionIds;
|
|
674
662
|
|
|
675
|
-
var
|
|
676
|
-
|
|
677
|
-
selected =
|
|
663
|
+
var _ref2 = normalizedFormatOptions[selectedId] || {},
|
|
664
|
+
_ref2$value = _ref2.value,
|
|
665
|
+
selected = _ref2$value === void 0 ? '' : _ref2$value;
|
|
678
666
|
|
|
679
667
|
var setAriaId = this.getNextAriaId();
|
|
680
668
|
var ariaErrorId = this.getNextAriaId();
|
|
@@ -753,89 +741,78 @@ var GroupSelectComponent = /*#__PURE__*/function (_PureComponent) {
|
|
|
753
741
|
},
|
|
754
742
|
autoComplete: false,
|
|
755
743
|
isFocus: isPopupReady
|
|
756
|
-
}))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
744
|
+
}))), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
745
|
+
animationStyle: animationStyle,
|
|
746
|
+
boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
|
|
747
|
+
getRef: getContainerRef,
|
|
748
|
+
isActive: isPopupReady,
|
|
749
|
+
isAnimate: true,
|
|
750
|
+
isArrow: false,
|
|
751
|
+
onClick: removeClose,
|
|
752
|
+
needResponsive: needResponsive,
|
|
753
|
+
isPadding: false
|
|
754
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
755
|
+
customClass: _SelectModule["default"].box,
|
|
756
|
+
onScroll: this.handleScroll
|
|
757
|
+
}, needSearch ? /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
758
|
+
className: "".concat(_SelectModule["default"].search, " ").concat(_SelectModule["default"][size])
|
|
759
|
+
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
760
|
+
inputRef: this.searchInputRef,
|
|
761
|
+
maxLength: maxLength,
|
|
762
|
+
onChange: this.handleSearch,
|
|
763
|
+
onKeyDown: this.handleKeyDown,
|
|
764
|
+
placeHolder: searchBoxPlaceHolder,
|
|
765
|
+
size: searchBoxSize,
|
|
766
|
+
value: searchStr,
|
|
767
|
+
onClear: this.handleClearSearch,
|
|
768
|
+
a11y: {
|
|
769
|
+
ariaControls: setAriaId,
|
|
770
|
+
ariaAutocomplete: 'list',
|
|
771
|
+
ariaDescribedby: ariaErrorId
|
|
772
|
+
},
|
|
773
|
+
autoComplete: false
|
|
774
|
+
}))) : null, /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
775
|
+
customClass: dropBoxSize ? _SelectModule["default"][dropBoxSize] : '',
|
|
776
|
+
eleRef: this.suggestionContainerRef
|
|
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,
|
|
789
802
|
a11y: {
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
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);
|
|
803
|
+
ariaParentRole: 'listbox',
|
|
804
|
+
role: 'option'
|
|
805
|
+
}
|
|
806
|
+
}));
|
|
807
|
+
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
808
|
+
options: revampedGroups,
|
|
809
|
+
searchString: searchStr,
|
|
810
|
+
suggestions: suggestionGroups,
|
|
811
|
+
dataId: dataIdSrchEmptyMsg,
|
|
812
|
+
isLoading: isFetchingOptions,
|
|
813
|
+
i18nKeys: i18nKeys,
|
|
814
|
+
htmlId: ariaErrorId
|
|
815
|
+
})), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)) : null);
|
|
839
816
|
}
|
|
840
817
|
}]);
|
|
841
818
|
|