@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
@@ -45,6 +45,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
45
45
 
46
46
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
47
47
 
48
+ 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); }
49
+
48
50
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
49
51
 
50
52
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -410,7 +412,10 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
410
412
  i18nKeys = _this$props7.i18nKeys,
411
413
  htmlId = _this$props7.htmlId,
412
414
  isLoading = _this$props7.isLoading,
413
- dataSelectorId = _this$props7.dataSelectorId;
415
+ dataSelectorId = _this$props7.dataSelectorId,
416
+ customProps = _this$props7.customProps;
417
+ var _customProps$listItem = customProps.listItemProps,
418
+ listItemProps = _customProps$listItem === void 0 ? {} : _customProps$listItem;
414
419
  i18nKeys = Object.assign({}, i18nKeys, {
415
420
  emptyText: i18nKeys.emptyText || emptyMessage,
416
421
  searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
@@ -536,7 +541,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
536
541
  var iconName = options.iconName,
537
542
  iconSize = options.iconSize,
538
543
  iconColor = options.iconColor;
539
- return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], {
544
+ return /*#__PURE__*/_react["default"].createElement(_ListItemWithIcon["default"], _extends({
540
545
  key: options[idKey],
541
546
  value: options[valueKey],
542
547
  size: "medium",
@@ -560,7 +565,7 @@ var SelectWithIcon = /*#__PURE__*/function (_Component) {
560
565
  ariaSelected: selectedId === options[idKey],
561
566
  ariaLabel: options[valueKey]
562
567
  }
563
- });
568
+ }, listItemProps));
564
569
  })) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
565
570
  isLoading: isFetchingOptions,
566
571
  options: options,
@@ -79,7 +79,8 @@ var GroupSelect_defaultProps = {
79
79
  isSearchClearOnClose: true,
80
80
  i18nKeys: {},
81
81
  iconOnHover: false,
82
- isLoading: false
82
+ isLoading: false,
83
+ customProps: {}
83
84
  };
84
85
  exports.GroupSelect_defaultProps = GroupSelect_defaultProps;
85
86
  var SelectWithAvatar_defaultProps = {
@@ -104,7 +105,8 @@ var SelectWithAvatar_defaultProps = {
104
105
  isSearchClearOnClose: true,
105
106
  i18nKeys: {},
106
107
  needEffect: true,
107
- isLoading: false
108
+ isLoading: false,
109
+ customProps: {}
108
110
  };
109
111
  exports.SelectWithAvatar_defaultProps = SelectWithAvatar_defaultProps;
110
112
  var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
@@ -116,5 +118,5 @@ var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
116
118
  needListBorder: false,
117
119
  needSearch: false,
118
120
  boxSize: 'default'
119
- }, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _SelectWithIcon_defau);
121
+ }, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _defineProperty(_SelectWithIcon_defau, "customProps", {}), _SelectWithIcon_defau);
120
122
  exports.SelectWithIcon_defaultProps = SelectWithIcon_defaultProps;
@@ -186,7 +186,8 @@ var GroupSelect_propTypes = {
186
186
  }),
187
187
  isLoading: _propTypes["default"].bool,
188
188
  dataSelectorId: _propTypes["default"].string,
189
- isDefaultSelectValue: _propTypes["default"].bool
189
+ isDefaultSelectValue: _propTypes["default"].bool,
190
+ customProps: _propTypes["default"].string
190
191
  };
191
192
  exports.GroupSelect_propTypes = GroupSelect_propTypes;
192
193
 
@@ -249,7 +250,8 @@ var SelectWithAvatar_propTypes = _objectSpread(_objectSpread({}, Select_propType
249
250
  htmlId: _propTypes["default"].string,
250
251
  needEffect: _propTypes["default"].bool,
251
252
  isLoading: _propTypes["default"].bool,
252
- dataSelectorId: _propTypes["default"].string
253
+ dataSelectorId: _propTypes["default"].string,
254
+ customProps: _propTypes["default"].string
253
255
  });
254
256
 
255
257
  exports.SelectWithAvatar_propTypes = SelectWithAvatar_propTypes;
