@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
package/es/Modal/Modal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React from 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React from 'react';
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
.wrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
.disabled,
|
|
5
|
+
.readOnly {
|
|
6
|
+
cursor: not-allowed;
|
|
7
|
+
}
|
|
8
|
+
.container {
|
|
9
|
+
max-height: var(--zd_size120);
|
|
10
|
+
composes: oflowy from '../common/common.module.css';
|
|
11
|
+
}
|
|
12
|
+
.hasBorder {
|
|
13
|
+
border-bottom-style: solid;
|
|
14
|
+
border-bottom-width: 1px;
|
|
15
|
+
transition: border var(--zd_transition2) linear 0s;
|
|
16
|
+
}
|
|
17
|
+
.borderColor_transparent {
|
|
18
|
+
border-bottom-color: var(--zdt_advancedmultiselect_transparent_border);
|
|
19
|
+
}
|
|
20
|
+
.effect .borderColor_transparent:hover {
|
|
21
|
+
border-bottom-color: var(--zdt_advancedmultiselect_transparent_hover_border);
|
|
22
|
+
}
|
|
23
|
+
.effect .borderColor_transparent.active {
|
|
24
|
+
border-bottom-color: var(--zdt_advancedmultiselect_transparent_active_border);
|
|
25
|
+
}
|
|
26
|
+
.borderColor_default {
|
|
27
|
+
border-bottom-color: var(--zdt_advancedmultiselect_default_border);
|
|
28
|
+
}
|
|
29
|
+
.effect .borderColor_default:hover {
|
|
30
|
+
border-bottom-color: var(--zdt_advancedmultiselect_default_hover_border);
|
|
31
|
+
}
|
|
32
|
+
.effect .borderColor_default.active {
|
|
33
|
+
border-bottom-color: var(--zdt_advancedmultiselect_default_active_border);
|
|
34
|
+
}
|
|
35
|
+
.borderColor_dark {
|
|
36
|
+
border-bottom-color: var(--zdt_advancedmultiselect_dark_border);
|
|
37
|
+
}
|
|
38
|
+
.effect .borderColor_dark:hover {
|
|
39
|
+
border-bottom-color: var(--zdt_advancedmultiselect_dark_hover_border);
|
|
40
|
+
}
|
|
41
|
+
.effect .borderColor_dark.active {
|
|
42
|
+
border-bottom-color: var(--zdt_advancedmultiselect_dark_active_border);
|
|
43
|
+
}
|
|
44
|
+
.container.medium {
|
|
45
|
+
padding: 0 var(--zd_size34) var(--zd_size7) 0;
|
|
46
|
+
}
|
|
47
|
+
.container.xmedium {
|
|
48
|
+
padding: 0 var(--zd_size34) var(--zd_size1) 0;
|
|
49
|
+
min-height: var(--zd_size30);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.delete {
|
|
53
|
+
position: absolute;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
right: var(--zd_size15);
|
|
56
|
+
padding-bottom: var(--zd_size10);
|
|
57
|
+
color: var(--zdt_advancedmultiselect_delete_text);
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
background-color: var(--zdt_advancedmultiselect_delete_bg);
|
|
60
|
+
border: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.delete:hover {
|
|
64
|
+
color: var(--zdt_advancedmultiselect_delete_hover_text);
|
|
65
|
+
}
|
|
66
|
+
.transparentContainer .delete {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
visibility: hidden;
|
|
69
|
+
}
|
|
70
|
+
.transparentContainer:hover .delete {
|
|
71
|
+
opacity: 1;
|
|
72
|
+
visibility: visible;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.box {
|
|
76
|
+
background: var(--zdt_advancedmultiselect_box_bg);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.small {
|
|
80
|
+
max-height: var(--zd_size200);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.medium {
|
|
84
|
+
max-height: var(--zd_size350);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.large {
|
|
88
|
+
max-height: var(--zd_size400);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.dropContainer {
|
|
92
|
+
display: inline-block;
|
|
93
|
+
max-width: 100%;
|
|
94
|
+
margin-bottom: var(--zd_size5);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.dropPopup {
|
|
98
|
+
font-size: var(--zd_font_size13);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.dropPopup :global .toggleDropIcon {
|
|
102
|
+
color: var(--zdt_advancedmultiselect_droppopup_text);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.more {
|
|
106
|
+
font-size: var(--zd_font_size14);
|
|
107
|
+
color: var(--zdt_advancedmultiselect_more_text);
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
margin-top: var(--zd_size5);
|
|
110
|
+
font-family: inherit;
|
|
111
|
+
background-color: var(--zdt_advancedmultiselect_delete_bg);
|
|
112
|
+
border: 0;
|
|
113
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
.wrapper {
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
|
-
.disabled,
|
|
4
|
+
.disabled,
|
|
5
|
+
.readOnly {
|
|
5
6
|
cursor: not-allowed;
|
|
6
7
|
}
|
|
7
8
|
.container {
|
|
@@ -9,9 +10,9 @@
|
|
|
9
10
|
composes: oflowy from '../common/common.module.css';
|
|
10
11
|
}
|
|
11
12
|
.hasBorder {
|
|
12
|
-
transition: border var(--zd_transition2) linear 0s;
|
|
13
13
|
border-bottom-style: solid;
|
|
14
14
|
border-bottom-width: 1px;
|
|
15
|
+
transition: border var(--zd_transition2) linear 0s;
|
|
15
16
|
}
|
|
16
17
|
.borderColor_transparent {
|
|
17
18
|
border-bottom-color: var(--zdt_multiselect_transparent_border);
|
|
@@ -46,16 +47,16 @@
|
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
.container.xmedium {
|
|
49
|
-
min-height: var(--zd_size30);
|
|
50
50
|
padding-bottom: var(--zd_size3);
|
|
51
|
+
min-height: var(--zd_size30);
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
.delete {
|
|
54
|
-
font: inherit;
|
|
55
55
|
padding: var(--zd_size2) var(--zd_size6);
|
|
56
56
|
cursor: pointer;
|
|
57
57
|
border: 0;
|
|
58
58
|
background-color: var(--zdt_multiselect_delete_bg);
|
|
59
|
+
font: inherit;
|
|
59
60
|
}
|
|
60
61
|
.delete,
|
|
61
62
|
.defaultDelete {
|
|
@@ -85,21 +86,13 @@
|
|
|
85
86
|
max-width: 100%;
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
|
|
89
|
+
.container.xmedium .tag {
|
|
89
90
|
margin: var(--zd_size2) var(--zd_size10) 0 0;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
margin: var(--zd_size2) 0 0 var(--zd_size10);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
[dir=ltr] .container.medium .tag {
|
|
93
|
+
.container.medium .tag {
|
|
97
94
|
margin: var(--zd_size5) var(--zd_size10) 0 0;
|
|
98
95
|
}
|
|
99
|
-
|
|
100
|
-
[dir=rtl] .container.medium .tag {
|
|
101
|
-
margin: var(--zd_size5) 0 0 var(--zd_size10);
|
|
102
|
-
}
|
|
103
96
|
.responsiveParent{
|
|
104
97
|
width: 100%;
|
|
105
98
|
}
|
|
@@ -138,10 +131,8 @@
|
|
|
138
131
|
}
|
|
139
132
|
.dark,
|
|
140
133
|
.darkBox {
|
|
141
|
-
color: var(--zdt_multiselect_darkmsg_text);
|
|
142
|
-
}
|
|
143
|
-
.dark, .darkBox {
|
|
144
134
|
background: var(--zdt_multiselect_darkmsg_bg);
|
|
135
|
+
color: var(--zdt_multiselect_darkmsg_text);
|
|
145
136
|
}
|
|
146
137
|
|
|
147
138
|
.hide {
|
|
@@ -166,13 +157,8 @@
|
|
|
166
157
|
.custmInputWrapper {
|
|
167
158
|
position: absolute;
|
|
168
159
|
top: 0;
|
|
169
|
-
width: 100%;
|
|
170
|
-
}
|
|
171
|
-
[dir=ltr] .custmInputWrapper {
|
|
172
160
|
left: 0;
|
|
173
|
-
|
|
174
|
-
[dir=rtl] .custmInputWrapper {
|
|
175
|
-
right: 0;
|
|
161
|
+
width: 100%;
|
|
176
162
|
}
|
|
177
163
|
.title {
|
|
178
164
|
margin-bottom: var(--zd_size6);
|
|
@@ -186,21 +172,18 @@
|
|
|
186
172
|
.iconContainer {
|
|
187
173
|
padding-top: var(--zd_size3)
|
|
188
174
|
}
|
|
189
|
-
|
|
175
|
+
.clearIconSpace {
|
|
190
176
|
padding-right: var(--zd_size37)
|
|
191
177
|
}
|
|
192
|
-
[dir=rtl] .clearIconSpace {
|
|
193
|
-
padding-left: var(--zd_size37)
|
|
194
|
-
}
|
|
195
178
|
.search{
|
|
196
179
|
padding: 0px 20px;
|
|
197
180
|
}
|
|
198
181
|
.more {
|
|
199
182
|
font-size: var(--zd_font_size14);
|
|
200
183
|
color: var(--zdt_multiselect_more_text);
|
|
201
|
-
font-family: inherit;
|
|
202
184
|
cursor: pointer;
|
|
203
185
|
margin-top: var(--zd_size5);
|
|
186
|
+
font-family: inherit;
|
|
204
187
|
background-color: var(--zdt_multiselect_delete_bg);
|
|
205
188
|
border: 0;
|
|
206
189
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React from 'react';
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
.tag {
|
|
2
2
|
max-width: 100%;
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
.xmedium {
|
|
5
5
|
margin: 0 var(--zd_size10) var(--zd_size2) 0;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
margin: 0 0 var(--zd_size2) var(--zd_size10);
|
|
9
|
-
}
|
|
10
|
-
[dir=ltr] .medium {
|
|
7
|
+
.medium {
|
|
11
8
|
margin: var(--zd_size5) var(--zd_size10) 0 0;
|
|
12
9
|
}
|
|
13
|
-
[dir=rtl] .medium {
|
|
14
|
-
margin: var(--zd_size5) 0 0 var(--zd_size10);
|
|
15
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React from 'react';
|
package/es/Popup/Popup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React from 'react';
|
|
@@ -7,10 +7,7 @@
|
|
|
7
7
|
--radio_stroke_color: var(--zdt_radio_default_stroke);
|
|
8
8
|
--radio_fill: none;
|
|
9
9
|
--radio_inner_stroke_width: 0;
|
|
10
|
-
}[dir=ltr] .varClass {
|
|
11
10
|
--radio_label_margin: 0 0 0 var(--zd_size6)/*rtl: 0 var(--zd_size6) 0 0*/;
|
|
12
|
-
}[dir=rtl] .varClass {
|
|
13
|
-
--radio_label_margin: 0 var(--zd_size6) 0 0;
|
|
14
11
|
}
|
|
15
12
|
.container {
|
|
16
13
|
composes: varClass;
|
|
@@ -18,16 +15,16 @@
|
|
|
18
15
|
.pointer {
|
|
19
16
|
cursor: pointer;
|
|
20
17
|
}
|
|
21
|
-
.readonly
|
|
18
|
+
.readonly,.disabled {
|
|
22
19
|
cursor: not-allowed;
|
|
23
20
|
}
|
|
24
21
|
.radio {
|
|
25
22
|
composes: offSelection from '../common/common.module.css';
|
|
26
23
|
width: var(--radio_width);
|
|
27
24
|
height: var(--radio_height);
|
|
28
|
-
stroke: var(--radio_stroke_color);
|
|
29
25
|
background: var(--radio_bg_color);
|
|
30
26
|
border-radius: 50%;
|
|
27
|
+
stroke: var(--radio_stroke_color);
|
|
31
28
|
}
|
|
32
29
|
.radio,
|
|
33
30
|
.centerPath {
|
|
@@ -57,26 +54,21 @@
|
|
|
57
54
|
}
|
|
58
55
|
.centerPath {
|
|
59
56
|
--radio_fill: inherit;
|
|
60
|
-
stroke-width: var(--radio_inner_stroke_width);
|
|
61
57
|
transform-origin: center;
|
|
58
|
+
stroke-width: var(--radio_inner_stroke_width);
|
|
62
59
|
}
|
|
63
|
-
|
|
64
|
-
animation: circleAnimate var(--zd_transition3) ease forwards;
|
|
65
|
-
}
|
|
66
|
-
[dir=rtl] .checked .centerPath {
|
|
60
|
+
.checked .centerPath {
|
|
67
61
|
animation: circleAnimate var(--zd_transition3) ease forwards;
|
|
68
62
|
}
|
|
69
63
|
.rdBoxprimary,
|
|
70
|
-
.hoverEfffect:hover .hoverprimary
|
|
71
|
-
|
|
72
|
-
{
|
|
64
|
+
.hoverEfffect:hover .hoverprimary,
|
|
65
|
+
.hoverEfffect:focus .hoverprimary {
|
|
73
66
|
--radio_stroke_color: var(--zdt_radio_primary_stroke);
|
|
74
67
|
}
|
|
75
68
|
|
|
76
69
|
.rdBoxdanger,
|
|
77
|
-
.hoverEfffect:hover .hoverdanger
|
|
78
|
-
|
|
79
|
-
{
|
|
70
|
+
.hoverEfffect:hover .hoverdanger,
|
|
71
|
+
.hoverEfffect:focus .hoverdanger {
|
|
80
72
|
--radio_stroke_color: var(--zdt_radio_danger_stroke);
|
|
81
73
|
}
|
|
82
74
|
|
|
@@ -88,13 +80,13 @@
|
|
|
88
80
|
}
|
|
89
81
|
|
|
90
82
|
.active:hover .primaryLabel,
|
|
91
|
-
|
|
83
|
+
.active:focus .primaryLabel,
|
|
92
84
|
.primarycheckedActive {
|
|
93
85
|
--label_text_color: var(--zdt_radio_label_primary_text);
|
|
94
86
|
}
|
|
95
87
|
|
|
96
88
|
.active:hover .dangerLabel,
|
|
97
|
-
|
|
89
|
+
.active:focus .dangerLabel,
|
|
98
90
|
.dangercheckedActive {
|
|
99
91
|
--label_text_color: var(--zdt_radio_label_danger_text);
|
|
100
92
|
}
|
|
@@ -13,13 +13,33 @@ export default class ResizeComponent extends React.Component {
|
|
|
13
13
|
this.childrenCurrentList = [];
|
|
14
14
|
this.widthCheck = debounce(this.widthCheck.bind(this), 10); // this.widthCheck = this.widthCheck.bind(this);
|
|
15
15
|
|
|
16
|
-
this.onResize = this.onResize.bind(this);
|
|
16
|
+
this.onResize = debounce(this.onResize.bind(this), 500);
|
|
17
17
|
this.onResizeMutation = this.onResizeMutation.bind(this);
|
|
18
18
|
this.tabsObserver = new ResizeObserver(this.onResize);
|
|
19
19
|
this.tabObserver = new MutationObserver(this.onResizeMutation);
|
|
20
20
|
this.reset = this.reset.bind(this);
|
|
21
21
|
this.constructChildren = this.constructChildren.bind(this);
|
|
22
22
|
this.querySelector = this.querySelector.bind(this);
|
|
23
|
+
this.onAnimationStart = this.onAnimationStart.bind(this);
|
|
24
|
+
this.onAnimationEnd = this.onAnimationEnd.bind(this);
|
|
25
|
+
this.isAnimating = false;
|
|
26
|
+
this.state = {
|
|
27
|
+
responsiveHook: true,
|
|
28
|
+
validListCount: this.props.childrenList ? this.props.childrenList.length : 0,
|
|
29
|
+
emptyDataCount: this.props.childrenList ? this.props.childrenList.length : 0
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
onAnimationStart(e) {
|
|
34
|
+
if (this.props.wrapperDivRef.current === e.target) {
|
|
35
|
+
this.isAnimating = true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
onAnimationEnd(e) {
|
|
40
|
+
if (this.props.wrapperDivRef.current === e.target) {
|
|
41
|
+
this.isAnimating = false;
|
|
42
|
+
}
|
|
23
43
|
}
|
|
24
44
|
|
|
25
45
|
querySelector() {
|
|
@@ -72,6 +92,8 @@ export default class ResizeComponent extends React.Component {
|
|
|
72
92
|
|
|
73
93
|
componentDidMount() {
|
|
74
94
|
if (this.props.wrapperDivRef && this.props.wrapperDivRef.current) {
|
|
95
|
+
this.props.wrapperDivRef.current.addEventListener('animationstart', this.onAnimationStart, false);
|
|
96
|
+
this.props.wrapperDivRef.current.addEventListener('animationend', this.onAnimationEnd, false);
|
|
75
97
|
this.tabsObserver.observe(this.props.wrapperDivRef.current);
|
|
76
98
|
this.tabObserver.observe(this.props.wrapperDivRef.current, {
|
|
77
99
|
characterData: true,
|
|
@@ -88,13 +110,20 @@ export default class ResizeComponent extends React.Component {
|
|
|
88
110
|
}
|
|
89
111
|
|
|
90
112
|
reset() {
|
|
113
|
+
this.forceUpdate = true;
|
|
91
114
|
this.childrenCurrentList = [];
|
|
92
115
|
this.tabsObserver.disconnect();
|
|
93
116
|
this.tabObserver && this.tabObserver.disconnect();
|
|
117
|
+
this.props.wrapperDivRef.current.removeEventListener('animationstart', this.onAnimationStart);
|
|
118
|
+
this.props.wrapperDivRef.current.removeEventListener('animationend', this.onAnimationEnd);
|
|
94
119
|
}
|
|
95
120
|
|
|
96
|
-
componentDidUpdate(prevProps) {
|
|
97
|
-
if (this.childrenCurrentList.length === 0) {
|
|
121
|
+
componentDidUpdate(prevProps, prevState) {
|
|
122
|
+
// if (this.childrenCurrentList.length === 0) {
|
|
123
|
+
// this.childrenCurrentList = this.querySelector();
|
|
124
|
+
// this.widthCheck();
|
|
125
|
+
// }
|
|
126
|
+
if (this.state.responsiveHook !== prevState.responsiveHook && !this.state.responsiveHook) {
|
|
98
127
|
this.childrenCurrentList = this.querySelector();
|
|
99
128
|
this.widthCheck();
|
|
100
129
|
}
|
|
@@ -116,10 +145,27 @@ export default class ResizeComponent extends React.Component {
|
|
|
116
145
|
}
|
|
117
146
|
}
|
|
118
147
|
|
|
119
|
-
onResize() {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
148
|
+
onResize(size) {
|
|
149
|
+
if (size) {
|
|
150
|
+
window.requestAnimationFrame(() => {
|
|
151
|
+
if (this.forceUpdate || (this.height !== size.height || this.width !== size.width || this.scrollWidth !== size.scrollWidth || this.scrollHeight !== size.scrollHeight) && !this.isAnimating) {
|
|
152
|
+
this.forceUpdate = false;
|
|
153
|
+
this.height = size.height;
|
|
154
|
+
this.width = size.width;
|
|
155
|
+
this.scrollHeight = size.scrollHeight;
|
|
156
|
+
this.scrollWidth = size.scrollWidth;
|
|
157
|
+
this.childrenCurrentList = [];
|
|
158
|
+
this.constructChildren(0, false);
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
} else {
|
|
162
|
+
this.childrenCurrentList = [];
|
|
163
|
+
this.constructChildren(0, false);
|
|
164
|
+
} // if (this.childrenCurrentList.length !== 0) {
|
|
165
|
+
// this.childrenCurrentList = [];
|
|
166
|
+
// this.constructChildren(0, false);
|
|
167
|
+
//}
|
|
168
|
+
|
|
123
169
|
} // shouldComponentUpdate() {
|
|
124
170
|
// return this.childrenCurrentList.length === 0
|
|
125
171
|
// }
|
|
@@ -139,7 +185,7 @@ export default class ResizeComponent extends React.Component {
|
|
|
139
185
|
let dataCount = 0;
|
|
140
186
|
this.noSpaceForChildren = false;
|
|
141
187
|
|
|
142
|
-
if (totalWidth <= moreWidth) {
|
|
188
|
+
if (totalWidth + moreWidth <= moreWidth) {
|
|
143
189
|
this.noSpaceForChildren = true;
|
|
144
190
|
} else {
|
|
145
191
|
for (let i = 0; i < childrenWidthList.length; i++) {
|
|
@@ -152,7 +198,14 @@ export default class ResizeComponent extends React.Component {
|
|
|
152
198
|
|
|
153
199
|
if (totalWidth <= _childrenTotalWidth) {
|
|
154
200
|
dataCount = i;
|
|
201
|
+
|
|
202
|
+
if (dataCount == 0) {
|
|
203
|
+
this.noSpaceForChildren = true;
|
|
204
|
+
}
|
|
205
|
+
|
|
155
206
|
break;
|
|
207
|
+
} else {
|
|
208
|
+
dataCount++;
|
|
156
209
|
}
|
|
157
210
|
}
|
|
158
211
|
}
|
|
@@ -167,31 +220,45 @@ export default class ResizeComponent extends React.Component {
|
|
|
167
220
|
let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
168
221
|
let responsive = arguments.length > 1 ? arguments[1] : undefined;
|
|
169
222
|
const {
|
|
170
|
-
childrenList
|
|
171
|
-
getData
|
|
223
|
+
childrenList
|
|
172
224
|
} = this.props; // If the data count is zero we assume that we can render all the items - data count will be zero only when we want to calculate the whole list width
|
|
225
|
+
// let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
226
|
+
// let responsive = arguments.length > 1 ? arguments[1] : undefined;
|
|
227
|
+
//let isResize = arguments.length > 2 ? arguments[2] : false;
|
|
173
228
|
|
|
174
229
|
dataCount = dataCount || childrenList && childrenList.length;
|
|
175
|
-
|
|
230
|
+
let rederElementCount = this.querySelector().length;
|
|
231
|
+
let emptyCount = childrenList.length - rederElementCount; // dataCount = responsive ? dataCount : dataCount || (childrenList && childrenList.length);
|
|
232
|
+
//dataCount = !isResize ? dataCount : dataCount || (childrenList && childrenList.length);
|
|
233
|
+
|
|
234
|
+
this.setState({
|
|
176
235
|
responsiveHook: responsive,
|
|
177
|
-
validListCount: this.noSpaceForChildren ? 0 : dataCount
|
|
236
|
+
validListCount: this.noSpaceForChildren ? 0 : dataCount,
|
|
237
|
+
emptyDataCount: emptyCount
|
|
178
238
|
});
|
|
179
239
|
}
|
|
180
240
|
|
|
181
241
|
render() {
|
|
182
|
-
|
|
242
|
+
let {
|
|
243
|
+
responsiveHook,
|
|
244
|
+
validListCount,
|
|
245
|
+
emptyDataCount
|
|
246
|
+
} = this.state;
|
|
247
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.children({
|
|
248
|
+
responsiveHook,
|
|
249
|
+
validListCount,
|
|
250
|
+
emptyDataCount
|
|
251
|
+
}));
|
|
183
252
|
}
|
|
184
253
|
|
|
185
254
|
}
|
|
186
255
|
ResizeComponent.propTypes = {
|
|
187
256
|
children: PropTypes.node,
|
|
188
|
-
getData: PropTypes.func,
|
|
189
257
|
resizeId: PropTypes.number,
|
|
190
258
|
childrenList: PropTypes.array,
|
|
191
259
|
wrapperDivRef: PropTypes.any,
|
|
192
260
|
moreDivRef: PropTypes.any
|
|
193
261
|
};
|
|
194
262
|
ResizeComponent.defaultProps = {
|
|
195
|
-
getData: () => {},
|
|
196
263
|
resizeId: null
|
|
197
264
|
};
|
|
@@ -8,12 +8,16 @@ const mutationObserverOptions = {
|
|
|
8
8
|
function getSize(element) {
|
|
9
9
|
let {
|
|
10
10
|
offsetHeight,
|
|
11
|
-
offsetWidth
|
|
11
|
+
offsetWidth,
|
|
12
|
+
scrollHeight,
|
|
13
|
+
scrollWidth
|
|
12
14
|
} = element; // const { height, width } = element.getBoundingClientRect();
|
|
13
15
|
|
|
14
16
|
return {
|
|
15
17
|
height: offsetHeight,
|
|
16
|
-
width: offsetWidth
|
|
18
|
+
width: offsetWidth,
|
|
19
|
+
scrollHeight: scrollHeight,
|
|
20
|
+
scrollWidth: scrollWidth
|
|
17
21
|
};
|
|
18
22
|
}
|
|
19
23
|
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
.header{
|
|
2
|
+
background-color: #c60000;
|
|
3
|
+
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
2
4
|
color: #fff;
|
|
3
5
|
font-size: 24px;
|
|
4
|
-
background-color: #c60000;
|
|
5
6
|
padding: 10px;
|
|
6
7
|
text-align: center;
|
|
7
8
|
margin: 10px 6px;
|
|
8
|
-
}[dir=ltr] .header{
|
|
9
|
-
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
10
|
-
}[dir=rtl] .header{
|
|
11
|
-
box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
12
9
|
}
|
|
13
10
|
.box{
|
|
14
11
|
height: 80px;
|
|
15
|
-
line-height: 80px;
|
|
16
|
-
min-width: 300px;
|
|
17
12
|
background-color: #ffbb11;
|
|
18
13
|
text-align: center;
|
|
14
|
+
line-height: 80px;
|
|
15
|
+
min-width: 300px;
|
|
19
16
|
margin:6px;
|
|
20
17
|
padding: 0 100x;
|
|
21
18
|
}
|
|
@@ -23,10 +20,10 @@
|
|
|
23
20
|
background-color: #60de55
|
|
24
21
|
}
|
|
25
22
|
.subHeading{
|
|
26
|
-
position: sticky;
|
|
27
|
-
top: 0;
|
|
28
23
|
text-align: center;
|
|
29
24
|
padding: 10px;
|
|
25
|
+
position: sticky;
|
|
26
|
+
top: 0;
|
|
30
27
|
background-color: #fff
|
|
31
28
|
}
|
|
32
29
|
|
|
@@ -40,17 +37,11 @@
|
|
|
40
37
|
position: absolute;
|
|
41
38
|
width: 60%;
|
|
42
39
|
top: 50%;
|
|
40
|
+
transform: translate(-50%,-50%);
|
|
41
|
+
left: 50%;
|
|
43
42
|
border: 1px solid #aaa;
|
|
44
43
|
border-radius: 4px
|
|
45
44
|
}
|
|
46
|
-
[dir=ltr] .wrapper{
|
|
47
|
-
transform: translate(-50%,-50%);
|
|
48
|
-
left: 50%
|
|
49
|
-
}
|
|
50
|
-
[dir=rtl] .wrapper{
|
|
51
|
-
transform: translate(50%,-50%);
|
|
52
|
-
right: 50%
|
|
53
|
-
}
|
|
54
45
|
.avatar{
|
|
55
46
|
margin:20px auto
|
|
56
47
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
2
|
|
|
3
3
|
import React, { Component } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|