@zohodesk/components 1.0.0-temp-177 → 1.0.0-temp-179

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 (208) hide show
  1. package/.cli/AppearanceThemeValidationExcludeFiles.js +1 -0
  2. package/.cli/PropLessFiles.html +1 -1
  3. package/.cli/propValidation_report.html +1 -1
  4. package/README.md +12 -0
  5. package/assets/Appearance/dark/mode/Component_DarkMode.module.css +321 -29
  6. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkModifyCategory.module.css +450 -450
  7. package/assets/Appearance/dark/themes/blue/blue_CTA_DarkTheme.module.css +33 -1
  8. package/assets/Appearance/dark/themes/blue/blue_ComponentTheme_DarkTheme.module.css +43 -19
  9. package/assets/Appearance/dark/themes/green/green_CTA_DarkModifyCategory.module.css +450 -450
  10. package/assets/Appearance/dark/themes/green/green_CTA_DarkTheme.module.css +33 -1
  11. package/assets/Appearance/dark/themes/green/green_ComponentTheme_DarkTheme.module.css +43 -19
  12. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkModifyCategory.module.css +450 -450
  13. package/assets/Appearance/dark/themes/orange/orange_CTA_DarkTheme.module.css +33 -1
  14. package/assets/Appearance/dark/themes/orange/orange_ComponentTheme_DarkTheme.module.css +43 -19
  15. package/assets/Appearance/dark/themes/red/red_CTA_DarkModifyCategory.module.css +450 -450
  16. package/assets/Appearance/dark/themes/red/red_CTA_DarkTheme.module.css +33 -1
  17. package/assets/Appearance/dark/themes/red/red_ComponentTheme_DarkTheme.module.css +43 -19
  18. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkModifyCategory.module.css +450 -450
  19. package/assets/Appearance/dark/themes/yellow/yellow_CTA_DarkTheme.module.css +33 -1
  20. package/assets/Appearance/dark/themes/yellow/yellow_ComponentTheme_DarkTheme.module.css +43 -19
  21. package/assets/Appearance/light/mode/Component_LightMode.module.css +321 -29
  22. package/assets/Appearance/light/themes/blue/blue_CTA_LightModifyCategory.module.css +450 -450
  23. package/assets/Appearance/light/themes/blue/blue_CTA_LightTheme.module.css +33 -1
  24. package/assets/Appearance/light/themes/blue/blue_ComponentTheme_LightTheme.module.css +43 -19
  25. package/assets/Appearance/light/themes/green/green_CTA_LightModifyCategory.module.css +450 -450
  26. package/assets/Appearance/light/themes/green/green_CTA_LightTheme.module.css +33 -1
  27. package/assets/Appearance/light/themes/green/green_ComponentTheme_LightTheme.module.css +43 -19
  28. package/assets/Appearance/light/themes/orange/orange_CTA_LightModifyCategory.module.css +450 -450
  29. package/assets/Appearance/light/themes/orange/orange_CTA_LightTheme.module.css +33 -1
  30. package/assets/Appearance/light/themes/orange/orange_ComponentTheme_LightTheme.module.css +43 -19
  31. package/assets/Appearance/light/themes/red/red_CTA_LightModifyCategory.module.css +450 -450
  32. package/assets/Appearance/light/themes/red/red_CTA_LightTheme.module.css +33 -1
  33. package/assets/Appearance/light/themes/red/red_ComponentTheme_LightTheme.module.css +43 -19
  34. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightModifyCategory.module.css +450 -450
  35. package/assets/Appearance/light/themes/yellow/yellow_CTA_LightTheme.module.css +33 -1
  36. package/assets/Appearance/light/themes/yellow/yellow_ComponentTheme_LightTheme.module.css +43 -19
  37. package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +321 -29
  38. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkModifyCategory.module.css +450 -450
  39. package/assets/Appearance/pureDark/themes/blue/blue_CTA_PureDarkTheme.module.css +33 -1
  40. package/assets/Appearance/pureDark/themes/blue/blue_ComponentTheme_PureDarkTheme.module.css +43 -19
  41. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkModifyCategory.module.css +450 -450
  42. package/assets/Appearance/pureDark/themes/green/green_CTA_PureDarkTheme.module.css +33 -1
  43. package/assets/Appearance/pureDark/themes/green/green_ComponentTheme_PureDarkTheme.module.css +43 -19
  44. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkModifyCategory.module.css +450 -450
  45. package/assets/Appearance/pureDark/themes/orange/orange_CTA_PureDarkTheme.module.css +33 -1
  46. package/assets/Appearance/pureDark/themes/orange/orange_ComponentTheme_PureDarkTheme.module.css +43 -19
  47. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkModifyCategory.module.css +450 -450
  48. package/assets/Appearance/pureDark/themes/red/red_CTA_PureDarkTheme.module.css +33 -1
  49. package/assets/Appearance/pureDark/themes/red/red_ComponentTheme_PureDarkTheme.module.css +43 -19
  50. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkModifyCategory.module.css +450 -450
  51. package/assets/Appearance/pureDark/themes/yellow/yellow_CTA_PureDarkTheme.module.css +33 -1
  52. package/assets/Appearance/pureDark/themes/yellow/yellow_ComponentTheme_PureDarkTheme.module.css +43 -19
  53. package/es/Avatar/Avatar.module.css +12 -0
  54. package/es/AvatarTeam/AvatarTeam.module.css +2 -0
  55. package/es/Button/css/Button.module.css +9 -1
  56. package/es/Buttongroup/Buttongroup.module.css +2 -0
  57. package/es/CheckBox/CheckBox.module.css +2 -0
  58. package/es/DateTime/DateTime.js +2 -29
  59. package/es/DateTime/DateTime.module.css +3 -2
  60. package/es/DateTime/DateWidget.js +2 -6
  61. package/es/DateTime/YearView.module.css +1 -1
  62. package/es/DateTime/dateFormatUtils/dateFormat.js +8 -1
  63. package/es/DateTime/dateFormatUtils/index.js +2 -4
  64. package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -0
  65. package/es/DropBox/css/DropBox.module.css +1 -0
  66. package/es/DropDown/DropDownHeading.module.css +6 -0
  67. package/es/DropDown/DropDownItem.module.css +3 -0
  68. package/es/Label/Label.module.css +2 -1
  69. package/es/ListItem/ListItem.module.css +22 -1
  70. package/es/PopOver/PopOver.module.css +1 -0
  71. package/es/Radio/Radio.module.css +1 -0
  72. package/es/Ribbon/Ribbon.module.css +7 -3
  73. package/es/Switch/Switch.module.css +2 -0
  74. package/es/Tab/Tab.module.css +3 -3
  75. package/es/Tag/Tag.module.css +6 -0
  76. package/es/TextBox/TextBox.module.css +25 -5
  77. package/es/TextBox/props/defaultProps.js +0 -1
  78. package/es/TextBoxIcon/TextBoxIcon.module.css +5 -0
  79. package/es/Textarea/Textarea.module.css +9 -3
  80. package/es/Tooltip/Tooltip.module.css +5 -1
  81. package/es/common/customscroll.module.css +37 -0
  82. package/es/v1/DateTime/DateTime.js +2 -29
  83. package/es/v1/DateTime/DateWidget.js +2 -6
  84. package/lib/Avatar/Avatar.module.css +12 -0
  85. package/lib/AvatarTeam/AvatarTeam.module.css +2 -0
  86. package/lib/Button/css/Button.module.css +9 -1
  87. package/lib/Buttongroup/Buttongroup.module.css +2 -0
  88. package/lib/CheckBox/CheckBox.module.css +2 -0
  89. package/lib/DateTime/DateTime.js +3 -30
  90. package/lib/DateTime/DateTime.module.css +3 -2
  91. package/lib/DateTime/DateWidget.js +1 -6
  92. package/lib/DateTime/YearView.module.css +1 -1
  93. package/lib/DateTime/dateFormatUtils/dateFormat.js +10 -1
  94. package/lib/DateTime/dateFormatUtils/index.js +2 -6
  95. package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +7 -0
  96. package/lib/DropBox/css/DropBox.module.css +1 -0
  97. package/lib/DropDown/DropDownHeading.module.css +6 -0
  98. package/lib/DropDown/DropDownItem.module.css +3 -0
  99. package/lib/Label/Label.module.css +2 -1
  100. package/lib/ListItem/ListItem.module.css +22 -1
  101. package/lib/PopOver/PopOver.module.css +1 -0
  102. package/lib/Radio/Radio.module.css +1 -0
  103. package/lib/Ribbon/Ribbon.module.css +7 -3
  104. package/lib/Switch/Switch.module.css +2 -0
  105. package/lib/Tab/Tab.module.css +3 -3
  106. package/lib/Tag/Tag.module.css +6 -0
  107. package/lib/TextBox/TextBox.module.css +25 -5
  108. package/lib/TextBox/props/defaultProps.js +0 -1
  109. package/lib/TextBoxIcon/TextBoxIcon.module.css +5 -0
  110. package/lib/Textarea/Textarea.module.css +9 -3
  111. package/lib/Tooltip/Tooltip.module.css +5 -1
  112. package/lib/common/customscroll.module.css +37 -0
  113. package/lib/v1/DateTime/DateTime.js +3 -30
  114. package/lib/v1/DateTime/DateWidget.js +1 -6
  115. package/package.json +12 -10
  116. package/result.json +1 -1
  117. package/coverage/Avatar/Avatar.js.html +0 -649
  118. package/coverage/Avatar/Avatar.module.css.html +0 -556
  119. package/coverage/Avatar/index.html +0 -131
  120. package/coverage/Avatar/props/defaultProps.js.html +0 -136
  121. package/coverage/Avatar/props/index.html +0 -131
  122. package/coverage/Avatar/props/propTypes.js.html +0 -166
  123. package/coverage/AvatarTeam/AvatarTeam.js.html +0 -340
  124. package/coverage/AvatarTeam/AvatarTeam.module.css.html +0 -610
  125. package/coverage/AvatarTeam/index.html +0 -131
  126. package/coverage/AvatarTeam/props/defaultProps.js.html +0 -136
  127. package/coverage/AvatarTeam/props/index.html +0 -131
  128. package/coverage/AvatarTeam/props/propTypes.js.html +0 -169
  129. package/coverage/Button/Button.js.html +0 -313
  130. package/coverage/Button/css/Button.module.css.html +0 -1441
  131. package/coverage/Button/css/cssJSLogic.js.html +0 -214
  132. package/coverage/Button/css/index.html +0 -131
  133. package/coverage/Button/index.html +0 -116
  134. package/coverage/Button/props/defaultProps.js.html +0 -142
  135. package/coverage/Button/props/index.html +0 -131
  136. package/coverage/Button/props/propTypes.js.html +0 -208
  137. package/coverage/Buttongroup/Buttongroup.js.html +0 -220
  138. package/coverage/Buttongroup/Buttongroup.module.css.html +0 -298
  139. package/coverage/Buttongroup/index.html +0 -131
  140. package/coverage/Buttongroup/props/defaultProps.js.html +0 -103
  141. package/coverage/Buttongroup/props/index.html +0 -131
  142. package/coverage/Buttongroup/props/propTypes.js.html +0 -115
  143. package/coverage/Label/Label.js.html +0 -253
  144. package/coverage/Label/Label.module.css.html +0 -241
  145. package/coverage/Label/LabelColors.module.css.html +0 -145
  146. package/coverage/Label/index.html +0 -146
  147. package/coverage/Label/props/defaultProps.js.html +0 -118
  148. package/coverage/Label/props/index.html +0 -131
  149. package/coverage/Label/props/propTypes.js.html +0 -145
  150. package/coverage/Layout/Box.js.html +0 -367
  151. package/coverage/Layout/Container.js.html +0 -439
  152. package/coverage/Layout/Layout.module.css.html +0 -1090
  153. package/coverage/Layout/index.html +0 -176
  154. package/coverage/Layout/index.js.html +0 -118
  155. package/coverage/Layout/props/defaultProps.js.html +0 -136
  156. package/coverage/Layout/props/index.html +0 -131
  157. package/coverage/Layout/props/propTypes.js.html +0 -262
  158. package/coverage/Layout/utils.js.html +0 -199
  159. package/coverage/Provider/AvatarSize.js.html +0 -124
  160. package/coverage/Provider/CssProvider.js.html +0 -133
  161. package/coverage/Provider/index.html +0 -131
  162. package/coverage/Radio/Radio.js.html +0 -415
  163. package/coverage/Radio/Radio.module.css.html +0 -403
  164. package/coverage/Radio/index.html +0 -131
  165. package/coverage/Radio/props/defaultProps.js.html +0 -127
  166. package/coverage/Radio/props/index.html +0 -131
  167. package/coverage/Radio/props/propTypes.js.html +0 -187
  168. package/coverage/Ribbon/Ribbon.js.html +0 -229
  169. package/coverage/Ribbon/Ribbon.module.css.html +0 -1210
  170. package/coverage/Ribbon/index.html +0 -131
  171. package/coverage/Ribbon/props/defaultProps.js.html +0 -112
  172. package/coverage/Ribbon/props/index.html +0 -131
  173. package/coverage/Ribbon/props/propTypes.js.html +0 -121
  174. package/coverage/RippleEffect/RippleEffect.js.html +0 -172
  175. package/coverage/RippleEffect/RippleEffect.module.css.html +0 -415
  176. package/coverage/RippleEffect/index.html +0 -131
  177. package/coverage/RippleEffect/props/defaultProps.js.html +0 -112
  178. package/coverage/RippleEffect/props/index.html +0 -131
  179. package/coverage/RippleEffect/props/propTypes.js.html +0 -121
  180. package/coverage/Stencils/Stencils.js.html +0 -163
  181. package/coverage/Stencils/Stencils.module.css.html +0 -319
  182. package/coverage/Stencils/index.html +0 -131
  183. package/coverage/Stencils/props/defaultProps.js.html +0 -103
  184. package/coverage/Stencils/props/index.html +0 -131
  185. package/coverage/Stencils/props/propTypes.js.html +0 -109
  186. package/coverage/Switch/Switch.js.html +0 -379
  187. package/coverage/Switch/Switch.module.css.html +0 -481
  188. package/coverage/Switch/index.html +0 -131
  189. package/coverage/Switch/props/defaultProps.js.html +0 -118
  190. package/coverage/Switch/props/index.html +0 -131
  191. package/coverage/Switch/props/propTypes.js.html +0 -172
  192. package/coverage/base.css +0 -224
  193. package/coverage/block-navigation.js +0 -87
  194. package/coverage/common/avatarsizes.module.css.html +0 -229
  195. package/coverage/common/common.module.css.html +0 -1519
  196. package/coverage/common/index.html +0 -131
  197. package/coverage/coverage-final.json +0 -56
  198. package/coverage/coverage-summary.json +0 -57
  199. package/coverage/favicon.png +0 -0
  200. package/coverage/index.html +0 -491
  201. package/coverage/prettify.css +0 -1
  202. package/coverage/prettify.js +0 -2
  203. package/coverage/sort-arrow-sprite.png +0 -0
  204. package/coverage/sorter.js +0 -196
  205. package/coverage/utils/dummyFunction.js.html +0 -88
  206. package/coverage/utils/getInitial.js.html +0 -139
  207. package/coverage/utils/index.html +0 -131
  208. package/unittest/index.html +0 -37
