@zohodesk/components 1.0.0-temp-191 → 1.0.0-temp-192

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.
Files changed (193) hide show
  1. package/.cli/propValidation_report.html +1 -1
  2. package/README.md +4 -0
  3. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +29 -2
  4. package/assets/Appearance/light/mode/Component_LightMode.module.css +29 -2
  5. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +29 -2
  6. package/es/AppContainer/AppContainer.js +9 -10
  7. package/es/AppContainer/AppContainer.module.css +2 -2
  8. package/es/Avatar/Avatar.js +5 -4
  9. package/es/Avatar/Avatar.module.css +44 -26
  10. package/es/AvatarTeam/AvatarTeam.js +7 -7
  11. package/es/AvatarTeam/AvatarTeam.module.css +62 -74
  12. package/es/Button/Button.js +6 -5
  13. package/es/Button/css/Button.module.css +156 -100
  14. package/es/Buttongroup/Buttongroup.module.css +50 -17
  15. package/es/CheckBox/CheckBox.js +8 -8
  16. package/es/CheckBox/CheckBox.module.css +35 -60
  17. package/es/DateTime/DateTime.module.css +85 -57
  18. package/es/DateTime/DateWidget.module.css +11 -7
  19. package/es/DateTime/YearView.module.css +34 -21
  20. package/es/DropBox/DropBox.js +11 -10
  21. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
  22. package/es/DropBox/css/DropBox.module.css +23 -6
  23. package/es/DropDown/DropDown.js +1 -2
  24. package/es/DropDown/DropDown.module.css +2 -2
  25. package/es/DropDown/DropDownHeading.module.css +15 -15
  26. package/es/DropDown/DropDownItem.module.css +40 -22
  27. package/es/DropDown/DropDownSearch.module.css +3 -3
  28. package/es/DropDown/DropDownSeparator.module.css +2 -2
  29. package/es/Heading/Heading.module.css +2 -2
  30. package/es/Label/Label.module.css +11 -23
  31. package/es/Label/LabelColors.module.css +1 -7
  32. package/es/Layout/Layout.module.css +15 -15
  33. package/es/ListItem/ListContainer.js +5 -6
  34. package/es/ListItem/ListItem.js +7 -6
  35. package/es/ListItem/ListItem.module.css +104 -55
  36. package/es/ListItem/ListItemWithAvatar.js +8 -7
  37. package/es/ListItem/ListItemWithCheckBox.js +5 -4
  38. package/es/ListItem/ListItemWithIcon.js +7 -6
  39. package/es/ListItem/ListItemWithRadio.js +5 -4
  40. package/es/Modal/Modal.js +5 -4
  41. package/es/MultiSelect/AdvancedGroupMultiSelect.js +9 -3
  42. package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
  43. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
  44. package/es/MultiSelect/MultiSelect.js +9 -3
  45. package/es/MultiSelect/MultiSelect.module.css +55 -69
  46. package/es/MultiSelect/MultiSelectWithAvatar.js +6 -3
  47. package/es/MultiSelect/SelectedOptions.js +8 -6
  48. package/es/MultiSelect/SelectedOptions.module.css +11 -5
  49. package/es/MultiSelect/Suggestions.js +16 -10
  50. package/es/MultiSelect/props/defaultProps.js +9 -3
  51. package/es/MultiSelect/props/propTypes.js +7 -3
  52. package/es/PopOver/PopOver.module.css +2 -2
  53. package/es/Popup/Popup.js +4 -3
  54. package/es/Radio/Radio.js +8 -8
  55. package/es/Radio/Radio.module.css +22 -37
  56. package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  57. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  58. package/es/Ribbon/Ribbon.module.css +143 -64
  59. package/es/RippleEffect/RippleEffect.module.css +9 -27
  60. package/es/Select/GroupSelect.js +9 -3
  61. package/es/Select/Select.js +5 -4
  62. package/es/Select/Select.module.css +33 -22
  63. package/es/Select/SelectWithAvatar.js +9 -3
  64. package/es/Select/SelectWithIcon.js +9 -3
  65. package/es/Select/props/defaultProps.js +6 -3
  66. package/es/Select/props/propTypes.js +6 -3
  67. package/es/Stencils/Stencils.module.css +32 -14
  68. package/es/Switch/Switch.js +8 -8
  69. package/es/Switch/Switch.module.css +30 -35
  70. package/es/Tab/Tab.js +5 -4
  71. package/es/Tab/Tab.module.css +28 -39
  72. package/es/Tab/TabContentWrapper.js +5 -4
  73. package/es/Tab/TabWrapper.js +4 -2
  74. package/es/Tab/Tabs.js +16 -16
  75. package/es/Tab/Tabs.module.css +51 -29
  76. package/es/Tag/Tag.module.css +60 -91
  77. package/es/TextBox/TextBox.js +5 -5
  78. package/es/TextBox/TextBox.module.css +19 -23
  79. package/es/TextBoxIcon/TextBoxIcon.js +4 -2
  80. package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
  81. package/es/Textarea/Textarea.js +6 -4
  82. package/es/Textarea/Textarea.module.css +30 -60
  83. package/es/Tooltip/Tooltip.module.css +12 -13
  84. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  85. package/es/common/animation.module.css +227 -29
  86. package/es/common/avatarsizes.module.css +16 -16
  87. package/es/common/basicReset.module.css +5 -15
  88. package/es/common/common.module.css +82 -36
  89. package/es/common/customscroll.module.css +33 -12
  90. package/es/common/transition.module.css +50 -10
  91. package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
  92. package/es/semantic/Button/semanticButton.module.css +3 -3
  93. package/es/v1/AppContainer/AppContainer.js +9 -10
  94. package/es/v1/Avatar/Avatar.js +5 -4
  95. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  96. package/es/v1/Button/Button.js +6 -5
  97. package/es/v1/CheckBox/CheckBox.js +8 -8
  98. package/es/v1/DropBox/DropBox.js +11 -10
  99. package/es/v1/DropDown/DropDown.js +1 -2
  100. package/es/v1/ListItem/ListContainer.js +5 -6
  101. package/es/v1/ListItem/ListItem.js +5 -4
  102. package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
  103. package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
  104. package/es/v1/ListItem/ListItemWithIcon.js +5 -4
  105. package/es/v1/ListItem/ListItemWithRadio.js +5 -4
  106. package/es/v1/Modal/Modal.js +5 -4
  107. package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
  108. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
  109. package/es/v1/MultiSelect/SelectedOptions.js +8 -6
  110. package/es/v1/MultiSelect/Suggestions.js +8 -6
  111. package/es/v1/MultiSelect/props/defaultProps.js +4 -2
  112. package/es/v1/Popup/Popup.js +4 -3
  113. package/es/v1/Radio/Radio.js +8 -8
  114. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  115. package/es/v1/Select/Select.js +5 -4
  116. package/es/v1/Switch/Switch.js +8 -8
  117. package/es/v1/Tab/Tab.js +5 -4
  118. package/es/v1/Tab/TabContentWrapper.js +5 -4
  119. package/es/v1/Tab/TabWrapper.js +4 -2
  120. package/es/v1/Tab/Tabs.js +16 -16
  121. package/es/v1/Tab/v1Tab.module.css +28 -39
  122. package/es/v1/Tab/v1Tabs.module.css +51 -29
  123. package/es/v1/TextBox/TextBox.js +5 -5
  124. package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
  125. package/es/v1/Textarea/Textarea.js +6 -4
  126. package/es/v1/Typography/css/Typography.module.css +39 -33
  127. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  128. package/lib/AppContainer/AppContainer.module.css +2 -2
  129. package/lib/Avatar/Avatar.module.css +44 -26
  130. package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
  131. package/lib/Button/css/Button.module.css +156 -100
  132. package/lib/Buttongroup/Buttongroup.module.css +50 -17
  133. package/lib/CheckBox/CheckBox.module.css +35 -60
  134. package/lib/DateTime/DateTime.module.css +85 -57
  135. package/lib/DateTime/DateWidget.module.css +11 -7
  136. package/lib/DateTime/YearView.module.css +34 -21
  137. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
  138. package/lib/DropBox/css/DropBox.module.css +23 -6
  139. package/lib/DropDown/DropDown.module.css +2 -2
  140. package/lib/DropDown/DropDownHeading.module.css +15 -15
  141. package/lib/DropDown/DropDownItem.module.css +40 -22
  142. package/lib/DropDown/DropDownSearch.module.css +3 -3
  143. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  144. package/lib/Heading/Heading.module.css +2 -2
  145. package/lib/Label/Label.module.css +11 -23
  146. package/lib/Label/LabelColors.module.css +1 -7
  147. package/lib/Layout/Layout.module.css +15 -15
  148. package/lib/ListItem/ListItem.js +2 -2
  149. package/lib/ListItem/ListItem.module.css +104 -55
  150. package/lib/ListItem/ListItemWithAvatar.js +3 -3
  151. package/lib/ListItem/ListItemWithIcon.js +2 -2
  152. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +7 -3
  153. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
  154. package/lib/MultiSelect/MultiSelect.js +8 -3
  155. package/lib/MultiSelect/MultiSelect.module.css +55 -69
  156. package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
  157. package/lib/MultiSelect/SelectedOptions.module.css +11 -5
  158. package/lib/MultiSelect/Suggestions.js +8 -4
  159. package/lib/MultiSelect/props/defaultProps.js +9 -3
  160. package/lib/MultiSelect/props/propTypes.js +9 -6
  161. package/lib/PopOver/PopOver.module.css +2 -2
  162. package/lib/Radio/Radio.module.css +22 -37
  163. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  164. package/lib/Ribbon/Ribbon.module.css +143 -64
  165. package/lib/RippleEffect/RippleEffect.module.css +9 -27
  166. package/lib/Select/GroupSelect.js +8 -3
  167. package/lib/Select/Select.module.css +33 -22
  168. package/lib/Select/SelectWithAvatar.js +8 -3
  169. package/lib/Select/SelectWithIcon.js +8 -3
  170. package/lib/Select/props/defaultProps.js +5 -3
  171. package/lib/Select/props/propTypes.js +6 -3
  172. package/lib/Stencils/Stencils.module.css +32 -14
  173. package/lib/Switch/Switch.module.css +30 -35
  174. package/lib/Tab/Tab.module.css +28 -39
  175. package/lib/Tab/Tabs.module.css +51 -29
  176. package/lib/Tag/Tag.module.css +60 -91
  177. package/lib/TextBox/TextBox.module.css +19 -23
  178. package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
  179. package/lib/Textarea/Textarea.module.css +30 -60
  180. package/lib/Tooltip/Tooltip.module.css +12 -13
  181. package/lib/common/animation.module.css +227 -29
  182. package/lib/common/avatarsizes.module.css +16 -16
  183. package/lib/common/basicReset.module.css +5 -15
  184. package/lib/common/common.module.css +82 -36
  185. package/lib/common/customscroll.module.css +33 -12
  186. package/lib/common/transition.module.css +50 -10
  187. package/lib/semantic/Button/semanticButton.module.css +3 -3
  188. package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
  189. package/lib/v1/Tab/v1Tab.module.css +28 -39
  190. package/lib/v1/Tab/v1Tabs.module.css +51 -29
  191. package/lib/v1/Typography/css/Typography.module.css +39 -33
  192. package/package.json +3 -3
  193. package/result.json +1 -0
