@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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.3.5
4
+
5
+ - [Added] Added the option to pass dayPickerProps
6
+
3
7
  ## 2.3.4
4
8
 
5
9
  - [Fixed] DatePicker. Added htmlFor to the label and input ID autogeneration. Accessibility issue.
@@ -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
- props = _objectWithoutProperties(_ref, ["label", "locale", "width", "date", "type", "fromMonth", "disabledDays", "value", "pickerRef", "inputProps"]);
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happeouikit/form-elements",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "src/index.js",