@zohodesk/components 1.0.0-temp-67 → 1.0.0-temp-610

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 (249) hide show
  1. package/README.md +1020 -1020
  2. package/assets/Appearance/dark/mode/darkMode.module.css +1 -1
  3. package/es/AppContainer/AppContainer.module.css +18 -18
  4. package/es/Avatar/Avatar.js +9 -9
  5. package/es/Avatar/Avatar.module.css +115 -117
  6. package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
  7. package/es/AvatarTeam/AvatarTeam.js +7 -7
  8. package/es/AvatarTeam/AvatarTeam.module.css +147 -161
  9. package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
  10. package/es/Button/Button.js +4 -4
  11. package/es/Button/Button.module.css +448 -521
  12. package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
  13. package/es/Buttongroup/Buttongroup.js +1 -1
  14. package/es/Buttongroup/Buttongroup.module.css +60 -89
  15. package/es/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
  16. package/es/Card/Card.js +4 -4
  17. package/es/Card/Card.module.css +20 -20
  18. package/es/CheckBox/CheckBox.js +0 -0
  19. package/es/CheckBox/CheckBox.module.css +147 -153
  20. package/es/DateTime/CalendarView.js +0 -0
  21. package/es/DateTime/DateTime.js +39 -17
  22. package/es/DateTime/DateTime.module.css +160 -187
  23. package/es/DateTime/DateWidget.js +0 -0
  24. package/es/DateTime/DateWidget.module.css +38 -42
  25. package/es/DateTime/YearView.js +0 -0
  26. package/es/DateTime/YearView.module.css +70 -80
  27. package/es/DateTime/common.js +0 -0
  28. package/es/DateTime/index.js +0 -0
  29. package/es/DateTime/objectUtils.js +0 -0
  30. package/es/DateTime/typeChecker.js +0 -0
  31. package/es/DateTime/validator.js +0 -0
  32. package/es/DropBox/DropBox.js +0 -0
  33. package/es/DropBox/DropBox.module.css +370 -406
  34. package/es/DropBox/DropBoxPositionMapping.json +144 -144
  35. package/es/DropDown/DropDown.js +0 -0
  36. package/es/DropDown/DropDown.module.css +5 -5
  37. package/es/DropDown/DropDownHeading.js +0 -0
  38. package/es/DropDown/DropDownHeading.module.css +49 -53
  39. package/es/DropDown/DropDownItem.js +0 -0
  40. package/es/DropDown/DropDownItem.module.css +68 -94
  41. package/es/DropDown/DropDownSearch.js +0 -0
  42. package/es/DropDown/DropDownSearch.module.css +14 -14
  43. package/es/DropDown/DropDownSeparator.js +0 -0
  44. package/es/DropDown/DropDownSeparator.module.css +7 -7
  45. package/es/Label/Label.js +2 -2
  46. package/es/Label/Label.module.css +52 -52
  47. package/es/Label/LabelColors.module.css +20 -20
  48. package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
  49. package/es/Layout/Box.js +0 -0
  50. package/es/Layout/Container.js +0 -0
  51. package/es/Layout/Layout.module.css +324 -324
  52. package/es/Layout/utils.js +0 -0
  53. package/es/LightNightMode/Colors.json +397 -397
  54. package/es/ListItem/ListItem.js +0 -0
  55. package/es/ListItem/ListItem.module.css +173 -205
  56. package/es/MultiSelect/AdvancedGroupMultiSelect.js +99 -77
  57. package/es/MultiSelect/AdvancedMultiSelect.js +71 -49
  58. package/es/MultiSelect/AdvancedMultiSelect.module.css +116 -127
  59. package/es/MultiSelect/MultiSelect.js +83 -60
  60. package/es/MultiSelect/MultiSelect.module.css +178 -193
  61. package/es/MultiSelect/MultiSelectWithAvatar.js +75 -52
  62. package/es/MultiSelect/SelectedOptions.module.css +9 -15
  63. package/es/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
  64. package/es/PopOver/PopOver.module.css +8 -8
  65. package/es/Popup/Popup.js +0 -0
  66. package/es/Popup/PositionMapping.json +73 -73
  67. package/es/Provider.js +35 -72
  68. package/es/Radio/Radio.js +0 -0
  69. package/es/Radio/Radio.module.css +104 -110
  70. package/es/Responsive/CustomResponsive.js +0 -0
  71. package/es/Responsive/Responsive.js +1 -0
  72. package/es/ResponsiveDropbox/ResponsiveDropbox.js +74 -0
  73. package/es/ResponsiveDropbox/ResponsiveDropbox.module.css +6 -0
  74. package/es/Ribbon/Ribbon.js +0 -0
  75. package/es/Ribbon/Ribbon.module.css +311 -376
  76. package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
  77. package/es/RippleEffect/RippleEffect.module.css +99 -70
  78. package/es/Select/GroupSelect.js +96 -74
  79. package/es/Select/Select.js +92 -68
  80. package/es/Select/Select.module.css +96 -100
  81. package/es/Select/SelectWithAvatar.js +89 -66
  82. package/es/Select/SelectWithIcon.js +98 -74
  83. package/es/Select/__tests__/Select.spec.js +0 -0
  84. package/es/Stencils/Stencils.js +0 -0
  85. package/es/Stencils/Stencils.module.css +78 -96
  86. package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
  87. package/es/Switch/Switch.js +0 -0
  88. package/es/Switch/Switch.module.css +110 -109
  89. package/es/Tab/Tab.module.css +92 -101
  90. package/es/Tab/TabContent.module.css +4 -4
  91. package/es/Tab/Tabs.js +17 -17
  92. package/es/Tab/Tabs.module.css +107 -140
  93. package/es/Tag/Tag.js +8 -8
  94. package/es/Tag/Tag.module.css +228 -250
  95. package/es/TextBox/TextBox.js +0 -0
  96. package/es/TextBox/TextBox.module.css +161 -157
  97. package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
  98. package/es/TextBoxIcon/TextBoxIcon.js +0 -0
  99. package/es/TextBoxIcon/TextBoxIcon.module.css +71 -78
  100. package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
  101. package/es/Textarea/Textarea.js +0 -0
  102. package/es/Textarea/Textarea.module.css +140 -139
  103. package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
  104. package/es/Tooltip/Tooltip.module.css +108 -109
  105. package/es/beta/FocusRing/FocusRing.module.css +126 -151
  106. package/es/common/animation.module.css +426 -624
  107. package/es/common/avatarsizes.module.css +44 -44
  108. package/es/common/basic.module.css +33 -33
  109. package/es/common/basicReset.module.css +50 -40
  110. package/es/common/common.module.css +458 -502
  111. package/es/common/customscroll.module.css +93 -89
  112. package/es/common/docStyle.module.css +715 -766
  113. package/es/common/reset.module.css +12 -12
  114. package/es/common/transition.module.css +106 -146
  115. package/es/index.js +2 -1
  116. package/es/semantic/Button/semanticButton.module.css +9 -9
  117. package/es/utils/Common.js +0 -0
  118. package/es/utils/dropDownUtils.js +0 -0
  119. package/lib/AppContainer/AppContainer.js +1 -1
  120. package/lib/AppContainer/AppContainer.module.css +18 -18
  121. package/lib/Avatar/Avatar.js +9 -9
  122. package/lib/Avatar/Avatar.module.css +117 -117
  123. package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
  124. package/lib/AvatarTeam/AvatarTeam.js +7 -7
  125. package/lib/AvatarTeam/AvatarTeam.module.css +161 -161
  126. package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
  127. package/lib/Button/Button.js +4 -4
  128. package/lib/Button/Button.module.css +521 -521
  129. package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
  130. package/lib/Buttongroup/Buttongroup.js +1 -1
  131. package/lib/Buttongroup/Buttongroup.module.css +89 -89
  132. package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
  133. package/lib/Card/Card.js +4 -4
  134. package/lib/Card/Card.module.css +20 -20
  135. package/lib/CheckBox/CheckBox.js +1 -2
  136. package/lib/CheckBox/CheckBox.module.css +153 -153
  137. package/lib/DateTime/CalendarView.js +0 -0
  138. package/lib/DateTime/DateTime.js +0 -0
  139. package/lib/DateTime/DateTime.module.css +187 -187
  140. package/lib/DateTime/DateWidget.js +0 -0
  141. package/lib/DateTime/DateWidget.module.css +42 -42
  142. package/lib/DateTime/YearView.js +0 -0
  143. package/lib/DateTime/YearView.module.css +80 -80
  144. package/lib/DateTime/common.js +0 -0
  145. package/lib/DateTime/index.js +0 -0
  146. package/lib/DateTime/objectUtils.js +0 -0
  147. package/lib/DateTime/typeChecker.js +0 -0
  148. package/lib/DateTime/validator.js +0 -0
  149. package/lib/DropBox/DropBox.js +1 -1
  150. package/lib/DropBox/DropBox.module.css +406 -406
  151. package/lib/DropBox/DropBoxPositionMapping.json +144 -144
  152. package/lib/DropDown/DropDown.js +0 -0
  153. package/lib/DropDown/DropDown.module.css +5 -5
  154. package/lib/DropDown/DropDownHeading.js +0 -0
  155. package/lib/DropDown/DropDownHeading.module.css +53 -53
  156. package/lib/DropDown/DropDownItem.js +0 -0
  157. package/lib/DropDown/DropDownItem.module.css +94 -94
  158. package/lib/DropDown/DropDownSearch.js +0 -0
  159. package/lib/DropDown/DropDownSearch.module.css +14 -14
  160. package/lib/DropDown/DropDownSeparator.js +0 -0
  161. package/lib/DropDown/DropDownSeparator.module.css +7 -7
  162. package/lib/Label/Label.js +0 -0
  163. package/lib/Label/Label.module.css +52 -52
  164. package/lib/Label/LabelColors.module.css +20 -20
  165. package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
  166. package/lib/Layout/Box.js +0 -0
  167. package/lib/Layout/Container.js +0 -0
  168. package/lib/Layout/Layout.module.css +324 -324
  169. package/lib/Layout/utils.js +0 -0
  170. package/lib/LightNightMode/Colors.json +397 -397
  171. package/lib/ListItem/ListContainer.js +4 -7
  172. package/lib/ListItem/ListItem.js +1 -1
  173. package/lib/ListItem/ListItem.module.css +210 -205
  174. package/lib/ListItem/ListItemWithAvatar.js +1 -1
  175. package/lib/ListItem/ListItemWithCheckBox.js +1 -1
  176. package/lib/ListItem/ListItemWithIcon.js +1 -1
  177. package/lib/ListItem/ListItemWithRadio.js +1 -1
  178. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +8 -12
  179. package/lib/MultiSelect/AdvancedMultiSelect.module.css +127 -127
  180. package/lib/MultiSelect/MultiSelect.js +11 -12
  181. package/lib/MultiSelect/MultiSelect.module.css +193 -193
  182. package/lib/MultiSelect/MultiSelectWithAvatar.js +0 -0
  183. package/lib/MultiSelect/SelectedOptions.module.css +15 -15
  184. package/lib/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
  185. package/lib/PopOver/PopOver.module.css +8 -8
  186. package/lib/Popup/Popup.js +0 -0
  187. package/lib/Popup/PositionMapping.json +73 -73
  188. package/lib/Provider/Config.js +1 -4
  189. package/lib/Provider.js +37 -88
  190. package/lib/Radio/Radio.js +0 -0
  191. package/lib/Radio/Radio.module.css +110 -110
  192. package/lib/Responsive/CustomResponsive.js +0 -0
  193. package/lib/Ribbon/Ribbon.js +0 -0
  194. package/lib/Ribbon/Ribbon.module.css +376 -376
  195. package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
  196. package/lib/RippleEffect/RippleEffect.module.css +70 -70
  197. package/lib/Select/GroupSelect.js +1 -1
  198. package/lib/Select/Select.js +4 -9
  199. package/lib/Select/Select.module.css +100 -100
  200. package/lib/Select/SelectWithAvatar.js +0 -0
  201. package/lib/Select/SelectWithIcon.js +0 -0
  202. package/lib/Select/__tests__/Select.spec.js +0 -0
  203. package/lib/Stencils/Stencils.js +0 -0
  204. package/lib/Stencils/Stencils.module.css +96 -96
  205. package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
  206. package/lib/Switch/Switch.js +0 -0
  207. package/lib/Switch/Switch.module.css +109 -109
  208. package/lib/Tab/Tab.module.css +101 -101
  209. package/lib/Tab/TabContent.module.css +4 -4
  210. package/lib/Tab/Tabs.js +11 -11
  211. package/lib/Tab/Tabs.module.css +140 -140
  212. package/lib/Tag/Tag.js +8 -8
  213. package/lib/Tag/Tag.module.css +250 -250
  214. package/lib/TextBox/TextBox.js +0 -0
  215. package/lib/TextBox/TextBox.module.css +157 -157
  216. package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
  217. package/lib/TextBoxIcon/TextBoxIcon.js +0 -0
  218. package/lib/TextBoxIcon/TextBoxIcon.module.css +78 -78
  219. package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
  220. package/lib/Textarea/Textarea.js +0 -0
  221. package/lib/Textarea/Textarea.module.css +139 -139
  222. package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
  223. package/lib/Tooltip/Tooltip.js +8 -15
  224. package/lib/Tooltip/Tooltip.module.css +104 -109
  225. package/lib/beta/FocusRing/FocusRing.module.css +151 -151
  226. package/lib/common/animation.module.css +624 -624
  227. package/lib/common/avatarsizes.module.css +44 -44
  228. package/lib/common/basic.module.css +33 -33
  229. package/lib/common/basicReset.module.css +40 -40
  230. package/lib/common/common.module.css +502 -502
  231. package/lib/common/customscroll.module.css +89 -89
  232. package/lib/common/docStyle.module.css +762 -766
  233. package/lib/common/reset.module.css +12 -12
  234. package/lib/common/transition.module.css +146 -146
  235. package/lib/semantic/Button/semanticButton.module.css +9 -9
  236. package/lib/utils/Common.js +0 -0
  237. package/lib/utils/dropDownUtils.js +0 -0
  238. package/package.json +75 -75
  239. package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +0 -358
  240. package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +0 -34
  241. package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +0 -42
  242. package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +0 -34
  243. package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +0 -42
  244. package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +0 -34
  245. package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +0 -42
  246. package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +0 -34
  247. package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +0 -42
  248. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +0 -34
  249. package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +0 -42
