@zohodesk/components 1.0.0-temp-214 → 1.0.0-temp-215
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/.cli/propValidation_report.html +1 -1
- package/README.md +16 -0
- package/es/Accordion/Accordion.js +2 -2
- package/es/Accordion/AccordionItem.js +4 -4
- package/es/Accordion/__tests__/Accordion.spec.js +1 -1
- package/es/Accordion/__tests__/AccordionItem.spec.js +1 -1
- package/es/Accordion/index.js +2 -2
- package/es/Animation/Animation.js +3 -3
- package/es/Animation/__tests__/Animation.spec.js +1 -1
- package/es/Animation/utils.js +1 -1
- package/es/AppContainer/AppContainer.js +9 -9
- package/es/AppContainer/__tests__/AppContainer.spec.js +1 -1
- package/es/Avatar/Avatar.js +5 -5
- package/es/Avatar/__tests__/Avatar.spec.js +1 -1
- package/es/AvatarTeam/AvatarTeam.js +4 -4
- package/es/AvatarTeam/__tests__/AvatarTeam.spec.js +1 -1
- package/es/Button/Button.js +4 -4
- package/es/Button/__tests__/Button.spec.js +1 -1
- package/es/Button/index.js +2 -2
- package/es/Button/props/defaultProps.js +1 -1
- package/es/Buttongroup/Buttongroup.js +3 -3
- package/es/Buttongroup/__tests__/Buttongroup.spec.js +1 -1
- package/es/Card/Card.js +5 -5
- package/es/Card/__tests__/Card.spec.js +1 -1
- package/es/Card/index.js +4 -4
- package/es/CheckBox/CheckBox.js +12 -11
- package/es/CheckBox/CheckBox.module.css +5 -2
- package/es/CheckBox/__tests__/CheckBox.spec.js +1 -1
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +64 -64
- package/es/DateTime/CalendarView.js +6 -6
- package/es/DateTime/DateTime.js +23 -19
- package/es/DateTime/DateTimePopupFooter.js +5 -5
- package/es/DateTime/DateTimePopupHeader.js +4 -4
- package/es/DateTime/DateWidget.js +25 -18
- package/es/DateTime/DaysRow.js +3 -3
- package/es/DateTime/Time.js +5 -5
- package/es/DateTime/YearView.js +6 -6
- package/es/DateTime/__tests__/CalendarView.spec.js +1 -1
- package/es/DateTime/__tests__/DateTime.spec.js +1 -1
- package/es/DateTime/__tests__/DateTimePopupFooter.spec.js +1 -1
- package/es/DateTime/__tests__/DateTimePopupHeader.spec.js +1 -1
- package/es/DateTime/__tests__/DateWidget.spec.js +1 -1
- package/es/DateTime/__tests__/DaysRow.spec.js +1 -1
- package/es/DateTime/__tests__/Time.spec.js +1 -1
- package/es/DateTime/__tests__/YearView.spec.js +1 -1
- package/es/DateTime/dateFormatUtils/dateFormat.js +4 -4
- package/es/DateTime/dateFormatUtils/dayChange.js +2 -2
- package/es/DateTime/dateFormatUtils/index.js +3 -3
- package/es/DateTime/dateFormatUtils/monthChange.js +2 -2
- package/es/DateTime/dateFormatUtils/timeChange.js +2 -2
- package/es/DateTime/dateFormatUtils/yearChange.js +2 -2
- package/es/DateTime/index.js +1 -1
- package/es/DateTime/props/propTypes.js +6 -1
- package/es/DateTime/validator.js +2 -2
- package/es/DropBox/DropBox.js +9 -9
- package/es/DropBox/DropBoxElement/DropBoxElement.js +7 -6
- package/es/DropBox/DropBoxElement/__tests__/DropBoxElement.spec.js +1 -1
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +53 -48
- package/es/DropBox/DropBoxElement/css/cssJSLogic.js +5 -5
- package/es/DropBox/DropBoxElement/useDropboxPosCalc.js +1 -1
- package/es/DropBox/__tests__/DropBox.spec.js +1 -1
- package/es/DropBox/css/cssJSLogic.js +1 -1
- package/es/DropBox/props/defaultProps.js +1 -1
- package/es/DropBox/props/propTypes.js +1 -1
- package/es/DropBox/utils/isMobilePopover.js +1 -1
- package/es/DropDown/DropDown.js +4 -4
- package/es/DropDown/DropDownHeading.js +3 -3
- package/es/DropDown/DropDownItem.js +3 -3
- package/es/DropDown/DropDownSearch.js +4 -4
- package/es/DropDown/DropDownSeparator.js +2 -2
- package/es/DropDown/__tests__/DropDown.spec.js +1 -1
- package/es/DropDown/__tests__/DropDownHeading.spec.js +1 -1
- package/es/DropDown/__tests__/DropDownItem.spec.js +1 -1
- package/es/DropDown/__tests__/DropDownSearch.spec.js +1 -1
- package/es/DropDown/__tests__/DropDownSeparator.spec.js +1 -1
- package/es/DropDown/index.js +7 -7
- package/es/DropDown/props/propTypes.js +1 -1
- package/es/Heading/Heading.js +4 -4
- package/es/Heading/__tests__/Heading.spec.js +1 -1
- package/es/Label/Label.js +4 -4
- package/es/Label/__tests__/Label.spec.js +1 -1
- package/es/Layout/Box.js +4 -4
- package/es/Layout/Container.js +4 -4
- package/es/Layout/__tests__/Box.spec.js +1 -1
- package/es/Layout/__tests__/Container.spec.js +1 -1
- package/es/Layout/index.js +2 -2
- package/es/ListItem/ListContainer.js +6 -6
- package/es/ListItem/ListItem.js +5 -5
- package/es/ListItem/ListItemWithAvatar.js +10 -14
- package/es/ListItem/ListItemWithCheckBox.js +6 -6
- package/es/ListItem/ListItemWithIcon.js +5 -5
- package/es/ListItem/ListItemWithRadio.js +6 -6
- package/es/ListItem/__tests__/ListContainer.spec.js +1 -1
- package/es/ListItem/__tests__/ListItem.spec.js +1 -1
- package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +1 -1
- package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +1 -1
- package/es/ListItem/__tests__/ListItemWithIcon.spec.js +1 -1
- package/es/ListItem/__tests__/ListItemWithRadio.spec.js +1 -1
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +1 -1
- package/es/ListItem/index.js +6 -6
- package/es/ListItem/props/propTypes.js +1 -4
- package/es/Modal/Modal.js +3 -3
- package/es/Modal/__tests__/Modal.spec.js +1 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +21 -19
- package/es/MultiSelect/AdvancedMultiSelect.js +21 -19
- package/es/MultiSelect/EmptyState.js +3 -3
- package/es/MultiSelect/MobileHeader/MobileHeader.js +5 -5
- package/es/MultiSelect/MobileHeader/__tests__/MobileHeader.spec.js +1 -1
- package/es/MultiSelect/MultiSelect.js +24 -22
- package/es/MultiSelect/MultiSelectHeader.js +4 -4
- package/es/MultiSelect/MultiSelectWithAvatar.js +16 -16
- package/es/MultiSelect/SelectedOptions.js +5 -5
- package/es/MultiSelect/Suggestions.js +6 -6
- package/es/MultiSelect/__tests__/AdvancedGroupMultiSelect.spec.js +1 -1
- package/es/MultiSelect/__tests__/AdvancedMultiSelect.spec.js +1 -1
- package/es/MultiSelect/__tests__/EmptyState.spec.js +1 -1
- package/es/MultiSelect/__tests__/MultiSelect.spec.js +1 -1
- package/es/MultiSelect/__tests__/MultiSelectHeader.spec.js +1 -1
- package/es/MultiSelect/__tests__/MultiSelectWithAvatar.spec.js +1 -1
- package/es/MultiSelect/__tests__/SelectedOptions.spec.js +1 -1
- package/es/MultiSelect/__tests__/Suggestions.spec.js +1 -1
- package/es/MultiSelect/index.js +4 -4
- package/es/MultiSelect/props/defaultProps.js +1 -1
- package/es/MultiSelect/props/propTypes.js +6 -3
- package/es/PopOver/PopOver.js +6 -6
- package/es/PopOver/__tests__/PopOver.spec.js +1 -1
- package/es/PopOver/index.js +3 -3
- package/es/Popup/Popup.js +150 -31
- package/es/Popup/props/propTypes.js +1 -1
- package/es/Provider/AvatarSize.js +1 -1
- package/es/Provider/CssProvider.js +1 -1
- package/es/Provider/IdProvider.js +2 -2
- package/es/Provider/LibraryContext.js +2 -2
- package/es/Provider/ZindexProvider.js +2 -2
- package/es/Provider/index.js +4 -4
- package/es/Radio/Radio.js +14 -12
- package/es/Radio/Radio.module.css +1 -1
- package/es/Radio/__tests__/Radio.spec.js +1 -1
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +77 -77
- package/es/Responsive/CustomResponsive.js +7 -7
- package/es/Responsive/ResizeComponent.js +2 -2
- package/es/Responsive/Responsive.js +6 -6
- package/es/Responsive/index.js +3 -3
- package/es/Responsive/utils/index.js +1 -1
- package/es/Responsive/windowResizeObserver.js +1 -1
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
- package/es/ResponsiveDropBox/__tests__/ResponsiveDropBox.spec.js +1 -1
- package/es/ResponsiveDropBox/props/propTypes.js +1 -1
- package/es/Ribbon/Ribbon.js +3 -3
- package/es/Ribbon/__tests__/Ribbon.spec.js +1 -1
- package/es/RippleEffect/RippleEffect.js +4 -4
- package/es/RippleEffect/__tests__/RippleEffect.spec.js +1 -1
- package/es/Select/GroupSelect.js +26 -19
- package/es/Select/Select.js +15 -15
- package/es/Select/SelectWithAvatar.js +17 -17
- package/es/Select/SelectWithIcon.js +13 -13
- package/es/Select/__tests__/GroupSelect.spec.js +1 -1
- package/es/Select/__tests__/Select.spec.js +1 -1
- package/es/Select/__tests__/SelectWithAvatar.spec.js +1 -1
- package/es/Select/__tests__/SelectWithIcon.spec.js +1 -1
- package/es/Select/index.js +4 -4
- package/es/Select/props/defaultProps.js +3 -2
- package/es/Select/props/propTypes.js +5 -1
- package/es/Stencils/Stencils.js +3 -3
- package/es/Stencils/__tests__/Stencils.spec.js +1 -1
- package/es/Switch/Switch.js +5 -5
- package/es/Switch/__tests__/Switch.spec.js +1 -1
- package/es/Tab/Tab.js +5 -5
- package/es/Tab/TabContent.js +4 -4
- package/es/Tab/TabContentWrapper.js +3 -3
- package/es/Tab/TabWrapper.js +3 -3
- package/es/Tab/Tabs.js +13 -13
- package/es/Tab/__tests__/Tab.spec.js +1 -1
- package/es/Tab/__tests__/TabContent.spec.js +1 -1
- package/es/Tab/__tests__/TabContentWrapper.spec.js +1 -1
- package/es/Tab/__tests__/TabWrapper.spec.js +1 -1
- package/es/Tab/__tests__/Tabs.spec.js +1 -1
- package/es/Tab/index.js +5 -5
- package/es/Tag/Tag.js +7 -7
- package/es/Tag/__tests__/Tag.spec.js +1 -1
- package/es/TextBox/TextBox.js +3 -3
- package/es/TextBox/__tests__/TextBox.spec.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.js +6 -6
- package/es/TextBoxIcon/__tests__/TextBoxIcon.spec.js +1 -1
- package/es/TextBoxIcon/props/propTypes.js +1 -1
- package/es/Textarea/Textarea.js +7 -5
- package/es/Textarea/Textarea.module.css +1 -1
- package/es/Textarea/__tests__/Textarea.spec.js +1 -1
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +41 -41
- package/es/Textarea/props/propTypes.js +2 -1
- package/es/Tooltip/Tooltip.js +6 -6
- package/es/Typography/Typography.js +38 -0
- package/es/Typography/css/Typography.module.css +489 -0
- package/es/Typography/css/cssJSLogic.js +56 -0
- package/es/Typography/props/defaultProps.js +8 -0
- package/es/Typography/props/propTypes.js +27 -0
- package/es/Typography/utils/index.js +50 -0
- package/es/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/es/VelocityAnimation/VelocityAnimation/__tests__/VelocityAnimation.spec.js +1 -1
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/es/VelocityAnimation/VelocityAnimationGroup/__tests__/VelocityAnimationGroup.spec.js +1 -1
- package/es/VelocityAnimation/index.js +2 -2
- package/es/css.js +37 -37
- package/es/deprecated/PortalLayer/PortalLayer.js +3 -3
- package/es/index.js +39 -39
- package/es/semantic/Button/Button.js +3 -3
- package/es/semantic/Button/__tests__/Button.spec.js +1 -1
- package/es/semantic/index.js +1 -1
- package/es/utils/Common.js +1 -1
- package/es/utils/ContextOptimizer.js +1 -1
- package/es/utils/cssUtils.js +1 -1
- package/es/utils/datetime/common.js +1 -1
- package/es/utils/dropDownUtils.js +1 -1
- package/es/utils/index.js +1 -1
- package/es/v1/Accordion/Accordion.js +2 -2
- package/es/v1/Accordion/AccordionItem.js +4 -4
- package/es/v1/Accordion/index.js +2 -2
- package/es/v1/Animation/Animation.js +3 -3
- package/es/v1/Animation/utils.js +1 -1
- package/es/v1/AppContainer/AppContainer.js +8 -8
- package/es/v1/Avatar/Avatar.js +5 -5
- package/es/v1/AvatarTeam/AvatarTeam.js +4 -4
- package/es/v1/Button/Button.js +4 -4
- package/es/v1/Button/props/defaultProps.js +1 -1
- package/es/v1/Buttongroup/Buttongroup.js +3 -3
- package/es/v1/Card/Card.js +5 -5
- package/es/v1/Card/index.js +4 -4
- package/es/v1/CheckBox/CheckBox.js +6 -6
- package/es/v1/DateTime/CalendarView.js +7 -7
- package/es/v1/DateTime/DateTime.js +15 -15
- package/es/v1/DateTime/DateTimePopupFooter.js +5 -5
- package/es/v1/DateTime/DateTimePopupHeader.js +4 -4
- package/es/v1/DateTime/DateWidget.js +17 -17
- package/es/v1/DateTime/DaysRow.js +3 -3
- package/es/v1/DateTime/Time.js +5 -5
- package/es/v1/DateTime/YearView.js +6 -6
- package/es/v1/DateTime/index.js +1 -1
- package/es/v1/DateTime/props/propTypes.js +1 -1
- package/es/v1/DropBox/DropBox.js +9 -9
- package/es/v1/DropBox/DropBoxElement/DropBoxElement.js +6 -6
- package/es/v1/DropBox/props/defaultProps.js +1 -1
- package/es/v1/DropBox/props/propTypes.js +1 -1
- package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
- package/es/v1/DropDown/DropDown.js +4 -4
- package/es/v1/DropDown/DropDownHeading.js +3 -3
- package/es/v1/DropDown/DropDownItem.js +3 -3
- package/es/v1/DropDown/DropDownSearch.js +4 -4
- package/es/v1/DropDown/DropDownSeparator.js +2 -2
- package/es/v1/DropDown/props/propTypes.js +1 -1
- package/es/v1/Heading/Heading.js +4 -4
- package/es/v1/Label/Label.js +4 -4
- package/es/v1/Layout/Box.js +4 -4
- package/es/v1/Layout/Container.js +4 -4
- package/es/v1/Layout/index.js +2 -2
- package/es/v1/ListItem/ListContainer.js +6 -6
- package/es/v1/ListItem/ListItem.js +5 -5
- package/es/v1/ListItem/ListItemWithAvatar.js +7 -7
- package/es/v1/ListItem/ListItemWithCheckBox.js +6 -6
- package/es/v1/ListItem/ListItemWithIcon.js +5 -5
- package/es/v1/ListItem/ListItemWithRadio.js +6 -6
- package/es/v1/ListItem/index.js +6 -6
- package/es/v1/Modal/Modal.js +3 -3
- package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +17 -17
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +17 -17
- package/es/v1/MultiSelect/EmptyState.js +3 -3
- package/es/v1/MultiSelect/MobileHeader/MobileHeader.js +5 -5
- package/es/v1/MultiSelect/MultiSelect.js +19 -19
- package/es/v1/MultiSelect/MultiSelectHeader.js +4 -4
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +16 -16
- package/es/v1/MultiSelect/SelectedOptions.js +5 -5
- package/es/v1/MultiSelect/Suggestions.js +6 -6
- package/es/v1/MultiSelect/index.js +4 -4
- package/es/v1/MultiSelect/props/defaultProps.js +1 -1
- package/es/v1/PopOver/PopOver.js +6 -6
- package/es/v1/Popup/Popup.js +3 -3
- package/es/v1/Radio/Radio.js +5 -5
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +6 -6
- package/es/v1/ResponsiveDropBox/props/propTypes.js +1 -1
- package/es/v1/Ribbon/Ribbon.js +3 -3
- package/es/v1/RippleEffect/RippleEffect.js +4 -4
- package/es/v1/Select/GroupSelect.js +16 -16
- package/es/v1/Select/Select.js +15 -15
- package/es/v1/Select/SelectWithAvatar.js +17 -17
- package/es/v1/Select/SelectWithIcon.js +13 -13
- package/es/v1/Select/index.js +4 -4
- package/es/v1/Select/props/defaultProps.js +1 -1
- package/es/v1/Stencils/Stencils.js +3 -3
- package/es/v1/Switch/Switch.js +5 -5
- package/es/v1/Tab/Tab.js +5 -5
- package/es/v1/Tab/TabContent.js +4 -4
- package/es/v1/Tab/TabContentWrapper.js +3 -3
- package/es/v1/Tab/TabWrapper.js +3 -3
- package/es/v1/Tab/Tabs.js +13 -13
- package/es/v1/Tab/index.js +5 -5
- package/es/v1/Tag/Tag.js +7 -7
- package/es/v1/TextBox/TextBox.js +3 -3
- package/es/v1/TextBoxIcon/TextBoxIcon.js +6 -6
- package/es/v1/TextBoxIcon/props/propTypes.js +1 -1
- package/es/v1/Textarea/Textarea.js +3 -3
- package/es/v1/Tooltip/Tooltip.js +6 -6
- package/es/v1/Typography/Typography.js +4 -4
- package/es/v1/Typography/css/cssJSLogic.js +1 -1
- package/es/v1/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -3
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/es/v1/semantic/Button/Button.js +3 -3
- package/es/v1/semantic/index.js +1 -1
- package/lib/CheckBox/CheckBox.js +5 -4
- package/lib/CheckBox/CheckBox.module.css +5 -2
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +64 -64
- package/lib/DateTime/DateTime.js +11 -5
- package/lib/DateTime/DateWidget.js +8 -1
- package/lib/DateTime/props/propTypes.js +5 -0
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +1 -0
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +53 -48
- package/lib/DropBox/DropBoxElement/css/cssJSLogic.js +2 -2
- package/lib/ListItem/ListItemWithAvatar.js +4 -8
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +1 -1
- package/lib/ListItem/props/propTypes.js +1 -4
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +4 -2
- package/lib/MultiSelect/AdvancedMultiSelect.js +4 -2
- package/lib/MultiSelect/MultiSelect.js +4 -2
- package/lib/MultiSelect/props/propTypes.js +8 -6
- package/lib/Popup/Popup.js +184 -64
- package/lib/Popup/props/propTypes.js +1 -1
- package/lib/Radio/Radio.js +10 -7
- package/lib/Radio/Radio.module.css +1 -1
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +77 -77
- package/lib/Select/GroupSelect.js +12 -5
- package/lib/Select/props/defaultProps.js +2 -1
- package/lib/Select/props/propTypes.js +5 -1
- package/lib/Textarea/Textarea.js +4 -2
- package/lib/Textarea/Textarea.module.css +1 -1
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +41 -41
- package/lib/Textarea/props/propTypes.js +2 -1
- package/lib/Typography/Typography.js +56 -0
- package/lib/Typography/css/Typography.module.css +489 -0
- package/lib/Typography/css/cssJSLogic.js +48 -0
- package/lib/Typography/props/defaultProps.js +15 -0
- package/lib/Typography/props/propTypes.js +38 -0
- package/lib/Typography/utils/index.js +59 -0
- package/lib/index.js +1 -1
- package/lib/v1/Typography/Typography.js +2 -2
- package/package.json +4 -4
- package/result.json +1 -1
- /package/es/v1/Typography/css/{Typography.module.css → v1_Typography.module.css} +0 -0
- /package/lib/v1/Typography/css/{Typography.module.css → v1_Typography.module.css} +0 -0
|
@@ -73,19 +73,19 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/* shadow */
|
|
76
|
-
.
|
|
76
|
+
[data-boxdirection="top"].shadow {
|
|
77
77
|
--dropbox_box_shadow: var(--zd_bs_dropbox_top);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.
|
|
80
|
+
[data-boxdirection="left"].shadow {
|
|
81
81
|
--dropbox_box_shadow: var(--zd_bs_dropbox_left);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.
|
|
84
|
+
[data-boxdirection="right"].shadow {
|
|
85
85
|
--dropbox_box_shadow: var(--zd_bs_dropbox_right);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
.
|
|
88
|
+
[data-boxdirection="bottom"].shadow {
|
|
89
89
|
--dropbox_box_shadow: var(--zd_bs_dropbox_bottom);
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -158,37 +158,37 @@
|
|
|
158
158
|
transform: translateY(-50%);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
/* space for arrow */
|
|
162
|
-
.
|
|
161
|
+
/* space for arrow using data-boxdirection attribute*/
|
|
162
|
+
[data-boxdirection="top"].arrow {
|
|
163
163
|
padding-bottom: var(--zd_size10) ;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
.
|
|
166
|
+
[data-boxdirection="right"].arrow {
|
|
167
167
|
padding-left: var(--zd_size10) ;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
.
|
|
170
|
+
[data-boxdirection="left"].arrow {
|
|
171
171
|
padding-right: var(--zd_size10) ;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
.
|
|
174
|
+
[data-boxdirection="bottom"].arrow {
|
|
175
175
|
padding-top: var(--zd_size10) ;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
/* space from target */
|
|
179
|
-
.
|
|
178
|
+
/* space from target using data-boxdirection attribute*/
|
|
179
|
+
[data-boxdirection="top"].paddingSpace {
|
|
180
180
|
padding-bottom: var(--zd_size5) ;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
.
|
|
183
|
+
[data-boxdirection="right"].paddingSpace {
|
|
184
184
|
padding-left: var(--zd_size5) ;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
.
|
|
187
|
+
[data-boxdirection="left"].paddingSpace {
|
|
188
188
|
padding-right: var(--zd_size5) ;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
.
|
|
191
|
+
[data-boxdirection="bottom"].paddingSpace {
|
|
192
192
|
padding-top: var(--zd_size5) ;
|
|
193
193
|
}
|
|
194
194
|
|
|
@@ -219,101 +219,102 @@
|
|
|
219
219
|
composes: arrow;
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
[data-boxdirection="top"].boxDirection.start,
|
|
223
|
+
[data-boxdirection="top"].boxDirection.end,
|
|
224
|
+
[data-boxdirection="top"].boxDirection.mid {
|
|
225
225
|
bottom: calc( var(--zd_size17) * -1 ) ;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
|
|
228
|
+
[data-boxdirection="top"].boxDirection.start {
|
|
229
229
|
left: var(--zd_size28) ;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
[data-boxdirection="top"].boxDirection.end {
|
|
233
233
|
right: var(--zd_size28) ;
|
|
234
234
|
transform: rotate(180deg) translateX(-50%);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
|
|
237
|
+
[data-boxdirection="top"].boxDirection.mid {
|
|
238
238
|
left: 50% ;
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
[data-boxdirection="top"].boxDirection.start,
|
|
242
|
+
[data-boxdirection="top"].boxDirection.mid {
|
|
243
243
|
transform: rotate(180deg) translateX(50%);
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
246
|
+
[data-boxdirection="bottom"].boxDirection.start,
|
|
247
|
+
[data-boxdirection="bottom"].boxDirection.end,
|
|
248
|
+
[data-boxdirection="bottom"].boxDirection.mid {
|
|
249
249
|
top: calc( var(--zd_size17) * -1 ) ;
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
|
|
252
|
+
[data-boxdirection="bottom"].boxDirection.start {
|
|
253
253
|
left: var(--zd_size28) ;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
|
|
256
|
+
[data-boxdirection="bottom"].boxDirection.mid {
|
|
257
257
|
left: 50% ;
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
[data-boxdirection="bottom"].boxDirection.end {
|
|
261
261
|
right: var(--zd_size28) ;
|
|
262
262
|
transform: translateX(50%);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
|
|
266
|
-
|
|
265
|
+
[data-boxdirection="bottom"].boxDirection.mid,
|
|
266
|
+
[data-boxdirection="bottom"].boxDirection.start {
|
|
267
267
|
transform: translateX(-50%);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
270
|
+
[data-boxdirection="left"].boxDirection.start,
|
|
271
|
+
[data-boxdirection="left"].boxDirection.mid,
|
|
272
|
+
[data-boxdirection="left"].boxDirection.end {
|
|
273
273
|
right: calc( var(--zd_size17) * -1 ) ;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
|
|
276
|
+
[data-boxdirection="left"].boxDirection.start {
|
|
277
277
|
top: var(--zd_size28) ;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
[data-boxdirection="left"].boxDirection.end {
|
|
281
281
|
transform: rotate(90deg) translateX(50%);
|
|
282
282
|
bottom: var(--zd_size28) ;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
|
|
285
|
+
[data-boxdirection="left"].boxDirection.mid {
|
|
286
286
|
top: 50% ;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
[data-boxdirection="left"].boxDirection.start,
|
|
290
|
+
[data-boxdirection="left"].boxDirection.mid {
|
|
291
291
|
transform: rotate(90deg) translateX(-50%);
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
[data-boxdirection="right"].boxDirection.start,
|
|
295
|
+
[data-boxdirection="right"].boxDirection.mid,
|
|
296
|
+
[data-boxdirection="right"].boxDirection.end {
|
|
297
297
|
left: calc( var(--zd_size17) * -1 ) ;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
[data-boxdirection="right"].boxDirection.start {
|
|
301
301
|
top: var(--zd_size28) ;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
[data-boxdirection="right"].boxDirection.mid {
|
|
305
305
|
top: 50% ;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
[data-boxdirection="right"].boxDirection.start,
|
|
309
|
+
[data-boxdirection="right"].boxDirection.mid {
|
|
310
310
|
transform: rotate(-90deg) translateX(50%);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
|
|
313
|
+
[data-boxdirection="right"].boxDirection.end {
|
|
314
314
|
bottom: var(--zd_size28) ;
|
|
315
315
|
transform: rotate(-90deg) translateX(-50%);
|
|
316
316
|
}
|
|
317
|
+
[data-visible="hidden"],
|
|
317
318
|
.hidden {
|
|
318
319
|
visibility: hidden;
|
|
319
320
|
opacity: 0;
|
|
@@ -321,7 +322,7 @@
|
|
|
321
322
|
pointer-events: none;
|
|
322
323
|
}
|
|
323
324
|
|
|
324
|
-
.hidden .subContainer {
|
|
325
|
+
[data-visible="hidden"] .subContainer, .hidden .subContainer {
|
|
325
326
|
box-shadow: none;
|
|
326
327
|
}
|
|
327
328
|
|
|
@@ -342,17 +343,21 @@
|
|
|
342
343
|
composes: animationBasic;
|
|
343
344
|
composes: fadeIn modeForward from '../../../common/animation.module.css';
|
|
344
345
|
}
|
|
346
|
+
|
|
345
347
|
.scaleIn {
|
|
346
348
|
composes: animationBasic;
|
|
347
349
|
composes: scaleIn from '../../../common/animation.module.css';
|
|
348
350
|
}
|
|
351
|
+
|
|
349
352
|
.bounce {
|
|
350
353
|
composes: animationBasic;
|
|
351
354
|
}
|
|
355
|
+
|
|
352
356
|
[dir=ltr] .bounce {
|
|
353
357
|
animation-name: animation;
|
|
354
358
|
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
|
|
355
359
|
}
|
|
360
|
+
|
|
356
361
|
[dir=rtl] .bounce {
|
|
357
362
|
animation-name: animation;
|
|
358
363
|
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
|
|
@@ -414,7 +419,7 @@
|
|
|
414
419
|
}
|
|
415
420
|
|
|
416
421
|
.closeBar {
|
|
417
|
-
|
|
422
|
+
/* Variable:Ignore */
|
|
418
423
|
height: 6px;
|
|
419
424
|
width: 20% ;
|
|
420
425
|
border-radius: 5px;
|
|
@@ -55,8 +55,8 @@ function cssJSLogic(_ref) {
|
|
|
55
55
|
customMobileDropBoxWrap = _customClass$customMo2 === void 0 ? '' : _customClass$customMo2;
|
|
56
56
|
var animationValue = animationStyle === 'default' ? 'fadeInScale' : animationStyle; // const {needBoxStyle,boxstyle} = useDropboxPosCalc(props)
|
|
57
57
|
|
|
58
|
-
var boxClassName = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.main, true), _defineProperty(_compileClassNames, style.hidden, !isActive), _defineProperty(_compileClassNames, style.responsive, !!isModel), _defineProperty(_compileClassNames, customMobileDropBoxWrap, !!isModel), _defineProperty(_compileClassNames, customDropBoxWrap, !isModel), _defineProperty(_compileClassNames, style.container, isAbsolute && !isModel), _defineProperty(_compileClassNames, style[boxPosition], isAbsolute && !isModel), _defineProperty(_compileClassNames, style.fixedContainer, !isAbsolute && !isModel), _defineProperty(_compileClassNames, style[size], size && !isModel), _defineProperty(_compileClassNames, style[boxDirection], !isModel && isActive && isArrow), _defineProperty(_compileClassNames, style["arrow"
|
|
59
|
-
var subContainerClass = (0, _utils.compileClassNames)((_compileClassNames2 = {}, _defineProperty(_compileClassNames2, style.subContainer, true), _defineProperty(_compileClassNames2, customMobileDropBox, !!isModel), _defineProperty(_compileClassNames2, style.mobRadius, !!isModel), _defineProperty(_compileClassNames2, style.slideUp, !!isModel && isActive), _defineProperty(_compileClassNames2, customDropBox, !isModel), _defineProperty(_compileClassNames2, style[""
|
|
58
|
+
var boxClassName = (0, _utils.compileClassNames)((_compileClassNames = {}, _defineProperty(_compileClassNames, style.main, true), _defineProperty(_compileClassNames, style.hidden, !isActive), _defineProperty(_compileClassNames, style.responsive, !!isModel), _defineProperty(_compileClassNames, customMobileDropBoxWrap, !!isModel), _defineProperty(_compileClassNames, customDropBoxWrap, !isModel), _defineProperty(_compileClassNames, style.container, isAbsolute && !isModel), _defineProperty(_compileClassNames, style[boxPosition], isAbsolute && !isModel), _defineProperty(_compileClassNames, style.fixedContainer, !isAbsolute && !isModel), _defineProperty(_compileClassNames, style[size], size && !isModel), _defineProperty(_compileClassNames, style["boxDirection"], !isModel && isActive && isArrow), _defineProperty(_compileClassNames, style["arrow"], !isModel && isActive && isArrow && isAbsolute), _defineProperty(_compileClassNames, style["paddingSpace"], !isModel && isActive && !isArrow && isPadding), _compileClassNames));
|
|
59
|
+
var subContainerClass = (0, _utils.compileClassNames)((_compileClassNames2 = {}, _defineProperty(_compileClassNames2, style.subContainer, true), _defineProperty(_compileClassNames2, customMobileDropBox, !!isModel), _defineProperty(_compileClassNames2, style.mobRadius, !!isModel), _defineProperty(_compileClassNames2, style.slideUp, !!isModel && isActive), _defineProperty(_compileClassNames2, customDropBox, !isModel), _defineProperty(_compileClassNames2, style["shadow"], !isModel), _defineProperty(_compileClassNames2, style.boxPadding, !isModel && isBoxPaddingNeed), _defineProperty(_compileClassNames2, style.radius, !isModel && isRadius), _defineProperty(_compileClassNames2, style[animationValue], !isModel && isAnimate && !isReducedMotion && isActive && !!animationStyle), _compileClassNames2));
|
|
60
60
|
var inlineStyle = !isModel ? isAbsolute ? needBoxStyle && boxstyle : positionsOffset && positionsOffset[boxPosition] || {} : {};
|
|
61
61
|
|
|
62
62
|
if (zIndexStyle) {
|
|
@@ -132,11 +132,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
132
132
|
var _customProps$ListItem = customProps.ListItemProps,
|
|
133
133
|
ListItemProps = _customProps$ListItem === void 0 ? {} : _customProps$ListItem,
|
|
134
134
|
_customProps$Containe = customProps.ContainerProps,
|
|
135
|
-
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe
|
|
136
|
-
_customProps$AvatarTe = customProps.AvatarTeamProps,
|
|
137
|
-
AvatarTeamProps = _customProps$AvatarTe === void 0 ? {} : _customProps$AvatarTe,
|
|
138
|
-
_customProps$AvatarPr = customProps.AvatarProps,
|
|
139
|
-
AvatarProps = _customProps$AvatarPr === void 0 ? {} : _customProps$AvatarPr;
|
|
135
|
+
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe;
|
|
140
136
|
var _customClass$customLi = customClass.customListItem,
|
|
141
137
|
customListItem = _customClass$customLi === void 0 ? '' : _customClass$customLi,
|
|
142
138
|
_customClass$customAv = customClass.customAvatar,
|
|
@@ -173,7 +169,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
173
169
|
customProps: ListItemProps
|
|
174
170
|
}, ContainerProps), name || imgSrc ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
175
171
|
className: _ListItemModule["default"].leftAvatar
|
|
176
|
-
}, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"],
|
|
172
|
+
}, isTeam ? /*#__PURE__*/_react["default"].createElement(_AvatarTeam["default"], {
|
|
177
173
|
name: name,
|
|
178
174
|
size: "small",
|
|
179
175
|
src: imgSrc,
|
|
@@ -184,7 +180,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
184
180
|
customAvatar: customAvatar,
|
|
185
181
|
customAvatarTeam: customAvatarTeam
|
|
186
182
|
}
|
|
187
|
-
}
|
|
183
|
+
}) : /*#__PURE__*/_react["default"].createElement(_Avatar["default"], {
|
|
188
184
|
name: name,
|
|
189
185
|
size: "small",
|
|
190
186
|
src: imgSrc,
|
|
@@ -193,7 +189,7 @@ var ListItemWithAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
193
189
|
needTitle: needAvatarTitle,
|
|
194
190
|
palette: isDarkPalette ? 'info' : avatarPalette,
|
|
195
191
|
customClass: customAvatar
|
|
196
|
-
}
|
|
192
|
+
})) : null, value ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
197
193
|
flexible: true,
|
|
198
194
|
shrink: true,
|
|
199
195
|
"data-title": isDisabled ? null : title,
|
|
@@ -21,7 +21,7 @@ exports[`ListItemWithCheckBox rendering the defult props 1`] = `
|
|
|
21
21
|
aria-checked="false"
|
|
22
22
|
aria-hidden="true"
|
|
23
23
|
class="container pointer primary
|
|
24
|
-
|
|
24
|
+
inflex rowdir vCenter"
|
|
25
25
|
data-id="checkBox"
|
|
26
26
|
data-selector-id="container"
|
|
27
27
|
data-test-id="checkBox"
|
|
@@ -29,7 +29,7 @@ exports[`ListItemWithCheckBox rendering the defult props 1`] = `
|
|
|
29
29
|
tabindex="-1"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
32
|
-
class="boxContainer medium filled
|
|
32
|
+
class="boxContainer medium filled shrinkOff"
|
|
33
33
|
data-id="boxComponent"
|
|
34
34
|
data-selector-id="box"
|
|
35
35
|
data-test-id="boxComponent"
|
|
@@ -30,7 +30,7 @@ exports[`ListItemWithRadio rendering the defult props 1`] = `
|
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
32
32
|
class="radio
|
|
33
|
-
hoverprimary medium filled centerPathprimary
|
|
33
|
+
hoverprimary medium filled centerPathprimary shrinkOff"
|
|
34
34
|
data-id="boxComponent"
|
|
35
35
|
data-selector-id="box"
|
|
36
36
|
data-test-id="boxComponent"
|
|
@@ -92,10 +92,7 @@ var ListItemWithAvatar_Props = (_ListItemWithAvatar_P = {
|
|
|
92
92
|
customAvatar: _propTypes["default"].string,
|
|
93
93
|
customAvatarTeam: _propTypes["default"].string
|
|
94
94
|
})), _defineProperty(_ListItemWithAvatar_P, "needMultiLineText", _propTypes["default"].bool), _defineProperty(_ListItemWithAvatar_P, "customProps", _propTypes["default"].shape({
|
|
95
|
-
ListItemProps: _propTypes["default"].object
|
|
96
|
-
ContainerProps: _propTypes["default"].object,
|
|
97
|
-
AvatarTeamProps: _propTypes["default"].object,
|
|
98
|
-
AvatarProps: _propTypes["default"].object
|
|
95
|
+
ListItemProps: _propTypes["default"].object
|
|
99
96
|
})), _ListItemWithAvatar_P);
|
|
100
97
|
exports.ListItemWithAvatar_Props = ListItemWithAvatar_Props;
|
|
101
98
|
var ListItemWithCheckBox_Props = {
|
|
@@ -965,7 +965,8 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
965
965
|
palette = _this$props8.palette,
|
|
966
966
|
needEffect = _this$props8.needEffect,
|
|
967
967
|
autoComplete = _this$props8.autoComplete,
|
|
968
|
-
getTargetRef = _this$props8.getTargetRef
|
|
968
|
+
getTargetRef = _this$props8.getTargetRef,
|
|
969
|
+
isFocus = _this$props8.isFocus;
|
|
969
970
|
var _i18nKeys = i18nKeys,
|
|
970
971
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
971
972
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -993,6 +994,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
993
994
|
var setAriaId = this.getNextAriaId();
|
|
994
995
|
var ariaErrorId = this.getNextAriaId();
|
|
995
996
|
var isShowClearIcon = !isReadOnly && !isDisabled && selectedGroupOptions.length > 1;
|
|
997
|
+
var isEditable = !(isReadOnly || isDisabled);
|
|
996
998
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
997
999
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
998
1000
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
@@ -1009,7 +1011,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1009
1011
|
}, children) : /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
1010
1012
|
align: "vertical",
|
|
1011
1013
|
alignBox: "row",
|
|
1012
|
-
className: "".concat(_MultiSelectModule["default"].container, " ").concat(_MultiSelectModule["default"][size], " ").concat(isActive && needBorder ? _MultiSelectModule["default"].active : '', " ").concat(needBorder ? _MultiSelectModule["default"].hasBorder : '', " ").concat(_MultiSelectModule["default"]["borderColor_".concat(borderColor)], " ").concat(customClass),
|
|
1014
|
+
className: "".concat(_MultiSelectModule["default"].container, " ").concat(_MultiSelectModule["default"][size], " ").concat(isActive && needBorder || isEditable && isFocus && needBorder ? _MultiSelectModule["default"].active : '', " ").concat(needBorder ? _MultiSelectModule["default"].hasBorder : '', " ").concat(_MultiSelectModule["default"]["borderColor_".concat(borderColor)], " ").concat(customClass),
|
|
1013
1015
|
eleRef: this.selectedOptionContainerRef,
|
|
1014
1016
|
wrap: "wrap"
|
|
1015
1017
|
}, /*#__PURE__*/_react["default"].createElement(_SelectedOptions["default"], {
|
|
@@ -440,7 +440,8 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
440
440
|
isAbsolutePositioningNeeded = _this$props5.isAbsolutePositioningNeeded,
|
|
441
441
|
positionsOffset = _this$props5.positionsOffset,
|
|
442
442
|
targetOffset = _this$props5.targetOffset,
|
|
443
|
-
isRestrictScroll = _this$props5.isRestrictScroll
|
|
443
|
+
isRestrictScroll = _this$props5.isRestrictScroll,
|
|
444
|
+
isFocus = _this$props5.isFocus;
|
|
444
445
|
var _customProps$Suggesti = customProps.SuggestionsProps,
|
|
445
446
|
SuggestionsProps = _customProps$Suggesti === void 0 ? {} : _customProps$Suggesti,
|
|
446
447
|
_customProps$DropBoxP = customProps.DropBoxProps,
|
|
@@ -479,6 +480,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
479
480
|
isShowClear = _this$getIsShowClearI.isShowClearIcon;
|
|
480
481
|
|
|
481
482
|
var isShowClearIcon = !isReadOnly && !isDisabled && isShowClear;
|
|
483
|
+
var isEditable = !(isReadOnly || isDisabled);
|
|
482
484
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
483
485
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(borderColor === 'transparent' ? _MultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : '', " ").concat(containerClass),
|
|
484
486
|
"data-id": dataIdMultiSelectComp,
|
|
@@ -489,7 +491,7 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
489
491
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
490
492
|
align: "vertical",
|
|
491
493
|
alignBox: "row",
|
|
492
|
-
className: "".concat(_MultiSelectModule["default"].container, " ").concat(_MultiSelectModule["default"][size], " ").concat(isActive && needBorder ? _MultiSelectModule["default"].active : '', " ").concat(needBorder ? _MultiSelectModule["default"].hasBorder : '', " ").concat(needBorder ? !isDisabled ? _MultiSelectModule["default"]["borderColor_".concat(borderColor)] : _MultiSelectModule["default"].borderColor_transparent : ''),
|
|
494
|
+
className: "".concat(_MultiSelectModule["default"].container, " ").concat(_MultiSelectModule["default"][size], " ").concat(isActive && needBorder || isEditable && isFocus && needBorder ? _MultiSelectModule["default"].active : '', " ").concat(needBorder ? _MultiSelectModule["default"].hasBorder : '', " ").concat(needBorder ? !isDisabled ? _MultiSelectModule["default"]["borderColor_".concat(borderColor)] : _MultiSelectModule["default"].borderColor_transparent : ''),
|
|
493
495
|
eleRef: this.selectedOptionContainerRef,
|
|
494
496
|
wrap: "wrap"
|
|
495
497
|
}, /*#__PURE__*/_react["default"].createElement(_SelectedOptions["default"], {
|
|
@@ -960,7 +960,8 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
960
960
|
setAriaId = _this$props14.setAriaId,
|
|
961
961
|
isPopupOpen = _this$props14.isPopupOpen,
|
|
962
962
|
ariaErrorId = _this$props14.ariaErrorId,
|
|
963
|
-
customProps = _this$props14.customProps
|
|
963
|
+
customProps = _this$props14.customProps,
|
|
964
|
+
isFocus = _this$props14.isFocus;
|
|
964
965
|
var _this$state8 = this.state,
|
|
965
966
|
isActive = _this$state8.isActive,
|
|
966
967
|
selectedOptions = _this$state8.selectedOptions,
|
|
@@ -979,12 +980,13 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
979
980
|
isShowClear = _this$getIsShowClearI.isShowClearIcon;
|
|
980
981
|
|
|
981
982
|
var isShowClearIcon = !isReadOnly && !isDisabled && !disableAction && isShowClear;
|
|
983
|
+
var isEditable = !(isReadOnly || isDisabled || disableAction);
|
|
982
984
|
var _customProps$TextBoxI = customProps.TextBoxIconProps,
|
|
983
985
|
TextBoxIconProps = _customProps$TextBoxI === void 0 ? {} : _customProps$TextBoxI;
|
|
984
986
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
985
987
|
align: "vertical",
|
|
986
988
|
alignBox: "row",
|
|
987
|
-
className: "".concat(_MultiSelectModule["default"].container, " ").concat(_MultiSelectModule["default"][size], " ").concat(needBorder ? !disableAction ? _MultiSelectModule["default"]["borderColor_".concat(borderColor)] : _MultiSelectModule["default"].borderColor_transparent : '', " ").concat(isActive && needBorder || isResponsive ? _MultiSelectModule["default"].active : '', " ").concat(textBoxClass, " ").concat(needBorder ? _MultiSelectModule["default"].hasBorder : ''),
|
|
989
|
+
className: "".concat(_MultiSelectModule["default"].container, " ").concat(_MultiSelectModule["default"][size], " ").concat(needBorder ? !disableAction ? _MultiSelectModule["default"]["borderColor_".concat(borderColor)] : _MultiSelectModule["default"].borderColor_transparent : '', " ").concat(isActive && needBorder || isResponsive || isEditable && isFocus && needBorder ? _MultiSelectModule["default"].active : '', " ").concat(textBoxClass, " ").concat(needBorder ? _MultiSelectModule["default"].hasBorder : ''),
|
|
988
990
|
eleRef: this.selectedOptionContainerRef,
|
|
989
991
|
wrap: "wrap"
|
|
990
992
|
}, /*#__PURE__*/_react["default"].createElement(_SelectedOptions["default"], {
|
|
@@ -7,6 +7,8 @@ exports.Suggestions_propTypes = exports.SelectedOptions_propTypes = exports.Mult
|
|
|
7
7
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
|
|
10
|
+
var _AdvancedGroupMultiSe;
|
|
11
|
+
|
|
10
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
13
|
|
|
12
14
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -128,7 +130,8 @@ var MultiSelect_propTypes = {
|
|
|
128
130
|
ariaErrorId: _propTypes["default"].string,
|
|
129
131
|
customProps: _propTypes["default"].shape({
|
|
130
132
|
TextBoxIconProps: _propTypes["default"].object
|
|
131
|
-
})
|
|
133
|
+
}),
|
|
134
|
+
isFocus: _propTypes["default"].bool
|
|
132
135
|
};
|
|
133
136
|
exports.MultiSelect_propTypes = MultiSelect_propTypes;
|
|
134
137
|
var MultiSelectHeader_propTypes = {
|
|
@@ -201,8 +204,7 @@ var Suggestions_propTypes = {
|
|
|
201
204
|
}))
|
|
202
205
|
};
|
|
203
206
|
exports.Suggestions_propTypes = Suggestions_propTypes;
|
|
204
|
-
|
|
205
|
-
var AdvancedGroupMultiSelect_propTypes = _defineProperty({
|
|
207
|
+
var AdvancedGroupMultiSelect_propTypes = (_AdvancedGroupMultiSe = {
|
|
206
208
|
animationStyle: _propTypes["default"].string,
|
|
207
209
|
autoComplete: _propTypes["default"].bool,
|
|
208
210
|
borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
|
|
@@ -270,8 +272,7 @@ var AdvancedGroupMultiSelect_propTypes = _defineProperty({
|
|
|
270
272
|
needToCloseOnSelect: _propTypes["default"].func,
|
|
271
273
|
searchStr: _propTypes["default"].string,
|
|
272
274
|
children: _propTypes["default"].node
|
|
273
|
-
}, "dataSelectorId", _propTypes["default"].string);
|
|
274
|
-
|
|
275
|
+
}, _defineProperty(_AdvancedGroupMultiSe, "dataSelectorId", _propTypes["default"].string), _defineProperty(_AdvancedGroupMultiSe, "isFocus", _propTypes["default"].bool), _AdvancedGroupMultiSe);
|
|
275
276
|
exports.AdvancedGroupMultiSelect_propTypes = AdvancedGroupMultiSelect_propTypes;
|
|
276
277
|
|
|
277
278
|
var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_propTypes), {}, {
|
|
@@ -347,7 +348,8 @@ var AdvancedMultiSelect_propTypes = _objectSpread(_objectSpread({}, MultiSelect_
|
|
|
347
348
|
}),
|
|
348
349
|
isLoading: _propTypes["default"].bool,
|
|
349
350
|
dataSelectorId: _propTypes["default"].string,
|
|
350
|
-
customClass: _propTypes["default"].object
|
|
351
|
+
customClass: _propTypes["default"].object,
|
|
352
|
+
isFocus: _propTypes["default"].bool
|
|
351
353
|
});
|
|
352
354
|
|
|
353
355
|
exports.AdvancedMultiSelect_propTypes = AdvancedMultiSelect_propTypes;
|