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

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 (248) hide show
  1. package/.cli/PropLessFiles.html +1 -1
  2. package/.cli/propValidation_report.html +1 -1
  3. package/README.md +12 -5
  4. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +2 -29
  5. package/assets/Appearance/light/mode/Component_LightMode.module.css +2 -29
  6. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +2 -29
  7. package/es/AppContainer/AppContainer.js +10 -9
  8. package/es/AppContainer/AppContainer.module.css +2 -2
  9. package/es/Avatar/Avatar.js +4 -5
  10. package/es/Avatar/Avatar.module.css +22 -52
  11. package/es/AvatarTeam/AvatarTeam.js +7 -7
  12. package/es/AvatarTeam/AvatarTeam.module.css +74 -66
  13. package/es/Button/Button.js +5 -6
  14. package/es/Button/css/Button.module.css +100 -162
  15. package/es/Buttongroup/Buttongroup.module.css +17 -52
  16. package/es/CheckBox/CheckBox.js +18 -8
  17. package/es/CheckBox/CheckBox.module.css +60 -37
  18. package/es/CheckBox/props/propTypes.js +1 -0
  19. package/es/DateTime/DateTime.module.css +57 -86
  20. package/es/DateTime/DateWidget.module.css +7 -11
  21. package/es/DateTime/YearView.module.css +21 -34
  22. package/es/DropBox/DropBox.js +10 -11
  23. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
  24. package/es/DropBox/css/DropBox.module.css +6 -24
  25. package/es/DropDown/DropDown.js +2 -1
  26. package/es/DropDown/DropDown.module.css +2 -2
  27. package/es/DropDown/DropDownHeading.module.css +13 -19
  28. package/es/DropDown/DropDownItem.module.css +22 -43
  29. package/es/DropDown/DropDownSearch.module.css +3 -3
  30. package/es/DropDown/DropDownSeparator.module.css +2 -2
  31. package/es/Heading/Heading.module.css +2 -2
  32. package/es/Label/Label.module.css +23 -12
  33. package/es/Label/LabelColors.module.css +7 -1
  34. package/es/Layout/Layout.module.css +15 -15
  35. package/es/ListItem/ListContainer.js +6 -5
  36. package/es/ListItem/ListItem.js +4 -5
  37. package/es/ListItem/ListItem.module.css +87 -90
  38. package/es/ListItem/ListItemWithAvatar.js +4 -5
  39. package/es/ListItem/ListItemWithCheckBox.js +4 -5
  40. package/es/ListItem/ListItemWithIcon.js +4 -5
  41. package/es/ListItem/ListItemWithRadio.js +4 -5
  42. package/es/Modal/Modal.js +4 -5
  43. package/es/MultiSelect/AdvancedMultiSelect.js +8 -9
  44. package/es/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
  45. package/es/MultiSelect/MultiSelect.module.css +69 -55
  46. package/es/MultiSelect/MultiSelectWithAvatar.js +4 -5
  47. package/es/MultiSelect/SelectedOptions.js +6 -8
  48. package/es/MultiSelect/SelectedOptions.module.css +5 -11
  49. package/es/MultiSelect/Suggestions.js +6 -8
  50. package/es/PopOver/PopOver.module.css +4 -4
  51. package/es/Popup/Popup.js +3 -4
  52. package/es/Radio/Radio.js +25 -6
  53. package/es/Radio/Radio.module.css +40 -23
  54. package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
  55. package/es/Radio/props/defaultProps.js +1 -0
  56. package/es/Radio/props/propTypes.js +7 -0
  57. package/es/ResponsiveDropBox/ResponsiveDropBox.js +2 -4
  58. package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  59. package/es/Ribbon/Ribbon.module.css +64 -147
  60. package/es/RippleEffect/RippleEffect.module.css +27 -9
  61. package/es/Select/Select.js +4 -5
  62. package/es/Select/Select.module.css +22 -33
  63. package/es/Stencils/Stencils.module.css +14 -32
  64. package/es/Switch/Switch.js +8 -8
  65. package/es/Switch/Switch.module.css +35 -32
  66. package/es/Tab/Tab.js +4 -5
  67. package/es/Tab/Tab.module.css +39 -28
  68. package/es/Tab/TabContentWrapper.js +4 -5
  69. package/es/Tab/TabWrapper.js +2 -4
  70. package/es/Tab/Tabs.js +16 -16
  71. package/es/Tab/Tabs.module.css +29 -51
  72. package/es/Tag/Tag.module.css +91 -66
  73. package/es/TextBox/TextBox.js +5 -5
  74. package/es/TextBox/TextBox.module.css +20 -36
  75. package/es/TextBoxIcon/TextBoxIcon.js +2 -4
  76. package/es/TextBoxIcon/TextBoxIcon.module.css +6 -18
  77. package/es/Textarea/Textarea.js +4 -6
  78. package/es/Textarea/Textarea.module.css +60 -36
  79. package/es/Tooltip/Tooltip.module.css +13 -12
  80. package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  81. package/es/common/animation.module.css +29 -227
  82. package/es/common/avatarsizes.module.css +16 -16
  83. package/es/common/basicReset.module.css +15 -5
  84. package/es/common/common.module.css +36 -82
  85. package/es/common/customscroll.module.css +32 -29
  86. package/es/common/transition.module.css +10 -50
  87. package/es/deprecated/PortalLayer/PortalLayer.js +8 -6
  88. package/es/semantic/Button/semanticButton.module.css +3 -3
  89. package/es/v1/Animation/Animation.js +1 -1
  90. package/es/v1/AppContainer/AppContainer.js +10 -9
  91. package/es/v1/Avatar/Avatar.js +4 -5
  92. package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
  93. package/es/v1/Button/Button.js +5 -6
  94. package/es/v1/Card/Card.js +1 -1
  95. package/es/v1/CheckBox/CheckBox.js +15 -9
  96. package/es/v1/CheckBox/props/propTypes.js +1 -0
  97. package/es/v1/DropBox/DropBox.js +10 -11
  98. package/es/v1/DropBox/utils/isMobilePopover.js +1 -1
  99. package/es/v1/DropDown/DropDown.js +2 -1
  100. package/es/v1/ListItem/ListContainer.js +7 -6
  101. package/es/v1/ListItem/ListItem.js +4 -5
  102. package/es/v1/ListItem/ListItemWithAvatar.js +4 -5
  103. package/es/v1/ListItem/ListItemWithCheckBox.js +4 -5
  104. package/es/v1/ListItem/ListItemWithIcon.js +4 -5
  105. package/es/v1/ListItem/ListItemWithRadio.js +4 -5
  106. package/es/v1/Modal/Modal.js +4 -5
  107. package/es/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  108. package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -10
  109. package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -6
  110. package/es/v1/MultiSelect/SelectedOptions.js +6 -8
  111. package/es/v1/MultiSelect/Suggestions.js +6 -8
  112. package/es/v1/MultiSelect/props/defaultProps.js +1 -1
  113. package/es/v1/Popup/Popup.js +3 -4
  114. package/es/v1/Radio/Radio.js +21 -6
  115. package/es/v1/Radio/props/defaultProps.js +1 -0
  116. package/es/v1/Radio/props/propTypes.js +7 -0
  117. package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +3 -5
  118. package/es/v1/Select/GroupSelect.js +1 -1
  119. package/es/v1/Select/Select.js +5 -6
  120. package/es/v1/Select/SelectWithAvatar.js +5 -7
  121. package/es/v1/Select/SelectWithIcon.js +1 -1
  122. package/es/v1/Select/props/defaultProps.js +1 -1
  123. package/es/v1/Select/props/propTypes.js +1 -3
  124. package/es/v1/Switch/Switch.js +8 -8
  125. package/es/v1/Tab/Tab.js +4 -5
  126. package/es/v1/Tab/TabContentWrapper.js +4 -5
  127. package/es/v1/Tab/TabWrapper.js +2 -4
  128. package/es/v1/Tab/Tabs.js +18 -18
  129. package/es/v1/Tab/v1Tab.module.css +39 -28
  130. package/es/v1/Tab/v1Tabs.module.css +29 -51
  131. package/es/v1/TextBox/TextBox.js +5 -5
  132. package/es/v1/TextBoxIcon/TextBoxIcon.js +2 -4
  133. package/es/v1/Textarea/Textarea.js +4 -6
  134. package/es/v1/Tooltip/Tooltip.js +1 -1
  135. package/es/v1/Typography/css/Typography.module.css +33 -39
  136. package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -5
  137. package/lib/AppContainer/AppContainer.module.css +2 -2
  138. package/lib/Avatar/Avatar.module.css +22 -52
  139. package/lib/AvatarTeam/AvatarTeam.module.css +74 -66
  140. package/lib/Button/css/Button.module.css +100 -162
  141. package/lib/Buttongroup/Buttongroup.module.css +17 -52
  142. package/lib/CheckBox/CheckBox.js +34 -24
  143. package/lib/CheckBox/CheckBox.module.css +60 -37
  144. package/lib/CheckBox/props/propTypes.js +1 -0
  145. package/lib/DateTime/DateTime.module.css +57 -86
  146. package/lib/DateTime/DateWidget.module.css +7 -11
  147. package/lib/DateTime/YearView.module.css +21 -34
  148. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +79 -105
  149. package/lib/DropBox/css/DropBox.module.css +6 -24
  150. package/lib/DropDown/DropDown.module.css +2 -2
  151. package/lib/DropDown/DropDownHeading.module.css +13 -19
  152. package/lib/DropDown/DropDownItem.module.css +22 -43
  153. package/lib/DropDown/DropDownSearch.module.css +3 -3
  154. package/lib/DropDown/DropDownSeparator.module.css +2 -2
  155. package/lib/Heading/Heading.module.css +2 -2
  156. package/lib/Label/Label.module.css +23 -12
  157. package/lib/Label/LabelColors.module.css +7 -1
  158. package/lib/Layout/Layout.module.css +15 -15
  159. package/lib/ListItem/ListItem.module.css +87 -90
  160. package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +19 -16
  161. package/lib/MultiSelect/MultiSelect.module.css +69 -55
  162. package/lib/MultiSelect/SelectedOptions.module.css +5 -11
  163. package/lib/PopOver/PopOver.module.css +4 -4
  164. package/lib/Radio/Radio.js +45 -26
  165. package/lib/Radio/Radio.module.css +40 -23
  166. package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
  167. package/lib/Radio/props/defaultProps.js +1 -0
  168. package/lib/Radio/props/propTypes.js +7 -0
  169. package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
  170. package/lib/Ribbon/Ribbon.module.css +64 -147
  171. package/lib/RippleEffect/RippleEffect.module.css +27 -9
  172. package/lib/Select/Select.module.css +22 -33
  173. package/lib/Stencils/Stencils.module.css +14 -32
  174. package/lib/Switch/Switch.module.css +35 -32
  175. package/lib/Tab/Tab.module.css +39 -28
  176. package/lib/Tab/Tabs.module.css +29 -51
  177. package/lib/Tag/Tag.module.css +91 -66
  178. package/lib/TextBox/TextBox.module.css +20 -36
  179. package/lib/TextBoxIcon/TextBoxIcon.module.css +6 -18
  180. package/lib/Textarea/Textarea.module.css +60 -36
  181. package/lib/Tooltip/Tooltip.module.css +13 -12
  182. package/lib/common/animation.module.css +29 -227
  183. package/lib/common/avatarsizes.module.css +16 -16
  184. package/lib/common/basicReset.module.css +15 -5
  185. package/lib/common/common.module.css +36 -82
  186. package/lib/common/customscroll.module.css +32 -29
  187. package/lib/common/transition.module.css +10 -50
  188. package/lib/semantic/Button/semanticButton.module.css +3 -3
  189. package/lib/v1/Animation/Animation.js +1 -1
  190. package/lib/v1/Card/Card.js +1 -1
  191. package/lib/v1/CheckBox/CheckBox.js +7 -1
  192. package/lib/v1/CheckBox/props/propTypes.js +1 -0
  193. package/lib/v1/DropBox/utils/isMobilePopover.js +1 -1
  194. package/lib/v1/ListItem/ListContainer.js +1 -1
  195. package/lib/v1/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
  196. package/lib/v1/MultiSelect/AdvancedMultiSelect.js +1 -1
  197. package/lib/v1/MultiSelect/props/defaultProps.js +1 -1
  198. package/lib/v1/Radio/Radio.js +22 -7
  199. package/lib/v1/Radio/props/defaultProps.js +1 -0
  200. package/lib/v1/Radio/props/propTypes.js +7 -0
  201. package/lib/v1/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
  202. package/lib/v1/Select/GroupSelect.js +1 -1
  203. package/lib/v1/Select/Select.js +1 -1
  204. package/lib/v1/Select/SelectWithAvatar.js +4 -6
  205. package/lib/v1/Select/SelectWithIcon.js +1 -1
  206. package/lib/v1/Select/props/defaultProps.js +1 -1
  207. package/lib/v1/Select/props/propTypes.js +1 -3
  208. package/lib/v1/Tab/Tabs.js +2 -2
  209. package/lib/v1/Tab/v1Tab.module.css +39 -28
  210. package/lib/v1/Tab/v1Tabs.module.css +29 -51
  211. package/lib/v1/Tooltip/Tooltip.js +1 -1
  212. package/lib/v1/Typography/css/Typography.module.css +33 -39
  213. package/package.json +10 -10
  214. package/es/v1/Provider/AvatarSize.js +0 -13
  215. package/es/v1/Provider/Config.js +0 -18
  216. package/es/v1/Provider/CssProvider.js +0 -16
  217. package/es/v1/Provider/IdProvider.js +0 -66
  218. package/es/v1/Provider/LibraryContext.js +0 -37
  219. package/es/v1/Provider/LibraryContextInit.js +0 -3
  220. package/es/v1/Provider/NumberGenerator/NumberGenerator.js +0 -136
  221. package/es/v1/Provider/ZindexProvider.js +0 -57
  222. package/es/v1/Provider/index.js +0 -4
  223. package/es/v1/Responsive/CustomResponsive.js +0 -195
  224. package/es/v1/Responsive/RefWrapper.js +0 -39
  225. package/es/v1/Responsive/ResizeComponent.js +0 -197
  226. package/es/v1/Responsive/ResizeObserver.js +0 -140
  227. package/es/v1/Responsive/Responsive.js +0 -194
  228. package/es/v1/Responsive/index.js +0 -9
  229. package/es/v1/Responsive/props/defaultProps.js +0 -13
  230. package/es/v1/Responsive/props/propTypes.js +0 -25
  231. package/lib/v1/Provider/AvatarSize.js +0 -24
  232. package/lib/v1/Provider/Config.js +0 -27
  233. package/lib/v1/Provider/CssProvider.js +0 -27
  234. package/lib/v1/Provider/IdProvider.js +0 -79
  235. package/lib/v1/Provider/LibraryContext.js +0 -76
  236. package/lib/v1/Provider/LibraryContextInit.js +0 -15
  237. package/lib/v1/Provider/NumberGenerator/NumberGenerator.js +0 -174
  238. package/lib/v1/Provider/ZindexProvider.js +0 -69
  239. package/lib/v1/Provider/index.js +0 -81
  240. package/lib/v1/Responsive/CustomResponsive.js +0 -242
  241. package/lib/v1/Responsive/RefWrapper.js +0 -57
  242. package/lib/v1/Responsive/ResizeComponent.js +0 -268
  243. package/lib/v1/Responsive/ResizeObserver.js +0 -168
  244. package/lib/v1/Responsive/Responsive.js +0 -274
  245. package/lib/v1/Responsive/index.js +0 -55
  246. package/lib/v1/Responsive/props/defaultProps.js +0 -23
  247. package/lib/v1/Responsive/props/propTypes.js +0 -39
  248. package/result.json +0 -1