@@ -14,6 +14,9 @@ import style from './DateTime.module.css';
14
14
  import { formatDate, getMonthEnd } from '../utils/datetime/common';
15
15
  import { getIsEmptyValue } from '../utils/Common';
16
16
  import { monthNamesDefault, monthNamesShortDefault, dayNamesDefault, dayNamesShortDefault, ampmTextDefault } from './constants';
17
+ import ResponsiveDropbox from '../ResponsiveDropbox/ResponsiveDropbox';
18
+ import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
19
+ import { Box } from '../Layout';
17
20
  import { getHourDetails } from './dateFormatUtils';
18
21
 
19
22
  function title(date, year, month) {
@@ -619,6 +622,17 @@ export default class DateTime extends React.PureComponent {
619
622
  });
620
623
  }
621
624
 
625
+ responsiveFunc(_ref) {
626
+ let {
627
+ mediaQueryOR
628
+ } = _ref;
629
+ return {
630
+ tabletMode: mediaQueryOR([{
631
+ maxWidth: 700
632
+ }])
633
+ };
634
+ }
635
+
622
636
  render() {
623
637
  const {
624
638
  date,
@@ -722,23 +736,31 @@ export default class DateTime extends React.PureComponent {
722
736
  return isDefaultPosition ? /*#__PURE__*/React.createElement("div", {
723
737
  className: `${style.dropBox} ${className}`,
724
738
  "data-id": `${dataId}_dateBoxContainer`
725
- }, childEle) : isReady ? /*#__PURE__*/React.createElement(DropBox, {
726
- size: boxSize,
727
- boxPosition: position,
728
- isActive: isActive,
729
- isArrow: false,
730
- isAnimate: isAnimate,
731
- animationStyle: "bounce",
732
- getRef: getRef,
733
- onClick: onClick,
734
- dataId: `${dataId}_dateBoxContainer`,
735
- needResponsive: needResponsive,
736
- isAbsolutePositioningNeeded: isAbsolute,
737
- customClass: {
738
- customDropBoxWrap: className
739
- },
740
- isPadding: isPadding
741
- }, childEle) : null;
739
+ }, childEle) : isReady ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
740
+ query: this.responsiveFunc,
741
+ responsiveId: "Helmet"
742
+ }, _ref2 => {
743
+ let {
744
+ tabletMode
745
+ } = _ref2;
746
+ return /*#__PURE__*/React.createElement(ResponsiveDropbox, {
747
+ size: boxSize,
748
+ boxPosition: position,
749
+ isActive: isActive,
750
+ isArrow: false,
751
+ isAnimate: isAnimate,
752
+ animationStyle: "bounce",
753
+ getRef: getRef,
754
+ onClick: onClick,
755
+ dataId: `${dataId}_dateBoxContainer`,
756
+ needResponsive: needResponsive,
757
+ isAbsolutePositioningNeeded: isAbsolute,
758
+ customClass: {
759
+ customDropBoxWrap: className
760
+ },
761
+ isPadding: isPadding
762
+ }, /*#__PURE__*/React.createElement(Box, null, childEle));
763
+ }) : null;
742
764
  }