@@ -35,10 +35,13 @@
35
35
  composes: dInflex alignVertical flexrow from '../common/common.module.css';
36
36
  position: relative;
37
37
  vertical-align: middle;
38
+ /* css:theme-validation:ignore */
38
39
  color: var(--tag_text_color);
40
+ /* css:theme-validation:ignore */
39
41
  font-size: var(--tag_font_size);
40
42
  letter-spacing: var(--tag_letter_spacing);
41
43
  height: var(--tag_height);
44
+ /* css:theme-validation:ignore */
42
45
  max-width: 100% ;
43
46
  background-color: var(--tag_bg_color);
44
47
  border-radius: var(--tag_border_radius);
@@ -123,11 +126,13 @@
123
126
  display: block;
124
127
  }
125
128
  .close {
129
+ /* css:theme-validation:ignore */
126
130
  color: var(--tag_closeicon_color);
127
131
  display: none;
128
132
  position: absolute;
129
133
  top: 0 ;
130
134
  bottom: 0 ;
135
+ /* css:theme-validation:ignore */
131
136
  padding: var(--tag_closeicon_padding);
132
137
  cursor: var(--tag_closeicon_cursor);
133
138
  border-radius: var(--tag_closeicon_border_radius);
@@ -225,6 +230,7 @@
225
230
  }