@@ -305,6 +307,7 @@ var SelectWithIcon_propTypes = {
305
307
  searchBoxSize: _propTypes["default"].string,
306
308
  needResponsive: _propTypes["default"].bool,
307
309
  boxSize: _propTypes["default"].string,
308
- emptyMessage: _propTypes["default"].string
310
+ emptyMessage: _propTypes["default"].string,
311
+ customProps: _propTypes["default"].string
309
312
  };
310
313
  exports.SelectWithIcon_propTypes = SelectWithIcon_propTypes;
@@ -1,6 +1,6 @@
1
1
  .varClass {
2
2
  /* stencils default variables */
3
- --stencil_height: 9px;
3
+ --stencil_height: var(--zd_size9);
4
4
  --stencil_width: 100%;
5
5
  --stencil_border_radius: 5px;
6
6
  }
@@ -11,14 +11,23 @@
11
11
  border-radius: var(--stencil_border_radius);
12
12
  }
13
13
  .stencil {
14
- animation-name: placeHolderShimmer;
14
+ background-size: 800px 1px;
15
+ }
16
+ [dir=ltr] .stencil {
17
+ animation-name: placeHolderShimmer-ltr ;
18
+ animation-fill-mode: forwards;
19
+ animation-iteration-count: infinite;
20
+ animation-duration: var(--zd_transition10);
21
+ animation-timing-function: linear;
22
+ }
23
+ [dir=rtl] .stencil {
24
+ animation-name: placeHolderShimmer-rtl ;
15
25
  animation-fill-mode: forwards;
16
26
  animation-iteration-count: infinite;
17
27
  animation-duration: var(--zd_transition10);
18
28
  animation-timing-function: linear;
19
- background-size: 800px 1px;
20
29
  }
21
- @keyframes placeHolderShimmer {
30
+ @keyframes placeHolderShimmer-ltr {
22
31
  0% {
23
32
  background-position: calc(var(--zd_size468) * -1) 0;
24
33
  }
@@ -27,10 +36,19 @@
27
36
  background-position: var(--zd_size468) 0;
28
37
  }
29
38
  }
39
+ @keyframes placeHolderShimmer-rtl {
40
+ 0% {
41
+ background-position: calc(100% - (var(--zd_size468) * -1)) 0;
42
+ }
43
+
44
+ 100% {
45
+ background-position: var(--zd_size468) 100%;
46
+ }
47
+ }
30
48
 
31
49
  .rectangular {
32
50
  composes: stencil;
33
- --stencil_height: 9px;
51
+ --stencil_height: var(--zd_size9);
34
52
  --stencil_border_radius: 5px;
35
53
  }
36
54
  .primary {
@@ -47,16 +65,16 @@
47
65
  }
48
66
 
49
67
  .small {
50
- --stencil_width: 110px;
68
+ --stencil_width: var(--zd_size110);
51
69
  }
52
70
  .default {
53
71
  --stencil_width: 100%;
54
72
  }
55
73
  .medium {
56
- --stencil_width: 170px;
74
+ --stencil_width: var(--zd_size170);
57
75
  }
58
76
  .large {
59
- --stencil_width: 220px;
77
+ --stencil_width: var(--zd_size220);
60
78
  }
61
79
 
62
80
  .circle {
@@ -64,15 +82,15 @@
64
82
  --stencil_border_radius: 50%;
65
83
  }
66
84
  .clarge {
67
- --stencil_width: 42px;
68
- --stencil_height: 42px;
85
+ --stencil_width: var(--zd_size42);
86
+ --stencil_height: var(--zd_size42);
69
87
  }
70
88
  .cmedium,
71
89
  .cdefault {
72
- --stencil_width: 30px;
73
- --stencil_height: 30px;
90
+ --stencil_width: var(--zd_size30);
91
+ --stencil_height: var(--zd_size30);
74
92
  }
75
93
  .csmall {
76
- --stencil_width: 20px;
77
- --stencil_height: 20px;
94
+ --stencil_width: var(--zd_size20);
95
+ --stencil_height: var(--zd_size20);
78
96
  }
@@ -37,13 +37,11 @@
37
37
  {
38
38
  --switch_off_bg_color: var(--zdt_switch_effect_off_bg);
39
39
  }