@@ -1,5 +1,3 @@
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
-
3
1
  import React from 'react';
4
2
  import { propTypes } from './props/propTypes';
5
3
  import { defaultProps } from './props/defaultProps';
@@ -11,6 +9,7 @@ export default class CheckBox extends React.Component {
11
9
  constructor(props) {
12
10
  super(props);
13
11
  this.onChange = this.onChange.bind(this);
12
+ this.handleGetContainerRef = this.handleGetContainerRef.bind(this);
14
13
  }
15
14
 
16
15
  onChange(e) {
@@ -21,6 +20,14 @@ export default class CheckBox extends React.Component {
21
20
  onChange && onChange(!checked, e);
22
21
  }
23
22
 
23
+ handleGetContainerRef(ele) {
24
+ let {
25
+ getContainerRef,
26
+ id
27
+ } = this.props;
28
+ getContainerRef && getContainerRef(ele, id);
29
+ }
30
+
24
31
  render() {
25
32
  let {
26
33
  id,
@@ -66,7 +73,7 @@ export default class CheckBox extends React.Component {
66
73
  role = 'checkbox',
67
74
  ariaChecked = checked
68
75
  } = a11y;
69
- return /*#__PURE__*/React.createElement(Container, _extends({
76
+ return /*#__PURE__*/React.createElement(Container, {
70
77
  dataId: dataId,
71
78
  isCover: false,
72
79
  isInline: text ? false : true,
@@ -78,12 +85,14 @@ export default class CheckBox extends React.Component {
78
85
  onClick: isReadOnly || disabled ? null : this.onChange,
79
86
  tabIndex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
80
87
  "aria-checked": ariaChecked,
88
+ eleRef: this.handleGetContainerRef,
81
89
  role: role,
82
90
  "aria-label": ariaLabel,
83
91
  "aria-labelledby": ariaLabelledby,
84
92
  "aria-hidden": ariaHidden,
85
- "data-selector-id": dataSelectorId || id
86
- }, CheckBoxProps), /*#__PURE__*/React.createElement(Box, {
93
+ "data-selector-id": dataSelectorId || id,
94
+ ...CheckBoxProps
95
+ }, /*#__PURE__*/React.createElement(Box, {
87
96
  className: `${style.boxContainer} ${style[size]} ${customCBoxSize} ${isFilled ? style.filled : ''}`
88
97
  }, /*#__PURE__*/React.createElement("input", {
89
98
  type: "hidden",
@@ -135,7 +144,7 @@ export default class CheckBox extends React.Component {
135
144
  }) : null))), text && /*#__PURE__*/React.createElement(Box, {
136
145
  flexible: true,
137
146
  className: style.text
138
- }, /*#__PURE__*/React.createElement(Label, _extends({
147
+ }, /*#__PURE__*/React.createElement(Label, {
139
148
  text: text,
140
149
  palette: disabled ? 'disable' : labelPalette,
141
150
  id: id,
@@ -146,8 +155,9 @@ export default class CheckBox extends React.Component {
146
155
  customClass: `${active && !disabled ? `${style[`active${palette}Label`]}` : ''}
147
156
  ${checked && active ? `${style[`checked${palette}Label`]}` : ''}
148
157
  ${accessMode} ${customLabel}`,
149
- title: toolTip ? toolTip : text
150
- }, LabelProps))));
158
+ title: toolTip ? toolTip : text,
159
+ ...LabelProps
160
+ })));
151
161
  }
152
162
 
153
163
  }
@@ -1,6 +1,6 @@
1
1
  .varClass {
2
2
  /* checkbox default variables */
3
- --checkbox_bg_color: var(--zdt_checkbox_default_bg);
3
+ --checkbox_bg_color: var(--zdt_base_bg);
4
4
  --checkbox_cursor: default;
5
5
  --checkbox_stroke_width: 2px;
6
6
  --checkbox_stroke_color: var(--zdt_checkbox_default_stroke_border);
@@ -9,141 +9,161 @@
9
9
  --checkbox_checked_stroke_color: var(--zdt_checkbox_primary_stroke_border);
10
10
  --checkbox_checked_active_color: var(--zdt_checkbox_primary_stroke_border);
11
11
  }
12
+
12
13
  .container {
13
14
  composes: varClass;
14
15
  stroke: var(--checkbox_stroke_color);
15
16
  }
16
- .container, .pointer, .readonly {
17
+
18
+ .container,
19
+ .pointer,
20
+ .readonly {
17
21
  cursor: var(--checkbox_cursor);
18
22
  }
23
+
19
24
  .pointer {
20
25
  --checkbox_cursor: pointer;
21
26
  }
27
+
22
28
  .readonly {
23
29
  --checkbox_cursor: default;
24
30
  }
31
+
25
32
  .cbBox {
26
33
  fill: none;
27
34
  stroke-width: var(--checkbox_stroke_width);
28
35
  stroke-linecap: round;
29
36
  stroke: inherit;
30
37
  }
38
+
31
39
  .tickPath {
32
40
  composes: cbBox;
33
41
  stroke-dasharray: 40;
34
42
  }
43
+
35
44
  .boxContainer {
36
45
  composes: offSelection from '../common/common.module.css';
37
- /* css:theme-validation:ignore */
38
46
  border-radius: 2px;
39
47
  background-color: var(--checkbox_bg_color);
40
48
  }
49
+
41
50
  .filled {
42
51
  --checkbox_bg_color: inherit;
43
52
  }
53
+
44
54
  .medium {
45
- width: var(--zd_size16) ;
46
- height: var(--zd_size16) ;
55
+ width: 16px;
56
+ height: 16px;
47
57
  }
58
+
48
59
  .small {
49
- width: var(--zd_size13) ;
50
- height: var(--zd_size13) ;
60
+ width: 13px;
61
+ height: 13px;
51
62
  }
52
63
 
53
64
  .checkbox {
54
65
  position: relative;
55
- font-size: 0 ;
66
+ font-size: 0;
56
67
  display: block;
57
68
  }
69
+
70
+ /*rtl:begin:ignore*/
58
71
  .tick {
59
72
  position: absolute;
60
- left: 0 ;
73
+ left: 0;
61
74
  }
75
+
76
+ /*rtl:end:ignore*/
62
77
  .mediumtick {
63
- top: calc( var(--zd_size2) * -1 ) ;
64
- height: var(--zd_size20) ;
65
- width: var(--zd_size20) ;
78
+ top: -2px;
79
+ height: 20px;
80
+ width: 20px;
66
81
  }
82
+
83
+ /*rtl:begin:ignore*/
67
84
  .smalltick {
68
- top: calc( var(--zd_size3) * -1 ) ;
69
- height: var(--zd_size18) ;
70
- width: var(--zd_size18) ;
71
- left: calc( var(--zd_size1) * -1 ) ;
85
+ top: -3px;
86
+ height: 18px;
87
+ width: 18px;
88
+ left: -1px;
72
89
  }
73
90
 
91
+ /*rtl:end:ignore*/
92
+
74
93
  .checkedtickPath {
75
94
  stroke-dashoffset: 40;
76
- }
77
-
78
- [dir=ltr] .checkedtickPath {
79
95
  animation: tickAnimate var(--zd_transition3) ease forwards;
80
96
  }
81
97
 
82
- [dir=rtl] .checkedtickPath {
83
- animation: tickAnimate var(--zd_transition3) ease forwards;
84
- }
85
98
  .linePath {
86
99
  transform-origin: center;
87
- }
88
- [dir=ltr] .linePath {
89
100
  animation: lineAnimate var(--zd_transition3) ease forwards;
90
101
  }
91
- [dir=rtl] .linePath {
92
- animation: lineAnimate var(--zd_transition3) ease forwards;
93
- }
94
- [dir=ltr] .text {
95
- margin-left: var(--zd_size6) ;
96
- }
97
- [dir=rtl] .text {
98
- margin-right: var(--zd_size6) ;
102
+
103
+ .text {
104
+ margin-left: 6px;
99
105
  }
100
106
 
101
107
  .checkedprimary,
102
108
  .checkeddanger {
103
109
  stroke: var(--checkbox_checked_stroke_color);
104
110
  }
111
+
105
112
  .primary:hover
113
+
106
114
  /* .primary:focus */
107
- {
115
+ {
108
116
  --checkbox_stroke_color: var(--zdt_checkbox_primary_stroke_border);
109
117
  }
118
+
110
119
  .checkedprimary {
111
120
  --checkbox_checked_stroke_color: var(--zdt_checkbox_primary_stroke_border);
112
121
  }
122
+
113
123
  .danger:hover
124
+
114
125
  /* .danger:focus */
115
- {
126
+ {
116
127
  --checkbox_stroke_color: var(--zdt_checkbox_danger_stroke_border);
117
128
  }
129
+
118
130
  .checkeddanger {
119
131
  --checkbox_checked_stroke_color: var(--zdt_checkbox_danger_stroke_border);
120
132
  }
121
133
 
122
134
  .checkedprimaryLabel,
123
135
  .checkeddangerLabel {
124
- /* css:theme-validation:ignore */
125
136
  color: var(--checkbox_checked_active_color);
126
137
  }
138
+
127
139
  .activeprimaryLabel:hover
140
+
128
141
  /* .activeprimaryLabel:focus */
129
- {
142
+ {
130
143
  --label_text_color: var(--zdt_checkbox_label_primary_text);
131
144
  }
145
+
132
146
  .checkedprimaryLabel {
133
147
  --checkbox_checked_active_color: var(--zdt_checkbox_primary_stroke_border);
134
148
  }
149
+
135
150
  .activedangerLabel:hover
151
+
136
152
  /* .activedangerLabel:focus */
137
- {
153
+ {
138
154
  --label_text_color: var(--zdt_checkbox_label_danger_text);
139
155
  }
156
+
140
157
  .checkeddangerLabel {
141
158
  --checkbox_checked_active_color: var(--zdt_checkbox_danger_stroke_border);
142
159
  }
160
+
161
+ /*rtl:begin:ignore*/
143
162
  @keyframes tickAnimate {
144
163
  0% {
145
164
  stroke-dashoffset: 40;
146
165
  }
166
+
147
167
  100% {
148
168
  stroke-dashoffset: 0;
149
169
  }
@@ -153,7 +173,10 @@
153
173
  0% {
154
174
  transform: scaleX(0);
155
175
  }
176
+
156
177
  100% {
157
178
  transform: scaleX(1);
158
179
  }
159
180
  }
181
+
182
+ /*rtl:end:ignore*/
@@ -8,6 +8,7 @@ export const propTypes = {
8
8
  disabled: PropTypes.bool,
9
9
  disabledTitle: PropTypes.string,
10
10
  getRef: PropTypes.func,
11
+ getContainerRef: PropTypes.func,
11
12
  id: PropTypes.string,
12
13
  isFilled: PropTypes.bool,
13
14
  isClipped: PropTypes.bool,
@@ -2,30 +2,25 @@
2
2
  font-family: var(--zd_semibold);
3
3
  }
4
4
 
5
- [dir=ltr] .boxPadding {
6
- padding-right: var(--zd_size19) ;
7
- padding-left: var(--zd_size19) ;
8
- }
9
-
10
- [dir=rtl] .boxPadding {
11
- padding-left: var(--zd_size19) ;
12
- padding-right: var(--zd_size19) ;
5
+ .boxPadding {
6
+ padding-right: 19px;
7
+ padding-left: 19px;
13
8
  }
14
9
 
15
10
  .container {
16
- font-size: var(--zd_font_size16) ;
17
- composes: offSelection from '../common/common.module.css';
18
11
  border-radius: 3px;
19
- background-color: var(--zdt_datetime_default_bg);
12
+ background-color: var(--zdt_base_bg);
13
+ font-size: 16px;
14
+ composes: offSelection from '../common/common.module.css';
20
15
  }
21
16
 
22
17
  .header {
23
- min-height: var(--zd_size36) ;
24
- composes: boxPadding;
18
+ min-height: 36px;
25
19
  text-align: center;
26
20
  background-color: var(--zdt_datetime_header_bg);
27
21
  border-radius: 0 0 2px 2px;
28
22
  border-bottom: 1px solid var(--zdt_datetime_header_border);
23
+ composes: boxPadding;
29
24
  }
30
25
 
31
26
  .datesStr {
@@ -33,54 +28,43 @@
33
28
  }
34
29
 
35
30
  .grid {
36
- width: var(--zd_size28) ;
37
- height: var(--zd_size28) ;
31
+ width: 28px;
32
+ height: 28px;
38
33
  line-height: 1.3846;
39
- /* css:theme-validation:ignore */
40
34
  text-align: center;
41
- padding: var(--zd_size4) 0 ;
35
+ padding: 4px 0;
42
36
  border-radius: 50%;
43
37
  border: 1px solid transparent;
44
38
  }
45
39
 
46
40
  .thArrow,
47
41
  .datesStr {
48
- font-size: var(--zd_font_size13) ;
49
- color: var(--zdt_datetime_datestr_text);
50
- }
51
-
52
- .thArrow, .datesStr {
42
+ font-size: 13px;
43
+ color: var(--zdt_base_color);
53
44
  cursor: pointer;
54
45
  }
55
46
 
56
47
  .thArrow:hover,
57
48
  .datesStr:hover {
58
- color: var(--zdt_datetime_datestr_text);
59
- }
60
-
61
- .thArrow:hover, .datesStr:hover {
49
+ color: var(--zdt_base_color);
62
50
  background: var(--zdt_datetime_datestr_hover_bg);
63
51
  }
64
52
 
65
- [dir=ltr] .navigation {
66
- margin-left: var(--zd_size2) ;
67
- }
68
-
69
- [dir=rtl] .navigation {
70
- margin-right: var(--zd_size2) ;
53
+ .navigation {
54
+ margin-left: 2px;
71
55
  }
72
56
 
73
57
  .thMonYear {
74
- font-size: var(--zd_font_size13) ;
58
+ font-size: 13px;
75
59
  line-height: 1.8462;
76
- color: var(--zdt_datetime_datestr_text);
60
+ color: var(--zdt_base_color);
77
61
  composes: semibold;
78
62
  display: initial
79
63
  }
80
64
 
81
65
  .dateContainer {
82
- margin: 0 var(--zd_size19) 0 var(--zd_size19) ;
83
- padding: var(--zd_size6) 0 var(--zd_size10) 0 ;
66
+ margin: 0 19px 0 19px;
67
+ padding: 6px 0 10px 0;
84
68
  }
85
69
 
86
70
  .separator {
@@ -88,29 +72,29 @@
88
72
  }
89
73
 
90
74
  .days {
91
- min-height: var(--zd_size36) ;
75
+ min-height: 36px;
76
+ padding-top: 7px;
92
77
  composes: boxPadding;
93
78
  composes: alignBetween from '../common/common.module.css';
94
- padding-top: var(--zd_size7) ;
95
79
  }
96
80
 
97
81
  .daysStr {
98
82
  composes: dotted from '../common/common.module.css';
99
- font-size: var(--zd_font_size10) ;
83
+ font-size: 10px;
100
84
  color: var(--zdt_datetime_daystr_text);
101
85
  text-transform: uppercase;
102
86
  composes: semibold;
103
- width: var(--zd_size31) ;
87
+ width: 31px;
104
88
  }
105
89
 
106
90
  .dateRow {
107
- height: var(--zd_size28) ;
91
+ height: 28px;
92
+ margin: 1px 0 5px;
108
93
  composes: alignBetween from '../common/common.module.css';
109
- margin: var(--zd_size1) 0 var(--zd_size5) ;
110
94
  }
111
95
 
112
96
  .dateRow:last-child {
113
- margin-bottom: 0 ;
97
+ margin-bottom: 0;
114
98
  }
115
99
 
116
100
  .sunday,
@@ -123,7 +107,8 @@
123
107
  color: var(--zdt_datetime_invalid_text);
124
108
  }
125
109
 
126
- .invalidDate.sunday,.inActiveDate.sunday:hover {
110
+ .invalidDate.sunday,
111
+ .inActiveDate.sunday:hover {
127
112
  color: var(--zdt_datetime_invaliddate_text);
128
113
  }
129
114
 
@@ -141,46 +126,46 @@
141
126
  .active:hover,
142
127
  .active.today,
143
128
  .active:hover.today:hover {
144
- color: var(--zdt_datetime_today_text);
145
- }
146
-
147
- .active, .active:hover, .active.today, .active:hover.today:hover {
148
129
  background-color: var(--zdt_datetime_selected_bg);
130
+ color: var(--zdt_datetime_today_text);
149
131
  border-radius: 50%;
150
132
  }
151
- .inActiveDate{
152
- color: var(--zdt_datetime_invalid_text);
153
- cursor: no-drop;
133
+
134
+ .inActiveDate {
135
+ cursor: no-drop;
136
+ color: var(--zdt_datetime_invalid_text);
154
137
  }
155
- .inActiveDate:hover
156
- {
138
+
139
+ .inActiveDate:hover {
157
140
  color: var(--zdt_datetime_invalid_text);
158
141
  }
159
- .inActiveDate:hover, .inActiveDate.sunday:hover{
142
+
143
+ .inActiveDate:hover,
144
+ .inActiveDate.sunday:hover {
160
145
  background-color: var(--zdt_datetime_inactivedate_hover_bg);
161
146
 
162
147
  }
163
148
 
164
149
 
165
150
  .timesection {
166
- padding-top: var(--zd_size5) ;
167
- padding-bottom: var(--zd_size10) ;
151
+ padding-top: 5px;
152
+ padding-bottom: 10px;
168
153
  }
169
154
 
170
155
  .dropDownContainer {
171
- padding: 0 var(--zd_size5) ;
156
+ padding: 0 5px;
172
157
  }
173
158
 
174
159
  .dropDown {
175
- width: var(--zd_size60) ;
160
+ width: 60px;
176
161
  display: inline-block;
162
+ margin: 0 4px;
177
163
  position: relative;
178
- margin: 0 var(--zd_size4) ;
179
164
  }
180
165
 
181
166
  .footer {
182
- margin-top: var(--zd_size10) ;
183
- padding-bottom: var(--zd_size12) ;
167
+ margin-top: 10px;
168
+ padding-bottom: 12px;
184
169
  }
185
170
 
186
171
  .timesection,
@@ -190,52 +175,38 @@ cursor: no-drop;
190
175
 
191
176
  .space {
192
177
  display: inline-block;
193
- width: var(--zd_size15) ;
178
+ width: 15px;
194
179
  }
195
180
 
196
181
  .downArrow {
182
+ margin-left: 2px;
197
183
  color: var(--zdt_datetime_daystr_text);
198
184
  }
199
185
 
200
- [dir=ltr] .downArrow {
201
- margin-left: var(--zd_size2) ;
202
- }
203
-
204
- [dir=rtl] .downArrow {
205
- margin-right: var(--zd_size2) ;
206
- }
207
-
208
186
  .dateText {
209
187
  cursor: pointer;
210
188
  }
211
189
 
212
190
  .dateText:hover .downArrow {
213
- color: var(--zdt_datetime_datestr_text);
191
+ color: var(--zdt_base_color);
214
192
  }
215
193
 
216
194
  .text {
217
195
  composes: boxPadding;
218
- font-size: var(--zd_font_size11) ;
196
+ font-size: 11px;
219
197
  text-transform: uppercase;
220
198
  color: var(--zdt_datetime_text);
199
+ margin-top: 14px;
221
200
  composes: semibold;
222
201
  display: block;
223
- margin-top: var(--zd_size14) ;
224
202
  }
225
203
 
226
204
  .yearContainer {
227
205
  position: absolute;
228
- top: 0 ;
229
- width: 100% ;
230
- height: 100% ;
231
- }
232
-
233
- [dir=ltr] .yearContainer {
234
- left: 0 ;
235
- }
236
-
237
- [dir=rtl] .yearContainer {
238
- right: 0 ;
206
+ top: 0;
207
+ left: 0;
208
+ width: 100%;
209
+ height: 100%;
239
210
  }
240
211
 
241
212
  .subContainer {
@@ -243,8 +214,8 @@ cursor: no-drop;
243
214
  }
244
215
 
245
216
  .dropBox {
246
- width: 100% ;
217
+ width: 100%;
247
218
  border-radius: 3px;
248
219
  box-shadow: var(--zd_bs_dropbox_bottom);
249
- background-color: var(--zdt_dropbox_default_bg);
220
+ background-color: var(--zdt_base_bg);
250
221
  }
@@ -3,7 +3,9 @@
3
3
  position: relative;
4
4
  composes: offSelection from '../common/common.module.css';
5
5
  }
6
- .readOnly, .readOnly > input, .disabled {
6
+ .readOnly,
7
+ .readOnly > input,
8
+ .disabled {
7
9
  cursor: not-allowed;
8
10
  }
9
11
  .enabled {
@@ -14,17 +16,11 @@
14
16
  }
15
17
  .inputLine {
16
18
  position: absolute;
17
- bottom: 0 ;
18
- transition: border var(--zd_transition2) linear 0s;
19
+ bottom: 0;
20
+ left: 0;
21
+ right: 0;
19
22
  border-bottom: 1px solid var(--zdt_datewidget_input_border);
20
- }
21
- [dir=ltr] .inputLine {
22
- left: 0 ;
23
- right: 0 ;
24
- }
25
- [dir=rtl] .inputLine {
26
- right: 0 ;
27
- left: 0 ;
23
+ transition: border var(--zd_transition2) linear 0s;
28
24
  }
29
25
  .enabled:hover .inputLine {
30
26
  border-bottom-color: var(--zdt_datewidget_enabled_border);