carbon-react 146.5.3 → 146.6.0

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.
@@ -14,6 +14,7 @@ import StyledDayPicker from "./day-picker.style";
14
14
  const popoverMiddleware = [offset(3), flip({
15
15
  fallbackStrategy: "initialPlacement"
16
16
  })];
17
+ const Nav = Navbar;
17
18
  export const DatePicker = ({
18
19
  inputElement,
19
20
  minDate,
@@ -157,16 +158,14 @@ export const DatePicker = ({
157
158
  weekdaysShort
158
159
  }
159
160
  },
160
- selected: focusedMonth,
161
+ selected: selectedDays,
161
162
  month: focusedMonth || /* istanbul ignore next */new Date(),
162
163
  onDayClick: (d, _, e) => {
163
164
  const date = d;
164
165
  handleDayClick(date, e);
165
166
  },
166
167
  components: {
167
- Nav: props => {
168
- return /*#__PURE__*/React.createElement(Navbar, props);
169
- },
168
+ Nav,
170
169
  Weekday: props => {
171
170
  const fixedDays = {
172
171
  Sunday: 0,
@@ -23,6 +23,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
23
23
  const popoverMiddleware = [(0, _dom.offset)(3), (0, _dom.flip)({
24
24
  fallbackStrategy: "initialPlacement"
25
25
  })];
26
+ const Nav = _navbar.default;
26
27
  const DatePicker = ({
27
28
  inputElement,
28
29
  minDate,
@@ -166,16 +167,14 @@ const DatePicker = ({
166
167
  weekdaysShort
167
168
  }
168
169
  },
169
- selected: focusedMonth,
170
+ selected: selectedDays,
170
171
  month: focusedMonth || /* istanbul ignore next */new Date(),
171
172
  onDayClick: (d, _, e) => {
172
173
  const date = d;
173
174
  handleDayClick(date, e);
174
175
  },
175
176
  components: {
176
- Nav: props => {
177
- return /*#__PURE__*/_react.default.createElement(_navbar.default, props);
178
- },
177
+ Nav,
179
178
  Weekday: props => {
180
179
  const fixedDays = {
181
180
  Sunday: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "146.5.3",
3
+ "version": "146.6.0",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",