226
231
 
227
232
  .icon {
233
+ /* css:theme-validation:ignore */
228
234
  margin: var(--tag_icon_margin);
229
235
  background-color: var(--tag_icon_bg_color);
230
236
  }
@@ -14,7 +14,7 @@
14
14
  --textbox_letter_spacing: 0.1px;
15
15
  --textbox_padding: 0;
16
16
  --textbox_cursor: auto;
17
- --textbox_line_height: 35px;
17
+ --textbox_line_height: 2.5;
18
18
 
19
19
  /* textbox placeholder default variable */
20
20
  --textbox_placeholder_text_color: var(--zdt_textbox_placeholder_text);
@@ -25,29 +25,37 @@
25
25
  -moz-appearance: none;
26
26
  appearance: none;
27
27
  letter-spacing: var(--textbox_letter_spacing);
28
+ /* css:theme-validation:ignore */
28
29
  border: var(--textbox_border_width);
29
30
  cursor: var(--textbox_cursor);
30
31
  }
31
32
  .basic::placeholder {
33
+ /* css:theme-validation:ignore */
32
34
  color: var(--textbox_placeholder_text_color);
33
35
  }
34
36
  .basic::-webkit-placeholder {
37
+ /* css:theme-validation:ignore */
35
38
  color: var(--textbox_placeholder_text_color);
36
39
  }
