ywana-core8 0.0.504 → 0.0.505

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.
@@ -2556,17 +2556,23 @@ var Planner = function Planner(_ref) {
2556
2556
  navigation = _ref$navigation === void 0 ? true : _ref$navigation,
2557
2557
  onSelectCell = _ref.onSelectCell,
2558
2558
  focusEvent = _ref.focusEvent,
2559
+ _ref$config = _ref.config,
2560
+ config = _ref$config === void 0 ? {
2561
+ range: "year",
2562
+ from: "2022-01-01",
2563
+ to: "2022-12-30"
2564
+ } : _ref$config,
2559
2565
  onChange = _ref.onChange;
2560
2566
 
2561
- var _useState = useState("year"),
2567
+ var _useState = useState(config.range),
2562
2568
  dateRange = _useState[0],
2563
2569
  setDateRange = _useState[1];
2564
2570
 
2565
- var _useState2 = useState("2022-01-01"),
2571
+ var _useState2 = useState(config.from),
2566
2572
  from = _useState2[0],
2567
2573
  setFrom = _useState2[1];
2568
2574
 
2569
- var _useState3 = useState("2022-12-30"),
2575
+ var _useState3 = useState(config.to),
2570
2576
  to = _useState3[0],
2571
2577
  setTo = _useState3[1];
2572
2578
 
@@ -2574,7 +2580,7 @@ var Planner = function Planner(_ref) {
2574
2580
  var element = document.getElementById(focusEvent);
2575
2581
  if (element) element.scrollIntoView({
2576
2582
  behavior: 'smooth',
2577
- block: 'start',
2583
+ block: 'center',
2578
2584
  inline: 'center'
2579
2585
  });
2580
2586
  }, [focusEvent]);