@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.
- package/.cli/propValidation_report.html +1 -1
- package/README.md +4 -0
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +29 -2
- package/assets/Appearance/light/mode/Component_LightMode.module.css +29 -2
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +29 -2
- package/es/AppContainer/AppContainer.js +9 -10
- package/es/AppContainer/AppContainer.module.css +2 -2
- package/es/Avatar/Avatar.js +5 -4
- package/es/Avatar/Avatar.module.css +44 -26
- package/es/AvatarTeam/AvatarTeam.js +7 -7
- package/es/AvatarTeam/AvatarTeam.module.css +62 -74
- package/es/Button/Button.js +6 -5
- package/es/Button/css/Button.module.css +156 -100
- package/es/Buttongroup/Buttongroup.module.css +50 -17
- package/es/CheckBox/CheckBox.js +8 -8
- package/es/CheckBox/CheckBox.module.css +35 -60
- package/es/DateTime/DateTime.js +8 -2
- package/es/DateTime/DateTime.module.css +85 -57
- package/es/DateTime/DateWidget.js +14 -3
- package/es/DateTime/DateWidget.module.css +11 -7
- package/es/DateTime/Time.js +30 -13
- package/es/DateTime/YearView.module.css +34 -21
- package/es/DateTime/props/defaultProps.js +4 -2
- package/es/DateTime/props/propTypes.js +6 -3
- package/es/DropBox/DropBox.js +11 -10
- package/es/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/es/DropBox/css/DropBox.module.css +23 -6
- package/es/DropDown/DropDown.js +1 -2
- package/es/DropDown/DropDown.module.css +2 -2
- package/es/DropDown/DropDownHeading.module.css +15 -15
- package/es/DropDown/DropDownItem.module.css +40 -22
- package/es/DropDown/DropDownSearch.module.css +3 -3
- package/es/DropDown/DropDownSeparator.module.css +2 -2
- package/es/Heading/Heading.module.css +2 -2
- package/es/Label/Label.module.css +11 -23
- package/es/Label/LabelColors.module.css +1 -7
- package/es/Layout/Layout.module.css +15 -15
- package/es/ListItem/ListContainer.js +5 -6
- package/es/ListItem/ListItem.js +5 -4
- package/es/ListItem/ListItem.module.css +80 -98
- package/es/ListItem/ListItemWithAvatar.js +5 -4
- package/es/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/ListItem/ListItemWithIcon.js +5 -4
- package/es/ListItem/ListItemWithRadio.js +5 -4
- package/es/Modal/Modal.js +5 -4
- package/es/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/es/MultiSelect/MultiSelect.module.css +55 -69
- package/es/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/MultiSelect/SelectedOptions.js +8 -6
- package/es/MultiSelect/SelectedOptions.module.css +11 -5
- package/es/MultiSelect/Suggestions.js +8 -6
- package/es/MultiSelect/props/defaultProps.js +4 -2
- package/es/PopOver/PopOver.module.css +2 -2
- package/es/Popup/Popup.js +4 -3
- package/es/Radio/Radio.js +8 -8
- package/es/Radio/Radio.module.css +22 -37
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/es/Ribbon/Ribbon.module.css +143 -64
- package/es/RippleEffect/RippleEffect.module.css +9 -27
- package/es/Select/Select.js +5 -4
- package/es/Select/Select.module.css +33 -22
- package/es/Stencils/Stencils.module.css +32 -14
- package/es/Switch/Switch.js +8 -8
- package/es/Switch/Switch.module.css +30 -35
- package/es/Tab/Tab.js +5 -4
- package/es/Tab/Tab.module.css +28 -39
- package/es/Tab/TabContentWrapper.js +5 -4
- package/es/Tab/TabWrapper.js +4 -2
- package/es/Tab/Tabs.js +16 -16
- package/es/Tab/Tabs.module.css +51 -29
- package/es/Tag/Tag.module.css +60 -91
- package/es/TextBox/TextBox.js +5 -5
- package/es/TextBox/TextBox.module.css +19 -23
- package/es/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/es/Textarea/Textarea.js +6 -4
- package/es/Textarea/Textarea.module.css +30 -60
- package/es/Tooltip/Tooltip.module.css +12 -13
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/es/common/animation.module.css +227 -29
- package/es/common/avatarsizes.module.css +16 -16
- package/es/common/basicReset.module.css +5 -15
- package/es/common/common.module.css +82 -36
- package/es/common/customscroll.module.css +33 -12
- package/es/common/transition.module.css +50 -10
- package/es/deprecated/PortalLayer/PortalLayer.js +6 -8
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/es/v1/AppContainer/AppContainer.js +9 -10
- package/es/v1/Avatar/Avatar.js +5 -4
- package/es/v1/AvatarTeam/AvatarTeam.js +7 -7
- package/es/v1/Button/Button.js +6 -5
- package/es/v1/CheckBox/CheckBox.js +8 -8
- package/es/v1/DropBox/DropBox.js +11 -10
- package/es/v1/DropDown/DropDown.js +1 -2
- package/es/v1/ListItem/ListContainer.js +5 -6
- package/es/v1/ListItem/ListItem.js +5 -4
- package/es/v1/ListItem/ListItemWithAvatar.js +5 -4
- package/es/v1/ListItem/ListItemWithCheckBox.js +5 -4
- package/es/v1/ListItem/ListItemWithIcon.js +5 -4
- package/es/v1/ListItem/ListItemWithRadio.js +5 -4
- package/es/v1/Modal/Modal.js +5 -4
- package/es/v1/MultiSelect/AdvancedMultiSelect.js +9 -8
- package/es/v1/MultiSelect/MultiSelectWithAvatar.js +5 -4
- package/es/v1/MultiSelect/SelectedOptions.js +8 -6
- package/es/v1/MultiSelect/Suggestions.js +8 -6
- package/es/v1/MultiSelect/props/defaultProps.js +4 -2
- package/es/v1/Popup/Popup.js +4 -3
- package/es/v1/Radio/Radio.js +8 -8
- package/es/v1/ResponsiveDropBox/ResponsiveDropBox.js +4 -2
- package/es/v1/Select/Select.js +5 -4
- package/es/v1/Switch/Switch.js +8 -8
- package/es/v1/Tab/Tab.js +5 -4
- package/es/v1/Tab/TabContentWrapper.js +5 -4
- package/es/v1/Tab/TabWrapper.js +4 -2
- package/es/v1/Tab/Tabs.js +16 -16
- package/es/v1/Tab/v1Tab.module.css +28 -39
- package/es/v1/Tab/v1Tabs.module.css +51 -29
- package/es/v1/TextBox/TextBox.js +5 -5
- package/es/v1/TextBoxIcon/TextBoxIcon.js +4 -2
- package/es/v1/Textarea/Textarea.js +6 -4
- package/es/v1/Typography/css/Typography.module.css +39 -33
- package/es/v1/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +5 -4
- package/lib/AppContainer/AppContainer.module.css +2 -2
- package/lib/Avatar/Avatar.module.css +44 -26
- package/lib/AvatarTeam/AvatarTeam.module.css +62 -74
- package/lib/Button/css/Button.module.css +156 -100
- package/lib/Buttongroup/Buttongroup.module.css +50 -17
- package/lib/CheckBox/CheckBox.module.css +35 -60
- package/lib/DateTime/DateTime.js +13 -2
- package/lib/DateTime/DateTime.module.css +85 -57
- package/lib/DateTime/DateWidget.js +19 -3
- package/lib/DateTime/DateWidget.module.css +11 -7
- package/lib/DateTime/Time.js +35 -13
- package/lib/DateTime/YearView.module.css +34 -21
- package/lib/DateTime/props/defaultProps.js +4 -2
- package/lib/DateTime/props/propTypes.js +6 -3
- package/lib/DropBox/DropBoxElement/css/DropBoxElement.module.css +100 -81
- package/lib/DropBox/css/DropBox.module.css +23 -6
- package/lib/DropDown/DropDown.module.css +2 -2
- package/lib/DropDown/DropDownHeading.module.css +15 -15
- package/lib/DropDown/DropDownItem.module.css +40 -22
- package/lib/DropDown/DropDownSearch.module.css +3 -3
- package/lib/DropDown/DropDownSeparator.module.css +2 -2
- package/lib/Heading/Heading.module.css +2 -2
- package/lib/Label/Label.module.css +11 -23
- package/lib/Label/LabelColors.module.css +1 -7
- package/lib/Layout/Layout.module.css +15 -15
- package/lib/ListItem/ListItem.module.css +80 -98
- package/lib/MultiSelect/MobileHeader/MobileHeader.module.css +16 -19
- package/lib/MultiSelect/MultiSelect.module.css +55 -69
- package/lib/MultiSelect/SelectedOptions.module.css +11 -5
- package/lib/MultiSelect/props/defaultProps.js +4 -2
- package/lib/PopOver/PopOver.module.css +2 -2
- package/lib/Radio/Radio.module.css +22 -37
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +2 -2
- package/lib/Ribbon/Ribbon.module.css +143 -64
- package/lib/RippleEffect/RippleEffect.module.css +9 -27
- package/lib/Select/Select.module.css +33 -22
- package/lib/Stencils/Stencils.module.css +32 -14
- package/lib/Switch/Switch.module.css +30 -35
- package/lib/Tab/Tab.module.css +28 -39
- package/lib/Tab/Tabs.module.css +51 -29
- package/lib/Tag/Tag.module.css +60 -91
- package/lib/TextBox/TextBox.module.css +19 -23
- package/lib/TextBoxIcon/TextBoxIcon.module.css +15 -8
- package/lib/Textarea/Textarea.module.css +30 -60
- package/lib/Tooltip/Tooltip.module.css +12 -13
- package/lib/common/animation.module.css +227 -29
- package/lib/common/avatarsizes.module.css +16 -16
- package/lib/common/basicReset.module.css +5 -15
- package/lib/common/common.module.css +82 -36
- package/lib/common/customscroll.module.css +33 -12
- package/lib/common/transition.module.css +50 -10
- package/lib/semantic/Button/semanticButton.module.css +3 -3
- package/lib/v1/MultiSelect/props/defaultProps.js +4 -2
- package/lib/v1/Tab/v1Tab.module.css +28 -39
- package/lib/v1/Tab/v1Tabs.module.css +51 -29
- package/lib/v1/Typography/css/Typography.module.css +39 -33
- package/package.json +3 -3
- package/result.json +1 -0
package/lib/DateTime/Time.js
CHANGED
|
@@ -25,6 +25,14 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
+
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); }
|
|
29
|
+
|
|
30
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31
|
+
|
|
32
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
33
|
+
|
|
34
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
35
|
+
|
|
28
36
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
37
|
|
|
30
38
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -74,7 +82,15 @@ var Time = /*#__PURE__*/function (_PureComponent) {
|
|
|
74
82
|
ampmSuggestions = _this$props.ampmSuggestions,
|
|
75
83
|
onAmPmSelect = _this$props.onAmPmSelect,
|
|
76
84
|
amPm = _this$props.amPm,
|
|
77
|
-
is24Hour = _this$props.is24Hour
|
|
85
|
+
is24Hour = _this$props.is24Hour,
|
|
86
|
+
_this$props$customPro = _this$props.customProps,
|
|
87
|
+
customProps = _this$props$customPro === void 0 ? {} : _this$props$customPro;
|
|
88
|
+
var _customProps$HourComp = customProps.HourCompProps,
|
|
89
|
+
HourCompProps = _customProps$HourComp === void 0 ? {} : _customProps$HourComp,
|
|
90
|
+
_customProps$MinuteCo = customProps.MinuteCompProps,
|
|
91
|
+
MinuteCompProps = _customProps$MinuteCo === void 0 ? {} : _customProps$MinuteCo,
|
|
92
|
+
_customProps$AmPmComp = customProps.AmPmCompProps,
|
|
93
|
+
AmPmCompProps = _customProps$AmPmComp === void 0 ? {} : _customProps$AmPmComp;
|
|
78
94
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
79
95
|
className: _DateTimeModule["default"].text
|
|
80
96
|
}, timeText), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
@@ -91,7 +107,8 @@ var Time = /*#__PURE__*/function (_PureComponent) {
|
|
|
91
107
|
onHourSelect: onHourSelect,
|
|
92
108
|
hours: hours,
|
|
93
109
|
needResponsive: needResponsive,
|
|
94
|
-
hourEmptyText: hourEmptyText
|
|
110
|
+
hourEmptyText: hourEmptyText,
|
|
111
|
+
customProps: _objectSpread({}, HourCompProps)
|
|
95
112
|
})), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
96
113
|
flexible: true,
|
|
97
114
|
className: _DateTimeModule["default"].dropDownContainer
|
|
@@ -100,7 +117,8 @@ var Time = /*#__PURE__*/function (_PureComponent) {
|
|
|
100
117
|
onMinutesSelect: onMinutesSelect,
|
|
101
118
|
mins: mins,
|
|
102
119
|
minuteEmptyText: minuteEmptyText,
|
|
103
|
-
needResponsive: needResponsive
|
|
120
|
+
needResponsive: needResponsive,
|
|
121
|
+
customProps: _objectSpread({}, MinuteCompProps)
|
|
104
122
|
})), !is24Hour ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
105
123
|
flexible: true,
|
|
106
124
|
className: _DateTimeModule["default"].dropDownContainer
|
|
@@ -108,7 +126,8 @@ var Time = /*#__PURE__*/function (_PureComponent) {
|
|
|
108
126
|
ampmSuggestions: ampmSuggestions,
|
|
109
127
|
onAmPmSelect: onAmPmSelect,
|
|
110
128
|
amPm: amPm,
|
|
111
|
-
needResponsive: needResponsive
|
|
129
|
+
needResponsive: needResponsive,
|
|
130
|
+
customProps: _objectSpread({}, AmPmCompProps)
|
|
112
131
|
})) : null));
|
|
113
132
|
}
|
|
114
133
|
}]);
|
|
@@ -139,8 +158,9 @@ var Hour = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
139
158
|
onHourSelect = _this$props2.onHourSelect,
|
|
140
159
|
hours = _this$props2.hours,
|
|
141
160
|
needResponsive = _this$props2.needResponsive,
|
|
142
|
-
hourEmptyText = _this$props2.hourEmptyText
|
|
143
|
-
|
|
161
|
+
hourEmptyText = _this$props2.hourEmptyText,
|
|
162
|
+
customProps = _this$props2.customProps;
|
|
163
|
+
return /*#__PURE__*/_react["default"].createElement(_Select["default"], _extends({
|
|
144
164
|
options: hourSuggestions,
|
|
145
165
|
onChange: onHourSelect,
|
|
146
166
|
selectedValue: hours,
|
|
@@ -159,7 +179,7 @@ var Hour = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
159
179
|
needListBorder: true,
|
|
160
180
|
needTick: false,
|
|
161
181
|
listItemSize: "small"
|
|
162
|
-
});
|
|
182
|
+
}, customProps));
|
|
163
183
|
}
|
|
164
184
|
}]);
|
|
165
185
|
|
|
@@ -185,8 +205,9 @@ var Minute = /*#__PURE__*/function (_React$PureComponent2) {
|
|
|
185
205
|
onMinutesSelect = _this$props3.onMinutesSelect,
|
|
186
206
|
mins = _this$props3.mins,
|
|
187
207
|
minuteEmptyText = _this$props3.minuteEmptyText,
|
|
188
|
-
needResponsive = _this$props3.needResponsive
|
|
189
|
-
|
|
208
|
+
needResponsive = _this$props3.needResponsive,
|
|
209
|
+
customProps = _this$props3.customProps;
|
|
210
|
+
return /*#__PURE__*/_react["default"].createElement(_Select["default"], _extends({
|
|
190
211
|
options: minSuggestions,
|
|
191
212
|
onChange: onMinutesSelect,
|
|
192
213
|
selectedValue: mins,
|
|
@@ -205,7 +226,7 @@ var Minute = /*#__PURE__*/function (_React$PureComponent2) {
|
|
|
205
226
|
needListBorder: true,
|
|
206
227
|
needTick: false,
|
|
207
228
|
listItemSize: "small"
|
|
208
|
-
});
|
|
229
|
+
}, customProps));
|
|
209
230
|
}
|
|
210
231
|
}]);
|
|
211
232
|
|
|
@@ -230,8 +251,9 @@ var AmPm = /*#__PURE__*/function (_React$PureComponent3) {
|
|
|
230
251
|
ampmSuggestions = _this$props4.ampmSuggestions,
|
|
231
252
|
onAmPmSelect = _this$props4.onAmPmSelect,
|
|
232
253
|
amPm = _this$props4.amPm,
|
|
233
|
-
needResponsive = _this$props4.needResponsive
|
|
234
|
-
|
|
254
|
+
needResponsive = _this$props4.needResponsive,
|
|
255
|
+
customProps = _this$props4.customProps;
|
|
256
|
+
return /*#__PURE__*/_react["default"].createElement(_Select["default"], _extends({
|
|
235
257
|
options: ampmSuggestions,
|
|
236
258
|
onChange: onAmPmSelect,
|
|
237
259
|
selectedValue: amPm,
|
|
@@ -246,7 +268,7 @@ var AmPm = /*#__PURE__*/function (_React$PureComponent3) {
|
|
|
246
268
|
needListBorder: true,
|
|
247
269
|
needTick: false,
|
|
248
270
|
listItemSize: "small"
|
|
249
|
-
});
|
|
271
|
+
}, customProps));
|
|
250
272
|
}
|
|
251
273
|
}]);
|
|
252
274
|
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
.boxPadding {
|
|
2
|
-
padding-right:
|
|
3
|
-
padding-left:
|
|
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) ;
|
|
4
7
|
}
|
|
5
8
|
|
|
6
9
|
.month {
|
|
7
10
|
width: 30.333%;
|
|
11
|
+
font-size: var(--zd_font_size12) ;
|
|
12
|
+
line-height: 2.1667;
|
|
13
|
+
height: var(--zd_size26) ;
|
|
14
|
+
color: var(--zdt_yearview_month_text);
|
|
8
15
|
text-align: center;
|
|
9
|
-
margin: 0 0
|
|
16
|
+
margin: 0 0 var(--zd_size1) ;
|
|
10
17
|
cursor: pointer;
|
|
11
18
|
background-color: var(--zdt_yearview_month_bg);
|
|
12
19
|
border-radius: 20px;
|
|
13
|
-
font-size: 12px;
|
|
14
|
-
line-height: 2.1667;
|
|
15
|
-
height: 26px;
|
|
16
|
-
color: var(--zdt_base_color);
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
.month:hover {
|
|
@@ -22,27 +25,30 @@
|
|
|
22
25
|
|
|
23
26
|
.currentMonth,
|
|
24
27
|
.currentMonth:hover {
|
|
25
|
-
background-color: var(--zdt_yearview_currentmonth_bg);
|
|
26
28
|
color: var(--zdt_yearview_currentmonth_text);
|
|
27
29
|
}
|
|
28
30
|
|
|
31
|
+
.currentMonth, .currentMonth:hover {
|
|
32
|
+
background-color: var(--zdt_yearview_currentmonth_bg);
|
|
33
|
+
}
|
|
34
|
+
|
|
29
35
|
.yearBox {
|
|
30
36
|
border-bottom: 1px dotted var(--zdt_yearview_yearbox_border);
|
|
31
37
|
}
|
|
32
38
|
|
|
33
39
|
.year {
|
|
34
|
-
padding:
|
|
40
|
+
padding: var(--zd_size7) 0 ;
|
|
35
41
|
cursor: pointer;
|
|
36
42
|
}
|
|
37
43
|
|
|
38
44
|
.year:hover .yearText,
|
|
39
45
|
.year:hover .arrow {
|
|
40
|
-
color: var(--
|
|
46
|
+
color: var(--zdt_yearview_year_hover_text);
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
.yearText {
|
|
44
50
|
color: var(--zdt_yearview_yeartext_text);
|
|
45
|
-
font-size:
|
|
51
|
+
font-size: var(--zd_font_size11) ;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
.arrow {
|
|
@@ -56,31 +62,38 @@
|
|
|
56
62
|
|
|
57
63
|
.isActive .yearText {
|
|
58
64
|
font-family: var(--zd_semibold);
|
|
59
|
-
color: var(--
|
|
60
|
-
font-size:
|
|
65
|
+
color: var(--zdt_yearview_year_hover_text);
|
|
66
|
+
font-size: var(--zd_font_size11) ;
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
.arrowActive {
|
|
70
|
+
color: var(--zdt_yearview_year_hover_text);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[dir=ltr] .arrowActive {
|
|
64
74
|
transform: rotate(180deg);
|
|
65
|
-
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[dir=rtl] .arrowActive {
|
|
78
|
+
transform: rotate(-180deg);
|
|
66
79
|
}
|
|
67
80
|
|
|
68
81
|
.container {
|
|
69
|
-
height: 100
|
|
82
|
+
height: 100% ;
|
|
70
83
|
overflow-y: auto;
|
|
71
84
|
overflow-x: hidden;
|
|
72
85
|
composes: boxPadding;
|
|
73
|
-
background-color: var(--
|
|
86
|
+
background-color: var(--zdt_yearview_default_bg);
|
|
74
87
|
}
|
|
75
88
|
|
|
76
89
|
.yearContainer {
|
|
77
|
-
height:
|
|
90
|
+
height: var(--zd_size135) ;
|
|
78
91
|
overflow: hidden;
|
|
79
92
|
transition: height var(--zd_transition1);
|
|
80
|
-
padding-bottom:
|
|
93
|
+
padding-bottom: var(--zd_size5) ;
|
|
81
94
|
}
|
|
82
95
|
|
|
83
96
|
.toggleYear {
|
|
84
|
-
height: 0;
|
|
85
|
-
padding: 0;
|
|
97
|
+
height: 0 ;
|
|
98
|
+
padding: 0 ;
|
|
86
99
|
}
|
|
@@ -28,7 +28,8 @@ var DateTime_defaultProps = {
|
|
|
28
28
|
i18nKeys: {},
|
|
29
29
|
is24Hour: false,
|
|
30
30
|
isDefaultPosition: false,
|
|
31
|
-
customDateFormat: null
|
|
31
|
+
customDateFormat: null,
|
|
32
|
+
customProps: {}
|
|
32
33
|
};
|
|
33
34
|
exports.DateTime_defaultProps = DateTime_defaultProps;
|
|
34
35
|
var DateWidget_defaultProps = {
|
|
@@ -65,6 +66,7 @@ var DateTimePopupFooter_defaultProps = {
|
|
|
65
66
|
};
|
|
66
67
|
exports.DateTimePopupFooter_defaultProps = DateTimePopupFooter_defaultProps;
|
|
67
68
|
var Time_defaultProps = {
|
|
68
|
-
dataId: 'Time'
|
|
69
|
+
dataId: 'Time',
|
|
70
|
+
customProps: {}
|
|
69
71
|
};
|
|
70
72
|
exports.Time_defaultProps = Time_defaultProps;
|
|
@@ -97,7 +97,8 @@ var DateTime_propTypes = {
|
|
|
97
97
|
positionsOffset: _propTypes["default"].array,
|
|
98
98
|
targetOffset: _propTypes["default"].string,
|
|
99
99
|
isRestrictScroll: _propTypes["default"].bool,
|
|
100
|
-
dropBoxPortalId: _propTypes["default"].string
|
|
100
|
+
dropBoxPortalId: _propTypes["default"].string,
|
|
101
|
+
customProps: _propTypes["default"].object
|
|
101
102
|
};
|
|
102
103
|
exports.DateTime_propTypes = DateTime_propTypes;
|
|
103
104
|
var DateWidget_propTypes = {
|
|
@@ -165,7 +166,8 @@ var DateWidget_propTypes = {
|
|
|
165
166
|
targetOffset: _propTypes["default"].array,
|
|
166
167
|
isRestrictScroll: _propTypes["default"].bool,
|
|
167
168
|
dropBoxPortalId: _propTypes["default"].string,
|
|
168
|
-
a11y: _propTypes["default"].object
|
|
169
|
+
a11y: _propTypes["default"].object,
|
|
170
|
+
customProps: _propTypes["default"].object
|
|
169
171
|
};
|
|
170
172
|
exports.DateWidget_propTypes = DateWidget_propTypes;
|
|
171
173
|
var YearView_propTypes = {
|
|
@@ -214,6 +216,7 @@ var Time_propTypes = {
|
|
|
214
216
|
ampmSuggestions: _propTypes["default"].array,
|
|
215
217
|
onAmPmSelect: _propTypes["default"].func,
|
|
216
218
|
amPm: _propTypes["default"].string,
|
|
217
|
-
is24Hour: _propTypes["default"].bool
|
|
219
|
+
is24Hour: _propTypes["default"].bool,
|
|
220
|
+
customProps: _propTypes["default"].object
|
|
218
221
|
};
|
|
219
222
|
exports.Time_propTypes = Time_propTypes;
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
box-shadow: var(--dropbox_box_shadow);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.defaultPalette,
|
|
22
|
-
.darkPalette {
|
|
21
|
+
.defaultPalette, .darkPalette {
|
|
23
22
|
background-color: var(--dropbox_bg_color);
|
|
24
23
|
}
|
|
25
24
|
|
|
@@ -29,48 +28,48 @@
|
|
|
29
28
|
|
|
30
29
|
.mobRadius {
|
|
31
30
|
--dropbox_border_radius: 30px 30px 0 0;
|
|
32
|
-
--dropbox_padding:
|
|
31
|
+
--dropbox_padding: var(--zd_size10) 0 0 0;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
/* sizes */
|
|
36
35
|
.mini {
|
|
37
|
-
width:
|
|
36
|
+
width: var(--zd_size140) ;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
.xmini {
|
|
41
|
-
width:
|
|
40
|
+
width: var(--zd_size160) ;
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
.xsmall {
|
|
45
|
-
width:
|
|
44
|
+
width: var(--zd_size180) ;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
.small {
|
|
49
|
-
width:
|
|
48
|
+
width: var(--zd_size200) ;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
.medium {
|
|
53
|
-
width:
|
|
52
|
+
width: var(--zd_size220) ;
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
.large {
|
|
57
|
-
width:
|
|
56
|
+
width: var(--zd_size260) ;
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
.mlarge {
|
|
61
|
-
width:
|
|
60
|
+
width: var(--zd_size280) ;
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
.xlarge {
|
|
65
|
-
width:
|
|
64
|
+
width: var(--zd_size304) ;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
.xxlarge {
|
|
69
|
-
width:
|
|
68
|
+
width: var(--zd_size364) ;
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
.default {
|
|
73
|
-
width: 100
|
|
72
|
+
width: 100% ;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
/* shadow */
|
|
@@ -95,122 +94,118 @@
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
/* box direction styles */
|
|
98
|
-
/*rtl:begin:ignore*/
|
|
99
97
|
.topStart {
|
|
100
|
-
bottom: 100
|
|
101
|
-
right: 0;
|
|
98
|
+
bottom: 100% ;
|
|
99
|
+
right: 0 ;
|
|
102
100
|
}
|
|
103
101
|
|
|
104
102
|
.topEnd {
|
|
105
|
-
bottom: 100
|
|
106
|
-
left: 0;
|
|
103
|
+
bottom: 100% ;
|
|
104
|
+
left: 0 ;
|
|
107
105
|
}
|
|
108
106
|
|
|
109
107
|
.topMid {
|
|
110
|
-
bottom: 100
|
|
111
|
-
left: 50
|
|
108
|
+
bottom: 100% ;
|
|
109
|
+
left: 50% ;
|
|
112
110
|
transform: translateX(-50%);
|
|
113
111
|
}
|
|
114
112
|
|
|
115
113
|
.bottomStart {
|
|
116
|
-
top: 100
|
|
117
|
-
right: 0;
|
|
114
|
+
top: 100% ;
|
|
115
|
+
right: 0 ;
|
|
118
116
|
}
|
|
119
117
|
|
|
120
118
|
.bottomEnd {
|
|
121
|
-
top: 100
|
|
122
|
-
left: 0;
|
|
119
|
+
top: 100% ;
|
|
120
|
+
left: 0 ;
|
|
123
121
|
}
|
|
124
122
|
|
|
125
123
|
.bottomMid {
|
|
126
|
-
top: 100
|
|
127
|
-
left: 50
|
|
124
|
+
top: 100% ;
|
|
125
|
+
left: 50% ;
|
|
128
126
|
transform: translateX(-50%);
|
|
129
127
|
}
|
|
130
128
|
|
|
131
129
|
.rightStart {
|
|
132
|
-
left: 100
|
|
133
|
-
bottom: 0;
|
|
130
|
+
left: 100% ;
|
|
131
|
+
bottom: 0 ;
|
|
134
132
|
}
|
|
135
133
|
|
|
136
134
|
.rightEnd {
|
|
137
|
-
left: 100
|
|
138
|
-
top: 0;
|
|
135
|
+
left: 100% ;
|
|
136
|
+
top: 0 ;
|
|
139
137
|
}
|
|
140
138
|
|
|
141
139
|
.rightMid {
|
|
142
|
-
left: 100
|
|
143
|
-
top: 50
|
|
140
|
+
left: 100% ;
|
|
141
|
+
top: 50% ;
|
|
144
142
|
transform: translateY(-50%);
|
|
145
143
|
}
|
|
146
144
|
|
|
147
145
|
.leftStart {
|
|
148
|
-
right: 100
|
|
149
|
-
bottom: 0;
|
|
146
|
+
right: 100% ;
|
|
147
|
+
bottom: 0 ;
|
|
150
148
|
}
|
|
151
149
|
|
|
152
150
|
.leftEnd {
|
|
153
|
-
right: 100
|
|
154
|
-
top: 0;
|
|
151
|
+
right: 100% ;
|
|
152
|
+
top: 0 ;
|
|
155
153
|
}
|
|
156
154
|
|
|
157
155
|
.leftMid {
|
|
158
|
-
right: 100
|
|
159
|
-
top: 50
|
|
156
|
+
right: 100% ;
|
|
157
|
+
top: 50% ;
|
|
160
158
|
transform: translateY(-50%);
|
|
161
159
|
}
|
|
162
160
|
|
|
163
161
|
/* space for arrow */
|
|
164
162
|
.arrowtop {
|
|
165
|
-
padding-bottom:
|
|
163
|
+
padding-bottom: var(--zd_size10) ;
|
|
166
164
|
}
|
|
167
165
|
|
|
168
166
|
.arrowright {
|
|
169
|
-
padding-left:
|
|
167
|
+
padding-left: var(--zd_size10) ;
|
|
170
168
|
}
|
|
171
169
|
|
|
172
170
|
.arrowleft {
|
|
173
|
-
padding-right:
|
|
171
|
+
padding-right: var(--zd_size10) ;
|
|
174
172
|
}
|
|
175
173
|
|
|
176
174
|
.arrowbottom {
|
|
177
|
-
padding-top:
|
|
175
|
+
padding-top: var(--zd_size10) ;
|
|
178
176
|
}
|
|
179
177
|
|
|
180
178
|
/* space from target */
|
|
181
179
|
.paddingSpace_top {
|
|
182
|
-
padding-bottom:
|
|
180
|
+
padding-bottom: var(--zd_size5) ;
|
|
183
181
|
}
|
|
184
182
|
|
|
185
183
|
.paddingSpace_right {
|
|
186
|
-
padding-left:
|
|
184
|
+
padding-left: var(--zd_size5) ;
|
|
187
185
|
}
|
|
188
186
|
|
|
189
187
|
.paddingSpace_left {
|
|
190
|
-
padding-right:
|
|
188
|
+
padding-right: var(--zd_size5) ;
|
|
191
189
|
}
|
|
192
190
|
|
|
193
191
|
.paddingSpace_bottom {
|
|
194
|
-
padding-top:
|
|
192
|
+
padding-top: var(--zd_size5) ;
|
|
195
193
|
}
|
|
196
194
|
|
|
197
195
|
.arrow {
|
|
198
196
|
position: absolute;
|
|
199
|
-
height:
|
|
200
|
-
width:
|
|
201
|
-
clip: rect(
|
|
202
|
-
|
|
203
|
-
17px,
|
|
204
|
-
8px);
|
|
205
|
-
padding: 4px;
|
|
197
|
+
height: var(--zd_size34) ;
|
|
198
|
+
width: var(--zd_size34) ;
|
|
199
|
+
clip: rect(var(--zd_size3), var(--zd_size29), var(--zd_size17), var(--zd_size8)) ;
|
|
200
|
+
padding: var(--zd_size4) ;
|
|
206
201
|
display: flex;
|
|
207
202
|
align-items: center;
|
|
208
203
|
justify-content: center;
|
|
209
204
|
}
|
|
210
205
|
|
|
211
206
|
.arrowShape {
|
|
212
|
-
height:
|
|
213
|
-
width:
|
|
207
|
+
height: var(--zd_size10) ;
|
|
208
|
+
width: var(--zd_size10) ;
|
|
214
209
|
box-shadow: 1px -1px 2px 0 var(--dropbox_arrow_box_shadow_color);
|
|
215
210
|
background-color: var(--dropbox_bg_color);
|
|
216
211
|
-webkit-transform: rotateZ(-45deg);
|
|
@@ -227,20 +222,20 @@
|
|
|
227
222
|
.top .start,
|
|
228
223
|
.top .end,
|
|
229
224
|
.top .mid {
|
|
230
|
-
bottom: -
|
|
225
|
+
bottom: calc( var(--zd_size17) * -1 ) ;
|
|
231
226
|
}
|
|
232
227
|
|
|
233
228
|
.top .start {
|
|
234
|
-
left:
|
|
229
|
+
left: var(--zd_size28) ;
|
|
235
230
|
}
|
|
236
231
|
|
|
237
232
|
.top .end {
|
|
238
|
-
right:
|
|
233
|
+
right: var(--zd_size28) ;
|
|
239
234
|
transform: rotate(180deg) translateX(-50%);
|
|
240
235
|
}
|
|
241
236
|
|
|
242
237
|
.top .mid {
|
|
243
|
-
left: 50
|
|
238
|
+
left: 50% ;
|
|
244
239
|
}
|
|
245
240
|
|
|
246
241
|
.top .start,
|
|
@@ -251,19 +246,19 @@
|
|
|
251
246
|
.bottom .start,
|
|
252
247
|
.bottom .end,
|
|
253
248
|
.bottom .mid {
|
|
254
|
-
top: -
|
|
249
|
+
top: calc( var(--zd_size17) * -1 ) ;
|
|
255
250
|
}
|
|
256
251
|
|
|
257
252
|
.bottom .start {
|
|
258
|
-
left:
|
|
253
|
+
left: var(--zd_size28) ;
|
|
259
254
|
}
|
|
260
255
|
|
|
261
256
|
.bottom .mid {
|
|
262
|
-
left: 50
|
|
257
|
+
left: 50% ;
|
|
263
258
|
}
|
|
264
259
|
|
|
265
260
|
.bottom .end {
|
|
266
|
-
right:
|
|
261
|
+
right: var(--zd_size28) ;
|
|
267
262
|
transform: translateX(50%);
|
|
268
263
|
}
|
|
269
264
|
|
|
@@ -275,20 +270,20 @@
|
|
|
275
270
|
.left .start,
|
|
276
271
|
.left .mid,
|
|
277
272
|
.left .end {
|
|
278
|
-
right: -
|
|
273
|
+
right: calc( var(--zd_size17) * -1 ) ;
|
|
279
274
|
}
|
|
280
275
|
|
|
281
276
|
.left .start {
|
|
282
|
-
top:
|
|
277
|
+
top: var(--zd_size28) ;
|
|
283
278
|
}
|
|
284
279
|
|
|
285
280
|
.left .end {
|
|
286
281
|
transform: rotate(90deg) translateX(50%);
|
|
287
|
-
bottom:
|
|
282
|
+
bottom: var(--zd_size28) ;
|
|
288
283
|
}
|
|
289
284
|
|
|
290
285
|
.left .mid {
|
|
291
|
-
top: 50
|
|
286
|
+
top: 50% ;
|
|
292
287
|
}
|
|
293
288
|
|
|
294
289
|
.left .start,
|
|
@@ -299,15 +294,15 @@
|
|
|
299
294
|
.right .start,
|
|
300
295
|
.right .mid,
|
|
301
296
|
.right .end {
|
|
302
|
-
left: -
|
|
297
|
+
left: calc( var(--zd_size17) * -1 ) ;
|
|
303
298
|
}
|
|
304
299
|
|
|
305
300
|
.right .start {
|
|
306
|
-
top:
|
|
301
|
+
top: var(--zd_size28) ;
|
|
307
302
|
}
|
|
308
303
|
|
|
309
304
|
.right .mid {
|
|
310
|
-
top: 50
|
|
305
|
+
top: 50% ;
|
|
311
306
|
}
|
|
312
307
|
|
|
313
308
|
.right .start,
|
|
@@ -316,11 +311,9 @@
|
|
|
316
311
|
}
|
|
317
312
|
|
|
318
313
|
.right .end {
|
|
319
|
-
bottom:
|
|
314
|
+
bottom: var(--zd_size28) ;
|
|
320
315
|
transform: rotate(-90deg) translateX(-50%);
|
|
321
316
|
}
|
|
322
|
-
|
|
323
|
-
/*rtl:end:ignore*/
|
|
324
317
|
.hidden {
|
|
325
318
|
visibility: hidden;
|
|
326
319
|
opacity: 0;
|
|
@@ -332,7 +325,11 @@
|
|
|
332
325
|
box-shadow: none;
|
|
333
326
|
}
|
|
334
327
|
|
|
335
|
-
.animationBasic {
|
|
328
|
+
[dir=ltr] .animationBasic {
|
|
329
|
+
animation-duration: var(--zd_transition2);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
[dir=rtl] .animationBasic {
|
|
336
333
|
animation-duration: var(--zd_transition2);
|
|
337
334
|
}
|
|
338
335
|
|
|
@@ -351,12 +348,27 @@
|
|
|
351
348
|
}
|
|
352
349
|
.bounce {
|
|
353
350
|
composes: animationBasic;
|
|
351
|
+
}
|
|
352
|
+
[dir=ltr] .bounce {
|
|
353
|
+
animation-name: animation;
|
|
354
|
+
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
|
|
355
|
+
}
|
|
356
|
+
[dir=rtl] .bounce {
|
|
354
357
|
animation-name: animation;
|
|
355
358
|
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1.1);
|
|
356
359
|
}
|
|
357
360
|
|
|
358
361
|
.slideUp {
|
|
359
362
|
composes: modeForward from '../../../common/animation.module.css';
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
[dir=ltr] .slideUp {
|
|
366
|
+
animation-duration: var(--zd_transition3);
|
|
367
|
+
animation-name: slideUp;
|
|
368
|
+
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
[dir=rtl] .slideUp {
|
|
360
372
|
animation-duration: var(--zd_transition3);
|
|
361
373
|
animation-name: slideUp;
|
|
362
374
|
animation-timing-function: cubic-bezier(0.4, 1, 0.65, 1);
|
|
@@ -388,24 +400,31 @@
|
|
|
388
400
|
|
|
389
401
|
.responsive {
|
|
390
402
|
position: absolute;
|
|
391
|
-
bottom: 0;
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
403
|
+
bottom: 0 ;
|
|
404
|
+
width: 100% ;
|
|
405
|
+
max-height: 90% ;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
[dir=ltr] .responsive {
|
|
409
|
+
left: 0 ;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
[dir=rtl] .responsive {
|
|
413
|
+
right: 0 ;
|
|
395
414
|
}
|
|
396
415
|
|
|
397
416
|
.closeBar {
|
|
398
417
|
/* Variable:Ignore */
|
|
399
418
|
height: 6px;
|
|
419
|
+
width: 20% ;
|
|
400
420
|
border-radius: 5px;
|
|
401
421
|
background-color: var(--dropbox_mob_close_bg_color);
|
|
402
|
-
width: 20%;
|
|
403
422
|
cursor: pointer;
|
|
404
|
-
margin: 0 auto
|
|
423
|
+
margin: 0 auto var(--zd_size10) ;
|
|
405
424
|
}
|
|
406
425
|
|
|
407
426
|
.boxPadding {
|
|
408
|
-
--dropbox_padding:
|
|
427
|
+
--dropbox_padding: var(--zd_size10) 0;
|
|
409
428
|
}
|
|
410
429
|
|
|
411
430
|
.darkPalette {
|