37
40
  .basic::-moz-placeholder {
41
+ /* css:theme-validation:ignore */
38
42
  color: var(--textbox_placeholder_text_color);
39
43
  }
40
44
  .basic::-ms-placeholder {
45
+ /* css:theme-validation:ignore */
41
46
  color: var(--textbox_placeholder_text_color);
42
47
  }
43
48
  .container {
44
49
  composes: basic;
50
+ /* css:theme-validation:ignore */
45
51
  transition: border var(--zd_transition2) linear 0s;
46
52
  -moz-transition: border var(--zd_transition2) linear 0s;
47
53
  width: var(--textbox_width);
54
+ /* css:theme-validation:ignore */
48
55
  color: var(--textbox_text_color);
49
56
  font-size: var(--textbox_font_size);
50
57
  height: var(--textbox_height);
58
+ /* css:theme-validation:ignore */
51
59
  line-height: var(--textbox_line_height);
52
60
  background-color: var(--textbox_bg_color);
53
61
  -webkit-transition: border var(--zd_transition2) linear 0s;
@@ -68,15 +76,19 @@
68
76
  --textbox_bg_color: none;
69
77
  }
70
78
  .container::placeholder {
79
+ /* css:theme-validation:ignore */
71
80
  color: var(--textbox_placeholder_text_color);
72
81
  }
73
82
  .container::-webkit-placeholder {
83
+ /* css:theme-validation:ignore */
74
84
  color: var(--textbox_placeholder_text_color);
75
85
  }
76
86
  .container::-moz-placeholder {
87
+ /* css:theme-validation:ignore */
77
88
  color: var(--textbox_placeholder_text_color);
78
89
  }
79
90
  .container::-ms-placeholder {
91
+ /* css:theme-validation:ignore */
80
92
  color: var(--textbox_placeholder_text_color);
81
93
  }
82
94
  .pointer {
@@ -87,12 +99,20 @@
87
99
  border-width: var(--textbox_border_width);
88
100
  border-style: var(--textbox_border_style);
89
101
  }
102
+ .effect:hover,
103
+ .effect:focus {
104
+ /* css:theme-validation:ignore */
105
+ }
90
106
  .effect:hover, .effect:focus {
91
107
  border-color: var(--textbox_border_color);
92
108
  }
93
109
  .border {
94
110
  --textbox_border_width: 0 0 1px 0;
95
111
  }
112
+ .borderColor_transparent,
113
+ .borderColor_default {
114
+ /* css:theme-validation:ignore */
115
+ }
96
116
  .borderColor_transparent, .borderColor_default {
97
117
  border-color: var(--textbox_border_color);
98
118
  }
@@ -115,21 +135,21 @@
115
135
  }
116
136
  .xmedium {
117
137
  --textbox_height: var(--zd_size28);
118
- --textbox_line_height: 28px;
138
+ --textbox_line_height: 2;
119
139
  }
120
140
  .medium {
121
141
  --textbox_height: var(--zd_size35);
122
- --textbox_line_height: 35px;
142
+ --textbox_line_height: 2.5;
123
143
  }
124
144
  .small {
125
145
  --textbox_font_size: var(--zd_font_size12);
126
146
  --textbox_height: var(--zd_size28);
127
- --textbox_line_height: 28px;
147
+ --textbox_line_height: 2.33333333333;
128
148
  }
129
149
  .xsmall {
130
150
  --textbox_font_size: var(--zd_font_size13);
131
151
  --textbox_height: var(--zd_size25);
132
- --textbox_line_height: 25px;
152
+ --textbox_line_height: 1.92307692308;
133
153
  }
134
154
  .default,
135
155
  .primary,
@@ -1,7 +1,6 @@
1
1
  export const defaultProps = {
2
2
  isDisabled: false,
3
3
  isReadOnly: false,
4
- maxLength: 250,
5
4
  needBorder: true,
6
5
  size: 'medium',
7
6
  type: 'text',
@@ -24,6 +24,7 @@
24
24
  cursor: var(--textboxicon_icon_cursor);
25
25
  }
26
26
  .iconContainer {
27
+ /* css:theme-validation:ignore */
27
28
  color: var(--textboxicon_icon_color);
28
29
  }
29
30
  .effect:hover .iconContainer,
@@ -50,6 +51,10 @@
50
51
  right: 0 ;
51
52
  left: 0 ;
52
53
  }
54
+ .line,
55
+ .borderColor_default {
56
+ /* css:theme-validation:ignore */
57
+ }
53
58
  .line, .borderColor_default {
54
59
  background-color: var(--textboxicon_line_color);
55
60
  }