40
-
41
- /*rtl:begin:ignore*/
42
40
  .label:after {
43
41
  content: '';
44
42
  display: block;
45
43
  position: absolute;
46
- right: 50%;
44
+ right: 50% ;
47
45
  transition: all var(--zd_transition2);
48
46
  box-shadow: var(--switch_cricle_box_shadow);
49
47
  background-color: var(--switch_circle_bg_color);
@@ -55,59 +53,49 @@
55
53
  }
56
54
 
57
55
  .checked+.label:after {
58
- right: -1px;
56
+ right: calc( var(--zd_size1) * -1 ) ;
59
57
  }
60
58
 
61
- /*rtl:end:ignore*/
62
-
63
59
  .input {
64
60
  display: none;
65
61
  }
66
62
 
67
63
  .small {
68
- height: 14px;
69
- width: 28px;
64
+ height: var(--zd_size14) ;
65
+ width: var(--zd_size28) ;
70
66
  }
71
-
72
- /*rtl:begin:ignore*/
73
67
  .switch_smallLabel {
74
- height: 9px;
75
- width: 22px;
76
- top: -2px;
77
- left: 2px;
68
+ height: var(--zd_size9) ;
69
+ width: var(--zd_size22) ;
70
+ top: calc( var(--zd_size2) * -1 ) ;
71
+ left: var(--zd_size2) ;
78
72
  }
79
-
80
- /*rtl:end:ignore*/
81
73
  .switch_smallLabel:after {
82
- width: 12px;
83
- height: 12px;
84
- top: -2px;
74
+ width: var(--zd_size12) ;
75
+ height: var(--zd_size12) ;
76
+ top: calc( var(--zd_size2) * -1 ) ;
85
77
  }
86
78
 
87
79
  .medium {
88
- height: 18px;
89
- width: 34px;
80
+ height: var(--zd_size18) ;
81
+ width: var(--zd_size34) ;
90
82
  }
91
-
92
- /*rtl:begin:ignore*/
93
83
  .switch_mediumLabel {
94
- height: 13px;
95
- width: 31px;
96
- top: 2px;
97
- left: 2px;
84
+ height: var(--zd_size13) ;
85
+ width: var(--zd_size31) ;
86
+ top: var(--zd_size2) ;
87
+ left: var(--zd_size2) ;
98
88
  }
99
-
100
- /*rtl:end:ignore*/
101
89
  .switch_mediumLabel:after {
102
- width: 18px;
103
- height: 18px;
104
- top: -3px;
90
+ width: var(--zd_size18) ;
91
+ height: var(--zd_size18) ;
92
+ top: calc( var(--zd_size3) * -1 ) ;
105
93
  }
106
94
 
107
95
  .input:disabled+.label {
96
+ opacity: 0.4;
108
97
  border-color: var(--zdt_switch_default_off_bg);
109
98
  cursor: not-allowed;
110
- opacity: 0.4;
111
99
  }
112
100
 
