import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import { DatePicker } from '@alicloudfe/components';
import cls from 'classnames';

var BDesignDatePicker = function BDesignDatePicker(props) {
  var className = props.className,
      _props$hasborder = props.hasborder,
      hasborder = _props$hasborder === void 0 ? false : _props$hasborder,
      theme = props.theme,
      _props$size = props.size,
      size = _props$size === void 0 ? 'large' : _props$size,
      rest = _objectWithoutProperties(props, ["className", "hasborder", "theme", "size"]);

  return /*#__PURE__*/React.createElement(DatePicker, _extends({
    size: size,
    popupClassName: theme === 'dark' ? 'next-date-picker-body-dark' : '',
    className: cls(className, {
      'b-design_icon__container': true,
      'next-picker-noborder': hasborder === false,
      'next-picker-dark': theme === 'dark'
    })
  }, rest));
};

var RangePicker = function RangePicker(props) {
  var className = props.className,
      _props$hasborder2 = props.hasborder,
      hasborder = _props$hasborder2 === void 0 ? false : _props$hasborder2,
      theme = props.theme,
      _props$size2 = props.size,
      size = _props$size2 === void 0 ? 'large' : _props$size2,
      rest = _objectWithoutProperties(props, ["className", "hasborder", "theme", "size"]);

  return /*#__PURE__*/React.createElement(DatePicker.RangePicker, _extends({
    size: size,
    popupClassName: theme === 'dark' ? 'next-date-picker-body-dark' : '',
    className: cls(className, {
      'b-design_icon__container': true,
      'next-picker-noborder': hasborder === false,
      'next-picker-dark': theme === 'dark'
    })
  }, rest));
};

var YearPicker = function YearPicker(props) {
  var className = props.className,
      _props$hasborder3 = props.hasborder,
      hasborder = _props$hasborder3 === void 0 ? false : _props$hasborder3,
      theme = props.theme,
      _props$size3 = props.size,
      size = _props$size3 === void 0 ? 'large' : _props$size3,
      rest = _objectWithoutProperties(props, ["className", "hasborder", "theme", "size"]);

  return /*#__PURE__*/React.createElement(DatePicker.YearPicker, _extends({
    size: size,
    popupClassName: theme === 'dark' ? 'next-date-picker-body-dark' : '',
    className: cls(className, {
      'b-design_icon__container': true,
      'next-picker-noborder': hasborder === false,
      'next-picker-dark': theme === 'dark'
    })
  }, rest));
};

var MonthPicker = function MonthPicker(props) {
  var className = props.className,
      _props$hasborder4 = props.hasborder,
      hasborder = _props$hasborder4 === void 0 ? false : _props$hasborder4,
      theme = props.theme,
      _props$size4 = props.size,
      size = _props$size4 === void 0 ? 'large' : _props$size4,
      rest = _objectWithoutProperties(props, ["className", "hasborder", "theme", "size"]);

  return /*#__PURE__*/React.createElement(DatePicker.MonthPicker, _extends({
    size: size,
    popupClassName: theme === 'dark' ? 'next-date-picker-body-dark' : '',
    className: cls(className, {
      'b-design_icon__container': true,
      'next-picker-noborder': hasborder === false,
      'next-picker-dark': theme === 'dark'
    })
  }, rest));
};

var WeekPicker = function WeekPicker(props) {
  var className = props.className,
      _props$hasborder5 = props.hasborder,
      hasborder = _props$hasborder5 === void 0 ? false : _props$hasborder5,
      theme = props.theme,
      _props$size5 = props.size,
      size = _props$size5 === void 0 ? 'large' : _props$size5,
      rest = _objectWithoutProperties(props, ["className", "hasborder", "theme", "size"]);

  return /*#__PURE__*/React.createElement(DatePicker.WeekPicker, _extends({
    size: size,
    popupClassName: theme === 'dark' ? 'next-date-picker-body-dark' : '',
    className: cls(className, {
      'b-design_icon__container': true,
      'next-picker-noborder': hasborder === false,
      'next-picker-dark': theme === 'dark'
    })
  }, rest));
};

BDesignDatePicker.RangePicker = RangePicker;
BDesignDatePicker.YearPicker = YearPicker;
BDesignDatePicker.MonthPicker = MonthPicker;
BDesignDatePicker.WeekPicker = WeekPicker;
export default BDesignDatePicker;