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

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 (182) 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.js +8 -2
  18. package/es/DateTime/DateTime.module.css +85 -57
  19. package/es/DateTime/DateWidget.js +14 -3
  20. package/es/DateTime/DateWidget.module.css +11 -7
  21. package/es/DateTime/Time.js +30 -13
  22. package/es/DateTime/YearView.module.css +34 -21
  23. package/es/DateTime/props/defaultProps.js +4 -2
  24. package/es/DateTime/props/propTypes.js +6 -3
  25. package/es/DropBox/DropBox.js +11 -10
  26. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
  27. package/es/DropBox/css/DropBox.module.css +23 -6
  28. package/es/DropDown/DropDown.js +1 -2
  29. package/es/DropDown/DropDown.module.css +2 -2
  30. package/es/DropDown/DropDownHeading.module.css +15 -15
  31. package/es/DropDown/DropDownItem.module.css +40 -22
  32. package/es/DropDown/DropDownSearch.module.css +3 -3
  33. package/es/DropDown/DropDownSeparator.module.css +2 -2
  34. package/es/Heading/Heading.module.css +2 -2
  35. package/es/Label/Label.module.css +11 -23
  36. package/es/Label/LabelColors.module.css +1 -7
  37. package/es/Layout/Layout.module.css +15 -15
  38. package/es/ListItem/ListContainer.js +5 -6
  39. package/es/ListItem/ListItem.js +5 -4
  40. package/es/ListItem/ListItem.module.css +80 -98
  41. package/es/ListItem/ListItemWithAvatar.js +5 -4
  42. package/es/ListItem/ListItemWithCheckBox.js +5 -4
  43. package/es/ListItem/ListItemWithIcon.js +5 -4
  44. package/es/ListItem/ListItemWithRadio.js +5 -4
  45. package/es/Modal/Modal.js +5 -4
  46. package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
  47. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
  48. package/es/MultiSelect/MultiSelect.module.css +55 -69
  49. package/es/MultiSelect/MultiSelectWithAvatar.js +5 -4
  50. package/es/MultiSelect/SelectedOptions.js +8 -6
  51. package/es/MultiSelect/SelectedOptions.module.css +11 -5
  52. package/es/MultiSelect/Suggestions.js +8 -6
  53. package/es/MultiSelect/props/defaultProps.js +4 -2
  54. package/es/PopOver/PopOver.module.css +2 -2
  55. package/es/Popup/Popup.js +4 -3
  56. package/es/Radio/Radio.js +8 -8
  57. package/es/Radio/Radio.module.css +22 -37
  58. package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  59. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  60. package/es/Ribbon/Ribbon.module.css +143 -64
  61. package/es/RippleEffect/RippleEffect.module.css +9 -27
  62. package/es/Select/Select.js +5 -4
  63. package/es/Select/Select.module.css +33 -22
  64. package/es/Stencils/Stencils.module.css +32 -14
  65. package/es/Switch/Switch.js +8 -8
  66. package/es/Switch/Switch.module.css +30 -35
  67. package/es/Tab/Tab.js +5 -4
  68. package/es/Tab/Tab.module.css +28 -39
  69. package/es/Tab/TabContentWrapper.js +5 -4
  70. package/es/Tab/TabWrapper.js +4 -2
  71. package/es/Tab/Tabs.js +16 -16
  72. package/es/Tab/Tabs.module.css +51 -29
  73. package/es/Tag/Tag.module.css +60 -91
  74. package/es/TextBox/TextBox.js +5 -5
  75. package/es/TextBox/TextBox.module.css +19 -23
  76. package/es/TextBoxIcon/TextBoxIcon.js +4 -2
  77. package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
  78. package/es/Textarea/Textarea.js +6 -4
  79. package/es/Textarea/Textarea.module.css +30 -60
  80. package/es/Tooltip/Tooltip.module.css +12 -13
  81. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  82. package/es/common/animation.module.css +227 -29
  83. package/es/common/avatarsizes.module.css +16 -16
  84. package/es/common/basicReset.module.css +5 -15
  85. package/es/common/common.module.css +82 -36
  86. package/es/common/customscroll.module.css +33 -12
  87. package/es/common/transition.module.css +50 -10
  88. package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
  89. package/es/semantic/Button/semanticButton.module.css +3 -3
  90. package/es/v1/AppContainer/AppContainer.js +9 -10
  91. package/es/v1/Avatar/Avatar.js +5 -4
  92. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  93. package/es/v1/Button/Button.js +6 -5
  94. package/es/v1/CheckBox/CheckBox.js +8 -8
  95. package/es/v1/DropBox/DropBox.js +11 -10
  96. package/es/v1/DropDown/DropDown.js +1 -2
  97. package/es/v1/ListItem/ListContainer.js +5 -6
  98. package/es/v1/ListItem/ListItem.js +5 -4
  99. package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
  100. package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
  101. package/es/v1/ListItem/ListItemWithIcon.js +5 -4
  102. package/es/v1/ListItem/ListItemWithRadio.js +5 -4
  103. package/es/v1/Modal/Modal.js +5 -4
  104. package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
  105. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
  106. package/es/v1/MultiSelect/SelectedOptions.js +8 -6
  107. package/es/v1/MultiSelect/Suggestions.js +8 -6
  108. package/es/v1/MultiSelect/props/defaultProps.js +4 -2
  109. package/es/v1/Popup/Popup.js +4 -3
  110. package/es/v1/Radio/Radio.js +8 -8
  111. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
  112. package/es/v1/Select/Select.js +5 -4
  113. package/es/v1/Switch/Switch.js +8 -8
  114. package/es/v1/Tab/Tab.js +5 -4
  115. package/es/v1/Tab/TabContentWrapper.js +5 -4
  116. package/es/v1/Tab/TabWrapper.js +4 -2
  117. package/es/v1/Tab/Tabs.js +16 -16
  118. package/es/v1/Tab/v1Tab.module.css +28 -39
  119. package/es/v1/Tab/v1Tabs.module.css +51 -29
  120. package/es/v1/TextBox/TextBox.js +5 -5
  121. package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
  122. package/es/v1/Textarea/Textarea.js +6 -4
  123. package/es/v1/Typography/css/Typography.module.css +39 -33
  124. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
  125. package/lib/AppContainer/AppContainer.module.css +2 -2
  126. package/lib/Avatar/Avatar.module.css +44 -26
  127. package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
  128. package/lib/Button/css/Button.module.css +156 -100
  129. package/lib/Buttongroup/Buttongroup.module.css +50 -17
  130. package/lib/CheckBox/CheckBox.module.css +35 -60
  131. package/lib/DateTime/DateTime.js +13 -2
  132. package/lib/DateTime/DateTime.module.css +85 -57
  133. package/lib/DateTime/DateWidget.js +19 -3
  134. package/lib/DateTime/DateWidget.module.css +11 -7
  135. package/lib/DateTime/Time.js +35 -13
  136. package/lib/DateTime/YearView.module.css +34 -21
  137. package/lib/DateTime/props/defaultProps.js +4 -2
  138. package/lib/DateTime/props/propTypes.js +6 -3
  139. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
  140. package/lib/DropBox/css/DropBox.module.css +23 -6
  141. package/lib/DropDown/DropDown.module.css +2 -2
  142. package/lib/DropDown/DropDownHeading.module.css +15 -15
  143. package/lib/DropDown/DropDownItem.module.css +40 -22
  144. package/lib/DropDown/DropDownSearch.module.css +3 -3
  145. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  146. package/lib/Heading/Heading.module.css +2 -2
  147. package/lib/Label/Label.module.css +11 -23
  148. package/lib/Label/LabelColors.module.css +1 -7
  149. package/lib/Layout/Layout.module.css +15 -15
  150. package/lib/ListItem/ListItem.module.css +80 -98
  151. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
  152. package/lib/MultiSelect/MultiSelect.module.css +55 -69
  153. package/lib/MultiSelect/SelectedOptions.module.css +11 -5
  154. package/lib/MultiSelect/props/defaultProps.js +4 -2
  155. package/lib/PopOver/PopOver.module.css +2 -2
  156. package/lib/Radio/Radio.module.css +22 -37
  157. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  158. package/lib/Ribbon/Ribbon.module.css +143 -64
  159. package/lib/RippleEffect/RippleEffect.module.css +9 -27
  160. package/lib/Select/Select.module.css +33 -22
  161. package/lib/Stencils/Stencils.module.css +32 -14
  162. package/lib/Switch/Switch.module.css +30 -35
  163. package/lib/Tab/Tab.module.css +28 -39
  164. package/lib/Tab/Tabs.module.css +51 -29
  165. package/lib/Tag/Tag.module.css +60 -91
  166. package/lib/TextBox/TextBox.module.css +19 -23
  167. package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
  168. package/lib/Textarea/Textarea.module.css +30 -60
  169. package/lib/Tooltip/Tooltip.module.css +12 -13
  170. package/lib/common/animation.module.css +227 -29
  171. package/lib/common/avatarsizes.module.css +16 -16
  172. package/lib/common/basicReset.module.css +5 -15
  173. package/lib/common/common.module.css +82 -36
  174. package/lib/common/customscroll.module.css +33 -12
  175. package/lib/common/transition.module.css +50 -10
  176. package/lib/semantic/Button/semanticButton.module.css +3 -3
  177. package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
  178. package/lib/v1/Tab/v1Tab.module.css +28 -39
  179. package/lib/v1/Tab/v1Tabs.module.css +51 -29
  180. package/lib/v1/Typography/css/Typography.module.css +39 -33
  181. package/package.json +3 -3
  182. package/result.json +1 -0
