@zohodesk/components 1.0.0-temp-444 → 1.0.0-temp-667
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +3 -18
- package/assets/Appearance/default/mode/defaultMode.module.css +2 -17
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +5 -20
- package/es/AppContainer/AppContainer.js +1 -1
- package/es/Avatar/Avatar.js +1 -1
- package/es/Avatar/Avatar.module.css +11 -9
- package/es/AvatarTeam/AvatarTeam.js +1 -1
- package/es/AvatarTeam/AvatarTeam.module.css +21 -7
- package/es/Button/Button.module.css +97 -24
- package/es/Buttongroup/Buttongroup.module.css +37 -8
- package/es/CheckBox/CheckBox.js +1 -1
- package/es/CheckBox/CheckBox.module.css +29 -19
- package/es/DateTime/DateTime.js +4 -2
- package/es/DateTime/DateTime.module.css +40 -13
- package/es/DateTime/DateWidget.js +4 -2
- package/es/DateTime/DateWidget.module.css +9 -5
- package/es/DateTime/YearView.module.css +17 -6
- package/es/DropBox/DropBox.js +1 -1
- package/es/DropBox/DropBox.module.css +47 -11
- package/es/DropDown/DropDownHeading.module.css +7 -3
- package/es/DropDown/DropDownItem.module.css +32 -6
- package/es/LightNightMode/Colors.json +496 -397
- package/es/LightNightMode/docs/AlternativeColors.docs.js +21 -1
- package/es/ListItem/ListContainer.js +1 -1
- package/es/ListItem/ListItem.js +1 -1
- package/es/ListItem/ListItem.module.css +69 -33
- package/es/ListItem/ListItemWithAvatar.js +1 -1
- package/es/ListItem/ListItemWithCheckBox.js +1 -1
- package/es/ListItem/ListItemWithIcon.js +1 -1
- package/es/ListItem/ListItemWithRadio.js +1 -1
- package/es/Modal/Modal.js +1 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +14 -7
- package/es/MultiSelect/AdvancedMultiSelect.js +20 -8
- package/es/MultiSelect/MultiSelect.module.css +36 -11
- package/es/MultiSelect/SelectedOptions.js +1 -1
- package/es/MultiSelect/SelectedOptions.module.css +8 -2
- package/es/MultiSelect/Suggestions.js +1 -1
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Popup/Popup.js +1 -1
- package/es/Radio/Radio.module.css +18 -10
- package/es/Responsive/ResizeComponent.js +15 -73
- package/es/Responsive/ResizeObserver.js +2 -6
- package/es/Responsive/docs/style.module.css +17 -8
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
- package/es/Ribbon/Ribbon.module.css +93 -28
- package/es/RippleEffect/RippleEffect.module.css +37 -44
- package/es/Select/Select.js +30 -8
- package/es/Select/Select.module.css +12 -2
- package/es/Select/docs/Select__default.docs.js +1 -1
- package/es/Stencils/Stencils.module.css +21 -3
- package/es/Switch/Switch.js +1 -1
- package/es/Switch/Switch.module.css +9 -9
- package/es/Tab/Tab.js +1 -1
- package/es/Tab/Tab.module.css +16 -7
- package/es/Tab/TabWrapper.js +1 -1
- package/es/Tab/Tabs.js +1 -1
- package/es/Tab/Tabs.module.css +42 -8
- package/es/Tab/docs/tabdocs.module.css +1 -1
- package/es/Tag/Tag.module.css +36 -14
- package/es/TextBox/TextBox.js +1 -1
- package/es/TextBox/TextBox.module.css +7 -11
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +12 -5
- package/es/Textarea/Textarea.js +1 -1
- package/es/Textarea/Textarea.module.css +6 -7
- package/es/Tooltip/Tooltip.module.css +9 -8
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
- package/es/beta/FocusRing/FocusRing.module.css +51 -26
- package/es/common/animation.module.css +219 -21
- package/es/common/basicReset.module.css +2 -12
- package/es/common/common.module.css +62 -18
- package/es/common/customscroll.module.css +17 -21
- package/es/common/docStyle.module.css +79 -32
- package/es/common/transition.module.css +50 -10
- package/es/css.js +0 -1
- package/{lib/MultiSelect → es/deprecated}/AdvancedMultiSelect.module.css +1 -1
- package/es/deprecated/advancedMultiSelectVariableJson.js +80 -0
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/lib/Accordion/Accordion.js +2 -2
- package/lib/Accordion/AccordionItem.js +2 -2
- package/lib/Accordion/docs/Accordion__Demo.docs.js +2 -2
- package/lib/Animation/Animation.js +2 -2
- package/lib/Animation/docs/Animation__default.docs.js +2 -2
- package/lib/Animation/docs/Animation__fadeIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__scaleIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__skewIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__slideDown.docs.js +2 -2
- package/lib/Animation/docs/Animation__slideLeft.docs.js +2 -2
- package/lib/Animation/docs/Animation__zoomIn.docs.js +2 -2
- package/lib/AppContainer/AppContainer.js +11 -4
- package/lib/AppContainer/docs/AppContainer__default.docs.js +2 -2
- package/lib/Avatar/Avatar.js +3 -3
- package/lib/Avatar/docs/Avatar__custom.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__default.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__palette.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__text.docs.js +2 -2
- package/lib/AvatarTeam/AvatarTeam.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +2 -2
- package/lib/Button/Button.js +2 -2
- package/lib/Button/docs/Button__custom.docs.js +2 -2
- package/lib/Button/docs/Button__default.docs.js +2 -2
- package/lib/Buttongroup/Buttongroup.js +2 -2
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +2 -2
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +2 -2
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +2 -2
- package/lib/Card/Card.js +2 -2
- package/lib/Card/docs/Card__Custom.docs.js +2 -2
- package/lib/Card/docs/Card__Default.docs.js +2 -2
- package/lib/Card/docs/Card__Scroll.docs.js +2 -2
- package/lib/CheckBox/CheckBox.js +5 -4
- package/lib/CheckBox/CheckBox.module.css +12 -8
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +2 -2
- package/lib/CheckBox/docs/CheckBox__default.docs.js +2 -2
- package/lib/DateTime/CalendarView.js +2 -2
- package/lib/DateTime/DateTime.js +50 -22
- package/lib/DateTime/DateTime.module.css +1 -1
- package/lib/DateTime/DateTimePopupFooter.js +2 -2
- package/lib/DateTime/DateTimePopupHeader.js +2 -2
- package/lib/DateTime/DateWidget.js +14 -4
- package/lib/DateTime/DateWidget.module.css +0 -4
- package/lib/DateTime/DaysRow.js +2 -2
- package/lib/DateTime/Time.js +2 -2
- package/lib/DateTime/YearView.js +2 -2
- package/lib/DateTime/YearView.module.css +1 -0
- package/lib/DateTime/docs/DateTime__default.docs.js +2 -2
- package/lib/DateTime/docs/DateWidget__default.docs.js +2 -2
- package/lib/DropBox/DropBox.js +4 -4
- package/lib/DropBox/docs/DropBox__custom.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__position.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__size.docs.js +2 -2
- package/lib/DropDown/DropDown.js +2 -2
- package/lib/DropDown/DropDownHeading.js +2 -2
- package/lib/DropDown/DropDownItem.js +2 -2
- package/lib/DropDown/DropDownSearch.js +2 -2
- package/lib/DropDown/DropDownSeparator.js +2 -2
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +2 -2
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +2 -2
- package/lib/Label/Label.js +2 -2
- package/lib/Label/docs/Label__clipped.docs.js +2 -2
- package/lib/Label/docs/Label__custom.docs.js +2 -2
- package/lib/Label/docs/Label__palette.docs.js +2 -2
- package/lib/Label/docs/Label__size.docs.js +2 -2
- package/lib/Label/docs/Label__type.docs.js +2 -2
- package/lib/Layout/docs/Layout__Hidden.docs.js +2 -2
- package/lib/Layout/docs/Layout__default.docs.js +2 -2
- package/lib/Layout/docs/Layout__four_Column.docs.js +2 -2
- package/lib/Layout/docs/Layout__three_Column.docs.js +2 -2
- package/lib/Layout/docs/Layout__two_Column.docs.js +2 -2
- package/lib/LightNightMode/Colors.json +496 -397
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +25 -3
- package/lib/ListItem/ListContainer.js +8 -5
- package/lib/ListItem/ListItem.js +4 -4
- package/lib/ListItem/ListItem.module.css +18 -19
- package/lib/ListItem/ListItemWithAvatar.js +4 -4
- package/lib/ListItem/ListItemWithCheckBox.js +4 -4
- package/lib/ListItem/ListItemWithIcon.js +4 -4
- package/lib/ListItem/ListItemWithRadio.js +4 -4
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItem__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItem__default.docs.js +2 -2
- package/lib/Modal/Modal.js +3 -3
- package/lib/Modal/__docs__/Modal__default.docs.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +120 -88
- package/lib/MultiSelect/AdvancedMultiSelect.js +99 -62
- package/lib/MultiSelect/EmptyState.js +2 -2
- package/lib/MultiSelect/MultiSelect.js +90 -64
- package/lib/MultiSelect/MultiSelect.module.css +15 -2
- package/lib/MultiSelect/MultiSelectHeader.js +2 -2
- package/lib/MultiSelect/MultiSelectWithAvatar.js +80 -55
- package/lib/MultiSelect/SelectedOptions.js +3 -3
- package/lib/MultiSelect/Suggestions.js +3 -3
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -2
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +2 -2
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +2 -2
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +2 -2
- package/lib/PopOver/PopOver.js +13 -6
- package/lib/PopOver/docs/PopOver__default.docs.js +2 -2
- package/lib/Popup/Popup.js +3 -3
- package/lib/Popup/__tests__/Popup.spec.js +2 -2
- package/lib/Provider/Config.js +3 -1
- package/lib/Provider/docs/Provider_Id__Class.docs.js +2 -2
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +2 -2
- package/lib/Provider.js +34 -100
- package/lib/Radio/Radio.js +2 -2
- package/lib/Radio/Radio.module.css +8 -6
- package/lib/Radio/docs/Radio__custom.docs.js +2 -2
- package/lib/Radio/docs/Radio__default.docs.js +2 -2
- package/lib/Responsive/ResizeComponent.js +2 -2
- package/lib/Responsive/Responsive.js +2 -2
- package/lib/Responsive/docs/Responsive__Custom.docs.js +2 -2
- package/lib/Responsive/docs/Responsive__default.docs.js +2 -2
- package/lib/Responsive/sizeObservers.js +3 -3
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +130 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
- package/lib/Ribbon/Ribbon.js +2 -2
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +2 -2
- package/lib/Ribbon/docs/Ribbon__default.docs.js +2 -2
- package/lib/RippleEffect/RippleEffect.module.css +37 -15
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +2 -2
- package/lib/Select/GroupSelect.js +102 -79
- package/lib/Select/Select.js +142 -87
- package/lib/Select/Select.module.css +6 -0
- package/lib/Select/SelectWithAvatar.js +98 -73
- package/lib/Select/SelectWithIcon.js +99 -76
- package/lib/Select/docs/GroupSelect__default.docs.js +2 -2
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +2 -2
- package/lib/Select/docs/SelectWithIcon__default.docs.js +2 -2
- package/lib/Select/docs/Select__default.docs.js +3 -3
- package/lib/Stencils/Stencils.js +2 -2
- package/lib/Stencils/docs/Stencils__custom.docs.js +2 -2
- package/lib/Stencils/docs/Stencils__default.docs.js +2 -2
- package/lib/Switch/Switch.js +3 -3
- package/lib/Switch/Switch.module.css +3 -2
- package/lib/Switch/docs/Switch__custom.docs.js +2 -2
- package/lib/Switch/docs/Switch__default.docs.js +2 -2
- package/lib/Tab/Tab.js +1 -1
- package/lib/Tab/TabWrapper.js +1 -1
- package/lib/Tab/Tabs.js +70 -47
- package/lib/Tab/Tabs.module.css +2 -1
- package/lib/Tab/docs/Tab__default.docs.js +2 -2
- package/lib/Tag/Tag.js +3 -3
- package/lib/Tag/Tag.module.css +6 -2
- package/lib/Tag/docs/Tag__custom.docs.js +2 -2
- package/lib/Tag/docs/Tag__default.docs.js +2 -2
- package/lib/TextBox/TextBox.js +3 -3
- package/lib/TextBox/docs/TextBox__custom.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__default.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__size.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__variant.docs.js +2 -2
- package/lib/TextBoxIcon/TextBoxIcon.js +3 -3
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +2 -2
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +2 -2
- package/lib/Textarea/Textarea.js +3 -3
- package/lib/Textarea/docs/Textarea__animated.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__custom.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__default.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__disabled.docs.js +2 -2
- package/lib/Tooltip/Tooltip.js +62 -10
- package/lib/Tooltip/Tooltip.module.css +6 -1
- package/lib/Tooltip/__tests__/Tooltip.spec.js +2 -2
- package/lib/Tooltip/docs/Tooltip__default.docs.js +52 -13
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -2
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +2 -2
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +2 -2
- package/lib/common/docStyle.module.css +6 -2
- package/lib/css.js +0 -2
- package/{es/MultiSelect → lib/deprecated}/AdvancedMultiSelect.module.css +23 -9
- package/lib/deprecated/PortalLayer/PortalLayer.js +2 -2
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +2 -2
- package/lib/deprecated/advancedMultiSelectVariableJson.js +82 -0
- package/lib/index.js +10 -1
- package/lib/semantic/Button/Button.js +2 -2
- package/lib/semantic/Button/docs/Button__default.docs.js +2 -2
- package/package.json +4 -4
|
@@ -7,7 +7,10 @@
|
|
|
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 {
|
|
10
11
|
--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;
|
|
11
14
|
}
|
|
12
15
|
.container {
|
|
13
16
|
composes: varClass;
|
|
@@ -15,16 +18,16 @@
|
|
|
15
18
|
.pointer {
|
|
16
19
|
cursor: pointer;
|
|
17
20
|
}
|
|
18
|
-
.readonly
|
|
21
|
+
.readonly, .disabled {
|
|
19
22
|
cursor: not-allowed;
|
|
20
23
|
}
|
|
21
24
|
.radio {
|
|
22
25
|
composes: offSelection from '../common/common.module.css';
|
|
23
26
|
width: var(--radio_width);
|
|
24
27
|
height: var(--radio_height);
|
|
28
|
+
stroke: var(--radio_stroke_color);
|
|
25
29
|
background: var(--radio_bg_color);
|
|
26
30
|
border-radius: 50%;
|
|
27
|
-
stroke: var(--radio_stroke_color);
|
|
28
31
|
}
|
|
29
32
|
.radio,
|
|
30
33
|
.centerPath {
|
|
@@ -54,21 +57,26 @@
|
|
|
54
57
|
}
|
|
55
58
|
.centerPath {
|
|
56
59
|
--radio_fill: inherit;
|
|
57
|
-
transform-origin: center;
|
|
58
60
|
stroke-width: var(--radio_inner_stroke_width);
|
|
61
|
+
transform-origin: center;
|
|
62
|
+
}
|
|
63
|
+
[dir=ltr] .checked .centerPath {
|
|
64
|
+
animation: circleAnimate var(--zd_transition3) ease forwards;
|
|
59
65
|
}
|
|
60
|
-
.checked .centerPath {
|
|
66
|
+
[dir=rtl] .checked .centerPath {
|
|
61
67
|
animation: circleAnimate var(--zd_transition3) ease forwards;
|
|
62
68
|
}
|
|
63
69
|
.rdBoxprimary,
|
|
64
|
-
.hoverEfffect:hover .hoverprimary
|
|
65
|
-
.hoverEfffect:focus .hoverprimary
|
|
70
|
+
.hoverEfffect:hover .hoverprimary
|
|
71
|
+
/* .hoverEfffect:focus .hoverprimary */
|
|
72
|
+
{
|
|
66
73
|
--radio_stroke_color: var(--zdt_radio_primary_stroke);
|
|
67
74
|
}
|
|
68
75
|
|
|
69
76
|
.rdBoxdanger,
|
|
70
|
-
.hoverEfffect:hover .hoverdanger
|
|
71
|
-
.hoverEfffect:focus .hoverdanger
|
|
77
|
+
.hoverEfffect:hover .hoverdanger
|
|
78
|
+
/* .hoverEfffect:focus .hoverdanger */
|
|
79
|
+
{
|
|
72
80
|
--radio_stroke_color: var(--zdt_radio_danger_stroke);
|
|
73
81
|
}
|
|
74
82
|
|
|
@@ -80,13 +88,13 @@
|
|
|
80
88
|
}
|
|
81
89
|
|
|
82
90
|
.active:hover .primaryLabel,
|
|
83
|
-
.active:focus .primaryLabel,
|
|
91
|
+
/* .active:focus .primaryLabel, */
|
|
84
92
|
.primarycheckedActive {
|
|
85
93
|
--label_text_color: var(--zdt_radio_label_primary_text);
|
|
86
94
|
}
|
|
87
95
|
|
|
88
96
|
.active:hover .dangerLabel,
|
|
89
|
-
.active:focus .dangerLabel,
|
|
97
|
+
/* .active:focus .dangerLabel, */
|
|
90
98
|
.dangercheckedActive {
|
|
91
99
|
--label_text_color: var(--zdt_radio_label_danger_text);
|
|
92
100
|
}
|
|
@@ -13,32 +13,13 @@ 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 =
|
|
16
|
+
this.onResize = this.onResize.bind(this);
|
|
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
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
onAnimationStart(e) {
|
|
33
|
-
if (this.props.wrapperDivRef.current === e.target) {
|
|
34
|
-
this.isAnimating = true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
onAnimationEnd(e) {
|
|
39
|
-
if (this.props.wrapperDivRef.current === e.target) {
|
|
40
|
-
this.isAnimating = false;
|
|
41
|
-
}
|
|
42
23
|
}
|
|
43
24
|
|
|
44
25
|
querySelector() {
|
|
@@ -91,8 +72,6 @@ export default class ResizeComponent extends React.Component {
|
|
|
91
72
|
|
|
92
73
|
componentDidMount() {
|
|
93
74
|
if (this.props.wrapperDivRef && this.props.wrapperDivRef.current) {
|
|
94
|
-
this.props.wrapperDivRef.current.addEventListener('animationstart', this.onAnimationStart, false);
|
|
95
|
-
this.props.wrapperDivRef.current.addEventListener('animationend', this.onAnimationEnd, false);
|
|
96
75
|
this.tabsObserver.observe(this.props.wrapperDivRef.current);
|
|
97
76
|
this.tabObserver.observe(this.props.wrapperDivRef.current, {
|
|
98
77
|
characterData: true,
|
|
@@ -112,16 +91,10 @@ export default class ResizeComponent extends React.Component {
|
|
|
112
91
|
this.childrenCurrentList = [];
|
|
113
92
|
this.tabsObserver.disconnect();
|
|
114
93
|
this.tabObserver && this.tabObserver.disconnect();
|
|
115
|
-
this.props.wrapperDivRef.current.removeEventListener('animationstart', this.onAnimationStart);
|
|
116
|
-
this.props.wrapperDivRef.current.removeEventListener('animationend', this.onAnimationEnd);
|
|
117
94
|
}
|
|
118
95
|
|
|
119
|
-
componentDidUpdate(prevProps
|
|
120
|
-
|
|
121
|
-
// this.childrenCurrentList = this.querySelector();
|
|
122
|
-
// this.widthCheck();
|
|
123
|
-
// }
|
|
124
|
-
if (this.state.responsiveHook !== prevState.responsiveHook && !this.state.responsiveHook) {
|
|
96
|
+
componentDidUpdate(prevProps) {
|
|
97
|
+
if (this.childrenCurrentList.length === 0) {
|
|
125
98
|
this.childrenCurrentList = this.querySelector();
|
|
126
99
|
this.widthCheck();
|
|
127
100
|
}
|
|
@@ -143,25 +116,10 @@ export default class ResizeComponent extends React.Component {
|
|
|
143
116
|
}
|
|
144
117
|
}
|
|
145
118
|
|
|
146
|
-
onResize(
|
|
147
|
-
if (
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
this.height = size.height;
|
|
151
|
-
this.width = size.width;
|
|
152
|
-
this.scrollWidth = size.scrollWidth;
|
|
153
|
-
this.childrenCurrentList = [];
|
|
154
|
-
this.constructChildren(0, false);
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
} else {
|
|
158
|
-
this.childrenCurrentList = [];
|
|
159
|
-
this.constructChildren(0, false);
|
|
160
|
-
} // if (this.childrenCurrentList.length !== 0) {
|
|
161
|
-
// this.childrenCurrentList = [];
|
|
162
|
-
// this.constructChildren(0, false);
|
|
163
|
-
//}
|
|
164
|
-
|
|
119
|
+
onResize() {
|
|
120
|
+
// if (this.childrenCurrentList.length !== 0) {
|
|
121
|
+
this.childrenCurrentList = [];
|
|
122
|
+
this.constructChildren(0, false); //}
|
|
165
123
|
} // shouldComponentUpdate() {
|
|
166
124
|
// return this.childrenCurrentList.length === 0
|
|
167
125
|
// }
|
|
@@ -181,7 +139,7 @@ export default class ResizeComponent extends React.Component {
|
|
|
181
139
|
let dataCount = 0;
|
|
182
140
|
this.noSpaceForChildren = false;
|
|
183
141
|
|
|
184
|
-
if (totalWidth
|
|
142
|
+
if (totalWidth <= moreWidth) {
|
|
185
143
|
this.noSpaceForChildren = true;
|
|
186
144
|
} else {
|
|
187
145
|
for (let i = 0; i < childrenWidthList.length; i++) {
|
|
@@ -194,14 +152,7 @@ export default class ResizeComponent extends React.Component {
|
|
|
194
152
|
|
|
195
153
|
if (totalWidth <= _childrenTotalWidth) {
|
|
196
154
|
dataCount = i;
|
|
197
|
-
|
|
198
|
-
if (dataCount == 0) {
|
|
199
|
-
this.noSpaceForChildren = true;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
155
|
break;
|
|
203
|
-
} else {
|
|
204
|
-
dataCount++;
|
|
205
156
|
}
|
|
206
157
|
}
|
|
207
158
|
}
|
|
@@ -216,40 +167,31 @@ export default class ResizeComponent extends React.Component {
|
|
|
216
167
|
let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
217
168
|
let responsive = arguments.length > 1 ? arguments[1] : undefined;
|
|
218
169
|
const {
|
|
219
|
-
childrenList
|
|
170
|
+
childrenList,
|
|
171
|
+
getData
|
|
220
172
|
} = 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
|
|
221
|
-
// let dataCount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
222
|
-
// let responsive = arguments.length > 1 ? arguments[1] : undefined;
|
|
223
|
-
//let isResize = arguments.length > 2 ? arguments[2] : false;
|
|
224
173
|
|
|
225
|
-
dataCount = dataCount || childrenList && childrenList.length;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
this.setState({
|
|
174
|
+
dataCount = dataCount || childrenList && childrenList.length;
|
|
175
|
+
getData({
|
|
229
176
|
responsiveHook: responsive,
|
|
230
177
|
validListCount: this.noSpaceForChildren ? 0 : dataCount
|
|
231
178
|
});
|
|
232
179
|
}
|
|
233
180
|
|
|
234
181
|
render() {
|
|
235
|
-
|
|
236
|
-
responsiveHook,
|
|
237
|
-
validListCount
|
|
238
|
-
} = this.state;
|
|
239
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.children({
|
|
240
|
-
responsiveHook,
|
|
241
|
-
validListCount
|
|
242
|
-
}));
|
|
182
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, this.props.children);
|
|
243
183
|
}
|
|
244
184
|
|
|
245
185
|
}
|
|
246
186
|
ResizeComponent.propTypes = {
|
|
247
187
|
children: PropTypes.node,
|
|
188
|
+
getData: PropTypes.func,
|
|
248
189
|
resizeId: PropTypes.number,
|
|
249
190
|
childrenList: PropTypes.array,
|
|
250
191
|
wrapperDivRef: PropTypes.any,
|
|
251
192
|
moreDivRef: PropTypes.any
|
|
252
193
|
};
|
|
253
194
|
ResizeComponent.defaultProps = {
|
|
195
|
+
getData: () => {},
|
|
254
196
|
resizeId: null
|
|
255
197
|
};
|
|
@@ -8,16 +8,12 @@ const mutationObserverOptions = {
|
|
|
8
8
|
function getSize(element) {
|
|
9
9
|
let {
|
|
10
10
|
offsetHeight,
|
|
11
|
-
offsetWidth
|
|
12
|
-
scrollHeight,
|
|
13
|
-
scrollWidth
|
|
11
|
+
offsetWidth
|
|
14
12
|
} = element; // const { height, width } = element.getBoundingClientRect();
|
|
15
13
|
|
|
16
14
|
return {
|
|
17
15
|
height: offsetHeight,
|
|
18
|
-
width: offsetWidth
|
|
19
|
-
scrollHeight: scrollHeight,
|
|
20
|
-
scrollWidth: scrollWidth
|
|
16
|
+
width: offsetWidth
|
|
21
17
|
};
|
|
22
18
|
}
|
|
23
19
|
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
.header{
|
|
2
|
-
background-color: #c60000;
|
|
3
|
-
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
|
|
4
2
|
color: #fff;
|
|
5
3
|
font-size: 24px;
|
|
4
|
+
background-color: #c60000;
|
|
6
5
|
padding: 10px;
|
|
7
6
|
text-align: center;
|
|
8
7
|
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);
|
|
9
12
|
}
|
|
10
13
|
.box{
|
|
11
14
|
height: 80px;
|
|
12
|
-
background-color: #ffbb11;
|
|
13
|
-
text-align: center;
|
|
14
15
|
line-height: 80px;
|
|
15
16
|
min-width: 300px;
|
|
17
|
+
background-color: #ffbb11;
|
|
18
|
+
text-align: center;
|
|
16
19
|
margin:6px;
|
|
17
20
|
padding: 0 100x;
|
|
18
21
|
}
|
|
@@ -20,10 +23,10 @@
|
|
|
20
23
|
background-color: #60de55
|
|
21
24
|
}
|
|
22
25
|
.subHeading{
|
|
23
|
-
text-align: center;
|
|
24
|
-
padding: 10px;
|
|
25
26
|
position: sticky;
|
|
26
27
|
top: 0;
|
|
28
|
+
text-align: center;
|
|
29
|
+
padding: 10px;
|
|
27
30
|
background-color: #fff
|
|
28
31
|
}
|
|
29
32
|
|
|
@@ -37,11 +40,17 @@
|
|
|
37
40
|
position: absolute;
|
|
38
41
|
width: 60%;
|
|
39
42
|
top: 50%;
|
|
40
|
-
transform: translate(-50%,-50%);
|
|
41
|
-
left: 50%;
|
|
42
43
|
border: 1px solid #aaa;
|
|
43
44
|
border-radius: 4px
|
|
44
45
|
}
|
|
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
|
+
}
|
|
45
54
|
.avatar{
|
|
46
55
|
margin:20px auto
|
|
47
56
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
2
|
|
|
3
3
|
import React, { Component } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
@@ -11,31 +11,35 @@
|
|
|
11
11
|
--ribbon_line_height: normal;
|
|
12
12
|
|
|
13
13
|
/* flag ribbon default variable */
|
|
14
|
-
--ribbon_flag_border_width: var(--zd_size14) var(--zd_size12) var(--zd_size14) 0/*rtl: var(--zd_size14) 0 var(--zd_size14) var(--zd_size12)*/;
|
|
15
14
|
|
|
16
15
|
/* tag ribbon default variables */
|
|
17
16
|
--ribbon_tag_before_top: var(--zd_size3);
|
|
18
|
-
--ribbon_tag_before_border_width: 1px 0 0 1px/*rtl: 1px 1px 0 0*/;
|
|
19
17
|
--ribbon_tag_before_border_style: solid;
|
|
20
18
|
--ribbon_tag_before_border_color: var(--zdt_ribbon_default_tag_border);
|
|
21
19
|
--ribbon_tag_before_width: var(--zd_size20);
|
|
22
20
|
--ribbon_tag_before_height: var(--zd_size20);
|
|
23
21
|
--ribbon_tag_before_left: calc(var(--zd_size10) * -1);
|
|
24
22
|
--ribbon_tag_before_border_radius: 3px 0 0 0;
|
|
23
|
+
}[dir=ltr] .varClass {
|
|
24
|
+
--ribbon_flag_border_width: var(--zd_size14) var(--zd_size12) var(--zd_size14) 0/*rtl: var(--zd_size14) 0 var(--zd_size14) var(--zd_size12)*/;
|
|
25
|
+
--ribbon_tag_before_border_width: 1px 0 0 1px/*rtl: 1px 1px 0 0*/;
|
|
26
|
+
}[dir=rtl] .varClass {
|
|
27
|
+
--ribbon_flag_border_width: var(--zd_size14) 0 var(--zd_size14) var(--zd_size12);
|
|
28
|
+
--ribbon_tag_before_border_width: 1px 1px 0 0;
|
|
25
29
|
}
|
|
26
30
|
.basic {
|
|
27
31
|
composes: varClass;
|
|
28
32
|
position: relative;
|
|
29
|
-
padding: var(--ribbon_padding);
|
|
30
33
|
color: var(--ribbon_text_color);
|
|
31
34
|
text-transform: var(--ribbon_text_transform);
|
|
32
35
|
font-size: var(--ribbon_font_size);
|
|
36
|
+
line-height: var(--ribbon_line_height);
|
|
37
|
+
padding: var(--ribbon_padding);
|
|
33
38
|
background-color: var(--ribbon_bg_color);
|
|
34
39
|
box-shadow: var(--ribbon_box_shadow);
|
|
35
40
|
border-width: var(--ribbon_border_width);
|
|
36
41
|
border-style: solid;
|
|
37
42
|
border-color: var(--ribbon_border_color);
|
|
38
|
-
line-height: var(--ribbon_line_height);
|
|
39
43
|
}
|
|
40
44
|
.default,
|
|
41
45
|
.flag,
|
|
@@ -49,11 +53,11 @@
|
|
|
49
53
|
|
|
50
54
|
.default {
|
|
51
55
|
composes: semibold from '../common/common.module.css';
|
|
52
|
-
text-align: center;
|
|
53
56
|
display: block;
|
|
54
57
|
--ribbon_padding: var(--zd_size5) var(--zd_size20);
|
|
55
58
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
56
59
|
--ribbon_text_transform: uppercase;
|
|
60
|
+
text-align: center;
|
|
57
61
|
}
|
|
58
62
|
.small {
|
|
59
63
|
--ribbon_font_size: var(--zd_font_size9);
|
|
@@ -168,24 +172,37 @@
|
|
|
168
172
|
.flag {
|
|
169
173
|
composes: dotted from '../common/common.module.css';
|
|
170
174
|
display: block;
|
|
171
|
-
--ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6)/*rtl: var(--zd_size4) var(--zd_size6) var(--zd_size4) var(--zd_size24)*/;
|
|
172
175
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
173
176
|
--ribbon_line_height: var(--zd_size20);
|
|
174
177
|
--ribbon_text_transform: uppercase;
|
|
175
178
|
}
|
|
179
|
+
|
|
180
|
+
[dir=ltr] .flag {
|
|
181
|
+
--ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6)/*rtl: var(--zd_size4) var(--zd_size6) var(--zd_size4) var(--zd_size24)*/;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
[dir=rtl] .flag {
|
|
185
|
+
--ribbon_padding: var(--zd_size4) var(--zd_size6) var(--zd_size4) var(--zd_size24);
|
|
186
|
+
}
|
|
176
187
|
.flag::after {
|
|
177
188
|
position: absolute;
|
|
178
189
|
top: -1px;
|
|
179
|
-
right: -1px;
|
|
180
190
|
bottom: -1px;
|
|
181
191
|
content: '';
|
|
182
192
|
width: var(--zd_size12);
|
|
183
193
|
border-style: solid;
|
|
184
|
-
border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border)
|
|
185
|
-
var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border);
|
|
186
194
|
transform: translateZ(0);
|
|
187
195
|
border-width: var(--ribbon_flag_border_width);
|
|
188
196
|
}
|
|
197
|
+
[dir=ltr] .flag::after {
|
|
198
|
+
right: -1px;
|
|
199
|
+
border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border)
|
|
200
|
+
var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border);
|
|
201
|
+
}
|
|
202
|
+
[dir=rtl] .flag::after {
|
|
203
|
+
left: -1px;
|
|
204
|
+
border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border);
|
|
205
|
+
}
|
|
189
206
|
.plain {
|
|
190
207
|
display: inline-block;
|
|
191
208
|
composes: semibold from '../common/common.module.css';
|
|
@@ -193,11 +210,11 @@
|
|
|
193
210
|
.ribbon {
|
|
194
211
|
composes: semibold from '../common/common.module.css';
|
|
195
212
|
display: block;
|
|
196
|
-
text-align: center;
|
|
197
213
|
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
198
214
|
--ribbon_text_transform: uppercase;
|
|
199
215
|
--ribbon_padding: var(--zd_size6) var(--zd_size10);
|
|
200
216
|
--ribbon_line_height: var(--zd_size20);
|
|
217
|
+
text-align: center;
|
|
201
218
|
}
|
|
202
219
|
.ribbon::after,
|
|
203
220
|
.ribbon::before {
|
|
@@ -206,51 +223,81 @@
|
|
|
206
223
|
top: 100%;
|
|
207
224
|
height: var(--zd_size10);
|
|
208
225
|
width: var(--zd_size10);
|
|
226
|
+
}
|
|
227
|
+
.ribbon::after, .ribbon::before {
|
|
209
228
|
border-style: solid;
|
|
210
229
|
border-width: 5px;
|
|
230
|
+
background-color: inherit;
|
|
231
|
+
}
|
|
232
|
+
[dir=ltr] .ribbon::after, [dir=ltr] .ribbon::before {
|
|
211
233
|
border-color: transparent transparent var(--zdt_ribbon_flag_white_border)
|
|
212
234
|
var(--zdt_ribbon_flag_white_border);
|
|
213
|
-
background-color: inherit;
|
|
214
235
|
}
|
|
215
|
-
.ribbon::after {
|
|
236
|
+
[dir=rtl] .ribbon::after, [dir=rtl] .ribbon::before {
|
|
237
|
+
border-color: transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border) transparent;
|
|
238
|
+
}
|
|
239
|
+
[dir=ltr] .ribbon::after {
|
|
216
240
|
right: 0;
|
|
217
241
|
}
|
|
218
|
-
.ribbon::
|
|
242
|
+
[dir=rtl] .ribbon::after {
|
|
243
|
+
left: 0;
|
|
244
|
+
}
|
|
245
|
+
[dir=ltr] .ribbon::before {
|
|
219
246
|
left: 0;
|
|
220
247
|
transform: rotateY(180deg);
|
|
221
248
|
}
|
|
249
|
+
[dir=rtl] .ribbon::before {
|
|
250
|
+
right: 0;
|
|
251
|
+
transform: rotateY(-180deg);
|
|
252
|
+
}
|
|
222
253
|
|
|
223
254
|
.tag {
|
|
224
255
|
composes: semibold from '../common/common.module.css';
|
|
225
256
|
display: inline-block;
|
|
257
|
+
height: var(--zd_size28);
|
|
226
258
|
border-style: solid;
|
|
227
259
|
border-color: var(--zdt_ribbon_default_tag_border);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
[dir=ltr] .tag {
|
|
228
263
|
border-width: 1px 1px 1px 0/*rtl: 1px 0 1px 1px*/;
|
|
229
264
|
border-radius: 0 3px 3px 0/*rtl: 3px 0 0 3px*/;
|
|
230
265
|
margin-left: var(--zd_size13);
|
|
231
|
-
height: var(--zd_size28);
|
|
232
266
|
padding: var(--zd_size6) var(--zd_size8) var(--zd_size6) var(--zd_size5)/*rtl: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8)*/;
|
|
233
267
|
}
|
|
268
|
+
|
|
269
|
+
[dir=rtl] .tag {
|
|
270
|
+
border-width: 1px 0 1px 1px;
|
|
271
|
+
border-radius: 3px 0 0 3px;
|
|
272
|
+
margin-right: var(--zd_size13);
|
|
273
|
+
padding: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8);
|
|
274
|
+
}
|
|
234
275
|
.tag::before {
|
|
235
276
|
position: absolute;
|
|
236
277
|
content: '';
|
|
237
|
-
transform: rotate(-45deg);
|
|
238
|
-
background-color: inherit;
|
|
239
278
|
top: var(--ribbon_tag_before_top);
|
|
279
|
+
width: var(--ribbon_tag_before_width);
|
|
280
|
+
height: var(--ribbon_tag_before_height);
|
|
281
|
+
background-color: inherit;
|
|
240
282
|
border-style: var(--ribbon_tag_before_border_style);
|
|
241
283
|
border-color: var(--ribbon_tag_before_border_color);
|
|
242
284
|
border-width: var(--ribbon_tag_before_border_width);
|
|
243
|
-
width: var(--ribbon_tag_before_width);
|
|
244
|
-
height: var(--ribbon_tag_before_height);
|
|
245
|
-
left: var(--ribbon_tag_before_left);
|
|
246
285
|
border-radius: var(--ribbon_tag_before_border_radius);
|
|
247
286
|
}
|
|
287
|
+
[dir=ltr] .tag::before {
|
|
288
|
+
transform: rotate(-45deg);
|
|
289
|
+
left: var(--ribbon_tag_before_left);
|
|
290
|
+
}
|
|
291
|
+
[dir=rtl] .tag::before {
|
|
292
|
+
transform: rotate(45deg);
|
|
293
|
+
right: var(--ribbon_tag_before_left);
|
|
294
|
+
}
|
|
248
295
|
|
|
249
296
|
.box {
|
|
250
297
|
display: inline-block;
|
|
251
|
-
border-radius: 3px;
|
|
252
298
|
--ribbon_bg_color: var(--zdt_ribbon_white_bg);
|
|
253
299
|
--ribbon_padding: var(--zd_size5) var(--zd_size8);
|
|
300
|
+
border-radius: 3px;
|
|
254
301
|
}
|
|
255
302
|
.stamp {
|
|
256
303
|
display: inline-block;
|
|
@@ -259,15 +306,15 @@
|
|
|
259
306
|
}
|
|
260
307
|
.sticker {
|
|
261
308
|
display: block;
|
|
309
|
+
height: var(--zd_size18);
|
|
310
|
+
line-height: var(--zd_size11);
|
|
311
|
+
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
312
|
+
--ribbon_text_transform: uppercase;
|
|
262
313
|
text-align: center;
|
|
263
314
|
border-width: 1px 0;
|
|
264
315
|
border-style: solid;
|
|
265
316
|
border-color: var(--zdt_ribbon_flag_white_border);
|
|
266
|
-
height: var(--zd_size18);
|
|
267
317
|
padding: var(--zd_size3) var(--zd_size10);
|
|
268
|
-
line-height: var(--zd_size11);
|
|
269
|
-
--ribbon_text_color: var(--zdt_ribbon_white_text);
|
|
270
|
-
--ribbon_text_transform: uppercase;
|
|
271
318
|
}
|
|
272
319
|
.after,
|
|
273
320
|
.before {
|
|
@@ -276,12 +323,18 @@
|
|
|
276
323
|
bottom: 0;
|
|
277
324
|
width: var(--zd_size10);
|
|
278
325
|
}
|
|
279
|
-
.after {
|
|
326
|
+
[dir=ltr] .after {
|
|
280
327
|
right: calc(var(--zd_size2) * -1);
|
|
281
328
|
}
|
|
282
|
-
.
|
|
329
|
+
[dir=rtl] .after {
|
|
330
|
+
left: calc(var(--zd_size2) * -1);
|
|
331
|
+
}
|
|
332
|
+
[dir=ltr] .before {
|
|
283
333
|
left: calc(var(--zd_size8) * -1);
|
|
284
334
|
}
|
|
335
|
+
[dir=rtl] .before {
|
|
336
|
+
right: calc(var(--zd_size8) * -1);
|
|
337
|
+
}
|
|
285
338
|
.after::after,
|
|
286
339
|
.after::before,
|
|
287
340
|
.before::after,
|
|
@@ -290,9 +343,16 @@
|
|
|
290
343
|
height: var(--zd_size7);
|
|
291
344
|
width: var(--zd_size7);
|
|
292
345
|
content: '';
|
|
293
|
-
|
|
346
|
+
}
|
|
347
|
+
.after::after, .after::before, .before::after, .before::before {
|
|
294
348
|
background-color: var(--zdt_ribbon_white_bg);
|
|
295
349
|
}
|
|
350
|
+
[dir=ltr] .after::after, [dir=ltr] .after::before, [dir=ltr] .before::after, [dir=ltr] .before::before {
|
|
351
|
+
transform: rotate(45deg);
|
|
352
|
+
}
|
|
353
|
+
[dir=rtl] .after::after, [dir=rtl] .after::before, [dir=rtl] .before::after, [dir=rtl] .before::before {
|
|
354
|
+
transform: rotate(-45deg);
|
|
355
|
+
}
|
|
296
356
|
.after::after,
|
|
297
357
|
.before::after {
|
|
298
358
|
top: 0;
|
|
@@ -303,10 +363,15 @@
|
|
|
303
363
|
}
|
|
304
364
|
.children {
|
|
305
365
|
display: inline-block;
|
|
306
|
-
margin-right: var(--zd_size4);
|
|
307
366
|
vertical-align: top;
|
|
308
367
|
line-height: 0;
|
|
309
368
|
}
|
|
369
|
+
[dir=ltr] .children {
|
|
370
|
+
margin-right: var(--zd_size4);
|
|
371
|
+
}
|
|
372
|
+
[dir=rtl] .children {
|
|
373
|
+
margin-left: var(--zd_size4);
|
|
374
|
+
}
|
|
310
375
|
.childText {
|
|
311
376
|
position: relative;
|
|
312
377
|
}
|