@@ -5,7 +5,7 @@
5
5
  --textarea_cursor: auto;
6
6
  --textarea_text_color: var(--zdt_textarea_default_text);
7
7
  --textarea_font_size: var(--zd_font_size14);
8
- --textarea_line_height: 22px;
8
+ --textarea_line_height: 1.57142857;
9
9
  --textarea_padding: var(--zd_size2) 0;
10
10
  --textarea_height: var(--zd_size30);
11
11
 
@@ -19,6 +19,7 @@
19
19
  appearance: none;
20
20
  outline: 0;
21
21
  letter-spacing: 0.1px;
22
+ /* css:theme-validation:ignore */
22
23
  color: var(--textarea_text_color);
23
24
  cursor: var(--textarea_cursor);
24
25
  }
@@ -26,15 +27,19 @@
26
27
  border-width: var(--textarea_border_width);
27
28
  }
28
29
  .basic::placeholder {
30
+ /* css:theme-validation:ignore */
29
31
  color: var(--textarea_placeholder_text_color);
30
32
  }
31
33
  .basic::-webkit-placeholder {
34
+ /* css:theme-validation:ignore */
32
35
  color: var(--textarea_placeholder_text_color);
33
36
  }
34
37
  .basic::-moz-placeholder {
38
+ /* css:theme-validation:ignore */
35
39
  color: var(--textarea_placeholder_text_color);
36
40
  }
37
41
  .basic::-ms-placeholder {
42
+ /* css:theme-validation:ignore */
38
43
  color: var(--textarea_placeholder_text_color);
39
44
  }
40
45
  .basic:disabled {
@@ -67,6 +72,7 @@
67
72
  min-width: var(--zd_size100) ;
68
73
  font-size: var(--textarea_font_size);
69
74
  line-height: var(--textarea_line_height);
75
+ /* css:theme-validation:ignore */
70
76
  height: var(--textarea_height);
71
77
  -webkit-transition: border var(--zd_transition2) linear 0s,
72
78
  height var(--zd_transition2) linear 0s;
@@ -98,13 +104,13 @@
98
104
  --textarea_font_size: var(--zd_font_size14);
99
105
  --textarea_padding: var(--zd_size4) 0 var(--zd_size2);
100
106
  --textarea_height: var(--zd_size28);
101
- --textarea_line_height: 19px;
107
+ --textarea_line_height: 1.35714285714;
102
108
  }
103
109
  .xmedium {
104
110
  --textarea_font_size: var(--zd_font_size13);
105
111
  --textarea_padding: var(--zd_size4) 0 var(--zd_size2);
106
112
  --textarea_height: var(--zd_size25);
107
- --textarea_line_height: 17px;
113
+ --textarea_line_height: 1.30769230769;
108
114
  }
109
115
  .small {
110
116
  --textarea_height: var(--zd_size30);
@@ -17,7 +17,7 @@
17
17
  font-family: var(--zd_semibold);
18
18
  word-break: break-word;
19
19
  max-width: var(--zd_size420) ;
20
- line-height: var(--zd_size20);
20
+ line-height: 1.5385;
21
21
  min-height: var(--zd_size24) ;
22
22
  overflow: hidden;
23
23
  background-color: var(--zdt_tooltip_default_bg);
@@ -49,7 +49,9 @@
49
49
  height: 11px;
50
50
  border-top: solid 6px var(--zdt_tooltip_default_bg);
51
51
  border-left: solid 6px var(--zdt_tooltip_default_bg);
52
+ /* css:theme-validation:ignore */
52
53
  border-right: solid 6px transparent;
54
+ /* css:theme-validation:ignore */
53
55
  border-bottom: solid 6px transparent;
54
56
  box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
55
57
  z-index: -1;
@@ -69,7 +71,9 @@
69
71
  height: 11px;
70
72
  border-top: solid 6px var(--zdt_tooltip_default_bg);
71
73
  border-left: solid 6px var(--zdt_tooltip_default_bg);
74
+ /* css:theme-validation:ignore */
72
75
  border-right: solid 6px transparent;
76
+ /* css:theme-validation:ignore */
73
77
  border-bottom: solid 6px transparent;
74
78
  box-shadow: 0 4px 12px 0 var(--zdt_tooltip_default_box_shadow);
75
79
  z-index: -1;
@@ -23,9 +23,17 @@
23
23
  -ms-scrollbar-highlight-color: var(--zd-scroll-bg);
24
24
  -ms-scrollbar-face-color: var(--zd-scroll-thump);
25
25
  }
26
+ .scroll::-webkit-scrollbar,
27
+ .scroll ::-webkit-scrollbar {
28
+ /* css:theme-validation:ignore */
29
+ }
26
30
  .scroll::-webkit-scrollbar, .scroll ::-webkit-scrollbar {
27
31
  background: var(--zd-scroll-corner-bg);
28
32
  }
33
+ .scroll::-webkit-scrollbar:hover,
34
+ .scroll ::-webkit-scrollbar:hover {
35
+ /* css:theme-validation:ignore */
36
+ }
29
37
  .scroll::-webkit-scrollbar:hover, .scroll ::-webkit-scrollbar:hover {
30
38
  background: var(--zd-scroll-bg);
31
39
  }
@@ -43,6 +51,11 @@
43
51
  width: 0 ;
44
52
  height: 0 ;
45
53
  }
54
+ .scroll::-webkit-scrollbar-track:vertical,
55
+ .scroll ::-webkit-scrollbar-track:vertical {
56
+ /* css:theme-validation:ignore */
57
+ /* css:theme-validation:ignore */
58
+ }
46
59
  [dir=ltr] .scroll::-webkit-scrollbar-track:vertical, [dir=ltr] .scroll ::-webkit-scrollbar-track:vertical {
47
60
  border-left: 1px solid transparent;
48
61
  border-right: 1px solid transparent;
@@ -51,13 +64,26 @@
51
64
  border-right: 1px solid transparent;
52
65
  border-left: 1px solid transparent;
53
66
  }