package/es/v1/Tab/Tab.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
  import React, { useMemo, useCallback } from 'react';
2
4
  import { Tab_defaultProps } from './props/defaultProps';
3
5
  import { Tab_propTypes } from './props/propTypes';
@@ -65,7 +67,7 @@ export default function Tab(_ref) {
65
67
  let activeClasses = cs([needAppearance && activeWithAppearance, activeClass]);
66
68
  let inActiveClasses = needAppearance && cs([styles[styleContent.tab], tabTypes[type] && styles[`${`${type}Hover`}`]]);
67
69
  let tabClass = cs([styles.tab, align === 'vertical' ? styles.vertical : styles.horizontal, isDisabled && styles.disabled, needBorder && !isAnimate && needAppearance && styles.border, isActive ? activeClasses : inActiveClasses, className]);
68
- return /*#__PURE__*/React.createElement(Box, {
70
+ return /*#__PURE__*/React.createElement(Box, _extends({
69
71
  tourId: tourId,
70
72
  tagName: isLink ? 'a' : 'div',
71
73
  className: tabClass,
@@ -83,9 +85,8 @@ export default function Tab(_ref) {
83
85
  "aria-selected": isActive ? true : false,
84
86
  tabIndex: isLink ? undefined : isActive && !isDisabled ? '0' : '0',
85
87
  "aria-label": text ? text : null,
86
- dataSelectorId: dataSelectorId,
87
- ...customProps
88
- }, /*#__PURE__*/React.createElement(Container, {
88
+ dataSelectorId: dataSelectorId
89
+ }, customProps), /*#__PURE__*/React.createElement(Container, {
89
90
  alignBox: "row",
90
91
  align: "both",
91
92
  className: styles.textContainer
@@ -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 from 'react';
2
4
  import { TabContentWrapper_defaultProps } from './props/defaultProps';
3
5
  import { TabContentWrapper_propTypes } from './props/propTypes';
@@ -16,16 +18,15 @@ const TabContentWrapper = _ref => {
16
18
  tagName,
17
19
  a11y
18
20
  } = _ref;
19
- return /*#__PURE__*/React.createElement(Box, {
21
+ return /*#__PURE__*/React.createElement(Box, _extends({
20
22
  flexible: true,
21
23
  style: style,
22
24
  dataId: dataId,
23
25
  className: className,
24
26
  onScroll: onScroll,
25
27
  dataSelectorId: dataSelectorId,
26
- tagName: tagName,
27
- ...a11y
28
- }, React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
28
+ tagName: tagName
29
+ }, a11y), React.Children.map(children, child => /*#__PURE__*/React.isValidElement(child) && child.props.id === selectedTab ? child : null));
29
30
  };
30
31
 
31
32
  TabContentWrapper.defaultProps = TabContentWrapper_defaultProps;
@@ -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, { useState, useCallback } from 'react';
2
4
  import { TabWrapper_defaultProps } from './props/defaultProps';
3
5
  import { TabWrapper_propTypes } from './props/propTypes';
@@ -35,7 +37,7 @@ function TabWrapper(_ref) {
35
37
  let TabsChild = child.type;
36
38
  let selectedTab = hookToDisableInternalState ? defaultTab : selectedTabInternal;
37
39
  return /*#__PURE__*/React.createElement(TabsChild // eslint-disable-next-line react/no-array-index-key
38
- , { ...child.props,
40
+ , _extends({}, child.props, {
39
41
  selectedTab: selectedTab,
40
42
  onSelect: setSelectedTab,
41
43
  type: type,
@@ -46,7 +48,7 @@ function TabWrapper(_ref) {
46
48
  needAppearance: needAppearance,
47
49
  hookToDisableInternalState: hookToDisableInternalState,
48
50
  align: align
49
- });
51
+ }));
50
52
  }));
51
53
  }
52
54
 
package/es/v1/Tab/Tabs.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
  import React, { useState, useRef, useEffect, useCallback } from 'react';
2
4
  import useEffectCallOnlyAfterState from '@zohodesk/hooks/es/utils/useEffectCallOnlyAfterState';
3
5
  import Tab from './Tab';
@@ -392,7 +394,7 @@ const Tabs = props => {
392
394
  classProps.className = itemClass;
393
395
  }
394
396
 
395
- return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(MainTab, { ...child.props,
397
+ return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(MainTab, _extends({}, child.props, {
396
398
  key: child.props.id,
397
399
  getTabRef: getTabRef,
398
400
  onSelect: onSelect // recalculateDimension={tabElement.current[recalculateDimension]}
@@ -403,23 +405,22 @@ const Tabs = props => {
403
405
  needBorder: needTabBorder,
404
406
  needAppearance: needAppearance,
405
407
  align: align,
406
- isVirtual: isVirtual,
407
- ...classProps
408
- });
408
+ isVirtual: isVirtual
409
+ }, classProps));
409
410
  }), React.Children.count(moreTabs) ? /*#__PURE__*/React.createElement(Box, {
410
411
  className: `${tabsStyle.menu} `,
411
412
  dataSelectorId: `${dataSelectorId}_moreIcon`
412
- }, /*#__PURE__*/React.createElement(Container, {
413
+ }, /*#__PURE__*/React.createElement(Container, _extends({
413
414
  className: `${btnstyle.buttonReset} ${moreButtonClass} ${isPopupOpen ? moreButtonActiveClass : ''}`,
414
415
  align: "both",
415
416
  onClick: togglePopupLocal,
416
417
  dataId: "moreTabs",
417
- eleRef: getTargetRef,
418
- ...MoreButtonProps,
418
+ eleRef: getTargetRef
419
+ }, MoreButtonProps, {
419
420
  "aria-label": "MoreTabs",
420
421
  role: "link",
421
422
  tagName: "button"
422
- }, /*#__PURE__*/React.createElement(Icon, {
423
+ }), /*#__PURE__*/React.createElement(Icon, {
423
424
  name: iconName,
424
425
  size: iconSize
425
426
  })), isPopupOpen && /*#__PURE__*/React.createElement(ResponsiveReceiver, {
@@ -429,7 +430,7 @@ const Tabs = props => {
429
430
  let {
430
431
  tabletMode
431
432
  } = _ref2;
432
- return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
433
+ return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
433
434
  isActive: isPopupReady,
434
435
  isAnimate: true,
435
436
  size: "medium",
@@ -439,12 +440,12 @@ const Tabs = props => {
439
440
  boxPosition: position,
440
441
  getRef: getContainerRef,
441
442
  isBoxPaddingNeed: true,
442
- isArrow: false,
443
- ...DropBoxProps,
443
+ isArrow: false
444
+ }, DropBoxProps, {
444
445
  isResponsivePadding: true,
445
446
  needFocusScope: true,
446
447
  onClose: togglePopupLocal
447
- }, getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(props), /*#__PURE__*/React.createElement(Box, {
448
+ }), getCustomDropBoxHeaderPlaceHolder && getCustomDropBoxHeaderPlaceHolder(props), /*#__PURE__*/React.createElement(Box, {
448
449
  flexible: true,
449
450
  shrink: true,
450
451
  scroll: "vertical",
@@ -465,7 +466,7 @@ const Tabs = props => {
465
466
  dataId
466
467
  } = child.props;
467
468
  const value = text ? text : showTitleInMoreOptions ? title : null;
468
- return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(ListItem, {
469
+ return /*#__PURE__*/React.isValidElement(child) && /*#__PURE__*/React.createElement(ListItem, _extends({
469
470
  key: id,
470
471
  value: value,
471
472
  onClick: moreTabSelect,
@@ -478,9 +479,8 @@ const Tabs = props => {
478
479
  customListItem: menuItemClass
479
480
  },
480
481
  target: "self",
481
- dataId: `${dataId}_Tab`,
482
- ...ListItemProps
483
- }, !showTitleInMoreOptions ? children : null);
482
+ dataId: `${dataId}_Tab`
483
+ }, ListItemProps), !showTitleInMoreOptions ? children : null);
484
484
  })));
485
485
  })) : null);
486
486
  }
@@ -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
  }
@@ -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, { memo, useRef, useCallback } from 'react';
2
4
  import { defaultProps } from './props/defaultProps';
3
5
  import { propTypes } from './props/propTypes';
@@ -111,7 +113,7 @@ function TextBox(props) {
111
113
 
112
114
  let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.border : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect} ${isFocus ? style.focus : ''}` : `${style.basic}`;
113
115
  value = value === null || value === undefined ? '' : value;
114
- return /*#__PURE__*/React.createElement("input", {
116
+ return /*#__PURE__*/React.createElement("input", _extends({
115
117
  "aria-label": ariaLabel,
116
118
  "aria-invalid": ariaInvalid,
117
119
  "aria-autocomplete": ariaAutocomplete,
@@ -145,10 +147,8 @@ function TextBox(props) {
145
147
  value: value,
146
148
  onScroll: isScrollPrevent ? handlePreventTextBoxScroll : '',
147
149
  onKeyPress: onKeyPress,
148
- onMouseDown: onMouseDown,
149
- ...options.current,
150
- ...customProps
151
- });
150
+ onMouseDown: onMouseDown
151
+ }, options.current, customProps));
152
152
  }
153
153
 
154
154
  TextBox.defaultProps = defaultProps;
@@ -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, { useState, useRef, useCallback } from 'react';
2
4
  import { defaultProps } from './props/defaultProps';
3
5
  import { propTypes } from './props/propTypes';
@@ -96,7 +98,7 @@ export default function TextBoxIcon(props) {
96
98
  "data-title": isDisabled ? title : null
97
99
  }, /*#__PURE__*/React.createElement(Box, {
98
100
  flexible: true
99
- }, /*#__PURE__*/React.createElement(TextBox, { ...props,
101
+ }, /*#__PURE__*/React.createElement(TextBox, _extends({}, props, {
100
102
  dataId: dataId,
101
103
  size: size,
102
104
  variant: variant,
@@ -124,7 +126,7 @@ export default function TextBoxIcon(props) {
124
126
  isScrollPrevent: isScrollPrevent,
125
127
  customClass: customTextBox,
126
128
  customProps: TextBoxProps
127
- })), /*#__PURE__*/React.createElement(Box, {
129
+ }))), /*#__PURE__*/React.createElement(Box, {
128
130
  className: `${style.iconContainer} ${customTBoxIcon}`
129
131
  }, /*#__PURE__*/React.createElement(Container, {
130
132
  alignBox: "row"
@@ -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, { useRef } from 'react';
2
4
  import { defaultProps } from './props/defaultProps';
3
5
  import { propTypes } from './props/propTypes';
@@ -70,12 +72,12 @@ export default function Textarea(props) {
70
72
  }
71
73
 
72
74
  let classList = needAppearance ? `${style.container} ${style[size]} ${style[variant]} ${needBorder ? style.needBorder : style.noBorder} ${resize ? style[resizes.current[resize]] : style[resizes.current.none]} ${animated ? `${style[`${size}animated`]}` : ''} ${isDisabled && !needEffect || isReadOnly && !needEffect ? '' : style.effect}` : `${style.basic}`;
73
- return /*#__PURE__*/React.createElement("textarea", {
75
+ return /*#__PURE__*/React.createElement("textarea", _extends({
74
76
  "aria-label": ariaLabel,
75
77
  "aria-labelledby": ariaLabelledby,
76
78
  className: `${customClass} ${isReadOnly && needReadOnlyStyle ? style.readonly : ''} ${classList} ${style[`borderColor_${borderColor}`]}`,
77
- placeholder: placeHolder,
78
- ...options.current,
79
+ placeholder: placeHolder
80
+ }, options.current, {
79
81
  "data-id": dataId,
80
82
  "data-test-id": dataId,
81
83
  maxLength: maxLength,
@@ -87,7 +89,7 @@ export default function Textarea(props) {
87
89
  value: text,
88
90
  id: htmlId,
89
91
  "data-selector-id": dataSelectorId
90
- });
92
+ }));
91
93
  }
92
94
  Textarea.defaultProps = defaultProps;
93
95
  Textarea.propTypes = propTypes; // if (__DOCS__) {
@@ -1,7 +1,7 @@
1
1
  .reset {
2
2
  font-weight: initial;
3
- margin: initial;
4
- padding: initial;
3
+ margin: initial ;
4
+ padding: initial ;
5
5
  }
6
6
  .dotted{
7
7
  composes: dotted from '../../../common/common.module.css';
@@ -50,12 +50,18 @@
50
50
  .decoration_overline{
51
51
  text-decoration: overline;
52
52
  }
53
- .textalign_left{
53
+ [dir=ltr] .textalign_left{
54
54
  text-align: left;
55
55
  }
56
- .textalign_right{
56
+ [dir=rtl] .textalign_left{
57
57
  text-align: right;
58
58
  }
59
+ [dir=ltr] .textalign_right{
60
+ text-align: right;
61
+ }
62
+ [dir=rtl] .textalign_right{
63
+ text-align: left;
64
+ }
59
65
  .textalign_center{
60
66
  text-align: center;
61
67
  }
@@ -138,91 +144,91 @@
138
144
  /*...............Font Size Start.........*/
139
145
 
140
146
  .size7{
141
- font-size: 7px;
147
+ font-size: var(--zd_font_size7) ;
142
148
  }
143
149
  .size8{
144
- font-size: 8px;
150
+ font-size: var(--zd_font_size8) ;
145
151
  }
146
152
  .size9{
147
- font-size: 9px;
153
+ font-size: var(--zd_font_size9) ;
148
154
  }
149
155
  .size10{
150
- font-size: 10px;
156
+ font-size: var(--zd_font_size10) ;
151
157
  }
152
158
  .size11{
153
- font-size: 11px;
159
+ font-size: var(--zd_font_size11) ;
154
160
  }
155
161
  .size12{
156
- font-size: 12px;
162
+ font-size: var(--zd_font_size12) ;
157
163
  }
158
164
  .size13{
159
- font-size: 13px;
165
+ font-size: var(--zd_font_size13) ;
160
166
  }
161
167
  .size14{
162
- font-size: 14px;
168
+ font-size: var(--zd_font_size14) ;
163
169
  }
164
170
  .size15{
165
- font-size: 15px;
171
+ font-size: var(--zd_font_size15) ;
166
172
  }
167
173
  .size16{
168
- font-size: 16px;
174
+ font-size: var(--zd_font_size16) ;
169
175
  }
170
176
  .size17{
171
- font-size: 17px;
177
+ font-size: var(--zd_font_size17) ;
172
178
  }
173
179
  .size18{
174
- font-size: 18px;
180
+ font-size: var(--zd_font_size18) ;
175
181
  }
176
182
  .size19{
177
- font-size: 19px;
183
+ font-size: var(--zd_font_size19) ;
178
184
  }
179
185
  .size20{
180
- font-size: 20px;
186
+ font-size: var(--zd_font_size20) ;
181
187
  }
182
188
  .size21{
183
- font-size: 21px;
189
+ font-size: var(--zd_font_size21) ;
184
190
  }
185
191
  .size22{
186
- font-size: 22px;
192
+ font-size: var(--zd_font_size22) ;
187
193
  }
188
194
  .size24{
189
- font-size: 24px;
195
+ font-size: var(--zd_font_size24) ;
190
196
  }
191
197
  .size25{
192
- font-size: 25px;
198
+ font-size: var(--zd_font_size25) ;
193
199
  }
194
200
  .size26{
195
- font-size: 26px;
201
+ font-size: var(--zd_font_size26) ;
196
202
  }
197
203
  .size28{
198
- font-size: 28px;
204
+ font-size: var(--zd_font_size28) ;
199
205
  }
200
206
  .size29{
201
- font-size: 29px;
207
+ font-size: var(--zd_font_size29) ;
202
208
  }
203
209
  .size30{
204
- font-size: 30px;
210
+ font-size: var(--zd_font_size30) ;
205
211
  }
206
212
  .size32{
207
- font-size: 32px;
213
+ font-size: var(--zd_font_size32) ;
208
214
  }
209
215
  .size34{
210
- font-size: 34px;
216
+ font-size: var(--zd_font_size34) ;
211
217
  }
212
218
  .size35{
213
- font-size: 35px;
219
+ font-size: var(--zd_font_size35) ;
214
220
  }
215
221
  .size36{
216
- font-size: 36px;
222
+ font-size: var(--zd_font_size36) ;
217
223
  }
218
224
  .size40{
219
- font-size: 40px;
225
+ font-size: var(--zd_font_size40) ;
220
226
  }
221
227
  .size50{
222
- font-size: 50px;
228
+ font-size: var(--zd_font_size50) ;
223
229
  }
224
230
  .sizeinherit{
225
- font-size: inherit;
231
+ font-size: inherit ;
226
232
  }
227
233
 
228
234
  /*...............Font Size End.........*/