113
101
  .switch {
@@ -128,6 +116,13 @@
128
116
 
129
117
  .switch+label {
130
118
  position: relative;
131
- top: -1px;
132
- margin-left: 12px;
119
+ top: calc( var(--zd_size1) * -1 ) ;
120
+ }
121
+
122
+ [dir=ltr] .switch+label {
123
+ margin-left: var(--zd_size12) ;
124
+ }
125
+
126
+ [dir=rtl] .switch+label {
127
+ margin-right: var(--zd_size12) ;
133
128
  }
@@ -1,32 +1,26 @@
1
1
  .tab {
2
2
  text-transform: uppercase;
3
- cursor: pointer;
4
3
  letter-spacing: 0.6px;
5
4
  text-decoration: none;
5
+ cursor: pointer;
6
6
  }
7
-
8
7
  .vertical {
9
- height: 100%;
8
+ height: 100% ;
10
9
  }
11
-
12
10
  .horizontal {
13
- width: 100%;
14
- max-width: 100%;
11
+ width: 100% ;
12
+ max-width: 100% ;
15
13
  }
16
-
17
14
  .textContainer,
18
15
  .tabText {
19
- max-width: inherit;
16
+ max-width: inherit ;
20
17
  }
21
-
22
18
  .tabText {
23
19
  composes: dotted from '../common/common.module.css';
24
20
  }
25
-
26
21
  .disabled {
27
22
  cursor: not-allowed;
28
23
  }
29
-
30
24
  .border {
31
25
  border-bottom: 1px solid var(--zdt_tab_default_border);
32
26
  }
@@ -36,76 +30,71 @@
36
30
  .delta {
37
31
  transition: all var(--zd_transition2);
38
32
  }
39
-
40
33
  .alpha {
41
- padding: 0 18px;
42
- font-size: 11px;
34
+ font-size: var(--zd_font_size11) ;
43
35
  line-height: 3;
36
+ padding: 0 var(--zd_size18) ;
44
37
  }
45
-
46
38
  .tabAlpha {
47
39
  composes: alpha;
48
40
  color: var(--zdt_tab_alpha_text);
49
41
  }
50
-
51
42
  .alphaHover:hover {
52
- color: var(--zdt_base_color);
43
+ color: var(--zdt_tab_alpha_hover_text);
53
44
  background-color: var(--zdt_tab_alpha_hover_bg);
54
45
  }
55
-
56
46
  .alphaActive {
57
47
  composes: alpha;
58
48
  color: var(--zdt_tab_alpha_active_text);
59
49
  }
60
-
61
- .alphaActive_border,
62
- .betaActive_border {
50
+ .alphaActive_border, .betaActive_border {
63
51
  border-color: var(--zdt_tab_alpha_active_border);
64
52
  }
65
-
66
53
  .deltaActive_border {
67
54
  border-color: var(--zdt_tab_delta_active_border);
68
55
  }
69
-
70
56
  .beta {
71
- padding: 0 4px;
72
- font-size: 14px;
57
+ font-size: var(--zd_font_size14) ;
73
58
  line-height: 4.2857;
74
- margin-right: 40px;
75
59
  text-transform: capitalize;
60
+ padding: 0 var(--zd_size4) ;
61
+ }
62
+ [dir=ltr] .beta {
63
+ margin-right: var(--zd_size40) ;
64
+ }
65
+ [dir=rtl] .beta {
66
+ margin-left: var(--zd_size40) ;
76
67
  }
77
-
78
68
  .tabBeta {
79
69
  composes: beta;
80
70
  color: var(--zdt_tab_alpha_text);
81
71
  }
82
-
83
72
  .betaHover:hover {
84
- color: var(--zdt_base_color);
73
+ color: var(--zdt_tab_alpha_hover_text);
85
74
  }
86
-
87
75
  .betaActive {
88
76
  composes: beta;
89
- color: var(--zdt_base_color);
77
+ color: var(--zdt_tab_alpha_hover_text);
90
78
  }
91
-
92
79
  .delta {
93
- padding: 0 4px;
94
- font-size: 11px;
80
+ font-size: var(--zd_font_size11) ;
95
81
  line-height: 3;
96
- margin-right: 10px;
82
+ padding: 0 var(--zd_size4) ;
83
+ }
84
+ [dir=ltr] .delta {
85
+ margin-right: var(--zd_size10) ;
86
+ }
87
+ [dir=rtl] .delta {
88
+ margin-left: var(--zd_size10) ;
97
89
  }
98
-
99
90
  .tabDelta {
100
91
  composes: delta;
101
92
  color: var(--zdt_tab_alpha_text);
102
93
  }
103
-
104
94
  .deltaHover:hover {
105
95
  color: var(--zdt_tab_alpha_active_text);
106
96
  }
107
-
108
97
  .deltaActive {
109
98
  composes: delta;
110
99
  color: var(--zdt_tab_alpha_active_text);
111
- }
100
+ }
@@ -5,12 +5,16 @@
5
5
  }
6
6
 
7
7
  .alpha {
8
- height: 35px;
9
- background-color: var(--zdt_base_bg);
8
+ height: var(--zd_size35) ;
9
+ background-color: var(--zdt_tabs_alpha_bg);
10
10
  }
11
11
 