67
+ .scroll::-webkit-scrollbar-track:vertical:hover,
68
+ .scroll ::-webkit-scrollbar-track:vertical:hover {
69
+ /* css:theme-validation:ignore */
70
+ }
54
71
  .scroll::-webkit-scrollbar-track:vertical:hover, .scroll ::-webkit-scrollbar-track:vertical:hover {
55
72
  border-color: var(--zd-scroll-border);
56
73
  }
74
+ .scroll::-webkit-scrollbar-track:horizontal,
75
+ .scroll ::-webkit-scrollbar-track:horizontal {
76
+ /* css:theme-validation:ignore */
77
+ /* css:theme-validation:ignore */
78
+ }
57
79
  .scroll::-webkit-scrollbar-track:horizontal, .scroll ::-webkit-scrollbar-track:horizontal {
58
80
  border-top: 1px solid transparent;
59
81
  border-bottom: 1px solid transparent;
60
82
  }
83
+ .scroll::-webkit-scrollbar-track:horizontal:hover,
84
+ .scroll ::-webkit-scrollbar-track:horizontal:hover {
85
+ /* css:theme-validation:ignore */
86
+ }
61
87
  .scroll::-webkit-scrollbar-track:horizontal:hover, .scroll ::-webkit-scrollbar-track:horizontal:hover {
62
88
  border-color: var(--zd-scroll-border);
63
89
  }
@@ -66,6 +92,8 @@
66
92
  }
67
93
  .scroll::-webkit-scrollbar-thumb,
68
94
  .scroll ::-webkit-scrollbar-thumb {
95
+ /* css:theme-validation:ignore */
96
+ /* css:theme-validation:ignore */
69
97
  /* display: none; */
70
98
  }
71
99
  .scroll::-webkit-scrollbar-thumb, .scroll ::-webkit-scrollbar-thumb {
@@ -74,6 +102,11 @@
74
102
  background-clip: padding-box;
75
103
  border: 3px solid transparent;
76
104
  }