743
765
 
744
766
  }
@@ -1,188 +1,161 @@
1
- .semibold {
2
- font-family: var(--zd_semibold);
3
- }
4
- [dir=ltr] .boxPadding {
5
- padding-right: var(--zd_size19);
6
- padding-left: var(--zd_size19);
7
- }
8
- [dir=rtl] .boxPadding {
9
- padding-left: var(--zd_size19);
10
- padding-right: var(--zd_size19);
11
- }
12
- .container {
13
- font-size: var(--zd_font_size16);
14
- composes: offSelection from '../common/common.module.css';
15
- border-radius: 3px;
16
- background-color: var(--zdt_datetime_default_bg);
17
- }
18
- .header {
19
- min-height: var(--zd_size36);
20
- composes: boxPadding;
21
- text-align: center;
22
- background-color: var(--zdt_datetime_header_bg);
23
- border-radius: 0 0 2px 2px;
24
- border-bottom: 1px solid var(--zdt_datetime_header_border);
25
- }
26
-
27
- .datesStr {
28
- color: var(--zdt_datetime_datestr_text);
29
- font-family: var(--zd_regular);
30
- }
31
- .grid {
32
- width: var(--zd_size28);
33
- height: var(--zd_size28);
34
- line-height: var(--zd_size20);
35
- text-align: center;
36
- padding: var(--zd_size4) 0;
37
- border-radius: 50%;
38
- }
39
- .thArrow,
40
- .datesStr {
41
- font-size: var(--zd_font_size13);
42
- }
43
- .thArrow, .datesStr {
44
- cursor: pointer;
45
- }
46
- .thArrow:hover,
47
- .datesStr:hover {
48
- color: var(--zdt_datetime_datestr_text);
49
- }
50
- .thArrow:hover, .datesStr:hover {
51
- background: var(--zdt_datetime_datestr_hover_bg);
52
- }
53
-
54
- [dir=ltr] .navigation {
55
- margin-left: var(--zd_size2);
56
- }
57
-
58
- [dir=rtl] .navigation {
59
- margin-right: var(--zd_size2);
60
- }
61
- .thMonYear {
62
- font-size: var(--zd_font_size13);
63
- line-height: var(--zd_size24);
64
- color: var(--zdt_datetime_datestr_text);
65
- composes: semibold;
66
- }
67
- .dateContainer {
68
- margin: 0 var(--zd_size19) 0 var(--zd_size19);
69
- padding: var(--zd_size6) 0 var(--zd_size10) 0;
70
- }
71
- .separator {
72
- border-bottom: 1px dotted var(--zdt_datetime_separator_border);
73
- }
74
- .days {
75
- min-height: var(--zd_size36);
76
- composes: boxPadding;
77
- composes: alignBetween from '../common/common.module.css';
78
- padding-top: var(--zd_size7);
79
- }
80
- .daysStr {
81
- font-size: var(--zd_font_size10);
82
- color: var(--zdt_datetime_daystr_text);
83
- text-transform: uppercase;
84
- composes: semibold;
85
- }
86
- .dateRow {
87
- height: var(--zd_size28);
88
- composes: alignBetween from '../common/common.module.css';
89
- margin: var(--zd_size1) 0 var(--zd_size5);
90
- }
91
- .dateRow:last-child {
92
- margin-bottom: 0;
93
- }
94
- .sunday,
95
- .sunday:hover,
96
- .invalidDate.sunday:hover {
97
- color: var(--zdt_datetime_invalid_hover_text);
98
- }
99
- .invalidDate {
100
- color: var(--zdt_datetime_invalid_text);
101
- }
102
- .invalidDate.sunday {
103
- color: var(--zdt_datetime_invaliddate_text);
104
- }
105
-
106
- .today,
107
- .today:hover {
108
- color: var(--zdt_datetime_today_text);
109
- }
110
-
111
- .today, .today:hover {
112
- background-color: var(--zdt_datetime_today_bg);
113
- border-radius: 50%;
114
- }
115
-
116
- .timesection {
117
- padding-top: var(--zd_size5);
118
- padding-bottom: var(--zd_size10);
119
- }
120
- .dropDownContainer {
121
- padding: 0 var(--zd_size5);
122
- }
123
- .dropDown {
124
- width: var(--zd_size60);
125
- display: inline-block;
126
- position: relative;
127
- margin: 0 var(--zd_size4);
128
- }
129
- .footer {
130
- margin-top: var(--zd_size10);
131
- padding-bottom: var(--zd_size12);
132
- }
133
- .timesection,
134
- .footer {
135
- composes: boxPadding;
136
- }
137
- .space {
138
- display: inline-block;
139
- width: var(--zd_size15);
140
- }
141
-
142
- .downArrow {
143
- color: var(--zdt_datetime_daystr_text);
144
- }
145
-
146
- [dir=ltr] .downArrow {
147
- margin-left: var(--zd_size2);
148
- }
149
-
150
- [dir=rtl] .downArrow {
151
- margin-right: var(--zd_size2);
152
- }
153
- .dateText {
154
- cursor: pointer;
155
- }
156
- .dateText:hover .downArrow {
157
- color: var(--zdt_datetime_datestr_text);
158
- }
159
- .text {
160
- composes: boxPadding;
161
- font-size: var(--zd_font_size11);
162
- text-transform: uppercase;
163
- color: var(--zdt_datetime_text);
164
- composes: semibold;
165
- display: block;
166
- margin-top: var(--zd_size14);
167
- }
168
- .yearContainer {
169
- position: absolute;
170
- top: 0;
171
- width: 100%;
172
- height: 100%;
173
- }
174
- [dir=ltr] .yearContainer {
175
- left: 0;
176
- }
177
- [dir=rtl] .yearContainer {
178
- right: 0;
179
- }
180
- .subContainer {
181
- position: relative;
182
- }
183
- .dropBox {
184
- width: 100%;
185
- border-radius: 3px;
186
- box-shadow: 0 3px 30px var(--zdt_dropbox_default_box_shadow);
187
- background-color: var(--zdt_dropbox_default_bg);
1
+ .semibold {
2
+ font-family: var(--zd_semibold);
3
+ }
4
+ .boxPadding {
5
+ padding-right: var(--zd_size19);
6
+ padding-left: var(--zd_size19);
7
+ }
8
+ .container {
9
+ border-radius: 3px;
10
+ background-color: var(--zdt_datetime_default_bg);
11
+ font-size: var(--zd_font_size16);
12
+ composes: offSelection from '../common/common.module.css';
13
+ }
14
+ .header {
15
+ min-height: var(--zd_size36);
16
+ text-align: center;
17
+ background-color: var(--zdt_datetime_header_bg);
18
+ border-radius: 0 0 2px 2px;
19
+ border-bottom: 1px solid var(--zdt_datetime_header_border);
20
+ composes: boxPadding;
21
+ }
22
+
23
+ .datesStr {
24
+ color: var(--zdt_datetime_datestr_text);
25
+ font-family: var(--zd_regular);
26
+ }
27
+ .grid {
28
+ width: var(--zd_size28);
29
+ height: var(--zd_size28);
30
+ line-height: var(--zd_size20);
31
+ text-align: center;
32
+ padding: var(--zd_size4) 0;
33
+ border-radius: 50%;
34
+ }
35
+ .thArrow,
36
+ .datesStr {
37
+ font-size: var(--zd_font_size13);
38
+ cursor: pointer;
39
+ }
40
+ .thArrow:hover,
41
+ .datesStr:hover {
42
+ color: var(--zdt_datetime_datestr_text);
43
+ background: var(--zdt_datetime_datestr_hover_bg);
44
+ }
45
+
46
+ .navigation {
47
+ margin-left: var(--zd_size2);
48
+ }
49
+ .thMonYear {
50
+ font-size: var(--zd_font_size13);
51
+ line-height: var(--zd_size24);
52
+ color: var(--zdt_datetime_datestr_text);
53
+ composes: semibold;
54
+ }
55
+ .dateContainer {
56
+ margin: 0 var(--zd_size19) 0 var(--zd_size19);
57
+ padding: var(--zd_size6) 0 var(--zd_size10) 0;
58
+ }
59
+ .separator {
60
+ border-bottom: 1px dotted var(--zdt_datetime_separator_border);
61
+ }
62
+ .days {
63
+ min-height: var(--zd_size36);
64
+ padding-top: var(--zd_size7);
65
+ composes: boxPadding;
66
+ composes: alignBetween from '../common/common.module.css';
67
+ }
68
+ .daysStr {
69
+ font-size: var(--zd_font_size10);
70
+ color: var(--zdt_datetime_daystr_text);
71
+ text-transform: uppercase;
72
+ composes: semibold;
73
+ }
74
+ .dateRow {
75
+ height: var(--zd_size28);
76
+ margin: var(--zd_size1) 0 var(--zd_size5);
77
+ composes: alignBetween from '../common/common.module.css';
78
+ }
79
+ .dateRow:last-child {
80
+ margin-bottom: 0;
81
+ }
82
+ .sunday,
83
+ .sunday:hover,
84
+ .invalidDate.sunday:hover {
85
+ color: var(--zdt_datetime_invalid_hover_text);
86
+ }
87
+ .invalidDate {
88
+ color: var(--zdt_datetime_invalid_text);
89
+ }
90
+ .invalidDate.sunday {
91
+ color: var(--zdt_datetime_invaliddate_text);
92
+ }
93
+
94
+ .today,
95
+ .today:hover {
96
+ background-color: var(--zdt_datetime_today_bg);
97
+ color: var(--zdt_datetime_today_text);
98
+ border-radius: 50%;
99
+ }
100
+
101
+ .timesection {
102
+ padding-top: var(--zd_size5);
103
+ padding-bottom: var(--zd_size10);
104
+ }
105
+ .dropDownContainer {
106
+ padding: 0 var(--zd_size5);
107
+ }
108
+ .dropDown {
109
+ width: var(--zd_size60);
110
+ display: inline-block;
111
+ margin: 0 var(--zd_size4);
112
+ position: relative;
113
+ }
114
+ .footer {
115
+ margin-top: var(--zd_size10);
116
+ padding-bottom: var(--zd_size12);
117
+ }
118
+ .timesection,
119
+ .footer {
120
+ composes: boxPadding;
121
+ }
122
+ .space {
123
+ display: inline-block;
124
+ width: var(--zd_size15);
125
+ }
126
+
127
+ .downArrow {
128
+ margin-left: var(--zd_size2);
129
+ color: var(--zdt_datetime_daystr_text);
130
+ }
131
+ .dateText {
132
+ cursor: pointer;
133
+ }
134
+ .dateText:hover .downArrow {
135
+ color: var(--zdt_datetime_datestr_text);
136
+ }
137
+ .text {
138
+ composes: boxPadding;
139
+ font-size: var(--zd_font_size11);
140
+ text-transform: uppercase;
141
+ color: var(--zdt_datetime_text);
142
+ margin-top: var(--zd_size14);
143
+ composes: semibold;
144
+ display: block;
145
+ }
146
+ .yearContainer {
147
+ position: absolute;
148
+ top: 0;
149
+ left: 0;
150
+ width: 100%;
151
+ height: 100%;
152
+ }
153
+ .subContainer {
154
+ position: relative;
155
+ }
156
+ .dropBox {
157
+ width: 100%;
158
+ border-radius: 3px;
159
+ box-shadow: 0 3px 30px var(--zdt_dropbox_default_box_shadow);
160
+ background-color: var(--zdt_dropbox_default_bg);
188
161
  }
File without changes
@@ -1,42 +1,38 @@
1
- /* $Id */
2
- .container {
3
- position: relative;
4
- composes: offSelection from '../common/common.module.css';
5
- }
6
- .readOnly, .readOnly > input, .disabled {
7
- cursor: not-allowed;
8
- }
9
- .enabled {
10
- cursor: pointer;
11
- }
12
- .textBox {
13
- position: relative;
14
- }
15
- .inputLine {
16
- position: absolute;
17
- bottom: 0;
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;
28
- }
29
- .enabled:hover .inputLine {
30
- border-bottom-color: var(--zdt_datewidget_enabled_border);
31
- }
32
- .textBoxFocus .inputLine {
33
- border-bottom-color: var(--zdt_datewidget_textboxfocus_border);
34
- }
35
-
36
- .placeHolder input {
37
- color: var(--zdt_datewidget_placeholder_text);
38
- }
39
- .placeHolder input::selection {
40
- color: var(--zdt_datewidget_placeholder_selection_text);
41
- background: var(--zdt_datewidget_placeholder_selection_bg);
42
- }
1
+ /* $Id */
2
+ .container {
3
+ position: relative;
4
+ composes: offSelection from '../common/common.module.css';
5
+ }
6
+ .readOnly,
7
+ .readOnly > input,
8
+ .disabled {
9
+ cursor: not-allowed;
10
+ }
11
+ .enabled {
12
+ cursor: pointer;
13
+ }
14
+ .textBox {
15
+ position: relative;
16
+ }
17
+ .inputLine {
18
+ position: absolute;
19
+ bottom: 0;
20
+ left: 0;
21
+ right: 0;
22
+ border-bottom: 1px solid var(--zdt_datewidget_input_border);
23
+ transition: border var(--zd_transition2) linear 0s;
24
+ }
25
+ .enabled:hover .inputLine {
26
+ border-bottom-color: var(--zdt_datewidget_enabled_border);
27
+ }
28
+ .textBoxFocus .inputLine {
29
+ border-bottom-color: var(--zdt_datewidget_textboxfocus_border);
30
+ }
31
+
32
+ .placeHolder input {
33
+ color: var(--zdt_datewidget_placeholder_text);
34
+ }
35
+ .placeHolder input::selection {
36
+ color: var(--zdt_datewidget_placeholder_selection_text);
37
+ background: var(--zdt_datewidget_placeholder_selection_bg);
38
+ }
File without changes
@@ -1,80 +1,70 @@
1
- [dir=ltr] .boxPadding {
2
- padding-right: var(--zd_size19);
3
- padding-left: var(--zd_size19);
4
- }[dir=rtl] .boxPadding {
5
- padding-left: var(--zd_size19);
6
- padding-right: var(--zd_size19);
7
- }
8
- .month {
9
- width: 30.333%;
10
- font-size: var(--zd_font_size12);
11
- line-height: var(--zd_size26);
12
- height: var(--zd_size26);
13
- text-align: center;
14
- margin: 0 0 var(--zd_size1);
15
- cursor: pointer;
16
- background-color: var(--zdt_yearview_month_bg);
17
- border-radius: 20px;
18
- }
19
- .month:hover {
20
- background-color: var(--zdt_yearview_month_hover_bg);
21
- }
22
- .currentMonth,
23
- .currentMonth:hover {
24
- color: var(--zdt_yearview_currentmonth_text);
25
- }
26
- .currentMonth, .currentMonth:hover {
27
- background-color: var(--zdt_yearview_currentmonth_bg);
28
- }
29
- .yearBox {
30
- border-bottom: 1px dotted var(--zdt_yearview_yearbox_border);
31
- }
32
- .year {
33
- padding: var(--zd_size7) 0;
34
- cursor: pointer;
35
- }
36
- .year:hover .yearText,
37
- .year:hover .arrow {
38
- color: var(--zdt_yearview_year_hover_text);
39
- }
40
- .yearText {
41
- color: var(--zdt_yearview_yeartext_text);
42
- font-size: var(--zd_font_size11);
43
- }
44
- .arrow {
45
- color: var(--zdt_yearview_yeartext_text);
46
- transition: transform var(--zd_transition1);
47
- }
48
- .isActive {
49
- cursor: default;
50
- }
51
- .isActive .yearText {
52
- font-family: var(--zd_semibold);
53
- color: var(--zdt_yearview_year_hover_text);
54
- }
55
- .arrowActive {
56
- color: var(--zdt_yearview_year_hover_text);
57
- }
58
- [dir=ltr] .arrowActive {
59
- transform: rotate(180deg);
60
- }
61
- [dir=rtl] .arrowActive {
62
- transform: rotate(-180deg);
63
- }
64
- .container {
65
- height: 100%;
66
- overflow-y: auto;
67
- overflow-x: hidden;
68
- composes: boxPadding;
69
- background-color: var(--zdt_yearview_default_bg);
70
- }
71
- .yearContainer {
72
- height: var(--zd_size135);
73
- overflow: hidden;
74
- transition: height var(--zd_transition1);
75
- padding-bottom: var(--zd_size5);
76
- }
77
- .toggleYear {
78
- height: 0;
79
- padding: 0;
80
- }
1
+ .boxPadding {
2
+ padding-right: var(--zd_size19);
3
+ padding-left: var(--zd_size19);
4
+ }
5
+ .month {
6
+ width: 30.333%;
7
+ text-align: center;
8
+ margin: 0 0 var(--zd_size1);
9
+ cursor: pointer;
10
+ background-color: var(--zdt_yearview_month_bg);
11
+ border-radius: 20px;
12
+ font-size: var(--zd_font_size12);
13
+ line-height: var(--zd_size26);
14
+ height: var(--zd_size26);
15
+ }
16
+ .month:hover {
17
+ background-color: var(--zdt_yearview_month_hover_bg);
18
+ }
19
+ .currentMonth,
20
+ .currentMonth:hover {
21
+ background-color: var(--zdt_yearview_currentmonth_bg);
22
+ color: var(--zdt_yearview_currentmonth_text);
23
+ }
24
+ .yearBox {
25
+ border-bottom: 1px dotted var(--zdt_yearview_yearbox_border);
26
+ }
27
+ .year {
28
+ padding: var(--zd_size7) 0;
29
+ cursor: pointer;
30
+ }
31
+ .year:hover .yearText,
32
+ .year:hover .arrow {
33
+ color: var(--zdt_yearview_year_hover_text);
34
+ }
35
+ .yearText {
36
+ color: var(--zdt_yearview_yeartext_text);
37
+ font-size: var(--zd_font_size11);
38
+ }
39
+ .arrow {
40
+ color: var(--zdt_yearview_yeartext_text);
41
+ transition: transform var(--zd_transition1);
42
+ }
43
+ .isActive {
44
+ cursor: default;
45
+ }
46
+ .isActive .yearText {
47
+ font-family: var(--zd_semibold);
48
+ color: var(--zdt_yearview_year_hover_text);
49
+ }
50
+ .arrowActive {
51
+ transform: rotate(180deg);
52
+ color: var(--zdt_yearview_year_hover_text);
53
+ }
54
+ .container {
55
+ height: 100%;
56
+ overflow-y: auto;
57
+ overflow-x: hidden;
58
+ composes: boxPadding;
59
+ background-color: var(--zdt_yearview_default_bg);
60
+ }
61
+ .yearContainer {
62
+ height: var(--zd_size135);
63
+ overflow: hidden;
64
+ transition: height var(--zd_transition1);
65
+ padding-bottom: var(--zd_size5);
66
+ }
67
+ .toggleYear {
68
+ height: 0;
69
+ padding: 0;
70
+ }
File without changes
File without changes
File without changes
File without changes