12
- .alpha_padding {
13
- padding-left: 15px;
12
+ [dir=ltr] .alpha_padding {
13
+ padding-left: var(--zd_size15) ;
14
+ }
15
+
16
+ [dir=rtl] .alpha_padding {
17
+ padding-right: var(--zd_size15) ;
14
18
  }
15
19
 
16
20
  .alpha_border {
@@ -23,32 +27,50 @@
23
27
  content: '';
24
28
  position: absolute;
25
29
  z-index: -2;
26
- width: 76%;
27
- bottom: 0;
28
- height: 10px;
29
- left: 12%;
30
+ width: 76% ;
31
+ bottom: 0 ;
32
+ height: var(--zd_size10) ;
30
33
  border-radius: 100px / 5px;
31
34
  box-shadow: var(--zd_bs_tabs_shadow);
32
35
  }
33
36
 
37
+ [dir=ltr] .alpha::after {
38
+ left: 12% ;
39
+ }
40
+
41
+ [dir=rtl] .alpha::after {
42
+ right: 12% ;
43
+ }
44
+
34
45
  .alpha:before {
35
46
  content: '';
36
47
  position: absolute;
37
48
  z-index: -1;
38
- width: 100%;
49
+ width: 100% ;
50
+ height: 100% ;
51
+ top: 0 ;
39
52
  background: inherit;
40
- height: 100%;
41
- left: 0;
42
- top: 0;
53
+ }
54
+
55
+ [dir=ltr] .alpha:before {
56
+ left: 0 ;
57
+ }
58
+
59
+ [dir=rtl] .alpha:before {
60
+ right: 0 ;
43
61
  }
44
62
 
45
63
  .beta {
46
- height: 61px;
47
- background-color: var(--zdt_base_bg);
64
+ height: var(--zd_size61) ;
65
+ background-color: var(--zdt_tabs_alpha_bg);
66
+ }
67
+
68
+ [dir=ltr] .beta_padding {
69
+ padding-left: var(--zd_size13) ;
48
70
  }
49
71
 
50
- .beta_padding {
51
- padding-left: 13px;
72
+ [dir=rtl] .beta_padding {
73
+ padding-right: var(--zd_size13) ;
52
74
  }
53
75
 
54
76
  .beta_border {
@@ -56,12 +78,16 @@
56
78
  }
57
79
 
58
80
  .delta {
59
- height: 35px;
60
- background-color: var(--zdt_base_bg);
81
+ height: var(--zd_size35) ;
82
+ background-color: var(--zdt_tabs_alpha_bg);
61
83
  }
62
84
 
63
- .delta_padding {
64
- padding-left: 10px;
85
+ [dir=ltr] .delta_padding {
86
+ padding-left: var(--zd_size10) ;
87
+ }
88
+
89
+ [dir=rtl] .delta_padding {
90
+ padding-right: var(--zd_size10) ;
65
91
  }
66
92
 
67
93
  .delta_border {
@@ -73,12 +99,12 @@
73
99
  }
74
100
 
75
101
  .maxWidth {
76
- max-width: 100%;
102
+ max-width: 100% ;
77
103
  }
78
104
 
79
105
  .highlight {
80
106
  position: absolute;
81
- bottom: 0;
107
+ bottom: 0 ;
82
108
  border-bottom: 1px solid var(--zdt_tabs_highlight_border);
83
109
  }
84
110
 
@@ -92,24 +118,20 @@
92
118
  }
93
119
 
94
120
  .menuBox {
95
- max-height: 220px;
121
+ max-height: var(--zd_size220) ;
96
122
  }
97
-
98
- /*rtl:begin:ignore*/
99
123
  .bottomRightToLeft,
100
124
  .topRightToLeft,
101
125
  .bottomCenterToLeft {
102
- right: calc(var(--tab_position_gap) * -1);
126
+ right: calc(var(--tab_position_gap) * -1);
103
127
  }
104
128
 
105
129
  .bottomLeftToRight,
106
130
  .topLeftToRight,
107
131
  .bottomCenterToRight {
108
- left: calc(var(--tab_position_gap) * -1);
132
+ left: calc(var(--tab_position_gap) * -1);
109
133
  }
110
134
 
111
- /*rtl:end:ignore*/
112
-
113
135
  .hidden {
114
136
  visibility: hidden;
115
137
  }