105
+ .scroll::-webkit-scrollbar-thumb:hover,
106
+ .scroll ::-webkit-scrollbar-thumb:hover {
107
+ /* css:theme-validation:ignore */
108
+ /* css:theme-validation:ignore */
109
+ }
77
110
  .scroll::-webkit-scrollbar-thumb:hover, .scroll ::-webkit-scrollbar-thumb:hover {
78
111
  background: var(--zd-scroll-thump-hoverbg);
79
112
  background-clip: padding-box;
@@ -83,6 +116,10 @@
83
116
  .scroll *:hover > ::-webkit-scrollbar-thumb {
84
117
  display: block;
85
118
  } */
119
+ .scroll::-webkit-scrollbar-corner,
120
+ .scroll ::-webkit-scrollbar-corner {
121
+ /* css:theme-validation:ignore */
122
+ }
86
123
  .scroll::-webkit-scrollbar-corner, .scroll ::-webkit-scrollbar-corner {
87
124
  background: var(--zd-scroll-corner-bg);
88
125
  }
@@ -17,6 +17,7 @@ import { monthNamesDefault, monthNamesShortDefault, dayNamesDefault, dayNamesSho
17
17
  import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
18
18
  import { Box } from '../Layout';
19
19
  import { getHourSuggestions, getMinuteSuggestions, addZeroIfNeeded } from '../../DateTime/dateFormatUtils';
20
+ import { getDateText } from './../../DateTime/dateFormatUtils/dateFormat';
20
21
 
21
22
  function title(date, year, month) {
22
23
  let monthNames = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
@@ -46,7 +47,6 @@ export default class DateTime extends React.PureComponent {
46
47
  this.handleSelectMonthViaYearView = this.handleSelectMonthViaYearView.bind(this);
47
48
  this.handleGetStateValues = this.handleGetStateValues.bind(this);
48
49
  this.handleYearViewToggle = this.handleYearViewToggle.bind(this);
49
- this.getInitialDate = this.getInitialDate.bind(this);
50
50
  const {
51
51
  ampmText = ampmTextDefault
52
52
  } = props.i18nKeys;
@@ -103,33 +103,6 @@ export default class DateTime extends React.PureComponent {
103
103
  this.handleExposeMethods(false);
104
104
  }
105
105
 
106
- getInitialDate(value) {
107
- let timeZone = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
108
- let isDateTime = arguments.length > 2 ? arguments[2] : undefined;
109
- let result = null;
110
-
111
- if (isDateTime) {
112
- if (timeZone && value) {
113
- result = datetime.toDate(datetime.tz.utcToTz(value, timeZone));
114
- } else {
115
- value = value ? value.replace('Z', '') : null;
116
- result = value ? new Date(value) : new Date();
117
- }
118
- } else {
119
- if (value) {
120
- if (timeZone) {
121
- result = datetime.toDate(value);
122
- } else {
123
- result = new Date(value);
124
- }
125
- } else {
126
- result = new Date();
127
- }
128
- }
129
-
130
- return result;
131
- }
132
-
133
106
  getStateFromProps(props) {
134
107
  let date, month, year, hours, mins, amPm;
135
108
  let {
@@ -154,7 +127,7 @@ export default class DateTime extends React.PureComponent {
154
127
  defaultMin = parseInt(defaultMin);
155
128
  }
156
129
 
157
- const dateObj = this.getInitialDate(value, timeZone, isDateTimeField);
130
+ const dateObj = getDateText(value, timeZone, isDateTimeField);
158
131
  date = dateObj.getDate();
159
132
  month = dateObj.getMonth();
160
133
  year = dateObj.getFullYear();
@@ -2,7 +2,6 @@
2
2
  import React from 'react';
3
3
  import { DateWidget_propTypes } from './props/propTypes';
4
4
  import { DateWidget_defaultProps } from './props/defaultProps';
5
- import datetime from '@zohodesk/datetimejs';
6
5
  /**** Components ****/
7
6
 
8
7
  import DateTime from './DateTime';
@@ -18,7 +17,7 @@ import style from '../../DateTime/DateWidget.module.css';
18
17
  import validator from '../../DateTime/validator';
19
18
  import { formatDate } from '../../utils/datetime/common';
20
19
  import { getIsSupportedKey, arrayIsNotEqual } from '../../DateTime/dateFormatUtils';
21
- import { getDateFormatDetails, getDateFormatSelection, getDateTimeString, getDateDetails, getIsValidDate, getSelectedDate } from '../../DateTime/dateFormatUtils/dateFormat';
20
+ import { getDateFormatDetails, getDateFormatSelection, getDateTimeString, getDateDetails, getIsValidDate, getSelectedDate, getDateText } from '../../DateTime/dateFormatUtils/dateFormat';
22
21
  import { getChangedDay } from '../../DateTime/dateFormatUtils/dayChange';
23
22
  import { getChangedMonth } from '../../DateTime/dateFormatUtils/monthChange';
24
23
  import { getChangedYear } from '../../DateTime/dateFormatUtils/yearChange';
@@ -315,13 +314,10 @@ class DateWidgetComponent extends React.Component {
315
314
 
316
315
  if (selected) {
317
316
  let format = newDateFormat,
318
- convertedValue;
317
+ convertedValue = getDateText(value, isDateTime, timeZone);
319
318
 
320
319
  if (isDateTime) {
321
- convertedValue = datetime.toDate(datetime.tz.utcToTz(value, timeZone));
322
320
  format = `${newDateFormat} ${is24Hour ? 'HH:mm' : 'hh:mm A'}`;
323
- } else {
324
- convertedValue = datetime.toDate(value);
325
321
  }
326
322
 
327
323
  displayText = formatDate(convertedValue, format);
@@ -18,19 +18,31 @@
18
18
  composes: dInflex alignVertical alignHorizontal from '../common/common.module.css';
19
19
  vertical-align: middle;
20
20
  font-size: var(--avatar_font_size);
21
+ /* css:theme-validation:ignore */
21
22
  color: var(--avatar_text_color);
22
23
  border-width: var(--avatar_border_width);
23
24
  border-style: var(--avatar_border_style);
24
25
  }
25
26
 
26
27
  .border {
28
+ /* css:theme-validation:ignore */
27
29
  border-color: var(--avatar_border_color);
28
30
  }
29
31
 
32
+ .borderOnHover:hover,
33
+ .borderOnActive {
34
+ /* css:theme-validation:ignore */
35
+ }
36
+
30
37
  .borderOnHover:hover, .borderOnActive {
31
38
  border-color: var(--avatar_border_hoverColor);
32
39
  }
33
40
 
41
+ .avatar,
42
+ .primary {
43
+ /* css:theme-validation:ignore */
44
+ }
45
+
34
46
  .avatar, .primary {
35
47
  background-color: var(--avatar_bg_color);
36
48
  }
@@ -25,6 +25,8 @@
25
25
  composes: varClass;
26
26
  composes: posab from '../common/common.module.css';
27
27
  top: var(--avatarteam_top_top);
28
+ /* css:theme-validation:ignore */
29
+ /* css:theme-validation:ignore */
28
30
  width: var(--avatarteam_width);
29
31
  height: var(--avatarteam_height);
30
32
  outline-width: var(--avatarteam_outline_width);
@@ -48,10 +48,13 @@
48
48
  composes: dotted from '../../common/common.module.css';
49
49
  position: relative;
50
50
  font-size: var(--button_font_size);
51
+ /* css:theme-validation:ignore */
51
52
  color: var(--button_text_color);
52
53
  font-family: var(--button_font_family);
53
54
  text-transform: var(--button_text_transform);
55
+ /* css:theme-validation:ignore */
54
56
  min-width: var(--button_min_width);
57
+ /* css:theme-validation:ignore */
55
58
  height: var(--button_height);
56
59
  background-color: var(--button_bg_color);
57
60
  border-radius: var(--button_border_radius);
@@ -295,6 +298,7 @@
295
298
  .loadingelement:after {
296
299
  content: '';
297
300
  position: absolute;
301
+ /* css:theme-validation:ignore */
298
302
  }
299
303
 
300
304
  .loadingelement:before, .loadingelement:after {
@@ -468,6 +472,7 @@
468
472
  transform-origin: center;
469
473
  border-width: 2px 2px 0 0;
470
474
  border-style: solid;
475
+ /* css:theme-validation:ignore */
471
476
  border-color: var(--button_success_border_color);
472
477
  animation: tick var(--zd_no_transition3) ease 0s forwards;
473
478
  }
@@ -523,4 +528,7 @@
523
528
  }
524
529
  }
525
530
 
526
- .loader{color:var(--dot_mirror)}
531
+ .loader{
532
+ /* css:theme-validation:ignore */
533
+ color:var(--dot_mirror)
534
+ }
@@ -11,6 +11,8 @@
11
11
  .buttonGroup {
12
12
  composes: varClass;
13
13
  composes: cboth from '../common/common.module.css';
14
+ /* css:theme-validation:ignore */
15
+ /* css:theme-validation:ignore */
14
16
  background-color: var(--buttongroup_bg_color);
15
17
  box-shadow: var(--buttongroup_box_shadow);
16
18
  padding: var(--buttongroup_padding);
@@ -34,6 +34,7 @@
34
34
  }
35
35
  .boxContainer {
36
36
  composes: offSelection from '../common/common.module.css';
37
+ /* css:theme-validation:ignore */
37
38
  border-radius: 2px;
38
39
  background-color: var(--checkbox_bg_color);
39
40
  }
@@ -120,6 +121,7 @@
120
121
 
121
122
  .checkedprimaryLabel,
122
123
  .checkeddangerLabel {
124
+ /* css:theme-validation:ignore */
123
125
  color: var(--checkbox_checked_active_color);
124
126
  }
125
127
  .activeprimaryLabel:hover
@@ -39,6 +39,8 @@ var _Layout = require("../Layout");
39
39
 
40
40
  var _dateFormatUtils = require("./dateFormatUtils");
41
41
 
42
+ var _dateFormat = require("./dateFormatUtils/dateFormat");
43
+
42
44
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
43
45
 
44
46
  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); }
@@ -111,7 +113,6 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
111
113
  _this.handleSelectMonthViaYearView = _this.handleSelectMonthViaYearView.bind(_assertThisInitialized(_this));
112
114
  _this.handleGetStateValues = _this.handleGetStateValues.bind(_assertThisInitialized(_this));
113
115
  _this.handleYearViewToggle = _this.handleYearViewToggle.bind(_assertThisInitialized(_this));
114
- _this.getInitialDate = _this.getInitialDate.bind(_assertThisInitialized(_this));
115
116
  var _props$i18nKeys$ampmT = props.i18nKeys.ampmText,
116
117
  ampmText = _props$i18nKeys$ampmT === void 0 ? _constants.ampmTextDefault : _props$i18nKeys$ampmT;
117
118
 
@@ -171,34 +172,6 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
171
172
  value: function componentWillUnmount() {
172
173
  this.handleExposeMethods(false);
173
174
  }
174
- }, {
175
- key: "getInitialDate",
176
- value: function getInitialDate(value) {
177
- var timeZone = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
178
- var isDateTime = arguments.length > 2 ? arguments[2] : undefined;
179
- var result = null;
180
-
181
- if (isDateTime) {
182
- if (timeZone && value) {
183
- result = _datetimejs["default"].toDate(_datetimejs["default"].tz.utcToTz(value, timeZone));
184
- } else {
185
- value = value ? value.replace('Z', '') : null;
186
- result = value ? new Date(value) : new Date();
187
- }
188
- } else {
189
- if (value) {
190
- if (timeZone) {
191
- result = _datetimejs["default"].toDate(value);
192
- } else {
193
- result = new Date(value);
194
- }
195
- } else {
196
- result = new Date();
197
- }
198
- }
199
-
200
- return result;
201
- }
202
175
  }, {
203
176
  key: "getStateFromProps",
204
177
  value: function getStateFromProps(props) {
@@ -229,7 +202,7 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
229
202
  defaultMin = parseInt(defaultMin);
230
203
  }
231
204
 
232
- var dateObj = this.getInitialDate(value, timeZone, isDateTimeField);
205
+ var dateObj = (0, _dateFormat.getDateText)(value, isDateTimeField, timeZone);
233
206
  date = dateObj.getDate();
234
207
  month = dateObj.getMonth();
235
208
  year = dateObj.getFullYear();
@@ -35,7 +35,8 @@
35
35
  .grid {
36
36
  width: var(--zd_size28) ;
37
37
  height: var(--zd_size28) ;
38
- line-height: var(--zd_size18);
38
+ line-height: 1.3846;
39
+ /* css:theme-validation:ignore */
39
40
  text-align: center;
40
41
  padding: var(--zd_size4) 0 ;
41
42
  border-radius: 50%;
@@ -71,7 +72,7 @@
71
72
 
72
73
  .thMonYear {
73
74
  font-size: var(--zd_font_size13) ;
74
- line-height: var(--zd_size24);
75
+ line-height: 1.8462;
75
76
  color: var(--zdt_datetime_datestr_text);
76
77
  composes: semibold;
77
78
  display: initial
@@ -13,8 +13,6 @@ var _propTypes = require("./props/propTypes");
13
13
 
14
14
  var _defaultProps = require("./props/defaultProps");
15
15
 
16
- var _datetimejs = _interopRequireDefault(require("@zohodesk/datetimejs"));
17
-
18
16
  var _DateTime = _interopRequireDefault(require("./DateTime"));
19
17
 
20
18
  var _Popup = _interopRequireDefault(require("../Popup/Popup"));
@@ -358,13 +356,10 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
358
356
 
359
357
  if (selected) {
360
358
  var format = newDateFormat,
361
- convertedValue;
359
+ convertedValue = (0, _dateFormat.getDateText)(value, isDateTime, timeZone);
362
360
 
363
361
  if (isDateTime) {
364
- convertedValue = _datetimejs["default"].toDate(_datetimejs["default"].tz.utcToTz(value, timeZone));
365
362
  format = "".concat(newDateFormat, " ").concat(is24Hour ? 'HH:mm' : 'hh:mm A');
366
- } else {
367
- convertedValue = _datetimejs["default"].toDate(value);
368
363
  }
369
364
 
370
365
  displayText = (0, _common.formatDate)(convertedValue, format);
@@ -9,7 +9,7 @@
9
9
  .month {
10
10
  width: 30.333%;
11
11
  font-size: var(--zd_font_size12) ;
12
- line-height: var(--zd_size26);
12
+ line-height: 2.1667;
13
13
  height: var(--zd_size26) ;
14
14
  color: var(--zdt_yearview_month_text);
15
15
  text-align: center;