@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
@@ -1,6 +1,6 @@
1
1
  .varClass {
2
2
  /* checkbox default variables */
3
- --checkbox_bg_color: var(--zdt_base_bg);
3
+ --checkbox_bg_color: var(--zdt_checkbox_default_bg);
4
4
  --checkbox_cursor: default;
5
5
  --checkbox_stroke_width: 2px;
6
6
  --checkbox_stroke_color: var(--zdt_checkbox_default_stroke_border);
@@ -9,124 +9,111 @@
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
-
13
12
  .container {
14
13
  composes: varClass;
15
14
  stroke: var(--checkbox_stroke_color);
16
15
  }
17
-
18
- .container,
19
- .pointer,
20
- .readonly {
16
+ .container, .pointer, .readonly {
21
17
  cursor: var(--checkbox_cursor);
22
18
  }
23
-
24
19
  .pointer {
25
20
  --checkbox_cursor: pointer;
26
21
  }
27
-
28
22
  .readonly {
29
23
  --checkbox_cursor: default;
30
24
  }
31
-
32
25
  .cbBox {
33
26
  fill: none;
34
27
  stroke-width: var(--checkbox_stroke_width);
35
28
  stroke-linecap: round;
36
29
  stroke: inherit;
37
30
  }
38
-
39
31
  .tickPath {
40
32
  composes: cbBox;
41
33
  stroke-dasharray: 40;
42
34
  }
43
-
44
35
  .boxContainer {
45
36
  composes: offSelection from '../common/common.module.css';
46
37
  border-radius: 2px;
47
38
  background-color: var(--checkbox_bg_color);
48
39
  }
49
-
50
40
  .filled {
51
41
  --checkbox_bg_color: inherit;
52
42
  }
53
-
54
43
  .medium {
55
- width: 16px;
56
- height: 16px;
44
+ width: var(--zd_size16) ;
45
+ height: var(--zd_size16) ;
57
46
  }
58
-
59
47
  .small {
60
- width: 13px;
61
- height: 13px;
48
+ width: var(--zd_size13) ;
49
+ height: var(--zd_size13) ;
62
50
  }
63
51
 
64
52
  .checkbox {
65
53
  position: relative;
66
- font-size: 0;
54
+ font-size: 0 ;
67
55
  display: block;
68
56
  }
69
-
70
- /*rtl:begin:ignore*/
71
57
  .tick {
72
58
  position: absolute;
73
- left: 0;
59
+ left: 0 ;
74
60
  }
75
-
76
- /*rtl:end:ignore*/
77
61
  .mediumtick {
78
- top: -2px;
79
- height: 20px;
80
- width: 20px;
62
+ top: calc( var(--zd_size2) * -1 ) ;
63
+ height: var(--zd_size20) ;
64
+ width: var(--zd_size20) ;
81
65
  }
82
-
83
- /*rtl:begin:ignore*/
84
66
  .smalltick {
85
- top: -3px;
86
- height: 18px;
87
- width: 18px;
88
- left: -1px;
67
+ top: calc( var(--zd_size3) * -1 ) ;
68
+ height: var(--zd_size18) ;
69
+ width: var(--zd_size18) ;
70
+ left: calc( var(--zd_size1) * -1 ) ;
89
71
  }
90
72
 
91
- /*rtl:end:ignore*/
92
-
93
73
  .checkedtickPath {
94
74
  stroke-dashoffset: 40;
75
+ }
76
+
77
+ [dir=ltr] .checkedtickPath {
95
78
  animation: tickAnimate var(--zd_transition3) ease forwards;
96
79
  }
97
80
 
81
+ [dir=rtl] .checkedtickPath {
82
+ animation: tickAnimate var(--zd_transition3) ease forwards;
83
+ }
98
84
  .linePath {
99
85
  transform-origin: center;
86
+ }
87
+ [dir=ltr] .linePath {
100
88
  animation: lineAnimate var(--zd_transition3) ease forwards;
101
89
  }
102
-
103
- .text {
104
- margin-left: 6px;
90
+ [dir=rtl] .linePath {
91
+ animation: lineAnimate var(--zd_transition3) ease forwards;
92
+ }
93
+ [dir=ltr] .text {
94
+ margin-left: var(--zd_size6) ;
95
+ }
96
+ [dir=rtl] .text {
97
+ margin-right: var(--zd_size6) ;
105
98
  }
106
99
 
107
100
  .checkedprimary,
108
101
  .checkeddanger {
109
102
  stroke: var(--checkbox_checked_stroke_color);
110
103
  }
111
-
112
104
  .primary:hover
113
-
114
105
  /* .primary:focus */
115
- {
106
+ {
116
107
  --checkbox_stroke_color: var(--zdt_checkbox_primary_stroke_border);
117
108
  }
118
-
119
109
  .checkedprimary {
120
110
  --checkbox_checked_stroke_color: var(--zdt_checkbox_primary_stroke_border);
121
111
  }
122
-
123
112
  .danger:hover
124
-
125
113
  /* .danger:focus */
126
- {
114
+ {
127
115
  --checkbox_stroke_color: var(--zdt_checkbox_danger_stroke_border);
128
116
  }
129
-
130
117
  .checkeddanger {
131
118
  --checkbox_checked_stroke_color: var(--zdt_checkbox_danger_stroke_border);
132
119
  }
@@ -135,35 +122,26 @@
135
122
  .checkeddangerLabel {
136
123
  color: var(--checkbox_checked_active_color);
137
124
  }
138
-
139
125
  .activeprimaryLabel:hover
140
-
141
126
  /* .activeprimaryLabel:focus */
142
- {
127
+ {
143
128
  --label_text_color: var(--zdt_checkbox_label_primary_text);
144
129
  }
145
-
146
130
  .checkedprimaryLabel {
147
131
  --checkbox_checked_active_color: var(--zdt_checkbox_primary_stroke_border);
148
132
  }
149
-
150
133
  .activedangerLabel:hover
151
-
152
134
  /* .activedangerLabel:focus */
153
- {
135
+ {
154
136
  --label_text_color: var(--zdt_checkbox_label_danger_text);
155
137
  }
156
-
157
138
  .checkeddangerLabel {
158
139
  --checkbox_checked_active_color: var(--zdt_checkbox_danger_stroke_border);
159
140
  }
160
-
161
- /*rtl:begin:ignore*/
162
141
  @keyframes tickAnimate {
163
142
  0% {
164
143
  stroke-dashoffset: 40;
165
144
  }
166
-
167
145
  100% {
168
146
  stroke-dashoffset: 0;
169
147
  }
@@ -173,10 +151,7 @@
173
151
  0% {
174
152
  transform: scaleX(0);
175
153
  }
176
-
177
154
  100% {
178
155
  transform: scaleX(1);
179
156
  }
180
157
  }
181
-
182
- /*rtl:end:ignore*/
@@ -43,6 +43,12 @@ var _dateFormat = require("./dateFormatUtils/dateFormat");
43
43
 
44
44
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
45
45
 
46
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
47
+
48
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
49
+
50
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
51
+
46
52
  function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
47
53
 
48
54
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -724,7 +730,11 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
724
730
  positionsOffset = _this$props7.positionsOffset,
725
731
  targetOffset = _this$props7.targetOffset,
726
732
  isRestrictScroll = _this$props7.isRestrictScroll,
727
- dropBoxPortalId = _this$props7.dropBoxPortalId;
733
+ dropBoxPortalId = _this$props7.dropBoxPortalId,
734
+ _this$props7$customPr = _this$props7.customProps,
735
+ customProps = _this$props7$customPr === void 0 ? {} : _this$props7$customPr;
736
+ var _customProps$TimeProp = customProps.TimeProps,
737
+ TimeProps = _customProps$TimeProp === void 0 ? {} : _customProps$TimeProp;
728
738
  var _i18nKeys$timeText = i18nKeys.timeText,
729
739
  timeText = _i18nKeys$timeText === void 0 ? 'Time' : _i18nKeys$timeText,
730
740
  _i18nKeys$submitText = i18nKeys.submitText,
@@ -790,7 +800,8 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
790
800
  ampmSuggestions: this.ampmSuggestions,
791
801
  onAmPmSelect: this.amPmSelect,
792
802
  amPm: amPm,
793
- is24Hour: is24Hour
803
+ is24Hour: is24Hour,
804
+ customProps: _objectSpread({}, TimeProps)
794
805
  }) : null, needAction ? /*#__PURE__*/_react["default"].createElement(_DateTimePopupFooter["default"], {
795
806
  submitText: submitText,
796
807
  onSubmit: this.handleSelect,
@@ -2,25 +2,30 @@
2
2
  font-family: var(--zd_semibold);
3
3
  }
4
4
 
5
- .boxPadding {
6
- padding-right: 19px;
7
- padding-left: 19px;
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) ;
8
13
  }
9
14
 
10
15
  .container {
11
- border-radius: 3px;
12
- background-color: var(--zdt_base_bg);
13
- font-size: 16px;
16
+ font-size: var(--zd_font_size16) ;
14
17
  composes: offSelection from '../common/common.module.css';
18
+ border-radius: 3px;
19
+ background-color: var(--zdt_datetime_default_bg);
15
20
  }
16
21
 
17
22
  .header {
18
- min-height: 36px;
23
+ min-height: var(--zd_size36) ;
24
+ composes: boxPadding;
19
25
  text-align: center;
20
26
  background-color: var(--zdt_datetime_header_bg);
21
27
  border-radius: 0 0 2px 2px;
22
28
  border-bottom: 1px solid var(--zdt_datetime_header_border);
23
- composes: boxPadding;
24
29
  }
25
30
 
26
31
  .datesStr {
@@ -28,43 +33,53 @@
28
33
  }
29
34
 
30
35
  .grid {
31
- width: 28px;
32
- height: 28px;
36
+ width: var(--zd_size28) ;
37
+ height: var(--zd_size28) ;
33
38
  line-height: 1.3846;
34
39
  text-align: center;
35
- padding: 4px 0;
40
+ padding: var(--zd_size4) 0 ;
36
41
  border-radius: 50%;
37
42
  border: 1px solid transparent;
38
43
  }
39
44
 
40
45
  .thArrow,
41
46
  .datesStr {
42
- font-size: 13px;
43
- color: var(--zdt_base_color);
47
+ font-size: var(--zd_font_size13) ;
48
+ color: var(--zdt_datetime_datestr_text);
49
+ }
50
+
51
+ .thArrow, .datesStr {
44
52
  cursor: pointer;
45
53
  }
46
54
 
47
55
  .thArrow:hover,
48
56
  .datesStr:hover {
49
- color: var(--zdt_base_color);
57
+ color: var(--zdt_datetime_datestr_text);
58
+ }
59
+
60
+ .thArrow:hover, .datesStr:hover {
50
61
  background: var(--zdt_datetime_datestr_hover_bg);
51
62
  }
52
63
 
53
- .navigation {
54
- margin-left: 2px;
64
+ [dir=ltr] .navigation {
65
+ margin-left: var(--zd_size2) ;
66
+ }
67
+
68
+ [dir=rtl] .navigation {
69
+ margin-right: var(--zd_size2) ;
55
70
  }
56
71
 
57
72
  .thMonYear {
58
- font-size: 13px;
73
+ font-size: var(--zd_font_size13) ;
59
74
  line-height: 1.8462;
60
- color: var(--zdt_base_color);
75
+ color: var(--zdt_datetime_datestr_text);
61
76
  composes: semibold;
62
77
  display: initial
63
78
  }
64
79
 
65
80
  .dateContainer {
66
- margin: 0 19px 0 19px;
67
- padding: 6px 0 10px 0;
81
+ margin: 0 var(--zd_size19) 0 var(--zd_size19) ;
82
+ padding: var(--zd_size6) 0 var(--zd_size10) 0 ;
68
83
  }
69
84
 
70
85
  .separator {
@@ -72,29 +87,29 @@
72
87
  }
73
88
 
74
89
  .days {
75
- min-height: 36px;
76
- padding-top: 7px;
90
+ min-height: var(--zd_size36) ;
77
91
  composes: boxPadding;
78
92
  composes: alignBetween from '../common/common.module.css';
93
+ padding-top: var(--zd_size7) ;
79
94
  }
80
95
 
81
96
  .daysStr {
82
97
  composes: dotted from '../common/common.module.css';
83
- font-size: 10px;
98
+ font-size: var(--zd_font_size10) ;
84
99
  color: var(--zdt_datetime_daystr_text);
85
100
  text-transform: uppercase;
86
101
  composes: semibold;
87
- width: 31px;
102
+ width: var(--zd_size31) ;
88
103
  }
89
104
 
90
105
  .dateRow {
91
- height: 28px;
92
- margin: 1px 0 5px;
106
+ height: var(--zd_size28) ;
93
107
  composes: alignBetween from '../common/common.module.css';
108
+ margin: var(--zd_size1) 0 var(--zd_size5) ;
94
109
  }
95
110
 
96
111
  .dateRow:last-child {
97
- margin-bottom: 0;
112
+ margin-bottom: 0 ;
98
113
  }
99
114
 
100
115
  .sunday,
@@ -107,8 +122,7 @@
107
122
  color: var(--zdt_datetime_invalid_text);
108
123
  }
109
124
 
110
- .invalidDate.sunday,
111
- .inActiveDate.sunday:hover {
125
+ .invalidDate.sunday,.inActiveDate.sunday:hover {
112
126
  color: var(--zdt_datetime_invaliddate_text);
113
127
  }
114
128
 
@@ -126,46 +140,46 @@
126
140
  .active:hover,
127
141
  .active.today,
128
142
  .active:hover.today:hover {
129
- background-color: var(--zdt_datetime_selected_bg);
130
143
  color: var(--zdt_datetime_today_text);
131
- border-radius: 50%;
132
144
  }
133
145
 
134
- .inActiveDate {
135
- cursor: no-drop;
136
- color: var(--zdt_datetime_invalid_text);
146
+ .active, .active:hover, .active.today, .active:hover.today:hover {
147
+ background-color: var(--zdt_datetime_selected_bg);
148
+ border-radius: 50%;
137
149
  }
138
-
139
- .inActiveDate:hover {
150
+ .inActiveDate{
151
+ color: var(--zdt_datetime_invalid_text);
152
+ cursor: no-drop;
153
+ }
154
+ .inActiveDate:hover
155
+ {
140
156
  color: var(--zdt_datetime_invalid_text);
141
157
  }
142
-
143
- .inActiveDate:hover,
144
- .inActiveDate.sunday:hover {
158
+ .inActiveDate:hover, .inActiveDate.sunday:hover{
145
159
  background-color: var(--zdt_datetime_inactivedate_hover_bg);
146
160
 
147
161
  }
148
162
 
149
163
 
150
164
  .timesection {
151
- padding-top: 5px;
152
- padding-bottom: 10px;
165
+ padding-top: var(--zd_size5) ;
166
+ padding-bottom: var(--zd_size10) ;
153
167
  }
154
168
 
155
169
  .dropDownContainer {
156
- padding: 0 5px;
170
+ padding: 0 var(--zd_size5) ;
157
171
  }
158
172
 
159
173
  .dropDown {
160
- width: 60px;
174
+ width: var(--zd_size60) ;
161
175
  display: inline-block;
162
- margin: 0 4px;
163
176
  position: relative;
177
+ margin: 0 var(--zd_size4) ;
164
178
  }
165
179
 
166
180
  .footer {
167
- margin-top: 10px;
168
- padding-bottom: 12px;
181
+ margin-top: var(--zd_size10) ;
182
+ padding-bottom: var(--zd_size12) ;
169
183
  }
170
184
 
171
185
  .timesection,
@@ -175,38 +189,52 @@
175
189
 
176
190
  .space {
177
191
  display: inline-block;
178
- width: 15px;
192
+ width: var(--zd_size15) ;
179
193
  }
180
194
 
181
195
  .downArrow {
182
- margin-left: 2px;
183
196
  color: var(--zdt_datetime_daystr_text);
184
197
  }
185
198
 
199
+ [dir=ltr] .downArrow {
200
+ margin-left: var(--zd_size2) ;
201
+ }
202
+
203
+ [dir=rtl] .downArrow {
204
+ margin-right: var(--zd_size2) ;
205
+ }
206
+
186
207
  .dateText {
187
208
  cursor: pointer;
188
209
  }
189
210
 
190
211
  .dateText:hover .downArrow {
191
- color: var(--zdt_base_color);
212
+ color: var(--zdt_datetime_datestr_text);
192
213
  }
193
214
 
194
215
  .text {
195
216
  composes: boxPadding;
196
- font-size: 11px;
217
+ font-size: var(--zd_font_size11) ;
197
218
  text-transform: uppercase;
198
219
  color: var(--zdt_datetime_text);
199
- margin-top: 14px;
200
220
  composes: semibold;
201
221
  display: block;
222
+ margin-top: var(--zd_size14) ;
202
223
  }
203
224
 
204
225
  .yearContainer {
205
226
  position: absolute;
206
- top: 0;
207
- left: 0;
208
- width: 100%;
209
- height: 100%;
227
+ top: 0 ;
228
+ width: 100% ;
229
+ height: 100% ;
230
+ }
231
+
232
+ [dir=ltr] .yearContainer {
233
+ left: 0 ;
234
+ }
235
+
236
+ [dir=rtl] .yearContainer {
237
+ right: 0 ;
210
238
  }
211
239
 
212
240
  .subContainer {
@@ -214,8 +242,8 @@
214
242
  }
215
243
 
216
244
  .dropBox {
217
- width: 100%;
245
+ width: 100% ;
218
246
  border-radius: 3px;
219
247
  box-shadow: var(--zd_bs_dropbox_bottom);
220
- background-color: var(--zdt_base_bg);
248
+ background-color: var(--zdt_dropbox_default_bg);
221
249
  }
@@ -47,6 +47,12 @@ var _constants = require("./constants");
47
47
 
48
48
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
49
49
 
50
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
51
+
52
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
53
+
54
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
55
+
50
56
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
51
57
 
52
58
  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); } }
@@ -1013,7 +1019,13 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
1013
1019
  dropBoxPortalId = _this$props11.dropBoxPortalId,
1014
1020
  a11y = _this$props11.a11y,
1015
1021
  boxSize = _this$props11.boxSize,
1016
- onError = _this$props11.onError;
1022
+ onError = _this$props11.onError,
1023
+ _this$props11$customP = _this$props11.customProps,
1024
+ customProps = _this$props11$customP === void 0 ? {} : _this$props11$customP;
1025
+ var _customProps$DateTime = customProps.DateTimeProps,
1026
+ DateTimeProps = _customProps$DateTime === void 0 ? {} : _customProps$DateTime,
1027
+ _customProps$TextBoxP = customProps.TextBoxProps,
1028
+ TextBoxProps = _customProps$TextBoxP === void 0 ? {} : _customProps$TextBoxP;
1017
1029
  var _this$state6 = this.state,
1018
1030
  _this$state6$selected = _this$state6.selected,
1019
1031
  value = _this$state6$selected === void 0 ? '' : _this$state6$selected,
@@ -1065,7 +1077,10 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
1065
1077
  iconOnHover: iconOnHover,
1066
1078
  isFocus: isPopupReady,
1067
1079
  autoComplete: false,
1068
- a11y: a11y
1080
+ a11y: a11y,
1081
+ customProps: {
1082
+ TextBoxProps: _objectSpread({}, TextBoxProps)
1083
+ }
1069
1084
  }, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
1070
1085
  align: "both",
1071
1086
  onClick: isDisabled || isReadOnly ? null : this.handleDateIconClick
@@ -1102,7 +1117,8 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
1102
1117
  isRestrictScroll: isRestrictScroll,
1103
1118
  dropBoxPortalId: dropBoxPortalId,
1104
1119
  boxSize: boxSize,
1105
- onError: onError
1120
+ onError: onError,
1121
+ customProps: _objectSpread({}, DateTimeProps)
1106
1122
  }));
1107
1123
  }
1108
1124
  }]);
@@ -3,9 +3,7 @@
3
3
  position: relative;
4
4
  composes: offSelection from '../common/common.module.css';
5
5
  }
6
- .readOnly,
7
- .readOnly > input,
8
- .disabled {
6
+ .readOnly, .readOnly > input, .disabled {
9
7
  cursor: not-allowed;
10
8
  }
11
9
  .enabled {
@@ -16,11 +14,17 @@
16
14
  }
17
15
  .inputLine {
18
16
  position: absolute;
19
- bottom: 0;
20
- left: 0;
21
- right: 0;
22
- border-bottom: 1px solid var(--zdt_datewidget_input_border);
17
+ bottom: 0 ;
23
18
  transition: border var(--zd_transition2) linear 0s;
19
+ 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 ;
24
28
  }
25
29
  .enabled:hover .inputLine {
26
30
  border-bottom-color: var(--zdt_datewidget_enabled_border);