@happeouikit/form-elements 2.3.4 → 2.3.5
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/CHANGELOG.md +4 -0
- package/dist/DatePicker.js +5 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/DatePicker.js
CHANGED
|
@@ -70,7 +70,9 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
70
70
|
pickerRef = _ref.pickerRef,
|
|
71
71
|
_ref$inputProps = _ref.inputProps,
|
|
72
72
|
inputProps = _ref$inputProps === void 0 ? {} : _ref$inputProps,
|
|
73
|
-
|
|
73
|
+
_ref$dayPickerProps = _ref.dayPickerProps,
|
|
74
|
+
dayPickerProps = _ref$dayPickerProps === void 0 ? {} : _ref$dayPickerProps,
|
|
75
|
+
props = _objectWithoutProperties(_ref, ["label", "locale", "width", "date", "type", "fromMonth", "disabledDays", "value", "pickerRef", "inputProps", "dayPickerProps"]);
|
|
74
76
|
|
|
75
77
|
// Stores the ID of the input field. If "id" isn't provided, it will be generated
|
|
76
78
|
// to improve accessibility by linking label to the input field.
|
|
@@ -114,7 +116,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
114
116
|
formatDate: formatDate,
|
|
115
117
|
parseDate: parseDate,
|
|
116
118
|
placeholder: formatValue(new Date(), locale),
|
|
117
|
-
dayPickerProps: {
|
|
119
|
+
dayPickerProps: _objectSpread({
|
|
118
120
|
locale: locale,
|
|
119
121
|
localeUtils: MomentLocaleUtils,
|
|
120
122
|
className: "Range",
|
|
@@ -135,7 +137,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
135
137
|
}),
|
|
136
138
|
showOutsideDays: true,
|
|
137
139
|
month: month
|
|
138
|
-
},
|
|
140
|
+
}, dayPickerProps),
|
|
139
141
|
ref: pickerRef,
|
|
140
142
|
inputProps: _objectSpread({
|
|
141
143
|
id: datePickerId
|