@@ -104,7 +104,8 @@ export const MultiSelect_propTypes = {
104
104
  needSelectAll: PropTypes.bool,
105
105
  selectAllText: PropTypes.string,
106
106
  setAriaId: PropTypes.string,
107
- ariaErrorId: PropTypes.string
107
+ ariaErrorId: PropTypes.string,
108
+ customProps: PropTypes.string
108
109
  };
109
110
  export const MultiSelectHeader_propTypes = {
110
111
  dataId: PropTypes.string,
@@ -119,6 +120,7 @@ export const MultiSelectWithAvatar_propTypes = {
119
120
  photoURL: PropTypes.string
120
121
  }))]).isRequired,
121
122
  imageField: PropTypes.string,
123
+ needMultiLineText: PropTypes.string,
122
124
  customProps: PropTypes.shape({
123
125
  SuggestionsProps: PropTypes.object,
124
126
  DropBoxProps: PropTypes.object
@@ -168,7 +170,8 @@ export const Suggestions_propTypes = {
168
170
  logo: PropTypes.string,
169
171
  optionType: PropTypes.string,
170
172
  listItemProps: PropTypes.object
171
- }))
173
+ })),
174
+ needMultiLineText: PropTypes.bool
172
175
  };
173
176
  export const AdvancedGroupMultiSelect_propTypes = {
174
177
  animationStyle: PropTypes.string,
@@ -234,7 +237,8 @@ export const AdvancedGroupMultiSelect_propTypes = {
234
237
  needToCloseOnSelect: PropTypes.func,
235
238
  searchStr: PropTypes.string,
236
239
  children: PropTypes.node,
237
- dataSelectorId: PropTypes.string
240
+ dataSelectorId: PropTypes.string,
241
+ customProps: PropTypes.string
238
242
  };
239
243
  export const AdvancedMultiSelect_propTypes = { ...MultiSelect_propTypes,
240
244
  selectedOptionDetails: PropTypes.string,
@@ -1,9 +1,9 @@
1
1
  .popup {
2
2
  position: relative;
3
- background-color: var(--zdt_base_bg);
3
+ background-color: var(--zdt_popover_default_bg);
4
4
  }
5
5
 
6
6
  .target {
7
- cursor: pointer;
8
7
  composes: offSelection from '../common/common.module.css';
8
+ cursor: pointer;
9
9
  }
package/es/Popup/Popup.js CHANGED
@@ -1,3 +1,5 @@
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
+
1
3
  /**** Libraries ****/
2
4
  import React from 'react';
3
5
  import PropTypes from 'prop-types';
@@ -621,15 +623,14 @@ const Popup = function (Component) {
621
623
  isPopupOpen
622
624
  } = this.state;
623
625
  const localState = isPopupReady ? this.state : {};
624
- return /*#__PURE__*/React.createElement(Component, { ...this.props,
625
- ...this.state,
626
+ return /*#__PURE__*/React.createElement(Component, _extends({}, this.props, this.state, {
626
627
  openPopupOnly: this.openPopupOnly,
627
628
  closePopupOnly: this.closePopupOnly,
628
629
  togglePopup: this.togglePopup,
629
630
  removeClose: this.removeClose,
630
631
  getTargetRef: this.getTargetRef,
631
632
  getContainerRef: this.getContainerRef
632
- });
633
+ }));
633
634
  }
634
635
 
635
636
  }
