@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*/
@@ -649,8 +649,12 @@ export default class DateTime extends React.PureComponent {
649
649
  positionsOffset,
650
650
  targetOffset,
651
651
  isRestrictScroll,
652
- dropBoxPortalId
652
+ dropBoxPortalId,
653
+ customProps = {}
653
654
  } = this.props;
655
+ const {
656
+ TimeProps = {}
657
+ } = customProps;
654
658
  const {
655
659
  timeText = 'Time',
656
660
  submitText = 'Set',
@@ -706,7 +710,9 @@ export default class DateTime extends React.PureComponent {
706
710
  ampmSuggestions: this.ampmSuggestions,
707
711
  onAmPmSelect: this.amPmSelect,
708
712
  amPm: amPm,
709
- is24Hour: is24Hour
713
+ is24Hour: is24Hour,
714
+ customProps: { ...TimeProps
715
+ }
710
716
  }) : null, needAction ? /*#__PURE__*/React.createElement(DateTimePopupFooter, {
711
717
  submitText: submitText,
712
718
  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
  }
@@ -988,8 +988,13 @@ class DateWidgetComponent extends React.Component {
988
988
  dropBoxPortalId,
989
989
  a11y,
990
990
  boxSize,
991
- onError
991
+ onError,
992
+ customProps = {}
992
993
  } = this.props;
994
+ const {
995
+ DateTimeProps = {},
996
+ TextBoxProps = {}
997
+ } = customProps;
993
998
  const {
994
999
  selected: value = '',
995
1000
  isError,
@@ -1041,7 +1046,11 @@ class DateWidgetComponent extends React.Component {
1041
1046
  iconOnHover: iconOnHover,
1042
1047
  isFocus: isPopupReady,
1043
1048
  autoComplete: false,
1044
- a11y: a11y
1049
+ a11y: a11y,
1050
+ customProps: {
1051
+ TextBoxProps: { ...TextBoxProps
1052
+ }
1053
+ }
1045
1054
  }, /*#__PURE__*/React.createElement(Container, {
1046
1055
  align: "both",
1047
1056
  onClick: isDisabled || isReadOnly ? null : this.handleDateIconClick
@@ -1078,7 +1087,9 @@ class DateWidgetComponent extends React.Component {
1078
1087
  isRestrictScroll: isRestrictScroll,
1079
1088
  dropBoxPortalId: dropBoxPortalId,
1080
1089
  boxSize: boxSize,
1081
- onError: onError
1090
+ onError: onError,
1091
+ customProps: { ...DateTimeProps
1092
+ }
1082
1093
  }));
1083
1094
  }
1084
1095
 
@@ -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);
@@ -1,3 +1,5 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
1
3
  /* eslint-disable react/forbid-component-props */
2
4
 
3
5
  /** ** Libraries *** */
@@ -28,8 +30,14 @@ export default class Time extends PureComponent {
28
30
  ampmSuggestions,
29
31
  onAmPmSelect,
30
32
  amPm,
31
- is24Hour
33
+ is24Hour,
34
+ customProps = {}
32
35
  } = this.props;
36
+ const {
37
+ HourCompProps = {},
38
+ MinuteCompProps = {},
39
+ AmPmCompProps = {}
40
+ } = customProps;
33
41
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
34
42
  className: style.text
35
43
  }, timeText), /*#__PURE__*/React.createElement(Container, {
@@ -46,7 +54,9 @@ export default class Time extends PureComponent {
46
54
  onHourSelect: onHourSelect,
47
55
  hours: hours,
48
56
  needResponsive: needResponsive,
49
- hourEmptyText: hourEmptyText
57
+ hourEmptyText: hourEmptyText,
58
+ customProps: { ...HourCompProps
59
+ }
50
60
  })), /*#__PURE__*/React.createElement(Box, {
51
61
  flexible: true,
52
62
  className: style.dropDownContainer
@@ -55,7 +65,9 @@ export default class Time extends PureComponent {
55
65
  onMinutesSelect: onMinutesSelect,
56
66
  mins: mins,
57
67
  minuteEmptyText: minuteEmptyText,
58
- needResponsive: needResponsive
68
+ needResponsive: needResponsive,
69
+ customProps: { ...MinuteCompProps
70
+ }
59
71
  })), !is24Hour ? /*#__PURE__*/React.createElement(Box, {
60
72
  flexible: true,
61
73
  className: style.dropDownContainer
@@ -63,7 +75,9 @@ export default class Time extends PureComponent {
63
75
  ampmSuggestions: ampmSuggestions,
64
76
  onAmPmSelect: onAmPmSelect,
65
77
  amPm: amPm,
66
- needResponsive: needResponsive
78
+ needResponsive: needResponsive,
79
+ customProps: { ...AmPmCompProps
80
+ }
67
81
  })) : null));
68
82
  }
69
83
 
@@ -78,9 +92,10 @@ class Hour extends React.PureComponent {
78
92
  onHourSelect,
79
93
  hours,
80
94
  needResponsive,
81
- hourEmptyText
95
+ hourEmptyText,
96
+ customProps
82
97
  } = this.props;
83
- return /*#__PURE__*/React.createElement(Select, {
98
+ return /*#__PURE__*/React.createElement(Select, _extends({
84
99
  options: hourSuggestions,
85
100
  onChange: onHourSelect,
86
101
  selectedValue: hours,
@@ -99,7 +114,7 @@ class Hour extends React.PureComponent {
99
114
  needListBorder: true,
100
115
  needTick: false,
101
116
  listItemSize: "small"
102
- });
117
+ }, customProps));
103
118
  }
104
119
 
105
120
  }
@@ -111,9 +126,10 @@ class Minute extends React.PureComponent {
111
126
  onMinutesSelect,
112
127
  mins,
113
128
  minuteEmptyText,
114
- needResponsive
129
+ needResponsive,
130
+ customProps
115
131
  } = this.props;
116
- return /*#__PURE__*/React.createElement(Select, {
132
+ return /*#__PURE__*/React.createElement(Select, _extends({
117
133
  options: minSuggestions,
118
134
  onChange: onMinutesSelect,
119
135
  selectedValue: mins,
@@ -132,7 +148,7 @@ class Minute extends React.PureComponent {
132
148
  needListBorder: true,
133
149
  needTick: false,
134
150
  listItemSize: "small"
135
- });
151
+ }, customProps));
136
152
  }
137
153
 
138
154
  }
@@ -143,9 +159,10 @@ class AmPm extends React.PureComponent {
143
159
  ampmSuggestions,
144
160
  onAmPmSelect,
145
161
  amPm,
146
- needResponsive
162
+ needResponsive,
163
+ customProps
147
164
  } = this.props;
148
- return /*#__PURE__*/React.createElement(Select, {
165
+ return /*#__PURE__*/React.createElement(Select, _extends({
149
166
  options: ampmSuggestions,
150
167
  onChange: onAmPmSelect,
151
168
  selectedValue: amPm,
@@ -160,7 +177,7 @@ class AmPm extends React.PureComponent {
160
177
  needListBorder: true,
161
178
  needTick: false,
162
179
  listItemSize: "small"
163
- });
180
+ }, customProps));
164
181
  }
165
182
 
166
183
  }