package/es/Radio/Radio.js CHANGED
@@ -1,3 +1,5 @@
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
+
1
3
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['small', 'medium'] }] */
2
4
  import React from 'react';
3
5
  import { defaultProps } from './props/defaultProps';
@@ -71,7 +73,7 @@ export default class Radio extends React.Component {
71
73
  ContainerProps = {},
72
74
  LabelProps = {}
73
75
  } = customProps;
74
- return /*#__PURE__*/React.createElement(Container, {
76
+ return /*#__PURE__*/React.createElement(Container, _extends({
75
77
  dataId: value ? value.toLowerCase() : 'RadioComp',
76
78
  isCover: false,
77
79
  isInline: text ? false : true,
@@ -87,9 +89,8 @@ export default class Radio extends React.Component {
87
89
  "aria-Hidden": ariaHidden,
88
90
  "aria-label": ariaLabel,
89
91
  "aria-labelledby": ariaLabelledby,
90
- "aria-readonly": ariaReadonly,
91
- ...ContainerProps
92
- }, /*#__PURE__*/React.createElement(Box, {
92
+ "aria-readonly": ariaReadonly
93
+ }, ContainerProps), /*#__PURE__*/React.createElement(Box, {
93
94
  className: `${style.radio} ${checked ? `${style[`rdBox${palette}`]}` : ''}
94
95
  ${isReadOnly || disabled ? '' : `${style[`hover${palette}`]}`} ${style[size]} ${isFilled ? style.filled : ''} ${style[`centerPath${palette}`]} ${customRadio}`
95
96
  }, /*#__PURE__*/React.createElement("input", {
@@ -115,7 +116,7 @@ export default class Radio extends React.Component {
115
116
  }) : null))), text && /*#__PURE__*/React.createElement(Box, {
116
117
  flexible: true,
117
118
  className: style.text
118
- }, /*#__PURE__*/React.createElement(Label, {
119
+ }, /*#__PURE__*/React.createElement(Label, _extends({
119
120
  text: text,
120
121
  palette: labelPalette,
121
122
  size: labelSize,
@@ -125,9 +126,8 @@ export default class Radio extends React.Component {
125
126
  variant: variant,
126
127
  title: toolTip ? toolTip : text,
127
128
  customClass: `${checked && active ? `${style[`${palette}checkedActive`]}` : ''}
128
- ${style[`${palette}Label`]} ${accessMode} ${customLabel}`,
129
- ...LabelProps
130
- })), children);
129
+ ${style[`${palette}Label`]} ${accessMode} ${customLabel}`
130
+ }, LabelProps))), children);
131
131
  }
132
132
 
133
133
  }
@@ -1,104 +1,91 @@
1
1
  .varClass {
2
2
  /* radio default variables */
3
- --radio_width: 16px;
4
- --radio_height: 16px;
3
+ --radio_width: var(--zd_size16);
4
+ --radio_height: var(--zd_size16);
5
5
  --radio_bg_color: none;
6
6
  --radio_stroke_width: 2px;
7
7
  --radio_stroke_color: var(--zdt_radio_default_stroke);
8
8
  --radio_fill: none;
9
9
  --radio_inner_stroke_width: 0;
10
- --radio_label_margin: 0 0 0 6px
11
- /*rtl: 0 6px 0 0*/
12
- ;
10
+ }[dir=ltr] .varClass {
11
+ --radio_label_margin: 0 0 0 var(--zd_size6);
12
+ }[dir=rtl] .varClass {
13
+ --radio_label_margin: 0 var(--zd_size6) 0 0;
13
14
  }
14
-
15
15
  .container {
16
16
  composes: varClass;
17
17
  }
18
-
19
18
  .pointer {
20
19
  cursor: pointer;
21
20
  }
22
-
23
- .readonly,
24
- .disabled {
21
+ .readonly, .disabled {
25
22
  cursor: not-allowed;
26
23
  }
27
-
28
24
  .disabled {
29
25
  opacity: 0.7
30
26
  }
31
-
32
27
  .radio {
33
28
  composes: offSelection from '../common/common.module.css';
34
29
  width: var(--radio_width);
35
30
  height: var(--radio_height);
31
+ stroke: var(--radio_stroke_color);
36
32
  background: var(--radio_bg_color);
37
33
  border-radius: 50%;
38
- stroke: var(--radio_stroke_color);
39
34
  }
40
-
41
35
  .radio,
42
36
  .centerPath {
43
37
  fill: var(--radio_fill);
44
38
  }
45
-
46
39
  .filled {
47
- --radio_bg_color: var(--zdt_base_bg);
40
+ --radio_bg_color: var(--zdt_radio_default_bg);
48
41
  }
49
42
 
50
43
  .medium {
51
- --radio_width: 16px;
52
- --radio_height: 16px;
44
+ --radio_width: var(--zd_size16);
45
+ --radio_height: var(--zd_size16);
53
46
  }
54
-
55
47
  .small {
56
- --radio_width: 13px;
57
- --radio_height: 13px;
48
+ --radio_width: var(--zd_size13);
49
+ --radio_height: var(--zd_size13);
58
50
  }
59
-
60
51
  .radioLabel {
61
- font-size: 0;
52
+ font-size: 0 ;
62
53
  display: block;
63
54
  }
64
-
65
55
  .rdBox {
66
56
  fill: none;
67
57
  stroke-width: var(--radio_stroke_width);
68
58
  stroke-linecap: round;
69
59
  stroke: inherit;
70
60
  }
71
-
72
61
  .centerPath {
73
62
  --radio_fill: inherit;
74
- transform-origin: center;
75
63
  stroke-width: var(--radio_inner_stroke_width);
64
+ transform-origin: center;
76
65
  }
77
-
78
- .checked .centerPath {
66
+ [dir=ltr] .checked .centerPath {
67
+ animation: circleAnimate var(--zd_transition3) ease forwards;
68
+ }
69
+ [dir=rtl] .checked .centerPath {
79
70
  animation: circleAnimate var(--zd_transition3) ease forwards;
80
71
  }
81
-
82
72
  .rdBoxprimary,
83
73
  .hoverEfffect:hover .hoverprimary
84
-
85
74
  /* .hoverEfffect:focus .hoverprimary */
86
- {
75
+ {
87
76
  --radio_stroke_color: var(--zdt_radio_primary_stroke);
88
77
  }
89
78
 
90
79
  .rdBoxdanger,
91
80
  .hoverEfffect:hover .hoverdanger
92
-
93
81
  /* .hoverEfffect:focus .hoverdanger */
94
- {
82
+ {
95
83
  --radio_stroke_color: var(--zdt_radio_danger_stroke);
96
84
  }
97
85
 
98
86
  .centerPathprimary {
99
87
  --radio_fill: var(--zdt_radio_primary_fill);
100
88
  }
101
-
102
89
  .centerPathdanger {
103
90
  --radio_fill: var(--zdt_radio_danger_fill);
104
91
  }
@@ -118,13 +105,11 @@
118
105
  .text {
119
106
  margin: var(--radio_label_margin);
120
107
  }
121
-
122
108
  @keyframes circleAnimate {
123
109
  0% {
124
110
  transform: scale(0);
125
111
  }
126
-
127
112
  100% {
128
113
  transform: scale(1);
129
114
  }
130
- }
115
+ }
@@ -1,3 +1,5 @@
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
+
1
3
  import React, { Component } from 'react';
2
4
  import { defaultProps } from './props/defaultProps';
3
5
  import { propTypes } from './props/propTypes';
@@ -43,9 +45,9 @@ export default class ResponsiveDropBox extends Component {
43
45
  customMobileDropBoxWrap: `${customMobileDropBoxWrap}`,
44
46
  customResponsiveContainer: `${customResponsiveContainer}`
45
47
  };
46
- return /*#__PURE__*/React.createElement(DropBox, { ...this.props,
48
+ return /*#__PURE__*/React.createElement(DropBox, _extends({}, this.props, {
47
49
  customClass: dropBoxClasses
48
- }, /*#__PURE__*/React.createElement(ResponsiveReceiver, {
50
+ }), /*#__PURE__*/React.createElement(ResponsiveReceiver, {
49
51
  query: this.responsiveFunc,
50
52
  responsiveId: "Helmet"
51
53
  }, _ref2 => {
@@ -1,6 +1,6 @@
1
1
  .dropBoxContainer {
2
- max-height: 70vh;
2
+ max-height: 70vh ;
3
3
  }
4
4
  .boxPadding{
5
- padding-bottom: 10px;
5
+ padding-bottom: var(--zd_size10) ;
6
6
  }
@@ -1,9 +1,9 @@
1
1
  .varClass {
2
2
  /* ribbon default variables */
3
3
  --ribbon_padding: 0;
4
- --ribbon_text_color: var(--zdt_base_color);
4
+ --ribbon_text_color: var(--zdt_ribbon_default_text);
5
5
  --ribbon_text_transform: none;
6
- --ribbon_font_size: 13px;
6
+ --ribbon_font_size: var(--zd_font_size13);
7
7
  --ribbon_bg_color: var(--zdt_ribbon_default_bg);
8
8
  --ribbon_box_shadow: none;
9
9
  --ribbon_border_width: 0;
@@ -11,37 +11,41 @@
11
11
  --ribbon_line_height: normal;
12
12
 
13
13
  /* flag ribbon default variable */
14
+
15
+ /* tag ribbon default variables */
16
+ --ribbon_tag_before_top: var(--zd_size3);
17
+ --ribbon_tag_before_border_style: solid;
18
+ --ribbon_tag_before_border_color: var(--zdt_ribbon_default_tag_border);
19
+ --ribbon_tag_before_width: var(--zd_size20);
20
+ --ribbon_tag_before_height: var(--zd_size20);
21
+ --ribbon_tag_before_left: calc( var(--zd_size10) * -1 );
22
+ --ribbon_tag_before_border_radius: 3px 0 0 0;
23
+ }[dir=ltr] .varClass {
14
24
  --ribbon_flag_border_width: 14px 12px 14px 0
15
25
  /*rtl: 14px 0 14px 12px*/
16
26
  ;
17
-
18
- /* tag ribbon default variables */
19
- --ribbon_tag_before_top: 3px;
20
27
  --ribbon_tag_before_border_width: 1px 0 0 1px
21
28
  /*rtl: 1px 1px 0 0*/
22
29
  ;
23
- --ribbon_tag_before_border_style: solid;
24
- --ribbon_tag_before_border_color: var(--zdt_ribbon_default_tag_border);
25
- --ribbon_tag_before_width: 20px;
26
- --ribbon_tag_before_height: 20px;
27
- --ribbon_tag_before_left: -10px;
28
- --ribbon_tag_before_border_radius: 3px 0 0 0;
30
+ }[dir=rtl] .varClass {
31
+ --ribbon_flag_border_width: 14px 12px 14px 0 ;
32
+ --ribbon_tag_before_border_width: 1px 0 0 1px ;
29
33
  }
30
34
 
31
35
  /* css:lineheight-validation:ignore */
32
36
  .basic {
33
37
  composes: varClass;
34
38
  position: relative;
35
- padding: var(--ribbon_padding);
36
39
  color: var(--ribbon_text_color);
37
40
  text-transform: var(--ribbon_text_transform);
38
41
  font-size: var(--ribbon_font_size);
42
+ line-height: var(--ribbon_line_height);
43
+ padding: var(--ribbon_padding);
39
44
  background-color: var(--ribbon_bg_color);
40
45
  box-shadow: var(--ribbon_box_shadow);
41
46
  border-width: var(--ribbon_border_width);
42
47
  border-style: solid;
43
48
  border-color: var(--ribbon_border_color);
44
- line-height: var(--ribbon_line_height);
45
49
  }
46
50
 
47
51
  .default,
@@ -56,27 +60,27 @@
56
60
 
57
61
  .default {
58
62
  composes: semibold from '../common/common.module.css';
59
- text-align: center;
60
63
  display: block;
61
- --ribbon_padding: 5px 20px;
64
+ --ribbon_padding: var(--zd_size5) var(--zd_size20);
62
65
  --ribbon_text_color: var(--zdt_ribbon_white_text);
63
66
  --ribbon_text_transform: uppercase;
67
+ text-align: center;
64
68
  }
65
69
 
66
70
  .small {
67
- --ribbon_font_size: 9px;
71
+ --ribbon_font_size: var(--zd_font_size9);
68
72
  }
69
73
 
70
74
  .medium {
71
- --ribbon_font_size: 11px;
75
+ --ribbon_font_size: var(--zd_font_size11);
72
76
  }
73
77
 
74
78
  .large {
75
- --ribbon_font_size: 13px;
79
+ --ribbon_font_size: var(--zd_font_size13);
76
80
  }
77
81
 
78
82
  .xlarge {
79
- --ribbon_font_size: 14px;
83
+ --ribbon_font_size: var(--zd_font_size14);
80
84
  }
81
85
 
82
86
  .palette_default {
@@ -124,7 +128,7 @@
124
128
  }
125
129
 
126
130
  .plain_dark {
127
- --ribbon_text_color: var(--zdt_base_color);
131
+ --ribbon_text_color: var(--zdt_ribbon_default_text);
128
132
  }
129
133
 
130
134
  .default_default {
@@ -208,13 +212,18 @@
208
212
  .flag {
209
213
  composes: dotted from '../common/common.module.css';
210
214
  display: block;
211
- --ribbon_padding: 4px 24px 4px 6px
212
- /*rtl: 4px 6px 4px 24px*/
213
- ;
214
215
  --ribbon_text_color: var(--zdt_ribbon_white_text);
215
216
  --ribbon_text_transform: uppercase;
216
217
  }
217
218
 
219
+ [dir=ltr] .flag {
220
+ --ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6);
221
+ }
222
+
223
+ [dir=rtl] .flag {
224
+ --ribbon_padding: var(--zd_size4) var(--zd_size24) var(--zd_size4) var(--zd_size6);
225
+ }
226
+
218
227
  .flag.small {
219
228
  --ribbon_line_height: 2.2223;
220
229
  }
@@ -236,17 +245,25 @@
236
245
  /* Variable:Ignore */
237
246
  top: -1px;
238
247
  /* Variable:Ignore */
239
- right: -1px;
240
248
  /* Variable:Ignore */
241
249
  bottom: -1px;
242
250
  content: '';
243
- width: 12px;
251
+ width: var(--zd_size12) ;
244
252
  border-style: solid;
245
- border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border);
246
253
  transform: translateZ(0);
247
254
  border-width: var(--ribbon_flag_border_width);
248
255
  }
249
256
 
257
+ [dir=ltr] .flag::after {
258
+ right: calc( var(--zd_size1) * -1 ) ;
259
+ border-color: var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_mirror_border) var(--zdt_ribbon_flag_mirror_border);
260
+ }
261
+
262
+ [dir=rtl] .flag::after {
263
+ left: calc( var(--zd_size1) * -1 ) ;
264
+ 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);
265
+ }
266
+
250
267
  .plain {
251
268
  display: inline-block;
252
269
  composes: semibold from '../common/common.module.css';
@@ -255,10 +272,10 @@
255
272
  .ribbon {
256
273
  composes: semibold from '../common/common.module.css';
257
274
  display: block;
258
- text-align: center;
259
275
  --ribbon_text_color: var(--zdt_ribbon_white_text);
260
276
  --ribbon_text_transform: uppercase;
261
- --ribbon_padding: 6px 10px;
277
+ --ribbon_padding: var(--zd_size6) var(--zd_size10);
278
+ text-align: center;
262
279
  }
263
280
 
264
281
  .ribbon.small {
@@ -281,78 +298,115 @@
281
298
  .ribbon::before {
282
299
  position: absolute;
283
300
  content: '';
284
- top: 100%;
285
- height: 10px;
286
- width: 10px;
301
+ top: 100% ;
302
+ height: var(--zd_size10) ;
303
+ width: var(--zd_size10) ;
304
+ }
305
+
306
+ .ribbon::after, .ribbon::before {
287
307
  border-style: solid;
288
308
  border-width: 5px;
289
- border-color: transparent transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border);
290
309
  background-color: inherit;
291
310
  }
292
311
 
293
- .ribbon::after {
294
- right: 0;
312
+ [dir=ltr] .ribbon::after, [dir=ltr] .ribbon::before {
313
+ border-color: transparent transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border);
295
314
  }
296
315
 
297
- .ribbon::before {
298
- left: 0;
316
+ [dir=rtl] .ribbon::after, [dir=rtl] .ribbon::before {
317
+ border-color: transparent var(--zdt_ribbon_flag_white_border) var(--zdt_ribbon_flag_white_border) transparent;
318
+ }
319
+
320
+ [dir=ltr] .ribbon::after {
321
+ right: 0 ;
322
+ }
323
+
324
+ [dir=rtl] .ribbon::after {
325
+ left: 0 ;
326
+ }
327
+
328
+ [dir=ltr] .ribbon::before {
329
+ left: 0 ;
299
330
  transform: rotateY(180deg);
300
331
  }
301
332
 
333
+ [dir=rtl] .ribbon::before {
334
+ right: 0 ;
335
+ transform: rotateY(-180deg);
336
+ }
337
+
302
338
  .tag {
303
339
  composes: semibold from '../common/common.module.css';
304
340
  display: inline-block;
341
+ height: var(--zd_size28) ;
305
342
  border-style: solid;
306
343
  border-color: var(--zdt_ribbon_default_tag_border);
344
+ }
345
+
346
+ [dir=ltr] .tag {
307
347
  border-width: 1px 1px 1px 0
308
348
  /*rtl: 1px 0 1px 1px*/
309
349
  ;
310
350
  border-radius: 0 3px 3px 0
311
351
  /*rtl: 3px 0 0 3px*/
312
352
  ;
313
- margin-left: 13px;
314
- height: 28px;
315
- padding: 6px 8px 6px 5px;
353
+ margin-left: var(--zd_size13) ;
354
+ padding: var(--zd_size6) var(--zd_size8) var(--zd_size6) var(--zd_size5) ;
355
+ }
356
+
357
+ [dir=rtl] .tag {
358
+ border-width: 1px 0 1px 1px ;
359
+ border-radius: 3px 0 0 3px ;
360
+ margin-right: var(--zd_size13) ;
361
+ padding: var(--zd_size6) var(--zd_size5) var(--zd_size6) var(--zd_size8) ;
316
362
  }
317
363
 
318
364
  .tag::before {
319
365
  position: absolute;
320
366
  content: '';
321
- transform: rotate(-45deg);
322
- background-color: inherit;
323
367
  top: var(--ribbon_tag_before_top);
368
+ width: var(--ribbon_tag_before_width);
369
+ height: var(--ribbon_tag_before_height);
370
+ background-color: inherit;
324
371
  border-style: var(--ribbon_tag_before_border_style);
325
372
  border-color: var(--ribbon_tag_before_border_color);
326
373
  border-width: var(--ribbon_tag_before_border_width);
327
- width: var(--ribbon_tag_before_width);
328
- height: var(--ribbon_tag_before_height);
329
- left: var(--ribbon_tag_before_left);
330
374
  border-radius: var(--ribbon_tag_before_border_radius);
331
375
  }
332
376
 
377
+ [dir=ltr] .tag::before {
378
+ transform: rotate(-45deg);
379
+ left: var(--ribbon_tag_before_left);
380
+ }
381
+
382
+ [dir=rtl] .tag::before {
383
+ transform: rotate(45deg);
384
+ right: var(--ribbon_tag_before_left);
385
+ }
386
+
333
387
  .box {
334
388
  display: inline-block;
389
+ --ribbon_bg_color: var(--zdt_ribbon_white_bg);
390
+ --ribbon_padding: var(--zd_size5) var(--zd_size8);
335
391
  border-radius: 3px;
336
- --ribbon_bg_color: var(--zdt_base_bg);
337
- --ribbon_padding: 5px 8px;
338
392
  }
339
393
 
340
394
  .stamp {
341
395
  display: inline-block;
342
- --ribbon_padding: 3px 5px;
396
+ --ribbon_padding: var(--zd_size3) var(--zd_size5);
343
397
  --ribbon_text_transform: uppercase;
344
398
  }
345
399
 
346
400
  .sticker {
347
401
  display: block;
402
+ height: var(--zd_size18) ;
403
+ --ribbon_text_color: var(--zdt_ribbon_white_text);
404
+ --ribbon_text_transform: uppercase;
348
405
  text-align: center;
349
406
  border-width: 1px 0;
350
407
  border-style: solid;
351
408
  border-color: var(--zdt_ribbon_flag_white_border);
352
- height: 18px;
353
- padding: 3px 10px;
354
- --ribbon_text_color: var(--zdt_ribbon_white_text);
355
- --ribbon_text_transform: uppercase;
409
+ padding: var(--zd_size3) var(--zd_size10) ;
356
410
  }
357
411
 
358
412
  .sticker.small {
@@ -374,17 +428,25 @@
374
428
  .after,
375
429
  .before {
376
430
  position: absolute;
377
- top: 0;
378
- bottom: 0;
379
- width: 10px;
431
+ top: 0 ;
432
+ bottom: 0 ;
433
+ width: var(--zd_size10) ;
380
434
  }
381
435
 
382
- .after {
383
- right: -2px;
436
+ [dir=ltr] .after {
437
+ right: calc( var(--zd_size2) * -1 ) ;
384
438
  }
385
439
 
386
- .before {
387
- left: -8px;
440
+ [dir=rtl] .after {
441
+ left: calc( var(--zd_size2) * -1 ) ;
442
+ }
443
+
444
+ [dir=ltr] .before {
445
+ left: calc( var(--zd_size8) * -1 ) ;
446
+ }
447
+
448
+ [dir=rtl] .before {
449
+ right: calc( var(--zd_size8) * -1 ) ;
388
450
  }
389
451
 
390
452
  .after::after,
@@ -392,30 +454,47 @@
392
454
  .before::after,
393
455
  .before::before {
394
456
  position: absolute;
395
- height: 7px;
396
- width: 7px;
457
+ height: var(--zd_size7) ;
458
+ width: var(--zd_size7) ;
397
459
  content: '';
460
+ }
461
+
462
+ .after::after, .after::before, .before::after, .before::before {
463
+ background-color: var(--zdt_ribbon_white_bg);
464
+ }
465
+
466
+ [dir=ltr] .after::after, [dir=ltr] .after::before, [dir=ltr] .before::after, [dir=ltr] .before::before {
398
467
  transform: rotate(45deg);
399
- background-color: var(--zdt_base_bg);
468
+ }
469
+
470
+ [dir=rtl] .after::after, [dir=rtl] .after::before, [dir=rtl] .before::after, [dir=rtl] .before::before {
471
+ transform: rotate(-45deg);
400
472
  }
401
473
 
402
474
  .after::after,
403
475
  .before::after {
404
- top: 0;
476
+ top: 0 ;
405
477
  }
406
478
 
407
479
  .after::before,
408
480
  .before::before {
409
- bottom: 0;
481
+ bottom: 0 ;
410
482
  }
411
483
 
412
484
  .children {
413
485
  display: inline-block;
414
- margin-right: 4px;
415
486
  vertical-align: top;
416
487
  line-height: 0;
417
488
  }
418
489
 
490
+ [dir=ltr] .children {
491
+ margin-right: var(--zd_size4) ;
492
+ }
493
+
494
+ [dir=rtl] .children {
495
+ margin-left: var(--zd_size4) ;
496
+ }
497
+
419
498
  .childText {
420
499
  position: relative;
421
500
  }